/* ===== Design tokens ===== */
:root {
  color-scheme: dark;
  --page-bg: #0d0c0a;
  --surface-1: #1c1913;
  --surface-2: #241f17;
  --surface-3: #2c2519;
  --border-hairline: rgba(200, 170, 110, 0.22);
  --border-hairline-strong: rgba(200, 170, 110, 0.45);

  --text-primary: #f2ead9;
  --text-secondary: #c3b8a3;
  --text-muted: #8d8371;

  --gold: #c8aa6e;
  --gold-bright: #e6c988;
  --gold-dim: #8a744a;

  --status-good: #2fbf4f;
  --status-good-text: #7fe396;
  --status-critical: #d0453b;
  --status-critical-text: #f08a82;

  --badge-official: #c8aa6e;
  --badge-community: #4fb3a9;
  --badge-bluepost: #3f8ee0;
  --badge-pvp: #d0453b;
  --badge-pve: #3f9d6e;

  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.45);
  --shadow-panel: 0 6px 22px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(242, 234, 217, 0.04);
  --shadow-lift: 0 14px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border-hairline-strong);
  --ease: cubic-bezier(0.2, 0.75, 0.3, 1);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--page-bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.5;
  /* Sicherheitsnetz gegen einzelne zu breite Elemente (z.B. ungewrappte
     Nav-Leiste auf Mobile) - die sollen intern scrollen/umbrechen statt die
     ganze Seite horizontal aufzublähen. */
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(200, 170, 110, 0.07), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(63, 157, 110, 0.05), transparent 35%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

a { color: var(--gold-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--text-primary);
  letter-spacing: 0.3px;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #17140f 0%, #120f0b 100%);
  box-shadow: 0 1px 0 0 rgba(200, 170, 110, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.site-header::after {
  content: "";
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim) 20%, var(--gold-bright) 50%, var(--gold-dim) 80%, transparent);
  opacity: 0.55;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 20px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--gold-bright) !important;
  text-decoration: none !important;
}
.brand-mark { display: flex; align-items: center; color: var(--gold-bright); }
.brand-text strong { color: var(--text-primary); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-right: auto;
}
.main-nav a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover, .main-nav a.active {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary:hover, .nav-dropdown summary.active { color: var(--gold-bright); border-bottom-color: var(--gold); }
.nav-dropdown[open] summary { color: var(--gold-bright); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--radius-md);
  padding: 6px;
  display: flex;
  flex-direction: column;
  min-width: 160px;
  box-shadow: var(--shadow-card);
  z-index: 60;
}
.nav-dropdown-menu a {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--text-secondary);
  white-space: nowrap;
}
.nav-dropdown-menu a:hover, .nav-dropdown-menu a.active { background: var(--surface-2); color: var(--gold-bright); text-decoration: none; }

.lang-dropdown { font-size: 0.9rem; }
.lang-dropdown .nav-dropdown-menu { left: auto; right: 0; }

/* Admin-Bereich bewusst optisch abgesetzt (eigener Akzent statt Gold) -
   soll auf den ersten Blick als "nicht für alle" erkennbar sein. */
.nav-admin { margin-left: 6px; padding-left: 14px; border-left: 1px solid var(--border-hairline-strong); }
.nav-admin summary { color: #ff8000; }
.nav-admin summary:hover, .nav-admin summary.active, .nav-admin[open] summary { color: #ffb454; border-bottom-color: #ff8000; }
.nav-admin .nav-dropdown-menu { border-color: rgba(255, 128, 0, 0.45); }
.nav-admin .nav-dropdown-menu a:hover, .nav-admin .nav-dropdown-menu a.active { color: #ffb454; }

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--status-critical);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.auth-area {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.header-search { display: flex; }
.header-search input[type="search"] {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 7px 10px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  width: 150px;
}
.header-search input[type="search"]:focus { outline: 2px solid var(--gold-dim); width: 200px; }

.search-page-form { display: flex; gap: 8px; margin-top: 10px; }
.class-filter-form { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.class-filter-form label { color: var(--text-secondary); font-size: 0.85rem; }
.class-filter-form select {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 7px 10px;
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.search-page-form input[type="search"] {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  min-width: 320px;
}

.leaderboard-character-search {
  margin: 18px 0;
  padding: 16px 18px;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
}
.leaderboard-character-search-heading { margin: 0 0 4px; font-size: 1.05rem; }
.leaderboard-character-search .character-search-form { margin-top: 10px; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none !important;
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), background 150ms ease, border-color 150ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 6px 14px; font-size: 0.85rem; }

.btn-accent,
.main-nav a.btn-accent {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #241b0d;
  box-shadow: 0 2px 10px rgba(200, 170, 110, 0.25);
}
.btn-accent:hover,
.main-nav a.btn-accent:hover {
  background: linear-gradient(180deg, #f0d79a, var(--gold-bright));
  color: #241b0d;
  box-shadow: 0 6px 18px rgba(200, 170, 110, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--gold-bright);
  border-color: var(--border-hairline-strong);
}
.btn-outline:hover { background: rgba(200, 170, 110, 0.1); }

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-hairline);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--border-hairline-strong); }

/* ===== Flash messages ===== */
.flash-container { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  border: 1px solid var(--border-hairline);
}
.flash-success { background: rgba(47, 191, 79, 0.12); color: var(--status-good-text); border-color: rgba(47, 191, 79, 0.35); }
.flash-error { background: rgba(208, 69, 59, 0.12); color: var(--status-critical-text); border-color: rgba(208, 69, 59, 0.35); }
.flash-warning { background: rgba(230, 201, 136, 0.12); color: var(--gold-bright); border-color: rgba(230, 201, 136, 0.35); }

/* ===== Page header ===== */
/* padding-top/-bottom statt Shorthand, damit .container's padding-left/
   -right (0 20px) nicht überschrieben wird - <main class="container
   main-content"> trägt beide Klassen, ein padding-Shorthand hier hätte
   sonst alle vier Seiten der anderen Regel überschrieben. Live gefunden:
   dadurch hatte der Hauptinhalt bisher auf JEDER Seite/JEDER Bildschirmgröße
   0px horizontalen Randabstand statt der eigentlich vorgesehenen 20px. */
.main-content { padding-top: 32px; padding-bottom: 64px; flex: 1; }
.page-header {
  margin-bottom: 32px;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  position: relative;
}
.page-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--gold-bright), transparent);
}
.page-header h1 { font-size: 2.1rem; margin: 0; text-wrap: balance; letter-spacing: 0.4px; }
.page-subtitle { color: var(--text-secondary); margin: 0 0 8px; }
.sync-status { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px 0;
}
.pagination-status { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== Feed layout ===== */
.feed-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.filter-panel {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 18px;
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  font-weight: 600;
}

#search-input, #sort-select {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
}
#search-input:focus, #sort-select:focus { outline: 2px solid var(--gold-dim); }

.chip-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color 150ms var(--ease), color 150ms var(--ease), background 150ms var(--ease), transform 150ms var(--ease);
}
.chip:hover { border-color: var(--border-hairline-strong); color: var(--text-primary); transform: translateY(-1px); }
.chip.active { box-shadow: 0 2px 10px rgba(200, 170, 110, 0.3); }
.chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #241b0d;
  font-weight: 600;
}
.chip-select[data-filter="types"] .chip.active.chip-pvp { background: var(--badge-pvp); border-color: var(--badge-pvp); color: #fff; }
.chip-select[data-filter="types"] .chip.active.chip-pve { background: var(--badge-pve); border-color: var(--badge-pve); color: #fff; }

.class-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 4px;
}
.class-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  padding: 6px 8px;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
}
.class-toggle .class-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--class-color);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4);
  flex-shrink: 0;
}
.class-toggle:hover { border-color: var(--class-color); color: var(--text-primary); }
.class-toggle.active {
  border-color: var(--class-color);
  background: color-mix(in srgb, var(--class-color) 18%, var(--surface-2));
  color: var(--text-primary);
  font-weight: 600;
}

.feed-status { min-height: 20px; color: var(--text-muted); font-size: 0.85rem; margin-bottom: 10px; }

/* ===== Card grid ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.onboarding-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.onboarding-step { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 200px; }
.onboarding-step-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #241b0d;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.onboarding-step strong { display: block; font-size: 0.92rem; }
.onboarding-step p { margin: 2px 0 0; font-size: 0.8rem; color: var(--text-muted); }
.onboarding-cta { flex-shrink: 0; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.dashboard-tile {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-1) 55%);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-panel);
  transition: box-shadow 220ms var(--ease), border-color 220ms var(--ease), transform 220ms var(--ease);
}
.dashboard-tile:hover { border-color: var(--border-hairline-strong); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.dashboard-tile h2 { font-size: 1.05rem; margin: 0 0 12px; }
.dashboard-tile-sub { font-size: 0.75rem; font-weight: 400; }
.dashboard-tile-link { margin-top: 12px; display: inline-block; }
.dashboard-token-value { font-size: 1.6rem; }
.dashboard-tile .reset-countdown-widget { background: none; border: none; padding: 0; }
.dashboard-event-title { font-size: 1.1rem; font-weight: 600; color: var(--gold-bright); margin: 4px 0; }
.dashboard-event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.dashboard-event-list li + li { padding-top: 10px; border-top: 1px solid var(--border-hairline); }
.dashboard-event-list .dashboard-event-title { margin: 0; }
.affix-icon { width: 22px; height: 22px; border-radius: 4px; object-fit: cover; flex-shrink: 0; }
.dashboard-region-form { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.dashboard-region-form .field-label { margin: 0; }
.dashboard-region-form select {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 5px 8px;
  font-family: var(--font-body);
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--border-hairline-strong); transform: translateY(-2px); }

.card-image-link { display: block; }
.card-image {
  height: 150px;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
}
.card-image-placeholder {
  display: flex; align-items: center; justify-content: center;
  font-size: 2.2rem; color: var(--gold-dim);
}

.card-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }

.card-badges, .card-classes { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  color: #16130d;
}
.badge-official { background: var(--badge-official); }
.badge-community { background: var(--badge-community); color: #0d1620; }
.badge-bluepost { background: var(--badge-bluepost); color: #fff; }
.badge-pvp { background: var(--badge-pvp); color: #fff; }
.badge-pve { background: var(--badge-pve); color: #fff; }
.badge-pinned { background: var(--gold); color: #241b0d; }
.badge-poll { background: var(--badge-community); color: #0d1620; }

.card-author-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--text-muted) !important;
  text-decoration: none !important;
}
.card-author-link:hover .card-author { text-decoration: underline; color: var(--text-primary); }
.rank-badge.mini { padding: 1px 5px; font-size: 0.7rem; }

.pinned-section { margin-bottom: 28px; }
.pinned-heading { font-size: 1.1rem; margin: 0 0 12px; color: var(--gold-bright); }

.card-title { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.card-title a { color: var(--text-primary); }
.card-title a:hover { color: var(--gold-bright); }

.card-summary {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.class-chip {
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--class-color);
  color: var(--class-color);
  background: color-mix(in srgb, var(--class-color) 12%, transparent);
}

.content-tag-chip {
  font-size: 0.72rem;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--border-hairline-strong);
  color: var(--text-secondary);
  background: var(--surface-2);
}

.feedback-status-chip {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.72rem; font-weight: 600; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border-hairline-strong);
}
.feedback-status-chip.feedback-status-open { color: var(--gold-bright); border-color: var(--gold-dim); background: rgba(230, 201, 136, 0.1); }
.feedback-status-chip.feedback-status-planned { color: #6ea8d8; border-color: #6ea8d8; background: rgba(110, 168, 216, 0.12); }
.feedback-status-chip.feedback-status-done { color: var(--status-good-text, #6fd8a0); border-color: #6fd8a0; background: rgba(111, 216, 160, 0.12); }
.feedback-status-chip.feedback-status-declined { color: var(--text-muted); border-color: var(--border-hairline); background: var(--surface-2); }

.card-footer { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 1px solid var(--border-hairline); }
.card-meta-line { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 6px; align-items: center; }
.card-dot { opacity: 0.6; }

.card-votes { display: flex; align-items: center; gap: 8px; }
.vote-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.8rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.vote-btn:hover { border-color: var(--border-hairline-strong); color: var(--text-primary); }
.vote-btn.like.active { background: color-mix(in srgb, var(--status-good) 25%, var(--surface-2)); border-color: var(--status-good); color: var(--status-good-text); }
.vote-btn.dislike.active { background: color-mix(in srgb, var(--status-critical) 25%, var(--surface-2)); border-color: var(--status-critical); color: var(--status-critical-text); }
.vote-btn[data-auth="false"] { opacity: 0.7; cursor: pointer; }

.card-comments { font-size: 0.8rem; color: var(--text-muted); margin-left: auto; }
.card-source-link { font-size: 0.8rem; color: var(--text-muted); }
.card-source-link:hover { color: var(--gold-bright); }

/* Dichte Listenansicht für Blueposts, angelehnt an wowhead.com/blue-tracker
   (eine Zeile pro Thread statt große Bild-Karten - Titel+Tags links,
   Autor/Datum/Votes/Quelle rechts). */
.bluepost-list { display: flex; flex-direction: column; }
.bluepost-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border-hairline);
  transition: background 120ms var(--ease);
}
.bluepost-row:hover { background: var(--surface-1); }
.bluepost-row-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.bluepost-row-title {
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.bluepost-row-title:hover { color: var(--gold-bright); }
.bluepost-row-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.bluepost-row-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.bluepost-row-author { color: var(--text-secondary); }
.bluepost-row-comments, .bluepost-row-source { color: var(--text-muted); }
.bluepost-row-comments:hover, .bluepost-row-source:hover { color: var(--gold-bright); }
.vote-btn.sm { padding: 3px 8px; font-size: 0.75rem; }
@media (max-width: 640px) {
  .bluepost-row { align-items: flex-start; }
  .bluepost-row-meta { flex-wrap: wrap; white-space: normal; }
}

.empty-state { color: var(--text-muted); font-style: italic; padding: 30px 0; }

/* ===== Detail page ===== */
.detail-card {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 32px;
}
.detail-image { height: 320px; background-size: cover; background-position: center; }
.detail-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.detail-title { margin: 0; font-size: 1.9rem; }
.detail-summary { font-size: 1.05rem; color: var(--text-secondary); }
.detail-content { color: var(--text-primary); line-height: 1.7; }

.vote-panel { display: flex; gap: 12px; margin-top: 8px; }
.vote-panel .vote-btn { padding: 9px 18px; font-size: 0.95rem; }

.vote-meter-wrap { max-width: 420px; }
.vote-meter-wrap.compact { max-width: 100%; margin-top: 6px; }
.vote-meter {
  height: 10px;
  border-radius: 999px;
  background: var(--status-critical);
  overflow: hidden;
}
.vote-meter-fill { height: 100%; background: var(--status-good); }
.vote-meter-labels { display: flex; gap: 16px; font-size: 0.82rem; margin-top: 6px; flex-wrap: wrap; }
.vote-good { color: var(--status-good-text); }
.vote-critical { color: var(--status-critical-text); }
.rank-score { color: var(--text-muted); margin-left: auto; }

/* ===== Umfragen ===== */
.poll-panel {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin: 6px 0;
}
.poll-question { margin: 0 0 14px; font-size: 1.1rem; }
.poll-options { display: flex; flex-direction: column; gap: 8px; }
.poll-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.92rem;
  cursor: pointer;
  overflow: hidden;
}
.poll-option:hover { border-color: var(--border-hairline-strong); }
.poll-option.voted { border-color: var(--gold); }
.poll-option-bar {
  position: absolute;
  inset: 0;
  width: 0;
  background: color-mix(in srgb, var(--gold) 22%, transparent);
  transition: width 0.25s ease;
  z-index: 0;
}
.poll-option-label, .poll-option-stats { position: relative; z-index: 1; }
.poll-option-stats { color: var(--text-muted); font-size: 0.82rem; white-space: nowrap; }
.poll-total { color: var(--text-muted); font-size: 0.82rem; margin: 10px 0 0; }

/* ===== Comments ===== */
.comments-section h2 { font-size: 1.3rem; margin-bottom: 14px; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.comment-form textarea {
  background: var(--surface-2); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); color: var(--text-primary); padding: 10px 12px;
  font-family: var(--font-body); resize: vertical;
}
.comment-form .btn { align-self: flex-end; }
.login-hint { color: var(--text-secondary); margin-bottom: 20px; }

.comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.comment {
  background: var(--surface-1); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 14px 18px;
  box-shadow: var(--shadow-panel);
  transition: border-color 220ms var(--ease);
}
.comment:hover { border-color: var(--border-hairline-strong); }
.comment-meta { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.comment-content { color: var(--text-primary); }

.comment-vote-panel { display: flex; gap: 6px; margin-top: 8px; }
.comment-vote-btn {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: var(--font-body);
}
.comment-vote-btn:hover { border-color: var(--border-hairline-strong); color: var(--text-primary); }
.comment-vote-btn.like.active { background: color-mix(in srgb, var(--status-good) 25%, var(--surface-2)); border-color: var(--status-good); color: var(--status-good-text); }
.comment-vote-btn.dislike.active { background: color-mix(in srgb, var(--status-critical) 25%, var(--surface-2)); border-color: var(--status-critical); color: var(--status-critical-text); }

.reply-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 20px;
  border-left: 2px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.reply-form-slot:empty { display: none; }
.reply-form-slot { margin-top: 10px; }

/* ===== Forms ===== */
.form-page { max-width: 640px; }
.form-page-narrow { max-width: 420px; margin: 0 auto; }
.update-form { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; }
.field-label { font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-top: 12px; }
.update-form input[type="text"],
.update-form input[type="email"],
.update-form input[type="password"],
.update-form input[type="url"],
.update-form input[type="datetime-local"],
.update-form select,
.update-form textarea {
  background: var(--surface-2); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); color: var(--text-primary); padding: 10px 12px;
  font-family: var(--font-body); font-size: 0.95rem;
}
.update-form textarea { resize: vertical; }
.update-form .btn { margin-top: 18px; align-self: flex-start; }
.form-footnote { color: var(--text-secondary); margin-top: 16px; }

.field-group { border: 1px solid var(--border-hairline); border-radius: var(--radius-md); padding: 14px 16px; margin-top: 14px; background: var(--surface-1); box-shadow: var(--shadow-panel); }
.field-group legend { padding: 0 6px; }
.class-checkboxes { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; margin-top: 8px; }
.class-checkbox { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; }
.class-checkbox .class-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--class-color); }
.inline-checkbox { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; color: var(--text-secondary); }
.tag-checkbox-group { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.tag-checkbox { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-secondary); cursor: pointer; }

.form-hint { font-size: 0.8rem; color: var(--text-muted); margin: 6px 0 10px; }
.poll-option-inputs { display: flex; flex-direction: column; gap: 8px; }
.poll-option-inputs input { margin-top: 0; }

.pull-row-list { display: flex; flex-direction: column; gap: 8px; }
.pull-row { display: grid; grid-template-columns: 2fr 120px 90px 2fr auto; gap: 8px; align-items: center; }
.pull-row input, .pull-row select { margin-top: 0; }
@media (max-width: 640px) { .pull-row { grid-template-columns: 1fr; } }
.profession-item-row { grid-template-columns: 2fr 90px 110px 1.5fr auto; }
@media (max-width: 640px) { .profession-item-row { grid-template-columns: 1fr; } }

/* ===== Stats page ===== */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-bottom: 32px;
}
.stat-tile {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.stat-value { font-size: 1.8rem; font-weight: 700; font-family: var(--font-display); }
.stat-label { color: var(--text-muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-tile.good .stat-value { color: var(--status-good-text); }
.stat-tile.critical .stat-value { color: var(--status-critical-text); }

.rank-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rank-column h2 { font-size: 1.1rem; margin-bottom: 12px; }
.rank-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.rank-row {
  background: var(--surface-1); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 10px 14px;
}
.rank-title { color: var(--text-primary); font-weight: 600; font-size: 0.9rem; }

.friend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
a.friend-row { text-decoration: none; color: inherit; }
a.friend-row:hover { border-color: var(--border-hairline-strong); }
.friend-row-preview {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-muted);
}

.comment.dm-own { border-left: 3px solid var(--gold); background: var(--surface-2); }
#dm-thread { max-height: 60vh; overflow-y: auto; scroll-behavior: smooth; }
.dm-privacy-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 14px;
}

/* ===== Rangliste ===== */
.leaderboard-columns { grid-template-columns: repeat(2, 1fr); }
.leaderboard-list { gap: 8px; }
.leaderboard-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
}
.leaderboard-medal { width: 28px; text-align: center; font-weight: 700; color: var(--text-muted); flex-shrink: 0; }
.leaderboard-score { margin-left: auto; color: var(--text-muted); font-size: 0.82rem; white-space: nowrap; }

/* ===== Sentiment-Trend-Chart ===== */
.sentiment-trend-panel { margin-bottom: 32px; }
.sentiment-chart { width: 100%; height: 200px; margin-top: 12px; }
.sentiment-baseline { stroke: var(--border-hairline-strong); stroke-width: 1; stroke-dasharray: 4 4; }
.sentiment-line { fill: none; stroke: var(--gold); stroke-width: 2; }
.sentiment-line.good { stroke: var(--status-good); }
.sentiment-line.critical { stroke: var(--status-critical); }
.sentiment-point { stroke: var(--surface-1); stroke-width: 1.5; cursor: default; }
.sentiment-point.good { fill: var(--status-good); }
.sentiment-point.critical { fill: var(--status-critical); }

.stat-trend-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-trend-panel {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px;
}
.stat-trend-panel h3 { margin: 0 0 6px; font-size: 0.95rem; display: flex; justify-content: space-between; align-items: baseline; }
.stat-trend-latest { color: var(--gold-bright); font-family: var(--font-body); font-weight: 700; }
.stat-trend-chart { width: 100%; height: 90px; }

/* ===== Update der Woche ===== */
.announcement-banner {
  background: linear-gradient(180deg, var(--gold-dim), var(--gold));
  color: #241b0d;
  font-weight: 600;
  font-size: 0.9rem;
}
.announcement-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 8px 16px;
  text-align: center;
}
.announcement-banner-close {
  background: transparent;
  border: 1px solid rgba(36, 27, 13, 0.4);
  border-radius: var(--radius-md);
  color: inherit;
  cursor: pointer;
  padding: 0 8px;
  font-weight: 700;
  line-height: 1.6;
}
.announcement-banner-close:hover { background: rgba(36, 27, 13, 0.15); }

.ad-consent-banner .announcement-banner-inner { flex-wrap: wrap; }
.ad-consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.ad-consent-banner a { color: inherit; text-decoration: underline; }

.cookie-consent-banner .announcement-banner-inner { flex-wrap: wrap; }
.cookie-consent-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-consent-banner a { color: inherit; text-decoration: underline; }

.flash-error-row td { color: var(--status-critical-text); }

.pageview-heatmap { display: flex; flex-direction: column; gap: 3px; margin-top: 12px; overflow-x: auto; }
.pageview-heatmap-row { display: grid; grid-template-columns: 28px repeat(24, minmax(10px, 1fr)); gap: 3px; align-items: center; }
.pageview-heatmap-label { font-size: 0.75rem; color: var(--text-secondary); }
.pageview-heatmap-cell {
  width: 100%;
  aspect-ratio: 1;
  min-width: 10px;
  border-radius: 2px;
  background: var(--gold);
  cursor: default;
}

.announcement-admin-panel, .officer-hub-section {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.current-announcement { color: var(--text-secondary); }
.officer-hub-sync-buttons, .officer-hub-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.announcement-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.announcement-form input[type="text"] { flex: 1; min-width: 180px; }
.announcement-form input[type="date"],
.announcement-form input[type="url"] {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  border-radius: var(--radius-md);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  min-width: 160px;
}

.character-profile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.uow-archive-link { font-size: 0.85rem; margin-bottom: 10px; }

.token-history-panel { max-width: 620px; margin-bottom: 8px; }

.achievement-category-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.achievement-category-row { display: grid; grid-template-columns: 160px 1fr 130px; align-items: center; gap: 10px; font-size: 0.85rem; }
.achievement-category-name { color: var(--text-secondary); }
.achievement-category-count { color: var(--text-muted); text-align: right; font-size: 0.78rem; }

.rsvp-panel { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-hairline); }
.rsvp-buttons, .rsvp-role-picker { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.rsvp-btn, .rsvp-role-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 10px;
  font-size: 0.82rem;
}
.rsvp-btn.active, .rsvp-role-btn.active { border-color: var(--status-good); background: rgba(47, 191, 79, 0.12); color: var(--status-good-text); }
.rsvp-role-counts { font-size: 0.82rem; color: var(--text-muted); margin: 4px 0; }
.consumables-checklist-wrap { margin-top: 8px; }
.consumables-checklist-wrap summary { cursor: pointer; font-size: 0.85rem; color: var(--gold-bright); }
.consumables-checklist-wrap .weekly-checklist { margin-top: 8px; }

.tierlist-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-family: var(--font-display);
}
.tierlist-badge.tier-S { background: #e0475a; color: #fff; }
.tierlist-badge.tier-A { background: #e0873f; color: #241b0d; }
.tierlist-badge.tier-B { background: #e0c93f; color: #241b0d; }
.tierlist-badge.tier-C { background: #6fae4e; color: #0d1a08; }
.tierlist-badge.tier-D { background: #6a7381; color: #fff; }
.tierlist-vote-buttons { display: flex; gap: 4px; }
.tierlist-vote-btn {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  cursor: pointer;
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  font-weight: 700;
}
.tierlist-vote-btn.active { border-color: var(--gold); background: rgba(200, 170, 110, 0.2); color: var(--gold-bright); }

.tierlist-expand-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 0 6px;
}
.tierlist-expand-btn:hover { color: var(--gold-bright); }
.tierlist-spec-subrow td { padding: 8px 8px 14px; background: var(--surface-1); }
.tierlist-spec-table { margin-left: 30px; width: calc(100% - 30px); }
.tierlist-spec-table th, .tierlist-spec-table td { font-size: 0.88rem; }

.role-icon { width: 20px; height: 20px; border-radius: 4px; vertical-align: middle; border: 1px solid var(--border-hairline); }
.role-icon-unknown {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border-radius: 4px; vertical-align: middle;
  border: 1px solid var(--border-hairline); color: var(--text-muted);
  font-size: 0.7rem; cursor: help;
}

.gallery-image { width: 100%; height: 180px; object-fit: cover; background: var(--surface-3); display: block; }
.gallery-video { width: 100%; height: 180px; object-fit: cover; background: #000; display: block; }
.gallery-preview-box {
  max-width: 320px;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 8px;
}
.gallery-preview-box .form-hint { margin: 0; padding: 10px 12px; }
.gallery-embed-wrap { position: relative; width: 100%; padding-top: 56.25%; background: var(--surface-3); }
.gallery-embed-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.gallery-twitch-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  background: var(--surface-2);
  color: var(--gold-bright);
  font-weight: 600;
  text-decoration: none;
}

.week-winner-banner {
  background: var(--surface-1);
  border: 1px solid var(--gold);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.week-vote-panel { margin-bottom: 20px; }
.week-vote-option.voted { border-color: var(--gold); }

/* ===== Reset-Countdown-Widget ===== */
.reset-countdown-widget {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.reset-row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-secondary); }
.reset-region { font-weight: 600; }
.reset-time { font-variant-numeric: tabular-nums; color: var(--gold-bright); }
.reset-hint { font-size: 0.72rem; color: var(--text-muted); margin: 4px 0 0; }
.reset-subheading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  margin: 6px 0 0;
}
.reset-subheading:first-of-type { margin-top: 2px; }

.weekly-checklist {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.weekly-checklist label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.weekly-checklist input[type="checkbox"]:checked + label,
.weekly-checklist label:has(input:checked) { color: var(--status-good-text); text-decoration: line-through; }

.guide-content {
  color: var(--text-secondary);
  line-height: 1.7;
  white-space: pre-line;
  max-width: 780px;
  margin: 16px 0 24px;
}

.pull-diagram-panel { margin: 16px 0 24px; }
.pull-diagram-heading { margin: 0 0 2px; font-size: 1.2rem; }
/* Vertikale Zeitleiste statt horizontaler Kette (User-Feedback: "klarere
   visuelle Zeitleiste") - eine durchgehende Linie hinter den Icons via
   ::before, jeder Pull eine Zeile mit Icon links, Label/Notiz rechts. */
.pull-route-diagram {
  display: flex; flex-direction: column; gap: 0;
  list-style: none; margin: 14px 0 0; padding: 0;
}
.pull-node {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 9px 4px; position: relative; text-align: left;
  background: none; border: none; border-radius: 0;
}
.pull-node::before {
  content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px;
  background: var(--border-hairline-strong); z-index: 0;
}
.pull-node:first-child::before { top: 50%; }
.pull-node:last-child::before { bottom: 50%; }
.pull-node.boss::before { background: var(--status-critical); }
.pull-node-index {
  width: 26px; height: 26px; line-height: 26px; border-radius: 50%;
  background: var(--surface-3); color: var(--gold-bright);
  font-weight: 700; font-size: 0.85rem; text-align: center; flex-shrink: 0;
  position: relative; z-index: 1; border: 2px solid var(--surface-1);
}
.pull-node-label { font-size: 0.88rem; color: var(--text-primary); font-weight: 600; }
.pull-node-note { display: block; font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }
.pull-node.boss .pull-node-index { background: var(--status-critical); color: #fff; }
.pull-node.boss .pull-node-label { color: var(--status-critical-text, var(--status-critical)); }
.pull-node-portrait {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  border: 2px solid var(--status-critical); box-shadow: 0 0 8px rgba(208, 69, 59, 0.4);
  position: relative; z-index: 1; background: var(--surface-1);
}

.route-stats-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 10px 0 4px; }
.route-stat { font-size: 0.85rem; color: var(--text-secondary); }
.route-stat strong { color: var(--gold-bright); font-family: var(--font-display); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Farb-Cluster je Boss-Abschnitt (kein Kartenhintergrund, nur Einfärbung
   der Zeitleiste selbst - siehe route_diagram()-Kommentar im Makro). Die
   Timeline-Linie (::before) und der Index-Kreis übernehmen die Segment-
   Farbe, Boss-Zeilen bleiben unabhängig davon rot markiert. */
.pull-node.segment-0:not(.boss) .pull-node-index { background: color-mix(in srgb, #c9a35f 55%, var(--surface-3)); }
.pull-node.segment-1:not(.boss) .pull-node-index { background: color-mix(in srgb, #6ea8d8 55%, var(--surface-3)); }
.pull-node.segment-2:not(.boss) .pull-node-index { background: color-mix(in srgb, #8a6fd8 55%, var(--surface-3)); }
.pull-node.segment-3:not(.boss) .pull-node-index { background: color-mix(in srgb, #6fd8a0 55%, var(--surface-3)); }
.pull-node.segment-4:not(.boss) .pull-node-index { background: color-mix(in srgb, #d87f6f 55%, var(--surface-3)); }
.pull-node.segment-5:not(.boss) .pull-node-index { background: color-mix(in srgb, #d8c76f 55%, var(--surface-3)); }
.pull-node.segment-0:not(.boss)::before { background: color-mix(in srgb, #c9a35f 60%, var(--border-hairline-strong)); }
.pull-node.segment-1:not(.boss)::before { background: color-mix(in srgb, #6ea8d8 60%, var(--border-hairline-strong)); }
.pull-node.segment-2:not(.boss)::before { background: color-mix(in srgb, #8a6fd8 60%, var(--border-hairline-strong)); }
.pull-node.segment-3:not(.boss)::before { background: color-mix(in srgb, #6fd8a0 60%, var(--border-hairline-strong)); }
.pull-node.segment-4:not(.boss)::before { background: color-mix(in srgb, #d87f6f 60%, var(--border-hairline-strong)); }
.pull-node.segment-5:not(.boss)::before { background: color-mix(in srgb, #d8c76f 60%, var(--border-hairline-strong)); }
.pull-node-forces {
  display: inline-block; margin-left: 8px; font-size: 0.72rem; font-weight: 700;
  color: var(--gold-bright); background: rgba(230, 201, 136, 0.12);
  border: 1px solid var(--gold-dim); border-radius: 999px; padding: 1px 7px;
}

.spec-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.spec-picker-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--class-color, var(--gold-bright));
  background: linear-gradient(155deg, color-mix(in srgb, var(--class-color, var(--gold)) 14%, var(--surface-2)), var(--surface-1) 65%);
  text-decoration: none !important;
  color: inherit;
  box-shadow: var(--shadow-panel);
  transition: transform 180ms var(--ease), box-shadow 180ms var(--ease), border-color 180ms var(--ease);
}
.spec-picker-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
  border-left-color: var(--class-color, var(--gold-bright));
}
.spec-picker-name { font-size: 1.15rem; font-weight: 700; color: var(--class-color, var(--text-primary)); font-family: var(--font-display); }
.spec-picker-cta { font-size: 0.8rem; color: var(--text-muted); }
.spec-picker-card:hover .spec-picker-cta { color: var(--gold-bright); }

.mplus-instance-nav { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.mplus-instance-picker { flex: 1; overflow-x: auto; flex-wrap: nowrap; margin: 0; }
.mplus-featured-route {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-1) 60%);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-lift);
  margin-bottom: 20px;
}
.mplus-featured-header h2 { margin: 8px 0 4px; }
.pull-diagram-featured .pull-node-index,
.pull-diagram-featured .pull-node-portrait { width: 32px; height: 32px; line-height: 32px; font-size: 0.95rem; }
.pull-diagram-featured .pull-node-label { font-size: 0.92rem; }

.talent-code-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0;
  overflow-x: auto;
}
.talent-code-box code { flex: 1; color: var(--text-secondary); font-size: 0.85rem; word-break: break-all; }
.talent-build-card { border-top: 3px solid var(--class-color, var(--gold)); }

.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin: 10px 0 20px;
}
.equipment-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  font-size: 0.85rem;
}
.equipment-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid var(--border-hairline-strong);
  object-fit: cover;
}
.equipment-icon-placeholder { background: var(--surface-3); }
.equipment-slot-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.equipment-slot-name { color: var(--text-muted); font-size: 0.72rem; }
.equipment-item-name { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.equipment-ilvl { color: var(--text-muted); font-size: 0.75rem; flex-shrink: 0; }

/* Layout wie wowhead.com/talent-calc: EIN gemeinsamer dunkler Canvas für
   alle drei Bäume (kein Panel-pro-Baum-Card-Look mehr) - live gegen die
   echte Seite geprüft (dragonflight-talent-trees: ein durchgehender
   dunkler Hintergrund mit Vignette-Schatten, die einzelnen Baum-Spalten
   selbst sind komplett transparent, nur die Titelzeile jedes Baums hat
   eine eigene, leicht hellere Kopfleiste). */
.talent-tree-wrap {
  display: flex;
  /* NICHT wrap: die drei Bäume sollen immer in einer Reihe bleiben (Klasse |
     Hero | Spezialisierung) - fitTalentTrees() in main.js skaliert per
     CSS-zoom passend herunter statt umzubrechen. Mit flex-wrap:wrap hier
     würde scrollWidth beim Messen bereits die umgebrochene (schmalere)
     Breite liefern, was die Zoom-Berechnung unterlaufen und die Bäume
     untereinander statt nebeneinander landen lassen würde. */
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 20px;
  overflow-x: auto;
  max-width: 100%;
  padding: 16px;
  margin: 16px 0 24px;
  zoom: 0.85;
  background: linear-gradient(165deg, #241615, #1a1211 60%);
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 40px 12px rgba(0, 0, 0, 0.65), 0 4px 18px rgba(0, 0, 0, 0.4);
}
/* Auf der eigenständigen Talent-Calculator-Seite (main.js: #talent-calc-root
   ist nur dort vorhanden, nicht bei der eingebetteten Anzeige auf der
   Charakterseite) darf der Baum-Bereich die normale Content-Spalte (max.
   1240px, siehe .container) verlassen, damit auf schmalen Screens vor dem
   Herunterskalieren möglichst viel Platz zur Verfügung steht. Seit der
   Grid-Normalisierung (siehe wow_data.py: _build_tree_panel/
   _build_calculator_tree) braucht der Inhalt aber meist deutlich weniger
   als die volle Breite - eine feste width:100vw hätte dann eine große,
   sichtbar leere dunkle Fläche neben dem eigentlichen Inhalt hinterlassen
   (User-Feedback: "füllt das Feld den kompletten Screen... bitte
   zentriert"). width:fit-content + die klassische left:50%/
   translateX(-50%)-Zentrierung lässt die Box (samt Hintergrund/Rand/
   Schatten) auf ihren tatsächlichen Inhalt schrumpfen, bleibt dabei aber
   relativ zum VIEWPORT zentriert statt zum enger begrenzten .container -
   eine reine margin:auto-Zentrierung würde das nicht schaffen, weil die
   Box durch den Container-Ausbruch keinen normalen Elternrahmen mehr hat,
   an dem sich auto-Margins ausrichten könnten. */
#talent-calc-root {
  width: fit-content;
  max-width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}
/* User-Feedback: Anordnung (Klasse | Hero | Spezialisierung nebeneinander)
   ist gut, die drei Bereiche sollen nur enger zusammenrücken - kleinerer
   Abstand/Rand nur auf der eigenständigen Calculator-Seite, die eingebettete
   Ansicht auf der Charakterseite (gleiche .talent-tree-wrap-Klasse) bleibt
   unverändert. */
/* #talent-calc-root SITZT auf dem .talent-tree-wrap-Element selbst (kein
   Nachfahre) - Compound-Selektor statt Nachfahren-Kombinator nötig, sonst
   matcht die Regel nie (live als still fehlschlagende Regel entdeckt:
   computed style blieb bei 20px/16px trotz korrekt geladenem CSS). */
.talent-tree-wrap#talent-calc-root {
  gap: 8px;
  padding: 12px;
  /* Seit der Grid-Normalisierung (siehe Kommentar in wow_data.py:
     _build_tree_panel/_build_calculator_tree) ist der Inhalt oft deutlich
     schmaler als die volle 100vw-Breite dieses Full-Bleed-Containers -
     .talent-tree-wrap ist display:flex ohne justify-content, Default
     flex-start hängt die drei Panels dann links an statt sie im
     verfügbaren Platz zu zentrieren (User-Feedback: "füllt das Feld den
     kompletten Screen aus... bitte zentriert"). */
  justify-content: center;
}
#talent-calc-root .talent-panel-header {
  padding: 6px 10px;
  margin-bottom: 6px;
}
.talent-panel {
  flex-shrink: 0;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
}
.talent-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 8px 12px;
  margin-bottom: 10px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm, 6px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 1px 0 rgba(0, 0, 0, 0.5);
}
.talent-panel-name { color: var(--gold-bright); font-weight: 700; }
.talent-panel-spent strong { color: var(--gold-bright); }
.talent-panel-canvas { position: relative; }
.talent-edges { position: absolute; top: 0; left: 0; pointer-events: none; }
.talent-edge { stroke: var(--border-hairline-strong); stroke-width: 2; }
.talent-edge.active { stroke: var(--gold); stroke-width: 2.5; filter: drop-shadow(0 0 2px rgba(200, 170, 110, 0.5)); }

.talent-node {
  position: absolute;
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border: 2px solid var(--border-hairline-strong);
  cursor: default;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}
.talent-node.circle { border-radius: 50%; overflow: hidden; }
.talent-node.diamond { transform: rotate(45deg); border-radius: 5px; overflow: hidden; }
.talent-node-inner { width: 100%; height: 100%; }
.talent-node.diamond .talent-node-inner { transform: rotate(-45deg); }
.talent-node img { width: 100%; height: 100%; object-fit: cover; display: block; }
.talent-node.unselected img { filter: grayscale(0.7) brightness(0.85); }
.talent-node.locked img { filter: grayscale(0.9) brightness(0.55); }
.talent-node.unselected { border-color: var(--border-hairline); opacity: 0.85; }
.talent-node.selected { border-color: var(--gold-bright); box-shadow: 0 0 9px rgba(230, 201, 136, 0.75); }
.talent-node-rank {
  position: absolute;
  bottom: -6px;
  right: -6px;
  background: #171310;
  color: var(--gold-bright);
  font-size: 0.62rem;
  font-weight: 700;
  border: 1px solid var(--gold-dim);
  border-radius: 999px;
  padding: 1px 4px;
  line-height: 1.2;
}

.talent-tree-wrap.compact-talents { zoom: 0.55; }

.talent-node.available { cursor: pointer; border-color: var(--gold-dim); }
.talent-node.available:hover { border-color: var(--gold); transform: scale(1.05); }
.talent-node.diamond.available:hover { transform: rotate(45deg) scale(1.05); }
.talent-node.locked { cursor: not-allowed; opacity: 0.45; }
.talent-node.selected { cursor: pointer; }
.talent-choice-swap {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  font-size: 0.65rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}
.talent-choice-swap:hover { border-color: var(--gold); }

.talent-calc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 10px 14px;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}
.talent-calc-spent { font-size: 0.9rem; color: var(--text-secondary); }
.talent-calc-spent strong { color: var(--gold-bright); }
.talent-calc-total {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--class-color, var(--gold-dim));
  background: color-mix(in srgb, var(--class-color, var(--gold)) 16%, var(--surface-2));
}
.talent-calc-total strong { color: var(--class-color, var(--gold-bright)); font-size: 1.1rem; font-family: var(--font-display); }
.talent-hero-panel { display: flex; flex-direction: column; }
.talent-hero-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 8px 12px 4px;
  margin-bottom: 0;
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm, 6px) var(--radius-sm, 6px) 0 0;
}
.talent-hero-panel .talent-panel-header { margin-top: 0; border-radius: 0 0 var(--radius-sm, 6px) var(--radius-sm, 6px); }
.talent-hero-selector .talent-panel-name { font-size: 0.95rem; min-width: 100px; text-align: center; }
.talent-hero-arrow {
  background: var(--surface-2);
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  border-radius: 50%;
  width: 26px;
  height: 26px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.talent-hero-arrow:hover { border-color: var(--gold); background: var(--surface-1); }

.talent-calc-title-input {
  flex: 1 1 200px;
  min-width: 160px;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 6px 10px;
}

.compare-toggle { margin: 12px 0 20px; }
.compare-toggle summary { cursor: pointer; color: var(--gold-bright); font-size: 0.88rem; }
.compare-toggle .character-search-form { margin-top: 10px; }
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.compare-grid > div { min-width: 0; }
@media (max-width: 900px) { .compare-grid { grid-template-columns: 1fr; } }

.recruitment-list { display: flex; flex-direction: column; gap: 14px; }
.event-card.event-ongoing { border-color: var(--status-good); }
.recruitment-card {
  display: block;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  text-decoration: none !important;
  color: inherit;
  transition: border-color 0.15s ease;
}
a.recruitment-card:hover { border-color: var(--border-hairline-strong); }
.recruitment-card-header h3 { margin: 8px 0 4px; }
.recruitment-description { color: var(--text-secondary); white-space: pre-line; }
.recruitment-contact { color: var(--text-primary); font-size: 0.9rem; }

.todo-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.todo-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}
.todo-check-btn {
  background: none;
  border: none;
  color: var(--gold-bright);
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.todo-text { flex: 1; }
.todo-row.todo-done .todo-text { color: var(--text-muted); text-decoration: line-through; }
.todo-toggle-form { display: flex; }

.pet-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.pet-type-card {
  background: linear-gradient(165deg, var(--surface-2), var(--surface-1) 60%);
  border: 1px solid var(--border-hairline);
  border-top: 3px solid var(--pet-color, var(--gold-bright));
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-panel);
}
.pet-type-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pet-type-icon { font-size: 1.5rem; }
.pet-type-name { font-weight: 600; font-size: 1.05rem; color: var(--pet-color, var(--text-primary)); }
.pet-type-line { margin: 4px 0; font-size: 0.9rem; color: var(--text-secondary); }
.pet-type-strong { color: var(--status-good-text); }
.pet-type-weak { color: var(--status-critical-text); }
.pet-type-line strong { color: var(--text-primary); }

.realm-status-badge {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  align-self: center;
}
.realm-status-badge.up { color: var(--status-good-text); }
.realm-status-badge.down { color: var(--status-critical-text); }

.guild-header-card {
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 20px;
}
.guild-header-card h2 { margin: 0 0 6px; }
.guild-header-meta { color: var(--text-secondary); margin: 0; }

.affix-widget {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.affix-list, .live-stream-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.live-stream-list li { font-size: 0.82rem; }
.affix-list li { font-size: 0.82rem; color: var(--text-secondary); display: flex; align-items: center; gap: 8px; }
.affix-level {
  background: var(--surface-3);
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}

.token-price-value {
  margin: 6px 0 2px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--gold-bright);
}

.weekly-challenge-widget {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.weekly-challenge-widget.done { border-color: var(--status-good); }
.challenge-name { margin: 6px 0 2px; font-weight: 600; color: var(--gold-bright); font-size: 0.9rem; }
.challenge-desc { margin: 0 0 8px; font-size: 0.8rem; color: var(--text-secondary); }
.challenge-progress-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.challenge-progress-fill { height: 100%; background: var(--gold); border-radius: 999px; transition: width 0.2s ease; }
.weekly-challenge-widget.done .challenge-progress-fill { background: var(--status-good); }
.challenge-progress-label { margin: 6px 0 0; font-size: 0.78rem; color: var(--text-muted); }
.weekly-challenge-widget.done .challenge-progress-label { color: var(--status-good-text); font-weight: 600; }

/* ===== Gilden-Rang & Treue-Abzeichen ===== */
.user-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-primary) !important;
  text-decoration: none !important;
}
.user-badge-link:hover .user-badge-name { text-decoration: underline; }
.user-badge-name { font-weight: 600; }

.user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 0.72rem;
  border: 2px solid var(--border-hairline);
  flex-shrink: 0;
}
.user-avatar.xs { width: 20px; height: 20px; font-size: 0.65rem; }
.user-avatar.sm { width: 24px; height: 24px; }
.user-avatar.xl { width: 64px; height: 64px; font-size: 1.6rem; border-width: 3px; }

.user-avatar.loyalty-bronze { border-color: #cd7f32; box-shadow: 0 0 6px rgba(205, 127, 50, 0.55); }
.user-avatar.loyalty-silver { border-color: #c0c0c0; box-shadow: 0 0 6px rgba(192, 192, 192, 0.55); }
.user-avatar.loyalty-gold { border-color: #ffd700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.6); }
.user-avatar.loyalty-platinum {
  border-color: #7df9ff;
  box-shadow: 0 0 8px rgba(125, 249, 255, 0.6);
  animation: loyalty-pulse 2.4s ease-in-out infinite;
}
@keyframes loyalty-pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(125, 249, 255, 0.45); }
  50% { box-shadow: 0 0 14px rgba(125, 249, 255, 0.9); }
}

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--rank-color);
  color: var(--rank-color);
  background: color-mix(in srgb, var(--rank-color) 14%, transparent);
  white-space: nowrap;
}
.rank-recruit { --rank-color: #9d9d9d; }
.rank-member { --rank-color: #e6e6e6; }
.rank-veteran { --rank-color: #1eff00; }
.rank-officer { --rank-color: #0070dd; }
.rank-admin { --rank-color: #ff8000; }

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--gold-dim);
  color: var(--gold-bright);
  background: color-mix(in srgb, var(--gold-bright) 12%, transparent);
  white-space: nowrap;
}

.loyalty-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--loyalty-color);
  color: var(--loyalty-color);
  background: color-mix(in srgb, var(--loyalty-color) 12%, transparent);
}
.loyalty-badge.loyalty-bronze { --loyalty-color: #cd7f32; }
.loyalty-badge.loyalty-silver { --loyalty-color: #c0c0c0; }
.loyalty-badge.loyalty-gold { --loyalty-color: #ffd700; }
.loyalty-badge.loyalty-platinum { --loyalty-color: #7df9ff; }

.streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  color: #ffb454;
  background: rgba(255, 140, 30, 0.14);
  border: 1px solid rgba(255, 140, 30, 0.4);
  white-space: nowrap;
}

/* ===== Season-Recap-Karte ===== */
.recap-card-wrap { margin-bottom: 20px; }
.recap-card-image {
  max-width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-hairline-strong);
  display: block;
}

/* ===== Beitrags-/Kommentar-Moderation ===== */
.detail-actions { display: flex; gap: 10px; margin-top: -4px; }
.inline-form { display: inline-block; }
.btn-danger { color: var(--status-critical-text); border-color: rgba(208, 69, 59, 0.4); }
.btn-danger:hover { background: rgba(208, 69, 59, 0.12); border-color: var(--status-critical); }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-decoration: underline;
  cursor: pointer;
  font-family: var(--font-body);
}
.link-btn:hover { color: var(--gold-bright); }
.comment-actions { display: inline-flex; gap: 10px; margin-left: 6px; }
.edited-tag { color: var(--text-muted); font-size: 0.76rem; font-style: italic; }
.comment-deleted-label { color: var(--text-muted); font-style: italic; font-size: 0.85rem; }

.comment-edit-textarea {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 8px 10px;
  font-family: var(--font-body);
  resize: vertical;
}
.comment-edit-actions { display: flex; gap: 8px; margin-top: 8px; }

/* ===== Profil ===== */
.profile-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.profile-header-info h1 { margin: 0 0 6px; }
.profile-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.profile-meta { color: var(--text-muted); font-size: 0.85rem; margin: 0; }

/* ===== Admin ===== */
.admin-table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-panel); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--surface-1); border: 1px solid var(--border-hairline); border-radius: var(--radius-lg); overflow: hidden; }
.admin-table th, .admin-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border-hairline); font-size: 0.88rem; }
.admin-table th { color: var(--gold-dim); background: var(--surface-2); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.7px; }
.admin-table th.sortable-th { cursor: pointer; user-select: none; }
.admin-table th.sortable-th:hover { color: var(--gold-bright); }
.sort-arrow { color: var(--gold-bright); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background 150ms var(--ease); }
.admin-table tbody tr:hover { background: rgba(200, 170, 110, 0.06); }
.admin-rank-select {
  background: var(--surface-2); border: 1px solid var(--border-hairline);
  color: var(--text-primary); border-radius: var(--radius-md); padding: 6px 8px;
  font-family: var(--font-body); font-size: 0.85rem;
}
.admin-rank-select:disabled { opacity: 0.5; cursor: not-allowed; }
.admin-self-hint { color: var(--text-muted); font-size: 0.78rem; margin-left: 6px; }
.admin-table td .inline-form { margin-right: 6px; }

.text-muted { color: var(--text-muted); }

.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
}
.status-muted { background: rgba(230, 201, 136, 0.15); color: var(--gold-bright); border: 1px solid rgba(230, 201, 136, 0.4); }
.status-banned { background: rgba(208, 69, 59, 0.15); color: var(--status-critical-text); border: 1px solid rgba(208, 69, 59, 0.4); }

/* ===== Benachrichtigungs-Glocke ===== */
.bell-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 1.15rem;
  color: var(--text-secondary) !important;
  text-decoration: none !important;
  padding: 2px 4px;
}
.bell-link:hover, .bell-link.active { color: var(--gold-bright) !important; }
.bell-link .nav-count { position: absolute; top: -4px; right: -4px; }

.notification-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notification-item {
  background: var(--surface-1); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
}
.notification-item.unread { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, var(--surface-1)); }
.notification-link {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; color: var(--text-primary) !important; text-decoration: none !important;
}
.notification-message { flex: 1; }
.notification-date { color: var(--text-muted); font-size: 0.78rem; white-space: nowrap; }

/* ===== Erfolge ===== */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 32px;
}
.achievement-tile {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-align: center; padding: 14px 10px;
  border-radius: var(--radius-md); border: 1px solid var(--border-hairline);
  background: var(--surface-1);
}
.achievement-tile .achievement-icon { font-size: 1.6rem; }
.achievement-tile .achievement-name { font-size: 0.78rem; color: var(--text-secondary); }
.achievement-tile.earned { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 10%, var(--surface-1)); }
.achievement-tile.earned .achievement-name { color: var(--gold-bright); font-weight: 600; }
.achievement-tile.locked { opacity: 0.4; filter: grayscale(1); }

/* ===== Battle.net-Charaktere ===== */
.bnet-character-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 12px 0 20px;
}
.bnet-character-card {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-left: 3px solid var(--faction-color, var(--gold));
  border-radius: var(--radius-md);
  padding: 10px 12px;
}
.bnet-character-card.faction-alliance { --faction-color: #3f8ee0; }
.bnet-character-card.faction-horde { --faction-color: #d0453b; }
a.bnet-character-card:hover { border-color: var(--border-hairline-strong); }
.bnet-character-level {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.bnet-character-info { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.bnet-character-name { font-weight: 600; color: var(--text-primary); }
.bnet-character-meta { font-size: 0.78rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bnet-manual-hint { margin-top: 12px; color: var(--text-secondary); }
.bnet-manual-hint summary { cursor: pointer; color: var(--gold-bright); font-size: 0.9rem; }
.bnet-manual-hint .update-form { margin-top: 10px; }
.bnet-manual-hint input[type="text"] {
  background: var(--surface-2); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); color: var(--text-primary); padding: 8px 10px;
  font-family: var(--font-body); font-size: 0.9rem; max-width: 420px;
}

/* ===== Charaktersuche & PvP-Rangliste ===== */
.character-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 24px;
}
.character-search-form input[type="text"] {
  background: var(--surface-2);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 9px 12px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  width: 220px;
}
.character-search-form input[type="text"]:focus { outline: 2px solid var(--gold-dim); }

.autocomplete-wrap { position: relative; }
.autocomplete-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: var(--surface-2);
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--radius-md);
  max-height: 260px;
  overflow-y: auto;
  box-shadow: var(--shadow-card);
}
.autocomplete-dropdown.open { display: block; }
.autocomplete-item {
  padding: 7px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.autocomplete-item:hover { background: var(--surface-3); }
.autocomplete-sub { color: var(--text-muted); font-size: 0.8rem; }

.character-profile-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.mythic-score-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-lg);
  color: var(--gold-bright);
  flex-shrink: 0;
}
.mythic-score-value { font-size: 1.6rem; font-weight: 700; font-family: var(--font-display); }
.mythic-score-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); }
.mythic-score-rank { font-size: 0.82rem; font-weight: 600; color: var(--gold-bright); margin-top: 4px; }
.mythic-score-rank.unranked { color: var(--text-muted); font-weight: 400; }
.mythic-score-rank-sub { font-size: 0.76rem; color: var(--text-secondary); margin-top: 2px; }
.mythic-score-rank-source { font-size: 0.68rem; color: var(--text-muted); margin-top: 2px; }
.pvp-bracket-rank { font-weight: 600; color: var(--gold-bright); }
.pvp-bracket-rank.unranked { font-weight: 400; color: var(--text-muted); font-style: italic; }

.character-profile-card {
  display: flex;
  gap: 20px;
  background: var(--surface-1);
  border: 1px solid var(--border-hairline);
  border-left: 4px solid var(--faction-color, var(--gold));
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.character-profile-card.faction-alliance { --faction-color: #3f8ee0; }
.character-profile-card.faction-horde { --faction-color: #d0453b; }
.character-avatar {
  width: 110px;
  height: 110px;
  border-radius: var(--radius-md);
  object-fit: cover;
  border: 2px solid var(--faction-color, var(--gold));
  flex-shrink: 0;
}
.character-profile-body { flex: 1; min-width: 0; }
.character-profile-name { margin: 0 0 6px; font-size: 1.4rem; }
.character-profile-meta { color: var(--text-secondary); margin: 0 0 14px; }
.character-stat-tiles { margin-bottom: 20px; }

.faction-alliance { color: #6cb2f2; }
.faction-horde { color: #f28a82; }

.leaderboard-pvp-table td a { color: var(--text-primary); }
.leaderboard-pvp-table td a:hover { color: var(--gold-bright); }

/* ===== Berufe-Guides: Icons + Einkaufslisten-Karten ===== */
.profession-guide-card { display: flex; align-items: center; gap: 14px; }
.profession-guide-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm, 6px); flex-shrink: 0;
  border: 1px solid var(--gold-dim);
}
.profession-guide-header { display: flex; align-items: flex-start; gap: 16px; }
.profession-guide-header-icon {
  width: 56px; height: 56px; border-radius: var(--radius-md); flex-shrink: 0;
  border: 2px solid var(--gold-dim);
}
.profession-item-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px; margin-top: 10px;
}
.profession-item-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md); padding: 10px 14px;
}
.profession-item-qty {
  font-weight: 700; color: var(--gold-bright); font-family: var(--font-display);
  font-size: 1rem; flex-shrink: 0; min-width: 32px;
}
.profession-item-info { display: flex; flex-direction: column; gap: 2px; }
.profession-item-name { font-weight: 600; color: var(--text-primary); font-size: 0.9rem; }
.profession-item-meta { font-size: 0.78rem; color: var(--text-muted); }

/* ===== Account-Einstellungen ===== */
.account-section { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border-hairline); }
.account-section h2 { font-size: 1.1rem; margin: 0 0 4px; }
.account-section-danger h2 { color: var(--status-critical-text); }

/* ===== Seiten-Ladeoverlay ===== */
/* Blockiert weitere Klicks waehrend einer echten Seitennavigation (Link/
   Formular-Submit), damit z.B. nicht mehrfach hintereinander auf einen
   Ranglisten-Sync-Trigger o.ae. geklickt wird, waehrend die Seite noch
   laedt - siehe bindPageLoadingOverlay() in main.js. */
.page-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(10, 8, 6, 0.72);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}
.page-loading-overlay.visible {
  opacity: 1;
  pointer-events: all;
}
.page-loading-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--gold-dim);
  border-top-color: var(--gold-bright);
  animation: page-loading-spin 0.8s linear infinite;
}
.page-loading-text {
  color: var(--gold-bright);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  margin: 0;
}
@keyframes page-loading-spin {
  to { transform: rotate(360deg); }
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 18px 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .feed-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .rank-columns { grid-template-columns: 1fr; }
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-hairline-strong);
  border-radius: var(--radius-md);
  color: var(--gold-bright);
  font-size: 1.3rem;
  width: 40px;
  height: 40px;
  line-height: 1;
  cursor: pointer;
  margin-left: auto;
}

/* Die Nav-Leiste ist mit allen Einträgen (Feed, Charaktere, Alt-Army, PvP,
   M+, Statistik, Rangliste, Fun-Ranglisten, Community-Dropdown, Suche,
   Konto-Icons...) deutlich breiter als jedes Mobilgerät - ohne dieses
   Hamburger-Menü zwingt sie die GANZE Seite auf ihre Breite auf (kein
   einzelnes overflow-x:auto-Element kann das nachträglich reparieren, siehe
   fitTalentTrees()-Kommentar in main.js: die "verfügbare Breite" für den
   Talentbaum-Zoom wird ja aus dem schon aufgeblähten Container berechnet). */
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .main-nav, .header-search, .auth-area {
    display: none;
    width: 100%;
    margin: 0;
  }
  .header-inner.nav-open .main-nav,
  .header-inner.nav-open .header-search,
  .header-inner.nav-open .auth-area {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .header-inner.nav-open .main-nav { order: 3; gap: 4px; }
  .header-inner.nav-open .header-search { order: 4; }
  .header-inner.nav-open .auth-area { order: 5; flex-wrap: wrap; flex-direction: row; }
  .main-nav .nav-dropdown-menu { position: static; box-shadow: none; margin: 4px 0 4px 12px; }
  .header-search input[type="search"] { width: 100%; }
  .header-search input[type="search"]:focus { width: 100%; }
  .profile-header { flex-direction: column; align-items: flex-start; text-align: left; }
}
