/* seite.css · TC Grundlinie Wels (Beispiel). Idee: der Hartplatz von oben bei Flutlicht, Ballgelb als einziger Akzent.
 * Schriften: Exo (Display, 700/800), Nunito Sans (Text). Ecken: Knöpfe rund, Felder 6 px, Bilder 4 px, Mitgliedskarten 14 px.
 * Regelbruch (D26): die Uhrzeit der Szene „Licht von 7 bis 22 Uhr.“ ragt groß über die Textspalte in den Platz. */

@font-face { font-family: "Exo"; src: url("../fonts/exo-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo"; src: url("../fonts/exo-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Exo"; src: url("../fonts/exo-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Nunito Sans"; src: url("../fonts/nunito-sans-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

h1, h2, h3 { font-weight: 800; letter-spacing: -0.025em; }
.marke { gap: 10px; font-weight: 800; letter-spacing: -0.02em; }
.marke-ball { width: 14px; height: 14px; border-radius: 50%; background: var(--akzent); box-shadow: inset -3px -3px 0 rgba(0, 0, 0, 0.18); }
.knopf { font-family: var(--schrift-display); font-weight: 700; letter-spacing: 0.005em; }

/* ---------- Erster Bildschirm: Platz von oben über die ganze Fläche, Text unten links in der dunklen Zone */
.anfang { overflow: hidden; align-items: end; isolation: isolate; }
.anfang-bild { position: absolute; inset: 0; z-index: -1; background: #061210; }
.anfang-bild img, .anfang-bild canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.anfang-bild canvas { opacity: 0; transition: opacity 0.6s ease; }
.anfang-bild.laeuft canvas { opacity: 1; }
.anfang-bild::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 14, 12, 0.88) 0%, rgba(5, 14, 12, 0.62) 34%, rgba(5, 14, 12, 0) 62%),
              linear-gradient(0deg, rgba(5, 14, 12, 0.85) 0%, rgba(5, 14, 12, 0) 42%); }
.anfang-text { padding-bottom: clamp(44px, 9vh, 110px); max-width: 1200px; }
.titel { max-width: 11ch; font-size: var(--t-riesig); line-height: 0.96; }
.titel-zwei { display: block; color: var(--akzent); }
.unterzeile { max-width: 31rem; font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.3rem); }
.beleg { font-size: 0.95rem; }
.anfang-hinweis { position: absolute; right: var(--kante); bottom: clamp(44px, 9vh, 110px); font-size: 0.85rem; color: var(--text-3); }
@media (max-width: 959px) {
  .anfang { min-height: 100svh; }
  .anfang-bild::after { background: linear-gradient(0deg, rgba(5, 14, 12, 0.96) 0%, rgba(5, 14, 12, 0.86) 46%, rgba(5, 14, 12, 0) 72%); }
  .anfang-text { padding-bottom: 28px; }
  .anfang-hinweis { display: none; }
}

/* ---------- Szene „Licht von 7 bis 22 Uhr.“: angeheftete Bühne, der Platz rechts, die Uhr ragt hinein */
.tag { position: relative; }
.tag-buehne { position: relative; display: grid; }
.tag-platz { display: none; }
.tag-text { padding-block: var(--abstand); }
.tag h2 { font-size: var(--t-gross); max-width: 12ch; }
.tag-uhr { display: none; }
.tag-liste { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 14px; max-width: 30rem; }
.tag-zustand { padding: 12px 0 12px 18px; border-left: 2px solid var(--linie); color: var(--text-2); transition: color 0.3s ease, border-color 0.3s ease; }
.tag-zustand strong { display: block; font-family: var(--schrift-display); font-weight: 700; color: var(--text); }
.tag-zustand.ist-jetzt { color: var(--text); border-left-color: var(--akzent); }
.js .tag { height: 380svh; }
.js .tag-buehne { position: sticky; top: 0; height: 100svh; overflow: hidden; grid-template-columns: minmax(0, 1fr); }
.js .tag-platz { display: block; position: absolute; inset: 0 0 0 38%; }
.js .tag-platz canvas { width: 100%; height: 100%; display: block; }
.js .tag-text { position: relative; z-index: 1; align-self: center; padding-block: calc(var(--kopf-hoehe) + 20px) 32px; }
.js .tag-uhr { display: block; position: relative; z-index: 1; margin-top: 18px; font-family: var(--schrift-display); font-weight: 800; font-size: clamp(4.5rem, 2rem + 12vw, 14rem); line-height: 0.9; letter-spacing: -0.04em; color: var(--text); font-variant-numeric: tabular-nums; width: max-content; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45); }
.js .tag-zustand:not(.ist-jetzt) { opacity: 0.55; }
@media (max-width: 859px) {
  .js .tag-platz { inset: 0 0 46% 0; }
  .js .tag-text { align-self: end; padding-bottom: 28px; }
  .js .tag-uhr { font-size: 3.6rem; margin-top: 4px; position: absolute; top: calc(-1 * 3.6rem - 8px); right: 0; }
  .js .tag h2 { font-size: 1.75rem; }
  .js .tag-liste { margin-top: 14px; gap: 6px; }
  .js .tag-zustand { padding: 6px 0 6px 12px; font-size: 0.92rem; line-height: 1.4; }
  .js .tag-zustand:not(.ist-jetzt) { display: none; }
}

/* ---------- Mannschaften: Klapptafel */
.tafel-rahmen { margin-top: 40px; padding: clamp(14px, 2.4vw, 28px); background: #040b09; border-radius: 8px; box-shadow: inset 0 0 0 1px #17302a, 0 30px 60px -30px rgba(0, 0, 0, 0.8); overflow-x: auto; }
.tafel { width: 100%; border-collapse: separate; border-spacing: 0 8px; font-family: var(--schrift-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.tafel thead th { padding: 0 10px 6px 0; text-align: left; font-family: var(--schrift-text); font-weight: 600; font-size: 0.85rem; color: var(--text-3); }
.tafel tbody th, .tafel td { padding: 0 12px 0 0; text-align: left; font-size: clamp(0.82rem, 0.7rem + 0.5vw, 1.15rem); color: #eef3ea; white-space: nowrap; }
.tafel td:last-child { color: var(--akzent); }
.tafel .blatt { display: inline-block; min-width: 1.02em; padding: 0.3em 0.06em 0.26em; margin-right: 2px; text-align: center; line-height: 1; background: linear-gradient(180deg, #16231f 0 49%, #0b1512 49% 51%, #111d19 51% 100%); border-radius: 3px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6); }
.tafel-fuss { margin-top: 20px; color: var(--text-2); }
@media (max-width: 640px) {
  .tafel th:nth-child(2), .tafel td:nth-child(2) { display: none; }
  .tafel .blatt { min-width: 0.86em; margin-right: 1px; }
  .tafel tbody th, .tafel td { padding-right: 8px; }
}

/* ---------- Training: Ballflugbahn über vier Stufen */
.flugbahn { position: relative; margin-top: 48px; }
.flugbahn-linie { display: block; width: 100%; height: clamp(90px, 14vw, 200px); overflow: visible; }
.flugbahn-linie path { fill: none; stroke: var(--akzent); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 0.012 0.018; }
.stufen { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 36px); }
.stufe { position: relative; padding-top: 18px; border-top: 1px solid var(--linie); }
.stufe:nth-child(even) { margin-top: 36px; }
.stufe-nr { font-family: var(--schrift-display); font-weight: 800; font-size: 0.95rem; color: var(--akzent); }
.stufe h3 { margin-top: 6px; font-size: 1.35rem; }
.stufe p { margin-top: 10px; color: var(--text-2); font-size: 1rem; line-height: 1.55; }
@media (max-width: 859px) {
  .stufen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stufe:nth-child(even) { margin-top: 24px; }
}

/* ---------- Beiträge: Mitgliedskarten legen sich übereinander */
.beitraege-raster { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .beitraege-raster { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: start; }
  .beitraege-kopf { position: sticky; top: calc(var(--kopf-hoehe) + 48px); }
}
.beitraege h2 { max-width: 14ch; }
.karten { margin: 0; padding: 0 0 8vh; list-style: none; display: grid; gap: 22vh; }
.karte { position: sticky; aspect-ratio: 1.62; max-width: 520px; padding: clamp(20px, 3vw, 32px); border-radius: 14px; display: grid; align-content: space-between; color: #eef3ea;
  background: linear-gradient(90deg, transparent 0 71%, rgba(236, 243, 236, 0.55) 71% 71.6%, transparent 71.6%), #13392f;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06) inset, 0 24px 50px -24px rgba(0, 0, 0, 0.85); transform-origin: 50% 0; }
.karte:nth-child(1) { top: calc(var(--kopf-hoehe) + 40px); }
.karte:nth-child(2) { top: calc(var(--kopf-hoehe) + 68px); background-color: #0f4a3d; }
.karte:nth-child(3) { top: calc(var(--kopf-hoehe) + 96px); background-color: #1a5b4b; }
.karte:nth-child(4) { top: calc(var(--kopf-hoehe) + 124px); background-color: #227061; }
.karte--jugend { background: linear-gradient(90deg, transparent 0 71%, rgba(15, 22, 7, 0.35) 71% 71.6%, transparent 71.6%), var(--akzent); color: #0f1607; }
.karte-art { font-family: var(--schrift-display); font-weight: 700; font-size: 1.05rem; }
.karte-preis { font-family: var(--schrift-display); font-weight: 800; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; }
.karte-preis span { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.karte-text { max-width: 22rem; font-size: 0.98rem; line-height: 1.45; opacity: 0.9; }
@media (max-width: 959px) { .karten { gap: 10vh; } .karte { aspect-ratio: auto; min-height: 210px; gap: 18px; } }

/* ---------- Fragen: zwei Spalten */
.fragen-spalten { margin-top: 40px; display: grid; gap: 0 clamp(24px, 4vw, 64px); }
@media (min-width: 860px) { .fragen-spalten { grid-template-columns: 1fr 1fr; } }
.fragen details { border-top: 1px solid var(--linie); }
.fragen-spalte details:last-child { border-bottom: 1px solid var(--linie); }
.fragen summary { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; cursor: pointer; list-style: none; font-family: var(--schrift-display); font-weight: 700; font-size: 1.12rem; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--akzent); transition: background-color 0.25s ease; }
.fragen details[open] summary::after { background: var(--akzent); }
.fragen summary:focus-visible { outline-offset: 2px; }
.fragen details p { padding: 0 0 18px; color: var(--text-2); max-width: 34rem; }

/* ---------- Kontakt */
.kontakt-flaeche { padding: clamp(28px, 5vw, 64px); background: var(--grund-2); border-radius: 8px; box-shadow: inset 0 0 0 1px var(--linie); }
.kontakt h2 { font-size: var(--t-gross); }
.kontakt .abschnitt-satz { margin-bottom: 32px; }
.kontakt-raster { display: grid; gap: 40px; }
@media (min-width: 900px) { .kontakt-raster { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); } }
.direkt { display: grid; align-content: start; gap: 6px; color: var(--text-2); }
.direkt a { min-height: 44px; display: inline-flex; align-items: center; color: var(--text); font-weight: 600; }
.feld select option { background: #10231e; color: #eef3ea; }

/* ---------- Leise Bewegung je Abschnitt (nur mit JavaScript und ohne „Bewegung reduzieren“) */
@media (prefers-reduced-motion: no-preference) {
  .js .anfang-text { transform: translateY(calc(var(--p, 0) * -70px)); opacity: calc(1 - var(--p, 0) * 1.4); }
  .js .tafel-rahmen { transform: perspective(1200px) rotateX(calc((1 - min(1, var(--p, 1) * 2.2)) * 16deg)); transform-origin: 50% 100%; }
  .tafel .blatt.klappt { animation: klappen 0.07s linear; }
  .js .flugbahn-linie path { stroke-dashoffset: calc(1 - min(1, var(--p, 1) * 1.9)); }
  .js .training .stufe { transform: translateY(calc((1 - min(1, var(--p, 1) * 1.8)) * 40px)); }
  .js .training .stufe:nth-child(even) { transform: translateY(calc((1 - min(1, var(--p, 1) * 1.6)) * 70px)); }
  .js .karte { transform: scale(calc(1 - max(0, var(--p, 0.5) - 0.55) * 0.14)); }
  .js .fragen .fragen-spalte:first-child { transform: translateY(calc((0.5 - var(--p, 0.5)) * 50px)); }
  .js .fragen .fragen-spalte:last-child { transform: translateY(calc((var(--p, 0.5) - 0.5) * 50px)); }
  .js .kontakt-flaeche { clip-path: inset(0 calc((1 - min(1, var(--p, 1) * 2.4)) * 7%) round 8px); }
  .js .kontakt-flaeche h2 { transform: translateX(calc((1 - min(1, var(--p, 1) * 2.2)) * -40px)); }
}
@keyframes klappen { from { transform: perspective(200px) rotateX(-80deg); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .tag { height: auto; }
  .js .tag-buehne { position: relative; height: auto; min-height: 100svh; }
  .js .tag-zustand:not(.ist-jetzt) { opacity: 1; display: block; }
}
/* Standbild für das Kopfbild (standbild.mjs): nur der Platz, ohne Text und Abdunklung */
.ist-standbild .anfang-text, .ist-standbild .kopfzeile, .ist-standbild .anfang-hinweis, .ist-standbild .anfang-bild::after { visibility: hidden; }
