/* AP Events Tickets: Buchungsseite. Alle Regeln unter .ape, damit das Theme nicht hineinfunkt.
   Maße nach Apple HIG: Fließtext 17 px, Tippflächen mindestens 44 px, Eingaben nie unter 16 px (sonst zoomt iOS).
   Abstände zwischen Blöcken im 4-px-Raster (4, 8, 12, 16, 20, 24), Text mindestens 13 px und Kontrast mindestens 4,5:1 (WCAG 2.2 AA).
   Knöpfe und Links stehen immer als .ape .klasse: Themes wie Astra färben button:hover/:focus und a:hover global ein (Astra: Rot),
   das schlägt eine einzelne Klasse. Vergeben zeigt ein Kreuz, nicht nur Grau: Kategoriefarben sind frei wählbar und können selbst grau sein (WCAG 1.4.1). */
.ape {
  --ape-ink: #1c1f3a;
  --ape-ink-soft: #5a5e7c;
  --ape-paper: #ffffff;
  --ape-wash: #f4f3f8;
  --ape-tint: rgba(28, 31, 58, .07);
  --ape-line: #dddce6;
  --ape-sep: #ebeaf1;
  --ape-gold: #a8823f;
  --ape-gold-lt: #dcbd80;
  --ape-gold-ink: #86662c;   /* Gold für Schrift auf hellem Grund, 5,3:1 auf Weiß (das Markengold schafft nur 3,5:1) */
  /* Kategoriefarben kommen aus den Einstellungen (Colors.php) als style am Container, dies sind nur Rückfallwerte */
  --ape-cat1: #b8914e;
  --ape-cat2: #949bab;
  --ape-cat3: #2e3b66;
  --ape-cat4: #8b3346;
  --ape-cat5: #2d6a58;
  --ape-kid: #d98a6b;
  --ape-taken: #c9c8d3;
  --ape-taken-ink: #74738a;   /* Kreuz auf vergebenen Plätzen, 3,3:1 auf --ape-line */
  --ape-ok: #2f7d4f;
  --ape-err: #b3261e;
  --ape-radius: 14px;
  --ape-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ape-ink);
  font: 400 17px/1.47 var(--ape-font);
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  container-type: inline-size;
}
/* Aus schmalen Theme-Spalten ausbrechen. Block-Themes setzen max-width und margin (teils mit !important) auf alle Kinder von .is-layout-constrained. */
.ape.ape, .is-layout-constrained > .ape.ape {
  width: min(1200px, calc(100vw - 32px));
  max-width: none !important;
  margin-left: calc(50% - min(600px, 50vw - 16px)) !important;
  margin-right: 0 !important;
}
.ape *, .ape *::before, .ape *::after { box-sizing: border-box; }
.ape h2, .ape h3, .ape p, .ape button, .ape input, .ape select { font-family: var(--ape-font); letter-spacing: inherit; }
.ape-loading { padding: 3rem 1rem; text-align: center; color: var(--ape-ink-soft); }

/* Kopf als App-Leiste: dunkles Band mit goldener Überzeile, wie Ticket und E-Mail */
.ape-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t help" "facts facts"; gap: 12px 16px; align-items: start; margin-bottom: 16px; padding: 20px; border-radius: 18px; background: var(--ape-ink); color: #fff; }
.ape-head-t { grid-area: t; min-width: 0; }
/* Flyer als Banner: verschmilzt mit dem dunklen Kopf darunter, antippen zeigt ihn ganz */
.ape .ape-flyer { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 18px 18px 0 0; overflow: hidden; background: #000; cursor: zoom-in; font: inherit; color: #fff; -webkit-tap-highlight-color: transparent; }
.ape-flyer-crop { position: relative; display: block; aspect-ratio: 1152 / 730; overflow: hidden; }
.ape-flyer-crop img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.ape-flyer-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px 0 8px; border-radius: 999px; background: rgba(14, 16, 32, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 15px; font-weight: 600; line-height: 1; }
.ape-flyer-hint svg { width: 18px; height: 18px; color: var(--ape-gold-lt); }
@media (hover: hover) { .ape .ape-flyer:hover .ape-flyer-crop img { transform: scale(1.02); } .ape .ape-flyer:hover .ape-flyer-hint { background: rgba(14, 16, 32, .88); } }
.ape .ape-flyer:focus-visible { outline: 3px solid var(--ape-gold); outline-offset: 2px; }
.ape-flyer + .ape-head { border-radius: 0 0 18px 18px; }
.ape-flyer-dlg { border: 0; padding: 0; margin: auto; background: transparent; max-width: 100vw; max-height: 100dvh; overflow: visible; cursor: zoom-out; }
.ape-flyer-dlg:focus { outline: none; }
.ape-flyer-dlg::backdrop { background: rgba(8, 9, 20, .9); }
.ape-flyer-dlg img { display: block; width: auto; height: auto; max-width: min(calc(100vw - 24px), 720px); max-height: calc(100dvh - 24px); border-radius: 12px; }
.ape .ape-flyer-close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: rgba(14, 16, 32, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.ape .ape-flyer-close svg { width: 20px; height: 20px; }
.ape .ape-flyer-close:focus-visible { outline: 3px solid var(--ape-gold-lt); outline-offset: 2px; }
.ape-head h2 { margin: 0; font-size: clamp(26px, 4.4cqi, 32px); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; color: #fff; }
.ape-eyebrow { margin: 0 0 4px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ape-gold-lt); font-weight: 600; line-height: 1.35; }
.ape .ape-help-btn { grid-area: help; font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 12px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
.ape .ape-help-btn svg { width: 20px; height: 20px; color: var(--ape-gold-lt); }
.ape .ape-help-btn:hover { background: rgba(255, 255, 255, .14); }
.ape .ape-help-btn:focus-visible { outline: 3px solid var(--ape-gold-lt); outline-offset: 2px; }

.ape-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }

/* Saalplan */
.ape-plan { background: var(--ape-paper); border: 1px solid var(--ape-line); border-radius: var(--ape-radius); padding: 16px; min-width: 0; }
.ape-plan-bar { margin-bottom: 12px; }
.ape-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; font-size: 15px; color: var(--ape-ink-soft); }
.ape-legend li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.ape-legend b { color: var(--ape-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.ape-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; flex: none; }
/* Jede Kategorie setzt --c, alle Regeln darunter lesen nur --c. So reichen bis zu fünf Kategorien ohne Einzelregeln. */
.ape-cat-1 { --c: var(--ape-cat1); }
.ape-cat-2 { --c: var(--ape-cat2); }
.ape-cat-3 { --c: var(--ape-cat3); }
.ape-cat-4 { --c: var(--ape-cat4); }
.ape-cat-5 { --c: var(--ape-cat5); }
.ape-dot[class*="ape-cat-"] { background: var(--c); }
.ape-dot.ape-kid { background: var(--ape-kid); }
.ape-dot.ape-mine { background: radial-gradient(circle, var(--ape-ink) 0 26%, var(--ape-paper) 30%); box-shadow: 0 0 0 2.5px var(--ape-gold) inset; }
.ape-dot.ape-taken { background: linear-gradient(45deg, transparent calc(50% - 1px), var(--ape-taken-ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) center / 8px 8px no-repeat, linear-gradient(-45deg, transparent calc(50% - 1px), var(--ape-taken-ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) center / 8px 8px no-repeat, var(--ape-line); }

/* Zoom schwebt wie in Karten-Apps in der Planecke */
.ape-stage { position: relative; }
.ape .ape-zoom { position: absolute; left: 8px; bottom: 8px; display: flex; flex-direction: column; background: rgba(255, 255, 255, .94); border-radius: 12px; box-shadow: 0 1px 4px rgba(28, 31, 58, .18), 0 0 0 .5px rgba(28, 31, 58, .1); overflow: hidden; }
.ape .ape-zoom button { width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ape-ink); cursor: pointer; display: grid; place-items: center; }
.ape .ape-zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ape .ape-zoom button + button { border-top: 1px solid var(--ape-sep); }
@media (hover: hover) { .ape .ape-zoom button:hover { background: var(--ape-tint); } }
.ape .ape-zoom button[aria-disabled="true"] { color: var(--ape-taken); cursor: default; background: none; }
/* Plan-Kasten: zoomt selbst (zoom.js). In der Gesamtansicht scrollt ein Finger die Seite, zwei Finger zoomen; vergrößert verschiebt ein Finger den Plan */
.ape-scroll { position: relative; overflow: hidden; aspect-ratio: var(--ape-ar, 582 / 470); max-height: 80vh; border-radius: 10px; background: var(--ape-wash); touch-action: pan-x pan-y; overflow-anchor: none; /* Plätze nie als Scroll-Anker, sonst wandert die Seite beim Zoomen */ -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ape-scroll.zoomed { touch-action: none; cursor: grab; }
.ape-scroll.grabbing, .ape-scroll.grabbing .ape-seat, .ape-scroll.grabbing .ape-table-top { cursor: grabbing; }
.ape-svg { display: block; width: 100%; height: 100%; }
.ape-hint { margin: 12px 0 0; font-size: 15px; color: var(--ape-ink-soft); }

.ape-area { fill: #e8e6ef; stroke: none; }
.ape-area-stage { fill: var(--ape-ink); }
.ape-area-dance { fill: #ecebf3; stroke: var(--ape-line); stroke-dasharray: 3 2; }
.ape-area-label { font: 600 7px/1 var(--ape-font); text-anchor: middle; dominant-baseline: central; fill: var(--ape-ink-soft); pointer-events: none; letter-spacing: .05em; }
.ape-area-stage + .ape-area-label { fill: #ffffff; }
.ape-wall { fill: none; stroke: var(--ape-ink); stroke-width: 1.6; stroke-linejoin: miter; }
.ape-door { fill: none; stroke: var(--ape-ink-soft); stroke-width: .6; }
.ape-pillar { fill: #9a98a8; stroke: var(--ape-ink); stroke-width: .6; }
.ape-area-bar { fill: #e3dcc8; stroke: var(--ape-ink); stroke-width: 1.2; stroke-linejoin: round; }

.ape-hit { fill: transparent; cursor: pointer; }
.ape-table-top { fill: var(--ape-paper); stroke: var(--ape-line); stroke-width: .8; cursor: pointer; }
[class*="ape-cat-"] .ape-table-top { stroke: var(--c); }
.ape-table:hover .ape-table-top { fill: var(--ape-wash); }
.ape-table-no { font: 700 7px/1 var(--ape-font); text-anchor: middle; dominant-baseline: central; fill: var(--ape-ink); pointer-events: none; }

.ape-seat { cursor: pointer; stroke: var(--ape-paper); stroke-width: .6; transition: fill .15s, r .15s; }
[class*="ape-cat-"] .ape-seat { fill: var(--c); }
.ape-seat:hover { r: 4.4; }
/* Eigene Auswahl: weißer Platz mit Goldring und Punkt, hebt sich von allen Kategoriefarben ab */
.ape .ape-seat[data-state="mine"] { fill: var(--ape-paper); stroke: var(--ape-gold); stroke-width: 1.5; }
.ape-seat-dot { display: none; fill: var(--ape-ink); pointer-events: none; }
.ape-seat[data-state="mine"] + .ape-seat-dot { display: inline; }
.ape-seat-x { display: none; fill: none; stroke: var(--ape-taken-ink); stroke-width: .7; stroke-linecap: round; pointer-events: none; }
.ape-seat:is([data-state="taken"], [data-state="blocked"]) + .ape-seat-dot + .ape-seat-x { display: inline; }
/* Vergeben bewusst blass und mit Kreuz: tritt hinter alle Kategoriefarben zurück und ist auch neben grauen Kategorien eindeutig */
.ape .ape-seat[data-state="taken"] { fill: var(--ape-line); cursor: not-allowed; }
.ape .ape-seat[data-state="blocked"] { fill: var(--ape-paper); stroke: var(--ape-taken); stroke-width: 1; cursor: not-allowed; }
.ape-seat[data-state="taken"]:hover, .ape-seat[data-state="blocked"]:hover { r: 3.6; }
.ape-seat:focus-visible, .ape-table-top:focus-visible { outline: none; stroke: var(--ape-err); stroke-width: 1.4; }
.ape-locked .ape-seat, .ape-locked .ape-table-top, .ape-locked .ape-hit { cursor: default; pointer-events: none; }
.ape-busy .ape-svg { opacity: .7; }

/* Seitenleiste */
.ape-side { background: var(--ape-paper); border: 1px solid var(--ape-line); border-radius: var(--ape-radius); padding: 20px; position: sticky; top: 16px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
/* Lange E-Mail-Adressen im Text brechen um, statt auf 320 px über den Rand zu ragen */
.ape-side p, .ape-side li { overflow-wrap: anywhere; }
.ape-side h3 { margin: 0; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; color: var(--ape-ink); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; text-wrap: balance; }
.ape-side h3 small { font-size: 15px; font-weight: 400; color: var(--ape-ink-soft); white-space: nowrap; letter-spacing: 0; }
.ape-side p { margin: 0; }
.ape-empty, .ape-note { color: var(--ape-ink-soft); font-size: 15px; }

.ape-cart { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ape-cart li { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label price" "seg x"; gap: 8px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--ape-sep); }
.ape-cart li:first-child { padding-top: 4px; }
.ape-cart li > .ape-seat-label { grid-area: label; }
.ape-cart li > .ape-price { grid-area: price; }
.ape .ape-cart li > .ape-seg { grid-area: seg; }
.ape .ape-cart li > .ape-x { grid-area: x; }
.ape-cart-static li { grid-template-areas: "label price" "type price"; gap: 2px 12px; padding: 12px 0; }
.ape-cart-static .ape-type { grid-area: type; color: var(--ape-ink-soft); font-size: 15px; }
.ape-seat-label { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.ape-price { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }

/* Segmentschalter wie UISegmentedControl */
.ape .ape-seg { display: inline-flex; background: var(--ape-tint); border-radius: 10px; padding: 3px; gap: 2px; justify-self: start; max-width: 100%; }
.ape .ape-seg button { font: inherit; font-size: 15px; font-weight: 500; letter-spacing: -.01em; border: 0; background: transparent; color: var(--ape-ink); min-height: 38px; padding: 0 16px; border-radius: 8px; cursor: pointer; white-space: nowrap; position: relative; }
/* Trefferfläche auf 44 px: reicht über den Innenabstand des Schalters, ohne das Layout zu ändern */
.ape .ape-seg button::before { content: ""; position: absolute; inset: -3px -1px; }
.ape .ape-seg button[aria-checked="true"] { background: var(--ape-paper); font-weight: 600; box-shadow: 0 1px 3px rgba(28, 31, 58, .18), 0 0 0 .5px rgba(28, 31, 58, .08); }
.ape .ape-seg button:disabled { cursor: default; }
.ape .ape-x { width: 44px; height: 44px; border: 0; background: none; color: var(--ape-ink-soft); cursor: pointer; border-radius: 10px; display: grid; place-items: center; justify-self: end; }
.ape .ape-x:hover { color: var(--ape-err); background: #fbeceb; }
.ape .ape-x svg { width: 20px; height: 20px; }

.ape-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px solid var(--ape-ink); font-weight: 600; }
.ape-total b { font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ape-timer { font-size: 15px; color: var(--ape-ink-soft); }
.ape-timer b { font-variant-numeric: tabular-nums; color: var(--ape-ink); font-weight: 600; }
.ape-timer-low b { color: var(--ape-err); }
/* Nur für Bildschirmleser (Live-Region für Ansagen) */
.ape-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Sprunglink für Tastatur: unsichtbar, bis er den Fokus hat */
.ape-skip { position: absolute; left: 8px; top: 8px; z-index: 5; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ape-skip:focus-visible { width: auto; height: auto; min-height: 44px; padding: 8px 16px; clip-path: none; overflow: visible; border-radius: 12px; background: var(--ape-ink); color: var(--ape-paper); }
.ape-summary { margin: 4px 0 20px; border-radius: 12px; background: var(--ape-tint); }
.ape .ape-summary summary { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; cursor: pointer; list-style: none; font-weight: 600; }
.ape .ape-summary summary::-webkit-details-marker { display: none; }
.ape .ape-summary summary::after { content: ""; width: 8px; height: 8px; margin-left: 4px; border: solid var(--ape-ink-soft); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.ape .ape-summary[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.ape .ape-summary summary b { margin-left: auto; font-variant-numeric: tabular-nums; }
.ape .ape-summary summary:focus-visible { outline: 2px solid var(--ape-gold); outline-offset: 2px; border-radius: 12px; }
.ape-summary .ape-cart { margin: 0; padding: 0 16px 8px; }
.ape-summary li:last-child { border-bottom: 0; }
.ape-cart-static .ape-seat-label:has(.ape-dot) + .ape-type { padding-left: 20px; }
.ape-summary .ape-note { padding: 0 16px 12px; margin: 0; }
.ape-number { font-size: 15px; color: var(--ape-ink-soft); font-variant-numeric: tabular-nums; }

/* Knöpfe: gefüllt für die Hauptaktion, getönt oder schlicht für alles andere */
.ape .ape-btn { font: inherit; font-size: 17px; font-weight: 600; letter-spacing: -.01em; background: var(--ape-ink); color: #fff; border: 0; border-radius: 12px; min-height: 50px; padding: 12px 20px; cursor: pointer; width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; line-height: 1.3; text-wrap: balance; }
.ape .ape-btn:hover { background: #2b2f55; }
.ape .ape-btn:active { transform: scale(.985); }
.ape .ape-btn:disabled { background: var(--ape-taken); color: #fff; cursor: not-allowed; transform: none; }
.ape .ape-btn-ghost { background: var(--ape-tint); color: var(--ape-ink); }
.ape .ape-btn-ghost:hover { background: rgba(28, 31, 58, .12); }
.ape .ape-btn-plain { background: none; color: var(--ape-ink); min-height: 44px; padding: 8px 12px; font-weight: 500; }
.ape .ape-btn-plain:hover { background: var(--ape-tint); }
/* Wallet: schwarz wie die Abzeichen von Apple und Google */
.ape a.ape-btn { text-decoration: none; }
.ape .ape-btn-wallet, .ape .ape-btn-wallet:hover { background: #000; color: #fff; }
.ape .ape-wallet { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ape .ape-wallet .ape-btn-wallet { flex: 1 1 100%; }
/* Abzeichen unverändert und mindestens 48 px hoch (Vorgaben Apple/Google), Fokusrahmen statt Effekte */
.ape a.ape-wallet-badge { display: block; line-height: 0; border-radius: 999px; }
.ape a.ape-wallet-badge img { display: block; height: 48px; width: auto; max-width: 100%; }
.ape a.ape-wallet-badge:focus-visible { outline: 3px solid var(--ape-gold); outline-offset: 2px; }
.ape .ape-btn:focus-visible, .ape .ape-zoom button:focus-visible, .ape .ape-seg button:focus-visible, .ape .ape-x:focus-visible, .ape input:focus-visible, .ape .ape-sheet button:focus-visible, .ape .ape-help button:focus-visible { outline: 3px solid var(--ape-gold); outline-offset: 2px; }
.ape .ape-zoom button:focus-visible { outline-offset: -4px; } /* Leiste schneidet ab (overflow) */
.ape-actions { display: flex; flex-direction: column; gap: 8px; }
.ape-cta { display: flex; flex-direction: column; gap: 12px; }
.ape-cta .ape-next { margin: 0 !important; }
.ape .ape-back { margin-top: -4px; }

/* Formular */
.ape-form { display: flex; flex-direction: column; gap: 16px; }
.ape-field { display: flex; flex-direction: column; gap: 8px; font-size: 15px; font-weight: 500; }
.ape-field small { color: var(--ape-ink-soft); font-weight: 400; font-size: 15px; }
.ape-form input[type=text], .ape-form input[type=email], .ape-form input[type=tel] { font: inherit; font-size: 17px; font-weight: 400; min-height: 48px; padding: 12px 16px; border: 1px solid var(--ape-line); border-radius: 12px; background: var(--ape-paper); color: var(--ape-ink); width: 100%; }
.ape-form input:focus { border-color: var(--ape-ink); outline: none; box-shadow: 0 0 0 3px rgba(168, 130, 63, .35); }
.ape-form input:user-invalid, .ape-form input[aria-invalid="true"] { border-color: var(--ape-err); }
.ape-field .ape-field-err { color: var(--ape-err); font-weight: 600; }
.ape-form fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.ape-form legend { font-size: 15px; font-weight: 500; padding: 0; margin-bottom: 12px; }   /* Platz für die Trefferfläche des Info-Knopfs, sonst überlappt sie die erste Option */
.ape-option { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px; border: 1px solid var(--ape-line); border-radius: 12px; cursor: pointer; }
.ape-option:has(input:checked) { border-color: var(--ape-ink); box-shadow: 0 0 0 1px var(--ape-ink) inset; background: var(--ape-wash); }
.ape-option-body { display: flex; flex-direction: column; gap: 2px; }
.ape-option-body b { font-weight: 600; }
.ape-option-body small { font-size: 15px; color: var(--ape-ink-soft); line-height: 1.4; }
.ape-form input[type=radio], .ape-form input[type=checkbox] { appearance: none; -webkit-appearance: none; flex: none; width: 24px; height: 24px; margin: 0; border: 2px solid #a9a8b8; background: var(--ape-paper); display: grid; place-items: center; cursor: pointer; }
.ape-form input[type=radio] { border-radius: 50%; }
.ape-form input[type=radio]:checked { border: 7px solid var(--ape-ink); }
.ape-form input[type=checkbox] { border-radius: 7px; }
.ape-form input[type=checkbox]:checked { background: var(--ape-ink); border-color: var(--ape-ink); }
.ape-form input[type=checkbox]:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.ape-check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.4; cursor: pointer; padding: 10px 0; margin: -6px 0; }   /* Tippfläche 44 px, Abstand im Formular bleibt gleich */
.ape .ape-check a { color: var(--ape-ink); }

.ape-msg { padding: 12px 16px; border-radius: 12px; font-size: 15px; line-height: 1.4; }
.ape-msg-error { background: #fbeceb; color: var(--ape-err); }
.ape-msg-info { background: var(--ape-wash); color: var(--ape-ink); }
.ape-msg-ok { background: #e8f3ec; color: var(--ape-ok); }

.ape-bank { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; padding: 16px; background: var(--ape-wash); border-radius: 12px; font-size: 15px; }
.ape-bank dt { color: var(--ape-ink-soft); }
.ape-bank dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; user-select: all; }

/* Blatt mit den Plätzen eines Tisches (Handy und Touch) */
.ape-sheet { border: 0; padding: 0; margin: auto; width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 20px; background: var(--ape-paper); color: var(--ape-ink); box-shadow: 0 20px 60px rgba(10, 12, 30, .3); overflow: auto; font: 400 17px/1.47 var(--ape-font); letter-spacing: -.01em; }
.ape-sheet::backdrop { background: rgba(14, 16, 32, .42); }
.ape-sheet-in { display: flex; flex-direction: column; gap: 16px; padding: 20px 20px calc(20px + env(safe-area-inset-bottom)); }
.ape-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ape-sheet-head h3 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.ape-sheet-head p { margin: 4px 0 0; font-size: 15px; color: var(--ape-ink-soft); display: flex; align-items: center; gap: 8px; }
.ape .ape-sheet-close { width: 44px; height: 44px; margin: -8px -8px 0 0; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ape-ink-soft); flex: none; }
.ape .ape-sheet-close span { width: 30px; height: 30px; border-radius: 50%; background: var(--ape-tint); display: grid; place-items: center; font-size: 18px; line-height: 1; }
.ape-ring { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 8px auto; }   /* Plätze ragen 24 px über den Ring hinaus: Luft zum Info-Knopf darüber */
.ape-ring-top { position: absolute; inset: 24%; border-radius: 50%; border: 2px solid var(--ape-line); display: grid; place-items: center; text-align: center; font-size: 15px; color: var(--ape-ink-soft); line-height: 1.3; }
.ape-ring-top b { display: block; font-size: 28px; color: var(--ape-ink); letter-spacing: -.02em; }
[class*="ape-cat-"] .ape-ring-top { border-color: var(--c); }
.ape .ape-rs { position: absolute; width: 48px; height: 48px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--c, var(--ape-cat3)); background: var(--ape-paper); color: var(--ape-ink); font: 600 17px/1 var(--ape-font); cursor: pointer; display: grid; place-items: center; padding: 0; transition: background .12s, color .12s; }
.ape .ape-rs[data-state="mine"] { background: var(--ape-ink); border-color: var(--ape-gold); color: #fff; box-shadow: 0 0 0 2px var(--ape-gold); }
.ape .ape-rs[data-state="taken"], .ape .ape-rs[data-state="blocked"] { background: var(--ape-line); border-color: var(--ape-line); color: var(--ape-taken-ink); cursor: not-allowed; }
.ape .ape-rs[data-state="blocked"] { border-style: dashed; }
.ape .ape-rs svg { width: 16px; height: 16px; }
.ape-sheet-key { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; list-style: none; font-size: 13px; color: var(--ape-ink-soft); }
.ape-sheet-key li { display: flex; align-items: center; gap: 8px; }
.ape-sheet-key i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c, var(--ape-cat3)); background: var(--ape-paper); }
.ape-sheet-key i.m { background: var(--ape-ink); border-color: var(--ape-gold); }
.ape-sheet-key i.t { background: linear-gradient(45deg, transparent calc(50% - 1px), var(--ape-taken-ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) center / 8px 8px no-repeat, linear-gradient(-45deg, transparent calc(50% - 1px), var(--ape-taken-ink) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) center / 8px 8px no-repeat, var(--ape-line); border-color: var(--ape-line); }
.ape .ape-busy .ape-rs { opacity: .75; }

/* Eckdaten im Kopf: Datum, Ort mit Route, Telefon. Beantwortet die ersten Fragen vor dem ersten Klick */
.ape-shell { position: relative; }
.ape-facts { grid-area: facts; list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; color: rgba(255, 255, 255, .8); line-height: 1.4; }
.ape-facts li { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.ape-facts svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ape-gold-lt); }
.ape .ape-facts a { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .35); text-underline-offset: 3px; }
.ape .ape-facts a:hover { text-decoration-color: var(--ape-gold-lt); }
.ape .ape-event a, .ape .ape-faq a, .ape .ape-pop a { color: var(--ape-ink); font-weight: 500; text-decoration: underline; text-decoration-color: var(--ape-line); text-underline-offset: 3px; }
.ape .ape-event a:hover, .ape .ape-faq a:hover { text-decoration-color: var(--ape-gold); }

/* Tooltip im Saalplan: nur mit Maus, folgt dem Platz oder Tisch */
.ape-tip { position: absolute; left: 0; top: 0; z-index: 15; pointer-events: none; max-width: 250px; padding: 10px 12px; border-radius: 10px; background: var(--ape-ink); color: #fff; font-size: 14px; line-height: 1.4; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 8px 24px rgba(28, 31, 58, .28); }
.ape-tip[hidden] { display: none; }
.ape-tip b { font-weight: 600; font-size: 15px; }
.ape-tip-row { display: flex; align-items: center; gap: 7px; }
.ape-tip .ape-dot { width: 10px; height: 10px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .7); }
.ape-tip-soft { color: rgba(255, 255, 255, .72); }
.ape-tip-act { margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .16); color: #e9d3a6; font-weight: 500; }
.ape-tip-off { color: rgba(255, 255, 255, .55); }
.ape-tip::after { content: ""; position: absolute; left: 50%; width: 10px; height: 10px; background: inherit; transform: translateX(-50%) rotate(45deg); }
.ape-tip[data-side="top"]::after { bottom: -4px; }
.ape-tip[data-side="bottom"]::after { top: -4px; }
.ape-table-hover .ape-table-top { fill: var(--ape-wash); stroke-width: 1.4; }

/* Info-Knopf und Erklärung: ein Klick, Maus drüber oder Tastatur */
.ape .ape-info { flex: none; width: 28px; height: 28px; margin: -4px -2px -4px 2px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--ape-ink-soft); cursor: pointer; display: inline-grid; place-items: center; vertical-align: middle; position: relative; }
.ape .ape-info::before { content: ""; position: absolute; inset: -8px; }
.ape .ape-info svg { width: 18px; height: 18px; }
.ape .ape-info:hover, .ape .ape-info[aria-expanded="true"] { color: var(--ape-gold); background: var(--ape-tint); }
/* Themes setzen Rahmen auf jedes :focus (auch nach Tippen/Klick); nur Tastaturfokus soll sichtbar sein */
.ape :focus:not(:focus-visible) { outline: none; }
.ape .ape-info:focus-visible, .ape .ape-link:focus-visible, .ape .ape-faq summary:focus-visible { outline: 3px solid var(--ape-gold); outline-offset: 2px; }
.ape-pop { position: absolute; left: 0; top: 0; z-index: 30; padding: 16px; border-radius: 14px; background: var(--ape-paper); color: var(--ape-ink); border: 1px solid var(--ape-line); box-shadow: 0 16px 40px rgba(28, 31, 58, .18); font-size: 15px; line-height: 1.45; display: flex; flex-direction: column; gap: 8px; }
.ape-pop[hidden] { display: none; }
.ape-pop b { font-weight: 600; }
.ape-pop p { margin: 0; color: var(--ape-ink-soft); }
.ape-pop p + b { margin-top: 4px; }
.ape-pop::before { content: ""; position: absolute; left: var(--ape-arrow, 50%); width: 12px; height: 12px; background: inherit; border: inherit; border-width: 1px 0 0 1px; transform: translateX(-50%) rotate(45deg); }
.ape-pop[data-side="bottom"]::before { top: -7px; }
.ape-pop[data-side="top"]::before { bottom: -7px; transform: translateX(-50%) rotate(225deg); }
.ape .ape-legend li .ape-info { margin-left: -2px; }
.ape .ape-hint .ape-info { margin-top: -6px; }

/* Schrittanzeige: wo stehe ich, was kommt noch */
.ape-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; font-size: 13px; color: var(--ape-ink-soft); counter-reset: s; }
.ape-steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 3px solid var(--ape-sep); white-space: nowrap; min-width: 0; }
.ape-steps span { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--ape-tint); color: var(--ape-ink-soft); flex: none; }
.ape-steps span svg { width: 12px; height: 12px; }
.ape-steps .done { border-top-color: var(--ape-gold); }
.ape-steps .done span { background: var(--ape-gold); color: #fff; }
.ape-steps [aria-current] { border-top-color: var(--ape-ink); color: var(--ape-ink); font-weight: 600; }
.ape-steps [aria-current] span { background: var(--ape-ink); color: #fff; }

/* Leerer Warenkorb: So bestellen Sie */
.ape-how ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: how; }
.ape-how li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 2px 12px; counter-increment: how; }
.ape-how li::before { content: counter(how); grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--ape-wash); border: 1px solid var(--ape-line); display: grid; place-items: center; font-size: 14px; font-weight: 600; color: var(--ape-ink); }
.ape-how b { font-weight: 600; }
.ape-how span { font-size: 15px; color: var(--ape-ink-soft); line-height: 1.4; }
.ape-how-note { margin-top: 16px !important; padding: 12px 16px; border-radius: 10px; background: var(--ape-wash); font-size: 14px; color: var(--ape-ink-soft); }

.ape-timer-row { display: flex; align-items: center; gap: 4px; }
.ape-cap { font-size: 15px; color: var(--ape-ink-soft); }
.ape .ape-cap .ape-info { margin: -6px 0 -4px 2px; }
.ape-note-ok { color: var(--ape-ok); display: flex; align-items: center; gap: 6px; font-weight: 500; }
.ape-note-ok svg { width: 16px; height: 16px; flex: none; }
.ape .ape-note .ape-info { margin-top: -6px; }

/* Formularhilfen */
.ape-field .ape-hint-txt { font-size: 14px; line-height: 1.4; }
.ape-typo { color: var(--ape-ink) !important; font-size: 14px !important; }
.ape-typo[hidden] { display: none; }
.ape .ape-link { font: inherit; font-weight: 600; color: var(--ape-ink); background: none; border: 0; padding: 0; text-decoration: underline; text-decoration-color: var(--ape-gold); text-underline-offset: 3px; cursor: pointer; }
.ape-form legend { display: flex; align-items: center; gap: 4px; }
.ape-next { font-size: 14px; color: var(--ape-ink-soft); line-height: 1.4; margin-top: -4px !important; }

/* Statusseite: nächste Schritte und Veranstaltungsdaten */
.ape-next-steps { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; color: var(--ape-ink-soft); }
.ape-next-steps b { color: var(--ape-ink); }
.ape-event { padding: 16px; border-radius: 12px; border: 1px solid var(--ape-line); }
.ape-event-t { font-size: 13px !important; letter-spacing: .06em; text-transform: uppercase; color: var(--ape-gold-ink); font-weight: 600; margin: 0 0 8px !important; }
.ape-event dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 15px; line-height: 1.4; }
.ape-event dt { color: var(--ape-ink-soft); }
.ape-event dd { margin: 0; overflow-wrap: anywhere; }
/* Telefon und E-Mail stehen untereinander: jede Zeile als eigene Tippfläche von mindestens 24 px (WCAG 2.5.8) */
.ape .ape-event dd a { display: inline-block; padding: 2px 0; }

/* Hilfe-Panel: rechts als Seitenpanel, auf dem Handy als Blatt von unten */
.ape-help { border: 0; padding: 0; margin: 0 0 0 auto; width: min(440px, 100vw); height: 100dvh; max-width: 100vw; max-height: 100dvh; background: var(--ape-paper); color: var(--ape-ink); box-shadow: -12px 0 48px rgba(10, 12, 30, .22); overflow: auto; overscroll-behavior: contain; font: 400 17px/1.47 var(--ape-font); letter-spacing: -.01em; }
.ape-help::backdrop { background: rgba(14, 16, 32, .32); }
.ape-help[open] { animation: ape-in .26s cubic-bezier(.2, .8, .2, 1); }
.ape-help-in { display: flex; flex-direction: column; gap: 20px; padding: 0 24px calc(28px + env(safe-area-inset-bottom)); }
.ape-help .ape-sheet-head { position: sticky; top: 0; margin: 0 -24px; padding: 20px 24px 12px; background: var(--ape-paper); border-bottom: 1px solid var(--ape-sep); z-index: 1; }
.ape-help-contact { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 14px; background: var(--ape-wash); }
.ape-help-contact p:not(.ape-event-t) { margin: 0; font-size: 15px; color: var(--ape-ink-soft); line-height: 1.45; }
.ape .ape-help-contact .ape-btn { text-decoration: none; justify-content: flex-start; min-height: 48px; background: var(--ape-paper); box-shadow: 0 0 0 1px var(--ape-line) inset; }
.ape .ape-help-contact .ape-btn svg { width: 20px; height: 20px; color: var(--ape-gold); }
.ape .ape-help-link { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; text-align: left; font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ape-ink); min-height: 36px; position: relative; }
.ape .ape-help-link::after { content: ""; position: absolute; inset: -4px 0; }   /* Trefferfläche 44 px */
.ape .ape-help-link svg { width: 18px; height: 18px; color: var(--ape-gold); }
.ape .ape-help-link:hover { text-decoration: underline; text-decoration-color: var(--ape-gold); }
.ape .ape-how .ape-help-link { margin-top: 12px; }
@keyframes ape-in { from { transform: translateX(32px); opacity: .5; } to { transform: none; opacity: 1; } }
.ape-faq { margin: 0; }
.ape-faq details { border-bottom: 1px solid var(--ape-sep); }
.ape .ape-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 48px; padding: 12px 0; cursor: pointer; list-style: none; font-weight: 600; }
.ape .ape-faq summary::-webkit-details-marker { display: none; }
.ape .ape-faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-right: 6px; border: solid var(--ape-ink-soft); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.ape .ape-faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.ape-faq details p { margin: 0 0 16px; color: var(--ape-ink-soft); font-size: 15px; line-height: 1.5; max-width: 65ch; }
.ape .ape-faq summary { font-size: 16px; }

/* Hinweis auf den Entwickler: klein, am Ende, ohne Werbeton */
.ape-credit { margin: 16px 0 0; font-size: 13px; color: #5c5f7c; letter-spacing: .01em; text-align: right; }
.ape .ape-credit a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.ape .ape-credit a:hover { color: var(--ape-ink-soft); border-bottom-color: currentColor; }

/* Leiste mit Summe und „Weiter“: auf dem Handy schwebend unten, auf dem Desktop fester Fuß der Bestellspalte */
.ape-bar { display: none; }
.ape-bar-sum { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.ape-bar-sum span { font-size: 13px; color: var(--ape-ink-soft); }
.ape-bar-sum b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ape .ape-bar .ape-btn { width: auto; flex: none; padding: 12px 24px; }

/* Desktop: ein App-Fenster. Plan links in voller Höhe, Bestellung rechts mit eigenem Scrollbereich */
@container (min-width: 861px) {
  .ape-shell { display: grid; grid-template-columns: minmax(0, 1fr) 400px; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "head head" "plan side" "plan bar"; height: clamp(640px, calc(100dvh - 40px), 960px); border: 1px solid var(--ape-line); border-radius: 20px; background: var(--ape-paper); box-shadow: 0 1px 2px rgba(28, 31, 58, .05), 0 16px 48px rgba(28, 31, 58, .09); }
  .ape-grid { display: contents; }
  .ape-head { grid-area: head; margin: -1px -1px 0; border-radius: 20px 20px 0 0; padding: 20px 24px 16px; }
  /* Mit Flyer: eigene Zeile oben, das Fenster wächst um die Bannerhöhe, damit der Plan gleich groß bleibt */
  .ape-shell:has(> .ape-flyer) { grid-template-rows: auto auto minmax(0, 1fr) auto; grid-template-areas: "flyer flyer" "head head" "plan side" "plan bar"; height: clamp(900px, calc(100dvh + 220px), 1220px); }
  .ape .ape-flyer { grid-area: flyer; margin: -1px -1px 0; width: auto; border-radius: 20px 20px 0 0; isolation: isolate; }
  .ape-flyer::before { content: ""; position: absolute; inset: -40px; z-index: -1; background: var(--ape-flyer) center 18% / cover no-repeat; filter: blur(28px) brightness(.5) saturate(1.2); }
  .ape-flyer-crop { height: 260px; width: auto; margin: 0 auto; box-shadow: 0 0 48px rgba(0, 0, 0, .55); }
  .ape-flyer + .ape-head { margin-top: 0; border-radius: 0; }
  .ape-plan { grid-area: plan; display: flex; flex-direction: column; min-height: 0; border: 0; border-radius: 0 0 0 20px; padding: 16px 20px 16px; }
  .ape-stage { flex: 1; min-height: 0; }
  .ape-scroll { height: 100%; aspect-ratio: auto; max-height: none; }
  .ape-side { grid-area: side; position: static; min-height: 0; border: 0; border-left: 1px solid var(--ape-line); border-radius: 0 0 20px 0; padding: 20px 24px 24px; overflow: auto; overscroll-behavior: contain; }
  .ape-shell:has(.ape-bar:not(:empty)) .ape-side { border-radius: 0; }
  .ape-side [data-go="details"] { display: none; }
  .ape-bar:not(:empty) { grid-area: bar; display: flex; align-items: center; gap: 16px; padding: 16px 24px; border-left: 1px solid var(--ape-line); border-top: 1px solid var(--ape-line); border-radius: 0 0 20px 0; background: var(--ape-paper); }
  .ape-cta { position: sticky; bottom: 0; z-index: 2; margin: 0 -24px; padding: 12px 24px 16px; background: var(--ape-paper); border-top: 1px solid var(--ape-sep); box-shadow: 0 -8px 16px -12px rgba(28, 31, 58, .18); gap: 8px; }
  .ape-cta .ape-total { border-top: 0; padding-top: 0; }
  .ape-cta .ape-next { font-size: 13px; }
}

@container (max-width: 860px) {
  .ape-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  /* Zoom-Knöpfe in einer Reihe, sonst verdecken sie auf dem Handy die halbe Planhöhe */
  .ape .ape-zoom { flex-direction: row; }
  .ape .ape-zoom button + button { border-top: 0; border-left: 1px solid var(--ape-sep); }
  .ape-side { position: static; }
  .ape-plan { padding: 12px; border-radius: 16px; }
  /* Legende als Liste: Name links, Preis rechtsbündig untereinander. Nur Auswahl und Vergeben teilen sich eine Zeile */
  .ape-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; } /* 1fr allein wächst auf 320 px über den Rand */
  .ape-legend li { white-space: normal; min-width: 0; }
  .ape-legend li:has(b) { grid-column: 1 / -1; }
  .ape-legend li b { margin-left: auto; padding-left: 8px; white-space: nowrap; }
  .ape-shell:is([data-step="details"], [data-step="status"], [data-step="confirm"], [data-step="processing"]) .ape-plan { display: none; }
  .ape-shell:is([data-step="details"], [data-step="status"], [data-step="confirm"], [data-step="processing"]) .ape-side { border: 0; padding: 0; }
  .ape-bar:not(:empty) { display: flex; position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 20; margin-top: 16px; padding: 8px 8px 8px 16px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border: 1px solid var(--ape-line); border-radius: 18px; box-shadow: 0 8px 28px rgba(28, 31, 58, .16); align-items: center; gap: 16px; }
  .ape-side [data-go="details"] { display: none; }
  .ape-facts { flex-direction: column; gap: 8px; }
  .ape .ape-help-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ape .ape-help-btn { padding: 0; width: 44px; height: 44px; justify-content: center; }
  .ape-steps li { flex: 1 1 auto; }   /* Breite nach Inhalt: „Ihre Daten“ stößt auf 320 px sonst an die 3 */
}
@media (max-width: 600px) {
  .ape-sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 92dvh; }
  .ape-sheet[open] { animation: ape-up .28s cubic-bezier(.2, .8, .2, 1); }
  .ape-help { width: 100%; height: auto; max-height: 94dvh; margin: auto 0 0; border-radius: 20px 20px 0 0; box-shadow: 0 -12px 48px rgba(10, 12, 30, .22); }
  .ape-help[open] { animation: ape-up .28s cubic-bezier(.2, .8, .2, 1); }
}
/* Unter 375 px (iPhone SE) bricht „Fertig · 2 Plätze an diesem Tisch“ sonst zweizeilig um */
@media (max-width: 374px) { .ape-wide { display: none; } }
@keyframes ape-up { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ape-flyer-crop img { transition: none; } .ape .ape-flyer:hover .ape-flyer-crop img { transform: none; } .ape-help[open] { animation: none; } .ape-seat, .ape .ape-rs { transition: none; } .ape .ape-faq summary::after, .ape .ape-summary summary::after { transition: none; } .ape-sheet[open] { animation: none; } .ape .ape-btn:active { transform: none; } }

/* Status Vorschau: Hinweis über dem Saalplan, und was Kunden ohne Testlink sehen */
.ape .ape-preview-banner { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--ape-radius); background: #fff4dc; border: 1px solid #e7c77e; color: #5a4213; font-size: 15px; }
.ape .ape-preview-banner strong { display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 99px; background: #5a4213; color: #fff4dc; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.ape .ape-soon { margin: 0; padding: 3rem 1rem; text-align: center; font-size: 20px; color: var(--ape-ink-soft); }
