/* Gestaltung der Warteliste (Basis: Fragebogen-Container v0.8.0).
   Ruhig, warm, papiernah: Petrol als Tinte auf leicht getöntem Papier.
   Alle Schriften lokal (kein CDN, CSP 'self').
   v0.6.0: bewusst ohne Praxisnamen - diese Datei ist ohne Token abrufbar. */

@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("fonts/atkinson-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --tinte: #2c4a52;
  --tinte-dunkel: #1f3540;
  --tinte-hell: #3a5f69;
  --akzent: #7a9e9f;
  --akzent-hell: rgba(122, 158, 159, .16);
  --papier: #f7f5f2;
  --papier-tief: #efeae3;
  --karte: #fffdf9;
  --text: #2a2f31;
  --text-2: #5a6a6e;
  --text-3: #8a9598;
  --linie: #e0dbd5;
  --linie-fein: #ebe7e1;
  --ok: #1f9b5e; --ok-bg: #edf7f2;
  --warn: #c47a0a; --warn-bg: #fef6e8;
  --fehler: #c0392b; --fehler-bg: #fdf2f2;
  --r: 14px;
  --schatten: 0 1px 2px rgba(44,74,82,.06), 0 12px 40px -18px rgba(44,74,82,.35);
  --t: .22s cubic-bezier(.4,0,.2,1);
  /* Anwender-Wunsch 13.09.: keine Zierschrift - Ueberschriften in derselben klaren Sans */
  --serif: "Atkinson", "Segoe UI", system-ui, sans-serif;
  --sans: "Atkinson", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100dvh; display: flex; flex-direction: column;
  font-family: var(--sans); font-size: 17px; line-height: 1.55; color: var(--text);
  background: var(--papier); position: relative;
}

/* Atmosphäre: sanfte Lichtfläche oben links + feine Körnung */
.himmel {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at -10% -10%, rgba(122,158,159,.28), transparent 60%),
    radial-gradient(800px 420px at 110% 0%, rgba(44,74,82,.10), transparent 60%),
    var(--papier);
}
.himmel::after {
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.17 0 0 0 0 0.29 0 0 0 0 0.32 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Kopf */
.kopf { padding: 1.1rem 1rem .6rem; }
.kopf-innen { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: .85rem; }
.logo { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(44,74,82,.18)); }
.praxis { font-family: var(--serif); font-size: 1.35rem; color: var(--tinte); letter-spacing: .01em; line-height: 1.1; }
.praxis-sub { font-size: .78rem; color: var(--text-3); letter-spacing: .12em; text-transform: uppercase; margin-top: .15rem; }
.kopf-link { margin-left: auto; text-decoration: none; }
.abmelden { margin-left: 0; }

/* Bühne + Karte */
.buehne { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: .4rem 1rem 2.5rem; }
.karte {
  background: var(--karte); border: 1px solid var(--linie-fein); border-radius: var(--r);
  box-shadow: var(--schatten); padding: clamp(1.3rem, 4vw, 2.4rem);
  animation: auftauchen .5s var(--t) both;
}
.ueberzeile { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--akzent); margin: 0 0 .5rem; font-weight: 700; }
.titel { font-family: var(--sans); font-weight: 700; font-size: clamp(1.45rem, 4vw, 1.9rem); line-height: 1.2; color: var(--tinte); margin: 0 0 .6rem; letter-spacing: -.01em; }
.untertitel { color: var(--text-2); margin: 0 0 1.2rem; font-size: 1.02rem; }
.einleitung p { color: var(--text-2); margin: 0 0 .85rem; }
.einleitung { border-left: 3px solid var(--akzent); padding-left: 1rem; margin: 1.2rem 0 1.6rem; }

/* Eingaben */
.eingabe {
  width: 100%; font: inherit; color: var(--text); background: #fff;
  border: 1.5px solid var(--linie); border-radius: 10px; padding: .7rem .85rem;
  transition: border-color var(--t), box-shadow var(--t);
}
.eingabe:focus { outline: none; border-color: var(--tinte); box-shadow: 0 0 0 4px var(--akzent-hell); }
.eingabe.mehrzeilig { resize: vertical; min-height: 5.2rem; line-height: 1.5; }
.eingabe.zahl { width: 8rem; }
.zahl-zeile { display: flex; align-items: center; gap: .6rem; }
.einheit { color: var(--text-2); }
.pw { font-size: 1.25rem; letter-spacing: .12em; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
.pw-form { margin-top: 1.4rem; }
.pw-label { display: block; font-weight: 700; color: var(--tinte); margin-bottom: .6rem; }
.pw-zeile { display: flex; gap: .5rem; align-items: stretch; }
.pw-auge { flex: 0 0 auto; padding: 0 .9rem; }

/* Fragen */
.frage { padding: 1.15rem 0; border-bottom: 1px dashed var(--linie-fein); animation: auftauchen .45s var(--t) both; animation-delay: calc(var(--i, 0) * 45ms); }
.frage:last-of-type { border-bottom: 0; }
.frage-text { display: block; font-weight: 700; color: var(--tinte); margin-bottom: .55rem; line-height: 1.4; }
.nr { display: inline-block; min-width: 2.3rem; font-family: var(--sans); font-weight: 700; font-size: .95rem; color: var(--akzent); }
.hinweis { margin: -.3rem 0 .55rem; color: var(--text-2); font-size: .92rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.chip span {
  display: inline-block; padding: .45rem .9rem; border-radius: 999px; background: #fff;
  border: 1.5px solid var(--linie); color: var(--text); transition: all var(--t); user-select: none;
}
.chip input:checked + span { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--akzent-hell); }
.chip.leer span { border-style: dashed; color: var(--text-3); }

.tabelle-wrap { overflow-x: auto; }
.tabelle { width: 100%; border-collapse: separate; border-spacing: 0 .35rem; min-width: 420px; }
.tabelle th { text-align: left; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); padding: 0 .3rem; font-weight: 700; }
.tabelle td { padding: 0 .2rem; }
.eingabe.zelle { padding: .5rem .65rem; }

/* Knöpfe */
.knopf {
  font: inherit; font-weight: 700; cursor: pointer; border-radius: 999px;
  padding: .7rem 1.25rem; border: 1.5px solid var(--tinte); background: #fff; color: var(--tinte);
  transition: transform var(--t), background var(--t), color var(--t), box-shadow var(--t);
}
.knopf:hover { background: var(--akzent-hell); }
.knopf:active { transform: translateY(1px); }
.knopf.voll { background: var(--tinte); color: #fff; box-shadow: 0 8px 22px -10px rgba(44,74,82,.7); }
.knopf.voll:hover { background: var(--tinte-hell); }
.knopf.leise { border-color: var(--linie); color: var(--text-2); background: transparent; }
.knopf.klein-knopf { padding: .4rem .85rem; font-size: .85rem; }
.pw-form .knopf.voll { width: 100%; margin-top: 1rem; padding: .9rem; font-size: 1.05rem; }
.leiste { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; margin-top: 1.6rem; padding-top: 1.2rem; border-top: 1px solid var(--linie-fein); }
.leiste .knopf.leise { margin-right: auto; }

/* Fortschritt + Abschnittspunkte */
.fortschritt { height: 6px; background: var(--papier-tief); border-radius: 999px; overflow: hidden; margin: .2rem 0 .9rem; }
.fortschritt-balken { height: 100%; background: linear-gradient(90deg, var(--akzent), var(--tinte)); border-radius: 999px; transition: width .6s var(--t); }
.abschnitte { display: flex; gap: .45rem; flex-wrap: wrap; margin-bottom: 1rem; }
.punkt {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  text-decoration: none; font-weight: 700; font-size: .9rem; color: var(--text-2);
  background: #fff; border: 1.5px solid var(--linie); transition: all var(--t);
}
.punkt.teil { border-color: var(--akzent); color: var(--tinte); background: var(--akzent-hell); }
.punkt.fertig { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.punkt.aktiv { background: var(--tinte); border-color: var(--tinte); color: #fff; transform: scale(1.08); }

/* Hinweise */
.notiz { border-radius: 10px; padding: .65rem .9rem; margin: .2rem 0 1rem; font-size: .95rem; }
.notiz.ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #cfe9db; }
.notiz.warn { background: var(--warn-bg); color: #7a5a12; border: 1px solid #f1dfb8; }
.fehler { color: var(--fehler); background: var(--fehler-bg); border: 1px solid #f3cfcf; border-radius: 10px; padding: .55rem .8rem; margin: .7rem 0 0; }
.klein { font-size: .85rem; color: var(--text-3); margin-top: .8rem; }

/* Teil-Label (z. B. „Teil 1 · PHQ-9") + Vorschau-Banner */
.teil { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--tinte-hell); margin: 0 0 .3rem; font-weight: 700; }
.vorschau-banner { background: var(--warn-bg); border: 1px solid #f1dfb8; color: #7a5a12; border-radius: 10px; padding: .6rem .9rem; font-size: .88rem; margin: 0 0 .9rem; }
.chips.skala .chip span { font-size: .93rem; }
a.knopf { text-decoration: none; display: inline-block; }

/* Einwilligung */
.dse { max-height: 46vh; overflow-y: auto; border: 1.5px solid var(--linie); border-radius: 10px; padding: 1rem 1.1rem; background: #fff; font-size: .95rem; margin: 1rem 0; }
.dse h3 { font-size: 1.02rem; color: var(--tinte); margin: 1rem 0 .35rem; }
.dse h3:first-child { margin-top: 0; }
.dse p { margin: 0 0 .6rem; color: var(--text); }
.dse ul { margin: 0 0 .6rem 1.1rem; padding: 0; }
.dse-meta { font-size: .78rem; color: var(--text-3); }

.ew-kasten { border: 2px solid var(--linie); border-radius: 12px; padding: .8rem .95rem; margin: .7rem 0; background: #fff; transition: border-color var(--t), background var(--t); }
.ew-kasten.fehlt { border-color: var(--fehler); background: var(--fehler-bg); animation: wackeln .35s ease-in-out; }
.ew-kasten.fehlt .ew-zeile span { color: var(--fehler); }
.ew-zeile { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; margin: 0; font-weight: 700; color: var(--tinte); line-height: 1.45; }
.ew-zeile input { width: 1.6rem; height: 1.6rem; margin-top: .1rem; accent-color: var(--tinte); flex: 0 0 auto; cursor: pointer; }
@keyframes wackeln { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

/* Autosave-Status */
.autosave { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .5rem; margin: .2rem 0 1rem; font-size: .88rem; color: var(--text-2); }
.autosave .punktchen { width: .6rem; height: .6rem; border-radius: 50%; background: var(--ok); display: inline-block; transition: background var(--t); }
.autosave.wartet .punktchen { background: var(--warn); animation: pulsieren 1s ease-in-out infinite; }
.autosave.fehler .punktchen { background: var(--fehler); }
.autosave .autosave-text { font-weight: 700; color: var(--tinte); }
.autosave .autosave-hint { flex-basis: 100%; font-size: .8rem; color: var(--text-3); }
@keyframes pulsieren { 50% { opacity: .35; } }

/* Dialoge */
.dialog { border: 0; border-radius: var(--r); padding: clamp(1.2rem, 4vw, 1.8rem); max-width: 520px; width: calc(100% - 2rem); box-shadow: 0 30px 80px -20px rgba(31,53,64,.55); background: var(--karte); color: var(--text); }
.dialog::backdrop { background: rgba(31,53,64,.45); backdrop-filter: blur(2px); }
.dialog h2 { font-family: var(--serif); font-weight: 600; color: var(--tinte); font-size: 1.35rem; line-height: 1.2; margin: 0 0 .7rem; }
.dialog p { margin: 0 0 .7rem; color: var(--text-2); }
.dialog-leiste { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; margin-top: 1rem; }

/* Abschluss */
.abschluss { margin-top: 1.6rem; border: 1.5px solid var(--akzent); border-radius: var(--r); background: linear-gradient(180deg, #fff, var(--papier)); padding: 1.1rem; }
.abschluss-titel { font-family: var(--serif); font-weight: 600; color: var(--tinte); font-size: 1.2rem; margin: 0 0 .6rem; }
.abschluss-knopf { width: 100%; padding: .9rem; }

/* Fertig */
.fertig { text-align: center; }
.haken { width: 74px; height: 74px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); font-size: 2.2rem; font-weight: 700; animation: pop .55s var(--t) both; }

/* Fuß */
.fuss { padding: 1rem; }
.fuss-innen { max-width: 760px; margin: 0 auto; display: flex; gap: .6rem; align-items: flex-start; color: var(--text-3); font-size: .8rem; line-height: 1.45; }
.schloss { flex: 0 0 auto; }

@keyframes auftauchen { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media (max-width: 480px) {
  body { font-size: 16px; }
  .leiste { flex-direction: column-reverse; }
  .leiste .knopf { width: 100%; }
  .leiste .knopf.leise { margin-right: 0; }
  .praxis-sub { display: none; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Mobil-Optimierung (16.09.2026, gemessen mit Chromium bei 390 px Breite)
   Befunde: Kopfzeile lief über ("Abmelden" abgeschnitten), Antwort-Chips nur
   ~38 px hoch (Daumen braucht 44), Tabellen erzwangen seitliches Scrollen,
   Weiter-Knopf erst nach langem Scrollen erreichbar, Hintergrund-Rauschen und
   Einblend-Animationen kosten auf schwachen Telefonen Bildrate.
   ───────────────────────────────────────────────────────────────────────── */
.kopf-innen { flex-wrap: wrap; }

@media (max-width: 600px) {
  .kopf { padding: .7rem .8rem .35rem; }
  .kopf-innen { gap: .55rem; }
  .logo { width: 42px; height: 42px; }
  .praxis { font-size: 1.12rem; }
  .kopf-innen .knopf { padding: .4rem .75rem; font-size: .82rem; }
  .kopf-link { margin-left: auto; }

  .buehne { padding: .3rem .7rem 1.4rem; }
  .karte { padding: 1.15rem .95rem; }

  /* Auswahl/Skala: je Option eine volle Zeile, sicher treffbar (>= 44 px) */
  .chips { gap: .45rem; }
  .chip { flex: 1 1 100%; }
  .chip span { display: flex; align-items: center; min-height: 44px; width: 100%; padding: .55rem .9rem; border-radius: 12px; }
  .chips.skala .chip span { font-size: 1rem; }

  /* Abschnittspunkte ebenfalls treffbar */
  .punkt { width: 44px; height: 44px; font-size: 1rem; }

  /* Tabellen ohne seitliches Scrollen: jede Zeile wird eine Karte mit Beschriftung */
  .tabelle-wrap { overflow: visible; }
  .tabelle { display: block; min-width: 0; border-spacing: 0; }
  .tabelle thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabelle tbody, .tabelle tr, .tabelle td { display: block; width: 100%; }
  .tabelle tr { border: 1px solid var(--linie-fein); border-radius: 12px; background: #fff; padding: .55rem .7rem; margin-bottom: .55rem; }
  .tabelle td { padding: .25rem 0; }
  .tabelle td::before {
    content: attr(data-label); display: block; margin-bottom: .2rem;
    font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 700;
  }

  /* Aktionsleiste bleibt am unteren Rand erreichbar (mit Rand für iPhone-Leiste) */
  .leiste {
    position: sticky; bottom: 0; z-index: 5;
    margin: 1.2rem -.95rem -1.15rem; padding: .8rem .95rem calc(.8rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(180deg, rgba(255,253,249,.75), var(--karte) 40%);
    border-top: 1px solid var(--linie);
  }
  .abschluss-knopf { min-height: 48px; }

  /* Ruhiger und schneller: keine fixierte Rauschtextur, keine Einblendungen je Frage */
  .himmel { position: absolute; height: 100%; }
  .himmel::after { display: none; }
  .frage, .karte { animation: none; }

  /* Eingaben nie unter 16 px – sonst zoomt iOS beim Antippen hinein */
  .eingabe, .eingabe.zelle, input, textarea, select { font-size: 16px; }
  .dse { max-height: 50dvh; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Warteliste (v0.1.0): ein langes Formular statt Abschnittsseiten.
   Barrierearm: echte <fieldset>/<legend>, Fehlerliste oben mit Sprungmarken,
   Fehler je Feld per aria-describedby, alles ohne JavaScript bedienbar.
   ───────────────────────────────────────────────────────────────────────── */
.sprung { position: absolute; left: -9999px; top: 0; background: var(--tinte); color: #fff; padding: .6rem 1rem; border-radius: 0 0 10px 0; z-index: 10; }
.sprung:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pflicht { color: var(--fehler); font-weight: 700; }
.optional { font-weight: 400; color: var(--text-3); font-size: .9em; }
.hilfe { margin: .15rem 0 .55rem; color: var(--text-2); font-size: .92rem; }
a { color: var(--tinte); }
.fuss a { color: var(--text-2); }

.abschnitt { border: 0; margin: 0; padding: 1.4rem 0 1.1rem; border-top: 1px solid var(--linie-fein); min-width: 0; }
.abschnitt > legend { font-weight: 700; font-size: 1.2rem; color: var(--tinte); padding: 0; margin-bottom: .9rem; float: left; width: 100%; }
.abschnitt > legend + * { clear: both; }
.abschnitt .nr { display: inline-grid; place-items: center; width: 1.8rem; height: 1.8rem; min-width: 0; border-radius: 50%; background: var(--tinte); color: #fff; font-size: .95rem; margin-right: .4rem; }
.gruppe { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.gruppe > legend { font-weight: 700; color: var(--tinte); padding: 0; margin-bottom: .45rem; line-height: 1.4; }
.feld { margin: 0 0 1rem; }
.feld > label { display: block; font-weight: 700; color: var(--tinte); margin-bottom: .35rem; }
.eingabe.kurz { max-width: 16rem; }
.raster2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.raster-plz { display: grid; grid-template-columns: 7rem 1fr; gap: 0 1rem; }
.eingabe[aria-invalid="true"], [aria-invalid="true"] .chip span { border-color: var(--fehler); }

.liste { display: flex; flex-direction: column; gap: .45rem; }
.option { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; padding: .6rem .85rem; border: 1.5px solid var(--linie); border-radius: 12px; background: #fff; min-height: 44px; transition: border-color var(--t), background var(--t); }
.option input { width: 1.25rem; height: 1.25rem; margin-top: .15rem; accent-color: var(--tinte); flex: 0 0 auto; }
.option:has(input:checked) { border-color: var(--tinte); background: var(--akzent-hell); }
.option:focus-within { box-shadow: 0 0 0 4px var(--akzent-hell); }

.woche { display: flex; flex-direction: column; gap: .5rem; }
.tag { border: 1px solid var(--linie-fein); border-radius: 12px; background: #fff; padding: .55rem .75rem .7rem; margin: 0; min-width: 0; }
.tag > legend { font-weight: 700; color: var(--tinte); padding: 0 .3rem; }
.chip.zeit small { font-size: .78em; opacity: .8; margin-left: .2rem; }

.feld-fehler { color: var(--fehler); font-weight: 700; font-size: .92rem; margin: .35rem 0 0; }
.feld-fehler::before { content: "⚠ "; }
.fehler-liste { border: 2px solid var(--fehler); background: var(--fehler-bg); border-radius: 12px; padding: .8rem 1rem; margin: 0 0 1.2rem; }
.fehler-liste p { margin: 0 0 .3rem; color: var(--fehler); }
.fehler-liste ul { margin: 0; padding-left: 1.2rem; }
.fehler-liste a { color: var(--fehler); }
.zaehler { font-size: .82rem; color: var(--text-3); margin: .25rem 0 0; text-align: right; }

.notfall { border: 1.5px solid #f1dfb8; background: var(--warn-bg); color: #5c4710; border-radius: 12px; padding: .75rem 1rem; margin: 0 0 1.2rem; font-size: .93rem; }
.notfall p { margin: 0 0 .35rem; }
.notfall ul { margin: 0; padding-left: 1.2rem; }
.notfall a { color: #5c4710; font-weight: 700; }
.links { text-align: left; margin-top: 1.2rem; }

/* Honeypot: aus dem Blickfeld, aber nicht display:none (manche Bots prüfen das) */
.topf { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.absenden { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--linie); text-align: center; }
.knopf.gross { width: 100%; max-width: 28rem; padding: .95rem 1.2rem; font-size: 1.08rem; min-height: 48px; }
.einstieg .knopf.gross { margin-top: .6rem; }

/* Tippziele mindestens 44 px auch auf breiten Touch-Geräten (iPad), nicht nur am Handy */
.wl .chip span { min-height: 44px; display: inline-flex; align-items: center; }
.wl .knopf, .einstieg .knopf { min-height: 44px; }
.ew-zeile { min-height: 44px; }

/* Abhängige Felder: nur zeigen, wenn sie gebraucht werden. Ohne :has()-Unterstützung
   bleiben sie einfach sichtbar (Hinweistext in Klammern erklärt, wann sie gelten). */
@supports selector(:has(a)) {
  .wl .nur-gesetzlich, .wl .nur-ptv, .wl .nur-frueher, .wl .anschrift { display: none; }
  .wl:has(#vers-gkv:checked, #vers-gkv_ke:checked) .nur-gesetzlich { display: block; }
  .wl:has(#ptv-ja:checked) .nur-ptv { display: block; }
  .wl:has(#frueher-ja:checked) .nur-frueher { display: block; }
  .wl:has(input[name="kontaktweg"][value="brief"]:checked) .anschrift { display: block; }
  /* Fehler im versteckten Teil nie verstecken */
  .wl .nur-ptv:has([aria-invalid]), .wl .nur-frueher:has([aria-invalid]), .wl .anschrift:has(.feld-fehler) { display: block; }
}

@media (min-width: 601px) {
  .woche .chips { flex-wrap: wrap; }
}
@media (max-width: 600px) {
  /* kurze Auswahlen (Ja/Nein, Kontaktwege, Zeiten) zu zweit je Zeile - sonst wird die Seite sehr lang */
  .chips.kompakt .chip { flex: 1 1 calc(50% - .45rem); }
  .chip.zeit span { flex-direction: column; align-items: flex-start; justify-content: center; line-height: 1.2; }
  .chip.zeit small { margin-left: 0; }
  .raster2, .raster-plz { grid-template-columns: 1fr; }
  .eingabe.kurz { max-width: none; }
  .abschnitt > legend { font-size: 1.1rem; }
}
