/* =========================================================================
   Ticketsystem Gymnasium Landsberg – öffentliche Buchungsseite
   Baut auf base.css auf (Tokens + Komponenten). Mobile first, 320 px bis Desktop.
   Farbkonzept der Schule (Blau #00549f, Orange #f5a623, Verlauf im Kopf) in kompakten Proportionen:
   14 px Grundschrift, 13/12 px Nebentexte, feine Linien.
   ========================================================================= */

/* ---------- Grundgerüst ---------- */
body.public {
  --c-faint: #f5f8fb;
  min-height: 100vh; display: flex; flex-direction: column; overflow-wrap: break-word;
}
body.public .container {
  max-width: 960px;
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}
body.public .container--narrow { max-width: 752px; }
.public :focus-visible { outline: 2px solid var(--c-primary); outline-offset: 2px; border-radius: 4px; }
.public .btn:focus-visible { border-radius: var(--radius-sm); }
.icon { width: 16px; height: 16px; flex: none; vertical-align: -0.18em; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100; padding: 8px 12px; border-radius: var(--radius-sm);
  background: #fff; color: var(--c-primary-dark); font-weight: 600; box-shadow: var(--shadow-lg);
}
.skip-link:focus { top: 8px; }
html:not(.js) .js-only { display: none !important; }
html.js .nojs-only { display: none !important; }
.hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.wrap-anywhere { overflow-wrap: anywhere; }
.optional { font-weight: 400; color: var(--c-muted); }
.sep { color: #b3bcc9; }
.public .card { box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.public .btn { font-weight: 500; }
.public .btn .icon { width: 15px; height: 15px; }
.public .btn--ghost { color: var(--c-primary); border-color: #c5d3e3; }
.public .btn--ghost:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); border-color: #a9c3de; }
.public .btn.is-disabled { color: var(--c-muted); background: #fff; border-color: var(--c-line); pointer-events: none; }
.linkbtn { display: inline; padding: 0; border: 0; background: none; font: inherit; font-size: .8125rem; color: var(--c-primary); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: var(--c-primary-dark); }
@media (pointer: coarse) {
  .linkbtn { padding: 10px 6px; margin: -10px -6px; }
}

/* ---------- Kopf: Schulblau mit orangefarbenem Akzent, schmal ---------- */
.site-header {
  padding-top: env(safe-area-inset-top); color: #fff; background-color: var(--c-primary);
  background-image:
    radial-gradient(170px circle at 100% 0, rgba(245, 166, 35, .95) 0, rgba(245, 166, 35, .5) 42%, rgba(245, 166, 35, 0) 100%),
    radial-gradient(150px circle at calc(100% - 150px) 140%, rgba(255, 255, 255, .13) 0, rgba(255, 255, 255, .13) 99%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(100deg, #003f78 0%, #00549f 52%, #2b6cb0 100%);
  background-repeat: no-repeat;
}
.site-header__inner { display: flex; align-items: center; min-height: 54px; }
.brand { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #fff; text-decoration: none; border-radius: var(--radius-sm); }
.brand:hover { color: #fff; }
.public .brand:focus-visible { outline-color: #fff; }
.brand__mark {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-right: 2px;
  border-radius: 7px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: #fff;
}
.brand__mark .icon { width: 16px; height: 16px; }
.brand__name { font-size: .9375rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; }
.brand__sub { font-size: .9375rem; color: #dbe8f5; padding-left: 9px; border-left: 1px solid rgba(255, 255, 255, .4); line-height: 1.1; }
.public .brandbar { height: 2px; background: linear-gradient(90deg, #f5a623 0%, #ffc65c 50%, #f5a623 100%); }
@media (max-width: 479px) {
  .site-header {
    background-image:
      radial-gradient(84px circle at 100% 0, rgba(245, 166, 35, .95) 0, rgba(245, 166, 35, .5) 42%, rgba(245, 166, 35, 0) 100%),
      linear-gradient(100deg, #003f78 0%, #00549f 60%, #2b6cb0 100%);
  }
}
/* ---------- Inhalt / Fuß ---------- */
.site-main { flex: 1 0 auto; padding-top: 20px; padding-bottom: 40px; }
.site-main:focus { outline: none; }
.site-main > * + * { margin-top: 14px; }
.page-title { font-size: 1.25rem; font-weight: 600; margin: 0; letter-spacing: -.015em; }
.lead { color: var(--c-muted); margin: 2px 0 0; font-size: .875rem; }
.intro { margin-bottom: 2px; }
.pagehead { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 16px; }
.pagehead__meta { margin: 0; font-size: .8125rem; color: var(--c-muted); }
.backlink { margin: 0 0 -4px; font-size: .8125rem; }
.backlink a { display: inline-flex; align-items: center; gap: 5px; min-height: 28px; text-decoration: none; color: var(--c-primary); font-weight: 500; }
.backlink a:hover { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
.backlink .icon { width: 14px; height: 14px; }
.backlink--bottom { margin: 18px 0 0; }
.backlink--form { max-width: 480px; margin-left: auto; margin-right: auto; }
@media (pointer: coarse) { .backlink a { min-height: 44px; } .backlink { margin-top: -8px; } .backlink--bottom { margin-top: 10px; } }
@media (min-width: 640px) { .site-main { padding-top: 28px; padding-bottom: 56px; } .page-title { font-size: 1.375rem; } }

.site-footer {
  padding: 14px 0 calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--c-line); background: #fff;
  color: var(--c-muted); font-size: .75rem; text-align: center;
}
.site-footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 4px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 8px; color: var(--c-primary); text-decoration: none; font-size: .8125rem; font-weight: 500; }
.site-footer__nav a:hover { color: var(--c-primary-dark); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 419px) { .site-footer__nav a:first-child { display: none; } }
.site-footer__addr { margin: 2px 0 0; }
.site-footer__intern { margin: 0; }
.site-footer__intern a { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 12px; color: #6b7686; text-decoration: none; }
.site-footer__intern a:hover { text-decoration: underline; }

/* ---------- Veranstaltungsliste (Startseite): eine Zeile je Termin ---------- */
.public .eventlist { padding: 0; overflow: hidden; }
.eventrow {
  position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) 16px; gap: 6px 12px; align-items: center;
  padding: 12px 12px 12px 14px; transition: background .15s;
}
.eventrow + .eventrow { border-top: 1px solid var(--c-line); }
.eventrow > .datechip { grid-row: 1 / span 2; align-self: start; }
.eventrow__main { min-width: 0; }
.eventrow .event__title { font-size: .9375rem; }
.eventrow__badges { grid-column: 2; grid-row: 2; }
.eventrow__badges:empty { display: none; }
.eventrow__chev { grid-column: 3; grid-row: 1 / span 2; width: 16px; height: 16px; color: #8d9aad; transition: transform .15s, color .15s; }
.eventrow__link { color: var(--c-ink); text-decoration: none; }
.eventrow__link::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.public .eventrow__link:focus-visible { outline: none; }
.eventrow__link:focus-visible::after { outline: 2px solid var(--c-primary); outline-offset: -2px; border-radius: var(--radius-sm); }
.eventrow:hover { background: #f5f9fd; }
.eventrow:hover .eventrow__link { color: var(--c-primary); }
.eventrow:hover .eventrow__chev { color: var(--c-primary); transform: translateX(2px); }
.eventrow:active { background: var(--c-primary-soft); }
.eventrow[data-status="closed"] .eventrow__link { color: var(--c-muted); }
@media (min-width: 600px) {
  .eventrow { grid-template-columns: 44px minmax(0, 1fr) auto 16px; gap: 0 14px; padding: 12px 14px 12px 18px; }
  .eventrow > .datechip, .eventrow__chev { grid-row: auto; align-self: center; }
  .eventrow__badges { grid-column: 3; grid-row: auto; justify-content: flex-end; max-width: 250px; }
  .eventrow__chev { grid-column: 4; }
}

/* ---------- Veranstaltung: gemeinsame Bausteine (Detailseite, Assistent, Buchung) ---------- */
.event__head { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; align-items: start; }
.event__headtext { min-width: 0; }
.event__title { font-size: 1rem; font-weight: 600; color: var(--c-ink); line-height: 1.3; margin: 0; letter-spacing: -.01em; overflow-wrap: anywhere; hyphens: auto; }
.event__meta { margin: 2px 0 0; color: var(--c-muted); font-size: .8125rem; line-height: 1.5; }
.event__aside { grid-column: 2; min-width: 0; display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.event__aside:empty { display: none; }
.event__badges { display: flex; flex-wrap: wrap; gap: 4px; }
.event__badges:empty { display: none; }
.event__badges .badge { white-space: normal; }
[data-status="upcoming"] .event__badges:not(.eventrow__badges) .badge--ok { background: #eef1f6; color: var(--c-text); }
@media (min-width: 600px) {
  .event__head { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 0 14px; }
  .event__aside { grid-column: 3; flex-direction: column; align-items: flex-end; gap: 6px; margin-top: 1px; }
  .event__badges { justify-content: flex-end; }
}

.datechip {
  flex: none; width: 44px; display: flex; flex-direction: column; align-items: stretch; overflow: hidden;
  border-radius: 8px; background: #fff; border: 1px solid #c5d3e3; line-height: 1; text-align: center;
}
.datechip__month { display: block; padding: 3px 0; background: var(--c-primary); color: #fff; font-size: .625rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.datechip__day { display: block; padding: 5px 0 6px; font-size: 1.0625rem; font-weight: 650; color: var(--c-ink); font-variant-numeric: tabular-nums; }

/* ---------- Veranstaltungsseite ---------- */
.public .event--detail { padding: 0; overflow: hidden; }
.event--detail .event__head { padding: 16px; }
.event--detail .event__title { font-size: 1.125rem; letter-spacing: -.015em; }
.event--detail .event__meta { font-size: .875rem; color: var(--c-text); }
.event__info { grid-column: 1 / -1; min-width: 0; margin-top: 10px; }
.factlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: .8125rem; color: var(--c-text); }
.factlist li { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.factlist li > span { min-width: 0; overflow-wrap: anywhere; }
.factlist .icon { width: 15px; height: 15px; margin-top: 2px; color: var(--c-primary); }
.factlist strong { color: var(--c-ink); font-weight: 600; }
.event__desc { margin: 12px 0 0; font-size: .875rem; color: var(--c-text); max-width: 68ch; }
.event__section { padding: 14px 16px 6px; border-top: 1px solid var(--c-line); }
.sectionlabel { margin: 0 0 4px; font-size: .6875rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--c-primary); }
@media (min-width: 600px) {
  .event--detail .event__head { padding: 20px 22px; }
  .event--detail .event__title { font-size: 1.25rem; }
  .event__info { grid-column: 2 / -1; }
  .event__section { padding: 16px 22px 8px 80px; }
}

/* Vorverkauf: eine Zeile je Buchungsgruppe */
.rounds { list-style: none; margin: 0; padding: 0; }
.round { display: flex; align-items: baseline; gap: 2px 10px; padding: 8px 0; font-size: .8125rem; }
.round + .round { border-top: 1px solid var(--c-line); }
.round__dot { flex: none; align-self: flex-start; width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: #c3cad6; }
.round__main { flex: 1 1 auto; min-width: 0; }
.round__name { font-weight: 600; color: var(--c-ink); overflow-wrap: anywhere; margin-right: 4px; }
.round__desc { display: block; color: var(--c-muted); }
.round__state { flex: none; max-width: 58%; text-align: right; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.codechip {
  display: inline-flex; align-items: center; gap: 4px; padding: 0 7px; border-radius: 999px; vertical-align: 1px;
  background: var(--c-accent-soft); color: #7a4700; font-size: .6875rem; font-weight: 500; line-height: 1.65; white-space: nowrap;
}
.codechip .icon { width: 11px; height: 11px; vertical-align: 0; }
.lockhint { display: inline-flex; vertical-align: -2px; margin-left: 2px; color: var(--c-accent-dark); cursor: help; }
.lockhint .icon { width: 13px; height: 13px; }
[data-state="open"] > .round__dot { background: var(--c-ok); box-shadow: 0 0 0 3px var(--c-ok-soft); }
[data-state="upcoming"] > .round__dot { background: #fff; box-shadow: inset 0 0 0 2px var(--c-accent); }
[data-state="soldout"] > .round__dot { background: var(--c-err); }
[data-state="paused"] > .round__dot { background: #fff; box-shadow: inset 0 0 0 1.5px #a7b1c0; }
[data-state="open"] > .round__state, [data-state="open"] > .roundcard__state { color: var(--c-ok); font-weight: 500; }
[data-state="upcoming"] > .round__state { color: var(--c-warn); }
[data-state="soldout"] > .round__state, [data-state="soldout"] > .roundcard__state { color: var(--c-err); }
.round[data-state="ended"] .round__name, .round[data-state="soldout"] .round__name { color: var(--c-muted); font-weight: 400; }
.countdown { font-variant-numeric: tabular-nums; white-space: nowrap; }
.countdown:empty { display: none; }
@media (max-width: 479px) {
  .round { flex-wrap: wrap; }
  .round__main { flex-basis: calc(100% - 20px); }
  .round__state { max-width: none; text-align: left; padding-left: 18px; }
}

/* Aktionszeile der Veranstaltungsseite */
.event__cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 16px; padding: 12px 16px; border-top: 1px solid var(--c-line); background: #f8fafc; }
.cta-note { flex: 1 1 240px; display: flex; gap: 7px; align-items: flex-start; margin: 0; font-size: .8125rem; color: var(--c-muted); }
.cta-note > span { min-width: 0; }
.cta-note .icon { display: none; width: 15px; height: 15px; margin-top: 2px; }
.cta-note--upcoming { color: var(--c-ink); }
.cta-note--upcoming .icon { display: block; color: var(--c-accent-dark); }
.cta-note--upcoming .countdown { color: var(--c-warn); font-weight: 600; }
.cta-note--soldout { color: var(--c-err); }
.event__ctabtns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.public .btn--cta { min-height: 40px; padding: 8px 18px; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 63, 120, .25); }
.cta-wait { display: none; }
[data-status="upcoming"] .cta-wait { display: inline-flex; }
@media (max-width: 479px) {
  .event__ctabtns { flex: 1 1 100%; }
  [data-status="upcoming"] .cta-wait { display: none; }
  .event__ctabtns .btn { flex: 1 1 auto; }
  .public .btn--cta { min-height: 44px; }
}
@media (min-width: 600px) { .event__cta { padding: 14px 22px; } }
/* Hinweisseiten und -zeilen */
.notice-page { text-align: center; padding: 28px 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.notice-page:focus { outline: none; }
.notice-page h1, .notice-page h2 { font-size: 1.0625rem; margin-bottom: 6px; }
.notice-page p { max-width: 52ch; margin: 0 auto 8px; color: var(--c-text); }
.notice-page p:last-child { margin-bottom: 0; }
.notice-page .notice-page__actions { margin-top: 16px; }
.notice-page .btn { white-space: normal; }
.notice-page__icon {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-bottom: 10px;
  border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary);
}
.notice-page__icon .icon { width: 18px; height: 18px; }
.notice-page__icon--ok { background: var(--c-ok-soft); color: var(--c-ok); }
.notice-page__icon--warn { background: var(--c-warn-soft); color: var(--c-warn); }
.helpline { display: flex; gap: 8px; align-items: flex-start; margin-top: 18px; padding: 0 4px; font-size: .8125rem; color: var(--c-muted); }
.helpline .icon { width: 14px; height: 14px; margin-top: 3px; }
.helpline > span { min-width: 0; }

/* ---------- Formulare ---------- */
.formcard { max-width: 480px; margin-left: auto; margin-right: auto; padding: 20px; }
.formcard .page-title { font-size: 1.125rem; margin-bottom: 6px; }
.formcard__lead, .card__lead { color: var(--c-text); font-size: .8125rem; margin-bottom: 14px; }
.formcard__actions { display: flex; justify-content: flex-end; margin: 16px 0 0; }
.formcard__actions .btn { white-space: normal; }
@media (max-width: 479px) { .formcard__actions .btn { width: 100%; } }
.fieldgrid { gap: 0 12px; }
.fieldgrid--zip { display: grid; grid-template-columns: minmax(88px, 120px) minmax(0, 1fr); gap: 0 12px; }
.field--short .select { max-width: 96px; }
.public .field .hint { font-size: .75rem; margin-top: 3px; }
.public .field .error, .roundset .error { display: block; font-size: .75rem; color: var(--c-err); font-weight: 500; margin-top: 3px; }
.public .input:focus, .public .select:focus { box-shadow: 0 0 0 3px rgba(0, 84, 159, .14); }
.public .input:focus-visible, .public .select:focus-visible { outline: none; }
.public .input::placeholder { color: #9aa3b1; }
.captcha .input { max-width: 96px; }
.consent { margin-top: 2px; }
.consent .check { display: flex; gap: 9px; font-weight: 400; font-size: .8125rem; margin-bottom: 0; padding: 6px 0; align-items: flex-start; color: var(--c-text); }
.alert .icon { margin-top: 2px; }
.alert > div { min-width: 0; }
.public .alert { font-size: .8125rem; padding: 9px 12px; }
.errsum { margin-bottom: 14px; }
.errsum:focus { outline: 2px solid var(--c-err); outline-offset: 2px; }
.errsum__title { margin: 0; }
.errsum ul { margin: 2px 0 0; padding-left: 1.1em; }
.errsum li + li { margin-top: 2px; }
.errsum a { color: inherit; font-weight: 600; }
.banner:focus { outline: none; }
.livewarn { margin-bottom: 14px; }

/* ---------- Buchungsassistent ---------- */
.wizard-layout { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
.wizard-aside { min-width: 0; }
.wizard { min-width: 0; padding: 16px; }
.eventmini { padding: 12px 16px; }
.eventmini .event__title { font-size: .9375rem; }
.eventmini .facts, .eventmini .event__badges { display: none; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--c-line); font-size: .8125rem; }
.facts dt { color: var(--c-muted); }
.facts dd { margin: 0; color: var(--c-ink); overflow-wrap: anywhere; }
.facts__sub { color: var(--c-muted); }
@media (min-width: 600px) { .wizard { padding: 24px; } }
@media (min-width: 860px) {
  .wizard-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
  .wizard-aside { order: 2; position: sticky; top: 16px; }
  .eventmini { padding: 16px; }
  .eventmini .event__meta { display: none; }
  .eventmini .facts { display: grid; }
  .eventmini .event__badges { display: flex; margin-top: 12px; }
}

.steps { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 0 0 16px; border-bottom: 1px solid var(--c-line); }
.steps li { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--c-muted); font-size: .8125rem; white-space: nowrap; }
.steps li + li { flex: 1 1 auto; }
.steps li + li::before { content: ""; flex: 1 1 16px; min-width: 12px; height: 1px; margin-right: 1px; background: #d5dae3; }
.steps__num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  border: 1px solid #c9d1dc; background: #fff; font-size: .6875rem; font-weight: 600; color: var(--c-muted); font-variant-numeric: tabular-nums;
}
.steps__label { overflow: hidden; text-overflow: ellipsis; }
.steps li.is-active { color: var(--c-primary-dark); font-weight: 600; }
.steps li.is-active .steps__num { background: var(--c-primary); border-color: var(--c-primary); color: #fff; box-shadow: 0 0 0 3px var(--c-primary-soft); }
.steps li.is-done { color: var(--c-text); }
.steps li.is-done .steps__num { background: var(--c-primary-soft); border-color: #bcd6ee; color: var(--c-primary-dark); }
.steps li.is-done::before, .steps li.is-active::before { background: var(--c-primary); }
@media (max-width: 479px) {
  .steps li:not(.is-active) .steps__label { display: none; }
  .steps li + li { flex: 0 1 auto; }
  .steps li + li::before { flex: 0 0 20px; }
  .steps li.is-active { flex: 1 1 auto; }
}

.step__title { display: flex; align-items: center; gap: 8px; font-size: .9375rem; font-weight: 600; margin-bottom: 14px; }
.step__title:focus { outline: none; }
.step__num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%;
  background: var(--c-primary-soft); color: var(--c-primary-dark); font-size: .6875rem; font-weight: 600;
}
html.js .step:not(.is-active) { display: none; }
html.js .step.is-active { animation: tp-step .18s ease-out; }
html.js .step__num { display: none; }
html.js .step__title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:not(.js) .step + .step { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--c-line); }
@keyframes tp-step { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.roundset { margin-bottom: 14px; }
.roundset--solo { margin-bottom: 0; }
.roundset:focus { outline: none; }
.roundset legend { font-weight: 550; font-size: .8125rem; margin-bottom: 4px; }
.roundcard {
  position: relative; display: flex; gap: 2px 10px; align-items: baseline; min-height: var(--tap); margin-bottom: 6px; padding: 8px 12px;
  border: 1px solid #d5dae3; border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-size: .875rem;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.roundcard input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.roundcard__radio { flex: none; align-self: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #9aa5b5; background: #fff; transition: border-color .15s, border-width .1s; }
.roundcard input:checked + .roundcard__radio { border: 5px solid var(--c-primary); }
.roundcard input:focus-visible + .roundcard__radio { outline: 2px solid var(--c-primary); outline-offset: 2px; }
.roundcard:hover { border-color: #aab4c3; }
.roundcard.is-selected { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary); background: #f3f8fd; }
.roundcard__body { flex: 1 1 auto; min-width: 0; }
.roundcard__name { font-weight: 500; color: var(--c-ink); overflow-wrap: anywhere; }
.roundcard__desc { color: var(--c-muted); font-size: .8125rem; margin-left: 4px; }
.roundcard__state { flex: none; max-width: 55%; text-align: right; font-size: .8125rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.roundcard:not([data-state="open"]) { background: var(--c-faint); cursor: not-allowed; }
.roundcard:not([data-state="open"]) .roundcard__name { color: var(--c-muted); }
.roundcard:not([data-state="open"]) .roundcard__radio { border-color: #c9d1dc; background: var(--c-faint); }
.roundcard--single { cursor: default; background: var(--c-faint); }
/* several groups listed, at most one bookable: nothing to choose, so no radio buttons */
.roundset--one .roundcard__radio { display: none; }
.roundset--one .roundcard { cursor: default; }
@media (max-width: 479px) {
  .roundcard { flex-wrap: wrap; align-items: center; }
  .roundcard__body { flex-basis: calc(100% - 30px); }
  .roundcard__desc { display: block; margin-left: 0; }
  .roundcard__state { max-width: none; text-align: left; padding-left: 26px; }
  .roundcard--single .roundcard__state, .roundset--one .roundcard__state { padding-left: 0; }
  .roundset--one .roundcard__body { flex-basis: 100%; }
}

.qtyfield { margin-bottom: 4px; }
.qty { display: inline-flex; align-items: stretch; }
.qty__btn {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: var(--tap); min-height: var(--tap); padding: 0;
  border: 1px solid #c9d1dc; background: #fff; color: var(--c-ink); cursor: pointer; transition: background .15s;
}
.qty__btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.qty__btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.qty__btn:hover { background: var(--c-faint); }
.qty__btn[disabled] { color: #b3bcc9; cursor: not-allowed; background: #fff; }
.qty__btn .icon { width: 14px; height: 14px; }
.qty__btn:focus-visible { position: relative; z-index: 1; }
.field .qty__input { width: 52px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
html.js .qty__input { border-radius: 0; border-left: 0; border-right: 0; position: relative; }
html.js .qty__input:focus { z-index: 1; border-left: 1px solid var(--c-primary); border-right: 1px solid var(--c-primary); margin: 0 -1px; width: 54px; }
html.js .qty__input { -moz-appearance: textfield; appearance: textfield; }
html.js .qty__input::-webkit-outer-spin-button, html.js .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
html:not(.js) .field .qty__input { width: 80px; }
.public .field .input--pin { font-size: .9375rem; letter-spacing: .2em; text-align: left; max-width: 160px; }

.actionbar { display: flex; gap: 8px; align-items: center; margin-top: 20px; }
.actionbar__main { white-space: normal; }
.actionbar__back { flex: none; }
@media (max-width: 599px) {
  /* Phones: the primary action of the current step stays reachable at the bottom edge. */
  .actionbar {
    position: -webkit-sticky; position: sticky; bottom: 0; z-index: 5; margin: 20px -16px -16px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97);
    border-top: 1px solid var(--c-line); border-radius: 0 0 var(--radius) var(--radius);
  }
  .actionbar__main { flex: 1 1 auto; }
}
@media (min-width: 600px) {
  .actionbar { justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--c-line); }
  .actionbar__main { min-width: 120px; }
  .actionbar__back { margin-right: auto; }
}

.review__list { margin-bottom: 14px; }
.public .kv { gap: 0; grid-template-columns: minmax(96px, 140px) minmax(0, 1fr); font-size: .875rem; }
.public .kv dt { padding-right: 16px; }
.public .kv dt, .public .kv dd { padding: 7px 0; border-top: 1px solid var(--c-line); }
.public .kv dt:first-of-type, .public .kv dt:first-of-type + dd { border-top: 0; padding-top: 0; }
.public .kv dd { font-weight: 400; }
.review__email { font-weight: 600; color: var(--c-ink); overflow-wrap: anywhere; word-break: break-word; margin-right: 6px; }
.review__sub, .summary__sub { color: var(--c-muted); font-size: .8125rem; }
.legal { margin: 12px 0 0; font-size: .75rem; }
@media (max-width: 419px) {
  .public .kv { grid-template-columns: minmax(0, 1fr); }
  .public .kv dt { padding-bottom: 0; font-size: .75rem; }
  .public .kv dd { border-top: 0; padding-top: 0; }
}

/* ---------- Buchungsseite ---------- */
.summary { padding: 16px; }
.summary__kv { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.summary--vip { border-color: #dcc98a; }
.summary__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.mailstate { flex: 1 1 220px; display: flex; gap: 7px; align-items: flex-start; margin: 0; padding: 6px 10px; border-radius: var(--radius-sm); font-size: .8125rem; color: var(--c-text); background: var(--c-faint); overflow-wrap: anywhere; }
.mailstate .icon { width: 14px; height: 14px; margin-top: 3px; }
.mailstate > span { min-width: 0; }
.mailstate--sent { background: var(--c-ok-soft); color: #0f5a2e; }
.mailstate--sent .icon { color: var(--c-ok); }
.mailstate--pending { background: var(--c-primary-soft); color: var(--c-primary-dark); }
.mailstate--pending .icon { color: var(--c-primary); animation: tp-blink 1.4s ease-in-out infinite; }
.mailstate--failed { background: var(--c-warn-soft); color: #6b3f00; }
.mailstate--failed .icon { color: var(--c-warn); }
@keyframes tp-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .btn { white-space: normal; text-align: center; }
@media (max-width: 479px) { .actions { flex: 1 1 100%; } .actions .btn { flex: 1 1 calc(50% - 4px); } .actions .btn:first-child { flex-basis: 100%; } }
@media (min-width: 600px) { .summary, .page-manage .card { padding: 20px; } }

.ticketsection { margin-top: 24px; }
.ticketsection h2 { font-size: .9375rem; margin: 0 0 10px; }
.ticketgrid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .ticketgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ticket { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border-radius: var(--radius); background: #fff; border: 1px solid var(--c-line); box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.ticket__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 8px 14px; background: var(--c-primary); color: #fff; }
.ticket__no { font-weight: 600; font-size: .8125rem; color: #fff; display: inline-flex; align-items: center; gap: 5px; }
.ticket__of { font-weight: 400; color: #d3e3f3; }
.ticket__head .badge { white-space: normal; }
.ticket__head .badge--ok { background: #fff; }
.ticket--cancelled .ticket__head { background: #6b7686; }
.ticket__head .badge .icon { width: 11px; height: 11px; }
.ticket__qr { display: flex; justify-content: center; padding: 10px 16px 6px; background: #fff; }
.ticket__qr svg { display: block; width: 100%; max-width: 264px; min-width: 200px; height: auto; }
.ticket__info { padding: 4px 16px 14px; text-align: center; }
.ticket__info p { margin: 0; }
.ticket__event { font-weight: 600; color: var(--c-ink); overflow-wrap: anywhere; }
.ticket__when, .ticket__guest { color: var(--c-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.ticket__note { font-style: italic; font-size: .8125rem; }
.ticket__code { margin-top: 10px !important; padding-top: 8px; border-top: 1px solid var(--c-line); font-size: .75rem; color: var(--c-muted); }
.ticket__codelabel { display: block; font-size: .6875rem; color: var(--c-muted); }
.ticket__code .mono { font-size: .75rem; letter-spacing: .02em; color: var(--c-text); }
.ticket--used .ticket__qr svg { opacity: .2; }
.ticket--cancelled { opacity: .75; }
.ticket--cancelled .ticket__info { padding-top: 12px; text-align: left; }

/* VIP: tiefes Marineblau mit Gold */
.ticket--vip { background: linear-gradient(165deg, #1a2132 0%, #0e1321 100%); border-color: rgba(201, 162, 39, .7); color: #e9e2cc; }
.ticket--vip .ticket__head { background: transparent; border-bottom: 1px solid rgba(201, 162, 39, .28); }
.ticket--vip .ticket__no { color: #f3d98b; font-family: Georgia, "Times New Roman", Times, serif; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; font-size: .75rem; }
.ticket--vip .ticket__no .icon { width: 12px; height: 12px; }
.ticket--vip .ticket__of { color: #a9b1c2; }
.ticket--vip .ticket__head .badge--ok { background: rgba(243, 217, 139, .12); color: #f3d98b; }
.ticket--vip .ticket__qr { background: transparent; padding-top: 16px; padding-bottom: 12px; }
.ticket--vip .ticket__qr svg { border-radius: 6px; box-shadow: 0 0 0 1px var(--c-gold); }
.ticket--vip .ticket__event { color: #f3d98b; font-family: Georgia, "Times New Roman", Times, serif; font-weight: 400; font-size: 1.0625rem; letter-spacing: .01em; }
.ticket--vip .ticket__when, .ticket--vip .ticket__guest, .ticket--vip .ticket__codelabel { color: #a9b1c2; }
.ticket--vip .ticket__note { color: #f3d98b; }
.ticket--vip .ticket__code { border-top-color: rgba(201, 162, 39, .28); }
.ticket--vip .ticket__code .mono { color: #e9e2cc; }

/* ---------- Wallet (Apple Wallet / Google Wallet): eigene, neutrale Schaltflächen in Schwarz ---------- */
.walletbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--c-line); }
.walletbar__text { flex: 1 1 220px; min-width: 0; margin: 0; font-size: .8125rem; color: var(--c-muted); }
.walletbar__text strong { display: block; font-weight: 550; color: var(--c-ink); }
.walletbar__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.walletbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 0 14px 0 11px;
  border: 1px solid #000; border-radius: 8px; background: #000; color: #fff; font-size: .8125rem; font-weight: 500; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: background .15s;
}
.walletbtn:hover, .walletbtn:focus { background: #2a2a2a; color: #fff; text-decoration: none; }
.walletbtn .icon { width: 17px; height: 17px; }
.walletbtn--sm { min-height: 30px; padding: 0 10px 0 8px; gap: 5px; border-radius: 7px; font-size: .75rem; }
.walletbtn--sm .icon { width: 14px; height: 14px; }
.ticket__wallet { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px !important; }
.ticket--vip .walletbtn { border-color: rgba(243, 217, 139, .55); }
.walletlist { list-style: none; margin: 12px 0 0; padding: 0; border-top: 1px solid var(--c-line); }
.walletlist li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 7px 0; border-bottom: 1px solid var(--c-line); font-size: .875rem; }
.walletlist li:last-child { border-bottom: 0; padding-bottom: 0; }
.walletlist__name { font-weight: 500; color: var(--c-ink); }
.walletlist__btns { display: flex; flex-wrap: wrap; gap: 6px; }
/* each phone only gets the wallet it can use (class set by app.js; without script both are shown) */
.ua-ios .walletbtn--google, .ua-android .walletbtn--apple, .ua-ios .walletbox:not(.has-apple), .ua-android .walletbox:not(.has-google) { display: none; }
@media (pointer: coarse) { .walletbtn { min-height: 44px; } .walletbtn--sm { min-height: 40px; padding: 0 12px 0 10px; } }
@media (max-width: 479px) { .walletbar__btns { flex: 1 1 100%; } .walletbar__btns .walletbtn { flex: 1 1 auto; } }

/* ---------- Buchung verwalten ---------- */
.page-manage .card h2 { font-size: .9375rem; margin-bottom: 6px; }
.page-manage .card h2.event__title { font-size: 1rem; margin: 0; }
.manage__actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.manage__actions .btn { flex: 1 1 100%; white-space: normal; text-align: center; }
@media (min-width: 520px) { .manage__actions .btn { flex: 0 1 auto; } }
.page-manage .card > .small:last-child { margin: 12px 0 0; }
.ticketpick legend { font-weight: 550; font-size: .8125rem; margin-bottom: 4px; }
.ticketpick__item { padding: 0 12px; margin-bottom: 6px; border: 1px solid #d5dae3; border-radius: var(--radius-sm); align-items: center; font-size: .875rem; }
.ticketpick__item input { margin-top: 0; }
.ticketpick__item strong { font-weight: 500; color: var(--c-ink); }
.ticketpick__item > span { min-width: 0; overflow-wrap: anywhere; }
.confirmcard { border-color: #eaa9a3; }
.confirmcard h2 { display: flex; gap: 8px; align-items: flex-start; color: #8a1c16; }
.confirmcard h2:focus { outline: none; }
.confirmcard h2 .icon { margin-top: 3px; }
.confirmlist { margin: 0 0 10px; padding-left: 1.2em; }
.confirmcard__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.confirmcard__actions .btn { flex: 1 1 100%; white-space: normal; }
@media (min-width: 520px) { .confirmcard__actions .btn { flex: 0 1 auto; } }

/* ---------- Rechtstexte ---------- */
.prose { overflow-wrap: anywhere; padding: 20px; font-size: .875rem; }
.prose h1 { font-size: 1.25rem; margin-bottom: 12px; }
.prose h2 { font-size: .9375rem; margin-top: 1.7em; color: var(--c-primary-dark); }
.prose h3 { font-size: .875rem; margin-top: 1.3em; }
.prose p { margin-bottom: .8em; max-width: 72ch; }
.prose ul { margin: 0 0 1em; padding-left: 1.3em; max-width: 72ch; }
.prose li + li { margin-top: 3px; }
.prose__stand { color: var(--c-muted); font-size: .75rem; }
@media (min-width: 640px) { .prose { padding: 28px 32px; } .prose h1 { font-size: 1.375rem; } }

/* ---------- Druck: nur die Tickets ---------- */
@media print {
  .site-header, .site-footer, .brandbar, .skip-link, .backlink, .no-print { display: none !important; }
  body.public { display: block; min-height: 0; background: #fff; color: #000; font-size: 11pt; }
  .site-main { padding: 0 !important; max-width: none; }
  .page-title { font-size: 16pt; }
  .card, .ticket { box-shadow: none !important; border: 1px solid #777; }
  .summary { break-inside: avoid; page-break-inside: avoid; }
  .ticketgrid { grid-template-columns: 1fr 1fr; gap: 6mm; }
  .ticket { break-inside: avoid; page-break-inside: avoid; }
  .ticket, .ticket--vip { background: #fff !important; color: #000 !important; }
  .ticket__head, .ticket--vip .ticket__head { background: #fff !important; color: #000 !important; border-bottom: 1px solid #777; }
  .ticket__head .badge, .ticket--vip .ticket__head .badge--ok { border: 1px solid #777; background: #fff; color: #000; }
  .ticket__qr svg, .ticket--vip .ticket__qr svg { max-width: 58mm; min-width: 0; box-shadow: none; }
  .ticket--vip .ticket__event, .ticket--vip .ticket__note, .ticket--vip .ticket__code .mono, .ticket--vip .ticket__no, .ticket--vip .ticket__of,
  .ticket--vip .ticket__when, .ticket--vip .ticket__guest, .ticket--vip .ticket__codelabel { color: #000 !important; }
  .datechip { background: #fff; border-color: #777; }
  .datechip__month { background: #fff; color: #000; border-bottom: 1px solid #777; }
  .ticket__no, .ticket__of { color: #000; }
  .mailstate { background: #fff; }
  a { color: #000; text-decoration: none; }
}
