:root {
  color-scheme: light;
  --accent: #73b800;
  --accent-dark: #4f8300;
  --team: #c6102e;
  --team-deep: #830a1e;
  --ink: #101711;
  --muted: #687166;
  --line: #dfe5dc;
  --surface: #ffffff;
  --soft: #f3f6f0;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(27, 42, 21, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { min-width: 0; background: transparent; }
body { margin: 0; color: var(--ink); background: transparent; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.theme-sturm {
  --team: #151515;
  --team-deep: #000000;
}

.page-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: 18px;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  min-height: 228px;
  overflow: hidden;
  padding: 34px 38px;
  color: #fff;
  border-radius: 26px;
  background: var(--team-deep);
  background:
    linear-gradient(115deg, color-mix(in srgb, var(--team) 96%, #000 4%) 0%, var(--team-deep) 68%, #121a0e 100%);
  box-shadow: var(--shadow);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.17);
}
.hero::before { width: 330px; height: 330px; right: 12%; top: -225px; }
.hero::after { width: 210px; height: 210px; right: -60px; bottom: -140px; }

.hero-mark {
  display: grid;
  place-items: center;
  width: 108px;
  height: 122px;
  color: var(--team);
  background: #fff;
  clip-path: polygon(50% 0, 94% 15%, 88% 73%, 50% 100%, 12% 73%, 6% 15%);
  filter: drop-shadow(0 12px 20px rgba(0,0,0,.24));
}
.hero-mark span { max-width: 88px; font-weight: 950; font-size: 21px; line-height: .95; text-align: center; letter-spacing: -.04em; }
.theme-sturm .hero-mark span { font-size: 17px; letter-spacing: .02em; }
.hero-mark.is-club-logo {
  box-sizing: border-box;
  padding: 9px;
  clip-path: none;
  border-radius: 22px;
}
.hero-mark.is-club-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.eyebrow, .step {
  margin: 0 0 7px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero .eyebrow { color: #cbff77; }
.hero h1 { max-width: 700px; margin: 0; font-size: clamp(30px, 5vw, 52px); line-height: 1.01; letter-spacing: -.045em; }
.hero-copy > p:last-child { max-width: 650px; margin: 16px 0 0; font-size: 17px; line-height: 1.5; color: rgba(255,255,255,.86); }
.hero-provider { align-self: end; display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.hero-provider span { font-size: 11px; color: rgba(255,255,255,.67); text-transform: uppercase; letter-spacing: .09em; }
.hero-provider strong { margin-top: 3px; color: #cbff77; font-size: 18px; }

.content-card {
  margin-top: 18px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 10px 35px rgba(23, 34, 19, .07);
}
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.section-heading h2, .confirmation-card h2 { margin: 0; font-size: clamp(23px, 4vw, 31px); letter-spacing: -.035em; }
.refresh-button {
  padding: 9px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
}
.refresh-button:hover { color: var(--ink); border-color: #aeb8a8; }
.refresh-button:disabled { opacity: .55; cursor: wait; }

.notice { padding: 16px 18px; border-radius: 12px; color: var(--muted); background: var(--soft); line-height: 1.45; }
.notice.is-error { color: #8f2018; background: #fff0ed; border: 1px solid #f3c5be; }
.notice.is-empty { color: #4d5948; border: 1px dashed #b9c4b3; }
.trip-list { display: grid; gap: 12px; }

.trip-option {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  padding: 18px;
  color: inherit;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.trip-option:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--team) 55%, #fff); box-shadow: 0 10px 25px rgba(28, 35, 25, .08); }
.trip-option.is-selected { border-color: var(--team); box-shadow: 0 0 0 3px color-mix(in srgb, var(--team) 14%, transparent); }
.trip-option.is-sold-out { opacity: .65; cursor: not-allowed; }
.trip-option.is-sold-out:hover { transform: none; box-shadow: none; border-color: var(--line); }
.trip-date { display: grid; place-items: center; min-height: 68px; padding: 8px; color: #fff; border-radius: 11px; background: var(--team); text-align: center; }
.trip-date strong { display: block; font-size: 19px; }
.trip-date span { display: block; margin-top: 2px; font-size: 12px; opacity: .84; }
.trip-details strong { display: block; font-size: 17px; line-height: 1.3; }
.trip-status { display: inline-flex; margin-top: 7px; padding: 5px 8px; border-radius: 999px; color: #2f6418; background: #eaf7e4; font-size: 11px; font-weight: 900; }
.trip-status.is-threshold_reached, .trip-status.is-confirmed { color: #155e75; background: #e6f7fb; }
.trip-status.is-sold_out, .trip-status.is-closed, .trip-status.is-cancelled { color: #8e2119; background: #fff0ee; }
.trip-route { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.trip-route b { color: var(--ink); font-weight: 750; }
.trip-route .arrow { color: var(--accent-dark); font-weight: 900; }
.trip-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; margin-top: 10px; color: var(--muted); font-size: 13px; }
.trip-meta > span { display: inline-flex; gap: 4px; align-items: baseline; }
.trip-meta .free-seats { color: #33720e; font-weight: 750; }
.trip-meta .free-seats.is-low { color: #a44a0a; }
.choose-label { padding: 9px 13px; color: var(--team); border-radius: 9px; background: color-mix(in srgb, var(--team) 9%, #fff); font-size: 13px; font-weight: 850; white-space: nowrap; }
.trip-option.is-selected .choose-label { color: #fff; background: var(--team); }

.selected-trip { margin-bottom: 22px; padding: 16px 18px; border-left: 4px solid var(--team); border-radius: 0 12px 12px 0; background: var(--soft); line-height: 1.5; }
.selected-trip strong { display: block; margin-bottom: 3px; }
.selected-trip span { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field span { font-size: 13px; font-weight: 800; }
.field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  color: var(--ink);
  border: 1px solid #cbd3c7;
  border-radius: 10px;
  outline: none;
  background: #fff;
}
.field input:focus { border-color: var(--team); box-shadow: 0 0 0 3px color-mix(in srgb, var(--team) 12%, transparent); }
.passenger-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 17px; padding: 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--soft); }
.ticket-choice-hint { grid-column: 1 / -1; margin: 0; padding: 0 2px 2px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.passenger-row { display: grid; gap: 9px; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.passenger-row:only-of-type { grid-column: 1 / -1; }
.ticket-choice { display: flex; align-items: center; gap: 9px; color: var(--ink); font-size: 13px; line-height: 1.35; cursor: pointer; }
.ticket-choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--team); flex: 0 0 auto; }
.ticket-choice strong { color: var(--team); }
.website-field { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 20px 0; color: var(--muted); font-size: 13px; line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--team); flex: 0 0 auto; }
.consent a { color: var(--team); font-weight: 700; }
.consent-important { margin-top: 14px; padding: 15px; color: var(--ink); border: 1px solid color-mix(in srgb, var(--team) 30%, var(--line)); border-radius: 11px; background: color-mix(in srgb, var(--team) 4%, #fff); }
.booking-review { margin-top: 22px; padding: 19px; border: 1px solid var(--line); border-radius: 14px; background: var(--soft); }
.booking-review h3 { margin: 3px 0 14px; font-size: 21px; }
.booking-review .review-kicker { margin: 0; color: var(--team); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.booking-review dl { margin: 0 0 15px; }
.booking-review dl > div { display: grid; grid-template-columns: minmax(130px,.7fr) minmax(0,1.3fr); gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.booking-review dt { color: var(--muted); }
.booking-review dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.booking-review p { margin: 13px 0 0; font-size: 13px; line-height: 1.55; }
.review-conditions { color: var(--muted); }
.form-message { display: none; margin: 0 0 13px; padding: 12px 14px; border-radius: 10px; color: var(--danger); background: #fff0ed; font-size: 14px; }
.form-message:not(:empty) { display: block; }
.submit-button, .ticket-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 12px 20px;
  color: #fff;
  border: 0;
  border-radius: 11px;
  background: var(--team);
  cursor: pointer;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 9px 20px color-mix(in srgb, var(--team) 22%, transparent);
}
.submit-button { width: 100%; }
.submit-button:hover, .ticket-link:hover { filter: brightness(.93); }
.submit-button:disabled { opacity: .6; cursor: wait; }
.form-hint { margin: 11px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }

.confirmation-card { text-align: center; }
.success-icon { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 15px; color: #fff; border-radius: 50%; background: var(--accent); font-size: 30px; font-weight: 900; }
.confirmation-card > p:not(.step):not(.ticket-reference):not(.form-hint) { max-width: 660px; margin: 13px auto; color: var(--muted); line-height: 1.55; }
.ticket-qr { display: block; width: min(285px, 78vw); height: auto; margin: 21px auto 12px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.ticket-reference { margin: 0 0 17px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.confirmation-tickets { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 16px; margin-top: 22px; text-align: center; }
.confirmation-ticket { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--soft); }
.confirmation-ticket h3 { margin: 0; font-size: 18px; }
.confirmation-ticket .ticket-qr { width: min(220px, 70vw); margin-top: 14px; }
.confirmation-ticket .ticket-link { min-height: 42px; padding: 9px 14px; font-size: 13px; }
.pending-ticket-note { display: flex; flex-direction: column; gap: 5px; max-width: 620px; margin: 20px auto 0; padding: 18px; color: #725300; border: 1px solid #ead178; border-radius: 13px; background: #fff9df; }

.page-footer { display: flex; justify-content: space-between; gap: 15px; padding: 23px 8px 8px; color: var(--muted); font-size: 12px; }
.page-footer strong { color: #34402f; }
.club-logo-copyright { margin: 17px 8px -9px; color: var(--muted); font-size: 11px; text-align: center; }

@media (max-width: 760px) {
  .page-shell { padding: 10px; }
  .hero { grid-template-columns: 76px 1fr; gap: 17px; min-height: 0; padding: 25px 20px; border-radius: 19px; }
  .hero-mark { width: 72px; height: 82px; }
  .hero-mark span { font-size: 15px; }
  .theme-sturm .hero-mark span { font-size: 11px; }
  .hero h1 { font-size: clamp(27px, 8vw, 39px); }
  .hero-copy > p:last-child { font-size: 15px; }
  .hero-provider { grid-column: 2; align-self: auto; align-items: flex-start; margin-top: -8px; }
  .content-card { margin-top: 12px; padding: 21px 17px; border-radius: 17px; }
  .trip-option { grid-template-columns: 72px 1fr; gap: 13px; padding: 13px; }
  .trip-date { min-height: 62px; }
  .choose-label { grid-column: 1 / -1; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .passenger-fields { grid-template-columns: 1fr; }
  .booking-review dl > div { grid-template-columns: 1fr; gap: 3px; }
  .booking-review dd { text-align: left; }
  .page-footer { flex-direction: column; align-items: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.ticket-page { min-height: 100vh; padding: 20px; background: #edf1e9; }
.ticket-shell { width: min(100%, 520px); margin: 0 auto; }
.ticket-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow); }
.ticket-head { padding: 25px 27px; color: #fff; background: var(--team); }
.ticket-head .eyebrow { color: #d8ff99; }
.ticket-head h1 { margin: 0; font-size: 31px; letter-spacing: -.04em; }
.ticket-body { padding: 27px; }
.ticket-state { display: flex; align-items: center; justify-content: center; gap: 9px; margin-bottom: 20px; padding: 13px; color: #245b10; border: 1px solid #a8d596; border-radius: 12px; background: #eefbe9; font-weight: 900; }
.ticket-state::before { content: "✓"; display: grid; place-items: center; width: 25px; height: 25px; color: #fff; border-radius: 50%; background: #4d9b2c; }
.ticket-state.is-used { color: #805d00; border-color: #ebd27c; background: #fff9df; }
.ticket-state.is-used::before { content: "✓"; background: #c69500; }
.ticket-state.is-expired, .ticket-state.is-cancelled, .ticket-state.is-error, .ticket-state.is-wrong_trip { color: #8e2119; border-color: #edb6b0; background: #fff0ee; }
.ticket-state.is-expired::before, .ticket-state.is-cancelled::before, .ticket-state.is-error::before, .ticket-state.is-wrong_trip::before { content: "!"; background: #ba3328; }
.ticket-state.is-payment_pending { color: #805d00; border-color: #ebd27c; background: #fff9df; }
.ticket-state.is-payment_pending::before { content: "€"; background: #c69500; }
.ticket-state.is-trip_cancelled { color: #8e2119; border-color: #edb6b0; background: #fff0ee; }
.ticket-state.is-trip_cancelled::before { content: "!"; background: #ba3328; }
.ticket-checkin-controls { margin-top: 18px; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #f7f9f4; }
.ticket-checkin-controls label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 850; }
.ticket-checkin-controls select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.checkin-button { width: 100%; margin-top: 11px; }
.checkin-message { margin: 10px 0 0; text-align: center; font-size: 13px; font-weight: 750; }
.ticket-passenger { margin: 0; text-align: center; font-size: 25px; letter-spacing: -.025em; }
.ticket-number { margin: 5px 0 22px; color: var(--muted); text-align: center; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.ticket-data { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.ticket-data > div { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.ticket-data dt { color: var(--muted); }
.ticket-data dd { margin: 0; font-weight: 750; text-align: right; overflow-wrap: anywhere; }
.ticket-card .ticket-qr { margin-top: 24px; }
.ticket-note { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.5; }

@media (max-width: 520px) {
  .ticket-page { padding: 10px; }
  .ticket-head, .ticket-body { padding: 22px 18px; }
  .ticket-data > div { grid-template-columns: 82px minmax(0, 1fr); }
}

.ticket-entitlement{margin:12px 0 18px;padding:14px 16px;border-radius:12px;font-weight:900;text-align:center;letter-spacing:.04em}.ticket-entitlement.has-ticket{background:#dcfce7;color:#166534;border:2px solid #22c55e}.ticket-entitlement.bus-only{background:#fee2e2;color:#991b1b;border:3px solid #ef4444;font-size:1.05rem}

.payment-panel{margin:18px 0 8px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f7f9f4}
.payment-panel h3{margin:0 0 8px;font-size:18px}
.payment-hint{margin:0 0 14px;color:var(--muted);font-size:14px;line-height:1.5}
.payment-element{min-height:48px}
.confirmation-card #confirmationMessage p{margin:0 0 10px;line-height:1.55}
