/* Wiederverwendbare Bausteine für das Betreiber-Portal. Eckig, flache
   Flächen, 1px-Linien statt Schatten — siehe Threesides-Kit. */

/* ---- Button ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  font: var(--weight-medium) var(--fs-body) / 1 var(--font-core);
  letter-spacing: -0.02em;
  padding: 18px 36px;
  transition: background var(--dur) var(--ease-standard), filter var(--dur) var(--ease-standard);
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-action);
  color: var(--white);
}
.btn-primary:hover { background: var(--gradient-action-hover); }
.btn-primary:active { background: var(--gradient-action-active); }
.btn-primary:disabled { background: var(--cloud); color: var(--steel); cursor: not-allowed; }
/* a:hover (base.css) würde die Schrift sonst blau färben — Button-Schrift bleibt weiß. */
.btn-primary:hover, .btn-primary:active { color: var(--white); }
.btn-primary:disabled:hover { color: var(--steel); }
/* Secondary laut Design Guide: weiß mit 1px Ink-Rahmen, Hover füllt mit Cloud. */
.btn-secondary { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--cloud); color: var(--ink); }
.btn-secondary:active { background: var(--smoke); color: var(--ink); }
.btn-secondary:disabled { background: var(--cloud); color: var(--steel); border-color: var(--cloud); cursor: not-allowed; }
.btn-lg { padding: 20px 36px; min-height: 60px; }
.btn-block { width: 100%; }
.btn-link {
  background: none;
  color: var(--text-link);
  padding: 8px;
  font-weight: var(--weight-medium);
}
.btn-link:hover { color: var(--text-link-hover); }

/* ---- Card / Zeilenliste (Menü, Rechnungen, Kontaktdaten …) ---- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
}
.card + .card { margin-top: var(--space-8); }

.row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-top: 1px solid var(--line-subtle);
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: none;
  border-left: none; border-right: none; border-bottom: none;
  font: inherit;
  cursor: pointer;
}
.row:first-child { border-top: none; }
.row:hover { background: var(--n-025); }
.row:disabled, .row.is-disabled { cursor: default; }
.row:disabled:hover, .row.is-disabled:hover { background: none; }

.row-icon {
  width: 32px; height: 32px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-bright); color: var(--white);
}
.row-icon.is-muted { background: var(--cloud); color: var(--ink); }
.row-icon.is-baby { background: var(--blue-baby); color: var(--blue-dark); }

.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { font: var(--weight-medium) var(--fs-body) / 1.3 var(--font-core); }
.row-subtitle { font: var(--weight-regular) var(--fs-caption) / 1.3 var(--font-core); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.row-eyebrow { font: var(--weight-regular) var(--fs-caption) / 1.2 var(--font-core); color: var(--text-muted); }
.row-value { font: var(--weight-medium) var(--fs-body) / 1.3 var(--font-core); overflow-wrap: anywhere; }

.row-meta { font: var(--weight-regular) var(--fs-body-sm) / 1 var(--font-core); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.row-amount { font: var(--weight-medium) var(--fs-body) / 1 var(--font-core); font-variant-numeric: tabular-nums; }
.row-chevron { display: flex; color: var(--steel); flex: none; }

.row-radio-dot, .row-check {
  flex: none; width: 20px; height: 20px; box-sizing: border-box;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.row-radio-dot { border-radius: var(--radius-pill); }
.row-radio-dot > span { width: 10px; height: 10px; border-radius: var(--radius-pill); background: transparent; }
.row:has(input:checked) .row-radio-dot { border-color: var(--ink); }
.row:has(input:checked) .row-radio-dot > span { background: var(--ink); }
.row input[type="radio"], .row input[type="checkbox"] { position: absolute; opacity: 0; width: 1px; height: 1px; }

/* ---- Formularfelder ---- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label { font: var(--weight-medium) var(--fs-body-sm) / 1.2 var(--font-core); }
.field-hint { font: var(--weight-regular) var(--fs-caption) / 1.3 var(--font-core); color: var(--text-muted); }
.field-error { font: var(--weight-regular) var(--fs-caption) / 1.3 var(--font-core); color: var(--danger); }

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field input[type="date"],
.field select,
.field textarea {
  box-sizing: border-box;
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font: var(--weight-medium) var(--fs-body) / 1.3 var(--font-core);
  transition: border-color var(--dur) var(--ease-standard), box-shadow var(--dur) var(--ease-standard);
}
.field { min-width: 0; }
/* iOS Safari: Datumsfelder haben eine eigene Mindestbreite und ragen sonst über den Rahmen hinaus. */
.field input[type="date"] { line-height: 56px; -webkit-appearance: none; appearance: none; display: block; min-width: 0; max-width: 100%; text-align: left; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; min-height: 1.3em; }
.field input[type="date"]:disabled { background: var(--n-025); color: var(--text-muted); }
.field textarea { height: auto; min-height: 120px; padding: 14px 16px; font-weight: var(--weight-regular); resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); box-shadow: var(--focus-ring); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }

.field-group { display: grid; grid-template-columns: minmax(0, .4fr) minmax(0, .6fr); gap: 12px; }

.input-prefix { display: flex; align-items: stretch; }
.input-prefix span {
  display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: none;
  background: var(--n-025); color: var(--text-secondary); font: var(--weight-medium) var(--fs-body) / 1 var(--font-core);
}
.input-prefix input { border-left: none !important; }

/* ---- Auswahl-Kacheln (Fahrzeugtyp, Küche) ---- */
.tile-grid { display: grid; gap: 8px; }
.tile-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile { position: relative; display: block; cursor: pointer; }
.tile input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tile-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); transition: border-color var(--dur) var(--ease-standard);
}
.tile:has(input:checked) .tile-card { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.tile-thumb {
  aspect-ratio: 4 / 3; background: var(--cloud); color: var(--graphite);
  display: flex; align-items: center; justify-content: center;
}
.tile-grid-3 .tile-thumb { aspect-ratio: 1 / 1; }
/* Foto statt Icon (siehe tileThumb() in helpers.php): füllt die Kachel, zugeschnitten */
.tile-thumb { overflow: hidden; }
.tile-photo { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-foot { display: flex; align-items: center; gap: 10px; padding: 12px; border-top: 1px solid var(--line-subtle); }
.tile-grid-3 .tile-foot { gap: 8px; padding: 10px; }
.tile-radio { flex: none; width: 18px; height: 18px; border-radius: var(--radius-pill); border: 1px solid var(--line); box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.tile-radio > span { width: 8px; height: 8px; border-radius: var(--radius-pill); background: transparent; }
.tile:has(input:checked) .tile-radio { border-color: var(--ink); }
.tile:has(input:checked) .tile-radio > span { background: var(--ink); }
.tile-check { flex: none; width: 16px; height: 16px; border: 1px solid var(--line); color: var(--white); display: flex; align-items: center; justify-content: center; box-sizing: border-box; }
.tile:has(input:checked) .tile-check { border-color: var(--ink); background: var(--ink); }
.tile-check svg { display: none; }
.tile:has(input:checked) .tile-check svg { display: block; }
.tile-label { font: var(--weight-medium) var(--fs-caption) / 1.2 var(--font-core); min-width: 0; overflow-wrap: anywhere; }
.tile-grid-2 .tile-label { font-size: var(--fs-body-sm); }

/* Küchen-Kacheln mit Beispielen: auf dem Handy 2 Spalten (sonst bricht der Beispieltext
   in schmalen Kacheln auf 5 Zeilen), ab 640 px 3 Spalten. */
.tile-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tile-sub { font: var(--weight-regular) 12px / 1.3 var(--font-core); color: var(--text-muted); overflow-wrap: break-word; }
.tile-grid-cuisine { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile-grid-cuisine .tile, .tile-grid-cuisine .tile-card { height: 100%; }
.tile-grid-cuisine .tile-thumb { aspect-ratio: 3 / 2; flex: 1; }
.tile-grid-cuisine .tile-foot { align-items: flex-start; }
.tile-grid-cuisine .tile-check { margin-top: 2px; }
@media (min-width: 640px) {
  .tile-grid-cuisine { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tile-grid-cuisine .tile-thumb { aspect-ratio: 1 / 1; flex: none; }
}

/* Ausnahme vom sonst durchgängig schmalen Funnel-Layout (Feedback 2026-10-01):
   der Anlass-Schritt im Leadformular darf auf dem Desktop breiter sein und
   zeigt die sechs Anlassarten als 3×2-Raster (bei sechs Spalten in einer Zeile
   würden lange Labels wie "Geburtstage und private Feiern" mitten im Wort brechen). */
@media (min-width: 900px) {
  .fx-shell.fx-shell-wide { max-width: 820px; }
  .tile-grid-anlass { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---- Zeilen-Auswahl (Ernährungsform, Vorlauf) ---- */
.choice-list { display: flex; flex-direction: column; gap: 8px; }
.choice-row {
  position: relative; cursor: pointer; display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--white); border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease-standard);
}
.choice-row:hover { background: var(--n-025); }
.choice-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-row:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice-row .row-radio-dot, .choice-row .row-check { pointer-events: none; }
.choice-row:has(input:checked) .row-check { border-color: var(--ink); background: var(--ink); }
.choice-row .row-check svg { display: none; }
.choice-row:has(input:checked) .row-check svg { display: block; }

/* ---- Stepper (Mitarbeitende) ---- */
.stepper { display: flex; height: 56px; max-width: 200px; border: 1px solid var(--line); background: var(--white); }
.stepper input { flex: 1; min-width: 0; border: none; padding: 0 16px; font: var(--weight-medium) var(--fs-h3) / 1 var(--font-core); font-variant-numeric: tabular-nums; background: none; }
.stepper input:focus { outline: none; }
.stepper-buttons { display: flex; flex-direction: column; width: 44px; border-left: 1px solid var(--line); }
.stepper-buttons button { flex: 1; border: none; background: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.stepper-buttons button:first-child { border-bottom: 1px solid var(--line); }
.stepper-buttons button:hover { background: var(--cloud); }

/* ---- Dual-Range-Slider (Preis, Radius) ----
   Zwei native <input type=range> übereinander. Die Schiene ist bewusst ein
   dicker, abgerundeter Balken (statt einer Haarlinie) und die Griffe tragen
   ein Grip-Symbol + Schatten, damit auf den ersten Blick klar ist: das sind
   ziehbare Regler, keine Kontrollkästchen. Ein .range-hint-Satz sagt dazu
   ausdrücklich, was zu tun ist (siehe Nutzungsstellen in den Templates). */
.range { display: flex; flex-direction: column; gap: 12px; }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-title { font: var(--weight-medium) var(--fs-body-sm) / 1.2 var(--font-core); }
.range-value { font: var(--weight-medium) var(--fs-body) / 1 var(--font-core); font-variant-numeric: tabular-nums; }
.range-hint { margin: 0; font: var(--weight-regular) var(--fs-caption) / 1.3 var(--font-core); color: var(--text-muted); }
.range-track-wrap { position: relative; height: 24px; }
/* 12px = halbe Thumb-Breite (24px) — der native Thumb wandert nie ganz bis
   zum Containerrand, sondern nur bis "Rand ± halbe Thumb-Breite". Schiene
   und Füllung müssen auf denselben Bereich eingeschränkt werden, sonst
   laufen sie an den Enden sichtbar am Thumb vorbei (siehe app.js initRange).
   top:50%/translateY(-50%) statt fixer Pixel-Werte: Input-Box und Thumb sind
   jetzt beide exakt 24px hoch, die Zentrierung muss also nicht mehr per Hand
   nachgerechnet werden und bleibt auch bei künftigen Größenänderungen korrekt. */
.range-rail { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); height: 6px; border-radius: 3px; background: var(--smoke); }
.range-fill { position: absolute; top: 50%; transform: translateY(-50%); height: 6px; border-radius: 3px; background: var(--blue-bright); }
.range-input {
  position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 24px; margin: 0; z-index: 1;
  background: transparent; appearance: none; -webkit-appearance: none; pointer-events: none;
}
.range-input::-webkit-slider-runnable-track { background: transparent; height: 24px; }
.range-input::-moz-range-track { background: transparent; height: 24px; border: none; }
/* Grip-Symbol (zwei kurze Striche) als Hintergrundbild direkt im Thumb —
   Pseudo-Elemente wie ::-webkit-slider-thumb können keine Kind-Elemente
   haben, background-image funktioniert aber zuverlässig in beiden Engines. */
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; pointer-events: auto; cursor: grab;
  width: 24px; height: 24px; margin-top: 0; background-color: var(--white); border: 2px solid var(--ink); box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(23, 23, 23, .3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cline x1='9' y1='7' x2='9' y2='17' stroke='%23171717' stroke-width='1.6' stroke-linecap='round'/%3E%3Cline x1='15' y1='7' x2='15' y2='17' stroke='%23171717' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px 12px;
}
.range-input::-moz-range-thumb {
  pointer-events: auto; cursor: grab; width: 24px; height: 24px; background-color: var(--white); border: 2px solid var(--ink); box-sizing: border-box; border-radius: 0;
  box-shadow: 0 1px 3px rgba(23, 23, 23, .3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cline x1='9' y1='7' x2='9' y2='17' stroke='%23171717' stroke-width='1.6' stroke-linecap='round'/%3E%3Cline x1='15' y1='7' x2='15' y2='17' stroke='%23171717' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 12px 12px;
}
.range-input:hover::-webkit-slider-thumb { box-shadow: 0 2px 5px rgba(23, 23, 23, .35); }
.range-input:active::-webkit-slider-thumb { cursor: grabbing; background-color: var(--cloud); }
.range-input:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-ring), 0 1px 3px rgba(23, 23, 23, .3); }
.range-input:focus-visible::-moz-range-thumb { box-shadow: var(--focus-ring), 0 1px 3px rgba(23, 23, 23, .3); }
.range-scale { display: flex; justify-content: space-between; font: var(--weight-regular) var(--fs-caption) / 1 var(--font-core); color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* ---- Switch ---- */
.switch { position: relative; display: inline-flex; flex: none; width: 44px; height: 24px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { position: absolute; inset: 0; background: var(--smoke); transition: background var(--dur) var(--ease-standard); }
.switch-thumb { position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: var(--white); transition: transform var(--dur) var(--ease-standard); }
.switch input:checked + .switch-track { background: var(--ink); }
.switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch input:focus-visible + .switch-track { box-shadow: var(--focus-ring); }

.pref-row { display: flex; align-items: center; gap: 16px; padding: 14px 16px; border-top: 1px solid var(--line-subtle); }
.pref-row:first-child { border-top: none; }
.pref-row .row-body { flex: 1; }
.pref-row .row-title { line-height: 1.3; }
.pref-row .row-desc { font: var(--weight-regular) var(--fs-caption) / 1.35 var(--font-core); color: var(--text-muted); }

/* ---- Upload-Dropzone ---- */
.dropzone {
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 28px 16px; text-align: center; border: 1px dashed var(--steel); background: var(--white);
  transition: background var(--dur) var(--ease-standard), border-color var(--dur) var(--ease-standard);
}
.dropzone.is-over, .dropzone:hover { border-color: var(--blue-bright); background: var(--info-bg); }
.dropzone input[type="file"] { display: none; }
.dropzone-title { font: var(--weight-medium) var(--fs-body-sm) / 1.3 var(--font-core); }
.dropzone-title u { text-decoration-color: var(--text-link); color: var(--text-link); }
.dropzone-hint { font: var(--weight-regular) var(--fs-caption) / 1.3 var(--font-core); color: var(--text-muted); }
.dropzone.is-compact { flex-direction: row; justify-content: center; padding: 18px 16px; }

.file-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.file-tile { position: relative; aspect-ratio: 1 / 1; background: var(--cloud); overflow: hidden; }
.file-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.file-remove {
  position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--white);
}

.doc-list { border: 1px solid var(--line); }
.doc-row { display: flex; align-items: center; gap: 12px; padding: 12px; border-top: 1px solid var(--line-subtle); }
.doc-row:first-child { border-top: none; }
.doc-icon { width: 36px; height: 36px; flex: none; display: flex; align-items: center; justify-content: center; background: var(--cloud); color: var(--graphite); }
.doc-name { font: var(--weight-medium) var(--fs-body-sm) / 1.3 var(--font-core); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-size { font: var(--weight-regular) var(--fs-caption) / 1 var(--font-core); color: var(--text-muted); }
.doc-remove { width: 36px; height: 36px; border: none; background: none; cursor: pointer; color: var(--graphite); display: flex; align-items: center; justify-content: center; flex: none; }
.doc-remove:hover { background: var(--cloud); color: var(--ink); }

/* ---- Badge / Toast ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  font: var(--weight-medium) var(--fs-caption) / 1 var(--font-core);
}
.badge-success { background: var(--success-bg); color: var(--success); }
.badge-dot { width: 6px; height: 6px; border-radius: var(--radius-pill); background: currentColor; }

.toast {
  position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-3);
  font: var(--weight-medium) var(--fs-body-sm) / 1 var(--font-core); white-space: nowrap;
  pointer-events: none; animation: toast-out 2.6s forwards;
}
@keyframes toast-out {
  0%, 80% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* ---- Bild-Slots (Logo, Titelbild, Galerie) ---- */
.image-slot {
  position: relative; display: block; cursor: pointer; overflow: hidden; background: var(--white);
  border: 1px solid var(--line);
}
.image-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.image-slot input[type="file"] { display: none; }
.image-slot-empty {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; color: var(--graphite); text-align: center; padding: 8px;
}
.image-slot-empty span { font: var(--weight-medium) var(--fs-caption) / 1.2 var(--font-core); }
.image-slot.is-circle { border-radius: var(--radius-pill); }

/* Platzhalter-Profilbild eines Foodtrucks ohne Logo: Initiale hellgrau auf Dunkelgrau (#171717), bewusst nicht in der
   Markenfarbe, damit klar ist, dass es das Profil des Foodtrucks ist und nicht von der Plattform stammt. */
.avatar-initial {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: #171717; color: #D3D6E0; font: var(--weight-medium) 44px / 1 var(--font-core); letter-spacing: 0;
}
.avatar-initial-sm { position: static; width: 100%; height: 100%; font-size: 34px; }
.avatar-hint { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; color: #9DA2B3; }

.alert { padding: 14px 16px; font: var(--weight-regular) var(--fs-body-sm) / 1.4 var(--font-core); }
.alert-danger { background: var(--danger-bg); color: var(--danger); }
.alert-info { background: var(--info-bg); color: var(--blue-dark); }
.alert-warning { background: #FFF4DB; color: #7A4B00; }

/* ---- Akkordeon (Spielregeln, FAQ — Registrierung & Onboarding) ---- */
.accordion { border-top: 1px solid var(--line); text-align: left; }
.accordion-item { border-bottom: 1px solid var(--line); }
.accordion-trigger {
  all: unset; box-sizing: border-box; width: 100%; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0;
  font: var(--weight-medium) var(--fs-body-lg) / 1.35 var(--font-core); letter-spacing: var(--ls-body);
}
.accordion-trigger:hover { color: var(--blue-bright); }
.accordion-icon { flex: none; display: flex; color: var(--graphite); transition: transform var(--dur) var(--ease-standard); }
.accordion-trigger[aria-expanded="true"] .accordion-icon { transform: rotate(45deg); }
.accordion-panel { margin: 0; padding: 0 32px 20px 0; font: var(--weight-regular) var(--fs-body) / var(--lh-body) var(--font-core); color: var(--text-secondary); }
.accordion-panel[hidden] { display: none; }

/* ---- Pflichtlinks (Impressum, Datenschutz, Cookie-Einstellungen), siehe legalFooter()/legalLinks() in src/helpers.php ---- */
.legal-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; font: var(--weight-regular) var(--fs-caption) / 1.4 var(--font-core); }
.legal-links a { color: var(--text-muted); }
.legal-links a:hover { color: var(--ink); }
.legal-footer { flex: none; padding: 20px 16px 24px; text-align: center; background: var(--white); border-top: 1px solid var(--line-subtle); }
.legal-footer.has-bar { padding-bottom: calc(140px + env(safe-area-inset-bottom)); } /* feste Leiste (Weiter/Speichern) darf die Links nicht verdecken */

/* Die Fußzeile soll nicht über der Weiter-/Speichern-Leiste im ersten Bildschirm stehen: Seiten mit fester Leiste
   sind höher als der Bildschirm (abzüglich Kopfzeile), die Links erscheinen erst beim Weiterscrollen. */
/* 100vh/100lvh = größte Bildschirmhöhe (Adressleiste eingeklappt); dvh wäre zu knapp: Safari zeigt mit seiner unteren Leiste mehr
   Fläche, als dvh annimmt, und ein Streifen der Fußzeile blitzt unten auf. Dazu 56 px Puffer, damit man sicher scrollen muss. */
.app > .view, .app > .ob-wrap, .app > .funnel-form.is-open { min-height: calc(100vh - 64px + 56px); min-height: calc(100lvh - 64px + 56px); }

/* Karten (Leaflet): Leaflet vergibt intern z-index bis 1000. Ohne eigenen Stapel läge die Karte über den festen
   Leisten (Weiter, Speichern) und würde deren Buttons verdecken. */
.fx-map, .radius-map, .leaflet-container { position: relative; z-index: 0; isolation: isolate; }
