/* Mensa-Essen: look of Volksschule Dr. Theodor Koerner, Kapfenberg (vs-koerner.at). Design authority: customer, so the supplied hex values stay exact */
/* Heading font: LXGW Marker Gothic (Google Fonts, OFL), the font of the school website; Latin subset, self-hosted */
@font-face {
  font-family: "LXGW Marker Gothic";
  src: url("/assets/fonts/lxgw-marker-gothic-latin.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  /* school palette (Kadence palette of the website), values as supplied */
  --brand: #2B6CB0;
  --brand-dunkel: #215387;
  --schul-orange: #F97316;
  --schul-orange-2: #f59b19;
  --schul-gruen: #75b843;
  --schul-hellblau: #159fd3;
  --bg: #F7FAFC;
  --flaeche: #EDF2F7;
  --karte: #ffffff;
  --text: #1A202C;
  --text-1: #2D3748;
  --text-2: #4A5568;
  --text-3: #718096;
  --linie: #E2E8F0;
  /* light tints derived from the primary colour (fallback = same tint as plain hex); oklab, not oklch: Chromium keeps the hue of white and tints pink */
  --brand-hell: #e5eef7;
  --brand-linie: #a9c4e2;
  --feld-linie: #a3b0c1;
  --warn: #9a5b00;
  --warn-hell: #fdf1dc;
  --fehler: #b3261e;
  --fehler-hell: #fbe9e7;
  /* menu B = school orange family; text colour 6.7:1 on --b-hell, 7.3:1 on white */
  --b-farbe: #9a3412;
  --b-hell: #fff4e6;
  --b-linie: #f9c98b;
  --b-rand: #F97316;
  --b-haken: #c2410c;
  --radius: 14px;
  --schatten: 0 1px 2px rgb(26 32 44 / .06), 0 6px 18px -10px rgb(26 32 44 / .18);
}
@supports (color: color-mix(in oklab, red, blue)) {
  :root {
    --brand-hell: color-mix(in oklab, var(--brand), white 89%);
    --brand-linie: color-mix(in oklab, var(--brand), white 62%);
    --b-linie: color-mix(in oklab, var(--schul-orange), white 62%);
    --feld-linie: color-mix(in oklab, var(--text-3) 62%, var(--linie));
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { line-height: 1.2; text-wrap: balance; margin: 0 0 .5rem; }
/* the marker font has one weight only: no faux bold */
h1 { font: 400 clamp(1.5rem, 1.15rem + 1.6vw, 2.1rem)/1.2 "LXGW Marker Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; letter-spacing: .005em; }
h2 { font-size: 1.2rem; margin-top: 1.6rem; }
h3 { font-size: 1.02rem; }
p { margin: .4rem 0; text-wrap: pretty; max-width: 70ch; }
a { color: var(--brand-dunkel); }
small, .klein { font-size: .875rem; }
.leise { color: var(--text-2); }
.zahl { font-variant-numeric: tabular-nums; }
.versteckt { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Top bar ---------- */
.kopf { background: var(--brand-dunkel); color: #fff; }
.kopf-innen { max-width: 1100px; margin: 0 auto; padding: calc(.7rem + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) .7rem max(16px, env(safe-area-inset-left, 0px)); display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.marke { display: flex; align-items: center; gap: .65rem; color: #fff; text-decoration: none; font-weight: 650; }
.marke-zeichen { width: 42px; height: 42px; flex: none; border-radius: 12px; background: #fff; display: grid; place-items: center; }
.marke-zeichen img { width: 36px; height: 36px; display: block; }
.marke-name { font-family: "LXGW Marker Gothic", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 400; font-size: 1.22rem; line-height: 1.15; letter-spacing: .01em; }
.marke small { display: block; font-weight: 400; opacity: .8; font-size: .78rem; }
.nav { display: flex; gap: .25rem; margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a, .nav button {
  color: #fff; text-decoration: none; font: inherit; font-size: .92rem; background: none; border: 0; cursor: pointer;
  padding: .45rem .75rem; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center;
}
@media (hover: hover) and (pointer: fine) { .nav a:hover, .nav button:hover { background: rgb(255 255 255 / .12); } }
.nav a[aria-current="page"] { background: rgb(255 255 255 / .18); }
.nav form { margin: 0; }
.demo-band { background: var(--warn-hell); color: var(--warn); font-size: .88rem; text-align: center; padding: .4rem 16px; }
.demo-band a { color: inherit; font-weight: 600; }

.inhalt { max-width: 1100px; margin: 0 auto; padding: 1.4rem max(16px, env(safe-area-inset-right, 0px)) calc(4rem + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); }
.inhalt.schmal { max-width: 720px; }

/* ---------- Cards, banners, forms ---------- */
.karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--schatten); }
.karte + .karte { margin-top: 1rem; }
.raster { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.banner { border-radius: 12px; padding: .75rem 1rem; margin: 0 0 1rem; display: flex; gap: .7rem; align-items: flex-start; }
.banner svg { width: 22px; height: 22px; flex: none; fill: currentColor; margin-top: 1px; }
.banner.ok { background: var(--brand-hell); color: var(--brand-dunkel); }
.banner.warn { background: var(--warn-hell); color: var(--warn); }
.banner.fehler { background: var(--fehler-hell); color: var(--fehler); }
.banner strong { display: block; }

label { font-weight: 600; font-size: .93rem; display: block; margin: .9rem 0 .3rem; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], input[type=datetime-local], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff;
  border: 1px solid var(--feld-linie); border-radius: 10px; padding: .6rem .75rem; min-height: 46px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.feldfehler { color: var(--fehler); font-size: .88rem; margin-top: .25rem; }
.hinweis { color: var(--text-2); font-size: .88rem; margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.zeile { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.zeile.ende { justify-content: flex-end; }
.abstand { margin-top: 1.2rem; }

/* Buttons: primary = ALs-COMP-Knopf with brand tokens, secondary = quiet outline */
a.als-knopf { text-decoration: none; }
.als-knopf {
  --knopf-flaeche: var(--brand); --knopf-flaeche-hover: var(--brand-dunkel); --knopf-text: #fff;
  --knopf-rand: var(--brand-linie); --knopf-fokus: var(--brand-dunkel);
}
.knopf2 {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: 0 1.1rem; border-radius: 999px;
  border: 1px solid var(--brand-linie); background: #fff; color: var(--brand-dunkel); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer;
}
@media (hover: hover) and (pointer: fine) { .knopf2:hover { background: var(--brand-hell); } }
.knopf2 svg { width: 18px; height: 18px; fill: currentColor; }
.knopf-gefahr { color: var(--fehler); border-color: #e3b3ae; }
@media (hover: hover) and (pointer: fine) { .knopf-gefahr:hover { background: var(--fehler-hell); } }

/* ---------- Parents: week and child pickers ---------- */
.wochen { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 2px .6rem; margin: 0 -2px 1rem; scrollbar-width: thin; }
.woche-chip {
  flex: none; text-decoration: none; color: var(--text); background: #fff; border: 1px solid var(--linie);
  border-radius: 12px; padding: .5rem .85rem; min-width: 128px;
}
.woche-chip b { display: block; font-size: .95rem; }
.woche-chip span { font-size: .8rem; color: var(--text-2); }
.woche-chip[aria-current="page"] { border-color: var(--brand); background: var(--brand-hell); box-shadow: inset 0 0 0 1px var(--brand); }
.status { display: inline-block; font-size: .74rem; font-weight: 650; border-radius: 999px; padding: .06rem .5rem; margin-top: .25rem; }
.status.offen { background: var(--brand-hell); color: var(--brand-dunkel); }
.status.gesperrt, .status.gesendet { background: var(--flaeche); color: var(--text-2); }
.status.nicht_freigegeben { background: var(--warn-hell); color: var(--warn); }

.kinder-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.kind-tab {
  display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--text);
  background: #fff; border: 1px solid var(--linie); border-radius: 999px; padding: .3rem .9rem .3rem .3rem; min-height: 44px;
}
.kind-tab[aria-current="page"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--brand); color: #fff; font-weight: 700;
}
.avatar.gross { width: 48px; height: 48px; font-size: 1.25rem; }
.kind-kopf { display: flex; gap: .8rem; align-items: center; margin-bottom: .2rem; }
.kind-kopf h2 { margin: 0; }
.zaehler { margin-left: auto; text-align: right; font-size: .85rem; color: var(--text-2); }
.zaehler b { display: block; font-size: 1.05rem; color: var(--text); font-variant-numeric: tabular-nums; }
.zaehler.voll b { color: var(--brand-dunkel); }

/* One day = date column + menu cards */
.tage { display: grid; gap: .7rem; margin-top: 1rem; }
.tag { display: grid; grid-template-columns: 74px 1fr; gap: .8rem; align-items: start; padding: .8rem 0; border-top: 1px solid var(--linie); }
.tag:first-child { border-top: 0; }
.tag-datum b { display: block; font-size: 1.05rem; }
.tag-datum span { font-size: .85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tag-leer { color: var(--text-2); font-size: .93rem; padding: .7rem .9rem; border-radius: 12px; background: var(--flaeche); }
.optionen { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; }
.option { position: relative; display: block; margin: 0; font-weight: 400; cursor: pointer; }
.option input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.option-karte {
  display: flex; flex-direction: column; gap: .2rem; height: 100%; min-height: 76px;
  border: 1.5px solid var(--linie); border-radius: 12px; padding: .6rem .7rem .55rem; background: #fff;
  transition: border-color .1s ease-out, background-color .1s ease-out;
}
.option-karte .etikett { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-dunkel); display: flex; align-items: center; gap: .35rem; }
.option-karte .gericht { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.option-karte .allergene { font-size: .76rem; color: var(--text-2); margin-top: auto; }
.option.b .option-karte .etikett { color: var(--b-farbe); }
.haken { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--text-3); display: inline-grid; place-items: center; margin-left: auto; }
.haken svg { width: 12px; height: 12px; fill: #fff; opacity: 0; }
.option input:checked + .option-karte { border-color: var(--brand); background: var(--brand-hell); }
.option.b input:checked + .option-karte { border-color: var(--b-rand); background: var(--b-hell); }
.option input:checked + .option-karte .haken { background: var(--brand); border-color: var(--brand); }
.option.b input:checked + .option-karte .haken { background: var(--b-haken); border-color: var(--b-haken); }
.option input:checked + .option-karte .haken svg { opacity: 1; }
.option input:focus-visible + .option-karte { outline: 2px solid var(--brand-dunkel); outline-offset: 2px; }
.option input:disabled + .option-karte { cursor: default; }
.option input:disabled:not(:checked) + .option-karte { opacity: .55; }
.ohne { grid-column: 1 / -1; display: flex; gap: .4rem; flex-wrap: wrap; }
.ohne .option-karte { min-height: 44px; flex-direction: row; align-items: center; padding: .35rem .75rem; border-radius: 999px; font-size: .88rem; }
.ohne .option input:checked + .option-karte { background: var(--flaeche); border-color: var(--text-3); }
@media (hover: hover) and (pointer: fine) {
  .option:hover .option-karte { border-color: var(--brand-linie); }
}
@media (max-width: 420px) {
  .tag { grid-template-columns: 1fr; gap: .4rem; }
  .tag-datum { display: flex; gap: .5rem; align-items: baseline; }
}
.speicherleiste {
  position: sticky; bottom: 0; z-index: 5; margin: 1.2rem -16px 0; padding: .8rem 16px calc(.8rem + env(safe-area-inset-bottom));
  background: rgb(255 255 255 / .94); border-top: 1px solid var(--linie); display: flex; gap: .8rem; align-items: center; justify-content: space-between;
}
@supports (backdrop-filter: blur(6px)) { .speicherleiste { background: rgb(255 255 255 / .82); backdrop-filter: blur(6px); } }

/* ---------- Staff tables ---------- */
.tabelle-wrap { overflow-x: auto; border: 1px solid var(--linie); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { padding: .55rem .7rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
th { background: var(--flaeche); font-weight: 650; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
td.m, th.m { text-align: center; width: 4.2rem; }
tfoot td, tfoot th { background: var(--flaeche); font-weight: 700; font-variant-numeric: tabular-nums; }
.zelle { display: inline-grid; place-items: center; min-width: 2rem; height: 1.8rem; border-radius: 8px; font-weight: 700; }
.zelle.A { background: var(--brand-hell); color: var(--brand-dunkel); }
.zelle.B { background: var(--b-hell); color: var(--b-farbe); }
.zelle.std { box-shadow: inset 0 0 0 1.5px currentColor; background: transparent; }
.zelle.ab { color: var(--text-2); font-weight: 400; }
.zelle.zu { color: var(--text-2); font-weight: 400; }
.legende { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--text-2); margin: .6rem 0 0; align-items: center; }
.legende .zelle { height: 1.5rem; min-width: 1.6rem; margin-right: .3rem; }
pre.mail { white-space: pre-wrap; background: var(--bg); border: 1px solid var(--linie); border-radius: 10px; padding: .9rem; font: .9rem/1.5 ui-monospace, Consolas, monospace; }
.menue-raster { display: grid; grid-template-columns: 170px 1fr 1fr; gap: .5rem .8rem; align-items: start; }
.menue-raster .kopfzeile { font-weight: 650; font-size: .85rem; color: var(--text-2); }
.menue-raster .datum b { display: block; }
.menue-raster input { min-height: 42px; }
.menue-raster .klein-feld { margin-top: .35rem; }
@media (max-width: 720px) { .menue-raster { grid-template-columns: 1fr; } .menue-raster .kopfzeile { display: none; } .menue-raster .datum { margin-top: 1rem; } }
.wochenzeile { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
details.gefahr summary { cursor: pointer; color: var(--fehler); font-weight: 600; }
.tage-wahl { display: flex; gap: .4rem; flex-wrap: wrap; }
.tage-wahl label { margin: 0; font-weight: 500; display: flex; align-items: center; gap: .3rem; border: 1px solid var(--linie); border-radius: 999px; padding: .3rem .7rem; }

/* ---------- Login page (ALs-COMP-Anmeldeseite) ---------- */
.anmelde-seite { min-height: 100dvh; display: grid; place-items: center; padding: max(24px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(24px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); background: linear-gradient(160deg, var(--brand-hell), var(--bg) 55%, #fff1e4); }
@supports (color: color-mix(in oklab, red, blue)) {
  .anmelde-seite { background: linear-gradient(160deg, color-mix(in oklab, var(--brand) 20%, white), var(--bg) 52%, color-mix(in oklab, var(--schul-orange) 13%, white)); }
}
/* same width as the component card (660 px), so card, logo and footer share one centre line */
.anmelde-rahmen { width: min(100%, 660px); }
.anmelde-rahmen .als-anmeldung { --as-marke: var(--brand); }
/* The component's "1fr 1fr" lets a long form row widen the left column (measured 370 vs. 330 px), so the
   decorative colour panel covered the right edge of the inputs. minmax(0, 1fr) keeps both halves equal. */
@media (min-width: 720px) {
  .anmelde-rahmen .als-anmeldung { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .anmelde-rahmen .als-anmeldung__formular { min-width: 0; }
  /* "Angemeldet bleiben" + "Passwort vergessen?" need 298 px, the half card offers 250 px */
  .anmelde-rahmen .als-anmeldung__zeile { flex-wrap: wrap; row-gap: .25rem; }
  /* without registration the colour panel is pure decoration: show the school's mark on it */
  .anmelde-rahmen .als-anmeldung__flaeche--nurbild::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 46%; aspect-ratio: 1; border-radius: 28px;
    background: #fff url("/assets/vsk-zeichen.png") center / 80% no-repeat;
    box-shadow: 0 10px 30px -12px rgb(10 30 60 / .45);
  }
}
.anmelde-fuss { text-align: center; margin: 1rem auto 0; max-width: none; font-size: .9rem; color: var(--text-2); }
.einzel { width: min(100%, 480px); }
.anmelde-logo { margin: 0; width: min(100%, 340px); justify-self: center; }
.anmelde-logo img { display: block; width: 100%; height: auto; }

/* ---------- Print & handout ---------- */
.druck-leiste { display: flex; gap: .6rem; justify-content: center; padding: 1rem; flex-wrap: wrap; }
/* the print button holds a bare icon svg (no .als-knopf__icon): size it, otherwise WebKit renders it at full width in black */
.druck-leiste .als-knopf svg { width: 20px; height: 20px; flex: none; fill: currentColor; margin-right: .5rem; }
.blatt { background: #fff; width: min(100%, 210mm); margin: 0 auto 2rem; padding: 18mm 18mm 14mm; box-shadow: var(--schatten); border-radius: 4px; }
.blatt h1 { font-size: 1.6rem; margin-top: .4rem; }
.brief-kopf { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 2px solid var(--brand); padding-bottom: .6rem; font-size: .9rem; color: var(--text-2); }
.brief-logo { display: block; flex: 0 1 66mm; min-width: 0; max-width: 58%; height: auto; }
.brief-info { text-align: right; min-width: 0; }
/* narrow phones: logo above, sender lines below (side by side they would break words) */
@media (max-width: 480px) {
  .brief-kopf { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .brief-logo { flex: none; width: min(66mm, 100%); max-width: none; }
  .brief-info { text-align: left; }
}
.schritte { counter-reset: s; list-style: none; padding: 0; margin: 1rem 0; }
.schritte li { counter-increment: s; position: relative; padding: .1rem 0 .7rem 2.5rem; }
.schritte li::before {
  content: counter(s); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem;
}
.code-box { display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: center; border: 2px dashed var(--brand); border-radius: 14px; padding: 1rem 1.2rem; margin: 1.2rem 0; background: var(--brand-hell); }
.code-box .code { font: 700 1.5rem/1.2 ui-monospace, Consolas, monospace; letter-spacing: .06em; }
.qr { width: 36mm; height: 36mm; background: #fff; padding: 2mm; border-radius: 6px; }
.qr svg { width: 100%; height: 100%; display: block; }
.fristen { width: 100%; font-size: .9rem; }
.abschneiden { border-top: 1px dashed var(--text-3); margin-top: 1.4rem; padding-top: .6rem; font-size: .85rem; color: var(--text-2); }
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .kopf, .demo-band, .druck-leiste, .nicht-drucken { display: none !important; }
  .blatt { box-shadow: none; margin: 0; width: auto; }
  .code-box { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Legal texts ---------- */
.recht h2 { margin-top: 1.8rem; }
.recht ol, .recht ul { padding-left: 1.3rem; }
.recht li { margin: .25rem 0; }
.platzhalter { background: var(--warn-hell); color: var(--warn); border-radius: 4px; padding: 0 .25rem; }
.entwurf { border: 1px dashed var(--warn); background: var(--warn-hell); color: var(--warn); border-radius: 12px; padding: .7rem 1rem; margin-bottom: 1.2rem; }

/* ---------- Phone refinements ---------- */
.zaehler { flex: none; }
.zaehler b { white-space: nowrap; }
.speicherleiste .klein { min-width: 0; }
@media (max-width: 640px) {
  .kopf-innen { gap: .3rem; padding-bottom: .35rem; }
  .nav { width: 100%; margin: 0 -6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav a, .nav button { white-space: nowrap; font-size: .88rem; padding: .3rem .55rem; min-height: 44px; }
  .inhalt { padding-top: 1rem; }
}
.wochenzeile select, .wochenzeile input[type=text], .zeile > input[type=text], .zeile > select { width: auto; min-width: 12rem; }
.zeile form { margin: 0; }
.ende-rechts { margin-left: auto !important; }
td.zeile { flex-wrap: nowrap; }

/* Bulk upload of kids */
input[type=file] { display: block; width: 100%; padding: .55rem; border: 1px dashed var(--feld-linie); border-radius: 10px; background: #fff; font: inherit; }
.schritte li a { display: inline-flex; gap: .35rem; align-items: center; font-weight: 600; }
.schritte li a svg { width: 18px; height: 18px; fill: currentColor; }
.import-summen { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); margin: 0 0 1rem; }
.import-summen .karte { margin: 0; }
.import-summen b { display: block; font-size: 1.8rem; line-height: 1.1; }
.import-summen .import-fehler b { color: var(--fehler); }
.status.neu { background: var(--brand-hell); color: var(--brand-dunkel); }
.status.aktualisieren { background: var(--flaeche); color: var(--text-2); }
.status.fehler { background: var(--fehler-hell); color: var(--fehler); }
.fehlertext { color: var(--fehler); }
tr.zeile-fehler td { background: color-mix(in oklab, var(--fehler-hell) 55%, transparent); }
/* Flexible plan: model choice in the kids form */
.plan-wahl { border: 0; padding: 0; margin: .9rem 0 0; display: grid; gap: .45rem; min-width: 0; }
.plan-wahl legend { font-weight: 600; font-size: .93rem; padding: 0; margin-bottom: .3rem; }

/* Phone platform layer (iOS Safari, Android Chrome) */
html { -webkit-tap-highlight-color: transparent; }
/* no double-tap-zoom wait on controls */
a, button, label, summary, select, input[type=radio], input[type=checkbox], input[type=file] { touch-action: manipulation; }
/* long-press must not select control labels; content text stays selectable */
button, .knopf2, .als-knopf, .nav a, .woche-chip, .kind-tab, .option-karte, .tage-wahl label, summary, .check {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
/* press feedback on touch, where :hover does not exist */
.knopf2:active { background: var(--brand-hell); }
.knopf-gefahr:active { background: var(--fehler-hell); }
.nav a:active, .nav button:active { background: rgb(255 255 255 / .2); }
.woche-chip:active, .kind-tab:active { background: var(--brand-hell); }
.option:active input:not(:disabled):not(:checked) + .option-karte { border-color: var(--brand-linie); background: var(--bg); }
/* horizontal scrollers: keep the swipe inside, no back-navigation gesture or page jiggle */
.nav, .wochen, .tabelle-wrap { overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
/* toast component: clear the home indicator and use the visible viewport height */
.als-toast-host {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); right: calc(1rem + env(safe-area-inset-right, 0px));
  max-height: calc(100dvh - 2rem - env(safe-area-inset-bottom, 0px));
}
.speicherleiste { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
/* touch screens: every control at least 44 px high */
@media (pointer: coarse) {
  .check { min-height: 44px; align-items: center; }
  .check input { margin-top: 0; }
  .tage-wahl label { min-height: 44px; padding: 0 .9rem; }
  .schritte li a { min-height: 44px; }
  details:not(.rueckfrage) > summary { padding-block: .7rem; }
  .knopf2 { min-width: 44px; justify-content: center; }
  .marke { min-height: 44px; }
  /* links inside running text: taller hit area without moving the text */
  .demo-band a, .anmelde-fuss a, .fusslinks a, .karte li > a, .recht a, .banner a, .check a, .einzel p > a { display: inline-block; padding-block: .8rem; margin-block: -.8rem; }
}
/* long German dish names must wrap inside the two menu cards on 320–360 px phones */
.optionen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-karte .gericht { overflow-wrap: anywhere; hyphens: auto; }

/* Login-side pages: message above the card, setup check list, second factor */
.anmelde-seite { align-content: center; gap: 1rem; }
.anmelde-meldung { width: min(100%, 480px); margin: 0; justify-self: center; }
.einzel.breit { width: min(100%, 640px); }
.pruefliste { list-style: none; padding: 0; margin: .8rem 0; display: grid; gap: .35rem; }
.pruefliste li { display: flex; gap: .55rem; align-items: flex-start; font-size: .93rem; }
.pruefliste svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.pruefliste .gut svg { fill: var(--brand); }
.pruefliste .schlecht svg { fill: var(--fehler); }
.qr-faktor { width: 200px; height: 200px; margin: 1rem auto; padding: 10px; border: 1px solid var(--linie); }
code.schluessel { display: block; font: 1.05rem/1.6 ui-monospace, Consolas, monospace; letter-spacing: .06em; background: var(--bg); padding: .6rem .8rem; border-radius: 8px; word-break: break-all; -webkit-user-select: all; user-select: all; }
code.link-anzeige { display: block; margin-top: .4rem; word-break: break-all; -webkit-user-select: all; user-select: all; font-size: .85rem; }
pre.rohtext { max-height: 26rem; overflow: auto; overscroll-behavior: contain; }
input[type=url] { width: 100%; font: inherit; font-size: 16px; color: var(--text); background: #fff; border: 1px solid var(--feld-linie); border-radius: 10px; padding: .6rem .75rem; min-height: 46px; }
.zentriert { text-align: center; }

/* Mobile review 2026-10-30 */
@media (pointer: coarse) {
  .nav a, .nav button { min-height: 44px; }
}
/* button rows: on narrow phones stacked full width, long labels wrap instead of being cut off */
@media (max-width: 420px) {
  .zeile.ende { flex-direction: column; align-items: stretch; }
  .zeile.ende > .als-knopf, .zeile.ende > .knopf2, .zeile.ende > a { width: 100%; justify-content: center; }
  .als-knopf, .knopf2 { white-space: normal; text-align: center; }
  .speicherleiste { flex-direction: column; align-items: stretch; gap: .45rem; padding-top: .6rem; }
  .speicherleiste .klein { text-align: center; }
  .speicherleiste .klein br { display: none; }
}
/* the confirmation toast must not cover the sticky save bar */
body:has(.speicherleiste) .als-toast-host { bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px)); }
/* parent handout on a phone screen (print stays A4) */
@media screen and (max-width: 600px) {
  .blatt { padding: 16px; }
  .code-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .code-box .code { font-size: 1.25rem; overflow-wrap: anywhere; }
}
