/* ==========================================================================
   LöwentarnTV – Stylesheet
   ========================================================================== */

/* ----- Fonts (selbst gehostet) ----- */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../assets/fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../assets/fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../assets/fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* ----- Tokens ----- */
:root {
    --bg: #0b0d10;
    --surface: #12151a;
    --surface-2: #161a20;
    --border: rgba(255, 255, 255, 0.09);
    --border-soft: rgba(255, 255, 255, 0.06);

    --text: #e8eaed;
    --text-muted: #9aa1ab;
    --text-faint: #667180;
    /* Eine Spur heller als --text-faint: Hinweiszeilen sind kleine Schrift und
       brauchen 4,5:1 gegen den Grund, sonst sind sie nicht mehr lesbar. */
    --text-note: #7d8794;

    --gold: #d4af37;
    /* Höhe des Artwork-Bands – gilt für Startseite und Unterseiten gleichermaßen,
       damit auf jeder Seite derselbe Bildausschnitt steht und beim Wechseln
       nichts springt. */
    --head-art-h: 340px;
    --twitch: #9146ff;
    --twitch-hover: #a266ff;
    --discord: #5865f2;
    --live: #eb0400;

    --radius: 10px;
    --radius-lg: 14px;

    --font: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
    /* Die Kopfleiste besteht aus der Navigationszeile und der Sponsorenleiste
       darunter. --header-h ist die Gesamthöhe: alles, was unter der fixierten
       Kopfleiste beginnt, rechnet damit. */
    --nav-h: 64px;
    --strip-h: 42px;
    --header-h: calc(var(--nav-h) + var(--strip-h));
    --container: 1100px;
}

/* ----- Basis ----- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
    /* Platz für den Rollbalken immer freihalten: sonst verschiebt sich die Seite
       um dessen Breite, sobald man von einer kurzen auf eine lange Seite wechselt. */
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}


img, svg, video, iframe { max-width: 100%; display: block; }
img, video { height: auto; }

/* Bewusst keine eigene Farbe für markierten Text: Die Auswahlfarbe des
   Betriebssystems ist gewohnt und wirkt sachlicher als eine Hausfarbe.

   Bedienelemente lassen sich nicht markieren: Beim Ziehen mit der Maus oder
   einem Doppelklick auf eine Schaltfläche sieht eine blau hinterlegte
   Beschriftung nach Fehler aus. Fließtext und Überschriften bleiben außen vor. */
.btn,
.nav-toggle,
.label,
.live-badge,
.offline-badge,
.coming-soon-badge,
.roster-badge,
.affix-list li,
.pager-btn,
.podium-medal,
.supporter-rank,
.run-caret {
    -webkit-user-select: none;
    user-select: none;
}

/* Medien nicht ziehbar / nicht per Long-Press speicherbar */
img, svg, video, picture {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.015em; }
h2 { font-size: 1.45rem; font-weight: 700; }
h3 { font-size: 1rem; font-weight: 600; }
p { margin: 0 0 1em; }
a { color: var(--text); }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 3px;
}

.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 200;
    padding: 10px 16px;
    background: var(--text);
    color: var(--bg);
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 8px;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: rgba(11, 13, 16, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-soft);
}

.header-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}
.brand .brand-tv { color: var(--gold); }

.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
    padding: 7px 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: 7px;
    transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.main-nav a[aria-current="page"] { color: var(--text); }

/* Menüpunkt mit Untermenü (Mythic+ -> Season, Guides & AddOns).
   Öffnet beim Überfahren und beim Tabben (:focus-within); auf dem Handy steht das
   Untermenü ausgeklappt unter dem Hauptpunkt, weil es dort kein Hovern gibt. */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    opacity: 0.65;
    transition: transform 0.15s ease;
}
.nav-item:hover .nav-caret,
.nav-item:focus-within .nav-caret { transform: rotate(180deg); }
/* Die Seite selbst ist offen oder eine ihrer Unterseiten */
.nav-item.is-active > a { color: var(--text); }

.nav-sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    min-width: 190px;
    margin-top: 6px;
    padding: 6px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}
.nav-item:hover .nav-sub,
.nav-item:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
/* Der Streifen schließt die Lücke zwischen Punkt und Klappe, damit sie beim
   Hinunterfahren mit der Maus nicht zuklappt. */
.nav-sub::before { content: ""; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.main-nav .nav-sub a { padding: 8px 12px; border-radius: 6px; white-space: nowrap; }

/* Der Platz für „LIVE“ bleibt immer frei – sonst rutscht das ganze Menü zur Seite,
   sobald der Live-Status eintrifft. */
.header-live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0 4px 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #ff5952;
    visibility: hidden;
}
.header-live.visible { visibility: visible; }
.header-live .live-dot { background: var(--live); }

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}
.pulse { animation: pulse 2.2s infinite; }
@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(235, 4, 0, 0.45); }
    70%  { box-shadow: 0 0 0 6px rgba(235, 4, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(235, 4, 0, 0); }
}

.main-nav .nav-cta {
    margin-left: 10px;
    padding: 8px 16px;
    background: var(--twitch);
    color: #fff;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.15s ease;
}
.main-nav .nav-cta:hover { background: var(--twitch-hover); color: #fff; }

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 9px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
}
.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary { background: var(--twitch); color: #fff; }
.btn-primary:hover { background: var(--twitch-hover); color: #fff; }

.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.25); }

.btn-gold { background: var(--gold); color: #141002; }
.btn-gold:hover { background: #e0be52; }

.btn-sm { padding: 7px 14px; font-size: 0.84rem; }
.btn-sm svg { width: 13px; height: 13px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    padding: calc(var(--header-h) + 56px) 0 64px;
    border-bottom: 1px solid var(--border-soft);
    isolation: isolate;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: var(--head-art-h);
    z-index: -1;
    background: url('../assets/img/hero-bg.webp') no-repeat center 16% / cover;
    /* 0.45 statt 0.22: Bei 0.22 war das Artwork tagsüber praktisch unsichtbar und
       kam erst bei dunkler Umgebung zur Geltung. Höher geht es nicht – ab etwa 0.58
       fällt die Unterzeile unter 4,5:1 Kontrast. */
    opacity: 0.45;
    /* Das Band endet nicht mit einer Kante, sondern läuft nach unten aus. */
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(11, 13, 16, 0.22), rgba(11, 13, 16, 0.40) 60%, var(--bg));
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: center;
}

.hero-title {
    font-size: clamp(2rem, 4.5vw, 2.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 12px;
}
.hero-title .brand-tv { color: var(--gold); }

.hero-copy {
    max-width: 400px;
    margin-bottom: 24px;
    color: var(--text-muted);
    font-size: 1rem;
}

.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.hero-actions .btn-primary { grid-column: 1 / -1; }

/* ----- Live-Panel ----- */
.live-panel {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    overflow: hidden;
}

.live-panel-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 12px 16px;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border-soft);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    background: var(--live);
    border-radius: 5px;
}
.live-badge .live-dot { background: #fff; width: 6px; height: 6px; }

.offline-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 5px;
}

.live-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 14px;
    color: var(--text-muted);
}
.live-stats strong { color: var(--text); font-weight: 600; }

.live-panel-head .follow-btn {
    margin-left: auto;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--twitch-hover);
    text-decoration: none;
}
.live-panel-head .follow-btn:hover { text-decoration: underline; }

.live-embed { aspect-ratio: 16 / 9; background: #000; }
.live-embed iframe { width: 100%; height: 100%; border: 0; }

.live-preview { position: relative; display: block; }
.live-preview img { width: 100%; height: 100%; object-fit: cover; }
.live-preview .play-icon {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
}
.live-preview .play-icon > span {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(11, 13, 16, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background 0.15s ease;
}
.live-preview:hover .play-icon > span { background: var(--twitch); }

.live-foot {
    display: block;
    /* Im Live-Zustand kommt der Text erst mit den Daten. Ohne feste Höhe würde die
       Karte in dem Moment wachsen und die Seite darunter springen. */
    min-height: 44px;
    padding: 11px 16px;
    margin: 0;
    font-size: 0.84rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.live-foot strong { color: var(--text); font-weight: 600; }

/* Offline-Zustand: gleiche Größe wie der Player, damit nichts springt */
.offline-art {
    display: block;
    aspect-ratio: 16 / 9;
    background: #000;
}
.offline-art img { width: 100%; height: 100%; object-fit: cover; }

.embed-placeholder { aspect-ratio: 16 / 9; background: rgba(255, 255, 255, 0.03); }

.live-foot.is-offline { white-space: normal; overflow: visible; }

.live-foot a { color: var(--twitch-hover); text-decoration: none; }
.live-foot a:hover { text-decoration: underline; }

/* Kompakte Box, wenn der Status nicht abrufbar ist */
.offline-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 28px 24px;
}
.offline-box h3 { margin: 2px 0 0; font-size: 1.05rem; }
.offline-box p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }
.offline-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* ==========================================================================
   Sektionen
   ========================================================================== */
/* Der Seitenkopf ist positioniert und würde sonst mit seinem Artwork-Band über
   den ersten Abschnitt malen – die Abschnitte legen sich deshalb davor. */
.section { position: relative; z-index: 1; padding: 56px 0; }
.section + .section { border-top: 1px solid var(--border-soft); }

.section-title {
    margin-bottom: 28px;
}
.section-title h2 { margin: 0; }


/* ----- Mythic+ Seite ----- */
.section-lead {
    max-width: 620px;
    margin: -14px 0 26px;
    color: var(--text-muted);
}

.mplus-error {
    padding: 14px 16px;
    margin: 0 0 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-muted);
}

.season-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px 28px;
    padding: 18px 22px;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.season-meta .label { margin-bottom: 0; }
.affix-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.affix-list li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 13px 6px 6px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid var(--border);
    border-radius: 999px;
    cursor: help;
}
.affix-list li:hover,
.affix-list li:focus-visible { border-color: var(--border-strong, rgba(255, 255, 255, 0.22)); }

/* Die Erklärung zum Affix – erscheint beim Überfahren und beim Anspringen
   mit der Tastatur. */
.affix-tip {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 20;
    width: max-content;
    max-width: min(340px, calc(100vw - 48px));
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: #12161c;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.55;
    color: var(--text-muted);
    text-align: left;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
    pointer-events: none;
}
.affix-tip strong {
    display: block;
    margin-bottom: 5px;
    color: var(--text);
    font-weight: 600;
}
/* Die letzten beiden Karten öffnen nach links, sonst ragt die Erklärung
   über den rechten Rand hinaus. */
.affix-list li:nth-last-child(-n + 2) .affix-tip { left: auto; right: 0; }
/* Nur :focus-visible, nicht :focus-within – sonst bliebe die Karte nach einem
   Mausklick stehen und würde sich mit der nächsten überlappen. :focus-visible
   greift beim Anspringen mit der Tastatur, nicht beim Klicken. */
.affix-list li:hover .affix-tip,
.affix-list li:focus-visible .affix-tip { opacity: 1; visibility: visible; }
.affix-list img { width: 24px; height: 24px; border-radius: 5px; }

/* Punkt in Klassenfarbe vor dem Charakternamen */
.class-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.main-stats {
    padding: 22px 24px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.main-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--border-soft);
}
.main-ident { flex: 1; min-width: 0; }
.main-ident h2 { margin: 0; font-size: 1.15rem; }
.main-ident h2 a { color: inherit; text-decoration: none; }
.main-ident h2 a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--gold);
}
.main-ident p { margin: 2px 0 0; font-size: 0.86rem; color: var(--text-muted); }

.stat-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 20px 0 4px;
}
.stat strong {
    display: block;
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.stat > span {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.stat-gold { color: var(--gold); }

.main-ranks {
    margin: 14px 0 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}
.main-ranks strong { color: var(--text); font-weight: 600; }

.dungeon-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.dungeon {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
/* Dungeon-Bild dahinter, zur Textseite hin abgedunkelt */
.dungeon::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(18, 21, 26, 0.94) 40%, rgba(18, 21, 26, 0.6) 100%),
        var(--run-bg, none);
    background-position: center, center 45%;
    background-size: cover, cover;
    background-repeat: no-repeat;
}
.dungeon > * { position: relative; z-index: 1; }
.dungeon.is-open::before { opacity: 0.55; }

.dungeon-icon { border-radius: 7px; flex-shrink: 0; }
.dungeon-body { flex: 1; min-width: 0; }
.dungeon-body h3 {
    margin: 0;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dungeon-body p {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: var(--text-faint);
}
.dungeon-run {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-shrink: 0;
}
/* Bausteine für Keys: Stufe, Dungeon, Zeitbonus, Zeit */
.run-key {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    color: var(--gold);
}
.run-name { font-weight: 600; }
.run-up {
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: #6fcf7d;
}
.run-time {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
    font-size: 0.88rem;
}
.run-open {

    font-size: 0.82rem;
    color: var(--text-faint);
}

.team-list {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}
.member {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.member-art {
    position: relative;
    aspect-ratio: 230 / 200;
    overflow: hidden;
    background: #0a0c0f;
    /* nur ein Hauch Übergang zur Karte – die Figur endet darüber */
    -webkit-mask-image: linear-gradient(to bottom, #000 94%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 94%, transparent 100%);
}
/* Blizzards Brustbild liefert nur die Farbstimmung – so stark weichgezeichnet,
   dass keine Kanten und keine zweite Figur zu erkennen sind. */
.member-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) brightness(0.5);
    transform: scale(1.6);
}
/* Davor das freigestellte Rendering. Die Figuren liegen in Blizzards Bild
   zwischen 22 % und 82 % der Höhe (gemessen über alle Charaktere) – dieser
   Ausschnitt zeigt sie deshalb vollständig, auch mit Flügeln und Helmspitzen. */
.member-char {
    position: absolute;
    max-width: none;
    left: 50%;
    top: -28%;
    width: 168%;
    height: auto;
    /* feste Proportion, damit das Bild auch vor dem Laden Fläche hat –
       sonst greift das verzögerte Laden nicht */
    aspect-ratio: 4 / 3;
    transform: translateX(-50%);
}



.member-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 4px 18px 18px;
}

.member-role {
    align-self: flex-start;
    padding: 3px 9px;
    margin-bottom: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.07);
    border-radius: 5px;
}
.member h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 2px;
    font-size: 1rem;
}
.member-spec {
    margin: 0 0 14px;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.member-score {
    margin: auto 0 2px;
    font-size: 0.86rem;
    color: var(--text-muted);
}
.member-score strong {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--gold);
    margin-right: 5px;
}
.member-score .is-empty { color: var(--text-faint); }
/* Karte ohne Profildaten (Raider.IO nicht erreichbar): gleiche Form, ohne Bild. */
.member--offline .member-body { justify-content: center; padding-top: 18px; }
.member--offline .member-spec { color: var(--text-faint); }
.member-meta {
    margin: 0 0 14px;
    font-size: 0.78rem;
    color: var(--text-faint);
}
.member-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--twitch-hover);
    text-decoration: none;
}
.member-link:hover { text-decoration: underline; }

.data-note {
    margin: 26px 0 0;
    font-size: 0.82rem;
    color: var(--text-note);
}
.data-note a { color: var(--text-muted); }

/* Läufe der laufenden Woche */
.main-week {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-soft);
}
.main-week p {
    margin: 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}
.main-week strong { color: var(--text); font-weight: 600; }

/* ----- Letzte Keys (aufklappbar) ----- */
.run-block {
    margin-top: 22px;
}
.run-block > .label { margin-bottom: 10px; }

.run-list {
    display: grid;
    gap: 8px;
}
.run {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    overflow: hidden;
}
.run > summary {
    position: relative;
    display: grid;
    grid-template-columns: 56px 1fr auto 62px 120px 16px;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    cursor: pointer;
    list-style: none;
}
.run > summary::-webkit-details-marker { display: none; }
/* Dungeon-Bild als Hintergrund, nach links hin abgedunkelt */
.run > summary::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(18, 21, 26, 0.96) 34%, rgba(18, 21, 26, 0.55) 100%),
        var(--run-bg, none);
    background-position: center, center 45%;
    background-size: cover, cover;
    background-repeat: no-repeat;
    opacity: 0.9;
}
.run > summary > * { position: relative; z-index: 1; }
.run > summary:hover::before { opacity: 1; }

.run-when {
    text-align: right;
    font-size: 0.82rem;
    color: var(--text-muted);
}
.run-caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--text-faint);
    border-bottom: 2px solid var(--text-faint);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.run[open] .run-caret { transform: rotate(-135deg); }

.run-detail {
    padding: 4px 16px 18px;
    border-top: 1px solid var(--border-soft);
}
.run-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0 0;
}
.run-facts dt {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-faint);
    margin-bottom: 3px;
}
.run-facts dd {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
}
.run-mates {
    margin: 18px 0 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.run-mates span { font-weight: 600; }



/* Blättern zwischen den Läufen */
.run-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 14px;
}
.pager-btn {
    padding: 7px 14px;
    font-family: var(--font);
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.pager-btn:hover:not(:disabled) { border-color: rgba(255, 255, 255, 0.25); }
.pager-btn:disabled {
    color: var(--text-faint);
    border-color: var(--border-soft);
    cursor: default;
}
.pager-info {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

/* Gruppe eines Laufs */
.run-mates { margin: 18px 0 16px; }
.roster {
    display: grid;
    gap: 3px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.roster li {
    display: grid;
    grid-template-columns: 74px minmax(0, 150px) minmax(0, 1fr) 72px 62px;
    align-items: baseline;
    gap: 12px;
    padding: 7px 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.88rem;
}
/* Stammgruppe hervorheben */
.roster li.is-regular {
    background: rgba(212, 175, 55, 0.09);
    box-shadow: inset 2px 0 0 var(--gold);
}
.roster-role {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.roster-name {
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.roster-name:hover { text-decoration: underline; }
.roster-badge {
    padding: 1px 7px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.45);
    border-radius: 4px;
    white-space: nowrap;
}
.roster-spec {
    display: flex;
    align-items: baseline;
    gap: 9px;
    min-width: 0;
    color: var(--text-muted);
}
.roster-spec-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.roster-meta,
.roster-score {
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--text-faint);
    font-size: 0.82rem;
}
.roster-score { color: var(--text-muted); font-weight: 600; }

/* ----- Talente ----- */
.talent-block {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 20px 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
/* Artwork der Spezialisierung dahinter, stark abgedunkelt */
.talent-block::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to bottom, rgba(18, 21, 26, 0.9) 0%, rgba(18, 21, 26, 0.97) 70%),
        url('../assets/img/talent-bg.webp') center top / cover no-repeat;
}
.talent-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.talent-spec {
    margin: 2px 0 0;
    font-weight: 600;
}
.talent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.talent-hint {
    margin: 12px 0 0;
    font-size: 0.84rem;
    color: var(--text-faint);
}
.talent-group {
    display: block;
    margin: 22px 0 10px;
}
.talent-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.talent {
    position: relative;
    line-height: 0;
}
.talent img {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.talent .talent-rank {
    position: absolute;
    right: -3px;
    bottom: -4px;
    padding: 1px 4px;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    background: rgba(11, 13, 16, 0.92);
    border: 1px solid var(--border);
    border-radius: 4px;
}



/* ----- Ausrüstung ----- */
.gear-block {
    padding: 20px 22px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.gear-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 22px;
}
.gear-ilvl-total {
    margin: 2px 0 0;
    font-weight: 600;
}
.gear-ilvl-total strong {
    font-size: 1.3rem;
    letter-spacing: -0.03em;
    color: var(--gold);
    margin-right: 4px;
}
.gear-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.gear-item {
    display: grid;
    grid-template-columns: 92px 46px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 5px 8px;
    border-radius: var(--radius);
}
.gear-item:hover { background: rgba(255, 255, 255, 0.03); }
.gear-slot {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.gear-icon {
    position: relative;
    width: 36px;
    height: 36px;
    line-height: 0;
}
.gear-icon > a {
    display: block;
    width: 36px;
    height: 36px;
    border: 1px solid var(--border);
    border-radius: 7px;
    overflow: hidden;
}
.gear-icon > a > img {
    width: 36px;
    height: 36px;
}
/* Sockel und Verzauberungen als kleine Marker rechts am Symbol */
.gear-extras {
    position: absolute;
    top: -5px;
    right: -9px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.gear-extras a {
    display: block;
    /* goldener Rand, damit sich die Marker vom Gegenstand abheben */
    border: 1px solid rgba(212, 175, 55, 0.7);
    border-radius: 4px;
    overflow: hidden;
    background: #0b0d10;
}
.gear-extras img {
    width: 14px;
    height: 14px;
}

.gear-name {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.gear-tier:empty { display: none; }
.gear-tier {
    padding: 1px 5px;
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    vertical-align: 1px;
}
.gear-ilvl {
    font-size: 0.82rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}


/* ----- Discord-Ressourcen (Mythic+ Seite) ----- */
.resource-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.resource {
    display: flex;
    flex-direction: column;
    padding: 20px 22px 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.resource-icon {
    width: 22px;
    height: 22px;
    margin-bottom: 12px;
    color: #7d8aff;
}
.resource h3 { margin: 0 0 6px; }
.resource p {
    margin: 0 0 18px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.resource-btn { align-self: flex-start; margin-top: auto; }

/* Karte mit Hintergrundbild (Mythic+ Routen) */
.resource--art {
    position: relative;
    isolation: isolate;
}
.resource--art::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(to right, rgba(18, 21, 26, 0.97) 44%, rgba(18, 21, 26, 0.26) 100%),
        var(--card-art);
    background-position: center, center 42%;
    background-size: cover, cover;
    background-repeat: no-repeat;
}
/* Das Bild selbst setzt die Vorlage je Kachel inline: style="--card-art: url(...)". */

/* Charakterbild neben den Zahlen */
.main-stats {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 20px;
    align-items: center;
}
.main-portrait {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    /* die Figur läuft nach unten weich aus, statt hart abzuschneiden */
    -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}
.main-portrait img {
    position: absolute;
    max-width: none;
    width: 245%;
    left: -82.5%;
    top: -57%;
    height: auto;
    /* feste Proportion, damit die Fläche schon vor dem Laden steht */
    aspect-ratio: 4 / 3;
}

/* Top-Unterstützer (Seite "Unterstützen") – Podium für die ersten drei */
.podium {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: end;
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.podium-place {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 16px;
    /* die Medaille liegt dahinter und ragt über den Rand hinaus */
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-top: 2px solid var(--podium);
    border-radius: var(--radius);
    background: var(--surface);
    text-align: center;
}
/* Die Medaille: Rand, Lorbeerkranz, Innenfläche und die Platzziffer.
   Die drei Farben je Platz stehen weiter unten bei den Plätzen. */
.podium-medal {
    position: absolute;
    right: -36px;
    bottom: -48px;
    z-index: 0;
    width: var(--medal-size);
    height: var(--medal-size);
    opacity: 0.28;
    pointer-events: none;
}
.podium-medal svg { display: block; width: 100%; height: 100%; }
.medal-face { fill: var(--medal-face); }
.medal-rim { fill: none; stroke: var(--medal-rim); stroke-width: 5; }
.medal-wreath { fill: var(--medal-rim); opacity: 0.85; }
.medal-inner { fill: none; stroke: var(--medal-rim); stroke-width: 1.5; opacity: 0.7; }
.medal-number {
    fill: var(--medal-ink);
    font-family: inherit;
    font-size: 34px;
    font-weight: 700;
}
/* Treppe: Zweiter links, Erster erhöht in der Mitte, Dritter rechts */
.podium-place:nth-child(1) {
    order: 2;
    min-height: 178px;
    --medal-size: 196px;
    --podium: var(--gold);
    --medal-face: #d9b64a; --medal-rim: #9c7b26; --medal-ink: #5d4708;
}
.podium-place:nth-child(2) {
    order: 1;
    min-height: 157px;
    --medal-size: 174px;
    --podium: #c3c8d0;
    --medal-face: #ccd1d8; --medal-rim: #8b929d; --medal-ink: #4e555f;
}
.podium-place:nth-child(3) {
    order: 3;
    min-height: 137px;
    --medal-size: 156px;
    --podium: #bf8850;
    --medal-face: #c58f56; --medal-rim: #8a5f31; --medal-ink: #4f341a;
}
.podium-name {
    position: relative;
    z-index: 1;
    max-width: 100%;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.supporter-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.supporter-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
}
.supporter-rank {
    min-width: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-faint);
    text-align: right;
}
.supporter-name {
    min-width: 0;
    overflow: hidden;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Hauptsponsor-Leiste unter dem Hero (Startseite) */
/* Sponsorenleiste: hängt direkt unter der Navigationszeile und gehört zur fixierten
   Kopfleiste, steht also auf jeder Seite an derselben Stelle. Ihre Höhe steckt in
   --strip-h und damit auch in --header-h. */
.sponsor-strip {
    height: var(--strip-h);
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-soft);
    background: rgba(255, 255, 255, 0.022);
}
.sponsor-strip .container { display: flex; justify-content: center; }
.sponsor-strip-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.15s ease;
}
.sponsor-strip-link:hover { opacity: 1; }
.sponsor-strip-label {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
.sponsor-strip img { height: 26px; width: auto; }

/* Geplante Guides (Seite "Guides & AddOns") */
.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.guide-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 22px 24px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.guide-step {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--text-faint);
}
.guide-card h3 { margin: 0; }
.guide-card p {
    margin: 0 0 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.guide-card .coming-soon-badge { margin: auto 0 0; }
.guide-card .guide-btn { margin-top: auto; }
.guide-card.is-ready .guide-step { color: var(--gold); }

/* Eigene Guide-Seite (/guide-…): Fließtext aus dem Editor im Admin-Bereich.
   Schmale Spalte, damit lange Anleitungen lesbar bleiben. */
.guide-article {
    max-width: 72ch;
    color: var(--text-muted);
    line-height: 1.7;
}
.guide-article > :first-child { margin-top: 0; }
.guide-article h2 { margin: 2.2em 0 0.6em; font-size: 1.3rem; color: var(--text); }
.guide-article h3 { margin: 1.8em 0 0.5em; font-size: 1.05rem; color: var(--text); }
.guide-article p,
.guide-article ul,
.guide-article ol,
.guide-article blockquote { margin: 0 0 1.1em; }
.guide-article ul,
.guide-article ol { padding-left: 1.4em; }
.guide-article li { margin-bottom: 0.35em; }
.guide-article strong { color: var(--text); }
.guide-article a { color: var(--gold); text-underline-offset: 3px; }
.guide-article blockquote {
    padding: 2px 0 2px 16px;
    border-left: 2px solid var(--gold);
    color: var(--text);
}
.guide-article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.6em 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.guide-article hr { margin: 2em 0; border: 0; border-top: 1px solid var(--border); }
.guide-back { margin-top: 36px; font-size: 0.9rem; }
.guide-back a { color: var(--text-muted); }
.guide-back a::before { content: '\2190\00a0'; }

/* Hinweis oben in der Vorschau des Admin-Bereichs. Steht nie auf der
   veröffentlichten Seite – die Vorlage setzt ihn nur im Vorschau-Modus. */
.cms-preview-flag {
    position: fixed;
    left: 50%;
    bottom: 14px;
    z-index: 1000;
    transform: translateX(-50%);
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0b0d10;
    background: var(--gold);
    border-radius: 6px;
    pointer-events: none;
}

/* ----- Pillars ----- */
.pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.pillar {
    padding-top: 14px;
    border-top: 2px solid var(--border);
}
.pillar h3 { margin-bottom: 6px; }
.pillar p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }
/* Pillars mit Buttons: gleiche Höhe, Buttons bündig unten */
.pillars-actions .pillar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.pillar-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.pillar-head h3 { margin: 0; }
.pillar-icon { width: 20px; height: 20px; flex-shrink: 0; }
.pillars-actions .pillar p { margin-bottom: 18px; }
.pillars-actions .pillar-btn { margin-top: auto; }

/* ----- Intro (Video + Text) -----
   Video links, Text rechts -- spiegelt den Hero (Panel rechts) und
   bringt Bewegung in die Seite. */
.intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px;
    align-items: center;
}
.intro-grid .video-frame { order: 1; }
.intro-grid .intro-text { order: 2; }
.intro-text h2 { margin-bottom: 10px; }
.intro-text p { color: var(--text-muted); max-width: 380px; }

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}
.inline-links a {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1px;
}
.inline-links a:hover { border-color: var(--gold); color: var(--gold); }

.video-frame {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
}
.video-frame video { width: 100%; aspect-ratio: 16 / 9; }

/* ----- CTA-Leiste ----- */
.cta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 24px;
    padding: 24px 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
}
.cta-bar h2 { margin: 0 0 2px; font-size: 1.1rem; }
.cta-bar p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    border-top: 1px solid var(--border-soft);
    padding: 40px 0 28px;
    background: var(--bg);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 32px 48px;
    margin-bottom: 32px;
}

.footer-brand .brand { font-size: 1rem; }
.footer-motto {
    margin: 8px 0 0;
    font-size: 0.84rem;
    color: var(--text-faint);
    max-width: 240px;
}

.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-nav h4 {
    margin-bottom: 10px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.footer-nav a {
    display: block;
    padding: 3px 0;
    font-size: 0.86rem;
    color: var(--text-muted);
    text-decoration: none;
}
.footer-nav a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-soft);
}

.footer-copy {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-faint);
}
.footer-copy a { color: var(--text-faint); }
.footer-copy a:hover { color: var(--text); }

.footer-credit {
    font-size: 0.8rem;
    color: var(--text-faint);
    text-decoration: none;
}
.footer-credit strong {
    font-weight: 600;
    color: var(--text-muted);
    transition: color 0.15s ease;
}
.footer-credit:hover strong { color: var(--twitch-hover); }

/* ==========================================================================
   Unterseiten
   ========================================================================== */
.page-head {
    position: relative;
    padding: calc(var(--header-h) + 48px) 0 36px;
    border-bottom: 1px solid var(--border-soft);
    isolation: isolate;
    /* kein overflow: hidden – das Band ist höher als der Kopf und läuft darunter aus */
}
.page-head::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: var(--head-art-h);
    z-index: -1;
    background: url('../assets/img/hero-bg.webp') no-repeat center 16% / cover;
    /* 0.45 statt 0.22: Bei 0.22 war das Artwork tagsüber praktisch unsichtbar und
       kam erst bei dunkler Umgebung zur Geltung. Höher geht es nicht – ab etwa 0.58
       fällt die Unterzeile unter 4,5:1 Kontrast. */
    opacity: 0.45;
    /* Das Band endet nicht mit einer Kante, sondern läuft nach unten aus. */
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}
.page-head::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: var(--head-art-h);
    z-index: -1;
    background: linear-gradient(to bottom, rgba(11, 13, 16, 0.22), rgba(11, 13, 16, 0.40) 60%, var(--bg));
}
.page-head h1 {
    font-size: clamp(1.7rem, 3.5vw, 2.2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}
.page-head p { margin: 0; color: var(--text-muted); max-width: 520px; }

/* ----- Sponsoren ----- */
.card-grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }

/* Hauptsponsor: volle Breite und ein gleichmäßiger goldener Rahmen ringsum.
   Die Hervorhebung passiert ohne Beschriftung wie „Hauptsponsor“, rein visuell. */
.sponsor-feature {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    background: var(--surface);
    border: 2px solid rgba(212, 175, 55, 0.45);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 20px;
}
.sponsor-feature .sponsor-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}
.sponsor-feature-media { background: #08090b; }
/* Die Bildfläche hat dasselbe Seitenverhältnis wie das Banner (2667:3125),
   dadurch steht es vollständig im Bild und wird nirgends beschnitten. */
.sponsor-feature-media img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 2667 / 3125;
    object-fit: cover;
}
/* Video und Bild in den halbbreiten Karten: 16:9, damit die Produkte vollständig
   im Bild bleiben und beide Karten gleich hohe Medienflächen haben. */
.sponsor-card-media .sponsor-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #000;
}

/* Kartenfuß: Rabattcode links, Knopf rechts – auf einer Linie, weil beides
   zusammengehört (Code merken, dann in den Shop). */
.sponsor-card-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
    width: 100%;
    margin-top: auto;
}
/* Muss die allgemeine Regel für Kartenknöpfe weiter unten überstimmen, sonst
   schiebt deren "margin-top: auto" den Knopf unter das Codefeld. */
.sponsor-card .sponsor-card-foot .btn { margin-top: 0; margin-left: auto; align-self: center; }
/* Selektor bewusst mit dem Fuß davor: sonst gewinnt der Außenabstand von
   ".sponsor-card p" und das Feld sitzt höher als der Knopf daneben.
   Innenabstand, Schriftgröße und Zeilenhöhe sind dieselben wie bei .btn-sm,
   damit beide Felder exakt gleich hoch sind und bündig nebeneinanderstehen. */
.sponsor-card-foot .sponsor-code {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 12px;
    font-size: 0.84rem;
    line-height: 1.2;
    border: 1px dashed var(--border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.025);
}
.sponsor-code-label { color: var(--text-muted); }
.sponsor-code strong {
    font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
    font-size: 0.84rem;
    line-height: 1.2;
    letter-spacing: 0.05em;
    color: var(--gold);
}
.sponsor-feature-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 36px 32px;
}
.sponsor-feature-body .btn { margin-top: auto; align-self: flex-end; }
/* Statt einer Überschrift steht hier das Logo des Sponsors. */
.sponsor-feature-logo { margin: 0 0 14px; line-height: 0; }
.sponsor-feature-logo img { width: auto; height: 46px; max-width: 100%; }
.sponsor-feature-body p { color: var(--text-muted); font-size: 0.92rem; }
/* Der Leitsatz einer Sponsorkarte – setzt den Ton, bevor der Fließtext kommt.
   Beide Kartenarten sind aufgeführt, weil sie unterschiedliche Textcontainer
   haben (.sponsor-feature-body bzw. .sponsor-card-body). */
.sponsor-feature-body .sponsor-lead,
.sponsor-card-body .sponsor-lead {
    margin: 0 0 12px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gold);
}

/* Logos transparent; Höhe pro Logo im HTML (style="height:…"),
   weil die Seitenverhältnisse variieren. */
.sponsor-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.sponsor-logo img {
    height: 40px;
    width: auto;
    max-width: 100%;
}
/* Einfarbig dunkle Logos auf dunklem Grund weiß einfärben */
.sponsor-logo--invert img { filter: brightness(0) invert(1); opacity: 0.92; }
/* Graue Logos (z. B. das Snagger-Original) fürs dunkle Theme aufhellen */
.sponsor-logo--bright img { filter: brightness(1.9); }

/* Breite Karte mit Hintergrundbild (z. B. WoWUI). Das Bild setzt die Vorlage
   inline als --card-bg. */
/* Mosaik aus WoW-Interfaces als Kartenhintergrund – zeigt genau das, worum es in
   der App geht. Wie das Artwork auf der Startseite: oben angesetzt und nach unten
   auslaufend. Die Vorlage besteht aus Dungeon- und Nachtaufnahmen und ist daher
   von Haus aus dunkel; brightness/saturate holen sie hoch, ohne dass die Farben
   kippen. */
.sponsor-card--bg { position: relative; isolation: isolate; }
.sponsor-card--bg::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--card-bg) no-repeat center top / cover;
    opacity: 0.6;
    filter: brightness(1.45) saturate(1.12);
    /* Der Übergang läuft über 130 px statt über 36 – kurze Verläufe zeigen bei
       dieser Helligkeit eine sichtbare Kante. Die Zwischenstufen machen daraus
       einen weichen Abfall statt einer geraden Rampe: Er fällt zuerst schnell und
       läuft dann sanft aus. Das sieht nicht nur besser aus, es lässt auch mehr
       Kontrast übrig (5,6:1 an der Slogan-Zeile statt 5,1:1 bei linearem Verlauf). */
    -webkit-mask-image: linear-gradient(to bottom, #000 30px, rgba(0, 0, 0, 0.72) 60px, rgba(0, 0, 0, 0.34) 90px, rgba(0, 0, 0, 0.12) 110px, transparent 132px);
    mask-image: linear-gradient(to bottom, #000 30px, rgba(0, 0, 0, 0.72) 60px, rgba(0, 0, 0, 0.34) 90px, rgba(0, 0, 0, 0.12) 110px, transparent 132px);
}
.sponsor-card--bg .sponsor-card-body { padding: 28px 26px 26px; }
/* Zeilen nicht über die volle Kartenbreite laufen lassen, ab etwa 85 Zeichen
   verliert man beim Zurückspringen die Zeile. */
.sponsor-card.is-wide p { max-width: 82ch; }
/* Logo und Name nebeneinander, damit der Kopf nicht drei Zeilen hoch wird. */
.beta-head { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.beta-head .sponsor-logo { margin: 0; flex-shrink: 0; }
.beta-head h2 { margin: 6px 0 0; font-size: 1.2rem; }
/* Zwei Knöpfe: als Gruppe rechts, nicht auseinandergezogen. */
.sponsor-card-foot--actions { justify-content: flex-end; }
.sponsor-card .sponsor-card-foot--actions .btn { margin-left: 0; }

/* Kleine Sponsor-Karten */
.sponsor-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.sponsor-card-media img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.sponsor-card.is-coming-soon .sponsor-card-media img { filter: grayscale(90%); opacity: 0.4; }
.sponsor-card-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex: 1;
    padding: 24px 26px 26px;
}
.sponsor-card h2 { margin-bottom: 4px; font-size: 1.05rem; }
.sponsor-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 18px; }
/* Etwas mehr Luft vor der Knopfzeile, damit sie sich vom Text absetzt. */
.sponsor-card-body > p:last-of-type { margin-bottom: 28px; }
/* Knopf unten rechts in der Karte, er schließt sie ab, statt im Text zu hängen. */
.sponsor-card .btn { margin-top: auto; align-self: flex-end; }

.coming-soon-badge {
    padding: 3px 9px;
    margin-bottom: 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 5px;
}

.sponsor-placeholder { border-style: dashed; background: transparent; justify-content: center; }
/* Jede Karte über die volle Breite bekommt denselben Abstand nach oben wie die
   Lücke im Raster darüber, sonst klebt sie an der Karte davor. */
.sponsor-card.is-wide { margin-top: 20px; }

.sponsor-placeholder .placeholder-mark {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-faint);
    margin-bottom: 14px;
}

/* ----- Social Media ----- */
.social-feature {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    margin-bottom: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.15s ease;
}
.social-feature:hover { border-color: rgba(145, 70, 255, 0.5); }
.social-feature > svg { width: 34px; height: 34px; color: var(--twitch); flex-shrink: 0; }
.social-feature-text { flex: 1 1 300px; }
.social-feature-text h3 { margin-bottom: 2px; font-size: 1.02rem; }
.social-feature-text p { margin: 0; font-size: 0.88rem; color: var(--text-muted); }

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.social-tile {
    --tile-accent: var(--text);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.15s ease;
}
.social-tile:hover { border-color: rgba(255, 255, 255, 0.22); }
.social-tile svg {
    width: 22px;
    height: 22px;
    margin-bottom: 14px;
    color: var(--tile-accent);
}
.tile-name { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.tile-handle { font-size: 0.8rem; color: var(--text-faint); margin-bottom: 8px; }
.tile-desc { font-size: 0.85rem; color: var(--text-muted); }

.tile-twitch    { --tile-accent: #9146ff; }
.tile-youtube   { --tile-accent: #ff4d4d; }
.tile-tiktok    { --tile-accent: #6ff5ef; }
.tile-instagram { --tile-accent: #ff6b9d; }
.tile-discord   { --tile-accent: #7d8aff; }
.tile-wow       { --tile-accent: var(--gold); }
.tile-spotify   { --tile-accent: #1db954; }
.tile-twitch    { --tile-accent: #a970ff; }
.tile-x         { --tile-accent: var(--text); }
.tile-kick      { --tile-accent: #53fc18; }
.tile-link      { --tile-accent: var(--text-muted); }

/* ----- 404 ----- */
.error-page {
    min-height: calc(100svh - var(--header-h) - 110px);
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) 0 64px;
    text-align: center;
}
.error-page .container { width: 100%; }
.error-code {
    display: block;
    font-size: clamp(5rem, 14vw, 8.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--gold);
    opacity: 0.9;
}
.error-page h1 {
    margin: 18px 0 10px;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    letter-spacing: -0.02em;
}
.error-page p {
    max-width: 440px;
    margin: 0 auto 28px;
    color: var(--text-muted);
}
.error-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ----- Rechtsseiten ----- */
.legal-content { max-width: 720px; }
.legal-content h2 { font-size: 1.05rem; margin-top: 2em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--text-muted); font-size: 0.92rem; }
.legal-content a { color: var(--text); }
.legal-content address { font-style: normal; color: var(--text); line-height: 1.7; }

/* ==========================================================================
   Motion & Responsive
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .pulse { animation: none; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}

@media (max-width: 1100px) {
    /* Neben dem Charakterbild bleibt zu wenig Platz für vier Zahlen nebeneinander */
    .main-stats { grid-template-columns: minmax(0, 1fr) 230px; }
    .stat-row { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
    .team-list { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1024px) {
    .hero-bg { background-image: url('../assets/img/hero-bg-mobile.webp'); }
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-copy { max-width: 520px; }

    .pillars { grid-template-columns: repeat(2, 1fr); gap: 24px; }

    /* gestapelt: erst der Text, dann das Video */
    .stat-row { grid-template-columns: repeat(2, 1fr); gap: 18px; }
    .dungeon-list { grid-template-columns: 1fr; }
    .run > summary { grid-template-columns: 46px 1fr auto 16px; row-gap: 4px; padding: 12px 14px; }
    .run-time { display: none; }
    .run-when { grid-column: 2 / -1; text-align: left; }
    .run-facts { grid-template-columns: repeat(2, 1fr); }
    .roster li { grid-template-columns: 68px minmax(0, 1fr) auto; row-gap: 2px; }
    .roster-spec, .roster-meta, .roster-score { grid-column: 2 / -1; text-align: left; }
    .talent img { width: 30px; height: 30px; }
    .resource-grid { grid-template-columns: 1fr; }
    .guide-grid { grid-template-columns: 1fr; }
    .supporter-list { grid-template-columns: 1fr; }
    /* Drei Karten nebeneinander lassen für lange Namen keine Zeile übrig –
       hier lieber umbrechen als abschneiden. */
    .podium-place { padding: 16px 8px 14px; }
    .podium-name {
        font-size: 0.82rem;
        overflow-wrap: anywhere;
        text-overflow: clip;
        white-space: normal;
    }
    .podium-place { padding: 14px 12px; }
    .podium-place:nth-child(1) { --medal-size: 124px; }
    .podium-place:nth-child(2) { --medal-size: 110px; }
    .podium-place:nth-child(3) { --medal-size: 98px; }
    .podium-medal { right: -26px; bottom: -32px; }
    .podium-place:nth-child(1) { min-height: 148px; }
    .podium-place:nth-child(2) { min-height: 130px; }
    .podium-place:nth-child(3) { min-height: 116px; }
    .main-stats { grid-template-columns: 1fr; }
    .main-portrait { width: 100%; max-width: 260px; justify-self: center; }
    .gear-list { grid-template-columns: 1fr; }
    .gear-item { grid-template-columns: 70px 46px minmax(0, 1fr) auto auto; gap: 8px; }
    .team-list { grid-template-columns: repeat(2, 1fr); }

    .intro-grid { grid-template-columns: 1fr; gap: 28px; }
    .intro-grid .intro-text { order: 1; }
    .intro-grid .video-frame { order: 2; }
    .intro-text p { max-width: 520px; }

    .social-grid { grid-template-columns: repeat(2, 1fr); }
    .cols-2 { grid-template-columns: 1fr; }

    .sponsor-feature { grid-template-columns: 1fr; }
    .sponsor-feature .sponsor-video { aspect-ratio: 16 / 10; height: auto; }
    /* Auf dem Handy steht das hohe Banner über dem Text, dort darf es
       schmaler sein, sonst füllt es den halben Bildschirm. */
    .sponsor-feature-media img { height: auto; max-height: 62vh; object-fit: contain; }

    .footer-inner { flex-direction: column; gap: 28px; }
    .footer-nav { gap: 40px; }
}

@media (max-width: 760px) {
    .nav-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        padding: 12px 16px 20px;
        background: rgba(11, 13, 16, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
    }
    .main-nav.open { transform: none; opacity: 1; visibility: visible; }
    .main-nav a { padding: 12px 14px; font-size: 0.95rem; }
    .main-nav .nav-cta { margin: 8px 0 0; text-align: center; }
    .header-live { display: none !important; }

    /* Ohne Maus gibt es kein Hovern: das Untermenü steht hier einfach eingerückt
       unter dem Hauptpunkt. */
    .nav-item { display: block; }
    .nav-item > a { display: flex; }
    .nav-caret { display: none; }
    .nav-sub {
        position: static;
        min-width: 0;
        margin: 0 0 0 14px;
        padding: 0;
        background: none;
        border: 0;
        border-left: 1px solid var(--border);
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    .nav-sub::before { display: none; }
}

@media (max-width: 560px) {
    .pillars { grid-template-columns: 1fr; }
    .hero-actions { grid-template-columns: 1fr; }
    .cta-bar { flex-direction: column; align-items: flex-start; }
    .live-panel-head .follow-btn { margin-left: 0; }
}
