/* ==========================================================================
   Prototyp 1 – „Matchday Live“
   Die Website als freundliche Live-Übertragung vom Spieltag (Tageslicht).
   Dark Mode = „Flutlicht“ (Abendspiel), nur per Umschalter.
   ========================================================================== */

:root {
    --sky-top: #CFEAFF;
    --sky-bottom: #F5F7EF;
    --stripe-a: #6CBF5A;
    --stripe-b: #5DB04C;
    --tv: #14251B;
    --bug-h: 104px;
}
.dark {
    --sky-top: #0A1A2B;
    --sky-bottom: #0D1712;
    --stripe-a: #1F5A2A;
    --stripe-b: #1A4E24;
}
.punk { --yellow: #FF5DA8; }

html { scroll-padding-top: calc(var(--bug-h) + 12px); }

/* --- Sender-Leiste --------------------------------------------------------- */
.bug {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 86%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.bug__in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: min(1280px, 100% - 32px);
    margin-inline: auto;
    height: 68px;
}
.bug__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.bug__logo img { width: 36px; height: 36px; border-radius: 10px; }
.bug__logo .display { font-size: 1.6rem; color: var(--green); }
.live {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 6px;
    background: #E53935;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
}
.live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }

.board {
    display: inline-flex;
    align-items: stretch;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
    font-weight: 800;
    letter-spacing: .04em;
}
.board__team { display: grid; place-items: center; padding: 0 14px; background: var(--green); color: var(--on-green); font-size: .9rem; }
.board__team--away { background: var(--bg-2); color: var(--ink-2); }
.board__score { display: flex; align-items: center; gap: 6px; padding: 0 14px; font-family: var(--display); font-size: 1.5rem; font-weight: normal; }
.board__score i { font-style: normal; color: var(--ink-3); }
.board__score b { display: inline-block; min-width: .6em; text-align: center; font-weight: normal; }
.board__clock { display: grid; place-items: center; min-width: 64px; padding: 0 12px; background: var(--yellow); color: #14251B; font-variant-numeric: tabular-nums; }
.bump { animation: bump .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.7); color: var(--green); } 100% { transform: scale(1); } }

.bug__right { display: flex; align-items: center; gap: 12px; }
.bug__cta { padding: .6em 1.1em; }

/* Spielverlauf-Zeitleiste */
.tl { position: relative; height: 36px; width: min(1280px, 100% - 32px); margin-inline: auto; }
.tl__bar { position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.tl__fill { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), var(--yellow)); border-radius: 4px; }
.tl__mark {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1px;
    font-size: .7rem;
    line-height: 1.2;
    color: var(--ink-3);
    text-decoration: none;
    white-space: nowrap;
}
.tl__mark::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); margin-bottom: 2px; transition: background-color .3s ease, box-shadow .3s ease; }
.tl__mark span { font-weight: 800; }
.tl__mark em { font-style: normal; display: none; }
.tl__mark.is-done { color: var(--ink); }
.tl__mark.is-done::before { background: var(--green); box-shadow: none; }
@media (min-width: 900px) {
    .tl__mark { flex-direction: row; gap: 6px; align-items: center; padding-top: 0; }
    .tl__mark::before { margin: 0; }
    .tl__mark em { display: inline; }
}

/* --- Hero ------------------------------------------------------------------ */
.hero {
    position: relative;
    overflow: hidden;
    padding: 64px 0 150px;
    background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-bottom) 78%);
}
.hero__sky { position: absolute; inset: 0; pointer-events: none; }
.sun { position: absolute; top: -90px; right: 8%; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, #FFF6C9 0%, #FFE58A 38%, rgba(255, 229, 138, 0) 70%); }
.cloud { position: absolute; height: 46px; border-radius: 50px; background: #fff; opacity: .85; filter: blur(2px); animation: drift 60s linear infinite; }
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud--1 { top: 70px; left: -10%; width: 170px; }
.cloud--1::before { width: 80px; height: 80px; left: 26px; top: -38px; }
.cloud--1::after { width: 60px; height: 60px; left: 86px; top: -24px; }
.cloud--2 { top: 170px; left: 30%; width: 120px; opacity: .6; animation-duration: 90s; animation-delay: -30s; }
.cloud--2::before { width: 56px; height: 56px; left: 20px; top: -26px; }
@keyframes drift { from { transform: translateX(-20vw); } to { transform: translateX(120vw); } }
.flood { position: absolute; top: -40px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 240, .32) 0%, rgba(255, 255, 240, 0) 65%); opacity: 0; transition: opacity .6s ease; }
.flood--l { left: -140px; }
.flood--r { right: -140px; }
.dark .sun { opacity: 0; }
.dark .cloud { opacity: .07; }
.dark .flood { opacity: 1; }

.hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.kicker__icon { width: 22px; height: 22px; border-radius: 6px; }
.hero__title { margin: 22px 0 18px; font-size: clamp(2.7rem, 5.8vw, 5rem); color: var(--ink); }
.hero__title em { display: block; font-style: normal; color: var(--green); }
.hero__lead { max-width: 560px; font-size: 1.15rem; color: var(--ink-2); }

.scoreboard {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    max-width: 560px;
    margin: 30px 0 28px;
    padding: 18px 20px;
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}
.sb__team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .85rem; font-weight: 700; line-height: 1.25; }
.sb__team img, .away-crest { width: 56px; height: 56px; border-radius: 14px; }
.away-crest svg { width: 100%; height: 100%; }
.sb__mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.sb__score { display: flex; gap: 10px; font-family: var(--display); font-size: 3.4rem; line-height: 1; }
.sb__score span { color: var(--ink-3); }
.sb__score b { font-weight: normal; }
.sb__state { padding: 3px 10px; border-radius: 999px; background: var(--yellow); color: #14251B; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero__device { position: relative; justify-self: center; width: 100%; max-width: 520px; }
.hero__device .tablet { transform: rotate(2deg); }
.lower-third { display: inline-flex; align-items: stretch; border-radius: 10px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); font-size: .85rem; color: var(--ink-2); }
.lower-third > span:last-child { padding: 8px 14px; }
.lower-third b { color: var(--ink); }
.lt__tag { display: grid; place-items: center; padding: 0 12px; background: var(--yellow); color: #14251B; font-weight: 800; letter-spacing: .06em; font-size: .75rem; }
.lower-third--float { position: absolute; left: -28px; top: 28px; max-width: 330px; transform: rotate(-1.5deg); }

.hero__pitch {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 110px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .9) 0 3px, transparent 3px),
        repeating-linear-gradient(90deg, var(--stripe-a) 0 80px, var(--stripe-b) 80px 160px);
    clip-path: polygon(0 40%, 100% 0, 100% 100%, 0 100%);
}

/* --- Laufband -------------------------------------------------------------- */
.ticker { overflow: hidden; background: var(--green); color: var(--on-green); font-weight: 700; font-size: .95rem; white-space: nowrap; }
.ticker__track { display: inline-flex; padding: 12px 0; animation: tick 40s linear infinite; }
.ticker__track span { padding-right: 8px; }
@keyframes tick { to { transform: translateX(-50%); } }

/* --- Kapitel ---------------------------------------------------------------- */
.ch { padding: 110px 0; }
.ch--tint { background: var(--bg-2); }
.ch__head { max-width: 780px; margin-bottom: 52px; }
.ch__head h2 { margin: 22px 0 14px; font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.ch__lead { font-size: 1.15rem; color: var(--ink-2); }
.lt { display: inline-flex; align-items: stretch; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow); }
.lt__min { display: grid; place-items: center; padding: 6px 14px; background: var(--yellow); color: #14251B; font-family: var(--display); font-size: 1.35rem; }
.lt__title { display: grid; place-items: center; padding: 6px 16px; background: var(--green); color: var(--on-green); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; }

/* 0' Vorbericht */
.interview { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.cam { position: relative; margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); background: #0e1a14; }
.cam img { width: 100%; height: auto; }
.art--dark { display: none !important; }
.dark .art--dark { display: block !important; }
.dark .art--light { display: none !important; }
.cam .lower-third { position: absolute; left: 18px; bottom: 18px; right: 18px; max-width: max-content; }
.quote { margin: 0 0 22px; padding: 28px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.quote img { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px; box-shadow: 0 0 0 4px var(--green-l); }
.quote p { font-size: 1.2rem; line-height: 1.5; font-weight: 600; }
.quote footer { margin-top: 14px; font-size: .9rem; color: var(--ink-3); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.facts li { padding: 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.facts b { display: block; font-size: 2.6rem; color: var(--green); }
.facts span { font-size: .9rem; color: var(--ink-2); }

/* 12' Einheiten-Generator */
.gen { display: grid; grid-template-columns: 1.35fr .65fr; gap: 40px; align-items: start; }
.gen__panel { padding: 32px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.gen__step { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-weight: 800; }
.gen__step span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--green-l); color: var(--green-d); font-size: .85rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { padding: .55em 1em; border: 0; border-radius: 999px; background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: .92rem; box-shadow: inset 0 0 0 1.5px var(--line); transition: background-color .2s ease, color .2s ease; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--green); }
.chip[aria-checked="true"] { background: var(--green); color: var(--on-green); box-shadow: none; }
.chip small { display: block; font-weight: 500; font-size: .75rem; opacity: .75; }
.gen__go { margin-bottom: 8px; }
.gen__result { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.phase { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--mint); opacity: 0; transform: translateX(-16px); transition: opacity .4s ease, transform .4s ease; }
.phase.is-in { opacity: 1; transform: none; }
.phase__min { display: grid; place-items: center; height: 40px; border-radius: 10px; background: var(--surface); font-weight: 800; font-size: .9rem; color: var(--green); }
.phase__label { display: block; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.phase__title { font-weight: 700; }
.gen__note { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--yellow); color: #14251B; font-weight: 700; font-size: .95rem; }
.gen__device { position: relative; justify-self: center; }
.stopwatch { position: absolute; top: 30px; right: -26px; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 14px; background: var(--yellow); color: #14251B; font-family: var(--display); font-size: 1.6rem; box-shadow: var(--shadow); transform: rotate(4deg); font-variant-numeric: tabular-nums; }
.stopwatch svg { width: 22px; height: 22px; }

.mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 44px; }
.mini li { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.mini svg { width: 28px; height: 28px; color: var(--green); margin-bottom: 6px; }
.mini span { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }

/* 38' Aufstellung */
.lineup { display: grid; grid-template-columns: .95fr 1.05fr; gap: 48px; align-items: start; }
.lineup__board { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.formations { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pitch {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 68 / 96;
    border-radius: 22px;
    background: repeating-linear-gradient(180deg, var(--stripe-a) 0 12.5%, var(--stripe-b) 12.5% 25%);
    box-shadow: var(--shadow-lg), inset 0 0 0 10px rgba(255, 255, 255, .0);
    overflow: hidden;
}
.pitch::before { content: ""; position: absolute; inset: 14px; border: 2px solid rgba(255, 255, 255, .8); border-radius: 6px; }
.pitch__line--half { position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; background: rgba(255, 255, 255, .8); }
.pitch__circle { position: absolute; left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border: 2px solid rgba(255, 255, 255, .8); border-radius: 50%; transform: translate(-50%, -50%); }
.pitch__box { position: absolute; left: 50%; width: 46%; height: 13%; border: 2px solid rgba(255, 255, 255, .8); transform: translateX(-50%); }
.pitch__box--top { top: 14px; border-top: 0; }
.pitch__box--bottom { bottom: 14px; border-bottom: 0; }
.tok { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 3px; transform: translate(-50%, -50%); transition: left .8s cubic-bezier(.5, 0, .2, 1), top .8s cubic-bezier(.5, 0, .2, 1); }
.tok__shirt { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: #14251B; font-weight: 800; font-size: .95rem; box-shadow: 0 4px 10px rgba(0, 0, 0, .25), inset 0 0 0 3px rgba(255, 255, 255, .7); }
.tok--gk .tok__shirt { background: #2F5BEA; color: #fff; }
.tok__name { padding: 1px 7px; border-radius: 6px; background: rgba(10, 30, 15, .72); color: #fff; font-size: .7rem; font-weight: 700; white-space: nowrap; }
.lineup__share { margin-top: 4px; }
.lineup__share.is-done { background: var(--green); color: var(--on-green); }

.checks { display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.checks svg { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--green-l); color: var(--green-d); }
.checks b { display: block; margin-bottom: 2px; }
.checks span { font-size: .95rem; color: var(--ink-2); line-height: 1.5; }
.checks em { font-style: normal; font-weight: 700; color: var(--green); }
.checks--compact li { padding: 14px 16px; }
.duo { display: flex; justify-content: center; align-items: flex-start; gap: 22px; margin-top: 30px; }
.duo .phone { max-width: 200px; }
.duo .phone:last-child { margin-top: 40px; }

/* 45' Halbzeit */
.ch--cabin {
    background-color: var(--bg-2);
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px;
}
.cabin { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: start; }
.chat { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden; }
.chat__head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.chat__head b { display: block; }
.chat__head div span { display: block; font-size: .8rem; color: var(--green); }
.chat__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--green); color: var(--on-green); }
.chat__avatar svg { width: 24px; height: 24px; }
.chat__body { display: flex; flex-direction: column; gap: 12px; min-height: 330px; max-height: 460px; overflow-y: auto; padding: 20px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 18px; line-height: 1.5; font-size: .98rem; animation: pop .3s ease; }
.msg--me { align-self: flex-end; background: var(--green); color: var(--on-green); border-bottom-right-radius: 6px; }
.msg--ai { align-self: flex-start; background: var(--bg-2); border-bottom-left-radius: 6px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-5px); opacity: .4; } }
.chat__chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 20px; border-top: 1px solid var(--line); }
.chat__chips .chip { text-align: left; }
.chat__chips .chip:disabled { opacity: .45; cursor: default; }
.cabin__side { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cabin__side .phone { max-width: 240px; }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pills li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; }
.pills svg { width: 16px; height: 16px; color: var(--green); }

/* 45+ Halbzeitshow: Drill·Sketch (Pergament-Stimmung) */
.ch--show {
    --paper: #F4EBD6;
    --sepia: #5B4326;
    --gold: #B98A47;
    background: radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, .65), transparent 55%), var(--paper);
}
.dark .ch--show { --paper: #1E1912; --sepia: #E2C79A; --gold: #E2B071; }
.ch--show .ch__head h2 { color: var(--sepia); }
.ch--show .lt__title { background: #6B4E2E; color: #fff; }
.ds-badge { display: flex; width: max-content; align-items: center; gap: 8px; margin-top: 20px; padding: 5px 14px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); color: var(--sepia); font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.ds-badge svg { width: 15px; height: 15px; }
.ch--show .ch__head .ds-badge + h2 { margin-top: 14px; }
.ds { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.ch--show .checks svg { background: color-mix(in srgb, var(--gold) 22%, transparent); color: var(--sepia); }
.ds__how { margin: 20px 0 24px; font-size: .95rem; color: var(--ink-2); }
.gallery { margin: 0; padding: 16px; border-radius: 22px; background: #1C1916; color: #fff; box-shadow: 0 30px 60px -18px rgba(40, 25, 10, .55), inset 0 0 0 1px #3D342A; }
.gallery__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: #241F1A; box-shadow: inset 0 0 0 1px #4A3E30; }
.gallery__frame img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s ease; }
.gallery__frame img.is-fading { opacity: .25; }
.gallery__tag { position: absolute; top: 12px; right: 12px; padding: 4px 12px; border-radius: 6px; background: rgba(0, 0, 0, .75); box-shadow: inset 0 0 0 1px rgba(226, 176, 113, .4); color: #E2B071; font: 700 .72rem/1.4 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.gallery__info { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px 12px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.gallery__info b { display: block; font-size: 1.05rem; }
.gallery__info span { font-size: .82rem; color: rgba(255, 255, 255, .7); }
.gallery__info a { display: inline-flex; align-items: center; gap: 6px; color: #E2B071; font-size: .82rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.gallery__info a:hover { text-decoration: underline; }
.gallery__info svg { width: 16px; height: 16px; }
.gallery__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.gallery__thumbs button { position: relative; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: none; opacity: .55; transition: opacity .2s ease, box-shadow .2s ease; }
.gallery__thumbs button:hover { opacity: .9; }
.gallery__thumbs button[aria-selected="true"] { opacity: 1; box-shadow: 0 0 0 2px #E2B071; }
.gallery__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery__thumbs span { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px; background: rgba(0, 0, 0, .78); color: #fff; font-size: .72rem; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 640px) { .gallery__frame { aspect-ratio: 3 / 2; } }
@media (min-width: 1024px) { .gallery__frame { aspect-ratio: 1; } }

/* Anpfiff zur 2. Halbzeit */
.kickoff2 { display: flex; justify-content: center; background: var(--green); }
.kickoff2 > span { display: inline-flex; align-items: center; gap: 10px; padding: 12px 0; color: var(--on-green); font-size: .85rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kickoff2 svg { width: 16px; height: 16px; }

/* 90' Abpfiff */
.social { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.fan { position: relative; aspect-ratio: 1 / .9; }
.shot { position: absolute; top: 6%; left: 15%; width: 70%; margin: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-lg); cursor: pointer; transition: transform .6s cubic-bezier(.3, .8, .3, 1), z-index 0s .2s, filter .4s ease; }
.shot img { width: 100%; height: auto; }
.shot[data-pos="0"] { z-index: 3; transform: none; }
.shot[data-pos="1"] { z-index: 2; transform: translateX(26%) rotate(8deg) scale(.88); filter: saturate(.8); }
.shot[data-pos="2"] { z-index: 1; transform: translateX(-26%) rotate(-8deg) scale(.88); filter: saturate(.8); }
.tabs { display: inline-flex; gap: 4px; padding: 5px; margin-bottom: 22px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.tabs button { padding: .5em 1.1em; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--green); color: var(--on-green); }

/* 90+ Nachspielzeit */
.extra { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.extra li { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); transition: transform .25s ease; }
.extra li:hover { transform: translateY(-4px); }
.extra svg { width: 30px; height: 30px; margin-bottom: 8px; color: var(--green); }
.extra span { font-size: .9rem; color: var(--ink-2); line-height: 1.45; }

/* Statistik */
.stats { max-width: 860px; margin-inline: auto; padding: 30px 34px 36px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow-lg); }
.stats__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-bottom: 20px; margin-bottom: 18px; border-bottom: 2px solid var(--line); }
.stats__team { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.stats__team img { width: 40px; height: 40px; border-radius: 10px; }
.stats__team--away { justify-content: flex-end; color: var(--ink-3); }
.stats__title { padding: 6px 16px; border-radius: 10px; background: var(--yellow); color: #14251B; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; }
.srow { display: grid; grid-template-columns: 1fr 1.3fr 1fr; align-items: center; gap: 8px 12px; padding: 10px 0; }
.srow > b:first-child { color: var(--green); font-size: 1.15rem; }
.srow > b:nth-of-type(2) { text-align: right; color: var(--ink-3); font-size: 1rem; }
.srow > span { text-align: center; font-size: .9rem; font-weight: 600; color: var(--ink-2); }
.sbar { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 10px; }
.sbar i { display: block; height: 100%; border-radius: 6px; width: 0; transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.sbar__l { justify-self: end; background: var(--green); }
.sbar__r { justify-self: start; background: var(--line); }
.stats.is-in .sbar i { width: var(--w); }

/* Kassenhäuschen: Stehplatz vs. VIP-Ticket */
.ch__head--center { margin-inline: auto; text-align: center; }
.lt__min svg { width: 20px; height: 20px; }
.billing { display: inline-flex; gap: 4px; margin-top: 26px; padding: 5px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.billing button { display: inline-flex; align-items: center; gap: 6px; padding: .5em 1.2em; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 700; }
.billing button[aria-checked="true"] { background: var(--green); color: var(--on-green); }
.billing em { padding: 1px 8px; border-radius: 999px; background: var(--yellow); color: #14251B; font-size: .7rem; font-style: normal; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tickets { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 920px; margin-inline: auto; align-items: stretch; }
.ticket { position: relative; display: flex; flex-direction: column; border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-lg); }
.ticket__main { flex: 1; display: flex; flex-direction: column; padding: 30px 30px 26px; }
.ticket__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket__kind { font-size: 2.3rem; color: var(--green); }
.ticket__badge { padding: 4px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ticket__desc { margin-top: 4px; font-size: .95rem; color: var(--ink-2); }
.ticket__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 18px 0; }
.ticket__price b { display: inline-block; font-size: 3.4rem; line-height: 1; color: var(--ink); }
.ticket__price span { font-size: .9rem; font-weight: 700; color: var(--ink-2); }
.ticket__list { display: grid; gap: 10px; margin-bottom: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.ticket__list li { position: relative; padding-left: 30px; }
.ticket__list li::before { content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--green-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E5E23' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.ticket__list .ticket__plus { padding-left: 0; font-weight: 800; }
.ticket__list .ticket__plus::before { display: none; }
.ticket__btn { justify-content: center; margin-top: auto; }
.ticket__stub { position: relative; display: grid; grid-template-columns: repeat(3, auto) 1fr; align-items: center; gap: 22px; padding: 18px 30px 22px; border-top: 2px dashed var(--line); }
/* Ausstanzungen an der Perforation */
.ticket__stub::before, .ticket__stub::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-2); }
.ticket__stub::before { left: -14px; }
.ticket__stub::after { right: -14px; }
.ticket__stub small { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ticket__stub b { font-family: var(--display); font-weight: normal; font-size: 1.3rem; }
.ticket__barcode { justify-self: end; width: 100%; max-width: 120px; height: 38px; opacity: .8; background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 4px, currentColor 4px 5px, transparent 5px 8px, currentColor 8px 11px, transparent 11px 12px, currentColor 12px 13px, transparent 13px 16px); }
.ticket--vip { background: linear-gradient(160deg, #2E7D32, #1B5E20 60%, #134A18); color: #fff; }
.dark .ticket--vip { background: linear-gradient(160deg, #24622A, #143F18); }
.ticket--vip .ticket__kind { color: var(--yellow); }
.ticket--vip .ticket__desc, .ticket--vip .ticket__price span { color: rgba(255, 255, 255, .8); }
.ticket--vip .ticket__price b { color: #fff; }
.ticket--vip .ticket__badge { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.ticket--vip .ticket__list { border-top-color: rgba(255, 255, 255, .2); }
.ticket--vip .ticket__list li::before { background-color: rgba(255, 255, 255, .18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.ticket--vip .ticket__stub { border-top-color: rgba(255, 255, 255, .3); }
.ticket--vip .ticket__stub small { color: rgba(255, 255, 255, .65); }
.ticket__ribbon { position: absolute; top: -14px; right: 24px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; background: var(--yellow); color: #14251B; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; box-shadow: var(--shadow); }
.ticket__ribbon svg { width: 14px; height: 14px; }
.ticket__btn--vip { background: var(--yellow); color: #14251B; }
.tickets__note { max-width: 700px; margin: 28px auto 0; text-align: center; font-size: .88rem; color: var(--ink-3); }

/* Einwechseln */
.sub {
    position: relative;
    padding: 110px 0 120px;
    color: #fff;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .18), transparent 60%),
        repeating-linear-gradient(90deg, #2E7D32 0 90px, #2A7430 90px 180px);
    overflow: hidden;
}
.dark .sub { background: radial-gradient(ellipse at 50% -20%, rgba(255, 255, 240, .2), transparent 60%), repeating-linear-gradient(90deg, #17431F 0 90px, #143B1B 90px 180px); }
.sub__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
/* Auswechseltafel des vierten Offiziellen */
.subboard { justify-self: center; width: min(400px, 100%); }
.subboard__tilt { display: flex; flex-direction: column; align-items: center; transform: rotate(-5deg); transform-origin: 50% 80%; animation: wave 5s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: rotate(-5deg); } 50% { transform: rotate(-1deg) translateY(-6px); } }
.subboard__frame {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    width: 100%;
    padding: 14px 16px 16px;
    border-radius: 26px;
    background: linear-gradient(160deg, #3A413C, #171B18 55%, #0D100E);
    box-shadow:
        inset 0 2px 0 rgba(255, 255, 255, .18),
        inset 0 0 0 2px rgba(255, 255, 255, .08),
        0 0 0 5px #9AA39F,
        0 0 0 7px #5D6561,
        0 44px 70px -24px rgba(0, 0, 0, .6);
}
.subboard__plate { justify-self: center; display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 6px; border-radius: 999px; background: #080A09; color: #CFD6D2; font-size: .68rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.subboard__plate img { width: 20px; height: 20px; border-radius: 6px; }
.led {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "arrow code label" "name name name";
    align-items: center;
    gap: 4px 14px;
    padding: 14px 18px 10px;
    border-radius: 14px;
    background: #060907;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .04) 1px, transparent 1.1px);
    background-size: 4px 4px;
    box-shadow: inset 0 3px 12px rgba(0, 0, 0, .95);
    overflow: hidden;
}
/* Subtiles Punktraster wie bei einer echten LED-Stadionanzeige – transparent genug für optimale Lesbarkeit */
.led::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, transparent 0 1.2px, rgba(4, 6, 5, .38) 1.5px) 0 0 / 4px 4px;
    pointer-events: none;
    z-index: 2;
}
.led__arrow { grid-area: arrow; }
.led__arrow svg { width: 42px; height: 42px; fill: currentColor; filter: drop-shadow(0 0 4px currentColor); }
.led__code {
    grid-area: code;
    text-align: center;
    font-family: var(--display);
    font-weight: normal;
    font-size: 3.6rem;
    line-height: 1;
    letter-spacing: .08em;
}
.led__label {
    grid-area: label;
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: .14em;
}
.led__name {
    grid-area: name;
    overflow: hidden;
    white-space: nowrap;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    font-size: .92rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .95;
}
.led__name span { display: inline-block; padding-left: 100%; animation: marquee 9s linear infinite; }
.led--in .led__name span { animation-delay: -4.5s; }
@keyframes marquee { to { transform: translateX(-100%); } }
.led--out {
    color: #FF665A;
    text-shadow: 0 0 2px #FFA89F, 0 0 8px rgba(255, 75, 62, .88), 0 0 20px rgba(255, 75, 62, .45);
}
.led--in {
    color: #66FF88;
    text-shadow: 0 0 2px #D1FFDC, 0 0 8px rgba(89, 255, 122, .88), 0 0 20px rgba(89, 255, 122, .45);
}
.led--in .led__code, .led--in .led__arrow { animation: led 1.8s ease-in-out infinite; }
.subboard__keys { display: flex; justify-content: center; gap: 12px; padding-top: 2px; }
.subboard__keys i { width: 12px; height: 12px; border-radius: 50%; background: #2A302C; box-shadow: inset 0 -2px 3px rgba(0, 0, 0, .6), inset 0 1px 1px rgba(255, 255, 255, .15); }
.subboard__keys i:first-child { background: #59FF7A; box-shadow: 0 0 8px #59FF7A; }
.subboard__handle {
    width: 56px;
    height: 128px;
    margin-top: -4px;
    border-radius: 0 0 22px 22px;
    background:
        repeating-linear-gradient(180deg, transparent 0 8px, rgba(255, 255, 255, .06) 8px 10px) 0 22px / 100% calc(100% - 40px) no-repeat,
        linear-gradient(90deg, #121513, #2C332F 45%, #121513);
    box-shadow: 0 24px 34px -12px rgba(0, 0, 0, .55), inset 0 -6px 0 rgba(0, 0, 0, .35);
}
@keyframes led {
    0%, 100% { opacity: 1; filter: drop-shadow(0 0 0 transparent); }
    50% { opacity: .88; filter: drop-shadow(0 0 6px currentColor); }
}
.sub__copy h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: 14px; }
.sub__copy p { max-width: 520px; margin-bottom: 26px; font-size: 1.15rem; opacity: .92; }
.qrs { display: flex; gap: 18px; margin-top: 26px; }
.qrs figure { margin: 0; padding: 10px; border-radius: 16px; background: #fff; color: #14251B; text-align: center; font-size: .78rem; font-weight: 700; }
.qrs img { width: 104px; height: 104px; }

/* Footer */
.foot { padding: 30px 0 80px; font-size: .9rem; color: var(--ink-3); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 18px; }

/* Tor-Einblendung */
.goal {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 80;
    display: flex;
    align-items: stretch;
    width: max-content;
    max-width: calc(100vw - 24px);
    border-radius: 16px;
    overflow: hidden;
    background: var(--surface);
    box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .45);
    transform: translate(-50%, 160%);
    transition: transform .55s cubic-bezier(.3, 1.4, .5, 1);
    pointer-events: none;
}
.goal.is-show { transform: translate(-50%, 0); }
.goal__flash { display: grid; place-items: center; padding: 0 22px; background: var(--yellow); color: #14251B; font-size: 2.2rem; }
.goal.is-show .goal__flash { animation: flash .5s ease 3; }
@keyframes flash { 50% { background: var(--green); color: #fff; } }
.goal__info { display: flex; flex-direction: column; justify-content: center; padding: 12px 18px; line-height: 1.3; }
.goal__min { font-size: .78rem; font-weight: 800; color: var(--green); letter-spacing: .06em; text-transform: uppercase; }
.goal__text { font-weight: 700; }
.goal__score { display: grid; place-items: center; padding: 0 18px; background: var(--green); color: var(--on-green); font-family: var(--display); font-size: 1.6rem; white-space: nowrap; }

/* --- Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
    .extra { grid-template-columns: repeat(3, 1fr); }
    .mini { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .hero__grid, .interview, .gen, .lineup, .cabin, .social, .sub__grid, .ds, .tickets { grid-template-columns: 1fr; }
    .hero { padding-top: 40px; }
    .hero__device { margin-top: 20px; }
    .lower-third--float { left: 8px; top: 16px; }
    .gen__device { order: -1; }
    .gen__device .phone { max-width: 220px; }
    .stopwatch { right: -40px; }
    .extra { grid-template-columns: repeat(2, 1fr); }
    .subboard { width: min(340px, 100%); }
    .led__code { font-size: 2.8rem; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .bug__in { height: 60px; gap: 8px; }
    .bug__logo .display, .live, .bug__cta span { display: none; }
    .bug__cta { padding: .6em; }
    .board__team { padding: 0 8px; font-size: .78rem; }
    .board__score { padding: 0 8px; font-size: 1.25rem; }
    .board__clock { min-width: 46px; padding: 0 6px; font-size: .8rem; }
    .tgl { width: 36px; height: 36px; }
    .toggles { gap: 4px; }
    .ch { padding: 80px 0; }
    .scoreboard { padding: 14px; }
    .sb__score { font-size: 2.6rem; }
    .gen__panel { padding: 22px; }
    .mini, .extra, .facts { grid-template-columns: 1fr 1fr; }
    .extra li, .mini li { padding: 16px; }
    .duo .phone { max-width: 150px; }
    .srow { grid-template-columns: 1fr 1.6fr 1fr; }
    .srow > b { font-size: .9rem !important; }
    .goal__flash { font-size: 1.5rem; padding: 0 14px; }
    .goal__score { font-size: 1.2rem; padding: 0 12px; }
    .goal__info { padding: 10px 12px; font-size: .9rem; }
    .ticket__main { padding: 26px 22px 22px; }
    .ticket__kind { font-size: 1.8rem; white-space: nowrap; }
    .ticket__stub { gap: 14px; padding: 16px 22px 20px; }
    .proto-badge { display: none; }
}
