/* ============================================================================
   _kit / reservierung2.css  —  Reservierung & Veranstaltung, zweistufig ("rz")
   ----------------------------------------------------------------------------
   NEUE Datei im Kit. base.css / tokens.css / app.js / reservierung.css bleiben
   unberuehrt. Traegt nur den eigenen Praefix .rz / .rz-  und liest
   ausschliesslich Tokens, damit dieselbe Datei in jeder Welt (aegean,
   trattoria, manor, balkan, ember …) die Farben und Schriften der Seite
   uebernimmt.

   Unterschiede zur ersten Fassung (reservierung.css):
     · KEIN Vorschau-/Demo-Band und keine Vorschau-Plakette. Der Aufbau soll
       aussehen wie ein echtes Reservierungsformular.
     · ZWEI Schritte statt drei, dadurch deutlich flacher.
         1  LINKS Kalender, RECHTS Personenzahl + Uhrzeit (Veranstaltung: dazu
            die Art der Veranstaltung).  2  Kontaktdaten + Zusammenfassung.
       Ueber 760 px entscheidet eine Container-Abfrage auf .rz__body, ob zwei
       Spalten oder untereinander — dort steht links noch die Markenspalte,
       ein Fenstermass waere hier eine Luege ueber den vorhandenen Platz.
       Unter 760 px gilt fest: untereinander, Kalender zuerst (Abschnitt 6).
     · Marke im Kopf: die Logodatei der Seite (Aside am Schreibtisch, Kopfleiste
       auf dem Telefon). Ohne belegte Datei steht dort der Name als Schrift.
       Beides steht in einem eigenen Markenfeld mit fester Mindesthoehe.
     · Das Sheet waechst nur so hoch wie sein Inhalt (height:auto + max-height).

   Aufbau
     1  Overlay + Sheet
     2  Aside (Logo/Name, Kurzzeile, Telefon)
     3  Kopfleiste (Logo mobil + Schliessen), Einleitungszeile, Reiter
     4  Panel-Inhalt: Kalender, Personen, Zeiten, Felder, Zusammenfassung
     5  Fusszeile
     6  Mobil / Reduced Motion / Print

   Bekannte Fallen, die hier bewusst adressiert sind:
     · iOS zoomt bei Fokus, wenn ein Eingabefeld < 16px Schrift hat  -> 16px.
     · base.css setzt html,body{overflow-x:clip}; body{overflow:hidden} greift
       damit nicht -> Scroll-Lock passiert per fixed-Body in reservierung2.js.
     · Ein Vollbild-Overlay muss dem visualViewport folgen (Hoehe UND offsetTop),
       sonst rutscht es unter die eingeblendete Tastatur -> --rz-vv-h/--rz-vv-top.
   ========================================================================== */

/* ===========================================================================
   1  OVERLAY + SHEET
   =========================================================================== */
.rz { position: fixed; inset: 0; z-index: 140; display: none; }
.rz.is-open { display: block; }

.rz__scrim {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--bg-0) 84%, transparent);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  opacity: 0; transition: opacity var(--dur) var(--ease-out-expo);
}
.rz.is-shown .rz__scrim { opacity: 1; }

/* Hoehe folgt dem Inhalt: das Sheet ist nur so hoch, wie der Schritt braucht. */
.rz__sheet {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(1020px, calc(100vw - 40px));
  height: auto; max-height: calc(100dvh - 40px);
  /* Die Markenspalte darf mitwachsen: das Logo steht dort in Originaldatei und
     soll nicht auf Briefmarkengroesse gedrueckt werden. Nach unten bleibt sie
     schmal genug, damit rechts zwei Spalten Platz haben. */
  display: grid; grid-template-columns: clamp(248px, 21vw, 300px) minmax(0, 1fr);
  /* minmax(0, 1fr) statt der automatischen Zeile: eine auto-Zeile waechst mit
     ihrem Inhalt und laeuft ueber max-height hinaus — dann rutscht die
     Fusszeile mit dem Weiter-Knopf unter den Bildschirmrand. Mit dieser Zeile
     bleibt die Hoehe beim Sheet, und der scrollende Bereich (.rz__body) gibt
     nach. Faellt erst auf, seit Schritt 1 auch die Uhrzeiten traegt. */
  grid-template-rows: minmax(0, 1fr);
  background: var(--surface); color: var(--ink);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out-expo),
              transform var(--dur) var(--ease-out-expo);
}
.rz.is-shown .rz__sheet { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .rz__sheet { transform: translate(-50%, -46%); }
  .rz.is-shown .rz__sheet { transform: translate(-50%, -50%); }
}

/* ===========================================================================
   2  ASIDE  (Markenspalte am Schreibtisch, auf Mobil ausgeblendet)
   =========================================================================== */
.rz__aside {
  position: relative; overflow: hidden;
  background: var(--bg-1); color: var(--text);
  padding: 26px 22px 26px; display: flex; flex-direction: column; gap: 16px;
}
.rz__aside::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 80% at 85% 100%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%);
}
.rz__aside > * { position: relative; z-index: 1; }
.rz__aside-sub { font-size: 13.5px; color: var(--text-soft); line-height: 1.55; }
.rz__aside .rz__call { margin-top: auto; }

/* --- Marke: echte Logodatei der Seite, sonst der Name als Schrift ----------
   Genommen wird genau die Datei, die die Seite in ihrer eigenen Kopfzeile
   fuehrt. Hier wird sie nur GESETZT — groesser, mit Luft und einer Trennlinie
   darunter. Nichts wird nachgezeichnet, ersetzt oder neu gerechnet.
   Fuehrt die Seite dort eine Wortmarke aus Schrift, bleibt es beim Namen als
   Schrift; der wird dann in der Anzeigeschrift des Hauses gross gesetzt. */
.rz__logo { display: flex; align-items: center; min-height: 40px; }
.rz__logo img { max-height: 46px; max-width: 100%; width: auto; height: auto; display: block; object-fit: contain; }
.rz__logo-text {
  font-family: var(--font-display); font-size: 1.35rem; line-height: 1.2;
  color: var(--text); letter-spacing: 0.01em;
}

/* Markenfeld der Spalte: feste Mindesthoehe, damit quadratische und breite
   Logos gleich ruhig sitzen, und eine Hairline als Abschluss — sonst wirkt
   das Bild oben in die Ecke geklebt. */
.rz__aside .rz__logo {
  min-height: 98px; padding-bottom: 20px; margin-bottom: 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--text) 18%, transparent);
}
.rz__aside .rz__logo img { max-height: 88px; }
.rz__aside .rz__logo-text {
  font-size: clamp(1.5rem, 1.16rem + 0.95vw, 1.85rem);
  line-height: 1.14; letter-spacing: 0.004em; text-wrap: balance;
}

/* Auf dem Telefon traegt die Kopfleiste die Marke — dort eine Zeile, aber
   deutlich groesser als zuvor. */
.rz__bar .rz__logo { min-height: 48px; flex: 1 1 auto; min-width: 0; }
.rz__bar .rz__logo img { max-height: 48px; max-width: min(240px, 66vw); }
.rz__bar .rz__logo-text {
  font-size: 1.3rem; line-height: 1.2; letter-spacing: 0.004em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.rz__call {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 11px 18px; border-radius: var(--radius-pill);
  border: 1px solid var(--line-strong); color: var(--text);
  font-size: 15px; font-weight: 600; text-decoration: none; align-self: flex-start;
}
.rz__call svg { color: var(--accent-2, var(--accent-soft)); flex: none; }
.rz__call:hover { border-color: var(--accent-2, var(--accent-soft)); }

/* ===========================================================================
   3  KOPFLEISTE / EINLEITUNG / REITER
   =========================================================================== */
.rz__main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); }

/* Kopfleiste. Am Schreibtisch traegt die Markenspalte das Logo, hier steht dann
   nur das Schliessen-Kreuz; auf dem Telefon ist die Markenspalte ausgeblendet,
   dort wandert das Logo hierher — auf dunklen Grund, also in dasselbe Umfeld,
   fuer das das Logo der Seite gemacht ist. */
/* Am Schreibtisch kostet eine eigene Kopfleiste nur Hoehe: das Kreuz sitzt
   deshalb frei ueber der rechten Ecke, die Einleitungszeile haelt den Platz
   dafuer frei. Erst auf dem Telefon wird daraus eine echte Leiste mit Logo. */
.rz__bar {
  position: absolute; top: 6px; right: 6px; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  padding: 0; background: transparent; border: 0;
}
.rz__bar .rz__logo { display: none; }
.rz__close {
  margin-left: auto; flex: none; width: 40px; height: 40px; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-ink); background: var(--surface-2); color: var(--ink);
  transition: border-color var(--dur-fast) ease;
}
.rz__close:hover { border-color: var(--accent); }
.rz__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Einleitungszeile: Oeffnungszeiten und Ruhetag, aus den Daten abgeleitet.
   Rechts bleibt Platz fuer das frei ueber der Ecke sitzende Schliessen-Kreuz
   (40 px breit, 6 px vom Rand). Ohne diesen Platz laeuft die letzte Zeile der
   Oeffnungszeiten unter das Kreuz — auf dem Telefon nicht, dort ist das Kreuz
   Teil einer echten Leiste; die Regel weiter unten setzt den Abstand zurueck. */
.rz__lead {
  padding: 11px 62px 11px 20px; font-size: 12.5px; line-height: 1.5;
  color: var(--ink-soft); background: var(--surface-2);
  border-bottom: 1px solid var(--line-ink);
}
.rz__lead b { color: var(--ink); font-weight: 700; }

.rz__tabs {
  display: flex; gap: 4px; padding: 8px 12px; min-width: 0;
  border-bottom: 1px solid var(--line-ink); background: var(--surface);
}
.rz__tab {
  flex: 1 1 0; min-width: 0; min-height: 44px; padding: 9px 14px;
  border: 0; cursor: pointer; border-radius: var(--radius-pill); background: transparent;
  font-family: var(--font-body); font-size: 14.5px; font-weight: 600;
  color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.rz__tab[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.rz__tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===========================================================================
   4  PANEL-INHALT
   =========================================================================== */
/* container-type gibt der Spaltenaufteilung weiter unten ihren Massstab:
   entscheidend ist die Breite DIESES Bereichs, nicht die des Fensters. Zwischen
   760 und rund 1000 px steht links die Markenspalte — dort waere ein Fenstermass
   eine Luege ueber den tatsaechlich vorhandenen Platz. */
.rz__body {
  flex: 0 1 auto; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 18px 20px 14px;
  container-type: inline-size; container-name: rzpanel;
}
.rz__title { font-family: var(--font-display); font-size: clamp(1.25rem, 1.05rem + 0.7vw, 1.5rem); line-height: 1.2; color: var(--ink); }
.rz__sub { margin-top: 5px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.rz__sub b { color: var(--ink); font-weight: 700; }

.rz-label {
  display: block; margin-bottom: 7px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--ink-soft);
}
.rz-block { margin-top: 16px; }

/* --- Spalten -------------------------------------------------------------
   Schritt 1: LINKS der Kalender, RECHTS Personenzahl und Uhrzeit (und, wo es
   sie gibt, die Art der Veranstaltung). Schritt 2: links die Kontaktfelder,
   rechts die Zusammenfassung.

   Vorgabe ist EINE Spalte — untereinander, Kalender zuerst. Zwei Spalten gibt
   es erst, wenn der Panelbereich wirklich breit genug ist. Ein Browser ohne
   Container-Abfragen bleibt damit beim gestapelten Aufbau; das ist der Fall,
   der nie kaputtgeht. */
.rz-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.rz-cols > .rz-col > .rz-block:first-child { margin-top: 0; }
.rz-cols > .rz-col > .rz-sum:first-child { margin-top: 0; }

@container rzpanel (min-width: 560px) {
  .rz-cols { grid-template-columns: minmax(272px, 336px) minmax(0, 1fr); gap: 24px; }
  /* Die Kontaktfelder brauchen mehr Platz als die Zusammenfassung. */
  .rz-cols--kontakt { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
}

/* --- Kalender ------------------------------------------------------------ */
.rz-cal {
  border: 1px solid var(--line-ink); border-radius: var(--radius-sm);
  background: var(--surface-2); padding: 10px 10px 8px;
}
.rz-cal__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.rz-cal__title { font-family: var(--font-display); font-size: 1rem; font-weight: 600; color: var(--ink); }
.rz-cal__nav {
  width: 38px; height: 38px; flex: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-ink); background: var(--surface); color: var(--ink);
}
.rz-cal__nav:hover:not([disabled]) { border-color: var(--accent); }
.rz-cal__nav[disabled] { opacity: .28; cursor: default; }
.rz-cal__nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.rz-cal__row { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.rz-cal__wd {
  text-align: center; padding: 5px 0; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft);
}
.rz-day {
  position: relative; width: 100%; min-height: 40px; cursor: pointer;
  display: grid; place-items: center; border-radius: 10px;
  border: 1px solid transparent; background: transparent;
  font-family: var(--font-body); font-size: 14.5px; color: var(--ink);
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.rz-day:hover:not([aria-disabled="true"]) { background: color-mix(in srgb, var(--accent) 14%, transparent); }
.rz-day[aria-disabled="true"] { color: color-mix(in srgb, var(--ink) 30%, transparent); cursor: default; }
.rz-day.is-closed::after {
  content: ""; position: absolute; left: 27%; right: 27%; top: 50%;
  height: 1px; background: currentColor; opacity: .6;
}
.rz-day.is-today { border-color: color-mix(in srgb, var(--accent) 55%, transparent); font-weight: 700; }
.rz-day[aria-selected="true"] {
  background: var(--accent); border-color: var(--accent);
  color: var(--on-accent); font-weight: 700;
}
.rz-day:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rz-cal__spacer { min-height: 40px; }

/* --- Zeiten -------------------------------------------------------------- */
.rz-win + .rz-win { margin-top: 12px; }
.rz-win__h { font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.rz-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 7px; }
.rz-slot {
  min-height: 44px; cursor: pointer; padding: 10px 8px;
  border: 1px solid var(--line-ink-strong); border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font-body); font-size: 14.5px; font-variant-numeric: tabular-nums;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.rz-slot:hover:not([disabled]) { border-color: var(--accent); }
.rz-slot[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 700; }
.rz-slot[disabled] { opacity: .32; cursor: default; }
.rz-slot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.rz-hint { margin-top: 8px; font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.rz-hint b { color: var(--ink); font-weight: 700; }
.rz-fein { margin-top: 14px; font-size: 11.5px; line-height: 1.5; color: var(--ink-soft); opacity: .85; }
.rz-linkbtn {
  border: 0; background: none; padding: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--accent-ink, var(--accent));
  text-decoration: underline; text-underline-offset: 2px;
}
.rz-linkbtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Personen-Stepper ---------------------------------------------------- */
.rz-num {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px;
  border: 1px solid var(--line-ink-strong); border-radius: var(--radius-pill);
  background: var(--surface-2);
}
.rz-num button {
  width: 40px; height: 40px; flex: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-ink); background: var(--surface); color: var(--ink);
}
.rz-num button:hover:not([disabled]) { border-color: var(--accent); }
.rz-num button[disabled] { opacity: .3; cursor: default; }
/* Gedrueckt halten zaehlt weiter (reservierung2.js): kein Textmenue, kein Doppeltipp-Zoom. */
.rz-num button { touch-action: manipulation; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.rz-num button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rz-num output { min-width: 62px; text-align: center; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }

/* --- Anlass-Pillen ------------------------------------------------------- */
.rz-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.rz-pill {
  min-height: 44px; padding: 10px 15px; cursor: pointer;
  border: 1px solid var(--line-ink-strong); border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font-body); font-size: 14px;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.rz-pill:hover { border-color: var(--accent); }
.rz-pill[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.rz-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --- Felder (16px = kein iOS-Zoom beim Fokus) ---------------------------- */
.rz-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rz-fields .rz-f--full { grid-column: 1 / -1; }
.rz-f { display: flex; flex-direction: column; }
.rz-f label { margin-bottom: 5px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft); }
.rz-input {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--line-ink-strong); border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.4; outline: none;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.rz-input::placeholder { color: color-mix(in srgb, var(--ink) 42%, transparent); }
.rz-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
textarea.rz-input { min-height: 62px; resize: vertical; }
.rz-f__hint { margin-top: 5px; font-size: 11.5px; color: var(--accent-ink, var(--accent)); line-height: 1.45; }
.rz-req { color: var(--accent-ink, var(--accent)); }

/* --- Zusammenfassung ----------------------------------------------------- */
.rz-sum {
  margin-top: 16px; border: 1px solid var(--line-ink); border-radius: var(--radius-sm);
  background: var(--surface-2); overflow: hidden;
}
.rz-sum__h {
  padding: 9px 14px; border-bottom: 1px solid var(--line-ink);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-soft);
}
.rz-sum dl { display: grid; grid-template-columns: 122px minmax(0, 1fr); }
.rz-sum dt, .rz-sum dd { padding: 7px 14px; font-size: 14px; border-bottom: 1px solid var(--line-ink); }
.rz-sum dt { color: var(--ink-soft); }
.rz-sum dd { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.rz-sum dl > :nth-last-child(-n+2) { border-bottom: 0; }

/* ===========================================================================
   5  FUSSZEILE
   =========================================================================== */
.rz__foot {
  flex: none; padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line-ink); background: var(--surface-2);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.rz__foot-note { flex: 1 1 190px; min-width: 0; font-size: 12px; color: var(--ink-soft); line-height: 1.45; }
.rz__foot-actions { display: flex; gap: 10px; margin-left: auto; }
.rz-btn {
  min-height: 46px; padding: 12px 22px; cursor: pointer;
  border-radius: var(--radius-pill); border: 1px solid transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 600;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease, opacity var(--dur-fast) ease;
}
.rz-btn--primary { background: var(--accent); color: var(--on-accent); }
.rz-btn--primary:hover:not([disabled]) { background: color-mix(in srgb, var(--accent) 86%, #000); }
.rz-btn--ghost { background: transparent; border-color: var(--line-ink-strong); color: var(--ink); }
.rz-btn--ghost:hover { border-color: var(--accent); }
.rz-btn[disabled] { opacity: .42; cursor: default; }
.rz-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ===========================================================================
   6  MOBIL / REDUCED MOTION / PRINT
   =========================================================================== */
@media (max-width: 760px) {
  /* Vollbild, das dem visualViewport folgt: Hoehe UND offsetTop.
     Ohne offsetTop rutscht das Sheet auf iOS unter die Tastatur. */
  .rz__sheet {
    left: 0; right: 0; top: var(--rz-vv-top, 0px); bottom: auto;
    transform: none; border-radius: 0;
    width: 100%; max-width: 100%;
    height: var(--rz-vv-h, 100dvh); max-height: none;
    grid-template-columns: minmax(0, 1fr);
  }
  @media (prefers-reduced-motion: no-preference) {
    .rz__sheet { transform: translateY(2%); }
    .rz.is-shown .rz__sheet { transform: none; }
  }
  .rz__aside { display: none; }
  .rz__bar {
    position: static; padding: 11px 10px 11px 14px;
    background: var(--bg-1); color: var(--text);
    border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  }
  .rz__bar .rz__logo { display: flex; }
  .rz__close { border-color: var(--line-strong); background: transparent; color: var(--text); }
  .rz__close:hover { border-color: var(--accent-2, var(--accent-soft)); }
  .rz__lead { padding: 9px 14px; }
  .rz__tabs { padding: 7px 10px; }
  .rz__tab { padding: 9px 10px; font-size: 14px; }
  .rz__body { padding: 15px 14px 12px; }
  .rz__foot { padding: 11px 14px calc(11px + env(safe-area-inset-bottom, 0px)); }
  .rz__foot-note { flex-basis: 100%; }
  .rz__foot-actions { width: 100%; margin-left: 0; }
  .rz__foot-actions .rz-btn { flex: 1 1 auto; }
  /* Unter 760 px steht der Aufbau IMMER untereinander, Kalender zuerst.
     Ohne diese Zeile kippt er hier ein zweites Mal: genau bei 760 px faellt
     die Markenspalte weg, das Sheet wird auf die volle Fensterbreite gezogen
     und der Panelbereich springt dadurch von rund 590 px auf ueber 700 px —
     die Container-Abfrage weiter oben baut daraufhin wieder zwei Spalten.
     Gemessen: ohne diese Regel zwei Spalten zwischen 588 und 760 px, also
     genau im Bereich des quer gehaltenen Telefons. Weil diese Regel spaeter
     im Stylesheet steht als die Container-Abfrage, gewinnt sie ohne
     !important. */
  .rz-cols, .rz-cols--kontakt { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .rz-fields { grid-template-columns: minmax(0, 1fr); }
  /* Die Zusammenfassung bleibt zweispaltig: gestapelt waere sie auf dem
     Telefon doppelt so hoch wie der Rest des Schritts. */
  .rz-sum dl { grid-template-columns: 96px minmax(0, 1fr); }
  .rz-sum dt, .rz-sum dd { padding: 7px 11px; font-size: 13.5px; }
  .rz-slots { grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); }
}

@media (max-width: 400px) {
  .rz__tab { padding: 9px 6px; font-size: 13px; }
  .rz-day { min-height: 38px; font-size: 14px; }
  .rz-cal { padding: 9px 7px 7px; }
}

/* Der Body wird beim Oeffnen per JS auf position:fixed gelegt (siehe Kopf). */
body.rz-locked { position: fixed; left: 0; right: 0; width: 100%; }

@media print { .rz { display: none !important; } }

/* ==========================================================================
   Senden an die Engine (El Chispon, 29.09.2026) — nur aktiv mit `endpoint`
   ========================================================================== */

/* Ein Satz, der etwas verlangt, steht in derselben Farbe wie die Hinweise an
   den Feldern — kein neues Rot, das die Seite sonst nirgends fuehrt. */
.rz__foot-note.is-fehler {
  color: var(--accent-ink, var(--accent));
  font-weight: 600;
  /* Groesser als die gewoehnliche Fussnote: Auf diesen Satz muss der Gast
     reagieren, und "besser sichtbar" heisst hier Groesse und Strich, nicht
     Farbe allein. */
  font-size: 14px;
  line-height: 1.4;
}

.rz-f__hint--leise { color: var(--ink-soft); }

/* Erfolg: ruhig, ohne Haken und Konfetti — es ist eine Anfrage, keine Zusage. */
.rz-danke { display: grid; gap: 18px; max-width: 560px; }
.rz-danke__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.rz-danke .rz-sum { margin-top: 0; }

/* Falle fuer Formular-Roboter: aus dem Bild, aber nicht display:none — manche
   Roboter ueberspringen versteckte Felder gezielt. */
.rz-falle {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
