/* Ergänzungen zum Entwurf (app.css): Seiten, leere Zustände, Spielplan, Teams, weitere Live-Spiele */
.foot-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-bottom: 40px; }
.loading { display: flex; align-items: center; gap: 12px; justify-content: center; padding: 80px 0; font-family: var(--f-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px 20px; flex-wrap: wrap; padding-top: 26px; }
.page-h h1 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4vw, 44px); letter-spacing: .1em; text-transform: uppercase; line-height: 1; text-wrap: balance; }
.page-h h1 em { font-style: normal; color: var(--cyan); text-shadow: 0 0 14px rgba(53, 240, 255, .55); }
.page-h p { margin: 6px 0 0; color: var(--muted); }
.view { display: flex; flex-direction: column; gap: 22px; animation: viewin .45s ease-out; }
@keyframes viewin { from { opacity: 0; transform: translateY(8px); } }

.empty { padding: 26px 20px; color: var(--muted); text-align: center; }
.empty b { display: block; color: var(--label); font-family: var(--f-display); font-size: 18px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.more { display: block; padding: 12px 20px 16px; text-align: right; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); text-decoration: none; }
.more:hover { text-shadow: 0 0 10px var(--cyan); }

/* Aufmacher ohne Radar: Tafel + weitere Live-Spiele */
.hero.single { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.idle { padding: 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.idle h2 { margin: 0; font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: .12em; text-transform: uppercase; }
.idle p { margin: 0; color: var(--muted); }
.others { list-style: none; margin: 0; padding: 0; }
.others li { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line-soft); cursor: pointer; }
.others li:hover .nm { text-decoration: underline; text-underline-offset: 3px; }
.others .h { justify-self: end; flex-direction: row-reverse; text-align: right; }
.others .team { font-size: 15px; gap: 8px; }
.others .team .crest { --s: 24px; }
.others .kind { grid-column: 1 / -1; justify-self: center; font-size: 10px; padding: 2px 8px; margin-top: -2px; }
.kind.friendly { background: #3a2a8a; } .kind.league { background: linear-gradient(135deg, #8d2cff, #4d1fd6); } .kind.tournament { background: #b27900; }
.stage-sw { display: flex; gap: 6px; flex-wrap: wrap; }

/* Spielplan */
.daybar { display: flex; gap: 6px; overflow-x: auto; padding: 4px 20px 14px; scrollbar-width: thin; }
.daybtn { flex: none; min-width: 46px; height: 46px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(10, 8, 40, .8); color: var(--label);
  font-family: var(--f-display); font-weight: 700; font-size: 17px; cursor: pointer; position: relative; }
.daybtn.done { background: #1d1460; color: #fff; }
.daybtn.live { border-color: var(--pink); box-shadow: 0 0 12px rgba(255, 46, 136, .45); color: #fff; }
.daybtn[aria-pressed="true"] { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 14px rgba(53, 240, 255, .5); color: #fff; }
.dayhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 0 20px 8px; }
.dayhead b { font-family: var(--f-display); font-size: 20px; letter-spacing: .1em; text-transform: uppercase; }
.dayhead span { color: var(--yellow); font-weight: 700; }
.fx .sub2 { grid-column: 1 / -1; justify-self: center; color: var(--muted); font-size: 13px; margin-top: -4px; }
.fx .sub2 b { color: var(--label); }

/* Pokal: Gruppen + Rundentermine */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; padding: 0 20px 20px; }
.group h3 { margin: 0 0 8px; font-family: var(--f-display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--label); font-size: 15px; }
.group table td { height: 42px; font-size: 15px; }
.rounds { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 18px; }
.rchip { padding: 6px 12px; border-radius: 8px; background: rgba(10, 8, 40, .8); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.rchip.now { box-shadow: inset 0 0 0 1px rgba(255, 176, 0, .6), 0 0 12px rgba(255, 176, 0, .2); color: var(--amber-hi); }
.rchip.done { color: var(--muted); }
.rchip span { color: var(--muted); font-weight: 600; margin-left: 6px; }
.champion { display: flex; align-items: center; gap: 14px; padding: 16px 20px; margin: 0 20px 18px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 210, 63, .18), transparent); box-shadow: inset 0 0 0 1px rgba(255, 210, 63, .5); }
.champion b { font-family: var(--f-display); font-size: 22px; letter-spacing: .08em; text-transform: uppercase; }

/* Teams */
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; padding: 0 20px 20px; }
.tcard { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; position: relative; overflow: hidden;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 30%, transparent), rgba(10, 8, 40, .9) 60%); box-shadow: inset 0 0 0 1px var(--line); transition: transform .2s, box-shadow .2s; }
.tcard:hover, .tcard:focus-visible { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--c1), 0 0 18px color-mix(in srgb, var(--c1) 45%, transparent); }
.tcard .crest { --s: 46px; }
.tcard b { display: block; font-family: var(--f-display); font-size: 18px; letter-spacing: .04em; line-height: 1.05; }
.tcard small { color: var(--muted); }
.tcard .tag { position: absolute; right: 10px; top: 8px; font-family: var(--f-display); font-weight: 700; font-size: 10px; letter-spacing: .14em; color: var(--muted); }

/* Statistik */
.statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.mini-h { margin: 0; padding: 16px 20px 8px; font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--label); }

.squad .pos.none { color: var(--dim); }
.sheet .empty { padding: 0 24px 24px; text-align: left; }
@media (max-width: 1020px) { .hero.single { grid-template-columns: minmax(0, 1fr); } }

/* Vorschau-Modus */
.demo-strip { position: relative; z-index: 45; padding: 7px max(16px, env(safe-area-inset-right, 0px)) 7px max(16px, env(safe-area-inset-left, 0px)); text-align: center;
  background: repeating-linear-gradient(135deg, #ffd23f 0 14px, #ffc400 14px 28px); color: #0b0a1e; font-family: var(--f-display); font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; }

/* Kino und Radar (aus der Testseite kino-demo.html übernommen) */
.pitch .wait { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; pointer-events: none; transition: opacity .3s;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 2.4vw, 24px); letter-spacing: .14em; text-transform: uppercase; color: var(--label); text-shadow: 0 0 12px rgba(5, 3, 25, .9); }
.pitch .wait small { display: block; margin-top: 4px; font-family: var(--f-body); font-weight: 500; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--muted); }
.pitch .wait[hidden] { display: none; }
.pl li.fresh button { animation: flashin 1.6s ease-out; }
@keyframes flashin { from { background: rgba(53, 240, 255, .35); } }
.pl-empty { padding: 26px 18px; color: var(--muted); }
.thumb .k { z-index: 1; font-size: 10px; padding: 2px 6px; }
.radar-box { display: flex; flex-direction: column; gap: 10px; }

/* 3D-Ansicht (pitch3d.js): Schalter, Kamera-Auswahl, Werkzeugleiste am Radar */
.seg[hidden] { display: none; }
.view3d:not(:disabled) { cursor: pointer; color: var(--label); transition: box-shadow .2s, color .2s, border-color .2s; }
.view3d:not(:disabled):hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 12px rgba(53, 240, 255, .35); }
.view3d:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.view3d[aria-pressed="true"] { color: #fff; border-color: #7a4dff; background: linear-gradient(180deg, #3a1a8c, #24106a); box-shadow: inset 0 0 0 1px #7a4dff, 0 0 12px var(--glow, rgba(160, 70, 255, .5)); }
.view3d:disabled { opacity: .55; }
.pbtools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pbtools .view3d { padding: 6px 12px; }
.camseg button { padding: 5px 10px; }

/* Mehrere Ligen untereinander (Tabelle, Spielplan): 1. Liga oben, deutlicher Abstand zur nächsten */
.liga-block + .liga-block { margin-top: 34px; }
.liga-sum { margin: 0 0 10px; color: var(--muted, #b9b3e6); font-size: 15px; letter-spacing: .02em; }
.liga-sum b { color: #fff; font-family: var(--f-display); letter-spacing: .06em; }
/* „0 Spiele live“ nicht zeigen: display:inline-flex überstimmte sonst das hidden-Attribut */
.livepill[hidden], .band[hidden] { display: none !important; }
/* Viele Spieltage (z. B. 38): auf breiten Bildschirmen umbrechen statt seitlich abschneiden; Handy bleibt scrollbar */
@media (min-width: 641px) { .daybar { flex-wrap: wrap; overflow-x: visible; } }

/* ════ Live-Ticker: Zusatz-Vorkommnisse ════ */
.ticker { max-height: 440px; }
.ticker li.minor { padding-block: 7px; }
.ticker li.minor .txt b { font-weight: 600; font-size: 15px; color: #d9d3ff; }
.ticker li.minor .txt small { font-size: 13px; }
.ticker li.minor .ic svg { opacity: .9; transform: scale(.88); }
.ticker li.minor .min { font-size: 19px; opacity: .8; }
.ticker li.hot .txt b { color: #fff; }
.ticker li.hot { background: linear-gradient(90deg, rgba(255, 46, 136, .10), transparent 65%); }

/* ════ Tor live: Torbanner unter der Anzeigetafel bis zum Wiederanstoß ════ */
.goalbar { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 12px 18px; border-radius: 12px; isolation: isolate;
  background: linear-gradient(100deg, color-mix(in srgb, var(--gc) 55%, #0a0620) 0%, #0d0828 55%, color-mix(in srgb, var(--gc) 30%, #0a0620) 100%);
  border: 1px solid color-mix(in srgb, var(--gc) 70%, #fff 10%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04) inset, 0 0 28px color-mix(in srgb, var(--gc) 55%, transparent), 0 10px 30px rgba(0, 0, 0, .45);
  animation: gbpulse 1.6s ease-in-out infinite; }
.goalbar.enter { animation: gbin .55s cubic-bezier(.2, 1.3, .4, 1) both, gbpulse 1.6s ease-in-out .55s infinite; }
.goalbar.leave { animation: gbout .45s ease-in forwards; }
.goalbar::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: repeating-linear-gradient(115deg, transparent 0 14px, rgba(255, 255, 255, .06) 14px 28px); }
.gb-ball { width: 42px; height: 42px; display: grid; place-items: center; animation: gbspin 2.4s linear infinite; filter: drop-shadow(0 0 8px var(--gc)); }
.gb-ball svg { width: 100%; height: 100%; }
.gb-main { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.gb-k { font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--amber-hi); }
.gb-team { font-family: var(--f-display); font-weight: 700; font-size: clamp(20px, 2.6vw, 30px); letter-spacing: .06em; text-transform: uppercase; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 14px var(--gc); }
.gb-main small { color: #e8e4ff; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-score { font-family: var(--f-led); font-size: clamp(40px, 5vw, 58px); line-height: 1; color: var(--amber); text-shadow: 0 0 14px rgba(255, 176, 0, .85);
  padding: 2px 12px; border-radius: 8px; background: #050506; box-shadow: 0 0 0 1px rgba(255, 176, 0, .25) inset; }
.gb-score i { font-style: normal; animation: gbblink 1s steps(2) infinite; }
.gb-shine { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .28) 48%, transparent 60%); transform: translateX(-100%); animation: gbshine 2.8s ease-in-out .3s infinite; }
@keyframes gbin { 0% { opacity: 0; transform: translateY(-14px) scale(.92); } 100% { opacity: 1; transform: none; } }
@keyframes gbout { to { opacity: 0; transform: translateY(-8px) scale(.97); } }
@keyframes gbpulse { 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 0 44px color-mix(in srgb, var(--gc) 80%, transparent), 0 10px 30px rgba(0, 0, 0, .45); } }
@keyframes gbspin { to { transform: rotate(360deg); } }
@keyframes gbblink { 50% { opacity: .25; } }
@keyframes gbshine { 0% { transform: translateX(-100%); } 55%, 100% { transform: translateX(100%); } }
@media (max-width: 640px) {
  .goalbar { gap: 10px; padding: 10px 12px; }
  .gb-ball { width: 32px; height: 32px; }
  .gb-k { font-size: 11px; letter-spacing: .2em; }
  .gb-main small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .goalbar, .goalbar.enter, .gb-ball, .gb-shine, .gb-score i { animation: none; } }

/* Schalter „Namen“ am Live-Radar – gleiche Optik wie der 3D-Knopf */
.radar-box .names { border: 1px solid var(--line); background: rgba(14, 10, 52, .8); color: var(--muted); padding: 7px 12px; border-radius: 8px; font-family: var(--f-display); font-weight: 700; font-size: 13px; letter-spacing: .12em;
  cursor: pointer; transition: box-shadow .2s, color .2s, border-color .2s; }
.radar-box .names:hover { color: #fff; border-color: var(--cyan); box-shadow: 0 0 12px rgba(53, 240, 255, .35); }
.radar-box .names:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.radar-box .names[aria-pressed="true"] { color: #fff; border-color: #7a4dff; background: linear-gradient(180deg, #3a1a8c, #24106a); box-shadow: inset 0 0 0 1px #7a4dff, 0 0 12px rgba(160, 70, 255, .5); }

/* Acht Bereiche im Menü (mit Funfacts): etwas enger, damit Logo, Menü und Live-Anzeige in einer Zeile bleiben */
@media (min-width: 641px) {
  nav a { padding: 9px 9px; letter-spacing: .08em; }
  nav a[aria-current="page"]::after { left: 9px; right: 9px; }
}

/* LED-Laufschrift beim Tor: kommt rechts herein, läuft ganz durch, verschwindet links (statt mitten im Bild zurückzuspringen).
   padding-left:100% = Breite der Tafel → translateX(-100%) schiebt Text + Tafelbreite komplett hinaus. Tempo über --dur (JS). */
.bmsg span { justify-self: start; padding-left: 100%; animation: scrollmsg2 var(--dur, 6s) linear infinite; }
@keyframes scrollmsg2 { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .bmsg span { padding-left: 0; justify-self: center; animation: none; } }

/* Tor live: Animationen setzen nach einem Neuaufbau fort (--bd / --gd = schon verstrichene Zeit, negativ) */
.burst.on, .burst.on b { animation-delay: var(--bd, 0s); }
.goalbar.enter { animation-delay: var(--gd, 0s), calc(.55s + var(--gd, 0s)); }
/* Großes TOR! liegt mittig über dem Radar – nach vorn holen, sonst verdeckt das Radar den Schriftzug und nur das Leuchten blitzt */
.stage { position: relative; }
.burst { z-index: 6; }
