/* SGV Overlay-CSS — Port der tk-*-Bloecke aus public/base.css (Tokens substituiert).
   MASTER: assets-build/overlay.css */
/* ---------- Ticket-Overlay (Demo, Step 1) ---------- */
.tk-overlay {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(5,20,50,.88); backdrop-filter: blur(8px);
  align-items: center; justify-content: center; padding: 1rem;
}
.tk-overlay.open { display: flex; }
.tk-card {
  background: #fff; color: var(--color-ink); width: min(520px, 96vw);
  padding: clamp(1.4rem, 4vw, 2.4rem);
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 0 100%, 0 22px);
  animation: tkIn .32s cubic-bezier(.2,.9,.3,1.2);
  /* Lange Formulare (viele Tickets/Kinder): Karte deckelt auf Viewport-Hoehe,
     der Rest scrollt — dvh statt vh wegen iOS-Toolbar */
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto; overscroll-behavior: contain;
}
/* Personen-Liste scrollt intern, damit Checkboxen + Reservieren-Button sichtbar bleiben */
#tkPersonen {
  max-height: min(46dvh, 480px); overflow-y: auto; overscroll-behavior: contain;
  padding-right: .5rem; scrollbar-width: thin; scrollbar-color: #b9cbdf #eef4fb;
}
/* Auf macOS blendet das System die Scrollleiste aus, solange nicht gescrollt wird —
   ohne Hinweis uebersieht man die weiteren Personen unter der Kante komplett. */
#tkPersonen.hat-mehr { border-bottom: 1px dashed #b9cbdf; }
.tk-mehr-hinweis { display: none; margin-top: .45rem; font-size: .74rem; color: #5c7086; }
#tkPersonen.hat-mehr + .tk-mehr-hinweis { display: block; }
#tkPersonen::-webkit-scrollbar { width: 8px; }
#tkPersonen::-webkit-scrollbar-track { background: #eef4fb; }
#tkPersonen::-webkit-scrollbar-thumb { background: #b9cbdf; border-radius: 4px; }
/* Mobil: EIN Scroll-Kontext (die Karte) statt verschachtelter Touch-Scrollbereiche */
@media (max-width: 640px) {
  #tkPersonen { max-height: none; overflow: visible; padding-right: 0; }
}
@keyframes tkIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.tk-card .eyebrow { color: var(--color-brand); }
.tk-card h3 { font-weight: 900; text-transform: uppercase; font-size: 1.5rem; margin: .35rem 0 1.1rem; }
.tk-steps { display: flex; gap: .4rem; margin-bottom: 1.2rem; font-weight: 900; color: var(--color-accent); font-size: 1.1rem; }
.tk-steps span.off { color: #c9d6e6; }
.tk-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.tk-row label { font-weight: 600; }
.tk-stepper { display: flex; align-items: center; gap: .8rem; }
.tk-stepper button {
  width: 42px; height: 42px; font-size: 1.4rem; font-weight: 700;
  background: var(--color-surface-raised); color: #fff; border-radius: 4px;
}
.tk-stepper .tk-count { font-weight: 900; font-size: 1.5rem; min-width: 2ch; text-align: center; }
/* `align-items: flex-start`, damit das Kaestchen bei mehrzeiligem Text oben
   neben der ersten Zeile steht statt in der Mitte des Absatzes zu schweben. */
.tk-crew-toggle { display: flex; align-items: flex-start; gap: .65rem; margin-bottom: 1rem; font-weight: 600; cursor: pointer; user-select: none; line-height: 1.45; }
/* `flex: 0 0 20px` haelt das Kaestchen quadratisch, egal was der Flex-Kontext
   sonst mit ihm anstellen will. */
.tk-crew-toggle input { flex: 0 0 20px; width: 20px; height: 20px; margin-top: .12rem;
  accent-color: var(--color-brand); }
.tk-crew-panel { display: none; background: #eef4fb; padding: 1rem; margin-bottom: 1.1rem; }
.tk-crew-panel.open { display: block; }
.tk-crew-panel .tk-tabs { display: flex; gap: .5rem; margin-bottom: .8rem; }
.tk-crew-panel .tk-tabs button {
  flex: 1; padding: .6rem; font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em;
  background: #fff; color: var(--color-brand); border: 1.5px solid var(--color-brand);
}
.tk-crew-panel .tk-tabs button.active { background: var(--color-brand); color: #fff; }
.tk-crew-panel input[type=text], .tk-crew-panel select {
  width: 100%; padding: .7rem .8rem; font-family: inherit; font-size: .95rem;
  border: 1.5px solid #b9cbdf; background: #fff;
}
.tk-block-hint { font-size: .78rem; color: #4a5b6e; margin-top: .6rem; }
.tk-block-hint a { color: var(--color-brand); font-weight: 600; }
.tk-invite-note { font-size: .8rem; font-weight: 700; color: var(--color-brand); margin-top: .6rem; }
.tk-submit { width: 100%; text-align: center; }
/* Die Haupt-Aktion bleibt am unteren Rand der Karte stehen, statt aus dem Bild
   zu scrollen. Gemessen auf 375x667 mit eingeschalteter Crew: Der Knopf lag bei
   y=838 und war ohne Scrollen INNERHALB der Karte nicht auffindbar — die Karte
   scrollt intern, was man ihr nicht ansieht. Betrifft beide Schritte.
   Der weisse Hintergrund gehoert AUF DIE HUELLE, niemals auf den Knopf selbst —
   sonst uebermalt er dessen blaue Flaeche und der weisse Schriftzug steht auf
   Weiss. Genau das war beim ersten Versuch passiert. */
.tk-card .tk-btnrow {
  position: sticky; bottom: 0; z-index: 3; background: #fff;
  padding-top: .75rem; padding-bottom: .75rem;
  box-shadow: 0 -12px 16px -10px rgba(2,12,35,.28);
}

/* ===== Einladungs-Banner (?block=…) ===== */
.tk-invite-bar {
  position: fixed; left: 0; right: 0; top: 0; z-index: 90;
  display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap;
  padding: .75rem 1.2rem; background: var(--color-surface-raised); color: #fff; font-weight: 700; font-size: .88rem;
  box-shadow: 0 4px 16px rgba(2,12,35,.25);
}
.tk-invite-bar b { color: #fff; }
.tk-invite-bar .btn-primary { padding: .55rem 1.1rem; font-size: .8rem; }
.tk-invite-bar .tk-invite-close {
  background: none; color: rgba(255,255,255,.6); font-size: 1.3rem; line-height: 1; padding: 0 .3rem;
}
@media (max-width: 640px) { .tk-invite-bar { font-size: .8rem; padding: .65rem .9rem; } }

/* ===== Teilen-Block nach Block-Gruendung (Schritt 3) ===== */
.tk-share { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1.5px solid #e3ebf4; text-align: left; }
.tk-share-label { font-weight: 700; font-size: .88rem; color: var(--color-ink); margin-bottom: .6rem; }
.tk-share-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.tk-share-row input {
  flex: 1; min-width: 180px; padding: .6rem .7rem; font-size: .85rem; font-family: inherit;
  border: 1.5px solid #b9cbdf; background: #f4f7fb; color: var(--color-ink);
}
.tk-share-copy, .tk-share-native {
  background: var(--color-brand); color: #fff; font-weight: 700; font-size: .8rem;
  padding: .6rem 1rem; white-space: nowrap;
}
.tk-share-wa {
  display: inline-block; margin-top: .7rem; color: #1a7d3e; font-weight: 700; font-size: .84rem;
  text-decoration: none;
}
.tk-share-wa:hover { text-decoration: underline; }
.tk-demo-note { text-align: center; font-size: .72rem; color: #8296ab; margin-top: .8rem; text-transform: uppercase; letter-spacing: .1em; }
/* Trefferflaeche 44x44 — mit dem Daumen sonst kaum zu treffen (vorher 14x26). */
.tk-close {
  position: absolute; top: 6px; right: 8px; background: none; font-size: 1.6rem;
  color: #8296ab; line-height: 1; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.tk-close:hover, .tk-close:focus-visible { color: var(--color-ink, #1B2733); }
.tk-card-wrap { position: relative; }


body.sgv-ausverkauft [data-open-ticket][disabled] { opacity: .55; cursor: not-allowed; }

/* ===== Overlay: Buchungsformular ===== */
.tk-avail { margin-top: .8rem; text-align: center; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--color-brand); }
.tk-person { border: 1.5px solid #e3ebf4; padding: .9rem 1rem 1rem; margin-bottom: .8rem;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.tk-person legend { font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  font-size: .66rem; color: var(--color-brand); padding: 0 .4rem; }
/* Ankreuzkaestchen und Auswahlknoepfe ausdruecklich ausgenommen: Ohne diese
   Einschraenkung erfasste die Regel auch sie und zog sie auf volle Breite. */
.tk-person input:not([type=checkbox]):not([type=radio]),
.tk-crew-panel input:not([type=checkbox]):not([type=radio]),
.tk-crew-panel select {
  width: 100%; border: 1.5px solid #d5e2ef; padding: .7rem .8rem; font: inherit; font-size: .9rem;
  color: var(--color-ink); background: #fff; }
.tk-person input:focus, .tk-crew-panel input:focus, .tk-crew-panel select:focus {
  outline: 2px solid var(--color-accent); outline-offset: -1px; }
.tk-person input + .tk-duo, .tk-person input { margin-bottom: .55rem; }
.tk-duo { display: grid; grid-template-columns: 110px 1fr; gap: .55rem; }
.tk-duo input { margin-bottom: 0; }
.tk-error { color: #b02a2a; font-size: .82rem; font-weight: 700; min-height: 1.2em; margin: .4rem 0; }
.tk-btnrow { display: flex; gap: .7rem; align-items: stretch; }
.tk-btnrow .tk-submit { flex: 1; }
.tk-back { background: #f2f6fb; border: 1.5px solid #d5e2ef; color: var(--color-brand); font: inherit;
  font-weight: 700; padding: 0 1rem; cursor: pointer; }
.tk-optin { font-size: .74rem !important; line-height: 1.5; }
.tk-verlosung { font-size: .78rem; line-height: 1.55; color: var(--color-ink); background: #eef4fb;
  border-left: 3px solid var(--color-accent); padding: .6rem .8rem; margin: .2rem 0 .6rem; }
.tk-verlosung b { color: var(--color-brand); }
.tk-privacy { text-align: center; font-size: .68rem; color: #8296ab; margin-top: .5rem; line-height: 1.5; }
.tk-privacy a { color: var(--color-brand); }
.tk-kid { background: #f7fafd; }
.tk-kid input[name^=plz] { margin-bottom: .55rem; }
.tk-kid-einlauf { font-size: .78rem !important; margin-bottom: 0 !important; }
.tk-kid-einlauf input { width: 18px !important; height: 18px !important; border: none !important;
  padding: 0 !important; margin-bottom: 0 !important; accent-color: var(--color-brand); }
.tk-leader { border: 1.5px solid #d5e2ef; background: #f4f7fb; padding: .9rem 1rem 1rem; margin-bottom: .8rem;
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px); }
.tk-leader legend { font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
  font-size: .66rem; color: var(--color-brand); padding: 0 .4rem; background: #f4f7fb; }
.tk-leader input[type=text], .tk-leader input[type=tel] {
  width: 100%; border: 1.5px solid #d5e2ef; padding: .7rem .8rem; font: inherit; font-size: .9rem;
  color: var(--color-ink); background: #fff; margin-bottom: .55rem; }
.tk-leader .tk-duo { grid-template-columns: 1fr 1fr; }
.tk-leader-confirm { font-size: .78rem !important; line-height: 1.5; margin-bottom: 0 !important; }
.tk-done p { margin-top: .8rem; line-height: 1.6; font-size: .95rem; color: var(--color-ink); }


/* Stepper an den Grenzen: sichtbar deaktiviert (Fix Arthur 05.08.) */
.tk-stepper button[disabled] { opacity: .3; cursor: not-allowed; }

/* Fixes (Arthur 05.08., Buchungsformular Schritt 1):
   1. Barrierefrei-Hinweis klebte an der Crew-Zeile (bes. mit Kinder-Option) */
#tkOverlay [data-step="1"] .tk-block-hint { margin: .9rem 0; }
#tkOverlay #tkKidsHint { margin-top: .5rem; }
/* 2. +/− optisch mittig im blauen Kasten (Titillium setzt Glyphen hoch) */
.tk-stepper button {
  display: flex; align-items: center; justify-content: center;
  line-height: 1; padding: 0 0 3px;
}
