@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@700;900&family=Inter:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* ── Basis ── */
    --bg:        #f8fafc;   /* slate-50  */
    --surface:   #f1f5f9;   /* slate-100 */
    --card:      #ffffff;
    --border:    #e2e8f0;   /* slate-200 */
    --border-md: #cbd5e1;   /* slate-300 */

    /* ── Text ── */
    --text:   #0f172a;   /* slate-900 */
    --text-2: #334155;   /* slate-700 */
    --text-3: #64748b;   /* slate-500 */
    --text-4: #94a3b8;   /* slate-400 */

    /* ── Brand / CTA ── */
    --brand:    #2563eb;   /* blue-600  */
    --brand-2:  #1d4ed8;   /* blue-700  */
    --brand-bg: #eff6ff;   /* blue-50   */

    /* ── WoW Classic – Steel Blue ── */
    --classic:        #0369a1;   /* sky-700   */
    --classic-2:      #0284c7;   /* sky-600   */
    --classic-bg:     #f0f9ff;   /* sky-50    */
    --classic-border: #bae6fd;   /* sky-200   */
    --classic-dark:   #0c4a6e;   /* sky-900   */

    /* ── WoW Midnight – Deep Violet ── */
    --midnight:        #6d28d9;   /* violet-700 */
    --midnight-2:      #7c3aed;   /* violet-600 */
    --midnight-bg:     #f5f3ff;   /* violet-50  */
    --midnight-border: #ddd6fe;   /* violet-200 */
    --midnight-dark:   #4c1d95;   /* violet-900 */

    /* ── EVE Online – Nebula Teal / Station Amber ── */
    --eve:        #0f766e;   /* teal-700  */
    --eve-2:      #b45309;   /* amber-700 */
    --eve-bg:     #ecfeff;   /* cyan-50   */
    --eve-border: #99f6e4;   /* teal-200  */
    --eve-dark:   #134e4a;   /* teal-900  */

    /* ── WoW Qualitätsfarben (WCAG AA auf Weiß) ── */
    --q-leg-c: #c2410c;   /* orange-700  */
    --q-epi-c: #6d28d9;   /* violet-700  */
    --q-rar-c: #1d4ed8;   /* blue-700    */
    --q-unc-c: #15803d;   /* green-700   */
    --q-hei-c: #0e7490;   /* cyan-700    */
    --q-com-c: #475569;   /* slate-600   */

    /* ── Fraktionen ── */
    --alliance: #1d4ed8;
    --horde:    #b91c1c;

    /* ── Schatten ── */
    --sh-xs: 0 1px 2px rgba(15,23,42,.06);
    --sh-sm: 0 1px 4px rgba(15,23,42,.06), 0 4px 12px rgba(15,23,42,.06);
    --sh-md: 0 2px 8px rgba(15,23,42,.08), 0 8px 24px rgba(15,23,42,.07);

    --r:    10px;
    --r-sm:  6px;
    --r-lg: 14px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar              { width: 6px; }
::-webkit-scrollbar-track        { background: var(--bg); }
::-webkit-scrollbar-thumb        { background: var(--border-md); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover  { background: var(--brand); }

/* ════════════════════════════════════════════ NAV ══════════════════════ */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 200;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: rgba(255,255,255,.95);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-xs);
}

.nav-logo { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo-sword { font-size: 1.1rem; line-height: 1; }
.logo-name {
    font-family: 'Cinzel', serif;
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: var(--text);
}
.logo-tld {
    font-size: .48rem;
    color: var(--text-3);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    vertical-align: bottom;
    margin-left: 1px;
    letter-spacing: 0;
}

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
    display: flex;
    align-items: center;
    padding: 7px 13px;
    min-height: 44px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--text-3);
    text-decoration: none;
    border-radius: var(--r-sm);
    transition: color .15s, background .15s;
    white-space: nowrap;
}
.nav-links a:hover           { color: var(--text); background: var(--surface); }
.nav-links a.active          { color: var(--brand); background: var(--brand-bg); }
.nav-eve      > a            { color: var(--eve); }
.nav-classic  > a            { color: var(--classic); }
.nav-midnight > a            { color: var(--midnight); }
.nav-cta > a {
    background: var(--brand);
    color: #fff !important;
    font-weight: 700;
    border-radius: var(--r-sm);
    padding: 7px 16px;
    box-shadow: 0 1px 4px rgba(37,99,235,.3);
}
.nav-cta > a:hover { background: var(--brand-2) !important; }

/* ── Sprachumschalter ── */
.nav-lang {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0 4px;
}
.nav-lang a {
    min-height: auto;
    padding: 4px 6px;
    font-size: .78rem;
    font-weight: 700;
    color: var(--text-4);
    border-radius: 4px;
}
.nav-lang a:hover { color: var(--text); background: var(--surface); }
.nav-lang a.active { color: var(--brand); }
.lang-sep { color: var(--border-md); font-size: .75rem; }

/* ── Breadcrumb (Brotkrümel-Pfad) ── */
.breadcrumb {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 24px 0;
}
.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .8rem;
}
.breadcrumb-item { display: flex; align-items: center; gap: 6px; }
.breadcrumb-list a {
    color: var(--text-3);
    text-decoration: none;
    font-weight: 600;
    transition: color .15s;
}
.breadcrumb-list a:hover { color: var(--brand); }
.breadcrumb-sep { color: var(--text-4); opacity: .6; }
.breadcrumb-current { color: var(--text); font-weight: 700; }

/* ════════════════════════════════════════════ HERO ═════════════════════ */

.hero {
    padding: 80px 24px 72px;
    text-align: center;
    background: linear-gradient(150deg, var(--classic-bg) 0%, var(--card) 45%, var(--midnight-bg) 100%);
    border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand-bg);
    border: 1.5px solid #bfdbfe;
    color: var(--brand-2);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 16px;
    border-radius: 999px;
    margin-bottom: 28px;
}

.hero h1 {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1.0;
    color: var(--text);
    margin-bottom: 10px;
}
.hero h1 .hero-domain {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--text-2);
    margin-top: 12px;
}
.hero h1 .hero-sub-title {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: clamp(.8rem, 2vw, .95rem);
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--text-3);
    margin-top: 14px;
    text-transform: uppercase;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 28px auto 22px;
    max-width: 300px;
}
.hdl { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--classic-border)); border-radius: 1px; }
.hdr { flex: 1; height: 2px; background: linear-gradient(90deg, var(--midnight-border), transparent); border-radius: 1px; }
.hdg { font-size: .6rem; color: var(--text-4); }

.hero-desc {
    color: var(--text-2);
    font-size: 1.05rem;
    font-weight: 500;
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.75;
}

.eve-hero {
    position: relative;
    min-height: 560px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(90deg, rgba(2,6,23,.9) 0%, rgba(2,6,23,.68) 42%, rgba(2,6,23,.3) 100%),
        linear-gradient(180deg, rgba(2,6,23,.18) 0%, rgba(2,6,23,.78) 100%),
        url('../assets/img/eve-hero.jpg') center center / cover no-repeat;
    border-bottom-color: #0f172a;
}
.eve-hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 90px;
    background: linear-gradient(180deg, transparent, rgba(15,23,42,.72));
    z-index: -1;
}
.eve-hero .hero-eyebrow {
    background: rgba(15,118,110,.18);
    border-color: rgba(153,246,228,.48);
    color: #ccfbf1;
}
.eve-hero h1,
.eve-hero h1 .hero-sub-title,
.eve-hero .hero-desc,
.eve-hero .hdg {
    color: #f8fafc;
    text-shadow: 0 2px 22px rgba(0,0,0,.42);
}
.eve-hero h1 .hero-sub-title { color: #99f6e4; }
.eve-hero .hero-desc {
    max-width: 660px;
    color: #dbeafe;
}
.eve-hero .hdl { background: linear-gradient(90deg, transparent, rgba(153,246,228,.72)); }
.eve-hero .hdr { background: linear-gradient(90deg, rgba(251,191,36,.7), transparent); }
.eve-hero .btn-outline {
    background: rgba(15,23,42,.5);
    color: #f8fafc;
    border-color: rgba(203,213,225,.52);
}
.eve-hero .btn-outline:hover {
    color: #ccfbf1;
    border-color: #99f6e4;
}

/* ════════════════════════════════════════════ STATS ════════════════════ */

.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--sh-xs);
}
.stat-item {
    flex: 1;
    min-width: 120px;
    padding: 22px 36px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--brand);
    line-height: 1.1;
    margin-bottom: 3px;
    letter-spacing: -1px;
}
.stat-label {
    font-size: .68rem;
    font-weight: 700;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 1.2px;
}
.eve-stats .stat-num { color: var(--eve); }

/* ════════════════════════════════════════════ PORTAL ═══════════════════ */

.portal-hero {
    background: linear-gradient(150deg, var(--brand-bg) 0%, var(--card) 50%, var(--classic-bg) 100%);
}

.portal-games { max-width: 1160px; }
.game-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}
.game-card {
    display: flex;
    flex-direction: column;
    min-height: 280px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 24px;
    transition: border-color .18s, transform .18s, box-shadow .18s;
}
.game-card:hover {
    border-color: var(--border-md);
    transform: translateY(-2px);
    box-shadow: var(--sh-md);
}
.game-card-live {
    border-color: var(--classic-border);
    background: linear-gradient(160deg, var(--classic-bg) 0%, var(--card) 55%);
}
.game-card-eve {
    border-color: var(--eve-border);
    background: linear-gradient(160deg, var(--eve-bg) 0%, var(--card) 58%, #fff7ed 100%);
}
.game-card-eve .game-icon {
    background: #ccfbf1;
    color: var(--eve-dark);
}
.game-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}
.game-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 800;
}
.status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .8px;
    text-transform: uppercase;
}
.status-pill.live {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.status-pill.soon {
    background: var(--surface);
    color: var(--text-3);
    border: 1px solid var(--border);
}
.status-pill.alpha {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
}
.game-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.35rem;
    font-weight: 900;
    color: var(--text);
    letter-spacing: .8px;
    margin-bottom: 10px;
}
.game-card p {
    color: var(--text-2);
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.7;
    margin-bottom: 24px;
}
.game-card-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
    margin-top: auto;
}
.game-card > .btn { margin-top: auto; }
.game-text-link {
    color: var(--classic);
    font-size: .82rem;
    font-weight: 700;
    text-decoration: none;
}
.game-text-link:hover { color: var(--classic-dark); text-decoration: underline; }

/* ════════════════════════════════════════════ LAYOUT ═══════════════════ */

.section-wrap  { padding: 64px 24px; max-width: 1160px; margin: 0 auto; }
.section-full  { padding: 64px 0; }
.section-inner { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.bg-classic  {
    background: var(--classic-bg);
    border-top: 1px solid var(--classic-border);
    border-bottom: 1px solid var(--classic-border);
}
.bg-midnight {
    background: var(--midnight-bg);
    border-top: 1px solid var(--midnight-border);
    border-bottom: 1px solid var(--midnight-border);
}
.bg-eve {
    background: linear-gradient(180deg, var(--eve-bg) 0%, #f8fafc 100%);
    border-top: 1px solid var(--eve-border);
    border-bottom: 1px solid var(--eve-border);
}

/* ─── WoW-Varianten: datengetriebenes Farbakzent-System ──────────────────
   Jede Ranking-Sektion bekommt eine Klasse accent-<x>, die die Akzentfarben
   in CSS-Variablen setzt. Die generischen Klassen (.bg-wow, .sh-line-wow,
   .t-wow …) ziehen die Farbe daraus – so braucht eine neue Variante nur EINE
   accent-Definition, nicht ein kopiertes Klassenset. */
.accent-era      { --accent: var(--classic);  --accent-bg: var(--classic-bg);  --accent-border: var(--classic-border);  --accent-dark: var(--classic-dark);  --accent-head: #e0f2fe; }
.accent-midnight { --accent: var(--midnight); --accent-bg: var(--midnight-bg); --accent-border: var(--midnight-border); --accent-dark: var(--midnight-dark); --accent-head: #ede9fe; }
.accent-sod      { --accent: #be123c; --accent-bg: #fff1f2; --accent-border: #fecdd3; --accent-dark: #881337; --accent-head: #ffe4e6; }
.accent-hardcore { --accent: #475569; --accent-bg: #f8fafc; --accent-border: #e2e8f0; --accent-dark: #1e293b; --accent-head: #f1f5f9; }
.accent-mop      { --accent: #047857; --accent-bg: #ecfdf5; --accent-border: #a7f3d0; --accent-dark: #064e3b; --accent-head: #d1fae5; }

.bg-wow {
    background: var(--accent-bg);
    border-top: 1px solid var(--accent-border);
    border-bottom: 1px solid var(--accent-border);
}

/* ─── Section Headings ───────────────────────────────────────────────── */

.section-heading { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.sh-line { flex: 1; height: 1px; }
.sh-line-classic  { background: linear-gradient(90deg, transparent, var(--classic-border),  transparent); }
.sh-line-midnight { background: linear-gradient(90deg, transparent, var(--midnight-border), transparent); }
.sh-line-eve      { background: linear-gradient(90deg, transparent, var(--eve-border),      transparent); }
.sh-line-gold     { background: linear-gradient(90deg, transparent, var(--border-md),        transparent); }
.sh-line-wow      { background: linear-gradient(90deg, transparent, var(--accent-border),    transparent); }

.sh-center { display: flex; flex-direction: column; align-items: center; text-align: center; flex-shrink: 0; gap: 4px; }

.sh-eyebrow {
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
}
.sh-eyebrow.classic  { color: var(--classic-dark); }
.sh-eyebrow.midnight { color: var(--midnight-dark); }
.sh-eyebrow.eve      { color: var(--eve-dark); }
.sh-eyebrow.gold     { color: var(--text-3); }
.sh-eyebrow.wow      { color: var(--accent-dark); }

.sh-center h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.5rem, 4vw, 2.1rem);
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1.1;
}
.sh-center h2.classic  { color: var(--classic); }
.sh-center h2.midnight { color: var(--midnight); }
.sh-center h2.eve      { color: var(--eve); }
.sh-center h2.gold     { color: var(--text); }
.sh-center h2.wow      { color: var(--accent); }

.section-domain {
    display: block;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--text-3);
}

.section-sub {
    text-align: center;
    color: var(--text-3);
    font-size: .88rem;
    font-weight: 500;
    margin: 10px 0 28px;
}

/* ════════════════════════════════════════════ TABLE ════════════════════ */

.table-outer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r-lg);
    box-shadow: var(--sh-md);
}
.table-wrap {
    border-radius: var(--r-lg);
    /* Eigenes Scroll-Fenster JE Tabelle: nur ein Ausschnitt der Liste.
       So sitzt die horizontale Scrollleiste immer sichtbar am unteren Rand
       des Ausschnitts – man muss nicht erst bis ans Listenende scrollen. */
    overflow: auto;
    max-height: 70vh;
    -webkit-overflow-scrolling: touch;
    border: 1.5px solid;
    background: var(--card);
}
.table-wrap.t-classic  { border-color: var(--classic-border); }
.table-wrap.t-midnight { border-color: var(--midnight-border); }
.table-wrap.t-eve      { border-color: var(--eve-border); }
.table-wrap.t-wow      { border-color: var(--accent-border); }

.guild-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: .875rem;
}

/* Header */
.guild-table thead tr { border-bottom: 1.5px solid; }
.t-classic  .guild-table thead tr { background: #e0f2fe; border-bottom-color: var(--classic-border); }
.t-midnight .guild-table thead tr { background: #ede9fe; border-bottom-color: var(--midnight-border); }
.t-eve      .guild-table thead tr { background: #ccfbf1; border-bottom-color: var(--eve-border); }
.t-wow      .guild-table thead tr { background: var(--accent-head); border-bottom-color: var(--accent-border); }

.guild-table th {
    padding: 12px 16px;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-align: left;
    white-space: nowrap;
    /* Kopf bleibt beim Scrollen im Ausschnitt oben stehen.
       Hintergrund + Trennlinie liegen pro Variante auf dem th selbst,
       weil ein <tr> nicht zuverlässig „sticky" sein kann. */
    position: sticky;
    top: 0;
    z-index: 2;
}
.t-classic  .guild-table th { color: var(--classic-dark); background: #e0f2fe; box-shadow: inset 0 -1.5px 0 var(--classic-border); }
.t-midnight .guild-table th { color: var(--midnight-dark); background: #ede9fe; box-shadow: inset 0 -1.5px 0 var(--midnight-border); }
.t-eve      .guild-table th { color: var(--eve-dark); background: #ccfbf1; box-shadow: inset 0 -1.5px 0 var(--eve-border); }
.t-wow      .guild-table th { color: var(--accent-dark); background: var(--accent-head); box-shadow: inset 0 -1.5px 0 var(--accent-border); }
.guild-table th.th-center { text-align: center; }

/* Rows */
.guild-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background .12s;
}
.guild-table tbody tr:last-child { border-bottom: none; }
.guild-table tbody tr:nth-child(even) { background: var(--surface); }
.t-classic  .guild-table tbody tr:hover { background: #e0f2fe; }
.t-midnight .guild-table tbody tr:hover { background: #ede9fe; }
.t-eve      .guild-table tbody tr:hover { background: #ccfbf1; }
.t-wow      .guild-table tbody tr:hover { background: var(--accent-head); }

.guild-table td { padding: 14px 16px; vertical-align: middle; white-space: nowrap; }

/* ─── Rang ─── */
.td-rank { width: 50px; text-align: center; }
.rk { font-size: .95rem; font-weight: 900; font-family: 'Inter', sans-serif; }
.rk-1 { color: #b45309; }   /* amber-700 – sparingly for top 3 medals */
.rk-2 { color: #64748b; }
.rk-3 { color: #78350f; }
.rk-n { color: var(--text-3); font-size: .8rem; font-weight: 700; }

/* Medaillen-Kreis für die Top 3 (statt verloren wirkender Mini-Emojis) */
.td-rank .rk-1,
.td-rank .rk-2,
.td-rank .rk-3 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    line-height: 1;
}
.rk-1 { background: #fef3c7; }   /* amber-100 */
.rk-2 { background: #eef2f6; }   /* slate-100 */
.rk-3 { background: #fdebd8; }   /* orange-100 */

/* ─── Gildenname ─── */
.guild-name {
    display: block;
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: .1px;
}
.guild-meta {
    display: block;
    font-size: .75rem;
    font-weight: 500;
    color: var(--text-3);
    margin-top: 2px;
}

/* ─── Fraktion ─── */
.faction {
    display: inline-block;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
    letter-spacing: .2px;
}
.f-alliance { background: var(--alliance); }
.f-horde    { background: var(--horde); }

/* ─── EVE Entity-Typen ─── */
.td-kind,
.td-ticker,
.td-members {
    color: var(--text-2);
    font-size: .8rem;
    font-weight: 600;
}
.eve-kind {
    display: inline-block;
    font-size: .68rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
    letter-spacing: .2px;
}
.eve-kind-alliance { background: var(--eve-2); }
.eve-kind-corporation { background: var(--eve); }
.eve-kind-other { background: var(--q-com-c); }

/* ─── Score ─── */
.td-score { min-width: 100px; }
.score-val {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 5px;
}
.score-bar {
    height: 6px;
    background: var(--border);
    border-radius: 99px;
    overflow: hidden;
    max-width: 110px;
}
.score-fill { height: 100%; border-radius: 99px; transition: width .3s ease; }

/* ─── AlltimeIndex ─── */
.td-alltime {
    min-width: 76px;
    color: var(--text-2);
}
.alltime-val {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 28px;
    padding: 0 9px;
    border-radius: var(--r-sm);
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #9a3412;
    font-size: .86rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* ─── Trend ─── */
.trend { font-size: .82rem; font-weight: 800; letter-spacing: .1px; }
.t-up   { color: #15803d; }
.t-down { color: #b91c1c; }
.t-flat { color: var(--text-3); }

/* ─── Qualitätsbadges – Solid Pills ─── */
.q-badge {
    display: inline-block;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .2px;
    padding: 3px 10px;
    border-radius: 999px;
    color: #fff;
    white-space: nowrap;
}
.q-legendary { background: var(--q-leg-c); }
.q-epic      { background: var(--q-epi-c); }
.q-rare      { background: var(--q-rar-c); }
.q-uncommon  { background: var(--q-unc-c); }
.q-heirloom  { background: var(--q-hei-c); }
.q-common    { background: var(--q-com-c); }

.td-progress { color: var(--text-2); font-size: .8rem; font-weight: 500; }
/* Höhere Spezifität als „.guild-table td { nowrap }“, sonst greift normal nicht */
.guild-table td.td-sources { color: var(--text-3); font-size: .78rem; font-weight: 500; white-space: normal; }

/* ─── Anklickbare Quellen (Details-Aufklapp) ─── */
.src { position: relative; }
.src summary {
    cursor: pointer;
    list-style: none;
    font-size: .78rem;
    font-weight: 700;
    color: var(--brand);
    white-space: nowrap;
    user-select: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 28px;
}
.src-summary-date {
    color: var(--text-4);
    font-size: .68rem;
    font-weight: 700;
}
.src summary::-webkit-details-marker { display: none; }
.src summary::before {
    content: '▸';
    font-size: .65rem;
    transition: transform .15s;
}
.src[open] summary::before { transform: rotate(90deg); }
.src ul {
    list-style: none;
    margin: 7px 0 2px;
    padding: 2px 12px;
    min-width: 0;          /* verhindert, dass die Liste die Tabelle breiter drückt */
    max-width: 300px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
}
.src li { margin: 0; }
.src li + li { border-top: 1px solid var(--border); }
.src a {
    display: block;
    padding: 7px 2px;
    font-size: .76rem;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    line-height: 1.35;
    white-space: normal;       /* überschreibt das geerbte nowrap der Tabellenzelle */
    overflow-wrap: anywhere;   /* lange Titel/URLs umbrechen statt abschneiden */
    transition: color .15s;
}
.src a:hover { color: var(--brand); }
.src-meta {
    display: block;
    margin-top: 3px;
    color: var(--text-4);
    font-size: .68rem;
    font-weight: 600;
    line-height: 1.35;
}
.src-published {
    color: var(--brand);
    font-weight: 700;
}
.src-tag {
    display: inline-block;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .3px;
    text-transform: uppercase;
    color: var(--brand);
    background: var(--brand-bg);
    border: 1px solid #bfdbfe;
    border-radius: 4px;
    padding: 1px 6px;
    margin-right: 5px;
    vertical-align: 1px;
}
.src-zero { color: var(--text-4); font-weight: 600; }

/* ─── KI-Beschreibung (Aufklapp unter dem Gildennamen) ─── */
.guild-about { margin-top: 5px; }
.guild-about summary {
    cursor: pointer;
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .72rem;
    font-weight: 700;
    color: var(--brand);
    user-select: none;
}
.guild-about summary::-webkit-details-marker { display: none; }
.guild-about summary::before {
    content: '▸';
    font-size: .6rem;
    transition: transform .15s;
}
.guild-about[open] summary::before { transform: rotate(90deg); }
.guild-about p {
    margin: 6px 0 2px;
    max-width: 380px;
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-2);
    white-space: normal;        /* überschreibt das geerbte nowrap der Tabellenzelle */
    overflow-wrap: anywhere;    /* Text bricht um, statt rechts aus der Tabelle zu laufen */
    background: var(--surface);
    border-left: 2px solid var(--border-md);
    border-radius: 0 var(--r-sm) var(--r-sm) 0;
    padding: 7px 11px;
}

/* ════════════════════════════════════════════ DIVIDER ══════════════════ */

.wow-divider {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 24px;
    max-width: 1160px;
    margin: 0 auto;
    height: 48px;
}
.wd-line { flex: 1; height: 1px; background: var(--border); border-radius: 1px; }
.wd-gem  { color: var(--text-4); font-size: .6rem; letter-spacing: 5px; flex-shrink: 0; }

/* ════════════════════════════════════════════ HOW IT WORKS ═════════════ */

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 14px;
}
.how-card {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    padding: 26px 22px;
    box-shadow: var(--sh-sm);
    transition: border-color .18s, transform .18s, box-shadow .18s;
    position: relative;
    overflow: hidden;
}
.how-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--classic), var(--midnight));
    opacity: 0;
    transition: opacity .18s;
}
.how-card:hover { border-color: var(--border-md); transform: translateY(-2px); box-shadow: var(--sh-md); }
.how-card:hover::before { opacity: 1; }

.how-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--border-md);
    line-height: 1;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: -2px;
}
.how-icon { font-size: 1.4rem; margin-bottom: 10px; }
.how-card h3 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 7px;
}
.how-card p { font-size: .83rem; color: var(--text-3); line-height: 1.65; font-weight: 500; }
.method-link-row { display: flex; justify-content: center; margin-top: 28px; }

/* ════════════════════════════════════════════ EVE PAGE ════════════════ */

.eve-search { margin: 0 auto 24px; }
.eve-empty {
    max-width: 740px;
    margin: 30px auto 0;
    padding: 34px 36px;
    text-align: center;
    background: var(--card);
    border: 1.5px solid var(--eve-border);
    border-radius: 8px;
    box-shadow: var(--sh-sm);
}
.eve-empty h3 {
    color: var(--text);
    font-size: 1.08rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.eve-empty p {
    max-width: 560px;
    margin: 0 auto 24px;
    color: var(--text-2);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.72;
}
.eve-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.eve-feature {
    position: relative;
    min-height: 220px;
    padding: 26px 24px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--sh-sm);
    overflow: hidden;
}
.eve-feature::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--eve), var(--eve-2));
}
.eve-feature span {
    display: block;
    color: var(--eve);
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}
.eve-feature h3 {
    color: var(--text);
    font-size: .98rem;
    font-weight: 800;
    margin-bottom: 10px;
}
.eve-feature p {
    color: var(--text-2);
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.72;
}
.eve-cta {
    background:
        linear-gradient(150deg, rgba(15,118,110,.08) 0%, var(--card) 48%, rgba(180,83,9,.1) 100%);
    border-top-color: var(--eve-border);
    border-bottom-color: #fed7aa;
}

/* ════════════════════════════════════════════ CRI PAGE ════════════════ */

.cri-hero h1 {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    font-size: 3.4rem;
    line-height: 1.08;
    letter-spacing: 0;
}
.cri-hero .hero-desc { max-width: 720px; }
.cri-page { max-width: 1040px; }
.cri-fact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 52px;
}
.cri-fact {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 116px;
    padding: 20px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--sh-sm);
}
.cri-fact-value {
    color: var(--brand);
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.cri-fact-label {
    margin-top: 9px;
    color: var(--text-3);
    font-size: .82rem;
    font-weight: 700;
    line-height: 1.45;
}
.cri-compare-grid,
.cri-card-grid,
.cri-weight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.cri-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cri-list-panel,
.cri-card,
.cri-weight {
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--sh-sm);
}
.cri-list-panel { padding: 28px; }
.cri-list-panel-muted { background: #fff7ed; border-color: #fed7aa; }
.cri-list-panel h3,
.cri-card h3,
.cri-note-block h3,
.cri-weight h3 {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.cri-list-panel ul {
    display: grid;
    gap: 10px;
    list-style: none;
}
.cri-list-panel li {
    position: relative;
    padding-left: 22px;
    color: var(--text-2);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.7;
}
.cri-list-panel li::before {
    content: '';
    position: absolute;
    top: .78em;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--brand);
}
.cri-list-panel-muted li::before { background: #ea580c; }
.cri-formula-band {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.cri-formula-main {
    max-width: 760px;
    margin: 0 auto 18px;
    padding: 18px 22px;
    background: #0f172a;
    color: #fff;
    border-radius: 8px;
    text-align: center;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.45;
}
.cri-weight-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cri-weight { padding: 24px; }
.cri-weight span {
    display: block;
    color: var(--brand);
    font-size: 2rem;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}
.cri-weight p,
.cri-card p,
.cri-note-block p,
.cri-cta-note {
    color: var(--text-2);
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.72;
}
.cri-card { padding: 24px; }
.cri-note-block {
    margin-top: 28px;
    padding: 26px 28px;
    border-left: 4px solid var(--brand);
    background: var(--brand-bg);
    border-radius: 8px;
}
.cri-note {
    margin-top: 10px;
    color: var(--brand-2) !important;
    font-weight: 700 !important;
}
.cri-cta p { max-width: 680px; }
.cri-cta-note {
    max-width: 680px;
    margin: -22px auto 34px !important;
    color: var(--text-3);
}

/* ════════════════════════════════════════════ CTA ══════════════════════ */

.cta-section {
    padding: 80px 24px;
    text-align: center;
    background: linear-gradient(150deg, var(--classic-bg) 0%, var(--card) 50%, var(--midnight-bg) 100%);
    border-top: 1px solid var(--classic-border);
    border-bottom: 1px solid var(--midnight-border);
}
.cta-section h2 {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 900;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.cta-section p {
    color: var(--text-2);
    font-size: .95rem;
    font-weight: 500;
    max-width: 460px;
    margin: 0 auto 38px;
    line-height: 1.75;
}

.btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: var(--r-sm);
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .2px;
    text-decoration: none;
    min-height: 48px;
    transition: all .18s;
    cursor: pointer;
}
.btn-gold {
    background: var(--brand);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(37,99,235,.28);
}
.btn-gold:hover { background: var(--brand-2); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,99,235,.35); }
.btn-outline {
    background: var(--card);
    color: var(--text);
    border: 1.5px solid var(--border-md);
    box-shadow: var(--sh-xs);
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

/* ════════════════════════════════════════════ FOOTER ═══════════════════ */

.site-footer {
    background: #0f172a;   /* slate-900 – stark & modern */
    border-top: 1px solid #1e293b;
    padding: 32px 24px;
    color: #94a3b8;
}
.footer-inner {
    max-width: 1160px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-logo {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #f8fafc;
}
.footer-copy { font-size: .78rem; font-weight: 500; color: #475569; margin-top: 4px; }
.footer-copy a { color: #64748b; text-decoration: none; }
.footer-copy a:hover { color: #94a3b8; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a {
    font-size: .75rem;
    font-weight: 600;
    color: #475569;
    text-decoration: none;
    transition: color .15s;
}
.footer-links a:hover { color: #cbd5e1; }
.footer-badge {
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .8px;
    color: #475569;
    background: rgba(255,255,255,.04);
    border: 1px solid #1e293b;
    padding: 4px 12px;
    border-radius: var(--r-sm);
    white-space: nowrap;
}
.footer-disclaimer {
    max-width: 1160px;
    margin: 16px auto 0;
    padding-top: 16px;
    border-top: 1px solid #1e293b;
    font-size: .7rem;
    color: #334155;
    text-align: center;
    line-height: 1.6;
}

/* ════════════════════════════════════════════ RESPONSIVE ═══════════════ */

/* ── Tablet (≤ 900px) ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .nav-links li:not(.nav-cta):not(.nav-lang):not(.nav-theme):not(.nav-menu-li) { display: none; }
    .nav-menu-li { display: flex; }
    .nav-lang { max-width: 235px; flex-wrap: wrap; justify-content: flex-end; row-gap: 0; }
    .nav-lang a { padding: 2px 4px; font-size: .7rem; min-height: 24px; }
    .lang-sep { font-size: .65rem; }
    .hero         { padding: 60px 20px 52px; }
    .eve-hero     { min-height: 500px; }
    .section-wrap { padding: 52px 20px; }
    .section-inner{ padding: 0 20px; }
    .section-full { padding: 52px 0; }
    .cta-section  { padding: 64px 20px; }
    .site-footer  { padding: 28px 20px; }
    .footer-inner { flex-direction: column; text-align: center; align-items: center; }
    .footer-links { justify-content: center; }
    .stats-bar .stat-item {
        min-width: 50%;
        border-right: none;
        border-bottom: 1px solid var(--border);
    }
    .stats-bar .stat-item:last-child { border-bottom: none; }
    .wow-divider { padding: 0 20px; }
    .game-grid { grid-template-columns: 1fr; }
    .game-card { min-height: 0; }
    .eve-feature-grid { grid-template-columns: 1fr; }
    .eve-feature { min-height: 0; }
}

/* ── Mobile: Tabelle → Karten (≤ 700px) ──────────────────────────────── */
@media (max-width: 700px) {

    /* Abstände allgemein */
    .site-nav      { padding: 0 16px; height: 56px; }
    .breadcrumb    { padding: 12px 16px 0; }
    .nav-cta       { display: none; }
    .hero          { padding: 48px 16px 44px; }
    .eve-hero {
        min-height: 520px;
        background-position: 58% center;
    }
    .section-wrap  { padding: 44px 16px; }
    .section-inner { padding: 0 16px; }
    .section-full  { padding: 44px 0; }
    .cta-section   { padding: 52px 16px; }
    .wow-divider   { padding: 0 16px; }

    /* Hero Schrift */
    .hero h1       { letter-spacing: 0; font-size: clamp(2.4rem, 11vw, 3.4rem); }
    .hero-desc     { font-size: .95rem; }
    .hero-eyebrow  { font-size: .65rem; padding: 5px 13px; }

    /* Stats 2-Spaltig */
    .stat-num  { font-size: 1.5rem; }
    .stat-item { padding: 18px 20px; }

    /* Section-Heading kompakter */
    .sh-center h2 { font-size: 1.4rem; letter-spacing: .5px; }
    .sh-line      { display: none; }

    /* Tabelle → Karten-Layout */
    .table-wrap {
        overflow: visible;
        max-height: none;          /* kein Ausschnitt mobil – Karten voll zeigen */
        border-radius: var(--r);
        box-shadow: var(--sh-sm);
        border-width: 1px;
    }
    /* Sticky-Kopf gilt nur für die Desktop-Tabelle; mobil ist der thead aus */
    .guild-table th { position: static; }
    .guild-table,
    .guild-table tbody,
    .guild-table tr,
    .guild-table td { display: block; min-width: unset; white-space: normal; width: 100%; }
    .guild-table thead { display: none; }

    /* Jede Zeile = Karte */
    .guild-table tbody tr {
        position: relative;
        padding: 16px 16px 14px;
        border-bottom: 1px solid var(--border);
    }
    .guild-table tbody tr:last-child { border-bottom: none; }
    .guild-table tbody tr:nth-child(even) { background: var(--surface); }
    .t-classic  .guild-table tbody tr:hover { background: var(--classic-bg); }
    .t-midnight .guild-table tbody tr:hover { background: var(--midnight-bg); }
    .t-wow      .guild-table tbody tr:hover { background: var(--accent-bg); }

    /* Rang: oben rechts */
    .td-rank {
        position: absolute;
        top: 16px;
        right: 16px;
        width: auto;
        padding: 0;
        text-align: right;
    }
    .td-rank .rk   { font-size: 1.2rem; }
    .td-rank .rk-n { font-size: .8rem; }

    /* Gildenname: Breite abzüglich Rang-Platz */
    .td-name        { padding: 0 52px 0 0; }
    .guild-name     { font-size: .95rem; line-height: 1.3; }
    .guild-meta     { font-size: .76rem; margin-top: 3px; }

    /* Score + Balken */
    .td-score  { padding: 10px 0 0; }
    .score-val { font-size: 1.05rem; margin-bottom: 6px; }
    .score-bar { height: 5px; max-width: 200px; }

    /* Tags-Zeile: Fraktion · Trend · Badge inline */
    .td-faction,
    .td-alltime,
    .td-trend,
    .td-badge,
    .td-kind,
    .td-ticker,
    .td-members { display: inline-block; vertical-align: middle; padding: 0; }
    .td-faction { margin: 8px 8px 0 0; }
    .td-alltime { margin: 8px 8px 0 0; }
    .td-trend   { margin: 8px 8px 0 0; }
    .td-badge   { margin: 8px 0 0; }
    .td-kind,
    .td-ticker,
    .td-members { margin: 8px 8px 0 0; }
    .faction    { font-size: .72rem; padding: 3px 9px; }
    .q-badge    { font-size: .7rem; }
    .alltime-val { height: 26px; min-width: 34px; font-size: .78rem; }
    .eve-kind   { font-size: .72rem; padding: 3px 9px; }

    /* Progression */
    .td-progress {
        display: block;
        padding: 6px 0 0;
        font-size: .78rem;
        color: var(--text-3);
    }

    /* Quellen: in der Karte anzeigen (anklickbar) */
    .td-sources { display: block; padding: 8px 0 0; }
    .src ul     { min-width: 0; max-width: 100%; background: var(--card); }

    /* „Über die Gilde“ + Quellen mobil als echte, gut tappbare Buttons */
    .guild-about summary,
    .src summary {
        min-height: 42px;
        padding: 9px 16px;
        border-radius: 999px;
        background: var(--brand-bg);
        border: 1px solid #bfdbfe;
        color: var(--brand-2);
        font-size: .8rem;
        font-weight: 700;
        white-space: nowrap;
    }
    .src-summary-date { font-size: .72rem; }
    .guild-about summary { margin-top: 10px; }
    /* Aufgeklappt = gefüllter Button → klares Auf/Zu-Feedback */
    .guild-about[open] summary,
    .src[open] summary {
        background: var(--brand);
        border-color: var(--brand);
        color: #fff;
    }
    .src[open] .src-summary-date { color: rgba(255,255,255,.78); }
    .guild-about p { max-width: 100%; }   /* Beschreibung nutzt mobil die volle Kartenbreite */

    /* How-cards: 2 Spalten */
    .how-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .how-card { padding: 18px 14px; }
    .how-num  { font-size: 1.6rem; }
    .how-card h3 { font-size: .85rem; }
    .how-card p  { font-size: .8rem; }
    .cri-hero h1 { font-size: 2.4rem; }
    .cri-fact-grid,
    .cri-compare-grid,
    .cri-card-grid,
    .cri-weight-grid { grid-template-columns: 1fr; }
    .cri-fact { min-height: 0; }
    .cri-list-panel,
    .cri-card,
    .cri-weight,
    .cri-note-block { padding: 22px 18px; }
    .cri-formula-main { font-size: .95rem; padding: 16px; }
    .eve-empty { padding: 26px 18px; }
    .method-link-row .btn { width: 100%; }

    /* CTA Buttons */
    .btn-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .btn     { width: 100%; padding: 14px 20px; font-size: .9rem; justify-content: center; }

    /* Footer */
    .site-footer  { padding: 24px 16px; }
    .footer-inner { gap: 14px; }
}

/* ── Kleines Smartphone (≤ 400px) ─────────────────────────────────────── */
@media (max-width: 400px) {
    .hero h1     { font-size: 2.2rem; }
    .cri-hero h1 { font-size: 1.95rem; }
    .how-grid    { grid-template-columns: 1fr; }
    .stat-item   { min-width: 100%; }
    .guild-table tbody tr { padding: 14px 12px; }
    .td-name     { padding-right: 44px; }
    .td-rank     { right: 12px; }
    .score-bar   { max-width: 160px; }
}

/* ════════════════════════════════════════════ LEGAL / IMPRESSUM ════════ */

.legal-page { max-width: 920px; }
.legal-body {
    margin-top: 36px;
    background: var(--card);
    border: 1.5px solid var(--border);
    border-radius: var(--r-lg);
    box-shadow: var(--sh-sm);
    padding: 42px 48px;
}
.legal-body h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1.02rem;
    font-weight: 800;
    color: var(--text);
    margin: 26px 0 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border);
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body p {
    font-size: .92rem;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 4px;
}
.legal-body a { color: var(--brand); text-decoration: none; font-weight: 600; }
.legal-body a:hover { text-decoration: underline; }
.legal-document {
    display: grid;
    gap: 10px;
}
.legal-document h3 {
    margin: 34px 0 6px;
    padding: 0 0 8px 14px;
    border-left: 3px solid var(--brand);
    border-bottom: 1px solid var(--border);
    font-size: 1.08rem;
    line-height: 1.35;
}
.legal-document h3:first-child {
    margin-top: 0;
    border-left-color: var(--text);
    font-size: 1.18rem;
}
.legal-document p {
    margin: 0;
    color: var(--text-2);
    font-size: .94rem;
    line-height: 1.78;
    overflow-wrap: anywhere;
}
.legal-document .legal-ad-note {
    color: var(--text-4);
    font-size: .78rem;
    font-style: italic;
}
.legal-back {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.legal-back a { font-weight: 700; }

@media (max-width: 560px) {
    .legal-body { padding: 26px 18px; }
    .legal-document h3 { font-size: 1rem; }
}

/* ════════════════════════════════════════════ COOKIE-BANNER ════════════ */

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 999;
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding: 18px 22px;
    background: #0f172a;
    border: 1px solid #1e293b;
    border-radius: var(--r-lg);
    box-shadow: 0 8px 40px rgba(0,0,0,.35);
    animation: cookie-in .35s ease both;
}
@keyframes cookie-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cookie-banner.hide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .3s, transform .3s;
}

.cookie-text {
    flex: 1;
    min-width: 220px;
    color: #cbd5e1;
    font-size: .82rem;
    line-height: 1.55;
}
.cookie-text strong {
    display: block;
    color: #f8fafc;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 3px;
}
.cookie-link { color: var(--brand); text-decoration: none; font-weight: 600; white-space: nowrap; }
.cookie-link:hover { text-decoration: underline; }

.cookie-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-family: 'Inter', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .15s;
    white-space: nowrap;
    min-height: 42px;
}
.cookie-accept {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
}
.cookie-accept:hover { background: var(--brand-2); }
.cookie-decline {
    background: transparent;
    color: #cbd5e1;
    border-color: #334155;
}
.cookie-decline:hover { border-color: #64748b; color: #f8fafc; }

@media (max-width: 560px) {
    .cookie-banner { left: 10px; right: 10px; bottom: 10px; padding: 16px; gap: 14px; }
    .cookie-actions { width: 100%; }
    .cookie-btn { flex: 1; }
}

/* ── Gilden-Live-Suche ───────────────────────────────────────────────── */
.guild-search {
    position: relative;
    max-width: 560px;
    margin: 1.75rem auto 0;
    padding: 0 1.25rem;
}
.guild-search-icon {
    position: absolute;
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    opacity: .55;
    pointer-events: none;
}
.guild-search-input {
    width: 100%;
    padding: .8rem 1rem .8rem 2.7rem;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: var(--card);
    border: 1px solid var(--border-md);
    border-radius: .7rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: border-color .15s, box-shadow .15s;
}
.guild-search-input::placeholder { color: var(--text-4); }
.guild-search-input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-bg);
}

/* ════════════════════════════════════════════ THEME-UMSCHALTER ═════════ */
.nav-theme { display: flex; align-items: center; margin: 0 2px; }
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--card);
    color: var(--text-2);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: color .15s, background .15s, border-color .15s;
}
.theme-toggle:hover { color: var(--brand); background: var(--surface); border-color: var(--border-md); }
.theme-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ════════════════════════════════════════════ MOBILES MENÜ ═════════════ */
/* Aufklapp-Menü (☰) mit den Unterseiten. Desktop aus; sichtbar ≤900px,
   weil dort die normalen Nav-Links ausgeblendet sind. <details> arbeitet
   ohne JavaScript; site.js schließt nur zusätzlich bei Klick daneben. */
.nav-menu-li { display: none; align-items: center; margin: 0 0 0 2px; }
.nav-menu-details summary { list-style: none; }
.nav-menu-details summary::-webkit-details-marker { display: none; }
.menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--card);
    color: var(--text-2);
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    transition: color .15s, background .15s, border-color .15s;
}
.menu-toggle:hover { color: var(--brand); background: var(--surface); border-color: var(--border-md); }
.menu-toggle:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.nav-menu-details[open] .menu-toggle { color: var(--brand); background: var(--brand-bg); border-color: var(--brand); }
.nav-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 12px;
    z-index: 300;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 220px;
    padding: 8px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--sh-md);
}
.nav-menu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 14px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--text-2);
    text-decoration: none;
    border-radius: var(--r-sm);
}
.nav-menu a:hover   { color: var(--text); background: var(--surface); }
.nav-menu a.active  { color: var(--brand); background: var(--brand-bg); }
.nav-menu .nav-menu-eve { color: var(--eve); }
.nav-menu .nav-menu-cta {
    margin-top: 6px;
    justify-content: center;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}
.nav-menu .nav-menu-cta:hover { background: var(--brand-2); color: #fff; }

/* ════════════════════════════════════════════ SORTIERBARE TABELLEN ═════ */
/* Klickbare Tabellenköpfe (Desktop). Ohne JS bleiben es normale Köpfe. */
.guild-table th[data-sort] { cursor: pointer; user-select: none; }
.guild-table th[data-sort]::after {
    content: '⇅';
    margin-left: 6px;
    font-size: .85em;
    font-weight: 700;
    opacity: .3;
}
.guild-table th[data-sort]:hover::after { opacity: .6; }
.guild-table th[aria-sort="ascending"]::after  { content: '▲'; font-size: .7em; opacity: .9; }
.guild-table th[aria-sort="descending"]::after { content: '▼'; font-size: .7em; opacity: .9; }
.guild-table th[data-sort]:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }

/* Mobile-Sortierleiste: nur in der Kartenansicht sichtbar (Köpfe sind dort aus). */
.table-sort-bar { display: none; }
@media (max-width: 700px) {
    .table-sort-bar {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 12px;
    }
    .table-sort-label {
        font-size: .76rem;
        font-weight: 700;
        letter-spacing: .3px;
        color: var(--text-3);
        text-transform: uppercase;
        white-space: nowrap;
    }
    .table-sort-select {
        flex: 1;
        min-height: 42px;
        padding: 8px 12px;
        font-family: 'Inter', sans-serif;
        font-size: .85rem;
        font-weight: 600;
        color: var(--text);
        background: var(--card);
        border: 1px solid var(--border-md);
        border-radius: var(--r-sm);
    }
}

/* ════════════════════════════════════════════ DARK MODE ════════════════ */
/* Aktiv über <html data-theme="dark"> – gesetzt per Inline-Skript im head.php
   aus localStorage bzw. prefers-color-scheme (FOUC-frei). Reiner Zusatz-Block:
   der helle Standard ganz oben bleibt unberührt, Dark Mode ist voll reversibel.
   Der Großteil der Oberfläche zieht über die CSS-Variablen automatisch nach;
   darunter folgen nur die wenigen Stellen mit fest verdrahteten Farben. */
[data-theme="dark"] {
    --bg:        #0b1220;
    --surface:   #161f33;
    --card:      #18233b;
    --border:    #2a3650;
    --border-md: #3a4866;

    --text:   #e6edf6;
    --text-2: #c2ccdc;
    --text-3: #93a1b8;
    --text-4: #6b7a93;

    --brand:    #5b9bff;
    --brand-2:  #7cb0ff;
    --brand-bg: rgba(91,155,255,.14);

    /* Spiel-Akzente: Grundton hell genug für dunklen Grund; helle -bg/-border
       werden zu dunklen Tönungen, die dunklen -dark-Töne (Text) werden hell. */
    --classic:        #38bdf8;  --classic-2: #0ea5e9;
    --classic-bg:     #0e1c2b;  --classic-border: #1e3a52;  --classic-dark: #bae6fd;
    --midnight:       #a78bfa;  --midnight-2: #8b5cf6;
    --midnight-bg:    #1a142e;  --midnight-border: #3a2a63; --midnight-dark: #ddd6fe;
    --eve:            #2dd4bf;  --eve-2: #fbbf24;
    --eve-bg:         #0c1b1e;  --eve-border: #16494a;      --eve-dark: #99f6e4;

    --alliance: #3b82f6;
    --horde:    #ef4444;

    --sh-xs: 0 1px 2px rgba(0,0,0,.4);
    --sh-sm: 0 1px 4px rgba(0,0,0,.35), 0 4px 12px rgba(0,0,0,.3);
    --sh-md: 0 2px 8px rgba(0,0,0,.45), 0 8px 24px rgba(0,0,0,.4);
}

/* WoW-Varianten-Akzente (werden auf den .accent-* Klassen gesetzt, nicht in :root) */
[data-theme="dark"] .accent-era      { --accent-bg: #0e1c2b; --accent-border: #1e3a52; --accent-dark: #bae6fd; --accent-head: #13283b; }
[data-theme="dark"] .accent-midnight { --accent-bg: #1a142e; --accent-border: #3a2a63; --accent-dark: #ddd6fe; --accent-head: #241a3f; }
[data-theme="dark"] .accent-sod      { --accent: #fb7185; --accent-bg: #26121a; --accent-border: #5a2333; --accent-dark: #fecdd3; --accent-head: #33161f; }
[data-theme="dark"] .accent-hardcore { --accent: #94a3b8; --accent-bg: #141a24; --accent-border: #2a3650; --accent-dark: #e2e8f0; --accent-head: #1a2233; }
[data-theme="dark"] .accent-mop      { --accent: #34d399; --accent-bg: #0c1f18; --accent-border: #1c4a39; --accent-dark: #a7f3d0; --accent-head: #103025; }

/* Navigation (heller Glas-Hintergrund → dunkles Glas) */
[data-theme="dark"] .site-nav { background: rgba(15,23,42,.92); }

/* Tabellenköpfe + Hover mit fest verdrahteten Hellfarben */
[data-theme="dark"] .t-classic  .guild-table thead tr,
[data-theme="dark"] .t-classic  .guild-table th { background: #13283b; box-shadow: inset 0 -1.5px 0 var(--classic-border); }
[data-theme="dark"] .t-midnight .guild-table thead tr,
[data-theme="dark"] .t-midnight .guild-table th { background: #241a3f; box-shadow: inset 0 -1.5px 0 var(--midnight-border); }
[data-theme="dark"] .t-eve      .guild-table thead tr,
[data-theme="dark"] .t-eve      .guild-table th { background: #0f2e2e; box-shadow: inset 0 -1.5px 0 var(--eve-border); }
[data-theme="dark"] .t-classic  .guild-table tbody tr:hover { background: #13283b; }
[data-theme="dark"] .t-midnight .guild-table tbody tr:hover { background: #241a3f; }
[data-theme="dark"] .t-eve      .guild-table tbody tr:hover { background: #0f2e2e; }

/* Rang-Medaillen (helle Pastell-Pillen → dunkle Tönung) */
[data-theme="dark"] .rk-1 { background: rgba(245,158,11,.18); color: #fcd34d; }
[data-theme="dark"] .rk-2 { background: rgba(148,163,184,.18); color: #cbd5e1; }
[data-theme="dark"] .rk-3 { background: rgba(234,88,12,.18); color: #fdba74; }

/* AlltimeIndex-Pille */
[data-theme="dark"] .alltime-val { background: #2a1d10; border-color: #5a3a1a; color: #fcd385; }

/* Trend deutlicher auf dunklem Grund */
[data-theme="dark"] .t-up   { color: #4ade80; }
[data-theme="dark"] .t-down { color: #f87171; }

/* Status-Pillen (Portal) */
[data-theme="dark"] .status-pill.live  { background: rgba(34,197,94,.16);  color: #86efac; border-color: rgba(34,197,94,.35); }
[data-theme="dark"] .status-pill.alpha { background: rgba(245,158,11,.16); color: #fcd34d; border-color: rgba(245,158,11,.35); }
[data-theme="dark"] .status-pill.soon  { background: var(--surface); color: var(--text-3); border-color: var(--border); }

/* Spielkarte EVE (Gradient mit hellem Endstop) */
[data-theme="dark"] .game-card-eve { background: linear-gradient(160deg, var(--eve-bg) 0%, var(--card) 60%); }
[data-theme="dark"] .game-card-eve .game-icon { background: #10302e; color: #5eead4; }

/* Feine Hellrahmen (Eyebrow, Quellen-Tag) */
[data-theme="dark"] .hero-eyebrow { border-color: rgba(91,155,255,.4); }
[data-theme="dark"] .src-tag      { border-color: rgba(91,155,255,.35); }

/* CRI-Seite: hell hinterlegter „muted"-Block */
[data-theme="dark"] .cri-list-panel-muted { background: #241a10; border-color: #5a3a1a; }
[data-theme="dark"] .cri-list-panel-muted li::before { background: #fb923c; }

/* ══════════════════════════════════════════════════════════
   GILDEN-UNTERSEITEN (gilde-*.php, generiert) + Namens-Links
   in den Ranking-Tabellen. Nutzt das Akzent-System (.accent-*).
   ══════════════════════════════════════════════════════════ */

/* Klickbarer Gildenname in den Tabellen (nur wenn Unterseite existiert) */
.guild-table .td-name a.guild-link { color: inherit; text-decoration: none; }
.guild-table .td-name a.guild-link .guild-name {
    border-bottom: 1px dashed var(--border-md);
    transition: color .15s, border-color .15s;
}
.guild-table .td-name a.guild-link:hover .guild-name,
.guild-table .td-name a.guild-link:focus-visible .guild-name {
    color: var(--accent, var(--brand));
    border-bottom: 1px solid var(--accent, var(--brand));
}

/* Mobiler Knopf zur Gilden-Unterseite: Desktop aus (dort ist der Name selbst
   der Link), in der Kartenansicht ≤700px ein deutlich antippbarer Knopf mit
   dem Entity-Namen. Farben über das Akzent-System der jeweiligen Tabelle. */
.guild-page-btn { display: none; }
@media (max-width: 700px) {
    .guild-page-btn {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        max-width: 100%;
        margin-top: 10px;
        padding: 9px 14px;
        min-height: 42px;
        font-size: .82rem;
        font-weight: 700;
        color: var(--accent, var(--brand));
        background: var(--accent-bg, var(--brand-bg));
        border: 1px solid var(--accent-border, var(--border));
        border-radius: var(--r-sm);
        text-decoration: none;
    }
    .guild-page-btn:hover,
    .guild-page-btn:focus-visible {
        border-color: var(--accent, var(--brand));
        box-shadow: var(--sh-xs);
    }
    .guild-page-btn .gpb-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .guild-page-btn .gpb-arrow { flex-shrink: 0; }
}

/* EVE bekommt dieselben Akzent-Variablen wie die WoW-Varianten */
.accent-eve { --accent: var(--eve); --accent-bg: var(--eve-bg); --accent-border: var(--eve-border); --accent-dark: var(--eve-dark); --accent-head: #cffafe; }

.gp-page  { background: var(--accent-bg); border-top: 1px solid var(--accent-border); min-height: 60vh; }
.gp-wrap  { max-width: 880px; margin: 0 auto; padding: 2.2rem 1.5rem 4rem; }
.gp-back  { display: inline-block; margin-bottom: 1.4rem; color: var(--accent-dark); text-decoration: none; font-weight: 600; font-size: .92rem; }
.gp-back:hover { text-decoration: underline; }
.gp-head  { margin-bottom: 1.4rem; }
.gp-game-pill { display: inline-block; padding: .25rem .7rem; border: 1px solid var(--accent-border); border-radius: 999px; background: var(--card); color: var(--accent-dark); font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.gp-name  { font-family: 'Cinzel', serif; color: var(--text); font-size: clamp(1.7rem, 4vw, 2.6rem); margin: .6rem 0 .3rem; }
.gp-meta  { color: var(--text-3); margin: 0 0 .7rem; }
.gp-stats { margin: 1.2rem 0 2rem; }
.gp-stat-text { font-size: 1.1rem; }
.gp-section { background: var(--card); border: 1px solid var(--accent-border); border-radius: .8rem; padding: 1.4rem 1.6rem; margin-bottom: 1.4rem; }
.gp-h2    { color: var(--accent-dark); font-size: 1.15rem; margin: 0 0 .9rem; }
.gp-lead  { font-weight: 600; }
.gp-section p { color: var(--text-2); line-height: 1.65; margin: 0 0 .9rem; }
.gp-section p:last-child { margin-bottom: 0; }
.gp-sources { list-style: none; margin: 0; padding: 0; }
.gp-sources li { padding: .55rem 0; border-bottom: 1px solid var(--border); }
.gp-sources li:last-child { border-bottom: 0; }
.gp-sources a { color: var(--text-2); text-decoration: none; word-break: break-word; }
.gp-sources a:hover { color: var(--accent, var(--brand)); }
.gp-src-meta { display: block; color: var(--text-4); font-size: .8rem; margin-top: .15rem; }
.gp-ai-note { color: var(--text-3); font-size: .85rem; margin: 1.6rem 0; }
.gp-back-btn { margin-top: .4rem; }

/* Dunkelmodus: EVE-Akzent abdunkeln (wie die WoW-Akzente weiter oben) */
[data-theme="dark"] .accent-eve { --accent-bg: #0a1f1e; --accent-border: #134e4a; --accent-dark: #99f6e4; --accent-head: #0f2e2c; }
