/* =====================================================================
   Buchung: Wizard ("Tüte füllen"), Kalender, Bon und Zahlungsanzeige.
   Wird auf Start- und Gutscheinseite geladen. Tokens aus main.css;
   fehlende, nur hier genutzte Tokens lokal unter .wizard.
   ===================================================================== */

.booking-section { background: var(--cream); position: relative; }
.booking-intro { display: grid; gap: 28px; margin-bottom: 40px; }
.booking-intro h2 { max-width: 16ch; }
.booking-facts { display: grid; gap: 14px; align-content: start; }
.booking-facts .hours { padding: 18px 20px; border-radius: var(--r-surface); background: var(--paper); box-shadow: var(--shadow-1); }
@media (min-width: 900px) { .booking-intro { grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: end; } }

.wizard {
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --cal-closed: #7a7090;       /* 4,6:1 auf Weiß */
  --wait: #ece7ff;
  --bar-h: 72px;               /* Höhe der mobilen Bon-Leiste inkl. Abstand */
  position: relative;
  font-size: var(--fs-2, 1rem);       /* Fließtext im Wizard und Bon: 16 px */
}
/* Fokus-/Scroll-Ziele nie unter der sticky Bon-Leiste stehen lassen */
.wizard :is(button, input, select, textarea, a, summary, .wizard-nav) { scroll-margin-bottom: calc(var(--bar-h, 72px) + 24px); }
.wizard-form { scroll-padding-bottom: calc(var(--bar-h, 72px) + 24px); }
@media (max-width: 1039px) {
  .wizard-form .bag-body { padding-bottom: calc(var(--bar-h, 72px) + 24px); }
}
.wizard input::placeholder, .wizard textarea::placeholder { color: #6a6080; opacity: 1; } /* >= 5,5:1 auch auf Fehler-Hintergrund */
.wizard [hidden] { display: none !important; }

.booking-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1040px) {
  .booking-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; }
  /* Schritt 4: zweispaltig bleiben (kein Layout-Sprung), der Seitenbon trägt die Preise */
  .wizard[data-step="4"] .summary-receipt { display: none; }
}

/* Die "Tüte": Papierfläche mit Streifen-Falz */
.bag {
  position: relative;
  border-radius: var(--r-surface);
  background: var(--paper);
  box-shadow: var(--shadow-2), inset 0 0 0 1px rgb(32 26 50 / 0.05);
  overflow: hidden;
}
.bag-fold { height: 16px; background: var(--stripe); border-bottom: 2px solid var(--ink); }
.bag-body { padding: clamp(18px, 3.6vw, 36px); container-type: inline-size; }

/* ---------- Kopf: EINE Fortschrittsanzeige (Stepper) ----------
   1 Termin · 2 Teilnehmer · 3 Kontakt · 4 Abschluss. Nur erreichte Schritte sind Buttons.
   Der Button SELBST ist mindestens 44 x 44 px (Innenabstand um den 32-px-Punkt, negativer Außenabstand
   hält den Stepper kompakt), damit er auch bei 320 px Breite ohne Überlauf passt. */
.wizard-top { display: grid; gap: 14px; margin-bottom: 26px; }
.stepper-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; min-width: 0; }
.stepper-list li { display: flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.stepper-list li:last-child { flex: 0 0 auto; }
.stepper-list li:not(:last-child)::after {
  content: ""; flex: 1 1 auto; min-width: 12px; height: 2px; margin-inline: 8px;
  border-radius: 2px; background: var(--line-strong);
}
.stepper-list li.is-done:not(:last-child)::after { background: var(--ink); }
.st-item {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0; border: 0; background: none;
  font: inherit; font-size: var(--fs-2, 1rem); font-weight: 700; line-height: 1.2; color: var(--ink-soft);
  white-space: nowrap; border-radius: var(--r-pill);
}
button.st-item {
  cursor: pointer; color: var(--ink);
  min-width: 44px; justify-content: center;
  padding-inline: 6px; margin-inline: -6px;
  border-radius: 12px; /* kleiner Radius: die ganze 44-px-Fläche bleibt treffbar */
}
button.st-item:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.st-no {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--ink-soft); box-shadow: inset 0 0 0 2px var(--line-strong);
  font-weight: 800; font-size: var(--fs-2, 1rem); font-variant-numeric: tabular-nums;
  transition-property: background-color, box-shadow, transform; transition-duration: 160ms; transition-timing-function: var(--ease-out);
}
.is-done .st-no { background: var(--lav); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.is-current .st-no { background: var(--pink); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 0 0 6px var(--pink-soft); }
.is-current .st-item { color: var(--ink); font-weight: 800; }
button.st-item:active .st-no { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) {
  button.st-item:hover .st-no { background: #c4b6ff; }
  button.st-item:hover .st-label { text-decoration: underline; text-underline-offset: 0.2em; }
}
@media (max-width: 719px) {
  /* Mobil: Zahlen plus nur das aktuelle Label */
  .stepper-list li:not(.is-current) .st-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .stepper-list li:not(.is-current) .st-item { gap: 0; }
  .stepper-list li:not(:last-child)::after { margin-inline: 6px; min-width: 10px; }
}
@media (max-width: 380px) {
  .stepper-list li:not(:last-child)::after { margin-inline: 3px; min-width: 4px; }
  .st-item { gap: 8px; }
  .st-no { width: 30px; height: 30px; }
}

.wz-demo {
  justify-self: start; margin: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px 5px 9px; border-radius: var(--r-pill);
  background: var(--lav-soft); color: var(--ink);
  font-size: var(--fs-1, 0.875rem); font-weight: 650; line-height: 1.3;
}
.wz-demo .icon { width: 18px; height: 18px; color: var(--ink-soft); }

.wizard .error-summary { margin-bottom: 22px; }
.wizard .error-summary:focus { outline: 3px solid var(--err); outline-offset: 3px; }
.wizard .error-summary h3 .icon { width: 20px; height: 20px; }
.wizard .error-summary a { color: var(--err); font-weight: 650; }
/* Fehlerlinks als Block: Klickfläche mindestens 44 px hoch */
.wizard .error-summary ul { list-style: none; padding-left: 0; display: grid; }
.wizard .error-summary li a { display: flex; align-items: center; min-height: 44px; padding: 6px 4px; line-height: 1.4; border-radius: 8px; }
.wizard .error-summary li a:focus-visible { outline: 3px solid var(--err); outline-offset: 0; }

/* ---------- Schritte ---------- */
.wizard-step[hidden] { display: none; }
.wizard-step:focus { outline: none; }
@media (prefers-reduced-motion: no-preference) {
  .wizard-step { animation: step-in 360ms var(--ease-quart) both; }
}
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
.step-title {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--f-text); font-weight: 800; letter-spacing: -0.015em;
  font-size: var(--fs-5, clamp(1.5rem, 1.2rem + 1vw, 1.875rem)); line-height: 1.1;
  margin: 0 0 18px;
}
.step-title:focus { outline: none; }
.step-title:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 10px; }
.step-lead { max-width: 62ch; color: var(--ink-soft); margin-bottom: 22px; }
.wizard h4 { font-size: var(--fs-3, 1.125rem); font-weight: 800; margin: 0 0 10px; }
.wizard .muted { color: var(--ink-soft); }
.wizard .label, .wizard .field > label { font-weight: 750; font-size: var(--fs-2, 1rem); }
.wizard .label { display: block; }
/* Bausteine aus main.css im Wizard auf die Skala ziehen (main.css bleibt unverändert) */
.wizard .btn, .wizard .check, .wizard .link-btn, .wizard .chip-btn { font-size: var(--fs-2, 1rem); }
.wizard .hint { font-size: var(--fs-1, 0.875rem); }
.wizard .error-summary h3 { font-size: var(--fs-3, 1.125rem); }

.field-error {
  display: flex; gap: 6px; align-items: flex-start;
  margin: 2px 0 0; color: var(--err); font-weight: 700; font-size: var(--fs-2, 1rem); line-height: 1.35;
}
.field-error .icon { width: 18px; height: 18px; margin-top: 1px; }
.wizard .hint { margin: 0; }
.wizard .hint.err { color: var(--err); font-weight: 700; }
.link-btn {
  min-height: 44px; padding: 0 4px; border: 0; background: none;
  color: var(--pink-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px;
  cursor: pointer;
}
.sum-block .link-btn { white-space: nowrap; overflow-wrap: normal; }
.err-actions { margin: 6px 0 0; }
.hint .link-btn { min-height: 0; padding: 0; }
@media (hover: hover) and (pointer: fine) { .link-btn:hover { text-decoration-thickness: 2.5px; } }

.notice { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--blush); font-size: var(--fs-2, 1rem); display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.notice[hidden] { display: none; }
.notice > .icon { margin-top: 2px; width: 20px; height: 20px; color: var(--pink-ink); }
.notice b { font-weight: 800; }
.notice--soft { background: var(--lav-soft); }
.notice--soft > .icon { color: var(--ink-soft); }
.notice--wait { background: var(--wait); }
.notice--wait > .icon { color: var(--ink); }
.notice--ok { background: var(--ok-bg); }
.notice--ok > .icon { color: var(--ok); }

/* ---------- Schritt 1: Kalender + Slots ---------- */
.step1-grid { display: grid; gap: 22px; }
@container (min-width: 700px) { .step1-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 26px; } }

.calendar { border-radius: var(--r-surface); background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 14px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.cal-title { font-weight: 850; font-size: var(--fs-3, 1.125rem); margin: 0; }
.cal-nav[disabled] { opacity: 0.35; cursor: default; box-shadow: none; }
.cal-grid { width: 100%; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.cal-grid th { font-size: var(--fs-1, 0.875rem); font-weight: 800; color: var(--ink-soft); padding: 4px 0; text-align: center; }
.cal-grid td { padding: 0; text-align: center; }
.cal-day {
  width: 100%; aspect-ratio: 1; min-height: 44px; max-height: 60px;
  display: grid; place-items: center;
  border: 0; border-radius: 12px; padding: 0;
  background-color: transparent; color: var(--cal-closed);
  font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--fs-2, 1rem);
  cursor: default;
}
.cal-day.is-open {
  background: var(--blush); color: var(--ink); cursor: pointer;
  box-shadow: inset 0 -2px 0 rgb(194 24 91 / 0.25);
  transition-property: background-color, transform, box-shadow; transition-duration: 140ms; transition-timing-function: var(--ease-out);
}
.cal-day.is-open:active { transform: scale(0.94); }
.cal-day.is-holiday { text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--ink-soft); }
.cal-day[aria-pressed="true"] { background: var(--ink); color: var(--cream); box-shadow: 0 0 0 3px var(--pink); }
.cal-day:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.cal-day[aria-pressed="true"]:focus-visible { outline-color: var(--pink-ink); }
@media (hover: hover) and (pointer: fine) { .cal-day.is-open:hover:not([aria-pressed="true"]) { background: var(--pink-soft); } }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: var(--fs-1, 0.875rem); color: var(--ink-soft); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.cal-legend .l-open { background: var(--blush); box-shadow: inset 0 -2px 0 rgb(194 24 91 / 0.25); }
.cal-legend .l-sel { background: var(--ink); }
.cal-legend .l-closed { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
/* Vorbestellung: Tage vor dem frühesten Termin (schraffiert, Text in --ink-soft >= 4,5:1 auf der hellen Schraffur) */
.cal-day.is-preorder-blocked {
  color: var(--ink-soft);
  background: repeating-linear-gradient(135deg, #fff 0 5px, #f1eef5 5px 8px);
  box-shadow: inset 0 0 0 1px var(--line);
}
.cal-day.is-preorder-blocked.is-picked { box-shadow: inset 0 0 0 2px var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-legend .l-pre { background: repeating-linear-gradient(135deg, #fff 0 3px, #dcd6e4 3px 5px); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.cal-legend--pre { margin: 6px 0 0; color: var(--ink); font-weight: 650; border-radius: 6px; }
.cal-legend--pre:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.cal-empty { margin: 8px 4px 0; font-size: var(--fs-2, 1rem); font-weight: 650; color: var(--ink-soft); }
.cal-hint { margin-top: 6px !important; font-size: var(--fs-1, 0.875rem); }
@media (pointer: coarse) { .cal-hint { display: none; } }
@media (max-width: 479px) {
  /* 7 Spalten >= 44 px: kleinere Außenabstände, Luft zwischen den Tagen über den Rand */
  .wizard-form .bag-body { padding-inline: 14px; }
  .calendar { padding: 10px 6px; }
  .cal-grid { border-spacing: 0 2px; }
  .cal-day { min-width: 44px; border: 2px solid transparent; background-clip: padding-box; }
}
.cal-days-nonjs { display: none; }

.slots-panel { display: grid; gap: 10px; align-content: start; }
.slots-panel h4 { margin: 0; }
.slots-date { margin: -6px 0 0; font-weight: 650; color: var(--ink-soft); min-height: 1.6em; }
.slots-host { display: grid; gap: 10px; }
/* Slots als beleuchtete Tasten */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.slot {
  position: relative;
  display: grid; gap: 3px; justify-items: start; align-content: start; text-align: left;
  min-height: 92px; padding: 12px 14px;
  border: 0; border-radius: 16px;
  background: var(--ink-2); color: var(--cream);
  box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.35);
  cursor: pointer;
  transition-property: background-color, transform, box-shadow; transition-duration: 160ms; transition-timing-function: var(--ease-out);
}
.slot b { font-family: var(--f-text); font-weight: 800; font-size: var(--fs-4, 1.375rem); line-height: 1; font-variant-numeric: tabular-nums; }
.slot .slot-end { font-size: var(--fs-1, 0.875rem); font-weight: 650; color: #cfc8e0; }
.slot small { font-size: var(--fs-1, 0.875rem); font-weight: 750; color: var(--lav); line-height: 1.25; }
.slot small.slot-comp { font-weight: 600; color: #cfc8e0; }
.slot::after { /* LED */
  content: ""; position: absolute; top: 13px; right: 13px; width: 10px; height: 10px; border-radius: 50%;
  background: #7ce3a6; box-shadow: 0 0 0 3px rgb(124 227 166 / 0.18);
  transition-property: background-color, box-shadow; transition-duration: 160ms; transition-timing-function: var(--ease-out);
}
.slot.is-low::after { background: #ffc069; box-shadow: 0 0 0 3px rgb(255 192 105 / 0.2); }
.slot:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 rgb(0 0 0 / 0.35); }
.slot:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.slot[aria-pressed="true"] { background: var(--pink); color: var(--ink); box-shadow: inset 0 -4px 0 rgb(32 26 50 / 0.3), 0 0 0 3px var(--ink); }
.slot[aria-pressed="true"] small, .slot[aria-pressed="true"] .slot-end { color: var(--ink); }
.slot[aria-pressed="true"]::after { background: var(--paper); box-shadow: 0 0 0 3px rgb(255 255 255 / 0.45), 0 2px 10px rgb(255 255 255 / 0.8); }
.slot.is-full { background: #3a3352; box-shadow: inset 0 -4px 0 rgb(0 0 0 / 0.35), inset 0 0 0 1.5px rgb(255 138 182 / 0.35); }
.slot.is-full small { color: #ff8ab6; }
.slot.is-full::after { background: #ff5798; box-shadow: 0 0 0 3px rgb(255 87 152 / 0.25); }
/* Gewählt (auch Warteliste): kräftig, mit Ink-Rahmen und Haken statt LED, nie wie deaktiviert */
.slot.is-full[aria-pressed="true"] { background: var(--pink); color: var(--ink); box-shadow: inset 0 -4px 0 rgb(32 26 50 / 0.3), 0 0 0 3px var(--ink); }
.slot.is-full[aria-pressed="true"] small { color: var(--ink); }
.slot[aria-pressed="true"]::after { display: none; }
.slot .slot-check { position: absolute; top: 9px; right: 9px; width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .slot:hover:not([aria-pressed="true"]) { background-color: #3b3358; } }
.slots-empty {
  display: flex; gap: 10px; align-items: center;
  padding: 18px; border-radius: 16px; border: 2px dashed var(--line-strong); color: var(--ink-soft); font-weight: 650; margin: 0;
}
.slots-empty .icon { color: var(--pink-ink); }
@container (max-width: 699px) { .slots-empty .hide-sm { display: none; } }
.slot-hint { display: flex; gap: 8px; align-items: flex-start; }
.slot-hint .icon { width: 18px; height: 18px; margin-top: 1px; color: var(--ink-soft); }
.skeleton { height: 92px; border-radius: 16px; background: linear-gradient(90deg, #ece6f0 0%, #f6f1f6 50%, #ece6f0 100%); background-size: 200% 100%; }
@media (prefers-reduced-motion: no-preference) { .skeleton { animation: shimmer 1.2s linear infinite; } }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Schritt 2: Personen ---------- */
.age-rules { padding: 16px 18px; border-radius: var(--r-surface); background: var(--lav-soft); font-size: var(--fs-2, 1rem); }
.age-rules h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.age-rules h4 .icon { width: 20px; height: 20px; }
.age-rules ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.age-rules p { margin: 0; }
/* Ohne Minderjährige: Altersregeln nur zugeklappt */
.age-fold { padding: 0 18px; border-radius: var(--r-surface); background: var(--lav-soft); font-size: var(--fs-2, 1rem); }
.age-fold > summary {
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 800; cursor: pointer; list-style: none; border-radius: 8px;
}
.age-fold > summary::-webkit-details-marker { display: none; }
.age-fold > summary::after { /* Winkel als Fläche (clip-path), ohne Rotation */
  content: ""; flex: none; width: 14px; height: 9px; margin-right: 4px; background: currentColor;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 42%, 50% 100%, 0 42%);
}
.age-fold[open] > summary::after { clip-path: polygon(0 100%, 50% 42%, 100% 100%, 100% 58%, 50% 0, 0 58%); }
.age-fold > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.age-fold[open] { padding-bottom: 14px; }
.age-fold ul { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
/* Schritt 4: nachgeholte Zahlungserklärung nach Preiswechsel */
.late-pay { margin-top: 18px; padding-top: 18px; }
.counts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 22px; }
@container (min-width: 620px) { .counts { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }

.persons { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 22px; }
.participant {
  margin: 0; padding: 20px; border: 0; min-width: 0;
  border-radius: var(--r-surface);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-1);
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px;
}
@media (prefers-reduced-motion: no-preference) {
  .persons .participant { animation: step-in 320ms var(--ease-quart) both; }
}
.participant > legend {
  float: left; width: 100%;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-width: 0;
  padding: 0; margin-bottom: 4px;
  font-family: var(--f-text); font-weight: 800; font-size: var(--fs-3, 1.125rem); line-height: 1.15;
}
.participant > legend + * { clear: both; }
.p-no {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-size: var(--fs-2, 1rem);
  background: var(--lav); color: var(--ink);
}
.participant legend .pill {
  margin-left: auto;
  font-family: var(--f-text); font-size: var(--fs-2, 1rem); font-weight: 800; font-variant-numeric: tabular-nums;
  padding: 4px 12px; border-radius: var(--r-pill); background: var(--cream);
}
.age-result { margin: -4px 0 0; font-weight: 700; font-size: var(--fs-2, 1rem); padding: 8px 12px; border-radius: 10px; background: var(--cream); }
.age-result.is-muted { background: transparent; padding: 0 2px; color: var(--ink-soft); font-weight: 600; }
.age-result.is-warn { background: var(--err-bg); color: var(--err); }
.age-result.is-guard { background: var(--lav-soft); }
.age-result.is-ok { background: var(--ok-bg); color: var(--ok); }
.subpanel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 16px; background: var(--cream); }
.subpanel[hidden] { display: none; }
.subpanel p { margin: 0; font-size: var(--fs-2, 1rem); }
.subpanel .check { background: rgb(255 255 255 / 0.8); }
.subpanel--guard { background: var(--lav-soft); }
/* Vorbestell-Hinweis direkt unter der Checkbox (Text aus booking.preorder, gehört zur Checkbox: aria-describedby) */
.subpanel .preorder-hint { margin-top: -6px; padding-inline: 12px; color: var(--ink-soft); }
/* Vorbestellung, Termin zu früh: Meldung mit „Anderen Termin wählen“ / „Vorbestellung abwählen“ */
.preorder-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--err-bg); box-shadow: inset 0 0 0 1.5px var(--err); }
.preorder-block:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
/* Fokusziele (Sperrhinweis, Vorbestell-Legende) nie unter Kopfzeile oder Bon-Leiste */
.wizard :is(.preorder-block, .cal-legend--pre) { scroll-margin-top: 104px; scroll-margin-bottom: calc(var(--bar-h, 72px) + 24px); }
.preorder-block .field-error { margin: 0; }
.subpanel .preorder-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.preorder-actions .btn { max-width: 100%; min-width: 0; white-space: normal; text-align: center; }
/* Vorbestellung Fail-Closed (frühester Termin nicht berechenbar): Meldung im Kalender mit „Vorbestellung abwählen“ */
.cal-pre-error { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--err-bg); box-shadow: inset 0 0 0 1.5px var(--err); scroll-margin-top: 104px; scroll-margin-bottom: calc(var(--bar-h, 72px) + 24px); }
.cal-pre-error:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.cal-pre-error p { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: var(--fs-2, 1rem); font-weight: 650; line-height: 1.45; color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.cal-pre-error .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--err); }
.cal-pre-error .btn { max-width: 100%; white-space: normal; text-align: center; }
/* Feiertagsmodul/Server-Uhr nicht verfügbar (calendar_unavailable) */
.cal-empty.cal-down { color: var(--ink); }

.products { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 8px; }
.products > legend { padding: 0; margin-bottom: 8px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@container (min-width: 620px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.product-chip {
  position: relative;
  display: grid; gap: 2px; align-content: center;
  min-height: 64px; padding: 10px 14px;
  border-radius: var(--r-input);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong);
  cursor: pointer; line-height: 1.25;
  transition-property: background-color, box-shadow, transform; transition-duration: 160ms; transition-timing-function: var(--ease-out);
}
.product-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.product-chip .pc-name { font-weight: 800; font-size: var(--fs-2, 1rem); overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto; min-width: 0; }
.product-chip { min-width: 0; }
@container (max-width: 459px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
.product-chip .pc-price { font-weight: 650; font-size: var(--fs-1, 0.875rem); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.product-chip .pc-out { font-size: var(--fs-1, 0.875rem); font-weight: 800; color: var(--err); }
.product-chip:has(input:checked) { background: var(--pink-soft); box-shadow: inset 0 0 0 2px var(--ink); }
.product-chip:has(input:checked) .pc-price { color: var(--ink); }
.product-chip:has(input:checked)::after {
  content: ""; position: absolute; top: 10px; right: 10px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--pink); box-shadow: 0 0 0 2px var(--ink);
}
.product-chip:has(input:focus-visible) { outline: 3px solid var(--ink); outline-offset: 2px; }
.product-chip:active { transform: scale(0.98); }
.product-chip.is-out { cursor: not-allowed; opacity: 0.6; box-shadow: inset 0 0 0 1.5px var(--line); background: #faf6fb; }
/* Admin-Schalter „vorübergehend nicht verfügbar“: neutral (keine Fehlerfarbe, kein Bestandshinweis), ohne
   Deckkraft-Absenkung, damit der Text lesbar bleibt (Kontrast wie Fließtext). */
.product-chip.is-na { cursor: not-allowed; box-shadow: inset 0 0 0 1.5px var(--line); background: #faf6fb; }
.product-chip.is-na .pc-name, .product-chip.is-na .pc-price { color: var(--ink-soft); }
.product-chip .pc-na { font-size: var(--fs-1, 0.875rem); font-weight: 700; color: var(--ink); }
.product-chip.is-na:active { transform: none; }
@media (hover: hover) and (pointer: fine) { .product-chip:not(.is-out):not(.is-na):hover { box-shadow: inset 0 0 0 2px var(--ink-soft); } }
.product-chip:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--err); }

.wz-voucher { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.voucher-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: stretch; }
.voucher-row .btn { min-height: 52px; }
.wz-voucher .input { text-transform: uppercase; letter-spacing: 0.03em; }
.wz-voucher .input::placeholder { text-transform: none; letter-spacing: 0; }
.voucher-applied {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
  padding: 8px 8px 8px 14px; border-radius: var(--r-input);
  background: var(--ok-bg); color: var(--ink); font-size: var(--fs-2, 1rem);
}
.voucher-applied > .icon { color: var(--ok); width: 20px; height: 20px; }
.voucher-applied > .va-text { flex: 1 1 14ch; min-width: 0; display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.voucher-applied .va-code { flex: 0 0 100%; white-space: nowrap; overflow-wrap: normal; letter-spacing: 0.02em; }
.voucher-applied .va-amt { white-space: nowrap; }
.voucher-applied .link-btn { margin-left: auto; }

/* ---------- Schritt 3 ---------- */
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 16px; }
.suggest .label { font-size: var(--fs-1, 0.875rem); color: var(--ink-soft); }
.chip-btn {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: var(--lav-soft); color: var(--ink); font-weight: 750; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px var(--lav);
  transition-property: background-color, transform; transition-duration: 140ms; transition-timing-function: var(--ease-out);
}
.chip-btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .chip-btn:hover { background: var(--lav); } }
#wz-booker-mode { margin: 0 0 16px; }
.booker-mode { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.booker-mode > legend { padding: 0; margin-bottom: 2px; font-size: var(--fs-3, 1.125rem); font-weight: 800; }
.check.choice { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); min-height: 44px; }
.check.choice > span { display: grid; gap: 2px; min-width: 0; }
.check.choice b { font-weight: 800; }
.check.choice input { border-radius: 50%; }
.check.choice input::after { width: 12px; height: 12px; border-radius: 50%; background: var(--ink); }
.check.choice:has(input:checked) { background: var(--pink-soft); box-shadow: inset 0 0 0 2px var(--ink); }
.booker-mode:has(input[aria-invalid="true"]) .check.choice { box-shadow: inset 0 0 0 2px var(--err); }
@media (hover: hover) and (pointer: fine) { .check.choice:not(:has(input:checked)):hover { box-shadow: inset 0 0 0 2px var(--ink-soft); } }
.teen-hint { padding: 0 2px; }
.declarations { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 2px dashed var(--line); }
.declarations h4 { margin-bottom: 2px; }
.legal-check { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.legal-check:has(input:checked) { background: var(--blush); box-shadow: inset 0 0 0 1px rgb(194 24 91 / 0.25); }
.legal-check:has(input[aria-invalid="true"]) { box-shadow: inset 0 0 0 2px var(--err); }
.check input[aria-invalid="true"] { border-color: var(--err); }
.legal-hint { font-size: var(--fs-1, 0.875rem); }
.legal-check a, .legal-hint a {
  color: var(--pink-ink); font-weight: 750;
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px;
  padding-block: 0.4em; margin-block: -0.4em; /* Klickfläche >= 24 px, ohne den Zeilenabstand zu ändern */
}
.legal-hint { line-height: 1.7; }
/* Rechtslink als Button im Fließtext (öffnet den Dialog), sieht aus wie ein Link */
.legal-link {
  display: inline; padding: 0.4em 0; margin: -0.4em 0; border: 0; background: none;
  font: inherit; font-weight: 750; line-height: inherit; color: var(--pink-ink); text-align: inherit;
  text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; cursor: pointer;
}
.legal-link:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) and (pointer: fine) { .legal-link:hover { text-decoration-thickness: 2.5px; } }
/* Rechtstexte nicht erreichbar: Zustimmung gesperrt, Meldung mit „Erneut laden“ */
.legal-status { display: grid; gap: 10px; justify-items: start; padding: 12px 14px; border-radius: 14px; background: var(--lav-soft); }
.legal-status p { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-weight: 650; line-height: 1.45; }
.legal-status p[role="alert"] { color: var(--err); }
.legal-status .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.legal-check.is-locked { background: var(--cream); }
.legal-check.is-locked input { cursor: not-allowed; opacity: 0.55; }

/* ---------- Schritt 4 ---------- */
.summary { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.summary-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
.sum-block { min-width: 0; overflow-wrap: anywhere; }
@container (min-width: 680px) { .summary-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .summary-grid .sum-block:nth-child(2) { grid-row: span 2; grid-column: 2; } }
.sum-block { padding: 16px 18px; border-radius: var(--r-surface); background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.sum-block header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 10px; margin: -8px 0 4px; }
.sum-block h4 { margin: 0; font-size: var(--fs-1, 0.875rem); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }
.sum-block p { margin: 0 0 4px; font-size: var(--fs-2, 1rem); }
.sum-strong { font-weight: 800; font-size: var(--fs-3, 1.125rem) !important; }
.sum-note { color: var(--ink-soft); font-style: italic; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-tag); font-size: var(--fs-1, 0.875rem); font-weight: 750; }
.tag .icon { width: 16px; height: 16px; }
.tag--wait { background: var(--wait); margin-top: 6px !important; }
.summary-receipt { max-width: none; }
.summary-list { margin: 0; padding: 0; list-style: none; }
.summary-person { display: grid; gap: 1px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-1, 0.875rem); color: var(--ink-soft); }
.summary-person:last-child { border-bottom: 0; padding-bottom: 0; }
.summary-person b { color: var(--ink); font-size: var(--fs-2, 1rem); }

/* ---------- Navigation ---------- */
.wizard-nav {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  margin-top: 30px; padding-top: 22px; border-top: 2px dashed var(--line);
}
.btn-back { min-height: 52px; padding: 0 18px 0 14px; border: 0; background: transparent; font-weight: 800; color: var(--ink); border-radius: var(--r-pill); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color 140ms var(--ease-out); }
.btn-back .icon { width: 20px; height: 20px; }
.btn-back[disabled] { visibility: hidden; }
.wizard-nav .btn-back { margin-right: auto; }
@media (hover: hover) and (pointer: fine) { .btn-back:hover { background: var(--cream); } }
.wizard-nav .btn-next { min-width: 0; }
.wizard-nav .btn-next .btn-knob { width: 44px; height: 44px; }
.wizard-nav .btn-next .btn-knob .icon { width: 24px; height: 24px; }
.wizard-nav .btn-next[aria-busy="true"] { cursor: progress; }
.wizard-nav .btn-next[aria-busy="true"] .btn-knob { animation: none; }
@media (prefers-reduced-motion: no-preference) {
  .wizard-nav .btn-next[aria-busy="true"] .btn-knob .icon { animation: nudge 900ms var(--ease-in-out) infinite; }
}
@keyframes nudge { 50% { transform: translateX(4px); } }
.wizard-nav .btn-final { --btn-bg: var(--pink); --btn-fg: var(--ink); box-shadow: inset 0 -3px 0 rgb(32 26 50 / 0.22), var(--shadow-1); }
.wizard-nav .btn-final .btn-knob { background: var(--ink); color: var(--cream); }
@media (max-width: 560px) {
  .wizard-nav .btn-next { flex: 1; justify-content: space-between; white-space: normal; text-align: left; line-height: 1.2; }
}
@media (max-width: 380px) {
  .wizard-nav .btn-next { order: -1; flex: 1 1 100%; max-width: 100%; height: auto; min-height: 60px; }
  .wizard-nav .btn-back { order: 1; margin-right: 0; min-height: 48px; }
  .wizard-nav .btn-back[disabled] { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wizard *, .wizard-bar *, .bon-toast, .btn-back { transition-property: background-color, border-color, color, box-shadow, opacity !important; transition-duration: 80ms !important; transition-delay: 0s !important; }
}

/* ---------- Der Bon ---------- */
.receipt {
  --zig: 12px;
  position: relative;
  padding: 26px 22px 34px;
  background: #fff;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-2);
  border-radius: 6px 6px 0 0;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(2 * var(--zig)) 100%;
}
.receipt-head { text-align: center; padding-bottom: 14px; border-bottom: 2px dashed var(--line-strong); margin-bottom: 12px; }
.receipt-head img { width: 84px; margin: 0 auto 8px; }
.receipt-head .r-brand { margin: 0 0 2px; font-family: var(--f-text); font-weight: 800; font-size: var(--fs-2, 1rem); color: var(--pink-ink); letter-spacing: 0.02em; }
.receipt-head h3 { font-family: var(--f-text); font-weight: 800; font-size: var(--fs-4, 1.375rem); letter-spacing: -0.01em; margin: 0; }
.receipt-head p { margin: 2px 0 0; font-size: var(--fs-1, 0.875rem); color: var(--ink-soft); }
.receipt dl, .receipt .lines { margin: 0; }
.r-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 6px 0; font-size: var(--fs-2, 1rem); align-items: baseline; }
.r-row dt, .r-row .l { color: var(--ink); font-weight: 700; min-width: 0; }
.r-row dd, .r-row .v { margin: 0; text-align: right; font-weight: 750; }
.r-row .sub { grid-column: 1 / -1; font-size: var(--fs-1, 0.875rem); color: var(--ink-soft); margin-top: -2px; overflow-wrap: anywhere; }
.r-no { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 6px; border-radius: 50%; background: var(--lav-soft); font-size: var(--fs-1, 0.875rem); font-weight: 800; vertical-align: 1px; }
.r-when { grid-template-columns: minmax(0, 1fr); }
.r-when .v { text-align: left; font-size: var(--fs-2, 1rem); }
.r-when .l { font-size: var(--fs-1, 0.875rem); color: var(--ink-soft); font-weight: 750; }
.r-sep { border: 0; border-top: 2px dashed var(--line-strong); margin: 8px 0; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 4px; }
.r-total span { font-family: var(--f-text); font-weight: 800; font-size: var(--fs-3, 1.125rem); }
.r-total b { font-family: var(--f-text); font-weight: 800; font-size: var(--fs-5, clamp(1.5rem, 1.2rem + 1vw, 1.875rem)); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.r-foot { margin: 6px 0 0; font-size: var(--fs-1, 0.875rem); color: var(--ink-soft); text-align: right; }
.r-empty { color: var(--ink-soft); font-size: var(--fs-2, 1rem); margin: 6px 0; }
/* Warteliste im Live-Bon: Hauptaussage statt Betrag, Preis nur als Hinweis in Textgröße */
.r-wait-now { margin: 4px 0 0; font-weight: 800; font-size: var(--fs-3, 1.125rem); line-height: 1.35; }
.r-wait-price { margin: 4px 0 0; color: var(--ink-soft); font-size: var(--fs-2, 1rem); }
.r-wait-price .nw { white-space: nowrap; font-weight: 700; color: var(--ink); }
.r-discount .vcode { white-space: nowrap; overflow-wrap: normal; }
.r-discount .l, .r-discount .v { color: var(--pink-ink); font-weight: 750; }
.receipt-aside { display: none; }
@media (min-width: 1040px) {
  .receipt-aside { display: block; position: sticky; top: calc(var(--header-h) + 28px); }
}
@media (prefers-reduced-motion: no-preference) {
  .r-row.is-new { animation: print 380ms var(--ease-out) both; }
}
@keyframes print { from { opacity: 0; transform: translateY(-6px); } }
.summary-receipt.receipt { box-shadow: inset 0 0 0 1px var(--line); background: #fff; padding-top: 18px; }

/* Mobile Preisleiste (sticky, nur solange der Wizard sichtbar ist) */
.wizard-bar {
  position: sticky; bottom: 0; z-index: 20;
  margin: 16px calc(-1 * var(--gutter, 16px)) 0;
  padding: 0 var(--gutter, 16px) max(10px, env(safe-area-inset-bottom));
  display: grid; gap: 8px;
  pointer-events: none;
}
.wizard-bar > * { pointer-events: auto; }
@media (min-width: 1040px) { .wizard-bar { display: none; } }
.bar-toggle {
  width: 100%; min-height: 60px;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 18px; border: 0; border-radius: var(--r-pill);
  background: var(--ink); color: var(--cream); text-align: left; cursor: pointer;
  box-shadow: 0 10px 28px -10px rgb(32 26 50 / 0.6), 0 2px 6px rgb(32 26 50 / 0.2);
}
.bar-meta { display: grid; line-height: 1.2; min-width: 0; flex: 1; }
.bar-label { font-weight: 800; font-size: var(--fs-2, 1rem); }
.bar-sub { font-size: var(--fs-1, 0.875rem); color: #d9d2ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-total { font-family: var(--f-text); font-weight: 800; font-size: var(--fs-4, 1.375rem); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.bar-knob { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--pink); color: var(--ink); transition: transform 240ms var(--ease-quart); }
.bar-knob .icon { width: 20px; height: 20px; transform: rotate(-90deg); }
.wizard-bar.is-open .bar-knob { transform: rotate(180deg); }
.bar-toggle:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
.bar-scrim { display: none; }
.wizard-bar.is-open .bar-scrim { display: block; position: fixed; inset: 0; z-index: -1; background: rgb(32 26 50 / 0.55); }
@media (prefers-reduced-motion: no-preference) { .wizard-bar.is-open .bar-scrim { animation: scrim-in 200ms var(--ease-out); } }
@keyframes scrim-in { from { opacity: 0; } }
.bar-panel { max-height: min(62vh, 520px); overflow: auto; overscroll-behavior: contain; border-radius: 6px; filter: drop-shadow(0 18px 30px rgb(32 26 50 / 0.35)); }
@media (prefers-reduced-motion: no-preference) {
  .bar-panel:not([hidden]) { animation: sheet-up 280ms var(--ease-quart); }
}
@keyframes sheet-up { from { opacity: 0; transform: translateY(14px); } }
.wizard[data-view="result"] .wizard-bar { display: none; }

/* ---------- Ergebnis & Zahlung ---------- */
/* Ergebnis als digitaler Kassenbon: Zackenrand oben/unten, Figtree mit Tabellenziffern,
   Bagel Fat One nur für den Bon-Titel; Summen in Figtree 800 mit Tabellenziffern. Keine Streifen, keine Rotation. */
.wizard-result { max-width: 720px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.wizard-result > * { min-width: 0; }
.bon-wrap { filter: drop-shadow(0 1px 1px rgb(32 26 50 / 0.06)) drop-shadow(0 16px 26px rgb(32 26 50 / 0.16)); }
.bon {
  --zig: 9px;
  --bon-pad: clamp(18px, 4.6vw, 40px);
  position: relative;
  padding: calc(var(--zig) + 20px) var(--bon-pad) calc(var(--zig) + 18px);
  background: #fff;
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--fs-2, 1rem); line-height: 1.45;
  font-variant-numeric: tabular-nums;
  -webkit-mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--zig)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--zig)) 51% repeat-x;
  mask:
    conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(2 * var(--zig)) 51% repeat-x,
    conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(2 * var(--zig)) 51% repeat-x;
}
@media (prefers-reduced-motion: no-preference) {
  .wizard-result:not([hidden]) .bon-wrap { animation: bon-in 460ms var(--ease-quart) both; }
}
@keyframes bon-in { from { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 559px) {
  /* Volle Breite: Bon bis an den Rand, Aktionen behalten den Seitenabstand */
  .bon-wrap { margin-inline: calc(-1 * var(--gutter, 16px)); }
}

.bon-demo {
  justify-self: center; margin: 0; max-width: 100%;
  display: inline-flex; align-items: flex-start; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
  background: var(--lav-soft); color: var(--ink);
  font-size: var(--fs-1, 0.875rem); font-weight: 600; line-height: 1.35; text-wrap: pretty;
}
.bon-demo b { font-weight: 800; }
.bon-demo .icon { flex: none; width: 18px; height: 18px; margin-top: 0; color: var(--ink-soft); }

/* (1) Status: Titel, eine Statuszeile, Code */
.bon-head { display: grid; justify-items: center; gap: 10px; text-align: center; padding-bottom: 16px; }
.bon-brand { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: var(--fs-2, 1rem); color: var(--ink-soft); }
.bon-logo { width: 32px; height: 32px; border-radius: 50%; }
.bon-title {
  margin: 0;
  font-family: var(--f-display); font-weight: 400; letter-spacing: 0;
  font-size: var(--fs-6, clamp(2rem, 1.4rem + 2.2vw, 3rem)); line-height: 1.05;
  text-wrap: balance;
}
.bon-title:focus { outline: none; }
.bon-title:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 8px; }
.bon-status {
  margin: 0; display: inline-flex; align-items: flex-start; gap: 8px; text-align: left;
  font-size: var(--fs-3, 1.125rem); font-weight: 700; line-height: 1.4; max-width: 40ch; text-wrap: pretty;
}
.bon-status .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.bon-status.is-open .icon { color: var(--pink-ink); }
.bon-status.is-paid { color: var(--ok); }
.bon-status.is-wait { font-weight: 800; }
.bon-status.is-wait .icon { color: var(--ink); }
.bon-code {
  display: inline-grid; grid-template-columns: minmax(0, auto) auto; column-gap: 14px; align-items: center;
  max-width: 100%; padding: 8px 8px 8px 16px; border-radius: var(--r-input); text-align: left;
  background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line-strong);
}
.bon-code-l { grid-column: 1; font-size: var(--fs-2, 1rem); font-weight: 650; color: var(--ink-soft); line-height: 1.3; }
.bon-code-v {
  grid-column: 1; min-width: 0; overflow-wrap: anywhere;
  font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace;
  font-size: var(--fs-4, 1.375rem); font-weight: 700; letter-spacing: 0.05em; line-height: 1.25;
}
.bon-code .copy { grid-column: 2; grid-row: 1 / span 2; }

/* Abschnitte: getrennt durch die gestrichelte Abrisslinie des Bons */
.bon-sec { display: grid; gap: 10px; padding-block: 16px; border-top: 2px dashed var(--line-strong); }
@media (max-width: 559px) { .bon-sec { padding-block: 14px; } }
.bon-h { margin: 0; font-size: var(--fs-3, 1.125rem); font-weight: 800; color: var(--ink); letter-spacing: 0; }
.bon-note { margin: 0; color: var(--ink-soft); font-size: var(--fs-2, 1rem); text-wrap: pretty; }
.bon-mono { font-family: ui-monospace, "Cascadia Mono", "SF Mono", Consolas, monospace; letter-spacing: 0.02em; white-space: nowrap; overflow-wrap: normal; }

/* (2) Termin */
.bon-when { margin: 0; display: grid; gap: 2px; }
.bon-when b { font-weight: 800; font-size: var(--fs-3, 1.125rem); }
.bon-when span:last-child { color: var(--ink-soft); }

.copy {
  flex: none; width: 44px; height: 44px; border-radius: 50%; border: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: var(--cream);
  transition-property: background-color, color, transform; transition-duration: 140ms; transition-timing-function: var(--ease-out);
}
.copy .icon { width: 20px; height: 20px; }
.copy:active { transform: scale(0.94); }
.copy:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 2px; }
.copy.is-copied { background: var(--ok); color: #fff; }
@media (hover: hover) and (pointer: fine) { .copy:not(.is-copied):hover { background: var(--ink-2); } }

/* (3)+(4) Teilnehmer und Preis */
.bon-lines { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.bon-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 14px; align-items: baseline; }
.bon-item { display: grid; min-width: 0; }
.bon-item b { font-weight: 750; overflow-wrap: anywhere; }
.bon-detail { color: var(--ink-soft); font-size: var(--fs-2, 1rem); overflow-wrap: anywhere; }
.bon-detail .nw { white-space: nowrap; }
.bon-amt { font-weight: 750; text-align: right; white-space: nowrap; }
.bon-sums { margin: 2px 0 0; display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.bon-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.bon-sum dt { font-weight: 650; min-width: 0; }
.bon-sum dd { margin: 0; font-weight: 750; white-space: nowrap; }
.bon-sum.is-voucher dt, .bon-sum.is-voucher dd { color: var(--pink-ink); }
.bon-sum.is-voucher dt { display: flex; flex-wrap: wrap; gap: 0 8px; }
.bon-total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-top: 4px; padding-top: 10px; border-top: 2px solid var(--ink);
}
.bon-total dt { font-weight: 800; font-size: var(--fs-3, 1.125rem); }
.bon-total dd { margin: 0; font-family: var(--f-text); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; font-size: var(--fs-5, clamp(1.5rem, 1.2rem + 1vw, 1.875rem)); line-height: 1; white-space: nowrap; }
.bon-price-note { margin: 0; color: var(--pink-ink); font-weight: 650; text-wrap: pretty; }
.bon-price-note b { font-weight: 800; }
/* Warteliste: Hauptaussage statt Betrag in Display-Größe; Preis nur als Hinweis (.bon-note) */
.bon-wait-then { margin: 0; font-weight: 650; text-wrap: pretty; }
.bon-wait-now { margin: 4px 0 0; padding-top: 10px; border-top: 2px solid var(--ink); font-weight: 800; font-size: var(--fs-3, 1.125rem); line-height: 1.35; text-wrap: pretty; }
.bon-note .nw { white-space: nowrap; }
.bon-by { margin: 0; color: var(--ink-soft); overflow-wrap: anywhere; }
.bon-by b { color: var(--ink); font-weight: 750; }

/* (5) Zahlung */
.bon-pay-lead { margin: 0; text-wrap: pretty; }
.bon-pay-lead b { font-weight: 800; }
.bon-foot { margin: 0; display: flex; gap: 8px; align-items: flex-start; color: var(--ink-soft); font-size: var(--fs-2, 1rem); }
.bon-foot .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.pay-grid { display: grid; gap: 12px; }
@container (min-width: 560px) { .pay-grid { grid-template-columns: 200px minmax(0, 1fr); align-items: start; gap: 24px; } }
.bon { container-type: inline-size; }
.qr-box { display: grid; gap: 8px; justify-items: center; text-align: center; }
.qr-box .qr { width: 200px; max-width: 100%; aspect-ratio: 1; padding: 8px; background: #fff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); }
.qr-box .qr svg { width: 100%; height: 100%; }
.qr-box small { color: var(--ink-soft); font-weight: 650; font-size: var(--fs-2, 1rem); max-width: 26ch; }
.qr-details { justify-items: stretch; text-align: left; border-radius: var(--r-input); background: var(--cream); padding: 0 14px; }
.qr-details > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 800; }
.qr-details > summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 8px; }
.qr-details[open] { padding-bottom: 12px; }
.qr-details[open] > .qr { margin: 8px auto; }
.qr-details[open] > small { display: block; text-align: center; margin-inline: auto; }
.bank-list { margin: 0; display: grid; min-width: 0; }
.bank-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); min-height: 56px; }
.bank-row:last-child { border-bottom: 0; }
.bank-row dt { grid-column: 1; font-size: var(--fs-2, 1rem); font-weight: 650; color: var(--ink-soft); }
.bank-row dd { grid-column: 1; margin: 0; font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.bank-row .copy { grid-row: 1 / span 2; grid-column: 2; background: var(--cream); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.bank-row .copy.is-copied { background: var(--ok); color: #fff; box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .bank-row .copy:not(.is-copied):hover { background: var(--pink-soft); } }

/* (6) nächste Aktion */
.bon-act { margin: 0; display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-3, 1.125rem); line-height: 1.45; text-wrap: pretty; }
.bon-act b { font-weight: 800; }
.bon-act > .icon { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--pink-ink); }
.bon-act-sec .bon-ics { justify-self: start; }

/* Warteliste abmelden (Button im Bon) und Endzustand */
.bon-cancel { justify-items: start; }
.bon-cancel-btn { min-height: 48px; gap: 10px; }
.bon-cancel-btn .icon { width: 20px; height: 20px; }
.bon-cancel-btn[aria-disabled="true"] { cursor: progress; opacity: 0.75; }
.bon-cancel-msg { margin: 0; color: var(--err); font-weight: 700; text-wrap: pretty; }
.bon-status.is-cancelled { font-weight: 800; }
.bon-status.is-cancelled .icon { color: var(--ok); }
.bon-code--plain { grid-template-columns: minmax(0, auto); padding-right: 16px; }
.bon-steps .legal-link { overflow-wrap: anywhere; padding-block: 4px; margin-block: -4px; }

/* So geht es weiter: immer sichtbar (Überschrift + nummerierte Schritte) */
.bon-next { padding-bottom: 0; }
.bon-steps { margin: 0; padding: 0; list-style: none; counter-reset: bon-step; display: grid; gap: 8px; }
.bon-steps li { counter-increment: bon-step; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 10px; }
.bon-steps li > span { min-width: 0; text-wrap: pretty; }
.bon-steps li::before {
  content: counter(bon-step); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: var(--cream); font-size: var(--fs-1, 0.875rem); font-weight: 800; margin-top: 0;
}
/* Inline-Links: Trefferhöhe >= 24 px über vertikales Padding (ändert die Zeilenhöhe nicht) */
.bon-steps a { color: var(--pink-ink); font-weight: 750; text-decoration: underline; text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; overflow-wrap: anywhere; padding-block: 4px; }

/* Wartelisten-Zusage (wizard.js, Ansicht per Demo-Link): nutzt den Bon-Rahmen; nur Ergänzungen, keine neuen Streifen.
   Kontraste: Badges dunkle Schrift (--ink) auf hellen Flächen (>= 4,5:1), Ränder >= 3:1. */
.wizard[data-mode="offer"] .wizard-bar { display: none; }
.wlo .bon-status { text-wrap: pretty; }
.wlo-msg { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 4px; padding: 12px 14px; border-radius: 14px; background: var(--blush); font-weight: 700; line-height: 1.45; }
.wlo-msg .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--pink-ink); }
.wlo-msg.is-info { background: var(--lav-soft); }
.wlo-msg.is-info .icon { color: var(--ink-soft); }
.wlo-msg:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wlo-badge {
  justify-self: start; display: inline-block; margin-top: 4px; padding: 3px 10px; border-radius: 12px;
  font-size: var(--fs-1, 0.875rem); font-weight: 750; line-height: 1.35; color: var(--ink); background: var(--cream);
  box-shadow: inset 0 0 0 1.5px var(--line-strong); overflow-wrap: anywhere; text-wrap: pretty;
}
.wlo-badge.is-available { background: var(--ok-bg); box-shadow: inset 0 0 0 1.5px var(--ok); }
.wlo-badge.is-preorder { background: var(--wait); box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
.wlo-badge.is-unavailable, .wlo-badge.is-invalid { background: var(--blush); box-shadow: inset 0 0 0 1.5px var(--err); }
.wlo .bon-item { gap: 2px; }
.wlo-vnote { display: flex; gap: 8px; align-items: flex-start; }
.wlo-vnote .icon { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--pink-ink); }
.wlo-rule { margin: 0; text-wrap: pretty; }
.wlo-fit { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-weight: 750; }
.wlo-fit .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.wlo-fit.is-ok .icon { color: var(--ok); }
.wlo-fit.is-bad .icon { color: var(--err); }
.wlo-why, .wlo .notice { margin: 4px 0 0; }
.wlo-alts { margin: 6px 0 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.wlo-alts legend { padding: 0; margin-bottom: 2px; font-weight: 800; }
.wlo-alts .hint { margin: 0 0 4px; color: var(--ink-soft); }
.wlo-alt { padding: 10px 14px; }
.wlo-alt b { font-variant-numeric: tabular-nums; }
.wlo-consent { display: grid; gap: 10px; }
.wlo-consent .bon-note { display: flex; gap: 8px; align-items: flex-start; }
.wlo-consent .bon-note .icon { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--ink-soft); }
.wlo-submit { justify-self: start; min-height: 48px; }
.wlo-submit[aria-disabled="true"] { opacity: 0.6; cursor: not-allowed; }
.wlo-submit[aria-busy="true"] { cursor: progress; }
.wlo-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.wlo-actions .btn { min-height: 48px; gap: 10px; }
.wlo-actions .btn .icon { width: 20px; height: 20px; }
@media (max-width: 479px) {
  .wlo-actions .btn, .wlo-submit { width: 100%; justify-content: center; }
  .wlo-actions .btn { white-space: normal; text-align: center; }
}

.bon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.bon-actions .btn { gap: 10px; }
.bon-actions .btn .icon { width: 22px; height: 22px; }
@media (max-width: 479px) { .bon-actions .btn { width: 100%; justify-content: center; } }

.bon-toast {
  position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60;
  max-width: min(92vw, 440px); margin: 0; padding: 12px 18px; border-radius: var(--r-input);
  background: var(--ink); color: var(--cream); font-weight: 700; text-align: center; overflow-wrap: anywhere;
  box-shadow: var(--shadow-3);
  transform: translate(-50%, 8px); opacity: 0; pointer-events: none;
  transition-property: opacity, transform; transition-duration: 180ms; transition-timing-function: var(--ease-out);
}
.bon-toast:empty { padding: 0; }
.bon-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .bon-toast { transform: translate(-50%, 0); } }

/* Druck / PDF: nur der Bon (Pfad dorthin trägt data-print-keep, alles andere entfällt) */
@media print {
  [data-print-keep] > :not([data-print-keep]):not(.bon) { display: none !important; }
  [data-print-keep] {
    position: static !important; margin: 0 !important; padding: 0 !important; max-width: none !important; min-height: 0 !important;
    background: none !important; box-shadow: none !important; filter: none !important; transform: none !important; animation: none !important;
  }
  html, body { background: #fff !important; }
  .bon { -webkit-mask: none; mask: none; padding: 0; font-size: 11pt; }
  .bon .copy, .bon .bon-ics, .bon .bon-cancel, .qr-details > summary { display: none !important; }
  .bon-sec { break-inside: avoid; }
}

/* Dialog (Warteliste) */
dialog.sheet {
  border: 0; padding: 0; border-radius: var(--r-surface);
  width: min(92vw, 460px);
  background: var(--paper); color: var(--ink);
  box-shadow: var(--shadow-3);
}
dialog.sheet::backdrop { background: rgb(32 26 50 / 0.55); }
dialog.sheet .sheet-body { padding: 26px 24px 22px; }
dialog.sheet h3 { font-family: var(--f-text); font-weight: 800; font-size: var(--fs-4, 1.375rem); }
dialog.sheet .sheet-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin-top: 18px; }
@media (prefers-reduced-motion: no-preference) {
  dialog.sheet[open] { animation: sheet-in 260ms var(--ease-out); }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(10px) scale(0.97); } }

/* Fallback ohne showModal (role=dialog, aria-modal): selbst über die Seite legen */
dialog.sheet[aria-modal="true"], dialog.legal-dlg[aria-modal="true"] {
  position: fixed; inset: 0; margin: auto; z-index: 1000;
  box-shadow: 0 0 0 100vmax rgb(32 26 50 / 0.6), var(--shadow-3);
}
dialog.sheet[aria-modal="true"] { height: fit-content; }
/* Seiten-Scroll gesperrt, solange ein Wizard-Dialog offen ist */
html.wz-lock { overflow: hidden; scrollbar-gutter: stable; }

/* ---------- Rechtstext-Dialog (Wortlaut aus legal-texts.js) ----------
   Desktop: zentriertes Blatt; mobil (< 720 px): Vollbild-Sheet. Text 16 px, Zeilen höchstens 68 Zeichen. */
dialog.legal-dlg {
  border: 0; padding: 0; margin: auto;
  width: min(100vw - 32px, 760px); max-width: none;
  height: min(100dvh - 48px, 900px); max-height: none;
  border-radius: var(--r-surface); overflow: hidden;
  background: var(--paper); color: var(--ink); box-shadow: var(--shadow-3);
  font-family: var(--f-text); font-size: var(--fs-2, 1rem); line-height: 1.6;
}
dialog.legal-dlg::backdrop { background: rgb(32 26 50 / 0.6); }
.legal-frame { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.legal-head {
  flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px;
  padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); background: var(--paper);
}
.legal-title {
  flex: 1 1 12ch; min-width: 0; margin: 0;
  font-family: var(--f-text); font-weight: 800; font-size: var(--fs-4, 1.375rem); line-height: 1.2; letter-spacing: -0.01em;
  overflow-wrap: anywhere; text-wrap: balance;
}
.legal-title:focus { outline: none; }
.legal-title:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.legal-close, .legal-back {
  min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: var(--r-pill); font: inherit; font-size: var(--fs-2, 1rem); font-weight: 800; cursor: pointer;
}
.legal-close { padding: 0 16px 0 12px; background: var(--ink); color: var(--cream); }
.legal-back { flex: 0 0 100%; justify-content: flex-start; margin-left: -10px; padding: 0 10px; background: none; color: var(--ink); }
.legal-back[hidden] { display: none; }
.legal-close .icon, .legal-back .icon { width: 20px; height: 20px; }
.legal-close:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 2px; }
.legal-back:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
@media (hover: hover) and (pointer: fine) {
  .legal-close:hover { background: var(--ink-2); }
  .legal-back:hover { background: var(--cream); }
}
.legal-body { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 20px 24px 48px; }
.legal-body > * { max-width: 68ch; }
.legal-toc { margin: 0 0 20px; padding: 12px 18px 10px; border-radius: 14px; background: var(--cream); }
.legal-toc-h { margin: 0 0 4px; font-family: var(--f-text); font-size: var(--fs-3, 1.125rem); font-weight: 800; }
.legal-toc ul { list-style: none; margin: 0; padding: 0; }
.legal-toc li { margin: 0; }
.legal-toc a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; line-height: 1.35; font-weight: 700; color: var(--ink); text-decoration-color: var(--line-strong); }
.legal-toc a:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; border-radius: 6px; }
.legal-sec { padding-top: 4px; }
.legal-h {
  margin: 22px 0 8px; font-family: var(--f-text); font-size: var(--fs-3, 1.125rem); font-weight: 800; line-height: 1.3;
  overflow-wrap: anywhere; hyphens: auto; -webkit-hyphens: auto;
}
.legal-h:focus { outline: none; }
.legal-h:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 6px; }
.legal-sec p { margin: 0 0 12px; overflow-wrap: anywhere; }
.legal-sec ol, .legal-sec ul { margin: 0 0 12px; padding-left: 1.4em; }
.legal-sec li { margin: 0 0 8px; overflow-wrap: anywhere; }
.legal-sec a { color: var(--pink-ink); font-weight: 700; padding-block: 4px; }
.legal-sec aside { margin-top: 12px; padding: 14px 18px; border-radius: 14px; background: var(--cream); }
.legal-state { display: grid; gap: 12px; justify-items: start; margin: 8px 0; }
.legal-state p, p.legal-state { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-weight: 650; }
.legal-state[role="alert"] p { color: var(--err); }
.legal-state .icon { flex: none; width: 20px; height: 20px; margin-top: 3px; }
@media (max-width: 719px) {
  dialog.legal-dlg { width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh; margin: 0; border-radius: 0; }
  dialog.legal-dlg[aria-modal="true"] { box-shadow: none; }
  .legal-head { padding: max(8px, env(safe-area-inset-top)) 8px 8px 16px; }
  .legal-title { font-size: var(--fs-3, 1.125rem); }
  .legal-body { padding: 16px 16px max(40px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: no-preference) {
  dialog.legal-dlg[open] { animation: sheet-in 220ms var(--ease-out); }
}
