/* ============================================================
   Elternbereich (elternbereich.html, passwort-neu.html)
   Richtung A "Ruhige Zeitung", Entwurf elternportal-20261006.

   Ersetzt die drei Schichten parent-dashboard.css (minifiziert) ->
   parent-dashboard-fixes.css -> brand.css-Abschnitt, die sich mit
   !important gegenseitig ueberschrieben haben. Diese Datei steht allein
   auf brand.css: von dort kommen NUR die Tokens (--ink, --lilac ...),
   alles Sichtbare steht hier. Kein !important.

   Knoepfe und Felder haben dieselben Masse wie .landing-button und
   .beta-form in landing.css (50 px hoch, Radius 16 px, Schatten 0 5px 0,
   Feldrand #8c92a5 mit 3,1:1). Wer dort etwas aendert, aendert es hier mit.

   Fehler und Warnungen stehen in Koralle-Tinte (--coral-ink), nie in Rot,
   und tragen immer ein Wort. Jedes Bedienelement ist mindestens 48 px hoch
   (Fusszeilen-Links 44 px).
   ============================================================ */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

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

:root {
  --linie: #e7ddcf;
  --hinweis-bg: #fdeee8;
  --feldrand: #8c92a5;
  --schrift-kopf: "Poppins", "Inter", sans-serif;
  --schrift: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --seitenrand: clamp(16px, 5.5vw, 80px);
}

/* ---------- Grundlagen ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.eb {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.6 var(--schrift);
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--schrift-kopf);
  font-weight: 700;
  letter-spacing: -.035em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: var(--lilac-deep);
}

:focus-visible {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 4px;
}

.rahmen {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--seitenrand);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  margin: -1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

.sprung {
  position: fixed;
  z-index: 200;
  top: -6rem;
  left: 1rem;
  padding: .8rem 1rem;
  border-radius: .7rem;
  background: var(--lilac-deep);
  color: var(--white);
  font-weight: 700;
}

.sprung:focus {
  top: 1rem;
}

/* ---------- Kopf (volle Breite) ---------- */

.kopf {
  position: sticky;
  z-index: 50;
  top: 0;
  width: 100%;
  border-bottom: 1px solid rgba(24, 33, 61, .12);
  background: var(--paper);
}

.kopf-innen {
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 18px;
}

.kopf-marke {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 700 20px/1 var(--schrift-kopf);
  letter-spacing: -.04em;
  text-decoration: none;
}

.kopf-marke img {
  width: 36px;
  height: 36px;
}

.kopf-bereich {
  padding-left: 18px;
  border-left: 1.5px solid var(--brand-line);
  color: var(--ink-soft);
  font-size: 15px;
  font-weight: 650;
}

.kopf-rechts {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.kopf-wer {
  margin-right: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.kopf-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: none;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.kopf-link:hover {
  color: var(--lilac-deep);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.kopf-link--unter {
  color: var(--lilac-deep);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- Knoepfe (wie .landing-button) ---------- */

.knopf {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 5px;
  padding: 0 20px;
  border: 2px solid var(--lilac-deep);
  border-radius: 16px;
  background: var(--lilac);
  box-shadow: 0 5px 0 var(--lilac-deep);
  color: var(--white);
  font: 750 15px/1.2 var(--schrift);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.knopf:hover {
  background: var(--lilac-deep);
  box-shadow: 0 3px 0 var(--lilac-deep);
  transform: translateY(2px);
}

.knopf:active {
  box-shadow: 0 1px 0 var(--lilac-deep);
  transform: translateY(4px);
}

.knopf img {
  width: 20px;
  height: 20px;
}

.knopf--soft {
  background: var(--white);
  box-shadow: 0 5px 0 var(--lavender);
  color: var(--lilac-deep);
}

.knopf--soft:hover {
  background: var(--lavender);
  box-shadow: 0 3px 0 var(--lilac-deep);
}

/* Ablehnen beim Wunsch: zweite Wahl, aber kein Warnton (Entwurf 2a). */
.knopf--ink {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 5px 0 #0d142b;
}

.knopf--ink:hover {
  background: #101936;
  box-shadow: 0 3px 0 #0d142b;
}

.knopf--klein {
  min-height: 48px;
  padding: 0 16px;
  font-size: 14px;
}

.knopf--voll {
  width: 100%;
}

/* Gesperrt (zu viele Versuche): aria-disabled statt disabled, damit der
   Knopf fokussierbar bleibt und sein Zustand vorgelesen wird. */
.knopf[aria-disabled="true"],
.knopf:disabled {
  border-color: #b9b4cc;
  background: #ece9f3;
  box-shadow: 0 5px 0 #dcd8e8;
  color: var(--ink-soft);
  cursor: not-allowed;
  transform: none;
}

.knopf[aria-busy="true"] {
  cursor: progress;
}

@media (hover: none), (pointer: coarse) {
  .knopf:hover {
    background: var(--lilac);
    box-shadow: 0 5px 0 var(--lilac-deep);
    transform: none;
  }

  .knopf--soft:hover {
    background: var(--white);
    box-shadow: 0 5px 0 var(--lavender);
  }

  .knopf--ink:hover {
    background: var(--ink);
    box-shadow: 0 5px 0 #0d142b;
  }
}

/* ---------- Felder (wie .beta-form) ---------- */

.formular {
  display: grid;
  gap: 16px;
}

.feld label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.feld .frei {
  color: var(--ink-soft);
  font-weight: 500;
}

.feld input,
.feld textarea,
.feld select,
.familie-wahl select {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1.5px solid var(--feldrand);
  border-radius: var(--radius-small);
  background: var(--white);
  color: var(--ink);
  font: 16px/1.4 var(--schrift);
}

.feld textarea {
  min-height: 92px;
  resize: vertical;
}

.feld input:focus,
.feld textarea:focus,
.feld select:focus,
.familie-wahl select:focus {
  border-color: var(--lilac-deep);
  outline: 3px solid rgba(111, 88, 217, .25);
  outline-offset: 1px;
}

.feld input[aria-invalid="true"],
.feld textarea[aria-invalid="true"],
.feld select[aria-invalid="true"] {
  border: 2px solid var(--coral-ink);
}

.feld .hilfe {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.feld .zaehler {
  flex: none;
  font-variant-numeric: tabular-nums;
}

.pw {
  position: relative;
}

.pw input {
  padding-right: 112px;
}

.pw-zeigen {
  position: absolute;
  top: 1px;
  right: 4px;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  background: none;
  color: var(--lilac-deep);
  font-size: 14px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.regel {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.regel i {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid var(--feldrand);
  border-radius: 5px;
}

.regel img {
  display: none;
  width: 18px;
  height: 18px;
}

.regel.erfuellt {
  color: var(--ink);
}

.regel.erfuellt i {
  display: none;
}

.regel.erfuellt img {
  display: block;
}

/* ---------- Hinweise, Meldungen, Status ---------- */

.meldung-ort:empty {
  display: none;
}

.meldung-ort:focus {
  outline: none;
}

.meldung-ort:focus-visible .hinweis {
  outline: 3px solid var(--lilac-deep);
  outline-offset: 3px;
}

.hinweis {
  padding: 13px 15px;
  border: 2px solid var(--coral-ink);
  border-radius: 16px;
  background: var(--hinweis-bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
}

.hinweis b {
  display: block;
  margin-bottom: 2px;
  color: var(--coral-ink);
  font: 700 16px/1.35 var(--schrift-kopf);
  letter-spacing: -.01em;
}

.hinweis a,
.hinweis .text-knopf {
  color: var(--coral-ink);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meldung-ort + .formular,
.meldung-ort + .hinweis {
  margin-top: 14px;
}

.meldung-ort:not(:empty) {
  margin-bottom: 14px;
}

.knopf-zeile {
  margin-top: 16px;
}

.text-knopf {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--lilac-deep);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.ruhig {
  padding: 16px;
  border: 2px dashed #b7ab97;
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 15px;
}

.ruhig b {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font: 600 17px var(--schrift-kopf);
  letter-spacing: -.02em;
}

.toast-ort:empty {
  display: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--ink);
  box-shadow: 4px 4px 0 var(--mint);
  color: var(--white);
  font-size: 15px;
  animation: einblenden .25s ease-out;
}

.toast img {
  width: 26px;
  height: 26px;
  flex: none;
}

@keyframes einblenden {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ---------- Kleinteile ---------- */

.vorzeile {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--lilac-deep);
  font: 800 12px/1.3 var(--schrift);
  letter-spacing: .1em;
  text-transform: uppercase;
}

.vorzeile i {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--peach-deep);
  box-shadow: 0 0 0 5px rgba(244, 196, 173, .55);
}

.lead {
  max-width: 44ch;
  margin-top: 12px;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1.5;
}

.lead b {
  color: var(--ink);
  font-weight: 650;
}

.klein-h {
  margin: 24px 0 10px;
  color: var(--ink-soft);
  font: 800 12px/1.3 var(--schrift);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.klein-t {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.45;
}

.klein-t b {
  color: var(--ink);
}

.zahl {
  display: inline-grid;
  min-width: 36px;
  height: 36px;
  place-items: center;
  margin-left: 6px;
  padding: 0 8px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--coral);
  color: var(--ink);
  font: 700 18px var(--schrift-kopf);
  letter-spacing: 0;
  vertical-align: 4px;
}

.zurueck {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  color: var(--lilac-deep);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.zurueck:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.zurueck img {
  width: 22px;
  height: 22px;
}

.mehr {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--lilac-deep);
  font-size: 16px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* App-Knoepfe je Kind (Entscheidung 06.10.2026): "Aufgabe zuweisen" und
   "Abby-Übung erstellen" fuehren in die Eltern-App. Sekundaer neben
   "Alles zu ...", am Handy darunter und volle Breite. */
.k-fuss {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
  margin-top: 14px;
}

.k-fuss .mehr {
  margin-top: 0;
}

.app-knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.app-knoepfe .knopf {
  white-space: nowrap;
}

.kv-kopf .app-knoepfe {
  flex-basis: 100%;
}

/* Am Handy: "In der App öffnen" und "Hilfe & Kontakt" unter dem Kopf (siehe elternbereich.html). */
.kopf-app {
  border-bottom: 1px solid rgba(24, 33, 61, .12);
  background: var(--paper);
}

.kopf-app .rahmen {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.kopf-app .kopf-link {
  padding-inline: 0;
}

/* Zustands- und Ampelmarke: Farbe UND Wort UND Symbol. */
.marke {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font: 800 13px/1.4 var(--schrift);
  white-space: nowrap;
}

.marke svg {
  width: 14px;
  height: 14px;
  flex: none;
}

.marke--gut {
  background: var(--mint);
  color: var(--mint-deep);
}

.marke--blick {
  background: var(--sun);
  color: var(--ink);
}

.marke--hilfe {
  background: var(--peach);
  color: var(--peach-deep);
}

/* ---------- Anmeldung ---------- */

.anmeldung {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
  padding-top: 64px;
  padding-bottom: 80px;
}

.anmeldung h1 {
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -.05em;
}

.anmeldung h1 span {
  color: var(--lilac);
}

.punkte-liste {
  display: grid;
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.punkte-liste li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  font-weight: 650;
}

.punkte-liste img {
  width: 24px;
  height: 24px;
  flex: none;
}

.login-karte {
  position: relative;
  margin-top: 110px;
  padding: 34px 32px 30px;
  border: 2px solid var(--ink);
  border-radius: 32px 12px 32px 12px;
  background: var(--paper);
  box-shadow: 12px 12px 0 var(--lilac);
}

.login-abby {
  position: absolute;
  bottom: calc(100% - 14px);
  left: 50%;
  width: 210px;
  pointer-events: none;
  transform: translateX(-50%);
}

.login-karte h2 {
  font-size: 28px;
  line-height: 1.1;
}

.karte-intro {
  margin: 8px 0 20px;
  color: var(--ink-soft);
  font-size: 15px;
}

.vergessen {
  display: flex;
  justify-content: flex-end;
  margin-top: -8px;
}

.vergessen a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--lilac-deep);
  font-size: 14.5px;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.trenn {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px solid var(--linie);
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.5;
}

.trenn b {
  color: var(--ink);
}

.nur-klein {
  display: none;
}

/* ---------- Passwort vergessen / neu ---------- */

.schmal-seite {
  padding-top: 40px;
  padding-bottom: 80px;
}

.schmal {
  display: flex;
  max-width: 470px;
  flex-direction: column;
  gap: 14px;
  margin-inline: auto;
}

.schmal h1 {
  margin-top: 4px;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.05;
}

.schmal h1:focus {
  outline: none;
}

.schmal .lead {
  margin-top: 0;
  font-size: 16.5px;
}

.schmal .zurueck {
  align-self: flex-start;
}

.post {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 20px 6px 20px 6px;
  background: var(--mint);
}

.post img {
  width: 44px;
  height: 44px;
}

/* ---------- Portal: Kopf ---------- */

.portal > .rahmen {
  padding-top: 44px;
}

.z-kopf {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px 40px;
  padding-bottom: 28px;
  border-bottom: 2px solid var(--ink);
}

.z-kopf h1 {
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.02;
  letter-spacing: -.045em;
}

.z-kopf h1:focus {
  outline: none;
}

.z-lead {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--ink-soft);
  font-size: 20px;
  line-height: 1.5;
}

.z-lead b {
  color: var(--ink);
  font-weight: 650;
}

.z-stand {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
}

.familie-wahl {
  display: flex;
  align-items: center;
  gap: 10px;
}

.familie-wahl label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.familie-wahl select {
  width: auto;
  min-width: 180px;
  min-height: 48px;
  padding-block: 8px;
}

.z-h {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin: 48px 0 20px;
}

.z-h h2 {
  font-size: 30px;
  line-height: 1.15;
}

.z-h .neben {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 14px;
}

/* ---------- Laden ---------- */

.lade-zeile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--ink-soft);
  font-size: 15px;
}

.ring {
  width: 22px;
  height: 22px;
  flex: none;
  border: 3px solid var(--lavender);
  border-top-color: var(--lilac-deep);
  border-radius: 50%;
  animation: drehen .9s linear infinite;
}

@keyframes drehen {
  to {
    transform: rotate(360deg);
  }
}

.skel {
  margin-top: 14px;
  border-radius: 10px;
  background: #e8dfcf;
}

.skel--zeile {
  width: 70%;
  height: 22px;
  margin-top: 30px;
}

.skel--kurz {
  width: 55%;
}

.skel--block {
  height: 160px;
  border-radius: 22px 8px 22px 8px;
}

.skel--hoch {
  height: 220px;
  border-radius: 22px;
}

/* ---------- Wartet auf euch ---------- */

.warten {
  margin: 0;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 28px 10px 28px 10px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--coral);
  list-style: none;
}

.w-zeile {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 20px 26px;
}

.w-zeile + .w-zeile {
  border-top: 1.5px solid var(--linie);
}

.w-bild {
  display: grid;
  width: 112px;
  height: 84px;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--sand);
}

.w-bild img {
  width: 52px;
  height: 52px;
}

.w-bild--peach {
  background: var(--peach);
}

.w-bild--lavendel {
  background: var(--lavender);
}

.w-k {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font: 800 12px/1.3 var(--schrift);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.w-k img {
  width: 24px;
  height: 24px;
  flex: none;
  border: 1.5px solid var(--ink);
  border-radius: 7px;
  background: var(--lavender);
}

.w-t {
  margin: 4px 0 3px;
  font: 600 20px/1.3 var(--schrift-kopf);
  letter-spacing: -.02em;
}

.w-m {
  color: var(--ink-soft);
  font-size: 15px;
}

.w-akt {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.w-satz {
  grid-column: 2 / -1;
}

.w-satz .knoepfe {
  justify-content: flex-end;
  margin-top: 12px;
}

/* ---------- So steht es heute ---------- */

.spalten {
  display: grid;
  grid-template-columns: repeat(var(--spalten, 2), minmax(0, 1fr));
}

.spalten--1 {
  --spalten: 1;
}

.spalten--2 {
  --spalten: 2;
}

.spalten--3 {
  --spalten: 3;
}

.spalten > .sp {
  min-width: 0;
  padding-right: 44px;
}

.spalten > .sp + .sp {
  padding-left: 44px;
  border-left: 2px solid var(--ink);
}

.spalten > .sp:last-child {
  padding-right: 0;
}

.spalten--1 > .sp {
  max-width: 760px;
}

.k-kopf {
  display: flex;
  align-items: center;
  gap: 16px;
}

.k-kopf h3 {
  font-size: 30px;
  line-height: 1.1;
}

.kl {
  color: var(--ink-soft);
  font-size: 15px;
}

.av {
  display: grid;
  width: 64px;
  height: 64px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--lavender);
}

.av img {
  width: 58px;
  height: 58px;
}

.av--1 {
  background: var(--peach);
}

.av--2 {
  background: var(--sky);
}

.av--3 {
  background: var(--mint);
}

.av--klein {
  width: 30px;
  height: 30px;
  border-width: 1.5px;
  border-radius: 9px;
}

.av--klein img {
  width: 27px;
  height: 27px;
}

.urteil {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 12px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.5;
}

.heute {
  display: flex;
  margin: 22px 0 0;
  padding: 0;
  border-top: 1.5px solid var(--linie);
  border-bottom: 1.5px solid var(--linie);
  list-style: none;
}

.heute li {
  flex: 1;
  padding: 12px 0;
}

.heute b {
  display: block;
  font: 700 40px/1.05 var(--schrift-kopf);
  letter-spacing: -.03em;
}

.heute span {
  color: var(--ink-soft);
  font-size: 14px;
}

.heute .warn b,
.heute .warn span {
  color: var(--coral-ink);
}

.heute .warn span {
  font-weight: 650;
}

.zwei {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 28px;
}

/* Lernzeit: Balkenhoehe ueber Stufen (je 5 %), weil style-Attribute unter
   der CSP nicht greifen. Jedes Kind hat seinen eigenen Massstab. */
.lz {
  display: grid;
  height: 132px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.lz li {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.lz em {
  margin-bottom: 4px;
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.lz .feld-balken {
  position: relative;
  flex: 1;
}

.lz i {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0;
  border: 2px solid var(--ink);
  border-radius: 8px 8px 3px 3px;
  background: var(--lilac);
}

.lz i.st-0 {
  border-width: 0 0 2px;
  border-radius: 0;
}

.lz i.jetzt {
  border-style: dashed;
  background: var(--lavender);
}

.lz i.st-1 { height: 5%; }
.lz i.st-2 { height: 10%; }
.lz i.st-3 { height: 15%; }
.lz i.st-4 { height: 20%; }
.lz i.st-5 { height: 25%; }
.lz i.st-6 { height: 30%; }
.lz i.st-7 { height: 35%; }
.lz i.st-8 { height: 40%; }
.lz i.st-9 { height: 45%; }
.lz i.st-10 { height: 50%; }
.lz i.st-11 { height: 55%; }
.lz i.st-12 { height: 60%; }
.lz i.st-13 { height: 65%; }
.lz i.st-14 { height: 70%; }
.lz i.st-15 { height: 75%; }
.lz i.st-16 { height: 80%; }
.lz i.st-17 { height: 85%; }
.lz i.st-18 { height: 90%; }
.lz i.st-19 { height: 95%; }
.lz i.st-20 { height: 100%; }

.lz-x {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 12.5px;
  text-align: center;
  white-space: nowrap;
}

.lz--gross {
  height: 170px;
  gap: 22px;
}

.lz-x--gross {
  gap: 22px;
  white-space: normal;
}

.sg-gross {
  margin-top: 18px;
}

.punkte {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 6px;
}

.punkte i {
  width: 18px;
  height: 18px;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: var(--paper);
}

.punkte i.an {
  background: var(--mint-deep);
}

.arbeit {
  display: flex;
  align-items: center;
  gap: 14px;
}

.datum {
  width: 62px;
  flex: none;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  text-align: center;
}

.datum span {
  display: block;
  background: var(--ink);
  color: var(--white);
  font: 800 11px/1.6 var(--schrift);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.datum b {
  display: block;
  font: 700 21px/1.5 var(--schrift-kopf);
}

.arbeit p b {
  display: block;
  font: 600 17px/1.3 var(--schrift-kopf);
  letter-spacing: -.02em;
}

.arbeit p span {
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* Kind-Umschalter (Handy, ab vier Kindern auch am Rechner) */
.kind-wahl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  overflow: hidden;
  margin-bottom: 14px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--paper);
}

.kind-wahl button {
  display: flex;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 0;
  border-right: 2px solid var(--ink);
  background: none;
  font: 750 16px/1.2 var(--schrift);
  text-align: left;
  cursor: pointer;
}

.kind-wahl button:last-child {
  border-right: 0;
}

.kind-wahl button small {
  display: block;
  margin-top: 2px;
  color: var(--ink-soft);
  font: 600 12.5px var(--schrift);
}

.kind-wahl button small.warn {
  color: var(--coral-ink);
}

.kind-wahl [aria-selected="true"] {
  background: var(--ink);
  color: var(--white);
}

.kind-wahl [aria-selected="true"] small {
  color: #d7daea;
}

.kind-wahl button:focus-visible {
  outline-offset: -5px;
}

/* Umschaltmodus: es ist nur das gewaehlte Kind zu sehen. */
.umschalten .spalten {
  --spalten: 1;
}

.umschalten .spalten > .sp {
  max-width: none;
  padding: 0;
  border-left: 0;
}

.umschalten #kinderSpalten > .sp {
  padding: 18px 16px;
  border: 2px solid var(--ink);
  border-radius: 22px;
  background: var(--paper);
}

/* ---------- Wochenrueckblick ---------- */

.wr-text {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.6;
}

.wr dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.wr dt {
  color: var(--ink-soft);
  font: 800 12px/1.3 var(--schrift);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.wr dd {
  margin: 3px 0 0;
  font-size: 16px;
}

.tipp {
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 18px 6px 18px 6px;
  background: var(--paper);
}

.tipp dt {
  color: var(--lilac-deep);
}

.verdient {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1.5px dashed #cdbfa9;
}

.o-bild {
  display: grid;
  width: 64px;
  height: 64px;
  flex: none;
  place-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--lavender);
}

.o-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.o-bild img.ic {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.verdient p {
  color: var(--ink-soft);
  font-size: 15px;
}

.verdient p b {
  display: block;
  color: var(--ink);
  font: 600 17px/1.3 var(--schrift-kopf);
  letter-spacing: -.02em;
}

/* ---------- Leerer Zustand ---------- */

.leer {
  display: flex;
  max-width: 560px;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-top: 40px;
}

.leer h2 {
  font-size: clamp(26px, 3vw, 34px);
}

.leer .lead {
  margin-top: 0;
}

.leer-abby {
  width: 150px;
  align-self: center;
  margin: 6px 0;
}

.schritte {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  counter-reset: schritt;
  list-style: none;
}

.schritte li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.45;
  counter-increment: schritt;
}

.schritte li::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 9px;
  background: var(--sun);
  content: counter(schritt);
  font: 700 15px var(--schrift-kopf);
}

/* ---------- Kind-Ansicht ---------- */

.kv-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.kv-wechsel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.kv-wechsel a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 18px 0 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
}

.kv-wechsel a[aria-current="page"] {
  background: var(--ink);
  color: var(--white);
}

.kv-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 20px;
  margin-top: 20px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.kv-kopf .av {
  width: 84px;
  height: 84px;
  border-radius: 22px;
}

.kv-kopf .av img {
  width: 76px;
  height: 76px;
}

.kv-kopf h1 {
  font-size: clamp(36px, 4.4vw, 50px);
  line-height: 1;
}

.kv-kopf h1:focus {
  outline: none;
}

.kv-kopf .kl {
  margin-top: 6px;
}

.kv-kopf .urteil {
  max-width: 420px;
  margin: 0 0 0 auto;
}

.kv-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.kv-raster > div {
  min-width: 0;
  padding: 8px 44px 0 0;
}

.kv-raster > div + div {
  padding: 8px 0 0 44px;
  border-left: 2px solid var(--ink);
}

.kv-h {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 28px 0 12px;
  font-size: 22px;
  letter-spacing: -.025em;
}

.kv-h span {
  color: var(--ink-soft);
  font: 500 14px var(--schrift);
  letter-spacing: 0;
}

.aufg {
  margin: 0;
  padding: 0;
  border-top: 1.5px solid var(--linie);
  list-style: none;
}

.aufg li {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1.5px solid var(--linie);
  font-size: 15.5px;
}

.aufg .st {
  font: 800 12px var(--schrift);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.aufg .st--ue {
  color: var(--coral-ink);
}

.aufg .st--of {
  color: var(--ink-soft);
}

.aufg .st--er {
  color: var(--mint-deep);
}

.aufg b {
  font-weight: 650;
  overflow-wrap: anywhere;
}

.aufg small {
  display: block;
  color: var(--ink-soft);
  font-size: 13.5px;
}

.aufg .fach {
  color: var(--ink-soft);
  font-size: 13.5px;
  white-space: nowrap;
}

.ampel {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ampel li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1.5px solid var(--linie);
}

.ampel li:first-child {
  border-top: 1.5px solid var(--linie);
}

.ampel .marke {
  justify-self: start;
}

.ampel b {
  font: 600 16px var(--schrift-kopf);
  letter-spacing: -.02em;
}

.ampel p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

.arbeiten {
  display: grid;
  gap: 14px;
}

.outfits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.outfit {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 18px 6px 18px 6px;
  background: var(--paper);
}

.outfit .o-gr {
  display: grid;
  height: 150px;
  place-items: center;
  border-bottom: 2px solid var(--ink);
  background: var(--lavender);
}

.outfit .o-gr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}

.outfit .o-gr img.ic {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.outfit p {
  padding: 10px 12px 12px;
  color: var(--ink-soft);
  font-size: 13.5px;
  line-height: 1.4;
}

.outfit p b {
  display: block;
  color: var(--ink);
  font: 600 16px/1.3 var(--schrift-kopf);
  letter-spacing: -.02em;
}

.berichte {
  margin: 0;
  padding: 0;
  list-style: none;
}

.berichte li {
  border-bottom: 1.5px solid var(--linie);
}

.berichte summary {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.berichte summary::-webkit-details-marker {
  display: none;
}

.berichte summary span {
  color: var(--lilac-deep);
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.berichte .wr {
  padding: 4px 0 18px;
}

.berichte .wr-text {
  font-size: 16px;
}

.teil-fehler {
  color: var(--ink-soft);
  font-size: 15px;
}

/* ---------- Hilfe & Kontakt (#hilfe, eltern/hilfe.js) ----------
   Formular links, "Eure Anfragen" rechts; am Handy untereinander. Die
   Liste nutzt die Zeilen der Aufgabenliste (.aufg), die Zustaende dieselben
   Farben: offen grau, "wir warten auf euch" Koralle-Tinte, erledigt Minze. */

.hilfe-raster {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: start;
  gap: 32px 64px;
  margin-top: 20px;
}

.hilfe-form h1 {
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.05;
}

.hilfe-form h1:focus,
.hilfe-fertig h2:focus {
  outline: none;
}

.hilfe-form .lead {
  margin-bottom: 24px;
}

.hilfe-form .formular {
  max-width: 560px;
}

.feld select {
  appearance: none;
  padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px;
  cursor: pointer;
}

.feld textarea#hilfeNachricht {
  min-height: 180px;
}

.feld .zaehler.zaehler--ueber {
  color: var(--coral-ink);
  font-weight: 750;
}

.hilfe-senden {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.hilfe-fertig {
  display: grid;
  max-width: 560px;
  justify-items: start;
  gap: 12px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-medium);
  background: var(--paper);
}

.hilfe-fertig h2 {
  font-size: 26px;
  line-height: 1.15;
}

.hilfe-fertig .lead {
  margin-top: 0;
  font-size: 16.5px;
}

.hilfe-nummer {
  font-variant-numeric: tabular-nums;
}

.hilfe-liste .kv-h {
  margin-top: 8px;
}

.aufg.anfragen li {
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
}

.anfragen .st {
  padding-top: 3px;
}

.anfrage-satz {
  margin-top: 2px;
}

.anfrage-text {
  grid-column: 2 / -1;
  font-size: 14.5px;
}

.anfrage-text summary {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--lilac-deep);
  font-weight: 750;
  cursor: pointer;
}

.anfrage-text p {
  padding: 10px 14px;
  border-left: 3px solid var(--lavender);
  color: var(--ink);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.app-hinweis.app-hinweis--eng {
  margin-top: 4px;
}

@media (max-width: 960px) {
  .hilfe-raster {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 719px) {
  .aufg.anfragen li {
    grid-template-columns: minmax(0, 1fr);
  }

  .anfrage-text {
    grid-column: 1 / -1;
  }

  .hilfe-senden .knopf {
    width: 100%;
  }

  .hilfe-fertig {
    padding: 18px;
  }
}

/* ---------- Privat und App-Hinweis ---------- */

.app-hinweis {
  margin-top: 48px;
  color: var(--ink-soft);
  font-size: 15px;
}

.app-hinweis a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  font-weight: 750;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.privat {
  margin-top: 40px;
  border-top: 2px solid var(--ink);
  background: var(--mint);
}

.privat-innen {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 44px;
  padding-top: 40px;
  padding-bottom: 44px;
}

.privat h2 {
  font-size: 28px;
  line-height: 1.15;
}

.privat-innen > div > p {
  margin-top: 10px;
  font-size: 16px;
}

.privat h3 {
  margin-bottom: 10px;
  font-size: 17px;
  letter-spacing: -.02em;
}

.privat ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.privat li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  line-height: 1.45;
}

.privat li img {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
}

/* ---------- Fusszeile ---------- */

.fuss {
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
}

.fuss-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.fuss-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 22px;
}

.fuss a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.fuss a:hover {
  color: var(--yellow);
}

.fuss a:focus-visible {
  outline-color: var(--sun);
}

.fuss-kontakt {
  margin-left: auto;
  color: #cfd3e2;
}

/* ---------- Nachweis-Dialog ---------- */

.nachweis {
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 0;
  overflow: auto;
  border: 2px solid var(--ink);
  border-radius: 28px 10px 28px 10px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--lilac);
  color: var(--ink);
}

.nachweis[open] {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 1fr);
  grid-template-rows: auto;
}

.nachweis::backdrop {
  background: rgba(24, 33, 61, .55);
}

.nachweis.ohne-foto {
  width: min(520px, calc(100vw - 32px));
}

.nachweis.ohne-foto[open] {
  grid-template-columns: minmax(0, 1fr);
}

.nachweis.ohne-foto .n-foto {
  display: none;
}

.n-leiste {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
}

.n-leiste-titel {
  display: none;
}

.n-zu {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.n-zu-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.n-foto {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border-right: 2px solid var(--ink);
  background: #2b2f45;
}

.n-bild {
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  border: 2px solid #000;
  border-radius: 12px;
  background: #3a3f58;
  color: #e6e8f2;
  font-size: 15px;
  text-align: center;
}

.n-bild img {
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  background: #fff;
}

.n-bild .n-fehler {
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 16px;
}

.n-bild .text-knopf {
  color: var(--white);
}

.n-unter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  color: #e6e8f2;
  font-size: 14px;
}

.n-unter a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.n-unter a img {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--white);
}

.n-unter a:focus-visible,
.n-bild .text-knopf:focus-visible {
  outline-color: var(--sun);
}

.n-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 14px;
  padding: 26px 28px 24px;
}

.n-text h2 {
  padding-right: 56px;
  font-size: 25px;
  line-height: 1.1;
}

.n-text h2:focus {
  outline: none;
}

.fakten {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 12px 0;
  border-top: 1.5px solid var(--linie);
  border-bottom: 1.5px solid var(--linie);
}

.fakten div {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 10px;
  font-size: 15px;
}

.fakten dt {
  color: var(--ink-soft);
}

.fakten dd {
  margin: 0;
  font-weight: 600;
}

.knoepfe {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.knoepfe .knopf {
  flex: 1 1 140px;
}

/* ---------- Mittlere Breite ---------- */

@media (max-width: 1100px) {
  .privat-innen {
    grid-template-columns: 1fr 1fr;
  }

  .privat-innen > div:first-child {
    grid-column: 1 / -1;
  }

  .zwei {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

@media (max-width: 960px) {
  .kopf-wer {
    display: none;
  }

  .w-zeile {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 14px 18px;
  }

  .w-bild {
    width: 84px;
    height: 66px;
  }

  .w-bild img {
    width: 38px;
    height: 38px;
  }

  .w-akt,
  .w-satz {
    grid-column: 1 / -1;
  }

  .w-akt .knopf {
    flex: 1 1 160px;
  }

  .kv-raster {
    grid-template-columns: minmax(0, 1fr);
  }

  .kv-raster > div,
  .kv-raster > div + div {
    padding: 0;
    border-left: 0;
  }

  .kv-kopf .urteil {
    margin: 0;
  }
}

/* ---------- Handy ---------- */

@media (max-width: 719px) {
  body.eb {
    font-size: 16px;
  }

  .kopf-innen {
    min-height: 62px;
    gap: 8px;
  }

  .kopf-marke {
    font-size: 18px;
  }

  .kopf-marke img {
    width: 32px;
    height: 32px;
  }

  .kopf-bereich,
  .nur-gross {
    display: none;
  }

  .app-knoepfe {
    width: 100%;
  }

  .app-knoepfe .knopf {
    flex: 1 1 150px;
  }

  .kopf-link {
    padding: 0 8px;
    font-size: 14px;
  }

  .nur-klein {
    display: flex;
  }

  /* Die grosse Ueberschrift bleibt fuer Screenreader stehen, sichtbar
     beginnt die Seite mit dem Formular (Entwurf 3b). */
  .nur-gross-sichtbar {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .anmeldung {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
    padding-top: 22px;
    padding-bottom: 40px;
  }

  .anmeldung-text {
    order: 2;
  }

  .anmeldung-text .vorzeile {
    display: none;
  }

  .anmeldung-text .punkte-liste {
    margin-top: 0;
  }

  /* Keine Karte und keine Abby ueber dem Formular: der Anmeldeknopf liegt
     ohne Scrollen im Bild, auch mit eingeblendeter Tastatur. */
  .login-karte {
    margin-top: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }

  .login-abby,
  .login-karte picture {
    display: none;
  }

  .login-karte h2 {
    font-size: 30px;
    line-height: 1.05;
  }

  .karte-intro {
    font-size: 16.5px;
  }

  .schmal-seite {
    padding-top: 22px;
    padding-bottom: 40px;
  }

  .lead {
    font-size: 16.5px;
  }

  .portal > .rahmen {
    padding-top: 22px;
  }

  .z-kopf {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 20px;
  }

  .z-lead {
    margin-top: 12px;
    font-size: 16.5px;
  }

  .z-stand {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .familie-wahl {
    width: 100%;
  }

  .familie-wahl select {
    min-width: 0;
    flex: 1;
  }

  .z-h {
    margin: 30px 0 14px;
  }

  .z-h h2 {
    font-size: 23px;
  }

  .z-h .neben {
    display: none;
  }

  .zahl {
    min-width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 15px;
    vertical-align: 2px;
  }

  .warten {
    border-radius: 22px 8px 22px 8px;
    box-shadow: 6px 6px 0 var(--coral);
  }

  .w-zeile {
    grid-template-columns: 76px minmax(0, 1fr);
    padding: 16px;
  }

  .w-bild {
    width: 76px;
    height: 60px;
    border-radius: 10px;
  }

  .w-t {
    font-size: 17px;
  }

  .w-m {
    font-size: 14px;
  }

  .w-akt {
    justify-content: stretch;
  }

  .w-akt .knopf,
  .w-satz .knopf {
    flex: 1 1 120px;
  }

  .spalten {
    --spalten: 1;
  }

  .spalten > .sp,
  .spalten > .sp + .sp {
    padding: 0;
    border-left: 0;
  }

  .spalten > .sp + .sp {
    margin-top: 28px;
  }

  .umschalten .spalten > .sp + .sp {
    margin-top: 0;
  }

  .k-kopf h3 {
    font-size: 24px;
  }

  .av {
    width: 52px;
    height: 52px;
    border-radius: 15px;
  }

  .av img {
    width: 46px;
    height: 46px;
  }

  .urteil {
    font-size: 15.5px;
  }

  .heute b {
    font-size: 32px;
  }

  .lz {
    height: 110px;
    gap: 8px;
  }

  .lz-x {
    gap: 8px;
  }

  .wr-text {
    font-size: 16.5px;
  }

  .privat-innen {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding-top: 26px;
    padding-bottom: 30px;
  }

  .privat h2 {
    font-size: 21px;
  }

  .fuss-kontakt {
    margin-left: 0;
  }

  .aufg li {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 12px;
  }

  .aufg .st {
    grid-column: 1 / -1;
  }

  .ampel li {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }

  .outfits {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .outfit .o-gr {
    height: 120px;
  }

  .kv-wechsel {
    width: 100%;
    margin-left: 0;
  }

  /* Nachweis als ganze Seite: Foto zuerst und so breit wie moeglich. */
  .nachweis,
  .nachweis.ohne-foto {
    width: 100%;
    height: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .nachweis[open],
  .nachweis.ohne-foto[open] {
    display: block;
  }

  .n-leiste {
    position: sticky;
    top: 0;
    right: auto;
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 16px;
    border-bottom: 1px solid rgba(24, 33, 61, .12);
    background: var(--paper);
  }

  .n-zu {
    display: inline-flex;
    width: auto;
    gap: 8px;
    padding: 0 12px 0 0;
    border: 0;
    font-size: 15px;
    font-weight: 700;
  }

  .n-zu-text {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .n-leiste-titel {
    display: block;
    margin-left: auto;
    font: 700 15px var(--schrift-kopf);
  }

  .n-foto {
    padding: 12px;
    border-right: 0;
  }

  .n-bild {
    min-height: 200px;
  }

  .n-text {
    padding: 16px 16px 28px;
  }

  .n-text h2 {
    padding-right: 0;
    font-size: 22px;
  }

  .fakten div {
    grid-template-columns: 110px minmax(0, 1fr);
  }
}

@media (max-width: 359px) {
  .kopf-link--unter {
    display: none;
  }

  .knopf {
    padding: 0 14px;
  }

  .heute b {
    font-size: 28px;
  }

  .outfits {
    grid-template-columns: minmax(0, 1fr);
  }

  .fakten div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* ---------- Bewegung, Kontrast ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: .01ms;
  }

  .knopf,
  .toast {
    animation: none;
    transition: none;
  }

  .knopf:hover,
  .knopf:active {
    transform: none;
  }

  /* Der Ring steht still; der Satz daneben sagt, dass es laedt. */
  .ring {
    animation: none;
    border-color: var(--lilac-deep) var(--lavender) var(--lavender);
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #343d56;
    --feldrand: #5b6178;
  }

  .warten,
  .login-karte,
  .nachweis {
    border-width: 3px;
  }
}

@media (forced-colors: active) {
  .lz i,
  .punkte i.an,
  .marke {
    forced-color-adjust: none;
  }
}

/* Ganz am Ende: [hidden] muss jede display-Regel einer Klasse schlagen
   (gleiche Spezifitaet, also gewinnt die spaetere Regel). */
[hidden] {
  display: none;
}
