/* Job-Check Glasfasermonteure · BriKom-Solution
   Farben und Schriften wie auf der Hauptseite (index.html). Mobile First. */

:root {
  --paper:     #101614;
  --surface:   #18201E;
  --surface-2: #202926;
  --ink:       #EAEFEC;
  --ink-soft:  #A9B6B1;
  --ink-faint: #7F8C87;
  --line:      #2C3733;
  --petrol:    #5FC7B8;
  --petrol-lo: #16302D;
  --amber:     #F0A268;
  --amber-lo:  #322115;
  --auf-petrol:#0B1412;

  /* Nachtflächen (Hero, Auswertung) */
  --nacht:     #0B1A18;
  --nacht-2:   #102724;
  --licht:     #5FC7B8;
  --licht-hi:  #9BF0E2;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-mono:    "IBM Plex Mono", Consolas, monospace;

  --radius: 3px;
  --gutter: 16px;
  --spalte: 38rem;
  --tap: 52px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
/* Bewusst immer dunkel, passend zur Startseite, auf allen Geräten gleich. */

* { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
main { flex: 1; outline: none; }
[hidden] { display: none !important; }
h1, h2, h3 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1:focus { outline: none; }
p { margin: 0; }
a { color: var(--petrol); }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--licht); outline-offset: 2px; }

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 50;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: var(--radius);
}
.skip:focus { top: 8px; }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--petrol);
}
.klein { font-size: 0.86rem; color: var(--ink-faint); }

/* ---------- Kopf & Fuß ---------- */

.kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px var(--gutter);
  padding-top: max(14px, env(safe-area-inset-top));
  background: var(--nacht);
  color: #EAEFEC;
}
.marke {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}
.marke span { color: var(--licht); }
.kopf-tag {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--licht);
  border: 1px solid color-mix(in srgb, var(--licht) 45%, transparent);
  border-radius: 100px;
  padding: 3px 10px;
}
body.test-laeuft .kopf { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
body.test-laeuft .marke span { color: var(--petrol); }
body.test-laeuft .kopf-tag { color: var(--petrol); border-color: color-mix(in srgb, var(--petrol) 35%, transparent); }
body.nacht-voll .kopf, body.nacht-voll .fuss { display: none; }

.fuss {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  padding: 22px var(--gutter);
  padding-bottom: max(22px, env(safe-area-inset-bottom));
  font-size: 0.84rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--line);
}
.fuss a { color: var(--ink-soft); text-decoration: none; padding: 4px 0; }
.fuss a:hover { color: var(--petrol); text-decoration: underline; }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--auf-petrol);
  background: var(--petrol);
  border: 0;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: filter 120ms ease, transform 80ms ease, box-shadow 120ms ease;
}
.knopf svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.knopf:hover { filter: brightness(1.12); }
.knopf:active { transform: translateY(1px) scale(0.99); filter: brightness(0.95); }
.knopf[disabled], .knopf[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.knopf-gross {
  width: 100%;
  min-height: 58px;
  font-size: 1.08rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.knopf.leer {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.knopf.leer:hover { border-color: var(--petrol); background: var(--surface); filter: none; }

.nacht .knopf {
  background: var(--licht);
  color: var(--nacht);
  box-shadow: 0 0 0 0 rgba(95, 199, 184, 0.5), 0 10px 30px -10px rgba(95, 199, 184, 0.7);
}
.nacht .knopf:hover { background: var(--licht-hi); filter: none; }

.zurueck-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 8px 12px;
  margin: 0 auto;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.zurueck-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zurueck-link:hover { color: var(--petrol); }
.zurueck-link:active { background: var(--surface-2); }

/* ---------- Seitenwechsel ---------- */

.screen { animation: rein 380ms var(--ease) both; }
.screen.raus { animation: raus 160ms ease-in both; }
@keyframes rein { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes raus { to { opacity: 0; transform: translateY(-8px); } }

.spalte {
  max-width: var(--spalte);
  margin-inline: auto;
  padding: 28px var(--gutter) 40px;
}

/* ---------- Start ---------- */

.nacht { background: var(--nacht); color: #EAEFEC; }
.nacht .eyebrow { color: var(--licht); }

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(120% 70% at 85% 100%, rgba(95, 199, 184, 0.16), transparent 60%),
    var(--nacht);
}
.fasern {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 78%;
  z-index: -1;
  fill: none;
}
.faser-basis path { stroke: rgba(95, 199, 184, 0.16); stroke-width: 1.4; }
.faser-licht path {
  stroke: var(--licht-hi);
  stroke-linecap: round;
  stroke-width: 2.6;
  stroke-dasharray: 50 596;
  stroke-dashoffset: 646;
  filter: drop-shadow(0 0 4px rgba(155, 240, 226, 0.9));
  animation: lichtpuls 5.5s linear infinite;
}
.faser-licht path:nth-child(2) { animation-delay: -1.6s; animation-duration: 6.2s; }
.faser-licht path:nth-child(3) { animation-delay: -3.1s; animation-duration: 5s; }
.faser-licht path:nth-child(4) { animation-delay: -4.4s; animation-duration: 6.8s; }
@keyframes lichtpuls { to { stroke-dashoffset: 0; } }

.hero-inhalt {
  max-width: var(--spalte);
  margin-inline: auto;
  padding: 34px var(--gutter) 120px;
}
.hero h1 {
  font-size: clamp(2.2rem, 10vw, 3.4rem);
  margin: 14px 0 16px;
  color: #FFFFFF;
}
.hero h1 em { font-style: normal; color: var(--licht); }
.hero-sub { font-size: 1.12rem; color: #C3D0CB; max-width: 34ch; }
.chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 26px;
  padding: 0;
}
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #EAEFEC;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
}
.chips svg { width: 16px; height: 16px; fill: none; stroke: var(--licht); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.info h2 { font-size: clamp(1.5rem, 6vw, 2rem); margin: 10px 0 12px; }
.info > p { color: var(--ink-soft); }
.info strong { color: var(--ink); }
.leistungen {
  list-style: none;
  display: grid;
  gap: 8px;
  margin: 18px 0 36px;
  padding: 0;
}
.leistungen li {
  position: relative;
  padding: 12px 14px 12px 40px;
  font-size: 0.97rem;
  line-height: 1.45;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.leistungen li::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 17px;
  width: 12px;
  height: 6px;
  border-left: 2.2px solid var(--licht);
  border-bottom: 2.2px solid var(--licht);
  transform: rotate(-45deg);
}
.taetigkeiten {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0;
  padding: 0;
}
.taetigkeiten li {
  position: relative;
  display: flex;
  align-items: center;
  padding: 11px 12px 11px 30px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.taetigkeiten li::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--petrol);
  box-shadow: 0 0 0 3px var(--petrol-lo);
}
.karte {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.ne3 { border-left: 3px solid var(--petrol); }
.ne3 p:last-child, .quer p:last-child { margin-top: 6px; font-size: 0.97rem; color: var(--ink-soft); }
.quer { margin-bottom: 28px; border-left: 3px solid var(--licht); }
.nicht {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 28px;
  font-weight: 600;
  color: var(--ink-soft);
}
.nicht svg { width: 20px; height: 20px; fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round; }
.info .klein { margin-top: 12px; text-align: center; }

/* ---------- Fortschritt ---------- */

.fortschritt {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 12px var(--gutter) 12px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.fortschritt-text {
  max-width: var(--spalte);
  margin: 0 auto 8px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--petrol);
}
#schritt-titel { color: var(--ink-faint); text-align: right; }
.fortschritt-bahn {
  max-width: var(--spalte);
  margin-inline: auto;
  height: 6px;
  background: var(--surface-2);
  border-radius: 100px;
  overflow: hidden;
}
.fortschritt-fuellung {
  height: 100%;
  width: 12.5%;
  background: linear-gradient(90deg, var(--petrol), var(--licht));
  border-radius: inherit;
  transition: width 500ms var(--ease);
}

/* ---------- Fragen ---------- */

.seite { padding-top: 22px; }
.seite-kopf h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
.seite-kopf p { margin-top: 6px; color: var(--ink-soft); }

.frage {
  margin: 18px 0 0;
  padding: 18px 16px 16px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.frage legend {
  float: left;
  width: 100%;
  padding: 0;
  margin-bottom: 14px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.06rem;
  line-height: 1.3;
}
.frage legend + * { clear: both; }
.frage-nr {
  display: block;
  margin-bottom: 4px;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
}
.frage-info {
  display: block;
  margin: 2px 0 12px;
  padding: 10px 12px;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink);
  background: var(--petrol-lo);
  border-left: 3px solid var(--petrol);
  border-radius: var(--radius);
}
.frage-hinweis { display: block; margin-top: 4px; font-family: var(--f-body); font-weight: 400; font-size: 0.88rem; color: var(--ink-faint); }
.frage.fehlt { border-color: var(--amber); box-shadow: 0 0 0 1px var(--amber); }
.frage-fehler {
  display: none;
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--amber);
}
.frage.fehlt .frage-fehler { display: block; }
.frage.beantwortet { border-color: color-mix(in srgb, var(--petrol) 40%, var(--line)); }

/* Echte Eingabefelder, visuell versteckt, damit Tastatur und Screenreader funktionieren.
   .wahl ist positioniert, damit die Felder in Scrollbereichen (Kalender) nicht herausragen. */
.wahl { position: relative; display: block; }
.wahl input {
  left: 0;
  top: 0;
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* Skala 1–10: 5 × 2 auf dem Telefon, eine Reihe ab Tablet */
.skala {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.skala .wahl span {
  display: grid;
  place-items: center;
  min-height: var(--tap);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 1.05rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease, transform 80ms ease;
}
.skala-enden {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 8px;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--ink-faint);
}
.skala-enden span:last-child { text-align: right; }

/* Auswahl / Ja-Nein / Mehrfach */
.optionen { display: grid; gap: 8px; }
.optionen.janein { grid-template-columns: 1fr 1fr; }
.optionen .wahl span {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--tap);
  padding: 12px 14px;
  font-size: 0.99rem;
  line-height: 1.35;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease, border-color 120ms ease, transform 80ms ease;
}
.optionen .wahl span::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--ink-faint);
  border-radius: 50%;
  background: var(--surface);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.optionen.mehrfach .wahl span::before { border-radius: 4px; }
.optionen.janein .wahl span { justify-content: center; font-weight: 700; font-family: var(--f-display); }
.optionen.janein .wahl span::before { display: none; }

@media (hover: hover) {
  .wahl span:hover { border-color: var(--petrol); }
}
.wahl span:active { transform: scale(0.985); }
.wahl input:focus-visible + span { outline: 3px solid var(--licht); outline-offset: 2px; }

.skala .wahl input:checked + span {
  background: var(--petrol);
  border-color: var(--petrol);
  color: var(--auf-petrol);
}
.optionen .wahl input:checked + span {
  background: var(--petrol-lo);
  border-color: var(--petrol);
  box-shadow: inset 0 0 0 1px var(--petrol);
}
.optionen .wahl input:checked + span::before {
  border-color: var(--petrol);
  background: var(--petrol);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.optionen.mehrfach .wahl input:checked + span::before {
  box-shadow: none;
  background: var(--petrol) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.optionen.janein .wahl input:checked + span { background: var(--petrol); color: var(--auf-petrol); box-shadow: none; }

.navi {
  display: grid;
  gap: 6px;
  margin-top: 26px;
}
.seite-fehler {
  margin-top: 16px;
  padding: 12px 14px;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-lo);
  border-radius: var(--radius);
}

/* ---------- Auswertung ---------- */

.auswertung {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 32px var(--gutter);
  background:
    radial-gradient(90% 60% at 50% 110%, rgba(95, 199, 184, 0.18), transparent 70%),
    var(--nacht);
}
.auswertung-inhalt { width: 100%; max-width: 30rem; text-align: center; }
.auswertung h1 { font-size: clamp(2rem, 9vw, 2.8rem); color: #FFFFFF; }
.auswertung-inhalt > p:first-of-type { margin: 12px auto 0; max-width: 30ch; color: #C3D0CB; font-size: 1.08rem; }
.balken-prozent {
  margin: 44px 0 14px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}
.balken {
  position: relative;
  height: 14px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  overflow: hidden;
}
.balken-fuellung {
  position: relative;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1E7A70, var(--licht) 70%, var(--licht-hi));
  box-shadow: 0 0 18px rgba(95, 199, 184, 0.65);
}
.balken-fuellung::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: glanz 1.6s ease-in-out infinite;
}
@keyframes glanz { from { background-position: -60% 0; } to { background-position: 160% 0; } }
.balken-status {
  min-height: 1.6em;
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 0.9rem;
  color: var(--licht);
  transition: opacity 200ms ease;
}
.balken-status.wechsel { opacity: 0; }
.balken-fertig {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: #FFFFFF;
  animation: rein 400ms var(--ease) both;
}
.balken-fertig svg {
  width: 30px; height: 30px; padding: 5px;
  fill: none; stroke: var(--nacht); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  background: var(--licht);
  border-radius: 50%;
}
.balken-fehler { margin-top: 22px; }
.balken-fehler p { color: #F0C9A8; margin-bottom: 14px; }

/* ---------- Ergebnis & Formular ---------- */

.ergebnis { padding-top: 34px; }
.ergebnis h1 { font-size: clamp(2rem, 9vw, 2.7rem); }
.ergebnis .unterzeile { margin-top: 6px; font-size: 1.3rem; font-weight: 700; color: var(--petrol); }
.ergebnis > p { margin-top: 12px; color: var(--ink-soft); }
.ergebnis > p.stark { color: var(--ink); font-size: 1.06rem; }
.ergebnis > .knopf { margin-top: 28px; }
.abzeichen {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 0 18px 8px;
  border-radius: 50%;
  background: var(--petrol);
  box-shadow: 0 0 0 8px var(--petrol-lo);
  animation: plopp 500ms var(--ease) both 120ms;
}
.abzeichen svg { width: 30px; height: 30px; fill: none; stroke: var(--auf-petrol); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.abzeichen.neutral { background: var(--surface-2); box-shadow: 0 0 0 8px color-mix(in srgb, var(--surface-2) 50%, transparent); }
.abzeichen.neutral svg { stroke: var(--ink-soft); }
@keyframes plopp { from { transform: scale(0.4); opacity: 0; } to { transform: none; opacity: 1; } }

.schritte {
  display: flex;
  gap: 4px;
  margin: 22px 0 4px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.schritte span {
  flex: 1;
  padding-top: 8px;
  color: var(--ink-faint);
  border-top: 4px solid var(--surface-2);
}
.schritte .erledigt { color: var(--petrol); border-color: var(--petrol); }
.schritte .aktiv { color: var(--ink); border-color: var(--licht); }
.schritte .erledigt::before { content: "✓ "; }
.schritte + h1 { margin-top: 26px; }

.hinweis-box {
  margin-top: 22px !important;
  font-weight: 700;
  font-family: var(--f-display);
  color: var(--ink) !important;
}

.formular {
  display: grid;
  gap: 14px;
  margin-top: 12px;
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--petrol);
  border-radius: var(--radius);
}
.feld { display: grid; gap: 5px; }
.feld label { font-weight: 600; font-size: 0.95rem; }
.feld input {
  width: 100%;
  min-height: var(--tap);
  padding: 12px 14px;
  font: inherit;
  font-size: 1.05rem;   /* ≥ 16px: iOS zoomt sonst beim Antippen */
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.feld input:focus { outline: none; border-color: var(--petrol); box-shadow: 0 0 0 3px color-mix(in srgb, var(--petrol) 25%, transparent); }
.feld input[aria-invalid="true"] { border-color: var(--amber); }
.feld-fehler { font-size: 0.88rem; font-weight: 600; color: var(--amber); min-height: 0; }
.feld-fehler:empty { display: none; }
.zweispaltig { display: grid; gap: 14px; }

.einwilligung {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.einwilligung input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--petrol);
  cursor: pointer;
}
.einwilligung.fehlt { border-color: var(--amber); }
.honig { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.formular-fehler {
  padding: 12px 14px;
  font-weight: 600;
  color: var(--amber);
  background: var(--amber-lo);
  border-radius: var(--radius);
}

/* ---------- Kalender ---------- */

#kalender { margin-top: 22px; }
.kal-gruppe { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.kal-gruppe legend { padding: 0; margin-bottom: 10px; font-family: var(--f-display); font-weight: 700; }
.kal-tage {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-inline: calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 8px;
  scrollbar-width: none;
}
.kal-tage::-webkit-scrollbar { display: none; }
.kal-tage .wahl { scroll-snap-align: start; }
.kal-tage .wahl span {
  display: grid;
  place-items: center;
  width: 68px;
  min-height: 72px;
  padding: 8px 4px;
  line-height: 1.15;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease, border-color 120ms ease;
}
.kal-tage .wahl b { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.kal-tage .wahl strong { font-family: var(--f-display); font-size: 1.3rem; }
.kal-tage .wahl small { font-size: 0.78rem; color: var(--ink-soft); }
.kal-zeiten { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kal-zeiten .wahl span {
  display: grid;
  place-items: center;
  min-height: var(--tap);
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  user-select: none;
}
.kal-tage .wahl input:checked + span,
.kal-zeiten .wahl input:checked + span { background: var(--petrol); border-color: var(--petrol); }
.kal-tage .wahl input:checked + span *,
.kal-zeiten .wahl input:checked + span { color: var(--auf-petrol); }

.kal-extern {
  padding: 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.kal-extern p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 14px; }
.kal-rahmen {
  width: 100%;
  height: 720px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.kal-bestaetigen { margin-top: 18px; }

/* ---------- Größere Bildschirme ---------- */

@media (min-width: 560px) {
  :root { --gutter: 24px; }
  .skala { grid-template-columns: repeat(10, 1fr); }
  .zweispaltig { grid-template-columns: 1fr 1fr; }
  .taetigkeiten { grid-template-columns: repeat(3, 1fr); }
  .frage { padding: 22px 22px 20px; }
  .formular { padding: 24px 22px; }
  .kal-zeiten { grid-template-columns: repeat(3, 1fr); }
  .navi { grid-template-columns: auto 1fr; align-items: center; }
  .navi .zurueck-link { order: -1; margin: 0; }
  .knopf-gross.schmal, .info .knopf-gross, .ergebnis .knopf-gross { width: auto; min-width: 280px; }
}
@media (min-width: 900px) {
  .hero-inhalt { padding-top: 70px; padding-bottom: 180px; }
  .fasern { height: 100%; }
  .hero .knopf-gross { width: auto; min-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
  /* Ohne Bewegung: Lichter stehen still an festen Stellen statt zu verschwinden */
  .faser-licht path { animation: none !important; }
  .faser-licht path:nth-child(1) { stroke-dashoffset: 330; }
  .faser-licht path:nth-child(2) { stroke-dashoffset: 200; }
  .faser-licht path:nth-child(3) { stroke-dashoffset: 450; }
  .faser-licht path:nth-child(4) { stroke-dashoffset: 120; }
}
