/* VKU Simmental-Saanenland · Gestaltung nach DESIGN.md
   Farben, Schriften, Radien und Abstände nur über die Tokens hier oben. */

@font-face { font-family: "Overpass"; src: url("fonts/overpass-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Overpass"; src: url("fonts/overpass-800.woff") format("woff"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("fonts/unbounded-800.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --asphalt: #1D2023;
  --asphalt-2: #272B2F;
  --gelb: #FFD100;
  --hell: #F4F2EC;
  --grau: #A9ADB1;
  --linie: rgba(244, 242, 236, .35);
  --offen: #FF6B6B;

  /* Rollen: dunkle Fassung (Standard). Die helle Fassung setzt nur diese Rollen um (html.hell) */
  --grund: var(--asphalt);
  --text: var(--hell);
  --akzent: var(--gelb);
  --flaeche: var(--asphalt-2);
  --feld: var(--hell);

  --schrift: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  --titel: "Unbounded", "Overpass", system-ui, sans-serif;
  --signal-blau: #0B5CAD;
  --signal-rot: #D52B1E;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 20px; --s5: 32px; --s6: 48px; --s7: 72px;
  --r-karte: 16px;
  --r-flaeche: 24px;
  --r-pille: 999px;
  --breite: 1080px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--grund);
  color: var(--text);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--titel); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.2rem); line-height: 1.15; margin-bottom: var(--s3); }
h3 { font-size: clamp(1rem, 1.7vw, 1.15rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 var(--s3); }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.regel :focus-visible, .sari :focus-visible { outline-color: var(--asphalt); }

.wrap { max-width: var(--breite); margin: 0 auto; padding: 0 var(--s4); }
.wrap--schmal { max-width: 760px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s3); top: var(--s3); z-index: 100; background: var(--gelb); color: var(--asphalt); padding: var(--s2) var(--s3); border-radius: var(--r-pille); }

.kicker {
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: .8125rem;
  text-transform: uppercase; letter-spacing: .08em; color: var(--akzent);
  margin-bottom: var(--s3);
}
.kicker--dunkel { color: var(--asphalt); }
.einleitung { max-width: 62ch; color: var(--grau); margin-bottom: var(--s5); }
.gelb { color: var(--gelb); }
mark.offen { background: var(--offen); color: var(--asphalt); padding: 0 .3em; border-radius: 4px; }

/* Leitlinie als Sektionstrenner */
.leitlinie {
  max-width: var(--breite); margin: 0 auto; height: 3px;
  background: repeating-linear-gradient(90deg, var(--linie) 0 36px, transparent 36px 64px);
  background-clip: content-box; padding: 0 var(--s4);
}

/* Marke: Logo als SVG */
.marke { display: inline-flex; align-items: center; text-decoration: none; }
.marke img { height: 38px; width: auto; }
@media (min-width: 720px) { .marke img { height: 50px; } }
.fuss .marke img { height: 76px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Schaltflächen */
.knopf {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: .95rem; text-decoration: none;
  background: var(--gelb); color: var(--asphalt);
  border: 2px solid var(--gelb); border-radius: var(--r-pille);
  padding: .8em 1.4em; min-height: 48px; cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.knopf:hover { background: var(--asphalt); color: var(--gelb); }
.knopf--rand { background: transparent; color: var(--text); border-color: var(--text); }
.knopf--rand:hover { color: var(--akzent); border-color: var(--akzent); background: transparent; }
.knopf--klein { padding: .45em 1em; min-height: 40px; font-size: .85rem; }
.knopf[disabled], .knopf[disabled]:hover { background: var(--grau); border-color: var(--grau); color: var(--asphalt); opacity: .5; cursor: not-allowed; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 20; background: var(--grund); border-bottom: 1px solid var(--linie); }
.kopf__innen { display: flex; align-items: center; gap: var(--s4); min-height: 64px; }
.kopf__nav { display: none; gap: var(--s4); margin-left: auto; font-variant-numeric: tabular-nums; font-size: .85rem; }
.kopf__nav a { text-decoration: none; color: var(--grau); }
.kopf__nav a:hover { color: var(--akzent); }
.kopf .knopf { margin-left: auto; }
@media (min-width: 860px) {
  .kopf__nav { display: flex; }
  .kopf .knopf { margin-left: 0; }
}

/* Hero: Texthero ohne Bild */
.hero { padding: var(--s6) 0 var(--s6); }
.hero h1 { font-size: clamp(2.1rem, 6.6vw, 3.9rem); font-weight: 800; line-height: 1.08; letter-spacing: -.03em; max-width: 14ch; margin-bottom: var(--s4); }
.hero__lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); max-width: 46ch; color: var(--text); margin-bottom: var(--s5); }
.hero__knoepfe { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.hero__raster { display: grid; gap: var(--s5); align-items: center; }
.schilder { display: flex; gap: var(--s3); align-items: center; order: -1; }
.schild { width: 56px; height: 56px; }
@media (min-width: 900px) {
  .schilder { order: 0; }
  .hero__raster { grid-template-columns: 1fr 300px; }
  .schilder { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); justify-items: center; align-items: center; }
  .schild { width: 120px; height: 120px; }
  .schild--l { grid-column: 1 / -1; width: 170px; height: 170px; transform: rotate(-4deg); }
}
@media (max-width: 899px) {
  .hero__raster > div:first-child { order: 1; }
}
.fakten {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s2) var(--s4);
  font-variant-numeric: tabular-nums; font-size: .875rem; color: var(--grau);
}
.fakten b { color: var(--akzent); font-weight: 800; font-size: 1.15rem; margin-right: .25em; }
@media (min-width: 720px) { .fakten { grid-template-columns: repeat(5, auto); justify-content: start; gap: var(--s5); } .hero { padding: var(--s7) 0; } }

/* Sektionen */
.sektion { padding: var(--s6) 0; }
@media (min-width: 720px) { .sektion { padding: var(--s7) 0; } }

/* Kreis-Motiv */
.kreis {
  flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--gelb); color: var(--asphalt);
  font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.05rem;
}
.kreis--klein { width: 1.9rem; height: 1.9rem; font-size: .85rem; }
.kreis--l { background: transparent !important; border-radius: 0; }
.kreis--l svg { width: 100%; height: 100%; }

/* Neue Regel: die eine gelbe Fläche */
.regel { background: var(--gelb); color: var(--asphalt); border-radius: var(--r-flaeche); padding: var(--s5) var(--s4); }
@media (min-width: 720px) { .regel { padding: var(--s6); } }
.regel__lead { max-width: 60ch; font-size: 1.1rem; margin-bottom: var(--s5); }
.schritte { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s4); }
.schritte li { display: flex; gap: var(--s3); align-items: flex-start; }
.schritte .kreis { background: var(--asphalt); color: var(--gelb); }
.schritte h3 { margin-bottom: var(--s1); }
.schritte p { margin: 0; }
@media (min-width: 860px) { .schritte { grid-template-columns: repeat(4, 1fr); } .schritte li { flex-direction: column; } }
.regel__klein { font-size: .9rem; max-width: 70ch; margin: 0; border-top: 1px dashed rgba(29, 32, 35, .4); padding-top: var(--s4); }

/* Alters-Check */
.alter { background: var(--flaeche); border-radius: var(--r-karte); padding: var(--s4); margin-bottom: var(--s5); }
.alter__kopf { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s4); }
.alter__schild { flex: none; width: 48px; height: 44px; }
.alter__kopf h3 { margin-bottom: var(--s1); }
.alter__kopf p { margin: 0; color: var(--grau); }
.alter__felder { display: grid; gap: var(--s3); align-items: end; }
@media (min-width: 720px) { .alter__felder { grid-template-columns: 1fr 1fr auto; } }
.alter label { display: grid; gap: var(--s1); font-size: .9rem; font-weight: 800; }
.alter input, .alter select {
  font: inherit; font-weight: 400; color: var(--asphalt); background: var(--feld);
  border: 2px solid var(--feld); border-radius: 10px; padding: .6em .8em; min-height: 48px; width: 100%;
}
.alter input:focus-visible, .alter select:focus-visible { outline: 3px solid var(--gelb); outline-offset: 2px; }
.alter__ergebnis { margin: var(--s4) 0 0; font-size: 1.1rem; font-weight: 800; }
.alter__ergebnis:empty { display: none; }
.alter__ergebnis.ja { color: var(--akzent); }
.alter__klein { margin: var(--s3) 0 0; font-size: .85rem; color: var(--grau); }
.termin__passt { font-size: .85rem; font-weight: 800; margin: 0; }
.termin__passt.ja { color: var(--akzent); }
.termin__passt.nein { color: var(--grau); }

/* Termine */
.termine { display: grid; gap: var(--s3); margin-bottom: var(--s5); }
@media (min-width: 720px) { .termine { grid-template-columns: repeat(2, 1fr); } }
.termine__laden, .termine__leer { color: var(--grau); font-variant-numeric: tabular-nums; font-size: .9rem; grid-column: 1 / -1; }
.termine__leer { background: var(--flaeche); border-radius: var(--r-karte); padding: var(--s4); color: var(--text); font-family: var(--schrift); font-size: 1rem; }
.termin { background: var(--flaeche); border-radius: var(--r-karte); padding: var(--s4); display: flex; flex-direction: column; gap: var(--s3); }
.termin__kopf { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; }
.termin__ort { font-family: var(--titel); font-weight: 800; font-size: 1.15rem; line-height: 1.15; }
.termin__wer { font-variant-numeric: tabular-nums; font-size: .8125rem; color: var(--grau); margin-top: var(--s1); }
.termin__plaetze { flex: none; font-variant-numeric: tabular-nums; font-size: .8rem; font-weight: 800; border: 2px solid var(--akzent); color: var(--akzent); border-radius: var(--r-pille); padding: .2em .7em; white-space: nowrap; }
.termin__plaetze--voll { border-color: var(--grau); color: var(--grau); }
.termin__plaetze--muster { border-color: var(--offen); color: var(--offen); border-style: dashed; }
.termin--muster { border: 2px dashed var(--offen); background: transparent; }
.termin--muster .termin__abende span:nth-child(2) { color: var(--grau); }
.termin__abende { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; font-size: .875rem; display: grid; gap: var(--s1); }
.termin__abende li { display: grid; grid-template-columns: 1.6rem 6.2rem 1fr; gap: var(--s2); padding: var(--s1) 0; border-bottom: 1px dashed var(--linie); }
.termin__abende li:last-child { border-bottom: 0; }
.termin__abende .nr { color: var(--akzent); }
.termin__adresse { font-size: .9rem; color: var(--grau); margin: 0; }
.termin .knopf { align-self: flex-start; }
.termin__wahl { margin: 0; font-size: .9rem; font-weight: 800; }
.termin__knoepfe { display: flex; flex-wrap: wrap; gap: var(--s2); }
.termin__bald { margin: 0; font-size: .95rem; color: var(--akzent); }
.anmeldung { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); max-width: 62ch; }
.anmeldung li { display: flex; gap: var(--s3); align-items: center; }

/* Themenabende */
.abende { display: grid; gap: var(--s3); }
@media (min-width: 720px) { .abende { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .abende { grid-template-columns: repeat(4, 1fr); } }
.abend { border: 1px solid var(--linie); border-radius: var(--r-karte); padding: var(--s4); }
.abend__schild { width: 56px; height: 52px; margin-bottom: var(--s3); }
.abend__nr { font-size: .85rem; font-weight: 800; color: var(--akzent); margin-bottom: var(--s1); }
.abend h3 { margin-bottom: var(--s2); }
.abend p { color: var(--grau); margin: 0; font-size: .975rem; }

/* Fahrlehrer */
.team { display: grid; gap: var(--s5); }
@media (min-width: 720px) { .team { grid-template-columns: repeat(3, 1fr); gap: var(--s4); } }
.person { display: grid; grid-template-columns: 96px 1fr; column-gap: var(--s4); align-items: center; }
.person__bild {
  grid-row: span 3; width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  background: var(--gelb); position: relative;
}
.person__bild img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.1); mix-blend-mode: multiply; }
.person__bild--initialen { display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.6rem; color: var(--asphalt); }
.person__firma { font-variant-numeric: tabular-nums; font-size: .8125rem; color: var(--grau); margin: var(--s1) 0; }
.person__tel { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--akzent); text-decoration: none; }
a.person__tel:hover { text-decoration: underline; }
@media (min-width: 720px) {
  .person { grid-template-columns: 1fr; text-align: left; }
  .person__bild { grid-row: auto; width: 140px; height: 140px; margin-bottom: var(--s4); }
}

/* FAQ */
.faq details { border-bottom: 1px dashed var(--linie); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: var(--s4); align-items: center;
  padding: var(--s4) 0; font-weight: 800; font-size: 1.1rem; line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--akzent);
  color: var(--akzent); font-variant-numeric: tabular-nums; font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.faq details[open] summary::after { content: "−"; background: var(--gelb); color: var(--asphalt); }
.faq details p { color: var(--grau); max-width: 62ch; padding-bottom: var(--s4); margin: 0; }

/* Fuss */
.fuss { padding: var(--s6) 0; font-size: .95rem; color: var(--grau); }
.fuss__innen { display: grid; gap: var(--s4); }
.fuss .marke { margin-bottom: var(--s3); color: var(--text); }
.fuss p { max-width: 52ch; }
.fuss__links { font-variant-numeric: tabular-nums; font-size: .85rem; }
@media (min-width: 720px) { .fuss__innen { grid-template-columns: 1fr auto; align-items: end; } }

/* Anmeldefenster mit SARI-iframe */
.sari {
  width: min(720px, calc(100% - 2 * var(--s3))); max-height: calc(100dvh - 2 * var(--s3));
  padding: 0; border: 0; border-radius: var(--r-karte);
  background: var(--hell); color: var(--asphalt);
}
.sari::backdrop { background: rgba(29, 32, 35, .8); }
.sari__kopf { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--gelb); }
.sari__kopf h2 { font-size: 1.15rem; margin: 0; }
.sari__zu { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--asphalt); background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--asphalt); }
.sari__hinweis { padding: var(--s3) var(--s4) 0; margin: 0; font-size: .95rem; }
.wunsch { padding: var(--s4); display: grid; gap: var(--s4); }
.wunsch__schritt { margin: 0; font-size: .85rem; font-weight: 800; opacity: .7; }
.wunsch fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.wunsch legend { font-weight: 800; margin-bottom: var(--s2); }
.wunsch fieldset label { display: flex; gap: var(--s2); align-items: center; font-size: 1rem; min-height: 32px; }
.wunsch input[type=radio] { width: 20px; height: 20px; accent-color: var(--asphalt); }
.wunsch__andere { display: grid !important; gap: var(--s1); margin-left: 28px; font-size: .9rem; font-weight: 800; }
.wunsch__andere[hidden] { display: none !important; }
.wunsch__andere input { font: inherit; font-weight: 400; padding: .6em .8em; min-height: 48px; border: 2px solid var(--asphalt); border-radius: 10px; background: #fff; color: var(--asphalt); }
.wunsch__namen { display: grid; gap: var(--s3); }
@media (min-width: 560px) { .wunsch__namen { grid-template-columns: 1fr 1fr; } }
.wunsch__namen label { display: grid; gap: var(--s1); font-size: .9rem; font-weight: 800; }
.wunsch__namen input { font: inherit; font-weight: 400; padding: .6em .8em; min-height: 48px; border: 2px solid var(--asphalt); border-radius: 10px; background: #fff; color: var(--asphalt); }
.wunsch .knopf { justify-self: start; }
.wunsch .knopf:hover { background: var(--asphalt); color: var(--gelb); border-color: var(--asphalt); }
.wunsch__honig { position: absolute; left: -9999px; }
.sari iframe { display: block; width: 100%; height: min(640px, calc(100dvh - 210px)); border: 0; background: #fff; }
.sari__fuss { padding: var(--s3) var(--s4); margin: 0; font-variant-numeric: tabular-nums; font-size: .85rem; }

/* Rechtstexte */
.recht { padding: var(--s6) 0; }
.recht h1 { font-size: clamp(1.8rem, 4.5vw, 2.6rem); margin-bottom: var(--s5); }
.recht h2 { font-size: 1.2rem; margin: var(--s5) 0 var(--s2); }
.recht p { color: var(--grau); max-width: 70ch; }
.recht a { color: var(--akzent); }
.fehlerseite { padding: var(--s7) 0; }
.fehlerseite h1 { font-size: clamp(2.1rem, 7vw, 3.9rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: var(--s4); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Helle Fassung (Vorschlag 23.11.2026, Wunsch Marc/Markus). Aktiv mit html.hell (Vorschau: ?hell) */
.logo-hell { display: none; }
html.hell {
  --grund: #F6F4EE;
  --text: #1D2023;
  --akzent: #1D2023;
  --flaeche: #FFFFFF;
  --feld: #FFFFFF;
  --grau: #565B60;
  --linie: rgba(29, 32, 35, .25);
}
html.hell .logo-dunkel { display: none; }
html.hell .logo-hell { display: inline; }
html.hell .gelb { color: var(--asphalt); background: var(--gelb); padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
html.hell .termin, html.hell .alter, html.hell .termine__leer { box-shadow: inset 0 0 0 1px var(--linie); }
html.hell .alter input, html.hell .alter select { border-color: var(--linie); }
html.hell .fakten b { background: var(--gelb); padding: 0 .2em; border-radius: 4px; }
html.hell .knopf:hover { background: var(--asphalt); color: var(--gelb); border-color: var(--asphalt); }
html.hell .termin__plaetze { background: var(--gelb); border-color: var(--gelb); }
html.hell .termin--muster { box-shadow: none; }
html.hell .faq details[open] summary::after { background: var(--gelb); border-color: var(--gelb); color: var(--asphalt); }
html.hell .alter input:focus-visible, html.hell .alter select:focus-visible { outline-color: var(--asphalt); }
