/* Öffentliche Seiten der Abteilung Bewegung & Fitness (public/bewegung):
   Kursübersicht, Kursdetail mit Anmeldung, Zahlungsseite.
   Nutzt die Design-Tokens aus theme.css. */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { background: var(--bg); font-family: var(--font-body); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

.eyebrow { font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--header-bg); margin-bottom: 10px; }
.h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: .03em; line-height: 1; margin-bottom: 14px; }
.h2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: .03em; line-height: 1.04; margin-bottom: 14px; }
.lead { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-block; text-decoration: none; cursor: pointer; border: none; font-family: inherit; text-align: center;
  font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  padding: 14px 28px; border-radius: 8px; transition: transform .15s, box-shadow .2s, background .2s;
}
.btn-primary { background: var(--primary); color: var(--primary-text); box-shadow: 0 6px 22px rgba(0, 0, 0, .14); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0, 0, 0, .22); }
.btn-green { background: var(--header-bg); color: #fff; box-shadow: 0 6px 22px rgba(33, 86, 58, .28); }
.btn-green:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--header-bg) 88%, black); }
.btn-outline { border: 1.5px solid var(--header-bg); color: var(--header-bg); background: transparent; }
.btn-outline:hover { background: rgba(33, 86, 58, .08); }
.btn-ghost { color: #fff; border: 1.5px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .08); }
.btn-ghost:hover { background: rgba(255, 255, 255, .18); }
.btn:focus-visible { outline: 3px solid var(--header-bg); outline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn { padding: 13px 20px; font-size: .76rem; } .btns .btn { flex: 1 1 auto; } }

/* ── Kopfzeile ─────────────────────────────────────── */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(0, 0, 0, .08); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand img { width: 38px; height: 38px; object-fit: contain; flex: none; }
.brand span { font-size: .7rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--header-bg); white-space: nowrap; }
.topnav { display: flex; align-items: center; gap: 4px; }
.topnav a { text-decoration: none; font-size: .76rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 8px 12px; border-radius: 6px; color: var(--text-muted); white-space: nowrap; }
.topnav a:hover { background: rgba(33, 86, 58, .08); color: var(--header-bg); }
.topnav a.cta { background: var(--header-bg); color: #fff; margin-left: 6px; }
.topnav a.cta:hover { background: color-mix(in srgb, var(--header-bg) 85%, black); }
@media (max-width: 720px) { .topnav a:not(.cta) { display: none; } }
@media (max-width: 420px) { .brand span { display: none; } }

/* ── Hero ──────────────────────────────────────────── */
.hero { background: var(--header-bg); color: #fff; position: relative; overflow: hidden; padding: 72px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1.2px, transparent 0);
  background-size: 22px 22px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  background: var(--primary); opacity: .9; pointer-events: none;
  mask: radial-gradient(circle, transparent 58%, #000 59%);
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--primary); }
.hero .lead { color: rgba(255, 255, 255, .85); margin-bottom: 28px; }
.hero-fakten { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 34px; font-size: .86rem; color: rgba(255, 255, 255, .85); }
.hero-fakten strong { color: #fff; font-family: var(--font-head); font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; display: block; line-height: 1; }
@media (max-width: 640px) { .hero { padding: 48px 0 44px; } .hero::after { width: 260px; height: 260px; right: -110px; top: -90px; } }

/* ── Kursliste ─────────────────────────────────────── */
.kurse { padding: 64px 0 80px; }
@media (max-width: 640px) { .kurse { padding: 44px 0 56px; } }
.kurs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; margin-top: 28px; }
@media (max-width: 400px) { .kurs-grid { grid-template-columns: 1fr; } }
.kurs-karte {
  background: var(--surface); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 10px 30px rgba(33, 86, 58, .08); text-decoration: none; color: inherit;
  transition: transform .18s, box-shadow .2s;
}
.kurs-karte:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(0, 0, 0, .06), 0 16px 40px rgba(33, 86, 58, .16); }
.kurs-karte:focus-visible { outline: 3px solid var(--header-bg); outline-offset: 3px; }
.kurs-bild { aspect-ratio: 3 / 2; width: 100%; object-fit: cover; background: var(--bg-alt); }
.kurs-bild-platzhalter {
  aspect-ratio: 3 / 2; width: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--header-bg), color-mix(in srgb, var(--header-bg) 70%, black));
  color: var(--primary); font-family: var(--font-head); font-size: 2.4rem; letter-spacing: .04em; padding: 16px; text-align: center; line-height: 1.05;
}
.kurs-karte-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kurs-karte h3 { font-family: var(--font-head); font-weight: 400; font-size: 1.7rem; letter-spacing: .03em; line-height: 1.05; }
.kurs-leitung { font-size: .86rem; color: var(--text-muted); }
.kurs-wann { font-size: .86rem; display: flex; gap: 8px; align-items: flex-start; }
.kurs-wann svg { flex: none; width: 18px; height: 18px; margin-top: 2px; stroke: var(--header-bg); fill: none; stroke-width: 1.8; }
.kurs-fuss { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.kurs-mehr { font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--header-bg); }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 600; padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.pill-frei { background: rgba(60, 140, 90, .14); color: #24603c; }
.pill-knapp { background: rgba(245, 166, 35, .2); color: #8a5a08; }
.pill-voll { background: rgba(229, 35, 41, .1); color: #a3191e; }
.pill-zu { background: rgba(0, 0, 0, .07); color: rgba(0, 0, 0, .6); }
.pill-preis { background: var(--primary); color: var(--primary-text); }
.pill-gratis { background: rgba(33, 86, 58, .1); color: var(--header-bg); }

.leer { background: var(--surface); border-radius: 14px; padding: 40px 28px; text-align: center; margin-top: 28px; color: var(--text-muted); }
.leer strong { display: block; color: var(--text); font-size: 1.05rem; margin-bottom: 6px; }

/* ── Kursdetail ────────────────────────────────────── */
.zurueck { display: inline-block; margin: 26px 0 16px; font-size: .82rem; font-weight: 600; color: var(--header-bg); text-decoration: none; }
.zurueck:hover { text-decoration: underline; }
.detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 80px; }
@media (max-width: 860px) { .detail { grid-template-columns: 1fr; gap: 24px; padding-bottom: 56px; } }
.detail-bild { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; margin-bottom: 22px; }
.detail .kurs-bild-platzhalter { border-radius: 14px; margin-bottom: 22px; }
.beschreibung p { margin-bottom: 12px; }
.fakten { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 26px; }
.fakt { background: var(--surface); border-radius: 10px; padding: 12px 14px; }
.fakt span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.fakt strong { font-size: .96rem; }
.termine h2 { font-size: .74rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--header-bg); margin-bottom: 10px; }
.termin-liste { list-style: none; background: var(--surface); border-radius: 12px; overflow: hidden; }
.termin-liste li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-bottom: 1px solid rgba(0, 0, 0, .06); font-size: .9rem; }
.termin-liste li:last-child { border-bottom: 0; }
.termin-liste .nr { color: var(--text-muted); width: 2.2em; flex: none; }
.termin-liste .datum { flex: 1; font-weight: 600; }
.termin-liste .zeit { white-space: nowrap; }
.termin-liste .hinweis { display: block; font-weight: 400; font-size: .8rem; color: var(--secondary); }
.termin-liste li.vorbei { color: rgba(0, 0, 0, .4); }
.termin-liste li.vorbei .datum { font-weight: 400; }

.nur-mobil { display: none; }
@media (max-width: 860px) { .nur-mobil { display: block; margin: 4px 0 18px; } }

/* ── Anmeldekarte ──────────────────────────────────── */
.buchung { background: var(--surface); border-radius: 14px; padding: 24px; box-shadow: 0 10px 30px rgba(33, 86, 58, .1); position: sticky; top: 84px; }
@media (max-width: 860px) { .buchung { position: static; } }
@media (max-width: 480px) { .buchung { padding: 20px 16px; } }
.buchung h2 { font-family: var(--font-head); font-weight: 400; font-size: 1.9rem; letter-spacing: .03em; line-height: 1; margin-bottom: 6px; }
.platz-anzeige { margin: 12px 0 18px; }
.platz-balken { height: 8px; border-radius: 4px; background: rgba(0, 0, 0, .08); overflow: hidden; margin-top: 8px; }
.platz-balken div { height: 100%; background: var(--header-bg); border-radius: 4px; }
.platz-text { font-size: .88rem; color: var(--text-muted); margin-top: 6px; }
.field { margin-bottom: 14px; }
.field .l { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 5px; color: var(--text-muted); }
.field .l i { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1.5px solid rgba(0, 0, 0, .16); border-radius: 8px; background: #fff; color: var(--text);
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--header-bg); box-shadow: 0 0 0 3px rgba(33, 86, 58, .15); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .84rem; margin: 6px 0 16px; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--header-bg); }
.buchung .btn { width: 100%; }
.hint { font-size: .8rem; color: var(--text-muted); margin-top: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.flash { padding: 12px 14px; border-radius: 8px; font-size: .9rem; margin-bottom: 16px; }
.flash.err { background: rgba(229, 35, 41, .1); color: #8f1418; }
.flash.ok { background: rgba(60, 140, 90, .14); color: #1f5434; }
.flash.info { background: rgba(245, 166, 35, .16); color: #6d4706; }
.done { text-align: center; }
.done .tick { width: 56px; height: 56px; border-radius: 50%; background: var(--header-bg); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; margin: 0 auto 12px; }
.done p { color: var(--text-muted); margin-bottom: 12px; font-size: .92rem; }
.done .btns { justify-content: center; margin-top: 8px; }

/* ── Zahlungsseite ─────────────────────────────────── */
.zahlung { max-width: 560px; margin: 40px auto 80px; }
.zahlung .buchung { position: static; }
.zahlung dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 16px 0 20px; font-size: .92rem; }
.zahlung dt { color: var(--text-muted); }
.zahlung dd { font-weight: 600; }
.betrag { font-family: var(--font-head); font-size: 2.6rem; letter-spacing: .03em; line-height: 1; margin: 6px 0 4px; }

/* ── Fußzeile ──────────────────────────────────────── */
footer { background: var(--header-bg); color: rgba(255, 255, 255, .8); padding: 26px 0; font-size: .8rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }
footer a { color: #fff; }
