/* ==========================================================================
   Theaterreservierung KJ Gettsdorf – gemeinsames Design (Website, Scanner, Basis Admin)
   Keine externen Schriften (Datenschutz): System- und Serifenschriften.
   ========================================================================== */

:root {
  --curtain-900: #2a0b16;
  --curtain-800: #3d0f20;
  --curtain-700: #5c1428;
  --curtain-600: #7a1a2e;
  --curtain-500: #a3243c;
  --gold-500: #e2b65a;
  --gold-400: #f0cf83;
  --gold-600: #c8963a;
  --cream-50: #fffdf9;
  --cream-100: #faf5ee;
  --cream-200: #f2e9dc;
  --ink-900: #24161b;
  --ink-700: #4a3a40;
  --ink-500: #75656b;
  --line: #e6dacb;

  --seat-free: #23a455;
  --seat-free-dark: #177a3d;
  --seat-reserved: #d23f3f;
  --seat-selected: #2f74e0;
  --seat-blocked: #8b8b93;
  --seat-admin: #ee8a1c;
  --seat-unavailable: #b9dcc4;

  --ok: #1f8a4c;
  --warn: #b7791f;
  --danger: #c0392b;
  --info: #2f74e0;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(36, 22, 27, .06), 0 2px 8px rgba(36, 22, 27, .05);
  --shadow: 0 10px 30px rgba(36, 22, 27, .12);
  --shadow-lg: 0 24px 60px rgba(36, 22, 27, .22);

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;

  --seat-size: clamp(25px, calc((100vw - 120px) / 10), 46px);
  --seat-gap: clamp(4px, 1vw, 8px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--cream-100);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--curtain-600); text-underline-offset: 3px; }
a:hover { color: var(--curtain-500); }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.container-narrow { width: min(780px, 100% - 32px); margin-inline: auto; }

/* ---------- Kopfzeile ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(42, 11, 22, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(226, 182, 90, .25);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.brand:hover { color: #fff; }
.brand img { width: 44px; height: 44px; transition: transform .4s ease; }
.brand:hover img { transform: rotate(-8deg) scale(1.05); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: .03em; }
.brand-text span { font-size: .78rem; color: var(--gold-400); text-transform: uppercase; letter-spacing: .14em; }
.site-nav { display: flex; gap: 6px; align-items: center; }
.site-nav a { color: #f3e6da; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: .95rem; transition: background .2s; }
.site-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* ---------- Hero / Vorhang ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(240, 207, 131, .35), transparent 55%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 2px, transparent 2px 46px, rgba(255,255,255,.05) 46px 50px, transparent 50px 92px),
    linear-gradient(180deg, var(--curtain-800), var(--curtain-600) 55%, var(--curtain-700));
  padding: clamp(56px, 10vw, 120px) 0 clamp(70px, 11vw, 130px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 14%;
  background: repeating-linear-gradient(90deg, rgba(0,0,0,.35) 0 6px, rgba(255,255,255,.06) 6px 14px, rgba(0,0,0,.2) 14px 24px);
  opacity: .8; pointer-events: none;
}
.hero::before { left: 0; border-bottom-right-radius: 100% 30%; }
.hero::after { right: 0; border-bottom-left-radius: 100% 30%; }
.hero .container { position: relative; z-index: 1; text-align: center; }
.hero .eyebrow { display: inline-block; color: var(--gold-400); text-transform: uppercase; letter-spacing: .22em; font-size: .85rem; margin-bottom: 14px; }
.hero h1 { color: #fff; text-shadow: 0 4px 30px rgba(0, 0, 0, .45); animation: rise .8s ease both; }
.hero .lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); max-width: 720px; margin: 0 auto 28px; color: #f6e8dc; animation: rise .8s .12s ease both; }
.hero .meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; color: var(--gold-400); margin-bottom: 30px; font-size: 1rem; }
.hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero .actions { animation: rise .8s .24s ease both; }
.hero-valance {
  position: absolute; left: 0; right: 0; top: 0; height: 26px; z-index: 2;
  background: radial-gradient(circle at 25px -8px, var(--curtain-900) 24px, transparent 25px) 0 0 / 50px 26px repeat-x;
}

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); } 100% { transform: scale(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(47, 116, 224, .5); } 50% { box-shadow: 0 0 0 7px rgba(47, 116, 224, 0); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font: 600 1.05rem/1.2 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-primary { background: linear-gradient(180deg, var(--gold-400), var(--gold-500)); color: var(--curtain-900); box-shadow: 0 8px 22px rgba(200, 150, 58, .35); }
.btn-primary:hover:not(:disabled) { color: var(--curtain-900); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(200, 150, 58, .45); }
.btn-red { background: linear-gradient(180deg, var(--curtain-500), var(--curtain-600)); color: #fff; box-shadow: 0 8px 22px rgba(122, 26, 46, .3); }
.btn-red:hover:not(:disabled) { color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--curtain-600); border-color: var(--line); }
.btn-ghost:hover:not(:disabled) { border-color: var(--curtain-500); color: var(--curtain-500); background: #fff; }
.btn-light { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-light:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: .95rem; }
.btn-block { width: 100%; }

/* ---------- Abschnitte & Karten ---------- */
.section { padding: clamp(48px, 7vw, 84px) 0; }
.section-title { text-align: center; margin-bottom: 36px; }
.section-title p { color: var(--ink-500); max-width: 640px; margin: 0 auto; }
.card { background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: clamp(20px, 3vw, 32px); }

.events-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.event-card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  animation: rise .6s ease both;
}
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold-500); }
.event-card .date-row { display: flex; gap: 16px; align-items: center; }
.date-badge {
  flex: 0 0 auto; width: 78px; text-align: center; border-radius: 16px; overflow: hidden;
  background: var(--curtain-600); color: #fff; box-shadow: 0 6px 16px rgba(122, 26, 46, .3);
}
.date-badge .m { display: block; background: var(--curtain-800); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; padding: 4px 0; color: var(--gold-400); }
.date-badge .d { display: block; font: 700 2rem/1.1 var(--font-serif); padding: 6px 0 8px; }
.event-card .weekday { font: 700 1.3rem/1.2 var(--font-serif); }
.event-card .time { color: var(--ink-700); font-size: 1.05rem; }
.event-card .tag { display: inline-block; background: var(--gold-400); color: var(--curtain-900); border-radius: 999px; padding: 2px 12px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; }
.availability { font-size: .95rem; color: var(--ink-700); }
.availability .bar { height: 8px; border-radius: 99px; background: var(--cream-200); overflow: hidden; margin-top: 6px; }
.availability .bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--seat-free), #6bcf8f); transition: width .8s ease; }
.availability.low .bar span { background: linear-gradient(90deg, var(--seat-admin), #f5b25c); }
.availability.none .bar span { background: var(--seat-reserved); }
.event-card .btn { margin-top: auto; }

.info-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.info-card h3 { display: flex; align-items: center; gap: 10px; color: var(--curtain-600); }
.price-list { list-style: none; margin: 0 0 12px; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.price-list strong { font-size: 1.15rem; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--ink-500); }
.empty-state .icon { font-size: 3rem; }

/* ---------- Fußzeile ---------- */
.site-footer { background: var(--curtain-900); color: #d8c7bd; padding: 36px 0; font-size: .95rem; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer a { color: var(--gold-400); }

/* ---------- Hinweise ---------- */
.alert { border-radius: var(--radius); padding: 14px 18px; margin: 0 0 16px; border: 1px solid; display: flex; gap: 12px; align-items: flex-start; animation: fadein .3s ease; }
.alert::before { font-size: 1.2rem; line-height: 1.3; }
.alert-info { background: #eaf2fe; border-color: #bcd4f8; color: #1d4c94; }
.alert-info::before { content: "ℹ️"; }
.alert-success { background: #e8f6ee; border-color: #b6e2c6; color: #165f35; }
.alert-success::before { content: "✅"; }
.alert-warn { background: #fff5e3; border-color: #f2d49a; color: #7a4e0b; }
.alert-warn::before { content: "⚠️"; }
.alert-error { background: #fdecea; border-color: #f4bcb5; color: #8e2318; }
.alert-error::before { content: "⛔"; }
.alert ul { margin: 0; padding-left: 18px; }

/* ---------- Buchungsseite ---------- */
.event-strip { background: linear-gradient(180deg, var(--curtain-800), var(--curtain-700)); color: #fff; padding: 22px 0; }
.event-strip .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.event-strip h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); margin: 0; color: #fff; }
.event-strip .when { color: var(--gold-400); font-size: 1.05rem; }
.event-strip a { color: #f6e8dc; }

.stepper { display: flex; gap: 8px; list-style: none; padding: 0; margin: 26px 0; counter-reset: step; }
.stepper li {
  flex: 1; display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink-500); font-weight: 600; font-size: .98rem; transition: all .25s;
}
.stepper li::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; flex: 0 0 32px; height: 32px; border-radius: 50%;
  background: var(--cream-200); color: var(--ink-700); font-weight: 700;
}
.stepper li.active { border-color: var(--gold-500); color: var(--ink-900); box-shadow: 0 0 0 3px rgba(226, 182, 90, .25); }
.stepper li.active::before { background: var(--gold-500); color: var(--curtain-900); }
.stepper li.done { color: var(--ok); }
.stepper li.done::before { content: "✓"; background: var(--ok); color: #fff; }

.booking-layout { display: grid; gap: 26px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; padding-bottom: 60px; }
.booking-step[hidden] { display: none !important; }

.summary-panel { position: sticky; top: 88px; }
.summary-panel h3 { margin-bottom: 12px; }
.summary-seats { list-style: none; padding: 0; margin: 0 0 14px; }
.summary-seats li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 1.02rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.15rem; margin: 12px 0 18px; }
.summary-total strong { font: 700 1.6rem/1 var(--font-serif); color: var(--curtain-600); }
.summary-empty { color: var(--ink-500); font-style: italic; }

.helper-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.helper-bar label { font-weight: 600; }
.stepper-input { display: inline-flex; align-items: center; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper-input button { width: 46px; height: 46px; border: 0; background: var(--cream-100); font-size: 1.4rem; cursor: pointer; color: var(--curtain-600); transition: background .15s; }
.stepper-input button:hover { background: var(--cream-200); }
.stepper-input output, .stepper-input input { width: 52px; text-align: center; font-size: 1.2rem; font-weight: 700; border: 0; background: transparent; }

/* ---------- Saal / Sitzplan ---------- */
.hall {
  position: relative; background: radial-gradient(ellipse at 50% 0%, #3b1a26 0%, #1d0c13 70%);
  border-radius: var(--radius-lg); padding: clamp(14px, 3vw, 30px) clamp(8px, 2vw, 26px) clamp(18px, 3vw, 30px);
  color: #f3e6da; box-shadow: var(--shadow); overflow: hidden;
}
.stage {
  position: relative; margin: 0 auto clamp(20px, 4vw, 36px); width: min(86%, 560px); height: 54px;
  display: grid; place-items: center; color: var(--curtain-900);
  font: 700 1rem/1 var(--font-sans); letter-spacing: .4em; text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  border-radius: 8px 8px 50% 50% / 8px 8px 22px 22px;
  box-shadow: 0 14px 40px rgba(240, 207, 131, .35), inset 0 -6px 12px rgba(0, 0, 0, .15);
}
.stage::after { content: ""; position: absolute; inset: auto 10% -26px; height: 26px; background: radial-gradient(ellipse at 50% 0, rgba(240, 207, 131, .3), transparent 70%); }

.seat-rows { display: flex; flex-direction: column; gap: var(--seat-gap); align-items: center; }
.seat-row { display: flex; align-items: center; gap: var(--seat-gap); }
.row-label { width: 28px; text-align: center; font-weight: 700; font-size: .85rem; color: var(--gold-400); flex: 0 0 auto; }
.row-seats { display: flex; gap: var(--seat-gap); }
.seat-row.admin-row .row-label { color: var(--seat-admin); }
.seat-row.inactive { opacity: .35; }
.row-divider { width: 100%; max-width: 520px; height: 1px; margin: 4px 0; background: linear-gradient(90deg, transparent, rgba(238, 138, 28, .6), transparent); position: relative; }
.row-divider span { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); background: #2a121b; padding: 0 10px; font-size: .72rem; color: var(--seat-admin); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }

.seat {
  position: relative; width: var(--seat-size); height: var(--seat-size); padding: 0;
  border: 0; border-radius: 9px 9px 6px 6px; cursor: pointer;
  font: 700 calc(var(--seat-size) * .36)/1 var(--font-sans); color: #fff;
  display: grid; place-items: center;
  transition: transform .15s ease, box-shadow .2s, background .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.seat::after { /* Armlehne/Lehne-Andeutung */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: -3px; height: 4px; border-radius: 3px; background: rgba(0, 0, 0, .28);
}
.seat.free { background: var(--seat-free); box-shadow: inset 0 -4px 0 var(--seat-free-dark); }
.seat.free:hover:not(:disabled) { transform: translateY(-3px) scale(1.08); box-shadow: inset 0 -4px 0 var(--seat-free-dark), 0 6px 14px rgba(35, 164, 85, .45); }
.seat.reserved { background: var(--seat-reserved); cursor: not-allowed; box-shadow: inset 0 -4px 0 #9e2a2a; }
.seat.team { background: var(--seat-admin); cursor: not-allowed; box-shadow: inset 0 -4px 0 #b96210; }
.seat.blocked { background: var(--seat-blocked); cursor: not-allowed; box-shadow: inset 0 -4px 0 #5e5e66;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.18) 0 3px, transparent 3px 7px); }
.seat.unavailable { background: transparent; color: #9fd7b4; box-shadow: inset 0 0 0 2px rgba(35, 164, 85, .55); cursor: not-allowed; }
.seat.adminonly { background: transparent; color: #f7c58e; box-shadow: inset 0 0 0 2px rgba(238, 138, 28, .7); cursor: not-allowed; }
.seat.selected { background: var(--seat-selected); box-shadow: inset 0 -4px 0 #1d4fa3, 0 0 0 3px #fff; animation: pop .3s ease, pulse 1.8s 0.3s infinite; }
.seat.problem { box-shadow: inset 0 -4px 0 #1d4fa3, 0 0 0 3px var(--seat-admin); }
.seat:disabled { cursor: not-allowed; }
.seat.flash { animation: pop .4s ease 2; }
/* Admin: Markierung für Mehrfachauswahl gesperrter/belegter Plätze */
.seat.marked { outline: 3px solid #fff; outline-offset: 2px; }
.seat.highlight { outline: 3px dashed var(--gold-400); outline-offset: 2px; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: center; margin-top: 22px; font-size: .92rem; color: #f3e6da; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 20px; height: 20px; border-radius: 6px 6px 4px 4px; display: inline-block; }
.legend .l-free { background: var(--seat-free); }
.legend .l-selected { background: var(--seat-selected); }
.legend .l-reserved { background: var(--seat-reserved); }
.legend .l-team { background: var(--seat-admin); }
.legend .l-blocked { background: var(--seat-blocked); }
.legend .l-unavailable { box-shadow: inset 0 0 0 2px rgba(35, 164, 85, .7); }
.legend .l-adminonly { box-shadow: inset 0 0 0 2px rgba(238, 138, 28, .8); }

.hall-status { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 14px; font-size: .85rem; color: #cdb9ad; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--seat-free); margin-right: 6px; animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0%, 100% { box-shadow: 0 0 0 0 rgba(35, 164, 85, .6); } 50% { box-shadow: 0 0 0 6px rgba(35, 164, 85, 0); } }

.rule-messages { min-height: 0; }

/* ---------- Formulare ---------- */
.form-grid { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-size: .88rem; color: var(--ink-500); margin-top: 4px; }
.field .badge-rec { display: inline-block; font-size: .72rem; background: var(--seat-free); color: #fff; border-radius: 99px; padding: 1px 8px; margin-left: 6px; vertical-align: middle; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search],
input[type=datetime-local], input[type=date], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; font: inherit; color: var(--ink-900);
  background: #fff; border: 2px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(226, 182, 90, .22); }
input[aria-invalid=true] { border-color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { width: 24px; height: 24px; margin-top: 3px; accent-color: var(--curtain-600); flex: 0 0 auto; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.category-list { display: grid; gap: 12px; }
.category-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.category-row .name { font-weight: 600; }
.category-row .price { color: var(--ink-500); font-size: .95rem; }

.review-table { width: 100%; border-collapse: collapse; font-size: 1.05rem; }
.review-table th, .review-table td { text-align: left; padding: 12px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.review-table th { width: 38%; color: var(--ink-500); font-weight: 600; }
.review-table .total td, .review-table .total th { font-size: 1.25rem; color: var(--ink-900); border-bottom: 0; }
.seat-lines { font-weight: 700; font-size: 1.15rem; }

.step-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; margin-top: 24px; }

/* ---------- Ticket / Bestätigung ---------- */
.ticket-wrap { padding: 34px 0 70px; }
.success-banner { text-align: center; margin-bottom: 26px; animation: rise .6s ease both; }
.success-banner .icon { display: inline-grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2.6rem; box-shadow: 0 12px 30px rgba(31, 138, 76, .35); animation: pop .6s .2s ease both; }
.ticket {
  position: relative; display: grid; grid-template-columns: 1fr 280px; background: #fff;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; animation: rise .6s .1s ease both;
}
.ticket-main { padding: clamp(22px, 4vw, 38px); }
.ticket-head { background: linear-gradient(135deg, var(--curtain-700), var(--curtain-500)); color: #fff; margin: calc(-1 * clamp(22px, 4vw, 38px)) calc(-1 * clamp(22px, 4vw, 38px)) 24px; padding: 22px clamp(22px, 4vw, 38px); }
.ticket-head .org { color: var(--gold-400); text-transform: uppercase; letter-spacing: .16em; font-size: .8rem; }
.ticket-head h2 { color: #fff; margin: 4px 0 2px; }
.ticket-side { background: var(--cream-100); border-left: 2px dashed var(--line); padding: 28px 22px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; position: relative; }
.ticket-side::before, .ticket-side::after { content: ""; position: absolute; left: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--cream-100); }
.ticket-side::before { top: -13px; }
.ticket-side::after { bottom: -13px; }
.ticket-side img { width: 220px; height: 220px; image-rendering: pixelated; background: #fff; padding: 6px; border-radius: 12px; }
.res-code { font: 700 1.7rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .08em; color: var(--curtain-600); }
.ticket dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0; }
.ticket dt { color: var(--ink-500); font-weight: 600; }
.ticket dd { margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.status-pill.ok { background: #e3f5ea; color: var(--ok); }
.status-pill.warn { background: #fff1d6; color: var(--warn); }
.status-pill.bad { background: #fde4e1; color: var(--danger); }
.ticket-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* ---------- Handy-Scanner ---------- */
.scan-body { background: #12070c; color: #f3e6da; min-height: 100vh; }
.scan-top { padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--curtain-900); border-bottom: 1px solid rgba(226, 182, 90, .25); }
.scan-top strong { font-family: var(--font-serif); font-size: 1.1rem; }
.scan-status { font-size: .85rem; color: var(--gold-400); }
.scan-video-wrap { position: relative; margin: 14px; border-radius: 20px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; max-height: 62vh; }
.scan-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18%; border: 4px solid rgba(240, 207, 131, .95); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .38); }
.scan-frame::after { content: ""; position: absolute; left: 6%; right: 6%; top: 50%; height: 3px; background: var(--seat-reserved); box-shadow: 0 0 12px var(--seat-reserved); animation: scanline 2s ease-in-out infinite; }
@keyframes scanline { 0%, 100% { transform: translateY(-80px); } 50% { transform: translateY(80px); } }
.scan-result { margin: 0 14px 14px; padding: 16px; border-radius: 16px; background: #2a1820; border: 2px solid #4a2a36; min-height: 96px; }
.scan-result.ok { border-color: var(--seat-free); background: #0f2a1a; }
.scan-result.warn { border-color: var(--seat-admin); background: #2e1e08; }
.scan-result.error { border-color: var(--seat-reserved); background: #2e0d0d; }
.scan-result .big { font-size: 1.3rem; font-weight: 700; }
.scan-manual { display: flex; gap: 8px; margin: 0 14px 24px; }
.scan-manual input { flex: 1; background: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .booking-layout { grid-template-columns: 1fr; }
  .summary-panel { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 40; border-radius: 22px 22px 0 0; box-shadow: 0 -12px 36px rgba(36, 22, 27, .2); padding: 14px 18px calc(14px + env(safe-area-inset-bottom)); }
  .summary-panel h3, .summary-panel .summary-seats, .summary-panel .hide-mobile { display: none; }
  .summary-panel .summary-total { margin: 0 0 10px; }
  body.booking { padding-bottom: 150px; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .site-nav a.hide-sm { display: none; }
  .brand-text span { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .stepper li { font-size: 0; padding: 10px; justify-content: center; }
  .stepper li::before { font-size: 1rem; }
  .stepper li.active { font-size: .9rem; flex: 2.4; }
  .ticket { grid-template-columns: 1fr; }
  .ticket-side { border-left: 0; border-top: 2px dashed var(--line); }
  .ticket-side::before, .ticket-side::after { display: none; }
  .row-label { width: 20px; font-size: .75rem; }
  .review-table th { width: 42%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Druck ---------- */
@media print {
  body { background: #fff; font-size: 12pt; }
  .site-header, .site-footer, .ticket-actions, .no-print, .success-banner .btn { display: none !important; }
  .ticket { box-shadow: none; border: 1px solid #999; }
  .ticket-head { background: none !important; color: #000; border-bottom: 2px solid #000; }
  .ticket-head h2, .ticket-head .org { color: #000; }
  a { color: #000; text-decoration: none; }
}
