/* ===========================================================================
   Elternbereich – eigene Oberflaeche fuer Erwachsene (R3.4.2.1)
   Aus dem Kit (seit 29.09.2026): Blatt (EL41, app/kit/blatt.css) fuer Kopf,
   Inhalt, Abschnitte und Fusszeile samt Abstaenden, Formularfeld (EL42) und
   Meldung (EL43); dazu Textknopf (EL33) und Code-Feld (EL34) seit 28.09.2026.
   Hier steht nur, was der Elternbereich allein hat: Zustimmung, Einwilligungstext,
   Links, Listen und der Platz der Kit-Bausteine auf der Seite. Neues ins Kit erst
   nach Freigabe (CLAUDE.md, Design-Kit).
   Anders als die Kind-App: Die Seite scrollt, Text ist markierbar, hell und dunkel
   bleiben gleich (Farbe traegt in Onda Bedeutung).
   =========================================================================== */

:root { color-scheme: light; }
* { box-sizing: border-box; }

html { margin: 0; }
/* hidden gilt auch fuer Kit-Bausteine mit eigenem display (.feld, .feld small); sonst standen
   Einladungsfeld, Mailhinweis und Geburtsjahr im Klassenkonto sichtbar da (gefunden 21.11.2026). */
[hidden] { display: none !important; }

.leise { color: var(--onda-text-muted); font-size: 15px; }
.laedt { color: var(--onda-text-muted); margin-top: 40px; }

/* Formular ------------------------------------------------------------------ */
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend {
  font: 700 19px/1.2 var(--onda-font-display);
  color: var(--onda-petrol-deep);
  padding: 0;
  margin-bottom: 16px;
}
.zustimmung {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 10px;
  align-items: start;
  margin: 0 0 24px;
}
.zustimmung input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--onda-petrol); }
/* Die Einwilligung als Link im Satz (Mira, 08.10.2026); der Text steht in einer
   eigenen Ansicht (?ansicht=einwilligung), nicht mehr aufgeklappt im Formular. */
.zustimmung a { color: var(--onda-petrol); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
#einwilligung-text { line-height: 1.5; }
/* Hinweis auf Nutzungsbedingungen und Datenschutz neben dem Haekchen, nicht darin (R4.2.1.4) */
.hinweis-recht { margin: -12px 0 24px; }
.hinweis-recht a, .fuss-recht a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* Rechtliches in der Fusszeile, auf jeder Ansicht (Vault a-0088) */
.fuss-recht { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
/* Schliessen im Kopf der Einwilligung (eigener Tab), Entwurf 09.10.2026 */
.kopf-schliessen {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  padding: 0; border: 0; border-radius: var(--onda-radius-round);
  background: var(--onda-petrol-wash);
  color: var(--onda-petrol);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kopf-schliessen[hidden] { display: none; }
.kopf-schliessen svg { width: 22px; height: 22px; }
.kopf-schliessen:focus-visible { outline: 3px solid var(--onda-petrol-tint); outline-offset: 2px; }
#einwilligung-text h3 { font-size: 17px; margin: 4px 0 8px; }
#einwilligung-text h4 { font-size: 15px; margin: 14px 0 4px; }
#einwilligung-text p { margin: 0 0 8px; }
#einwilligung-text ul { margin: 0 0 8px; padding-left: 20px; }
#einwilligung-text li { margin: 0 0 4px; }
#einwilligung-text .fassung { margin-top: 12px; font-size: 13px; opacity: .7; }

/* Platz der Kit-Bausteine auf der Seite */
.code-feld { margin: 12px 0 8px; }
.meldung { margin: 12px 0; }

.link {
  background: none;
  border: 0;
  padding: 4px 0;
  font: 500 15px/1.3 var(--onda-font-body);
  color: var(--onda-petrol);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.link--leise { color: var(--onda-text-muted); }

/* Listen ----------------------------------------------------------------------- */
.liste { list-style: none; margin: 0; padding: 0; }
.liste li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--onda-line-warm);
}
.liste li:first-child { border-top: 0; }
.liste li > span { min-width: 0; overflow-wrap: anywhere; }
.liste .name { font-weight: 600; }
.liste .zusatz { color: var(--onda-text-muted); font-size: 14px; display: block; font-weight: 300; }

/* UX-Test 08.10.2026 ------------------------------------------------------------ */
/* Fehlendes Feld: tiefes Pink wie die Meldung, nie Rot (R14.2.2). Entwurf, noch nicht im Kit. */
.feld :is(input, select)[aria-invalid="true"] {
  border-color: var(--onda-pink-deep);
  background-color: var(--onda-pink-wash);
}
.zustimmung input[aria-invalid="true"] { outline: 2px solid var(--onda-pink-deep); outline-offset: 2px; }
.schritte { margin: 0 0 12px; padding-left: 22px; }
.schritte li { margin: 0 0 6px; }

/* Verbinden-Weiche, Registrierungstest 08.10.2026. Entwurf, noch nicht im Kit. */
.weiche { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.weiche-wahl {
  min-height: 48px;
  padding: 12px 14px;
  border: 2px solid var(--onda-line-warm);
  border-radius: var(--onda-radius-textknopf);
  background: var(--onda-white);
  color: var(--onda-petrol-deep);
  font: 600 15px/1.25 var(--onda-font-body);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.weiche-wahl[aria-pressed="true"] { border-color: var(--onda-petrol); background: var(--onda-petrol-wash); }
@media (max-width: 380px) { .weiche { grid-template-columns: 1fr; } }
.weg-knopf { margin-top: 8px; }
.qr { width: 168px; margin: 10px 0 4px; color: var(--onda-petrol-deep); }
.qr svg { display: block; width: 100%; height: auto; }

/* Kind in Einrichtung und Familie (Vault a-0321). Entwurf, noch nicht im Kit. */
.liste li[data-zeile] { flex-wrap: wrap; }
.liste li[data-zeile] > span:first-child { flex: 1 1 0; }
.liste .aktionen { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
.liste .familie-code { flex-basis: 100%; }
.liste .familie-code .code-feld { margin-top: 0; }
.liste .familie-code .leise { margin: 0; }
.liste li > .link, .liste .aktionen .link { white-space: nowrap; flex-shrink: 0; }
