/* Gastformular im Sereno-Kleid (TailAdmin, MIT; Werte aus web/src/sereno/tokens.css, Hinweis in
   web/THIRD_PARTY.md). Eigene kleine Datei, kein Bausatz: die Seite wird am Handy bei der
   Ankunft geladen. Schrift Outfit (SIL OFL), selbst ausgeliefert (font-src 'self'), nur die
   Teilmengen latin und latin-ext - die zweite laedt der Browser nur, wenn ein Zeichen sie
   braucht. Hell/Dunkel folgt dem Geraet - der Gast hat keinen Umschalter und braucht keinen. */
@font-face {
  font-family: "Outfit"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/gast/fonts/outfit-latin-ext.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Outfit"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/gast/fonts/outfit-latin.woff2) format("woff2-variations");
  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 {
  --background: #f9fafb; --foreground: #1d2939; --card: #ffffff;
  --primary: #465fff; --primary-hover: #3641f5; --primary-foreground: #ffffff;
  --primary-text: #3641f5; --primary-hell: #ecf3ff;
  --muted-foreground: #475467; --border: #e4e7ec;
  --destructive: #d92d20; --success: #027a48; --warning: #b54708;
  --feldrand: #858fa1;      /* 3:1 auf --background (WCAG 1.4.11), UX-Pruefung 2026-10-11 */
  --radius: 0.5rem; --rund-karte: 1rem;
  --schatten: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  --schatten-gross: 0 4px 8px -2px rgba(16, 24, 40, 0.1), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #0c111d; --foreground: #e4e7ec; --card: #101828;
    --primary: #465fff; --primary-hover: #3641f5; --primary-foreground: #ffffff;
    --primary-text: #9cb9ff; --primary-hell: rgba(70, 95, 255, 0.16);
    --muted-foreground: #98a2b3; --border: #1f2a3a;
    --destructive: #f97066; --success: #32d583; --warning: #fdb022;
    --feldrand: #667085;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: 6rem; }
body {
  margin: 0; background: var(--background); color: var(--foreground);
  /* Kopf + Seite fuellen genau den Bildschirm: die untere Leiste sitzt unten, ohne Scrollen. */
  min-height: 100dvh; display: flex; flex-direction: column;
  font: 16px/1.45 "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.kopf {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  max-width: 30rem; width: 100%; margin: 0 auto; padding: .75rem 1rem;
}
/* Feste Hoehe: mit und ohne Wohnung gleich hoch - nichts springt (Kritik 2026-10-11). */
.kopf-text { display: flex; flex-direction: column; min-width: 0; min-height: 2.625rem; }
.wohnung { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seite { max-width: 30rem; width: 100%; margin: 0 auto; padding: 0 1rem; flex: 1 0 auto;
  display: flex; flex-direction: column; }
h1 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; margin: .5rem 0 .25rem; }
p { margin: .5rem 0; }
.leise { color: var(--muted-foreground); font-size: .875rem; }
.karte {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--rund-karte); box-shadow: var(--schatten); padding: 1.25rem; margin-top: 1rem;
}
.balken { height: .25rem; border-radius: 9999px; background: var(--border); margin: .25rem 0 .75rem; }
.balken > span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.zeile { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .5rem; font-size: .875rem; color: var(--muted-foreground); }

label, .feld { display: block; margin-top: .75rem; }
.name { display: block; font-size: .9375rem; font-weight: 500; color: var(--foreground); margin-bottom: .25rem; }
.hilfe { display: block; font-size: .875rem; color: var(--muted-foreground); margin-top: .25rem; }
input, select, button { font: inherit; color: inherit; }
/* 16px: darunter zoomt iOS beim Antippen in das Feld hinein. */
input[type=text], input[type=tel], input[type=email], select {
  width: 100%; min-height: 2.75rem; padding: .5rem .75rem; font-size: 1rem;
  background: var(--card); border: 1px solid var(--feldrand);
  border-radius: var(--radius);
}
input[list] { padding-right: 2.25rem; background-repeat: no-repeat; background-size: .5rem .5rem;
  background-position: calc(100% - 1.25rem) 50%, calc(100% - .75rem) 50%;
  background-image: linear-gradient(to bottom left, transparent 42%, var(--muted-foreground) 42% 58%, transparent 58%),
    linear-gradient(to bottom right, transparent 42%, var(--muted-foreground) 42% 58%, transparent 58%); }
input[list]::-webkit-calendar-picker-indicator { display: none !important; opacity: 0; }
::placeholder { color: var(--muted-foreground); opacity: .8; font-size: 1rem; }
input:focus, select:focus, button:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 1px;
}
/* Fokus ist nicht Auswahl: neutraler Ring. */
.wahl button:focus-visible { outline: 2px solid var(--foreground); outline-offset: 3px; }
.wahl.geerbt [aria-pressed=true] { border-style: dashed; }
input[aria-invalid=true] { border-color: var(--destructive); }
.fehler { display: block; font-size: .875rem; color: var(--destructive); margin-top: .25rem; }
input.geerbt { border-style: dashed; }
.datum { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: .5rem; }
.paar { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: .75rem; }
@media (min-width: 30rem) { .paar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wahl { display: grid; gap: .5rem; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
/* Drei Ausweisarten NEBENEINANDER (2026-10-11: untereinander kostete die Seite ihren Platz
   fuer die E-Mail) - lange Namen brechen in zwei Zeilen um statt den Knopf zu sprengen. */
.wahl.viele button { padding: .375rem .25rem; font-size: .875rem; line-height: 1.2; hyphens: auto; }
@media (max-width: 30rem) { .wahl.viele { grid-auto-flow: row; } }
.wahl button, .knopf {
  min-height: 2.75rem; padding: .5rem .75rem; border-radius: var(--radius); cursor: pointer;
  background: var(--card); border: 1px solid var(--feldrand);   /* 3:1 - als Knopf erkennbar */
}
.wahl button[aria-pressed=true] {
  border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary);
  background: var(--primary-hell); color: var(--primary-text); font-weight: 600;
}
.wahl[aria-invalid=true] button { border-color: var(--destructive); }
.haupt {
  width: 100%; min-height: 3rem; margin-top: 1.25rem; border: 0; cursor: pointer;
  border-radius: var(--radius); font-weight: 600;
  background: var(--primary); color: var(--primary-foreground);
}
.haupt:hover:not([disabled]) { background: var(--primary-hover); }
.haupt[disabled] { opacity: .6; cursor: progress; }
.knopf { width: 100%; margin-top: .75rem; }
.reihe { display: grid; grid-template-columns: 1fr 2fr; gap: .75rem; }
.reihe .knopf, .reihe .haupt { margin-top: 1.25rem; }
.personen { list-style: none; padding: 0; margin: .5rem -.5rem 0; }
.personen li { border-bottom: 1px solid var(--border); padding: 0 .5rem; }
.personen button {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  min-height: 3rem; padding: .5rem 0; background: none; border: 0; cursor: pointer; text-align: left;
}
.ok { color: var(--success); font-size: .875rem; font-weight: 600; }
.link { display: block; margin: .75rem auto 0; padding: .75rem; background: none; border: 0; cursor: pointer;
  font-size: .875rem; color: var(--muted-foreground); text-decoration: underline; }
.haken { width: 3rem; height: 3rem; margin: 1.5rem 0 .5rem; border-radius: 9999px; font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--success); color: var(--card); }
.offen { color: var(--warning); font-size: .875rem; }
/* Sprachauswahl mit Flagge: Knopf (Flagge + Kuerzel), darunter die Liste. */
.sprache { position: relative; flex: none; margin: 0; font-size: .875rem; color: var(--foreground); }
.sprache summary {
  display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .25rem .75rem;
  border: 1px solid var(--feldrand); border-radius: var(--radius);
  background: var(--card); font-weight: 600; cursor: pointer; list-style: none;
}
.sprache summary::-webkit-details-marker { display: none; }
.sprache summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.sprache img { border-radius: 2px; box-shadow: 0 0 0 1px var(--border); flex: none; }
.sprache ul {
  position: absolute; right: 0; top: calc(100% + .25rem); z-index: 10; margin: 0; padding: .25rem;
  list-style: none; min-width: 11rem; background: var(--card);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--schatten-gross);
}
.sprache li button {
  display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 2.75rem;
  padding: .25rem .75rem; border: 0; border-radius: calc(var(--radius) - 2px);
  background: none; text-align: left; cursor: pointer;
}
.sprache li button:hover { background: var(--primary-hell); }
.sprache li button[aria-current] { color: var(--primary-text); font-weight: 600; }
details { margin-top: 1rem; font-size: .875rem; color: var(--muted-foreground); }
summary { cursor: pointer; padding: .875rem 0; }
.seite > details > summary { font-size: 1rem; font-weight: 500; color: var(--primary-text); }
.probe { align-self: flex-start; border: 1px dashed var(--warning); color: var(--warning); font-size: .75rem; padding: .125rem .5rem; margin: 0 0 .5rem; border-radius: 9999px; }
.unten.voll { grid-template-columns: 1fr; }
.vorzeile { margin: 1rem 0 0; color: var(--muted-foreground); font-size: .875rem; }
.vorzeile + h1 { margin-top: 0; }
.gastgeber { margin: .25rem 0 0; color: var(--muted-foreground); font-size: .875rem; }
.kasten { display: flex; gap: .5rem; align-items: flex-start; margin: .75rem 0; font-size: .875rem; }
.kasten input { width: 1.25rem; height: 1.25rem; margin: .125rem 0 0; flex: none; }
.dazu-wahl { flex-wrap: wrap; gap: .5rem; }
.dazu-wahl > span, .dazu-wahl > p { flex-basis: 100%; margin: 0; }
.personen .dazu-wahl .knopf { flex: 1; margin: 0; width: auto; justify-content: center; text-align: center;
  border: 1px solid var(--feldrand); border-radius: var(--radius); padding: .5rem; }
.bestaetigen { margin-top: auto; }
.meldung { border-left: 3px solid var(--warning); padding: .25rem .75rem; margin-top: 1rem; font-size: .875rem; }
@media (prefers-reduced-motion: no-preference) { .balken > span { transition: width .2s; } }
/* Schrittleiste (Muster: Flow). Schmal traegt nur die aktive Stufe ihren Namen. */
.schritte { display: flex; align-items: center; gap: .5rem; list-style: none; padding: 0 .75rem; margin: .5rem 0 .25rem; }
.schritte li { display: flex; align-items: flex-start; gap: .5rem; flex: 1 1 0; min-width: 0; padding-bottom: 1.25rem; }
.schritte li:last-child { flex: 0 1 auto; }
.schritte li:not(:last-child)::after { content: ""; flex: 1; height: 1px; margin-top: 1.125rem; background: var(--feldrand); }
.schritte li.fertig:not(:last-child)::after { background: var(--primary); }
/* Name unter dem Kreis (absolut): Linien gleich lang und sichtbar, auch bei vier Stufen. */
.schritte button { display: flex; flex-direction: column; flex: none; position: relative; width: 1.75rem; padding: .25rem 0; background: none; border: 0; cursor: pointer; }
.schritte button[disabled] { cursor: default; }
.schritte .nr {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 1.75rem; height: 1.75rem; border-radius: 9999px; font-size: .75rem; font-weight: 600;
  border: 1px solid var(--feldrand); color: var(--foreground);
}
.schritte .aktiv .nr, .schritte .fertig .nr { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); }
.schritte .titel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); max-width: 4.75rem; font-size: .8125rem; color: var(--muted-foreground); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.schritte .aktiv .titel { color: var(--foreground); font-weight: 600; }
.schritte .nr .symbol { width: 1rem; height: 1rem; }
/* Die Wahl "Kamera oder von Hand": zwei Knoepfe und eine leise Zeile. */
.scan { margin-top: 1rem; }
.scan p { margin: .5rem 0 0; font-size: .875rem; }
.wahl-scan .knopf { margin-top: .75rem; min-height: 3rem; }
.hilfe.vorschlag { color: var(--warning); }
/* Die untere Leiste: immer gleich, klebt unten, springt nicht (Inhaber 2026-10-11). */
.unten { position: sticky; bottom: 0; margin-top: auto; display: grid; grid-template-columns: 1fr 2fr;
  gap: .75rem; padding: .75rem 0 calc(.75rem + env(safe-area-inset-bottom));
  background: var(--background); border-top: 1px solid var(--border); }
.unten .knopf, .unten .haupt { margin-top: 0; min-height: 3rem; }
/* Personen: Entfernen je Zeile, Hinzufuegen als letzte Zeile. */
.personen li { display: flex; align-items: center; }
.personen .weg { width: 2.75rem; min-width: 2.75rem; min-height: 2.75rem; flex: none; justify-content: center; font-size: 1.25rem;
  color: var(--muted-foreground); }
.personen .frage { flex-wrap: wrap; gap: .5rem; padding: .5rem; }
.personen .frage span { flex: 1 1 100%; }
.personen .frage .knopf { flex: 1; margin: 0; }
.gefahr { color: var(--destructive); border-color: var(--destructive); }
.personen .dazu button { justify-content: flex-start; color: var(--primary-text); font-weight: 600; }
/* Gaestemappe (D0/S6): Zeilenumbrueche des Betriebs bleiben, kein HTML. */
.mappe-titel { margin-top: 2rem; font-size: 1.125rem; }
.mappe { white-space: pre-line; overflow-wrap: anywhere; padding: 1rem; border-radius: .75rem; border: 1px solid var(--border); }

/* Symbole (Kritik 2026-10-11): Linien, in der Textfarbe. */
.symbol { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round; }
.fakten { margin: 1rem 0; }
.mit-symbol { display: flex; gap: .75rem; align-items: flex-start; margin: .75rem 0; }
.mit-symbol .symbol { color: var(--primary); }
/* Gerade gespeichert: die Zeile leuchtet kurz auf, statt einer schwebenden Meldung. */
.personen li.frisch { border-radius: var(--radius); }
@media (prefers-reduced-motion: no-preference) {
  .personen li.frisch { animation: frisch 1.8s ease-out; }
  @keyframes frisch { from { background: var(--primary-hell); } to { background: transparent; } } }
.zeile .frisch { flex: 1 1 100%; margin: 0; color: var(--success); font-weight: 600; }
.schritt { font-size: 1rem; font-weight: 600; margin: 0; color: var(--foreground); white-space: nowrap; }
.schritt:focus { outline: none; }
/* Platzhalter fuer das x, damit die Spalte "vollstaendig" in einer Flucht steht. */
.personen span.weg { visibility: hidden; }
/* Der Abschluss: der Haken gross und mittig. */
.haken { margin-left: auto; margin-right: auto; width: 4rem; height: 4rem; font-size: 2rem; }
.haken + h1, .haken + h1 + .leise, .haken + h1 + .leise + p { text-align: center; }
/* 2026-10-12 */ .nr{width:1.75rem;flex:none}.personen button>span:nth-child(2){flex:1}
/* Welle 2 S1 (2026-11-24): am Desktop steht die Leiste direkt unter dem Inhalt statt am Fussende eines
   leeren Bildschirms, und Zurueck hat das Gewicht seines Nachbarn (gleich breit; allein: ganze Breite).
   Am Handy bleibt sie unten kleben. */
@media (min-width: 48rem) {
  .unten { position: static; margin-top: 1.5rem; grid-template-columns: 1fr 1fr; padding-top: 0; border-top: 0; }
  .unten.allein { grid-template-columns: 1fr; }
}
