/* ==========================================================================
   PFG Veranstaltungen — Kundenseite (index.html, ticket.html, profile.html)
   Setzt tokens.css + ui.css voraus. Nur Layout und seiteneigene Bausteine;
   Farben/Abstände/Radien ausschließlich über Tokens.
   Ausnahmen (begründet): Weiß hinter QR-Codes (muss im Dunkelmodus weiß bleiben)
   und feste Druckfarben.
   ========================================================================== */

/* ---------- Rahmen ---------------------------------------------------------- */
.shop-main { padding-top: var(--s-5); }
@media (min-width: 768px) { .shop-main { padding-top: var(--s-8); } }
.shop-narrow { max-width: var(--container-narrow); margin-inline: auto; }
.shop-hide-xs { }
.shop-show-xs { display: none; }
@media (max-width: 560px) {
  .shop-hide-xs { display: none !important; }
  .shop-show-xs { display: inline-flex; }
}
.shop .header-link { height: 44px; }
.shop-team-link { color: var(--text-3); font-weight: var(--fw-medium); }
@media (max-width: 720px) { .shop-team-link { display: none; } }
.shop-cart-btn { padding: 0 var(--s-4); }
.shop-cart-btn .count { margin-left: 2px; }
@media (max-width: 560px) { .shop-cart-btn { padding: 0 10px; min-width: 44px; } }
/* Tippflächen am Telefon mindestens 44 px */
@media (max-width: 960px) {
  .shop .btn-sm { --btn-h: 44px; }
  .shop .stepper-btn { width: 44px; height: 44px; }
}
.shop .stepper-btn { width: 42px; height: 42px; }
.shop-back { margin-left: calc(-1 * var(--s-3)); margin-bottom: var(--s-3); color: var(--text-2); }
.shop-back:hover { color: var(--text); }
.mono-input { font-family: var(--font-mono); letter-spacing: 0.02em; }
.mono-input::placeholder { font-family: var(--font); letter-spacing: 0; }

/* Aktionsleiste nur am Telefon/Tablet */
@media (min-width: 961px) { .shop-actionbar { display: none !important; } }
@media (max-width: 960px) {
  body.has-actionbar .shop-footer { padding-bottom: calc(var(--tabbar-space) + var(--s-6)); }
  body.has-actionbar .toast-region { --toast-offset: 104px; }
}
.shop-actionbar .actionbar-info small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shop-actionbar .actionbar-info small.text-danger { color: var(--danger-text); }
.shop-actionbar .btn { flex-shrink: 0; }

/* ---------- Startseite: Hero ---------------------------------------------------- */
.shop-hero { isolation: isolate; box-shadow: var(--sh-3), 0 0 0 1px var(--line-2); }
.shop-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 70% at 78% -10%, color-mix(in srgb, var(--gold) 30%, transparent), transparent 70%),
    radial-gradient(40% 60% at 0% 110%, color-mix(in srgb, var(--gold) 14%, transparent), transparent 70%);
}
.shop-hero > .shop-hero-grid, .shop-hero > .shop-hero-body { margin-top: 0; position: relative; }
.shop-hero .eyebrow { color: var(--gold); }
.shop-hero .eyebrow::before { background: var(--gold); }
.shop-hero .display { margin-top: var(--s-3); max-width: 16ch; overflow-wrap: anywhere; }
.shop-hero-grid { display: grid; gap: var(--s-8); align-items: center; }
@media (min-width: 880px) { .shop-hero-grid { grid-template-columns: minmax(0, 1fr) auto; } }
.shop-hero-body { min-width: 0; }
.shop-hero-body > .lead { margin-top: var(--s-4); }
.shop-hero.is-empty .cluster { margin-top: var(--s-6); }
.shop-hero-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); margin-top: var(--s-5); font-size: var(--fs-md); font-weight: var(--fw-medium); }
.shop-hero-meta li { display: inline-flex; align-items: center; gap: var(--s-2); min-width: 0; }
.shop-hero-meta .icon { color: var(--gold); opacity: 0.9; }
.shop-hero-facts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-5); }
.shop-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: var(--r-full);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap;
  background: color-mix(in srgb, currentColor 9%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent);
}
.shop-pill.is-gold { background: var(--gold); color: var(--on-gold); box-shadow: none; }
.shop-hero-cta { margin-top: var(--s-8); }
.shop-hero-cta .btn-lg { padding-inline: var(--s-6); }
@media (max-width: 420px) { .shop-hero-cta .btn { width: 100%; } }

.shop-confetti {
  position: absolute; z-index: -1; top: 0; right: 0; width: min(640px, 92%); height: 100%;
  pointer-events: none; color: inherit;
}
.cf-line { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1 8; opacity: 0.55; }
.cf-line.cf-faint { opacity: 0.25; }
.cf-a rect { fill: var(--gold); opacity: 0.8; }
.cf-b circle { fill: currentColor; opacity: 0.32; }
.cf-c path { fill: var(--gold); }
.cf-a, .cf-c { animation: shop-drift 7s ease-in-out infinite alternate; }
.cf-b { animation: shop-drift 9s ease-in-out infinite alternate-reverse; }
@keyframes shop-drift { from { transform: translateY(-4px); } to { transform: translateY(6px); } }
@media (max-width: 879px) { .shop-confetti { opacity: 0.55; width: 100%; } }

/* Eintrittskarte im Hero */
.shop-stub {
  position: relative; display: block; width: 236px; height: 312px; margin: var(--s-2) var(--s-4) var(--s-2) 0;
  text-decoration: none; color: var(--on-gold);
  transform: rotate(4deg); transition: transform var(--dur-3) var(--ease);
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}
.shop-stub:hover { transform: rotate(2deg) translateY(-4px); text-decoration: none; }
.shop-stub::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: linear-gradient(160deg, var(--gold), var(--gold-strong));
  -webkit-mask: radial-gradient(circle 12px at 0 76%, transparent 11.5px, #000 12px) left / 51% 100% no-repeat,
                radial-gradient(circle 12px at 100% 76%, transparent 11.5px, #000 12px) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 12px at 0 76%, transparent 11.5px, #000 12px) left / 51% 100% no-repeat,
        radial-gradient(circle 12px at 100% 76%, transparent 11.5px, #000 12px) right / 51% 100% no-repeat;
}
.shop-stub > span { position: relative; }
.shop-stub-top { position: absolute !important; top: 18px; left: 18px; right: 18px; display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-xs); font-weight: var(--fw-heavy); letter-spacing: 0.24em; }
.shop-stub-top .brand-logo { width: 34px; height: 34px; border-radius: 10px; padding: 2px; box-shadow: none; }
.shop-stub-wd, .shop-stub-day, .shop-stub-month { display: block; text-align: center; }
.shop-stub-wd { padding-top: 74px; font-size: var(--fs-sm); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: var(--tracking-caps); }
.shop-stub-day { font-size: 96px; line-height: 0.95; font-weight: var(--fw-heavy); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.shop-stub-month { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.shop-stub-perf {
  position: absolute !important; left: 18px; right: 18px; top: 76%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--on-gold) 38%, transparent) 0 6px, transparent 6px 12px);
}
.shop-stub-time { position: absolute !important; left: 0; right: 0; bottom: 0; height: 24%; display: grid; place-items: center; font-size: var(--fs-sm); font-weight: var(--fw-bold); letter-spacing: 0.02em; }
@media (max-width: 879px) { .shop-stub { display: none; } }

/* Hinweis „Deine Tickets“ */
.shop-mytickets-hint { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-5); color: inherit; text-decoration: none; font-size: var(--fs-sm); background: var(--surface); }
.shop-mytickets-hint:hover { text-decoration: none; background: var(--surface-2); }
.shop-mytickets-hint > .icon:first-child { color: var(--gold-text); }
.shop-mytickets-hint > span { flex: 1; min-width: 0; }

/* ---------- Veranstaltungskarten ------------------------------------------------ */
.shop-events { --min: 300px; --gap: var(--s-5); }
.shop-event { display: flex; flex-direction: column; gap: var(--s-4); color: inherit; text-decoration: none; }
.shop-event:hover { text-decoration: none; }
.shop-event-top { display: flex; gap: var(--s-4); align-items: flex-start; }
.shop-event-text { display: grid; gap: var(--s-2); min-width: 0; flex: 1; }
.shop-event-title { font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: -0.016em; line-height: 1.25; overflow-wrap: anywhere; }
.shop-event .meta-item { max-width: 100%; }
.shop-event-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.shop-event-price { font-size: var(--fs-sm); color: var(--text-2); }
.shop-event-price .price { color: var(--text); font-size: var(--fs-md); }
.shop-event.is-cancelled .shop-event-title { color: var(--text-2); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.shop-event.is-cancelled .datebadge { opacity: 0.6; }

/* ---------- So funktioniert's ---------------------------------------------------- */
.shop-how-list { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); counter-reset: how; }
.shop-how-item {
  display: flex; gap: var(--s-4); align-items: flex-start; padding: var(--s-5); counter-increment: how;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-1), 0 0 0 1px var(--line);
}
.shop-how-icon { position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 16px; background: var(--gold-soft); color: var(--gold-text); }
.shop-how-icon::after {
  content: counter(how); position: absolute; top: -7px; right: -7px; display: grid; place-items: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg);
  font-size: var(--fs-2xs); font-weight: var(--fw-heavy); box-shadow: 0 0 0 3px var(--surface);
}
.shop-how-item p { margin-top: var(--s-1); color: var(--text-2); font-size: var(--fs-sm); }

/* ---------- Tickets wiederfinden ------------------------------------------------- */
.shop-find { display: grid; gap: var(--s-6); background: linear-gradient(135deg, var(--gold-soft), var(--surface) 58%); }
@media (min-width: 900px) { .shop-find { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr); align-items: center; padding: var(--s-8); } }
.shop-find-text { display: grid; gap: var(--s-2); }
.shop-find-form { display: grid; gap: var(--s-3); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 640px) { .shop-find-form:not(.is-compact) { grid-template-columns: 1fr 1fr; } }
@media (min-width: 640px) { .shop-find-form.is-compact { grid-template-columns: 1fr 1fr; } }
.shop-find-form > .btn, .shop-find-form > .field-error, .shop-find-form > .hint { grid-column: 1 / -1; }
.shop-remember { padding: 0 var(--s-2) 0 0; }
.shop-remember-link { display: flex; flex: 1; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-width: 0; color: inherit; text-decoration: none; min-height: 60px; }
.shop-remember-link:hover { text-decoration: none; }
.shop-remember:hover { background: var(--surface-2); }

/* ---------- Veranstaltung ----------------------------------------------------------- */
.shop-ev-head { padding: clamp(20px, 4.5vw, 40px); }
.shop-ev-head-top { display: flex; gap: var(--s-5); align-items: center; }
.shop-ev-head-title { min-width: 0; }
.shop-ev-head h1 { overflow-wrap: anywhere; }
.shop-datebadge-lg { width: 76px; height: 86px; border-radius: var(--r-lg); }
.shop-datebadge-lg .datebadge-day { font-size: 36px; }
.shop-datebadge-lg .datebadge-month { font-size: var(--fs-xs); padding-block: 6px 5px; }
@media (max-width: 420px) { .shop-datebadge-lg { width: 64px; height: 74px; } .shop-datebadge-lg .datebadge-day { font-size: 30px; } }
.shop-facts { display: grid; gap: var(--s-3) var(--s-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin-top: var(--s-6) !important; }
.shop-facts > div { display: flex; gap: var(--s-3); align-items: flex-start; min-width: 0; }
.shop-facts dt { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--r); background: var(--gold-soft); color: var(--gold-text); }
.shop-facts dt .icon { width: 18px; height: 18px; }
.shop-facts dd { padding-top: 7px; font-weight: var(--fw-semibold); min-width: 0; overflow-wrap: anywhere; }
.shop-facts-sub { display: block; font-weight: var(--fw-regular); color: var(--text-2); font-size: var(--fs-sm); }
.shop-maplink { display: flex; width: fit-content; align-items: center; gap: 4px; min-height: 32px; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.shop-ev-head .shop-prices { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-5) !important; padding-top: var(--s-5); border-top: 1px solid var(--line); }
.shop-prices li {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 34px; padding: 4px 14px; border-radius: var(--r-full);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: var(--fs-sm);
}
.shop-prices li span { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); }
.shop-prices li i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); }

.shop-detail-grid { display: grid; gap: var(--s-6); grid-template-columns: minmax(0, 1fr); align-items: start; margin-top: var(--s-6); }
@media (min-width: 961px) {
  .shop-detail-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .shop-summary { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}
@media (max-width: 960px) { .shop-summary { display: none; } }
.shop-detail-main { --gap: var(--s-6); }
.shop-summary .card-title { margin-bottom: var(--s-3); }
.shop-summary .field-error { margin-top: var(--s-2); }
.shop-summary .btn-block { margin-top: var(--s-4); }
.shop-summary-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--s-3); font-size: var(--fs-xs); color: var(--text-3); }
.shop-lines { display: grid; }
.shop-lines li { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s-3); padding: 10px 0; border-bottom: 1px solid var(--line); }
.shop-lines li > div { min-width: 0; display: grid; gap: 1px; }
.shop-line-label { font-weight: var(--fw-semibold); }
.shop-line-sub { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); overflow-wrap: anywhere; }
.shop-summary > .shop-line-sub, .shop-summary-body > .shop-line-sub { margin-top: var(--s-2); }
.shop-summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-top: var(--s-3); margin-top: var(--s-1); }
.shop-summary-total > span { font-weight: var(--fw-semibold); color: var(--text-2); }
.shop-summary-total .price-lg { font-size: var(--fs-xl); }

.shop-desc-text { margin-top: var(--s-3); white-space: pre-line; color: var(--text-2); overflow-wrap: anywhere; max-width: 70ch; }
.shop-desc-text a { color: var(--link); font-weight: var(--fw-medium); }
.shop-desc.is-clamped .shop-desc-text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.shop-desc-more { margin-top: var(--s-2); margin-left: calc(-1 * var(--s-3)); }

.shop-book .card-head { margin-bottom: var(--s-4); }
.shop-book > .callout { margin-bottom: var(--s-4); }
.shop-book #snatch:not(:empty) { margin-bottom: var(--s-4); }
.shop-book .callout .btn-icon { margin: -6px -6px 0 0; flex-shrink: 0; }
.shop-closed { display: grid; justify-items: center; text-align: center; gap: var(--s-3); padding: var(--s-6) 0 var(--s-4); }
.shop-closed .empty-icon { margin-bottom: 0; }
.shop-closed p { margin-top: var(--s-1); }

/* Ticketarten mit Stepper */
.shop-types { display: grid; gap: var(--s-3); }
.shop-type {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main main" "price step";
  gap: var(--s-3); align-items: center; padding: var(--s-4); border-radius: var(--r-md);
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
  transition: background var(--dur-2) var(--ease), box-shadow var(--dur-2) var(--ease);
}
@media (min-width: 560px) { .shop-type { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main price step"; gap: var(--s-4); padding: var(--s-4) var(--s-4) var(--s-4) var(--s-5); } }
.shop-type.is-active { background: var(--gold-soft); box-shadow: inset 0 0 0 1.5px var(--gold-line); }
.shop-type.is-out { opacity: 0.6; }
.shop-type-main { grid-area: main; display: grid; gap: 2px; min-width: 0; }
.shop-type-name { font-weight: var(--fw-bold); font-size: var(--fs-md); letter-spacing: -0.01em; }
.shop-type-desc { font-size: var(--fs-sm); color: var(--text-2); }
.shop-type-avail { font-size: var(--fs-xs); color: var(--text-3); }
.shop-type-avail.is-low { color: var(--warn-text); font-weight: var(--fw-semibold); }
.shop-type-avail.is-out { color: var(--danger-text); font-weight: var(--fw-semibold); }
.shop-type-price { grid-area: price; font-size: var(--fs-lg); }
.shop-type .stepper { grid-area: step; justify-self: end; background: var(--surface); }

/* Tischwahl */
fieldset.shop-tables { margin-top: var(--s-6); }
.shop-tables > legend { font-size: var(--fs-md); }
.shop-tiles { display: grid; gap: var(--s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 156px), 1fr)); }
@media (max-width: 400px) { .shop-tiles { grid-template-columns: 1fr 1fr; } }
.shop-tile {
  position: relative; display: grid; align-content: start; gap: 2px; min-height: 76px; padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer;
  transition: background var(--dur-1), box-shadow var(--dur-2) var(--ease);
}
.shop-tile:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.shop-tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.shop-tile:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--gold), var(--focus-ring); }
.shop-tile.is-checked { background: var(--gold-soft); box-shadow: inset 0 0 0 2px var(--gold); }
.shop-tile.is-disabled { opacity: 0.5; cursor: not-allowed; }
.shop-tile.is-disabled input { cursor: not-allowed; }
.shop-tile-title { font-weight: var(--fw-semibold); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.shop-tile-sub { font-size: var(--fs-xs); color: var(--text-2); }
.shop-tile-dots { display: flex; flex-wrap: wrap; gap: 3px; margin-top: 6px; }
.shop-tile-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.shop-tile-dots i.is-taken { background: var(--seat-taken); }
#tableNote:empty { display: none; }
#tableNote { color: var(--warn-text); font-weight: var(--fw-medium); }

/* Saalplan */
.shop-plan { --seatmap-h: min(540px, 64vh); }
#pendingSlot:empty { display: none; }
@media (max-width: 720px) {
  .shop-book.card { padding: var(--s-4); }
  .shop-plan { --seatmap-h: min(58vh, max(360px, calc((100vw - 2 * var(--gutter)) * var(--plan-ratio, 1) + 150px))); margin-inline: calc(-1 * var(--s-2)); }
  @supports (height: 1svh) { .shop-plan { --seatmap-h: min(58svh, max(360px, calc((100vw - 2 * var(--gutter)) * var(--plan-ratio, 1) + 150px))); } }
}
.shop-seats { margin-top: var(--s-5); }
.shop-seats-empty { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-sm); }
.shop-seats-empty .icon { color: var(--text-3); }
.shop-seats-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); }
.shop-seats-head h3 { display: inline-flex; align-items: center; gap: var(--s-2); }
.shop-seats-all { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); margin-top: var(--s-2); }
.shop-seats-all .chip { height: 44px; }
.shop-seatlist { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.shop-seat {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "dot main price x" "type type type type";
  align-items: center; gap: var(--s-2) var(--s-3); padding: var(--s-2) var(--s-2) var(--s-3) var(--s-4);
  border-radius: var(--r-md); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line);
}
@media (min-width: 640px) {
  .shop-seat { grid-template-columns: auto minmax(0, 1fr) minmax(190px, 240px) auto auto; grid-template-areas: "dot main type price x"; padding: var(--s-2) var(--s-2) var(--s-2) var(--s-4); }
  .shop-seat-type { min-height: 42px; padding-block: 8px; }
}
.shop-seat-dot { grid-area: dot; width: 14px; height: 14px; border-radius: 50%; background: var(--seat-selected); box-shadow: 0 0 0 3px var(--c, var(--seat-selected-line)); }
.shop-seat-main { grid-area: main; display: grid; min-width: 0; }
.shop-seat-label { font-weight: var(--fw-semibold); }
.shop-seat-cat { font-size: var(--fs-xs); color: var(--text-3); }
.shop-seat-type { grid-area: type; }
.shop-seat-price { grid-area: price; }
.shop-seat-x { grid-area: x; }
.shop-seats .field-error { margin-top: var(--s-3); }

/* ---------- Kasse ---------------------------------------------------------------- */
.shop-checkout > h1 { margin-bottom: var(--s-5); }
.shop-checkout > .callout { margin-bottom: var(--s-5); }
.shop-progress { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-4); font-size: var(--fs-sm); color: var(--text-3); }
.shop-progress li { display: inline-flex; align-items: center; gap: var(--s-2); }
.shop-progress li + li::before { content: ""; width: 20px; height: 1.5px; border-radius: 1px; background: var(--line-strong); }
.shop-progress li > span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-2); }
.shop-progress li.is-done > span { background: var(--ok-bg); color: var(--ok-text); }
.shop-progress li[aria-current] { color: var(--text); font-weight: var(--fw-semibold); }
.shop-progress li[aria-current] > span { background: var(--gold); color: var(--on-gold); }
.shop-checkout-grid { display: grid; gap: var(--s-5); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) {
  .shop-checkout-grid { grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s-6); }
  .shop-order { order: 2; position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}
.shop-order-event { display: flex; gap: var(--s-4); align-items: center; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.shop-order-lines { max-height: 340px; overflow-y: auto; overscroll-behavior: contain; }
.shop-order-table { display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--text-2); }
.shop-pay { --gap: var(--s-5); }
.shop-pay-note { background: var(--surface-2); }
.shop-pay-note > .icon { color: var(--ok-text); }
.shop-pay-btn { margin-top: var(--s-1); }
.shop-suggest { font-size: var(--fs-sm); color: var(--text-2); }
.shop-suggest .link-btn { font-size: inherit; min-height: 32px; }
.shop-fine { font-size: var(--fs-xs); color: var(--text-3); text-align: center; text-wrap: pretty; }
#payErr:empty { display: none; }

/* Warenkorb-Blatt */
.shop-cart-sheet .shop-summary-total { border-top: 1px solid var(--line-2); margin-top: var(--s-2); }
.shop-cart-empty { padding: var(--s-6) 0; }

/* ---------- ticket.html: Zustände ------------------------------------------------- */
.shop-state { display: grid; justify-items: center; text-align: center; gap: var(--s-4); padding: var(--s-12) var(--s-6) var(--s-8); }
.shop-state .lead { margin-inline: auto; }
.shop-state-icon { display: grid; place-items: center; width: 80px; height: 80px; border-radius: 28px; background: var(--surface-3); color: var(--text-2); }
.shop-state-icon.is-wait { background: var(--gold-soft); color: var(--gold-text); }
.shop-state-icon.is-warn { background: var(--warn-bg); color: var(--warn-text); }
.shop-state-icon.is-danger { background: var(--danger-bg); color: var(--danger-text); }
.shop-state-icon.is-info { background: var(--info-bg); color: var(--info-text); }
.shop-state-event { font-weight: var(--fw-semibold); }
.shop-state-actions { justify-content: center; margin-top: var(--s-2); }
.shop-wait-ring { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--gold-line); border-top-color: var(--gold-text); animation: ui-spin 0.9s linear infinite; }

.shop-success { display: grid; justify-items: center; text-align: center; gap: var(--s-4); padding: var(--s-6) 0 var(--s-2); }
.shop-success .lead { margin-inline: auto; }
.shop-success h1 { max-width: 20ch; }
.shop-success-cta { justify-content: center; margin-top: var(--s-2); }
@media (max-width: 480px) { .shop-success-cta .btn { width: 100%; } }
.shop-success-mark { position: relative; width: 88px; height: 88px; margin-bottom: var(--s-2); }
.shop-success-mark > span {
  display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: var(--gold); color: var(--on-gold); box-shadow: var(--sh-gold), 0 0 0 10px var(--gold-soft);
  animation: shop-pop 640ms var(--ease) both;
}
.shop-success-mark > span .icon { width: 42px; height: 42px; stroke-width: 2.6; }
.shop-success-mark i {
  position: absolute; left: 50%; top: 50%; width: 9px; height: 4px; margin: -2px 0 0 -4px; border-radius: 2px;
  background: var(--gold); opacity: 0; animation: shop-burst 1100ms var(--ease) 180ms both;
}
.shop-success-mark i:nth-of-type(odd) { background: var(--text-3); width: 5px; height: 5px; border-radius: 50%; }
.shop-success-mark i:nth-of-type(1) { --a: 0deg; --d: 74px; }
.shop-success-mark i:nth-of-type(2) { --a: 36deg; --d: 88px; }
.shop-success-mark i:nth-of-type(3) { --a: 72deg; --d: 70px; }
.shop-success-mark i:nth-of-type(4) { --a: 108deg; --d: 92px; }
.shop-success-mark i:nth-of-type(5) { --a: 144deg; --d: 76px; }
.shop-success-mark i:nth-of-type(6) { --a: 180deg; --d: 86px; }
.shop-success-mark i:nth-of-type(7) { --a: 216deg; --d: 72px; }
.shop-success-mark i:nth-of-type(8) { --a: 252deg; --d: 90px; }
.shop-success-mark i:nth-of-type(9) { --a: 288deg; --d: 74px; }
.shop-success-mark i:nth-of-type(10) { --a: 324deg; --d: 84px; }
@keyframes shop-pop { 0% { transform: scale(0.4); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes shop-burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateX(30px) rotate(0); }
  100% { opacity: 0; transform: rotate(var(--a)) translateX(var(--d)) rotate(200deg); }
}
.shop-paid > .callout { max-width: var(--container-narrow); margin-inline: auto; width: 100%; }
.shop-paid-grid { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 961px) {
  .shop-paid-grid { grid-template-columns: 330px minmax(0, 1fr); }
  .shop-paid-order { position: sticky; top: calc(var(--header-h) + var(--s-4)); }
}
.shop-paid-order { display: grid; gap: var(--s-4); }
.shop-paid-order .btn { justify-self: start; }
.shop-copy { --btn-h: 32px !important; width: 32px; padding: 0; vertical-align: middle; margin-left: 2px; }

/* ---------- E-Ticket ------------------------------------------------------------------ */
.shop-etickets { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); align-items: start; }
.eticket {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--sh-2), 0 0 0 1px var(--line);
}
.eticket-main {
  padding: var(--s-5) var(--s-5) var(--s-3); border-top: 5px solid var(--gold);
  background: radial-gradient(120% 100% at 100% 0%, var(--gold-soft), transparent 62%);
}
.eticket-top { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-text); }
.eticket-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.eticket-top .brand-logo { width: 28px; height: 28px; border-radius: 8px; padding: 2px; }
.eticket-type { margin-top: var(--s-3); font-size: var(--fs-xl); font-weight: var(--fw-heavy); letter-spacing: -0.02em; line-height: 1.15; overflow-wrap: anywhere; }
.eticket-holder { margin-top: 2px; color: var(--text-2); font-weight: var(--fw-medium); overflow-wrap: anywhere; }
.eticket-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-4); margin-top: var(--s-4); }
.eticket-facts dt { font-size: var(--fs-2xs); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--text-3); }
.eticket-facts dd { font-size: var(--fs-sm); font-weight: var(--fw-semibold); overflow-wrap: anywhere; }
.eticket-perf {
  position: relative; height: 28px; padding: 0 22px; background-clip: content-box;
  background-image: linear-gradient(90deg, var(--line-strong) 55%, transparent 0); background-size: 12px 2px; background-position: 0 50%; background-repeat: repeat-x;
}
.eticket-perf::before, .eticket-perf::after {
  content: ""; position: absolute; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2);
}
.eticket-perf::before { left: -14px; }
.eticket-perf::after { right: -14px; }
.eticket-stub { display: grid; justify-items: center; gap: var(--s-2); padding: var(--s-2) var(--s-5) var(--s-5); text-align: center; }
.eticket-qr {
  display: block; padding: 10px; border: 0; border-radius: var(--r-md); cursor: zoom-in;
  background: white; box-shadow: 0 0 0 1px var(--line-2), var(--sh-1);
  transition: transform var(--dur-2) var(--ease);
}
.eticket-qr:hover { transform: scale(1.02); }
.eticket-qr img { width: 210px; height: 210px; image-rendering: pixelated; }
.shop-etickets.is-compact .eticket-qr img { width: 176px; height: 176px; }
.eticket-status { margin-top: var(--s-1); }
.eticket-id { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-3); }
.eticket-code { font-size: var(--fs-2xs); color: var(--text-3); overflow-wrap: anywhere; max-width: 100%; }
.eticket-wallet { margin-top: var(--s-2); }
.eticket.is-used .eticket-qr img { opacity: 0.3; }
.eticket.is-used .eticket-main { border-top-color: var(--info); }
.eticket.is-void .eticket-main { border-top-color: var(--line-strong); background: none; }
.eticket-noqr { display: grid; justify-items: center; gap: var(--s-2); width: min(230px, 100%); padding: var(--s-6) var(--s-4); border-radius: var(--r-md); background: var(--surface-2); color: var(--text-2); font-size: var(--fs-sm); }
.eticket-noqr .icon { color: var(--text-3); }

.shop-qr-modal .modal-body { display: grid; gap: var(--s-4); }
.shop-qr-big { display: grid; place-items: center; padding: var(--s-4); border-radius: var(--r-lg); background: white; box-shadow: 0 0 0 1px var(--line-2); }
.shop-qr-big img { width: min(100%, 320px); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.shop-qr-hint { display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center; margin-top: 0 !important; }

/* ---------- profile.html ------------------------------------------------------------------ */
.shop-profile-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s-4); }
.shop-pevent { display: grid; gap: var(--s-4); }
.shop-pevent-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); }
.shop-pevent-head .meta-item { overflow-wrap: anywhere; }
.shop-more > summary { display: flex; align-items: center; min-height: 44px; margin: calc(-1 * var(--s-2)) 0; cursor: pointer; font-weight: var(--fw-semibold); list-style: none; }
.shop-more > summary::-webkit-details-marker { display: none; }
.shop-more > summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3); transform: rotate(45deg); transition: transform var(--dur-2) var(--ease); }
.shop-more[open] > summary::after { transform: rotate(-135deg); }
.shop-more .shop-find-slot { margin-top: var(--s-4); }

/* ---------- Fußzeile --------------------------------------------------------------------- */
.shop-footer { margin-top: var(--s-8); padding: var(--s-10) 0 calc(var(--s-6) + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.shop-footer-inner { display: grid; gap: var(--s-6); }
@media (min-width: 820px) { .shop-footer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } .shop-footer-bottom { grid-column: 1 / -1; } }
.shop-footer-brand { display: flex; align-items: center; gap: var(--s-3); min-width: 0; }
.shop-footer-brand .brand-logo { width: 44px; height: 44px; }
.shop-footer-brand strong { display: block; letter-spacing: -0.01em; }
.shop-footer-brand span { display: block; font-size: var(--fs-sm); color: var(--text-2); }
.shop-footer-nav { display: flex; flex-wrap: wrap; gap: 2px; margin-inline: calc(-1 * var(--s-3)); }
.shop-footer-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); border-radius: var(--r-full); color: var(--text-2); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-decoration: none; }
.shop-footer-nav a:hover { background: var(--surface-3); color: var(--text); }
.shop-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-xs); color: var(--text-3); }
.shop-theme-btn { color: var(--text-2); }

.shop-empty-page { margin-top: var(--s-8); }
.shop-flash:focus { outline: none; }

/* ---------- Druck: ein Ticket je Seite --------------------------------------------------- */
@media print {
  :root, :root[data-theme="dark"] {
    --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --text-2: #333; --text-3: #555;
    --line: #ccc; --line-2: #bbb; --line-strong: #888; --gold-soft: #fff; --gold-text: #000; --gold: #000;
  }
  @page { margin: 12mm; }
  .skip-link, .shop-footer, .shop-actionbar, .no-print, .shop-profile-head, .shop-pevent-head, .shop-pevent > .callout,
  .shop-success, .shop-paid-order, .shop-paid > .callout, #tixH, .shop-pevent > h2 { display: none !important; }
  .page-main { padding: 0 !important; }
  .shop-profile, .shop-pevent, .shop-paid, .shop-paid-grid { display: block !important; }
  .shop-etickets { display: block !important; }
  .eticket {
    break-inside: avoid; page-break-inside: avoid; break-after: page; page-break-after: always;
    max-width: 13cm; margin: 0 auto; box-shadow: none !important; border: 1px solid #000 !important;
  }
  .shop-pevent:last-of-type .eticket:last-child, .shop-paid .eticket:last-child { break-after: auto; page-break-after: auto; }
  .eticket-main { background: none; border-top: 6px solid #000; }
  .eticket-perf::before, .eticket-perf::after { display: none; }
  .eticket-qr { box-shadow: none; padding: 0; }
  .eticket-qr img, .shop-etickets.is-compact .eticket-qr img { width: 9cm; height: 9cm; opacity: 1 !important; }
  .eticket-type { font-size: 26pt; }
}

/* ui.css: .btn (position: relative) überschreibt .skip-link — hier wieder herausnehmen */
.skip-link.btn { position: absolute; }

/* Telefon: Kopf der Veranstaltung kompakt, damit die Auswahl früh sichtbar ist */
@media (max-width: 560px) {
  .shop-ev-head-top { gap: var(--s-4); }
  .shop-ev-head h1 { font-size: 26px; }
  .shop-facts { gap: var(--s-2); margin-top: var(--s-4) !important; }
  .shop-facts dt { width: 30px; height: 30px; border-radius: var(--r-sm); }
  .shop-facts dt .icon { width: 16px; height: 16px; }
  .shop-facts dd { padding-top: 4px; font-size: var(--fs-sm); }
  .shop-maplink { min-height: 30px; }
  .shop-ev-head .shop-prices { gap: 6px; margin-top: var(--s-4) !important; padding-top: var(--s-4); }
  .shop-ev-head .shop-prices li { min-height: 30px; padding: 3px 11px; font-size: var(--fs-xs); }
}

/* Programmatischer Fokus auf Überschriften (nach Seitenwechsel) ohne Ring */
.shop h1[tabindex="-1"]:focus, .shop h1[tabindex="-1"]:focus-visible, #main:focus { outline: none; }
.shop-paid-order dd .mono { white-space: nowrap; }
@media (max-width: 420px) {
  .shop-progress { gap: 6px; font-size: var(--fs-xs); flex-wrap: nowrap; }
  .shop-progress li { gap: 6px; white-space: nowrap; }
  .shop-progress li + li::before { width: 10px; }
  .shop-progress li > span { width: 22px; height: 22px; }
}
@media (max-width: 879px) {
  .shop-confetti { -webkit-mask-image: linear-gradient(100deg, transparent 35%, #000 85%); mask-image: linear-gradient(100deg, transparent 35%, #000 85%); }
}

/* ---------- Rechtstexte: Seite (Textstile .legal-text stehen in ui.css) ---------- */
.shop-legal-card h1 { margin-bottom: var(--s-4); }
.shop-legal-note a { color: var(--gold-text); text-decoration: underline; text-underline-offset: 2px; }
