/* JoyTastic Games, Farben und Schriften laut brand/config/brand-config.md */
/* WOFF2, nur lateinische Zeichen (werkzeuge/tempo_bauen.py). Originale in _nicht-hochladen/schriften/ */
@font-face { font-family: "Lilita One"; src: url("../fonts/LilitaOne-Regular.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Variabel.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --rot: #E8383D; --rot-tief: #A8242A;
  /* Trikot-Rot aus der KKM-Palette: weiße Schrift 5,7:1 (WCAG AA), Punch-Rot schafft nur 4,15:1 */
  --trikot-rot: #CA1A1A;
  --gelb: #FFC531; --gelb-tief: #C9951A;
  --navy: #1E2A4A; --navy-tief: #121A30; --navy-hell: #2B3A63;
  --creme: #FFF6E0; --blau: #3FA9F5;
  --holz: #D69C5D; --rasen: #5D8A2A; --rasen-hell: #7DB33A;
  --rund: 20px;
  --schatten: 0 18px 50px rgba(8, 12, 28, .45);
  --kurve: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } }
body { margin: 0; font-family: "Nunito", system-ui, sans-serif; font-size: 18px; line-height: 1.6; color: var(--creme); background: var(--navy-tief); overflow-x: hidden; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--gelb); font-weight: 700; }
a:hover { color: #fff; }
h1, h2, h3 { font-family: "Lilita One", "Nunito", sans-serif; font-weight: 400; line-height: 1.08; margin: 0 0 .45em; letter-spacing: .01em; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.huelle { width: min(1200px, 100% - 32px); margin-inline: auto; }
.nur-leser { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a.nur-leser:focus { position: fixed; left: 16px; top: 16px; width: auto; height: auto; clip: auto; z-index: 100; background: var(--gelb); color: var(--navy); padding: 12px 20px; border-radius: 999px; font-weight: 900; text-decoration: none; }
main:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gelb); outline-offset: 3px; border-radius: 6px; }
.band-gelb :focus-visible, .seite-recht :focus-visible { outline-color: var(--navy); }
.ueberzeile { display: inline-block; font-weight: 900; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gelb); margin-bottom: 10px; }
.ueberzeile::before { content: ""; display: inline-block; width: 28px; height: 3px; background: currentColor; vertical-align: middle; margin-right: 10px; border-radius: 2px; }

/* Knöpfe */
.knopf { display: inline-flex; align-items: center; gap: 10px; background: var(--rot); color: #fff; text-decoration: none; font-family: "Lilita One", sans-serif; font-size: 1.2rem; padding: 14px 28px; border-radius: 999px; border: 0; cursor: pointer; box-shadow: 0 6px 0 var(--rot-tief), 0 12px 24px rgba(0,0,0,.25); transition: transform .15s var(--kurve), box-shadow .15s; }
.knopf:hover { color: #fff; transform: translateY(3px); box-shadow: 0 3px 0 var(--rot-tief), 0 8px 18px rgba(0,0,0,.25); }
.knopf.gelb { background: var(--gelb); color: var(--navy); box-shadow: 0 6px 0 var(--gelb-tief), 0 12px 24px rgba(0,0,0,.25); }
.knopf.gelb:hover { color: var(--navy); box-shadow: 0 3px 0 var(--gelb-tief); }
.knopf.rand { background: transparent; color: var(--creme); box-shadow: inset 0 0 0 3px var(--creme); }
.knopf.rand:hover { background: var(--creme); color: var(--navy); }
.knopf svg { width: 22px; height: 22px; flex: none; }
.store-knopf { display: inline-flex; align-items: center; gap: 12px; background: var(--navy); color: #fff; border-radius: 999px; padding: 10px 26px 10px 18px; text-decoration: none; border: 3px solid var(--gelb); box-shadow: 0 6px 0 var(--gelb-tief), 0 12px 24px rgba(0,0,0,.3); line-height: 1.15; transition: transform .2s var(--kurve), border-color .2s; }
.store-knopf:hover { color: #fff; transform: translateY(-3px); border-color: var(--gelb); }
.store-knopf svg { width: 30px; height: 30px; }
.store-knopf small { display: block; font-size: .72rem; font-weight: 700; opacity: .8; text-transform: uppercase; letter-spacing: .08em; }
.store-knopf b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.25rem; }

/* Kopfleiste */
.kopf { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background .3s, box-shadow .3s, padding .3s; padding: 14px 0; }
body:has(.seite-recht) .kopf, .kopf.fest, .kopf.menu-offen { background: rgba(18, 26, 48, .94); backdrop-filter: blur(10px); box-shadow: 0 6px 24px rgba(0,0,0,.35); padding: 6px 0; }
.kopf .huelle { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.kopf .marke img { height: 52px; width: auto; transition: height .3s; }
.kopf.fest .marke img { height: 42px; }
.kopf nav { display: flex; align-items: center; gap: 4px 22px; }
.kopf nav a { color: var(--creme); text-decoration: none; font-weight: 800; font-size: 1rem; position: relative; padding: 6px 0; }
.kopf nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--gelb); border-radius: 2px; transform: scaleX(0); transition: transform .25s var(--kurve); }
.kopf nav a:hover::after, .kopf nav a[aria-current="page"]::after { transform: scaleX(1); }
.kopf nav a.knopf { padding: 8px 18px; font-size: 1rem; }
.kopf nav a.knopf::after { display: none; }
.menu-knopf { display: none; background: none; border: 0; color: var(--creme); cursor: pointer; padding: 8px; }
.menu-knopf span { display: block; width: 28px; height: 3px; background: currentColor; margin: 6px 0; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-offen .menu-knopf span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-offen .menu-knopf span:nth-child(2) { opacity: 0; }
.menu-offen .menu-knopf span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* Titelbild (Held): Szene mit festem Seitenverhältnis, damit die Lichter auf den Masten sitzen */
.held .hg { display: grid; place-items: center; overflow: hidden; }
.szene { position: relative; flex: none; width: max(100%, calc(100svh * 2.36)); aspect-ratio: 2400 / 1018; animation: kamera 26s ease-in-out infinite alternate; }
.held .hg .szene img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sonne { position: absolute; left: 50%; top: 42%; width: 34%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,214,120,.55) 0, rgba(255,170,80,.18) 35%, transparent 68%); mix-blend-mode: screen; animation: gluehen 6s ease-in-out infinite; }
.flutlicht { position: absolute; width: 11%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,235,.95) 0, rgba(255,240,190,.45) 18%, rgba(255,220,150,.12) 42%, transparent 70%); mix-blend-mode: screen; animation: flackern 4.2s var(--v, 0s) infinite; }
.flutlicht::after { content: ""; position: absolute; left: 50%; top: 50%; width: 220%; height: 520%; translate: -50% 0; background: conic-gradient(from 160deg at 50% 0, transparent 0deg, rgba(255,245,200,.16) 14deg, transparent 28deg, rgba(255,245,200,.1) 36deg, transparent 46deg); mix-blend-mode: screen; transform-origin: 50% 0; animation: kegel 9s var(--v, 0s) ease-in-out infinite alternate; pointer-events: none; }
@keyframes kamera { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.1) translate(-1.5%, 1%); } }
@keyframes gluehen { 0%, 100% { opacity: .75; scale: 1; } 50% { opacity: 1; scale: 1.08; } }
@keyframes flackern { 0%, 100% { opacity: .9; } 8% { opacity: .55; } 10% { opacity: 1; } 47% { opacity: .85; } 49% { opacity: .5; } 52% { opacity: .95; } 80% { opacity: .8; } }
@keyframes kegel { from { rotate: -6deg; } to { rotate: 6deg; } }
.held { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; text-align: center; padding: 110px 0 140px; }
.held .hg { position: absolute; inset: -6% -4%; z-index: -3; }
.held .hg img, .held .hg video { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.held::after { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse at 50% 42%, rgba(18,26,48,.05) 0, rgba(18,26,48,.35) 55%, rgba(18,26,48,.85) 100%), linear-gradient(180deg, rgba(18,26,48,.6) 0, transparent 22%, transparent 60%, var(--navy-tief) 100%); }
#konfetti { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.held .inhalt { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.held .schild { width: min(640px, 88vw); filter: drop-shadow(0 18px 30px rgba(0,0,0,.5)); animation: schild-fall 1.1s .2s var(--kurve) both; transform-origin: 50% 0; }
.held .schild img { width: 100%; animation: schild-wippen 5s 1.4s ease-in-out infinite; transform-origin: 50% 0; }
.held .claim { font-family: "Lilita One", sans-serif; font-size: clamp(1.3rem, 3vw, 2.1rem); margin: 14px 0 6px; text-shadow: 0 3px 12px rgba(0,0,0,.6); animation: hoch .8s 1s var(--kurve) both; }
.held .unter { font-size: clamp(1.02rem, 2vw, 1.25rem); max-width: 640px; margin: 0 auto 28px; text-shadow: 0 2px 10px rgba(0,0,0,.7); font-weight: 700; animation: hoch .8s 1.15s var(--kurve) both; }
.held .knoepfe { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; animation: hoch .8s 1.3s var(--kurve) both; }
.scroll-hinweis { position: absolute; bottom: 58px; left: 50%; translate: -50% 0; z-index: 2; color: var(--creme); text-decoration: none; font-size: .8rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 6px; opacity: .85; }
.scroll-hinweis i { width: 26px; height: 42px; border: 3px solid currentColor; border-radius: 14px; position: relative; }
.scroll-hinweis i::after { content: ""; position: absolute; left: 50%; top: 7px; width: 5px; height: 9px; margin-left: -2.5px; background: var(--gelb); border-radius: 3px; animation: maus 1.6s ease-in-out infinite; }
/* Das Schild ist der LCP: es fällt sichtbar ins Bild statt aus opacity 0, sonst zählt der Browser es erst spät */
@keyframes schild-fall { 0% { transform: translateY(-120%) rotate(-8deg); } 60% { transform: translateY(6%) rotate(3deg); } 80% { transform: translateY(-2%) rotate(-1.5deg); } 100% { transform: none; } }
@keyframes schild-wippen { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1.2deg); } }
@keyframes hoch { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes maus { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* Laufband */
.laufband { background: var(--trikot-rot); color: #fff; overflow: hidden; transform: rotate(-1.6deg); margin: -34px -20px 0; position: relative; z-index: 3; box-shadow: 0 10px 30px rgba(0,0,0,.35); border-block: 4px solid var(--gelb); }
.laufband div { display: flex; width: max-content; animation: laufen 38s linear infinite; }
.laufband span { font-family: "Lilita One", sans-serif; font-size: clamp(1.2rem, 2.4vw, 1.7rem); padding: 12px 0; white-space: nowrap; }
.laufband span::after { content: "★"; color: var(--gelb); margin: 0 26px; }
@keyframes laufen { to { transform: translateX(-50%); } }

/* Gelbes Band: Neuigkeiten und Live-Ticker */
.band-gelb { background: var(--gelb); color: var(--navy); position: relative; padding: 96px 0 80px; overflow: hidden; }
.band-gelb::before { content: ""; position: absolute; right: -120px; top: -160px; width: 560px; height: 560px; border-radius: 50%; border: 70px solid rgba(255,255,255,.22); }
.band-gelb::after { content: ""; position: absolute; left: -80px; bottom: -200px; width: 380px; height: 380px; border-radius: 50%; background: rgba(232,56,61,.12); }
.band-gelb .huelle { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.band-gelb h2 { color: var(--navy); }
.band-gelb .ueberzeile { color: var(--rot-tief); }
.neu-liste { display: grid; gap: 14px; }
.neu { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; background: #fff; border-radius: 16px; padding: 12px; box-shadow: 0 8px 22px rgba(30,42,74,.14); transition: transform .25s var(--kurve), box-shadow .25s; }
.neu:hover { transform: translateX(6px); box-shadow: 0 12px 28px rgba(30,42,74,.2); }
.neu img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; }
.neu time { font-size: .8rem; font-weight: 900; color: var(--rot-tief); letter-spacing: .06em; text-transform: uppercase; }
.neu b { display: block; font-size: 1.05rem; line-height: 1.3; }
.neu p { margin: 2px 0 0; font-size: .92rem; line-height: 1.4; color: #3c4766; }

.ticker { background: var(--navy); color: var(--creme); border-radius: var(--rund); box-shadow: 0 20px 44px rgba(30,42,74,.35); overflow: hidden; border: 4px solid var(--navy); }
.tafel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; background: linear-gradient(180deg, #0b1122, #19233f); padding: 18px 20px; text-align: center; border-bottom: 3px solid var(--gelb); }
.tafel .team { font-family: "Lilita One", sans-serif; font-size: 1.1rem; line-height: 1.15; }
.tafel .t-stand { font-family: "Lilita One", sans-serif; font-size: 2.6rem; color: var(--gelb); background: #000; border-radius: 10px; padding: 0 16px; min-width: 112px; letter-spacing: .06em; text-shadow: 0 0 14px rgba(255,197,49,.6); }
.tafel .t-stand.tor { animation: tor-blink .9s 2; }
.tafel .live { grid-column: 1 / -1; font-size: .8rem; font-weight: 900; letter-spacing: .12em; display: flex; justify-content: center; align-items: center; gap: 8px; }
.tafel .live::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rot); animation: puls 1.2s infinite; }
.ticker ol { list-style: none; margin: 0; padding: 10px 18px 18px; min-height: 290px; }
.ticker li { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px dashed rgba(255,246,224,.18); font-size: .98rem; line-height: 1.45; animation: rein .4s var(--kurve); }
.ticker li b { color: var(--gelb); font-family: "Lilita One", sans-serif; font-weight: 400; }
.ticker li.tor span { color: #fff; font-weight: 900; }
.ticker li.tor b { color: var(--rot); }
@keyframes tor-blink { 0%, 100% { background: #000; } 50% { background: var(--rot); color: #fff; } }
@keyframes puls { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes rein { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* Abschnitte allgemein */
.abschnitt { padding: 110px 0; position: relative; }
.kopfzeile { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.kopfzeile p { max-width: 560px; margin: 0; opacity: .9; }
.muster { background-color: var(--navy-tief); background-image: radial-gradient(rgba(255,255,255,.05) 1.5px, transparent 1.5px); background-size: 22px 22px; }

/* Gameplay-Reiter */
.gameplay { display: grid; grid-template-columns: 300px 1fr; gap: 34px; align-items: start; }
.reiter { display: grid; gap: 10px; }
.reiter button { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; text-align: left; background: rgba(255,255,255,.05); color: var(--creme); border: 2px solid rgba(255,255,255,.08); border-radius: 16px; padding: 10px 14px; cursor: pointer; font: inherit; transition: background .2s, border-color .2s, transform .2s var(--kurve); }
.reiter button:hover { background: rgba(255,255,255,.1); transform: translateX(4px); }
.reiter button[aria-selected="true"] { background: var(--gelb); color: var(--navy); border-color: var(--gelb); box-shadow: 0 10px 26px rgba(255,197,49,.25); }
.reiter .sym { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-hell); font-size: 1.6rem; }
.reiter button[aria-selected="true"] .sym { background: var(--navy); }
.reiter b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.15rem; display: block; line-height: 1.1; }
.reiter small { font-size: .82rem; opacity: .8; font-weight: 700; }
.fortschritt { height: 4px; background: rgba(255,255,255,.12); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.fortschritt i { display: block; height: 100%; background: var(--rot); transform-origin: 0 50%; transform: scaleX(0); }
.gestoppt .fortschritt { opacity: .3; }
.feld { display: grid; gap: 26px; }
.feld[hidden] { display: none; }
.feld.an .geraet { animation: geraet-rein .7s var(--kurve) both; }
.feld.an .erklaerung > * { animation: hoch .6s var(--kurve) both; }
.feld.an .erklaerung > *:nth-child(2) { animation-delay: .08s; }
.feld.an .erklaerung > *:nth-child(3) { animation-delay: .16s; }
.feld.an .erklaerung > *:nth-child(4) { animation-delay: .24s; }
.geraet { position: relative; background: #0a0f1e; border-radius: 34px; padding: 16px 22px; box-shadow: var(--schatten), inset 0 0 0 2px #2c3552; }
.geraet::before { content: ""; position: absolute; left: 8px; top: 50%; width: 6px; height: 40px; margin-top: -20px; border-radius: 3px; background: #2c3552; }
.geraet picture { display: block; }
.geraet img { border-radius: 16px; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: top center; }
.geraet .glanz { position: absolute; inset: 16px 22px; border-radius: 16px; background: linear-gradient(115deg, rgba(255,255,255,.14) 0, transparent 30%); pointer-events: none; }
.erklaerung { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 34px; }
.erklaerung h3 { grid-column: 1 / -1; margin: 0; color: var(--gelb); }
.erklaerung p { margin: 0; }
.erklaerung ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.erklaerung li { padding-left: 30px; position: relative; font-weight: 700; }
.erklaerung li::before { content: "⚽"; position: absolute; left: 0; top: 0; }
@keyframes geraet-rein { from { opacity: 0; transform: perspective(1200px) rotateY(-12deg) translateX(40px) scale(.96); } to { opacity: 1; transform: none; } }

/* Zahlen */
.zahlen { background: linear-gradient(120deg, var(--rot) 0, #c42a30 100%); padding: 60px 0; position: relative; overflow: hidden; }
.zahlen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 120px, rgba(255,255,255,.06) 120px 240px); }
.zahlen .huelle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; position: relative; }
.zahlen b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: clamp(2.8rem, 6vw, 4.6rem); line-height: 1; color: var(--gelb); display: block; text-shadow: 0 5px 0 rgba(0,0,0,.18); }
.zahlen span { font-weight: 800; font-size: 1.02rem; }

/* Spieltag-Ablauf */
.ablauf { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.platz { position: relative; aspect-ratio: 105 / 68; border-radius: 22px; overflow: hidden; background: repeating-linear-gradient(90deg, var(--rasen) 0 9.5%, var(--rasen-hell) 9.5% 19%); box-shadow: var(--schatten), inset 0 0 0 6px #fff3; }
.platz svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.platz .ball { position: absolute; width: 5.5%; aspect-ratio: 1; left: 8.75%; top: 63.5%; translate: -50% -50%; filter: drop-shadow(0 6px 4px rgba(0,0,0,.35)); }
.platz .ball svg { position: static; animation: drehen 1.2s linear infinite; }
.platz .bild-stufe { position: absolute; right: 4%; bottom: 6%; width: 38%; border-radius: 12px; box-shadow: 0 10px 24px rgba(0,0,0,.45); border: 4px solid #fff; opacity: 0; transform: translateY(14px) rotate(3deg); transition: opacity .5s, transform .5s var(--kurve); }
.platz .bild-stufe.an { opacity: 1; transform: rotate(3deg); }
.schritte { display: grid; gap: 12px; counter-reset: schritt; }
.schritt { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; background: rgba(255,255,255,.04); border: 2px solid transparent; border-radius: 18px; padding: 16px; cursor: pointer; transition: background .3s, border-color .3s, transform .3s var(--kurve); }
.schritt .nr { width: 56px; height: 56px; border-radius: 50%; background: var(--navy-hell); display: grid; place-items: center; font-family: "Lilita One", sans-serif; font-size: 1.6rem; transition: background .3s, color .3s, transform .3s var(--kurve); }
.schritt b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.3rem; display: block; }
.schritt p { margin: 2px 0 0; font-size: .97rem; opacity: .88; }
.schritt.an { background: rgba(255,197,49,.1); border-color: var(--gelb); transform: translateX(8px); }
.schritt.an .nr { background: var(--gelb); color: var(--navy); transform: scale(1.08) rotate(-6deg); }
@keyframes drehen { to { transform: rotate(360deg); } }

/* Typen vom Platz */
.typen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; perspective: 1200px; }
.typ-karte { --rx: 0deg; --ry: 0deg; --gx: 50%; --gy: 50%; position: relative; border-radius: 24px; overflow: hidden; aspect-ratio: 3 / 4; background: linear-gradient(160deg, var(--navy-hell), var(--navy)); box-shadow: var(--schatten); transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; transform-style: preserve-3d; isolation: isolate; }
.typ-karte::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-radial-gradient(circle at 50% 120%, rgba(255,197,49,.15) 0 2px, transparent 2px 26px); }
.typ-karte::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at var(--gx) var(--gy), rgba(255,255,255,.22), transparent 45%); pointer-events: none; mix-blend-mode: overlay; }
.typ-karte:nth-child(2) { background: linear-gradient(160deg, #c42a30, #7c151a); }
.typ-karte:nth-child(3) { background: linear-gradient(160deg, #4f7a22, #2b4512); }
.typ-karte img { position: absolute; inset: auto 0 0 0; width: 100%; height: 92%; object-fit: contain; object-position: bottom center; transform: translateZ(40px) scale(.98); transition: transform .4s var(--kurve); filter: drop-shadow(0 14px 18px rgba(0,0,0,.45)); }
.typ-karte:hover img { transform: translateZ(60px) scale(1.04); }
.typ-karte .name { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 22px 22px; background: linear-gradient(0deg, rgba(10,14,28,.92) 20%, transparent); transform: translateZ(70px); }
.typ-karte .name b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.8rem; display: block; line-height: 1.05; }
.typ-karte .name span { display: block; font-size: .95rem; font-weight: 700; opacity: .92; }
.typ-karte .rolle { position: absolute; top: 18px; left: 18px; background: var(--gelb); color: var(--navy); font-weight: 900; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; transform: translateZ(50px); }

/* Ehrlich */
.ehrlich { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
#ehrlich, .abschnitt:has(#ehrlich-titel) { padding-bottom: 70px; }
.ehrlich div { background: var(--creme); color: var(--navy); border-radius: 22px; padding: 30px 20px 24px; text-align: center; font-weight: 800; box-shadow: 0 10px 0 rgba(0,0,0,.18); }
.ehrlich .sym { font-size: 2.8rem; display: block; line-height: 1; margin-bottom: 12px; }
.ehrlich div.sichtbar .sym { animation: plopp .7s var(--kurve) both; }
.ehrlich b { font-family: "Lilita One", sans-serif; font-weight: 400; font-size: 1.35rem; display: block; color: var(--rot-tief); }
.ehrlich small { display: block; font-weight: 700; font-size: .92rem; line-height: 1.4; margin-top: 6px; color: #3c4766; }
@keyframes plopp { 0% { transform: scale(0) rotate(-30deg); } 70% { transform: scale(1.2) rotate(8deg); } 100% { transform: none; } }

/* Studio */
.studio { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.studio video, .studio .logo-bild { border-radius: 24px; box-shadow: var(--schatten); width: 100%; background: #fff; }
.studio p { font-size: 1.1rem; }

/* Kontakt */
.kontakt { background: linear-gradient(135deg, #1f78c4 0, #17598f 100%); text-align: center; padding: 90px 0; position: relative; overflow: hidden; }
.kontakt::before { content: "JOYTASTIC"; position: absolute; left: 50%; top: 50%; translate: -50% -50%; font-family: "Lilita One", sans-serif; font-size: clamp(6rem, 20vw, 17rem); color: rgba(255,255,255,.09); white-space: nowrap; pointer-events: none; }
.kontakt .huelle { position: relative; }
.kontakt p { max-width: 640px; margin: 0 auto 28px; font-size: 1.15rem; font-weight: 700; }
.kontakt .knoepfe { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

/* Einblenden */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--kurve), transform .8s var(--kurve); transition-delay: calc(var(--i, 0) * 90ms); }
[data-reveal="links"] { transform: translateX(-50px); }
[data-reveal="rechts"] { transform: translateX(50px); }
[data-reveal="zoom"] { transform: scale(.9); }
[data-reveal].sichtbar { opacity: 1; transform: none; }

/* Rechtstexte */
.seite-recht { background: var(--creme); color: var(--navy); padding: 140px 0 80px; }
.seite-recht a { color: var(--rot-tief); }
.recht { max-width: 820px; }
.recht h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
.recht h2 { font-size: 1.5rem; margin-top: 1.6em; }
.recht address { font-style: normal; }
.hinweis { background: #fff; border-left: 6px solid var(--gelb); padding: 14px 18px; border-radius: 8px; }

/* Fuß */
.fuss { background: #0a0f1e; color: var(--creme); padding: 50px 0 40px; font-size: .95rem; }
.fuss .huelle { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 40px; align-items: center; }
.fuss img { height: 46px; width: auto; }
.fuss nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fuss a { color: var(--creme); font-weight: 700; text-decoration: none; }
.fuss a:hover { color: var(--gelb); }
.fuss small { opacity: .7; display: block; }

/* 404 */
.abseits { min-height: 100svh; display: grid; place-items: center; text-align: center; background: radial-gradient(circle at 50% 30%, var(--navy-hell), var(--navy-tief)); padding: 40px 16px; }
.abseits .fahne { font-size: 5rem; display: inline-block; animation: wedeln 1s ease-in-out infinite alternate; transform-origin: 20% 100%; }
@keyframes wedeln { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }

/* Breiten */
@media (max-width: 1020px) {
  .gameplay { grid-template-columns: minmax(0, 1fr); }
  .gameplay > * { min-width: 0; }
  .reiter { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding-bottom: 6px; scrollbar-width: thin; }
  .reiter button { flex: 0 0 auto; grid-template-columns: 40px auto; gap: 10px; padding: 8px 14px 8px 8px; scroll-snap-align: start; }
  .reiter button:hover { transform: none; }
  .reiter .sym { width: 40px; height: 40px; font-size: 1.25rem; border-radius: 10px; }
  .reiter b { font-size: 1rem; white-space: nowrap; }
  .reiter small { display: none; }
  .ablauf, .studio, .band-gelb .huelle { grid-template-columns: 1fr; }
  .typen { gap: 14px; }
  .typ-karte { scroll-snap-align: center; }
}
@media (max-width: 860px) {
  .szene { translate: -20% 0; }
  .menu-knopf { display: block; }
  .kopf nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(18,26,48,.98); padding: 8px 16px 18px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
  .kopf.menu-offen nav { opacity: 1; transform: none; pointer-events: auto; }
  .kopf nav a { padding: 12px 4px; border-bottom: 1px solid rgba(255,255,255,.08); }
  .kopf nav a.knopf { margin-top: 12px; justify-content: center; border: 0; }
  .zahlen .huelle, .ehrlich { grid-template-columns: repeat(2, 1fr); }
  .erklaerung { grid-template-columns: 1fr; }
  .abschnitt { padding: 80px 0; }
  .fuss .huelle { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .fuss nav { justify-content: center; }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .kopf .marke img, .kopf.fest .marke img { height: 38px; }
  .held { padding: 96px 0 120px; }
  .held::after { background: radial-gradient(ellipse at 50% 45%, rgba(18,26,48,.35) 0, rgba(18,26,48,.6) 60%, rgba(18,26,48,.9) 100%), linear-gradient(180deg, rgba(18,26,48,.6) 0, transparent 22%, transparent 60%, var(--navy-tief) 100%); }
  .geraet { padding: 10px 14px; border-radius: 22px; }
  .geraet .glanz { inset: 10px 14px; }
  .neu { grid-template-columns: 72px 1fr; }
  .neu img { width: 72px; height: 60px; }
  .tafel .t-stand { font-size: 2rem; min-width: 90px; }
  .ticker ol { min-height: 330px; }
  .typen { grid-template-columns: repeat(3, 78%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
  .typen > * { scroll-snap-align: start; }
  .ehrlich div { padding: 22px 14px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .laufband div { animation: none; }
}
