/* Infoscreen BSP & BJSP FH 2026 — feste Bühne 1920x1080, nur transform/opacity animieren (Pi 5) */
@font-face { font-family: "Mont"; src: url(../fonts/Montserrat-Medium.ttf); font-weight: 500; }
@font-face { font-family: "Mont"; src: url(../fonts/Montserrat-SemiBold.ttf); font-weight: 600; }
@font-face { font-family: "Mont"; src: url(../fonts/Montserrat-Bold.ttf); font-weight: 700; }
@font-face { font-family: "Mont"; src: url(../fonts/Montserrat-ExtraBold.ttf); font-weight: 800; }
@font-face { font-family: "Mont"; src: url(../fonts/Montserrat-BlackItalic.ttf); font-weight: 900; font-style: italic; }
@font-face { font-family: "Serif"; src: url(../fonts/PT_Serif-Web-Regular.ttf); }
@font-face { font-family: "Serif"; src: url(../fonts/PT_Serif-Web-Italic.ttf); font-style: italic; }

:root {
  /* Acker im Oktober: Erde, Furche, Stoppel – die HSV-Spur ist das einzige Grün */
  --gruen: #3dc372;
  --gruen-d: #2d9e59;
  --erde: #2a2119;
  --furche: #362a1f;
  --stoppel: #d8c48e;
  --signal: #ff8a3d;
  --nacht: #2a2119;
  --tinte: #1a1a2e;
  --hell: #f7f3ea;
  --matt: rgba(247, 243, 234, .64);
  --gold: #f2c14e;
  --silber: #c9d1d6;
  --bronze: #d38b5d;
  --rot: #ff6b5b;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html, body { width: 100%; height: 100%; overflow: hidden; background: #000; cursor: none; }
body { font-family: "Mont", system-ui, sans-serif; color: var(--hell); -webkit-font-smoothing: antialiased; }

#buehne {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px;
  transform-origin: 0 0; overflow: hidden; background: var(--nacht);
}

/* ---------- Hintergrund ---------- */
#hintergrund { position: absolute; inset: 0; }
.hg-verlauf {
  position: absolute; inset: 0;
  background:
    radial-gradient(1400px 900px at 20% 0%, rgba(216,196,142,.16), transparent 60%),
    radial-gradient(1100px 800px at 95% 100%, rgba(0,0,0,.45), transparent 60%),
    linear-gradient(170deg, #33281d 0%, var(--erde) 55%, #1f1812 100%);
}
/* Furchen: ein breiter, gedrehter Streifen, der beim Folienwechsel weiterwandert */
#acker { position: absolute; left: -1200px; top: -900px; width: 5200px; height: 3000px; transform: rotate(-17deg);
  background: repeating-linear-gradient(90deg, rgba(0,0,0,0) 0 46px, rgba(0,0,0,.20) 46px 58px, rgba(216,196,142,.05) 58px 64px, rgba(0,0,0,0) 64px 96px);
  will-change: transform; }
#nebel { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(247,243,234,.07), rgba(247,243,234,0) 40%); }
#spur svg { position: absolute; left: 0; top: 0; width: 46px; height: 46px; fill: var(--gruen); will-change: transform, opacity; }
#spur { position: absolute; inset: 0; }

/* ---------- Kopfleiste ---------- */
#kopf {
  position: absolute; left: 0; right: 0; top: 0; height: 120px; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; padding: 0 56px;
  background: linear-gradient(180deg, rgba(20,15,10,.9), rgba(20,15,10,0));
}
.kopf-marke { display: flex; align-items: center; gap: 20px; }
.kopf-marke img { width: 74px; height: 74px; }
.kopf-marke b { display: block; font-size: 30px; font-weight: 800; letter-spacing: .01em; }
.kopf-marke span { display: block; font-size: 21px; color: var(--matt); font-weight: 500; margin-top: 2px; }
#uhr { text-align: right; line-height: 1; padding: 12px 26px; border-radius: 20px;
  background: rgba(20,15,10,.6); border: 2px solid rgba(216,196,142,.35); }
#uhr-zeit { display: block; font-size: 64px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
#uhr-datum { display: block; font-size: 22px; font-weight: 600; color: var(--matt); margin-top: 6px; }

/* ---------- Fußleiste ---------- */
#fuss { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; z-index: 30;
  display: flex; align-items: center; background: rgba(20,15,10,.92); border-top: 2px solid rgba(216,196,142,.25); }
#stand { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 0 28px; height: 100%;
  font-size: 19px; color: var(--matt); border-right: 2px solid rgba(255,255,255,.08); min-width: 300px; }
#netz { width: 14px; height: 14px; border-radius: 50%; background: var(--gruen); }
#netz.weg { background: var(--rot); }
#laufband { position: relative; flex: 1; height: 100%; overflow: hidden; }
#laufband-innen { position: absolute; top: 0; left: 0; height: 100%; display: flex; align-items: center; white-space: nowrap; will-change: transform; }
.lb-teil { display: inline-flex; align-items: center; gap: 18px; padding: 0 34px; font-size: 26px; font-weight: 600; }
.lb-teil img { height: 50px; max-width: 170px; object-fit: contain; background: #fff; border-radius: 8px; padding: 4px 8px; }
.lb-teil .lb-pf { width: 22px; height: 22px; fill: var(--gruen); }
.lb-danke { color: var(--gruen); font-weight: 800; }

/* ---------- Durchsage ---------- */
#ansage { position: absolute; left: 0; right: 0; bottom: 84px; height: 78px; z-index: 31;
  display: flex; align-items: center; gap: 24px; padding: 0 40px; background: var(--signal); color: #1e0f02; }
.ansage-label { font-weight: 900; font-style: italic; font-size: 28px; padding: 6px 18px; border: 3px solid #1e0f02; border-radius: 10px; }
#ansage-text { font-size: 34px; font-weight: 800; }

/* ---------- Folien ---------- */
#folien { position: absolute; left: 0; right: 0; top: 120px; bottom: 84px; z-index: 10; transition: bottom .6s; }
#buehne.mit-ansage #folien { bottom: 162px; }
#ansage.ton { height: 118px; background: var(--gruen); color: #06200f; }
#ansage.ton #ansage-text { font-size: 32px; line-height: 1.2; }
#ansage.ton .ansage-label { border-color: #06200f; }
#buehne.mit-ansage.mit-ton #folien { bottom: 202px; }
.folie { position: absolute; inset: 0; padding: 30px 80px 40px; }
.f-kicker { font-family: "Serif"; font-style: italic; font-size: 36px; color: var(--stoppel); }
.f-titel { font-size: 84px; font-weight: 800; line-height: 1.02; margin-top: 10px; letter-spacing: -.01em; }
.f-titel em { font-family: "Serif"; font-style: italic; font-weight: 400; color: var(--gruen); }
.wort { display: inline-block; }

/* Opener */
.f-opener { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.op-logo { width: 380px; height: 380px; color: #fff; }
.op-logo svg { width: 100%; height: 100%; }
.op-titel { font-size: 92px; font-weight: 900; font-style: italic; margin-top: 34px; letter-spacing: -.01em; }
.op-unter { font-family: "Serif"; font-style: italic; font-size: 44px; color: var(--gruen); margin-top: 12px; }
.op-tag { margin-top: 30px; font-size: 30px; font-weight: 700; padding: 12px 34px; border-radius: 99px; background: var(--gruen); color: #06140c; }

/* Zeitplan */
.zp-wrap { display: grid; grid-template-columns: 1fr 640px; gap: 70px; margin-top: 22px; }
.zp-liste { position: relative; padding-left: 46px; }
.zp-liste::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: 14px; width: 4px; background: rgba(255,255,255,.14); border-radius: 2px; }
.zp-punkt { position: relative; display: flex; gap: 26px; align-items: baseline; padding: 6px 0; font-size: 30px; font-weight: 600; }
.zp-punkt::before { content: ""; position: absolute; left: -42px; top: 16px; width: 22px; height: 22px; border-radius: 50%; background: #2a3a33; border: 4px solid rgba(255,255,255,.3); }
.zp-punkt.vorbei { opacity: .38; }
.zp-punkt.vorbei::before { background: rgba(255,255,255,.3); }
.zp-punkt.jetzt::before, .zp-punkt.naechst::before { background: var(--gruen); border-color: #b9f0cf; }
.zp-punkt.naechst { color: #fff; }
.zp-zeit { flex: 0 0 210px; font-variant-numeric: tabular-nums; color: var(--gruen); font-weight: 800; }
.zp-karte { align-self: start; padding: 44px 48px; border-radius: 6px 60px 6px 60px; background: var(--gruen); color: #06200f; }
.zp-karte .k1 { font-family: "Serif"; font-style: italic; font-size: 34px; }
.zp-karte .k2 { font-size: 52px; font-weight: 800; line-height: 1.08; margin-top: 18px; }
.zp-karte .k3 { font-size: 96px; font-weight: 900; font-style: italic; margin-top: 22px; font-variant-numeric: tabular-nums; }
.zp-karte .k4 { font-size: 28px; font-weight: 600; margin-top: 6px; }
.zp-hinweis { margin-top: 18px; font-family: "Serif"; font-style: italic; font-size: 24px; line-height: 1.3; color: var(--matt); }
.zp-drei { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 40px; }
.zp-tag { padding: 34px 38px; border-radius: 28px; background: rgba(255,255,255,.06); border: 2px solid rgba(255,255,255,.1); }
.zp-tag h3 { font-size: 40px; font-weight: 800; }
.zp-tag h4 { font-size: 24px; color: var(--gruen); font-weight: 700; margin-bottom: 14px; }
.zp-tag p { font-size: 25px; padding: 5px 0; font-weight: 500; }
.zp-tag p b { display: inline-block; width: 130px; color: var(--gruen); font-variant-numeric: tabular-nums; }

/* Ergebnisse */
.eg-kopf { display: flex; align-items: flex-end; justify-content: space-between; }
.eg-marke { font-size: 26px; font-weight: 800; padding: 10px 24px; border-radius: 12px; background: rgba(255,255,255,.1); }
.eg-marke.end { background: var(--stoppel); color: #2a2119; }
.eg-tabelle { margin-top: 26px; }
.eg-zeile { display: grid; grid-template-columns: 110px 1fr 160px 160px 170px 150px; align-items: center; gap: 18px;
  height: 72px; padding: 0 28px; margin-bottom: 8px; border-radius: 18px; background: rgba(255,255,255,.06); font-size: 30px; font-weight: 600; }
.eg-zeile.kopfzeile { height: 44px; background: none; font-size: 22px; color: var(--matt); font-weight: 600; }
.eg-platz { font-size: 44px; font-weight: 900; font-style: italic; text-align: center; }
.eg-zeile.p1 { background: linear-gradient(90deg, rgba(242,193,78,.36), rgba(242,193,78,.08)); }
.eg-zeile.p2 { background: linear-gradient(90deg, rgba(201,209,214,.3), rgba(201,209,214,.06)); }
.eg-zeile.p3 { background: linear-gradient(90deg, rgba(211,139,93,.32), rgba(211,139,93,.06)); }
.eg-zeile.p1 .eg-platz { color: var(--gold); } .eg-zeile.p2 .eg-platz { color: var(--silber); } .eg-zeile.p3 .eg-platz { color: var(--bronze); }
.eg-name b { display: block; font-size: 32px; } .eg-name span { display: block; font-size: 21px; color: var(--matt); font-weight: 500; }
.eg-z { text-align: center; font-variant-numeric: tabular-nums; }
.eg-ges { text-align: center; font-size: 40px; font-weight: 900; color: var(--gruen); font-variant-numeric: tabular-nums; }
.eg-bew { text-align: center; font-weight: 800; }
.eg-leer { margin-top: 120px; text-align: center; font-family: "Serif"; font-style: italic; font-size: 54px; color: var(--matt); }

/* Starter */
.f-starter { display: grid; grid-template-columns: 720px 1fr; gap: 80px; align-items: center; padding-left: 120px; }
.st-rahmen { position: relative; width: 720px; height: 800px; border-radius: 4px; overflow: hidden; background: #000;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); border: 6px solid rgba(255,255,255,.9); }
.st-rahmen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-nw { position: absolute; right: 14px; bottom: 10px; font-size: 16px; color: rgba(255,255,255,.85); text-shadow: 0 1px 3px #000; }
.st-text .f-kicker { margin-bottom: 18px; }
.st-name { font-size: 92px; font-weight: 800; line-height: 1.02; }
.st-mit { font-family: "Serif"; font-style: italic; font-size: 44px; color: var(--matt); margin-top: 26px; }
.st-hund { font-size: 66px; font-weight: 800; color: var(--gruen); line-height: 1.08; margin-top: 4px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 42px; }
.st-chip { font-size: 28px; font-weight: 700; padding: 12px 26px; border-radius: 99px; background: rgba(255,255,255,.1); border: 2px solid rgba(255,255,255,.18); }
.st-spur { display: flex; gap: 26px; margin-top: 48px; }
.st-spur svg { width: 40px; height: 40px; fill: var(--gruen); }

/* Alle Gespanne */
.ag-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 30px; margin-top: 30px; }
.ag-karte { display: flex; align-items: center; gap: 18px; padding: 12px 20px; border-radius: 16px; background: rgba(255,255,255,.06); }
.ag-karte img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--gruen); flex: 0 0 auto; }
.ag-karte .ag-pf { width: 64px; height: 64px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: rgba(61,195,114,.15); }
.ag-karte .ag-pf svg { width: 34px; height: 34px; fill: var(--gruen); }
.ag-karte b { display: block; font-size: 25px; } .ag-karte span { display: block; font-size: 20px; color: var(--matt); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 440px; }

/* Sponsor */
.f-sponsor { display: grid; grid-template-columns: 640px 1fr; gap: 90px; align-items: center; padding-left: 130px; }
.sp-seite { width: 600px; height: 820px; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 40px 90px rgba(0,0,0,.55); }
.sp-seite img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.sp-danke { font-size: 190px; font-weight: 900; font-style: italic; line-height: .9; color: var(--stoppel); letter-spacing: -.02em; }
.sp-an { font-family: "Serif"; font-style: italic; font-size: 44px; color: var(--matt); margin-top: 16px; }
.sp-name { font-size: 76px; font-weight: 800; line-height: 1.04; margin-top: 8px; }
.sp-zeile { font-family: "Serif"; font-style: italic; font-size: 40px; line-height: 1.3; margin-top: 34px; color: #e7efe9; max-width: 900px; }
.sp-logo { margin-top: 40px; height: 130px; display: inline-flex; align-items: center; padding: 18px 30px; border-radius: 22px; background: #fff; }
.sp-logo img { max-height: 94px; max-width: 420px; object-fit: contain; }
.sp-fuss { margin-top: 34px; font-size: 26px; font-weight: 600; color: var(--matt); }

/* Sponsorenwand */
.sw-raster { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; margin-top: 34px; }
.sw-karte { height: 158px; border-radius: 20px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 16px; color: var(--tinte); text-align: center; font-weight: 800; font-size: 22px; line-height: 1.15; }
.sw-karte img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sw-fuss { margin-top: 30px; font-family: "Serif"; font-style: italic; font-size: 36px; color: var(--matt); text-align: center; }

/* Speisekarte */
.sk-spalten { columns: 2; column-gap: 80px; margin-top: 26px; }
.sk-block { break-inside: avoid; margin-bottom: 22px; }
.sk-block h3 { font-size: 34px; font-weight: 800; color: var(--gruen); margin-bottom: 10px; }
.sk-eintrag { display: flex; align-items: baseline; gap: 14px; font-size: 28px; font-weight: 600; padding: 5px 0; }
.sk-eintrag .sk-punkte { flex: 1; border-bottom: 3px dotted rgba(255,255,255,.25); transform: translateY(-8px); }
.sk-eintrag .sk-preis { font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sk-eintrag > span:first-child { max-width: 680px; }
.sk-veg { margin-top: 10px; font-family: "Serif"; font-style: italic; font-size: 30px; color: var(--stoppel); }
.sk-hinweis { font-family: "Serif"; font-style: italic; font-size: 26px; color: var(--matt); margin-top: 6px; }

/* QR + Infos */
.qr-wrap { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 50px; margin-top: 40px; align-items: start; }
.qr-karte { text-align: center; padding: 34px; border-radius: 30px; background: rgba(255,255,255,.06); }
.qr-bild { width: 340px; height: 340px; margin: 0 auto; padding: 22px; border-radius: 24px; background: #fff; }
.qr-bild img { width: 100%; height: 100%; }
.qr-karte b { display: block; font-size: 34px; margin-top: 24px; }
.qr-karte span { display: block; font-size: 22px; color: var(--matt); margin-top: 6px; }
.fest p { font-size: 29px; padding: 14px 0; border-bottom: 2px solid rgba(255,255,255,.08); }
.fest p b { display: block; font-size: 25px; color: var(--stoppel); margin-bottom: 4px; }

/* Neues Ergebnis */
.f-neu { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.neu-label { font-size: 46px; font-weight: 900; font-style: italic; padding: 14px 44px; border-radius: 99px; background: var(--signal); color: #1e0f02; }
.neu-name { font-size: 110px; font-weight: 800; margin-top: 40px; line-height: 1; }
.neu-hund { font-family: "Serif"; font-style: italic; font-size: 54px; color: var(--matt); margin-top: 20px; }
.neu-punkte { font-size: 220px; font-weight: 900; font-style: italic; color: var(--gruen); line-height: 1; margin-top: 30px; font-variant-numeric: tabular-nums; }
.neu-detail { font-size: 36px; font-weight: 700; margin-top: 10px; }

/* Flieger (Logos) */
#flieger { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
#flieger img { position: absolute; left: 0; top: 0; width: 160px; height: 160px; will-change: transform, opacity; }

/* QR zur Live-Seite auf den Ergebnisfolien */
.eg-rechts { display: flex; align-items: flex-end; gap: 22px; }
.eg-qr { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; border-radius: 14px; background: rgba(255,255,255,.08); }
.eg-qr img { width: 92px; height: 92px; padding: 6px; border-radius: 10px; background: #fff; }
.eg-qr span { font-family: "Serif"; font-style: italic; font-size: 24px; color: var(--stoppel); max-width: 130px; line-height: 1.15; }

/* Rückweg zur Live-Seite: am Pi (keine Maus) unsichtbar */
#zur-live { position: absolute; right: 56px; top: 140px; z-index: 40; padding: 18px 34px; border-radius: 99px; background: var(--stoppel);
  color: #2a2119; font-size: 30px; font-weight: 800; text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .3s; }
body.zeiger #zur-live { opacity: 1; pointer-events: auto; cursor: pointer; }
body.zeiger { cursor: auto; }
#zur-live-hoch { display: none; }
@media (orientation: portrait) {
  #zur-live-hoch { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 18px 16px; text-align: center;
    background: var(--stoppel); color: #2a2119; font: 800 17px "Mont", system-ui, sans-serif; text-decoration: none; }
}

/* Dauer-QR zur Live-Seite (Dirk 20.10.: immer sichtbar, ab und zu Hinweis) */
.kopf-rechts { display: flex; align-items: center; gap: 22px; }
#kopf { height: 150px; align-items: flex-start; padding-top: 14px; }
#folien { top: 150px; }
#qr-dauer { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 18px 8px 8px; border-radius: 18px;
  background: rgba(20,15,10,.6); border: 2px solid rgba(216,196,142,.35); transform-origin: 100% 0; will-change: transform; z-index: 2; }
#qr-dauer img { width: 112px; height: 112px; padding: 7px; border-radius: 12px; background: #fff; display: block; }
#qr-dauer .qr-text { font-family: "Serif"; font-style: italic; font-size: 24px; line-height: 1.15; color: var(--stoppel); }
#qr-dauer .qr-blase { position: absolute; left: -10px; bottom: -58px; padding: 8px 18px; border-radius: 14px; background: var(--signal); color: #1e0f02;
  font-size: 26px; font-weight: 900; font-style: italic; white-space: nowrap; opacity: 0; transform: scale(.6); }
#uhr { align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.lb-live { color: var(--stoppel); font-weight: 800; }
.qr-hinweis { position: absolute; left: 80px; bottom: 26px; font-family: "Serif"; font-style: italic; font-size: 28px; color: var(--stoppel); }
.qr-wrap { grid-template-columns: 1.35fr .9fr 1.15fr; }
.qr-karte.gross .qr-bild { width: 380px; height: 380px; }
.qr-karte.gross b { font-size: 42px; }
.qr-karte.gross span { font-size: 28px; color: var(--stoppel); }
.qr-karte:not(.gross) .qr-bild { width: 220px; height: 220px; }
.qr-karte { padding: 24px; }
.qr-wrap { margin-top: 24px; }
.zp-karte .k5 { margin-top: 16px; padding-top: 12px; border-top: 2px solid rgba(6,32,15,.25); font-family: "Serif"; font-style: italic; font-size: 24px; }
.eg-marke.demo { background: var(--signal); color: #1e0f02; }
.demo-band { position: absolute; left: 730px; top: 34px; z-index: 45; padding: 12px 26px; border-radius: 16px; transform: rotate(-3deg);
  background: var(--signal); color: #1e0f02; font-size: 26px; font-weight: 900; font-style: italic; letter-spacing: .04em;
  box-shadow: 0 6px 20px rgba(0,0,0,.4); pointer-events: none; }
