/* IBE-Campus – Oberfläche (Etappe 1), Stil wie ibe-akademie.de und IBE-Planner */
@font-face { font-family: "Cormorant"; font-weight: 500; font-display: swap; src: url("/static/cormorant-500.woff2") format("woff2"); }
@font-face { font-family: "Cormorant"; font-weight: 600; font-display: swap; src: url("/static/cormorant-600.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 400; font-display: swap; src: url("/static/lato-400.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-weight: 700; font-display: swap; src: url("/static/lato-700.woff2") format("woff2"); }

:root {
  --navy: #16324F; --navy-2: #1d3f63; --navy-3: #0f2439;
  --gold: #C9A227; --gold-hell: #E6CF8A; --gold-zart: #FBF6E6; --gold-dunkel: #8a6d12;
  --grund: #F7F7F5; --weiss: #fff; --text: #22303d; --grau: #5d6b78; --linie: #e3e6ea;
  --gruen: #2f6b3c; --gruen-zart: #E6F2E8; --rot: #8C2F2F; --rot-zart: #F8E3E3; --gelb-zart: #FBF0D2;
  --serif: "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Lato", "Helvetica Neue", Arial, sans-serif;
  --schatten: 0 6px 30px rgba(22, 50, 79, .08);
  --radius: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--grund); -webkit-font-smoothing: antialiased;
  font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; line-height: 1.5; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--navy); margin: 0; line-height: 1.15; }
p { margin: 8px 0; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic.rot { color: #b23a3a; }
[hidden] { display: none !important; }
.klein { font-size: 13px; color: var(--grau); }
.etikett { font-size: 11px; letter-spacing: 2.2px; text-transform: uppercase; color: var(--gold-dunkel); font-weight: 700; }
.etikett.hell { color: var(--gold-hell); }
.optional { font-weight: 400; color: var(--grau); }

/* ---------- Rahmen mit Seitenleiste ---------- */
.rahmen { display: grid; grid-template-columns: 268px minmax(0, 1fr); min-height: 100vh; }
.leiste {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 16px 18px;
  color: #fff; overflow-y: auto; z-index: 20;
  background:
    radial-gradient(1.2px 1.2px at 30px 60px, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 180px 140px, rgba(255,255,255,.4), transparent),
    radial-gradient(1.4px 1.4px at 110px 300px, rgba(243,230,184,.6), transparent),
    radial-gradient(1px 1px at 220px 420px, rgba(255,255,255,.35), transparent),
    radial-gradient(ellipse 120% 50% at 50% 0%, rgba(201,162,39,.12), transparent 60%),
    linear-gradient(175deg, var(--navy-2) 0%, var(--navy) 45%, var(--navy-3) 100%);
  background-size: 260px 480px, 260px 480px, 260px 480px, 260px 480px, 100% 100%, 100% 100%;
  border-right: 1px solid rgba(201,162,39,.55);
}
.leiste-marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; padding: 0 6px 16px;
  border-bottom: 1px solid rgba(230,207,138,.25); }
.leiste-marke img { background: #fff; border-radius: 50%; padding: 3px; }
.leiste-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 25px; letter-spacing: 1.4px; line-height: 1.05; text-transform: uppercase; }
.leiste-unter { display: block; font-size: 9.5px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--gold-hell); font-weight: 700; margin-top: 3px; }
.leiste-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.nav-punkt { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #dfe6ee; text-decoration: none;
  font-size: 15px; position: relative; transition: background .15s, color .15s; }
.nav-punkt .ic { color: var(--gold-hell); }
.nav-punkt:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-punkt.aktiv { background: rgba(255,255,255,.1); color: #fff; font-weight: 700; }
.nav-punkt.aktiv::before { content: ""; position: absolute; left: -16px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.leiste-fuss { border-top: 1px solid rgba(230,207,138,.25); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.leiste-person { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; color: #fff; text-decoration: none; }
.leiste-person:hover { background: rgba(255,255,255,.07); }
.leiste-person .ic { color: var(--gold-hell); width: 26px; height: 26px; }
.leiste-personname { display: block; font-weight: 700; font-size: 14px; }
.leiste-abmelden { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: transparent; color: #b9c6d3;
  padding: 8px 10px; border-radius: 12px; cursor: pointer; font-size: 14px; }
.leiste-abmelden:hover { background: rgba(255,255,255,.07); color: #fff; }
.haupt { display: flex; flex-direction: column; min-width: 0; }
.inhalt { width: 100%; max-width: 1220px; margin: 0 auto; padding: 30px 64px 48px 38px; flex: 1; }
.fuss { text-align: center; font-size: 12px; color: var(--grau); padding: 16px 16px 26px; }
.fuss a { color: var(--grau); }
.mobil-kopf, .unten-nav { display: none; }

/* ---------- Kopfband (Ansicht als / Vorschau) ---------- */
.band { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 18px;
  background: var(--gold); color: var(--navy-3); font-size: 14px; }
.band span { flex: 1; }
.band .ic { width: 22px; height: 22px; }
.mit-band .leiste { top: 44px; height: calc(100vh - 44px); }

/* ---------- Seitenkopf ---------- */
.seitenkopf { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.seitenkopf h1 { font-size: clamp(30px, 4vw, 42px); margin-top: 4px; }
.unterzeile { color: var(--grau); margin: 6px 0 0; }
.seitenkopf-rechts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Karten ---------- */
.karte { background: var(--weiss); border: 1px solid var(--linie); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px;
  box-shadow: var(--schatten); position: relative; }
.karte::before { content: ""; position: absolute; left: 24px; right: 24px; top: -1px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent); opacity: .7; }
.karte.ohne-abstand { margin-bottom: 18px; }
.karte-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.karte-kopf h2 { font-size: 25px; }
.karte .mehr { font-size: 13px; font-weight: 700; color: var(--navy); }
.admin-karte { background: var(--gold-zart); border-color: var(--gold-hell); }
.leer { color: var(--grau); font-size: 14.5px; padding: 6px 0; font-style: italic; }
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.zwei-spalten.breit-links { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 24px;
  border: 0; cursor: pointer; font-weight: 700; font-size: 15px; text-decoration: none; line-height: 1.2; text-align: center;
  transition: transform .12s, box-shadow .12s, background .12s; }
.knopf.gold { background: var(--gold); color: var(--navy-3); box-shadow: 0 8px 20px rgba(201,162,39,.25); }
.knopf.gold:hover { background: #d4ad35; transform: translateY(-1px); }
.knopf.rand { background: #fff; color: var(--navy); border: 1.5px solid var(--navy); }
.knopf.rand:hover { background: var(--gold-zart); }
.knopf.rand-hell { background: transparent; color: #fff; border: 1.5px solid rgba(230,207,138,.8); }
.knopf.rand-hell:hover { background: rgba(255,255,255,.08); }
.knopf.aus { background: #eef0f3; color: var(--grau); cursor: default; }
.held .knopf.aus { background: rgba(255,255,255,.1); color: #c9d3dd; }
.knopf.warn { background: var(--rot); color: #fff; }
.knopf.breit { display: flex; width: 100%; margin-top: 12px; }
.knopf.gross { min-height: 52px; font-size: 16px; padding: 0 28px; }
.knopf .ic { width: 19px; height: 19px; }
.knopf-mini { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--navy); background: #fff; color: var(--navy);
  border-radius: 14px; padding: 5px 11px; font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: none; white-space: nowrap; }
.knopf-mini:hover { background: var(--gold-zart); }
.knopf-mini.gold { background: var(--gold); border-color: var(--gold); color: var(--navy-3); }
.knopf-mini.warn { border-color: var(--rot); color: var(--rot); }
.knopf-mini.hell { background: var(--navy); color: #fff; border-color: var(--navy); }
.knopf-mini .ic { width: 15px; height: 15px; }
.knopf-rund { width: 40px; height: 40px; border-radius: 20px; border: 0; background: transparent; color: var(--navy); display: inline-flex;
  align-items: center; justify-content: center; cursor: pointer; text-decoration: none; }
.knopf-rund:hover { background: var(--gold-zart); }
.knopf-reihe { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.inline-form { display: inline-flex; margin: 3px 4px 3px 0; }

/* ---------- Chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 10px; font-size: 11.5px; font-weight: 700;
  background: #eef0f3; color: var(--grau); white-space: nowrap; letter-spacing: .2px; }
.chip .ic { width: 13px; height: 13px; }
.chip-gold { background: var(--gold); color: var(--navy-3); }
.chip-navy { background: var(--navy); color: #fff; }
.chip-test { background: var(--gelb-zart); color: #6b5208; border: 1px dashed #c9a227; }
.chip-gruen { background: var(--gruen-zart); color: var(--gruen); }
.chip-rot { background: var(--rot-zart); color: var(--rot); }
.chip-aufnahme { background: var(--rot-zart); color: var(--rot); }
.chip-live { background: #d93a3a; color: #fff; }
.leiste .chip { margin-top: 3px; }
.leiste .chip:not(.chip-gold):not(.chip-navy) { background: rgba(255,255,255,.12); color: #dfe6ee; }

/* ---------- Held (nächster Termin) ---------- */
.held { position: relative; overflow: hidden; border-radius: 20px; padding: 30px 32px; margin-bottom: 20px; color: #fff;
  border: 1px solid rgba(201,162,39,.7); box-shadow: 0 14px 40px rgba(15,36,57,.25);
  background:
    radial-gradient(1.3px 1.3px at 40px 40px, #fff, transparent), radial-gradient(1px 1px at 160px 110px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 260px 50px, #F3E6B8, transparent), radial-gradient(1px 1px at 330px 150px, rgba(255,255,255,.6), transparent),
    radial-gradient(ellipse 70% 90% at 85% 10%, rgba(201,162,39,.22), transparent 60%),
    linear-gradient(135deg, #1d3f63 0%, #16324F 50%, #0f2439 100%);
  background-size: 380px 190px, 380px 190px, 380px 190px, 380px 190px, 100% 100%, 100% 100%; }
.held-stern { position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; border-radius: 50%;
  border: 1px solid rgba(230,207,138,.35); box-shadow: inset 0 0 0 26px rgba(230,207,138,.04), 0 0 0 26px rgba(230,207,138,.05); }
.held-text { position: relative; max-width: 640px; }
.held h2 { color: #fff; font-size: clamp(30px, 4vw, 40px); margin: 6px 0 2px; }
.held-kurs { color: var(--gold-hell); font-weight: 700; margin: 0 0 12px; }
.held-zeit { display: flex; align-items: center; gap: 8px; margin: 0; color: #e8edf3; }
.held-zeit .ic { color: var(--gold-hell); }
.held-countdown { color: #c9d3dd; font-size: 14px; margin: 6px 0 0; }
.held-countdown .countdown { color: #fff; font-weight: 700; }
.held-knoepfe { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }

/* ---------- Kurse ---------- */
.kurs-kacheln { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.kurs-kacheln.gross { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.kurs-kachel { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px; text-decoration: none; color: var(--text);
  border: 1px solid var(--gold-hell); background: linear-gradient(180deg, #fff, var(--gold-zart)); position: relative; transition: transform .15s, box-shadow .15s; }
.kurs-kachel:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(22,50,79,.12); }
.kurs-kachel h3 { font-size: 23px; }
.kurs-kachel .chip-test { align-self: flex-start; }
.balken { height: 8px; border-radius: 4px; background: #eef0f3; overflow: hidden; margin-top: 8px; }
.balken span { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--gold), #e3c55a); min-width: 4px; }
.balken.gross { height: 12px; border-radius: 6px; }
.fortschritt-gross { display: flex; align-items: center; gap: 20px; }
.fortschritt-gross > div:last-child { flex: 1; }
.fortschritt-gross .zahl { font-family: var(--serif); font-size: 54px; font-weight: 600; color: var(--navy); line-height: 1; }
.fortschritt-gross .zahl span { font-size: 28px; color: var(--grau); }

/* ---------- Reiterleiste ---------- */
.reiterleiste { display: flex; gap: 4px; overflow-x: auto; margin: -4px 0 20px; padding-bottom: 2px; border-bottom: 1px solid var(--linie);
  scrollbar-width: thin; }
.reiterleiste a { display: inline-flex; align-items: center; gap: 7px; padding: 11px 14px; text-decoration: none; color: var(--grau);
  font-weight: 700; font-size: 14px; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.reiterleiste a .ic { width: 18px; height: 18px; color: var(--gold-dunkel); }
.reiterleiste a:hover { color: var(--navy); }
.reiterleiste a.aktiv { color: var(--navy); border-bottom-color: var(--gold); }

/* ---------- Termine ---------- */
.termin-liste { display: flex; flex-direction: column; gap: 8px; }
.termin-zeile { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--linie);
  text-decoration: none; color: var(--text); background: #fff; transition: border-color .12s, background .12s; }
a.termin-zeile:hover { border-color: var(--gold); background: var(--gold-zart); }
.termin-datum { width: 52px; height: 52px; flex: none; border-radius: 12px; background: var(--navy); color: #fff; display: flex; flex-direction: column;
  align-items: center; justify-content: center; border: 1px solid var(--gold); }
.termin-datum .tag { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1; color: var(--gold-hell); }
.termin-datum .mon { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; }
.termin-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.termin-text strong { color: var(--navy); font-size: 15.5px; }
.termin-text span { font-size: 13px; color: var(--grau); }
.termin-zeile .pfeil { color: var(--gold); width: 18px; height: 18px; }
.termin-zeile.vorbei { opacity: .65; }
.termin-zeile.vorbei .termin-datum { background: #5d6b78; border-color: #5d6b78; }
.termin-zeile.abgesagt .termin-text strong { text-decoration: line-through; }
.mini-termin { display: flex; flex-direction: column; margin-bottom: 12px; }
.mini-termin strong { font-family: var(--serif); font-size: 22px; color: var(--navy); }
.live-kasten { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gross-countdown { font-family: var(--serif); font-size: 34px; font-weight: 600; color: var(--navy); }
.schalter-zeile { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.schalter-zeile > div { display: flex; flex-direction: column; }
.schalter-zeile strong { display: flex; align-items: center; gap: 6px; color: var(--navy); }
.im-raum { margin: 14px 0; font-size: 14px; }
.live-zeile { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.live-zeile .termin-zeile { flex: 1; min-width: 260px; }
.live-status { display: flex; gap: 8px; align-items: center; }

/* ---------- Ankündigungen, Dateien ---------- */
.ankuendigung { padding: 14px 0; border-bottom: 1px solid var(--linie); }
.ankuendigung:last-child { border-bottom: 0; }
.ankuendigung h3 { font-size: 21px; margin: 4px 0 2px; }
.ankuendigung p { font-size: 14.5px; color: var(--text); }
.datei-zeile { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--linie); text-decoration: none; color: var(--text); }
.datei-zeile:last-child { border-bottom: 0; }
a.datei-zeile:hover, .datei-link:hover { background: var(--gold-zart); }
.datei-link { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; text-decoration: none; color: var(--text); border-radius: 8px; padding: 2px 4px; }
.datei-zeile > .ic, .datei-link > .ic:first-child { color: var(--gold-dunkel); width: 26px; height: 26px; }
.datei-zeile > span:not(.chip), .datei-link > span:not(.chip) { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.datei-zeile strong, .datei-link strong { color: var(--navy); }
.ic.rechts { color: var(--navy); }
.tipp { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: var(--gold-zart); border: 1px solid var(--gold-hell);
  text-decoration: none; color: var(--navy); }
.tipp .ic:first-child { width: 28px; height: 28px; color: var(--gold-dunkel); }
.tipp span { flex: 1; }

/* ---------- Personen, Austausch ---------- */
.personen-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.person-karte { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; }
.personen-raster .person-karte { padding: 16px; border: 1px solid var(--linie); border-radius: 14px; }
.person-karte strong { color: var(--navy); font-size: 16px; }
.person-karte p { font-size: 14px; margin: 4px 0; }
.avatar { width: 46px; height: 46px; flex: none; border-radius: 50%; background: var(--navy); color: var(--gold-hell); display: flex; align-items: center;
  justify-content: center; font-family: var(--serif); font-size: 24px; font-weight: 600; border: 1.5px solid var(--gold); text-transform: uppercase; }
.avatar.klein { width: 36px; height: 36px; font-size: 18px; }
.themen { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.thema-zeile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--linie); text-decoration: none; color: var(--text); }
.thema-zeile:hover { border-color: var(--gold); background: var(--gold-zart); }
.thema-zeile > div:not(.avatar) { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.thema-zeile strong { color: var(--navy); }
.thema-zeile > .ic { color: var(--gold-dunkel); }
.antworten { font-size: 12.5px; font-weight: 700; color: var(--gold-dunkel); white-space: nowrap; }
.beitrag { padding: 16px 0; border-bottom: 1px solid var(--linie); }
.beitrag:last-child { border-bottom: 0; }
.beitrag-kopf { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.beitrag-kopf > div:last-child { display: flex; flex-direction: column; }
.beitrag h3 { font-size: 23px; margin: 6px 0; }
.beitrag h3 a { text-decoration: none; }
.faden .beitrag:first-child { padding-top: 0; }
.faden .beitrag + .beitrag { margin-left: 46px; }

/* ---------- Fragen, Glossar, Feedback ---------- */
.frage-form { background: var(--gold-zart); border: 1px solid var(--gold-hell); border-radius: 14px; padding: 16px 18px; margin-bottom: 18px; }
.frage { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--linie); flex-wrap: wrap; }
.frage-text { flex: 1; min-width: 220px; }
.frage-text p { margin: 0 0 4px; color: var(--navy); }
.frage.beantwortet .frage-text p { color: var(--grau); }
.suche-feld { margin-bottom: 14px; }
.glossar { margin: 0; }
.glossar-eintrag { padding: 12px 0; border-bottom: 1px solid var(--linie); }
.glossar dt { font-family: var(--serif); font-size: 21px; font-weight: 600; color: var(--navy); }
.glossar dd { margin: 2px 0 0; }
.sterne-wahl { border: 0; padding: 0; margin: 0 0 6px; }
.sterne-wahl legend { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.sterne { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.sterne input { position: absolute; opacity: 0; pointer-events: none; }
.sterne label { font-size: 34px; color: #d9dde2; cursor: pointer; margin: 0; line-height: 1; transition: color .1s; }
.sterne label:hover, .sterne label:hover ~ label, .sterne input:checked ~ label { color: var(--gold); }
.sterne input:focus-visible + label { outline: 2px solid var(--gold); border-radius: 4px; }
.sterne-anzeige { color: var(--gold); letter-spacing: 2px; }
.feedback-schnitt { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.feedback-schnitt .zahl { font-family: var(--serif); font-size: 40px; color: var(--navy); font-weight: 600; }
.zitat { margin: 8px 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--gold-hell); font-style: italic; color: var(--navy); }
.feedback-zeile { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linie); text-decoration: none; color: var(--text); }
.feedback-zeile span:first-child { flex: 1; }

/* ---------- Formulare ---------- */
label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 10px; border: 1px solid #d3d8de; background: #fff; font-size: 16px; color: var(--navy); }
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }
input[type=file] { font-size: 14px; padding: 10px; border: 1.5px dashed var(--gold); border-radius: 10px; width: 100%; background: var(--gold-zart); }
.hinweis { font-size: 12.5px; color: var(--grau); margin-top: 5px; }
label.haken { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; margin-top: 14px; color: var(--text); }
label.haken input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--gold); }
form .knopf { margin-top: 16px; }
.feld-reihe { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 14px; }
.aufklapp { border: 1px solid var(--gold-hell); border-radius: 12px; padding: 0 16px; margin-bottom: 12px; background: #fff; }
.aufklapp[open] { padding-bottom: 16px; background: linear-gradient(180deg, var(--gold-zart), #fff 80px); }
.aufklapp summary { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 13px 0; font-weight: 700; color: var(--navy); list-style: none; }
.aufklapp summary::-webkit-details-marker { display: none; }
.aufklapp summary .ic { color: var(--gold-dunkel); }
.suche-zeile { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.suche-zeile .knopf { margin-top: 0; }
.kopier-zeile { display: flex; gap: 8px; align-items: center; }
.kopier-zeile input { font-size: 13px; }

/* ---------- Meldungen ---------- */
.meldung { border-radius: 12px; padding: 12px 16px; font-size: 14.5px; margin: 0 0 16px; line-height: 1.5; }
.meldung.fehler { background: var(--rot-zart); color: #7A2424; }
.meldung.ok { background: var(--gruen-zart); color: #245C31; }
.meldung.info { background: var(--gold-zart); color: #5E4A0C; border: 1px solid var(--gold-hell); }

/* ---------- Tabellen ---------- */
.tabelle-rahmen { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold-dunkel); padding: 8px 10px;
  border-bottom: 2px solid var(--gold-hell); white-space: nowrap; }
th a { text-decoration: none; color: inherit; }
th span { font-weight: 400; letter-spacing: 0; }
td { padding: 10px; border-bottom: 1px solid #eceef1; vertical-align: middle; }
td.aktionen { white-space: nowrap; }
tr.still td { color: var(--grau); }
table.anwesenheit th:not(:first-child), table.anwesenheit td:not(:first-child) { text-align: center; }
td.zelle { font-weight: 700; font-size: 16px; }
td.zelle.gruen { color: var(--gruen); background: var(--gruen-zart); }
td.zelle.gelb { color: #8a6d12; background: var(--gelb-zart); }
td.zelle.rot { color: var(--rot); background: var(--rot-zart); }
td.zelle.grau { color: var(--grau); background: #f1f2f4; }
td.zelle.auto { opacity: .5; }
.ampel { display: inline-block; padding: 3px 10px; border-radius: 10px; font-weight: 700; font-size: 13px; }
.ampel.gruen { background: var(--gruen-zart); color: var(--gruen); }
.ampel.gelb { background: var(--gelb-zart); color: #8a6d12; }
.ampel.rot { background: var(--rot-zart); color: var(--rot); }

/* ---------- Nachweise ---------- */
.nachweis-kopf { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--linie); }
.nachweis-kopf > div { flex: 1; display: flex; flex-direction: column; min-width: 200px; }
.quote { font-family: var(--serif); font-size: 46px; font-weight: 600; color: var(--navy); line-height: 1; }
.nachweis-zeile { display: grid; grid-template-columns: 1fr auto 150px; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f0f1f3; font-size: 14.5px; align-items: center; }
.status-anwesend { color: var(--gruen); font-weight: 700; }
.status-teilweise { color: #8a6d12; font-weight: 700; }
.status-abwesend { color: var(--rot); }
.status-entschuldigt, .status-offen { color: var(--grau); }

/* ---------- Kalender ---------- */
.kal-navi { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.kal-navi strong { font-family: var(--serif); font-size: 26px; color: var(--navy); min-width: 190px; text-align: center; }
.kal-gitter { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1px solid var(--linie); border-left: 1px solid var(--linie); }
.kal-wt { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold-dunkel); font-weight: 700; padding: 8px; text-align: center;
  border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); background: var(--gold-zart); }
.kal-tag { min-height: 96px; padding: 6px; border-right: 1px solid var(--linie); border-bottom: 1px solid var(--linie); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kal-tag.fremd { background: #fafafa; color: #b0b7bf; }
.kal-zahl { font-size: 13px; font-weight: 700; }
.kal-tag.heute .kal-zahl { background: var(--gold); color: var(--navy-3); border-radius: 12px; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; }
.kal-eintrag { display: block; font-size: 11.5px; padding: 3px 6px; border-radius: 6px; background: var(--navy); color: #fff; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--gold); }
.kal-eintrag.abgesagt { background: #b0b7bf; text-decoration: line-through; }

/* ---------- Verwaltung ---------- */
.zahlen-kacheln { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.zahl-kachel { background: #fff; border: 1px solid var(--gold-hell); border-radius: 14px; padding: 14px 16px; box-shadow: var(--schatten); }
.zahl-kachel b { display: block; font-family: var(--serif); font-size: 38px; line-height: 1.05; color: var(--navy); }
.zahl-kachel span { font-size: 11.5px; color: var(--grau); text-transform: uppercase; letter-spacing: 1px; }
.status-zeile { display: flex; align-items: center; gap: 10px; padding: 8px 0; flex-wrap: wrap; }
.status-zeile .klein { flex-basis: 100%; padding-left: 20px; margin-top: -4px; }
.punkt { width: 10px; height: 10px; border-radius: 50%; }
.punkt.gruen { background: #3d9a50; }
.punkt.gelb { background: var(--gold); }
.admin-liste { list-style: none; padding: 0; margin: 0 0 12px; }
.admin-liste li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--linie); }

/* ---------- Notizblatt (Reiter + Tafel) ---------- */
.reiter-notiz { position: fixed; right: 0; top: 160px; z-index: 30; width: 40px; padding: 14px 0; display: flex; flex-direction: column;
  align-items: center; gap: 9px; border: 1px solid var(--gold); border-right: 0; border-radius: 12px 0 0 12px; cursor: pointer; color: #fff;
  background: linear-gradient(160deg, var(--navy-2), var(--navy)); box-shadow: -4px 6px 16px rgba(15,36,57,.25); transition: transform .15s; }
.reiter-notiz:hover { transform: translateX(-3px); }
.reiter-notiz .ic { color: var(--gold); width: 20px; height: 20px; }
.reiter-notiz span { writing-mode: vertical-rl; font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: 1.5px; }
.notiz-tafel { position: fixed; inset: 0; z-index: 60; background: rgba(15,36,57,.55); display: flex; align-items: center; justify-content: center; padding: 20px;
  backdrop-filter: blur(2px); }
.notiz-blatt { width: min(860px, 100%); height: min(760px, 100%); display: flex; flex-direction: column; background: #fffdf7; border-radius: 18px;
  border: 1px solid var(--gold-hell); box-shadow: 0 24px 60px rgba(0,0,0,.35); overflow: hidden; }
.notiz-kopf { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px 12px 24px; border-bottom: 2px solid var(--gold-hell); }
.notiz-kopf h2 { font-size: 28px; }
.notiz-feld { flex: 1; width: 100%; border: 0 !important; outline: 0 !important; resize: none; padding: 6px 28px 20px 64px; font-size: 17px; line-height: 32px;
  color: var(--navy); min-height: 0; border-radius: 0 !important;
  background: linear-gradient(90deg, transparent 46px, rgba(201,162,39,.55) 46px, rgba(201,162,39,.55) 47.5px, transparent 47.5px),
              repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(22,50,79,.10) 31px, rgba(22,50,79,.10) 32px);
  background-attachment: local; background-color: #fffdf7; }
.notiz-feld.gross { min-height: 60vh; border: 1px solid var(--gold-hell) !important; border-radius: 12px !important; }
.notiz-feld:disabled { color: var(--grau); }
.notiz-fuss { display: flex; justify-content: space-between; gap: 10px; padding: 10px 20px; font-size: 12.5px; color: var(--grau); border-top: 1px solid var(--linie); background: #fff; }
.karte .notiz-fuss { border-top: 0; padding: 10px 0 0; background: transparent; }
body.notiz-offen { overflow: hidden; }

/* ---------- Hilfe / Technik ---------- */
.faq { border-bottom: 1px solid var(--linie); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 10px 0; font-weight: 700; color: var(--navy); }
.faq p { margin: 0 0 12px; color: var(--text); }
.technik { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.technik-video { position: relative; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--navy-3); border: 1px solid var(--gold); }
.technik-video video { width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.technik-leer { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #b9c6d3; }
.technik-leer .ic { width: 40px; height: 40px; color: var(--gold-hell); }
.pegel { height: 14px; border-radius: 7px; background: #eef0f3; overflow: hidden; margin: 8px 0; }
.pegel span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3d9a50, var(--gold)); transition: width .08s; }
.technik-liste { list-style: none; padding: 0; margin: 12px 0 0; font-size: 14px; }
.technik-liste li { padding: 4px 0; }

/* ---------- Einfache Seiten (Anmeldung, Warten) ---------- */
body.einfach { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px 16px; color: var(--text);
  background: radial-gradient(ellipse 80% 60% at 70% 0%, rgba(201,162,39,.14), transparent 60%), radial-gradient(ellipse at 30% 10%, #1d3f63 0%, #0f2439 55%, #091827 100%); }
.einfach-hintergrund { position: fixed; inset: 0; pointer-events: none;
  background-image: radial-gradient(1.2px 1.2px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.4px 1.4px at 200px 150px, #F3E6B8, transparent), radial-gradient(1px 1px at 60px 190px, rgba(255,255,255,.7), transparent),
    radial-gradient(1px 1px at 260px 40px, rgba(255,255,255,.6), transparent);
  background-size: 300px 260px; opacity: .8; }
.einfach-marke { position: relative; display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; margin-bottom: 20px; }
.einfach-marke img { background: #fff; border-radius: 50%; padding: 3px; }
.einfach-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 32px; letter-spacing: 1.8px; text-transform: uppercase; line-height: 1; }
.einfach-karte { position: relative; width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 32px 30px; border: 1px solid var(--gold-hell);
  border-top: 4px solid var(--gold); box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.einfach-karte h1 { font-size: 32px; margin-bottom: 8px; }
.einfach-karte p { color: var(--grau); }
.einfach-fuss { position: relative; margin-top: 18px; font-size: 12px; color: #b9c6d3; }
.einfach-fuss a { color: #b9c6d3; }
.links-unten { margin-top: 18px; font-size: 14px; text-align: center; line-height: 1.9; }
.links-unten a { font-weight: 700; }
.schloss-gross { width: 70px; height: 70px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--gold); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.schloss-gross .ic { width: 32px; height: 32px; color: var(--gold-hell); }
.warte-kreis { width: 74px; height: 74px; border-radius: 50%; border: 3px solid var(--gold-hell); border-top-color: var(--gold); animation: drehen 1.6s linear infinite; margin-bottom: 16px; }
@keyframes drehen { to { transform: rotate(360deg); } }

/* ---------- Teilnahmebestätigung ---------- */
body.druck { background: #e9e6dc; padding: 24px 16px; }
.druck-leiste { max-width: 794px; margin: 0 auto 16px; display: flex; gap: 10px; justify-content: flex-end; }
.urkunde { max-width: 794px; aspect-ratio: 210 / 297; margin: 0 auto; background: #fffdf7; padding: 34px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.urkunde-rahmen { height: 100%; border: 1.5px solid var(--gold); outline: 6px double rgba(201,162,39,.5); outline-offset: -14px; padding: 60px 56px 46px;
  display: flex; flex-direction: column; align-items: center; text-align: center; }
.urkunde-logo { margin-bottom: 8px; }
.urkunde-akademie { font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--gold-dunkel); font-weight: 700; }
.urkunde h1 { font-size: 52px; margin: 22px 0 30px; letter-spacing: 1px; }
.urkunde-vor { color: var(--grau); font-size: 16px; margin: 6px 0; }
.urkunde-name { font-family: var(--serif); font-size: 40px; font-weight: 600; color: var(--navy); margin: 8px 0 14px; border-bottom: 1px solid var(--gold-hell); padding: 0 30px 6px; }
.urkunde-kurs { font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--navy); margin: 8px 0 14px; }
.urkunde-quote { margin-top: 18px; font-size: 15px; color: var(--navy); }
.urkunde-fuss { margin-top: auto; width: 100%; display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; font-size: 12px; color: var(--grau); text-align: left; }
.urkunde-fuss .linie { width: 200px; border-bottom: 1px solid var(--navy); margin-bottom: 6px; height: 40px; }
.urkunde-pruef { display: flex; flex-direction: column; text-align: right; }
.urkunde-pruef strong { font-size: 15px; color: var(--navy); letter-spacing: 1px; }
@media print {
  @page { size: A4; margin: 0; }
  body.druck { background: #fff; padding: 0; }
  .druck-leiste { display: none; }
  .urkunde { box-shadow: none; max-width: none; width: 210mm; height: 297mm; }
}

/* ---------- Eingebettet im Planner ---------- */
.eingebettet .reiter-notiz { display: none; }
.nav-planner { margin-top: 10px; border-top: 1px solid rgba(230,207,138,.25); border-radius: 0 0 12px 12px; padding-top: 14px; }
.eingebettet .nav-planner { display: none; }

/* ---------- Handy & Tablet ---------- */
@media (max-width: 1100px) {
  .zwei-spalten, .zwei-spalten.breit-links { grid-template-columns: 1fr; }
}
@media (max-width: 899px) {
  .rahmen { display: block; }
  .leiste { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; height: 100%; transform: translateX(-102%); transition: transform .22s ease; z-index: 50;
    box-shadow: 10px 0 40px rgba(0,0,0,.3); }
  .leiste.offen { transform: none; }
  .mit-band .leiste { top: 0; height: 100%; }
  .menue-schleier { position: fixed; inset: 0; z-index: 45; background: rgba(15,36,57,.45); }
  .mobil-kopf { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 25; padding: 8px 10px 8px 16px;
    background: #fff; border-bottom: 1px solid var(--linie); box-shadow: 0 2px 0 rgba(201,162,39,.55); }
  .mit-band .mobil-kopf { top: 0; }
  .mobil-marke { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--serif); font-weight: 600;
    font-size: 21px; letter-spacing: 1.2px; text-transform: uppercase; }
  .inhalt { padding: 20px 16px 96px; }
  .seitenkopf { margin-bottom: 16px; }
  .karte { padding: 18px 16px; border-radius: 14px; }
  .karte::before { left: 16px; right: 16px; }
  .held { padding: 24px 20px; }
  .held-knoepfe { flex-direction: column; }
  .held-knoepfe .knopf { width: 100%; white-space: nowrap; }
  .unten-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--linie);
    box-shadow: 0 -2px 0 rgba(201,162,39,.5); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .unten-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; text-decoration: none; color: var(--grau);
    font-size: 10.5px; font-weight: 700; border-radius: 10px; }
  .unten-nav a .ic { width: 22px; height: 22px; }
  .unten-nav a.aktiv { color: var(--navy); background: var(--gold-zart); }
  .unten-nav a.aktiv .ic { color: var(--gold-dunkel); }
  .reiter-notiz { top: auto; bottom: 120px; width: 32px; padding: 10px 0; }
  .reiter-notiz span { font-size: 14px; }
  .reiter-notiz .ic { width: 16px; height: 16px; }
  .band { font-size: 12.5px; padding: 8px 12px; flex-wrap: wrap; }
  .notiz-tafel { padding: 0; }
  .notiz-blatt { height: 100%; border-radius: 0; }
  .notiz-feld { padding-left: 46px; font-size: 16px; background: linear-gradient(90deg, transparent 32px, rgba(201,162,39,.55) 32px, rgba(201,162,39,.55) 33.5px, transparent 33.5px),
    repeating-linear-gradient(180deg, transparent 0, transparent 31px, rgba(22,50,79,.10) 31px, rgba(22,50,79,.10) 32px); background-attachment: local; background-color: #fffdf7; }
  .kal-tag { min-height: 62px; padding: 3px; }
  .kal-eintrag { font-size: 0; padding: 0; height: 6px; border-radius: 3px; border-left: 0; background: var(--gold); }
  .kal-navi strong { min-width: 0; flex: 1; font-size: 22px; }
  .technik { grid-template-columns: 1fr; }
  .nachweis-zeile { grid-template-columns: 1fr auto; }
  .nachweis-zeile > span:last-child { grid-column: 1 / -1; }
  .faden .beitrag + .beitrag { margin-left: 18px; }
  .schalter-zeile { flex-direction: column; align-items: flex-start; }
  .urkunde { padding: 14px; aspect-ratio: auto; }
  .urkunde-rahmen { padding: 34px 18px; }
  .urkunde h1 { font-size: 36px; }
  .urkunde-name { font-size: 30px; }
  .urkunde-fuss { flex-direction: column; align-items: center; text-align: center; }
  .urkunde-pruef { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
