/* ============================================================
   FREIKARTEN - Mobile-First Styles
   Die Unfassbaren Branding - Hell & Freundlich
   Primary: #f16521 (Orange), Background: #f7f7f8, Cards: #fff
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f7f7f8;
  color: #333;
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ── App Layout ───────────────────────────────────────────── */

#app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 1rem 1.5rem;
  background: #fff;
  border-bottom: 3px solid #f16521;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.logo-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.logo-img {
  height: 48px;
  width: auto;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: #f16521;
  letter-spacing: 0.5px;
}

.logo-sub {
  font-size: 0.75rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 500;
}

.app-footer {
  padding: 1.25rem 1rem;
  text-align: center;
  color: #aaa;
  font-size: 0.75rem;
  margin-top: auto;
  background: #fff;
  border-top: 1px solid #eee;
}

/* ── Screen Container ─────────────────────────────────────── */

.screen-container {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.5rem 1rem;
}

.screen {
  display: none;
  width: 100%;
  max-width: 480px;
  animation: fadeIn 0.3s ease;
}

.screen.active {
  display: block;
}

.screen-inner {
  width: 100%;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Screen Header ────────────────────────────────────────── */

.screen-header {
  margin-bottom: 1.5rem;
}

#screen-shows .screen-header:empty {
  margin-bottom: 0;
}

.screen-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 0.35rem;
  color: #222;
}

/* ── Cards ────────────────────────────────────────────────── */

.card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 16px;
  padding: 2rem 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.card-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.card h2 {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #222;
}

.card-desc {
  text-align: center;
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

/* ── PIN Input ────────────────────────────────────────────── */

.pin-input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
}

.pin-input {
  width: 100%;
  padding: 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.5rem;
  background: #fafafa;
  border: 2px solid #ddd;
  border-radius: 12px;
  color: #222;
  outline: none;
  transition: border-color 0.2s;
  font-family: 'Courier New', monospace;
}

.pin-input:focus {
  border-color: #f16521;
  box-shadow: 0 0 0 3px rgba(241, 101, 33, 0.12);
}

.pin-input::placeholder {
  color: #bbb;
  letter-spacing: 0.3rem;
  font-size: 1.25rem;
}

.pin-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.pin-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.2s;
}

.pin-dot.filled {
  background: #f16521;
}

/* ── Buttons ──────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-primary {
  background: #f16521;
  color: #fff;
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  background: #e05a1a;
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(241, 101, 33, 0.3);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

.btn-back {
  background: none;
  border: none;
  color: #f16521;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0;
  font-family: inherit;
}

.btn-back:hover {
  color: #d4550f;
}

/* ── Error Message ────────────────────────────────────────── */

.error-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* ── Show Search Bar ──────────────────────────────────────── */

.show-search-bar {
  margin-bottom: 1rem;
}

.show-search-input-wrap {
  position: relative;
}

.show-search-input-wrap .search-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #aaa;
  pointer-events: none;
}

.show-search-input {
  width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 2.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 0.9rem;
  font-family: inherit;
  color: #333;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.show-search-input:focus {
  border-color: #f16521;
  box-shadow: 0 0 0 3px rgba(241, 101, 33, 0.08);
}

.show-search-input::placeholder {
  color: #bbb;
}

.show-search-input-wrap .show-search-clear {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  line-height: 1;
  display: none;
}

.show-search-clear.visible {
  display: block;
}

.show-search-clear:hover {
  color: #666;
}

.show-search-status {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.4rem;
  min-height: 1.1em;
}

.show-search-status .radius-info {
  color: #f16521;
  font-weight: 500;
}

/* ── Distance Badge ──────────────────────────────────────── */

.distance-badge {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: #fff7f3;
  color: #f16521;
  margin-left: 0.5rem;
}

/* ── Show Card Highlight ─────────────────────────────────── */

.show-card.highlight {
  animation: cardHighlight 1.5s ease;
}

@keyframes cardHighlight {
  0%, 100% { box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
  30% { box-shadow: 0 0 0 3px rgba(241, 101, 33, 0.25), 0 6px 20px rgba(241, 101, 33, 0.12); }
}

/* ── Shows List ───────────────────────────────────────────── */

.shows-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.show-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.25rem;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.show-card:hover {
  border-color: #f16521;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(241, 101, 33, 0.12);
}

.show-card:active {
  transform: translateY(0);
}

.show-date {
  font-size: 0.8rem;
  color: #f16521;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.show-weekday {
  font-weight: 400;
  color: #999;
}

.show-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 0.25rem;
}

.show-location {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 0;
}

.show-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.show-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.show-card-sold-out {
  position: relative;
  overflow: hidden;
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.show-card-sold-out .show-date {
  color: #999;
}

.sold-out-ribbon,
.coming-soon-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-20deg);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 100%;
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
  white-space: nowrap;
  text-align: center;
  z-index: 1;
}

.sold-out-ribbon {
  background: #dc2626;
}

.coming-soon-ribbon {
  background: #16a34a;
}

.show-card-coming-soon {
  position: relative;
  overflow: hidden;
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.show-card-coming-soon .show-date {
  color: #999;
}

.badge-free {
  background: #f0fdf4;
  color: #16a34a;
}

.badge-fixed {
  background: #eff6ff;
  color: #2563eb;
}

.badge-available {
  font-size: 0.75rem;
  color: #888;
}

.badge-few {
  color: #d97706;
}

/* ── Booking Layout (zweispaltig bei fester Platzwahl) ───── */

.booking-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.booking-left {
  flex: 1;
  min-width: 0;
}

.booking-right {
  flex: 1;
  min-width: 0;
}

@media (min-width: 900px) {
  #app:has(#screen-booking.has-seatpicker.active) .app-header {
    display: none;
  }

  #screen-booking.has-seatpicker {
    max-width: 1400px;
  }

  .has-seatpicker .booking-layout {
    flex-direction: row;
    align-items: flex-start;
  }

  .has-seatpicker .booking-left {
    flex: 0 0 320px;
  }

  .has-seatpicker .booking-right {
    flex: 1;
    position: sticky;
    top: 1.5rem;
  }
}

/* ── Booking Card ─────────────────────────────────────────── */

.booking-show-info {
  background: #fff7f3;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-left: 3px solid #f16521;
}

.booking-show-info .show-date {
  margin-bottom: 0.15rem;
}

.booking-show-info .show-title {
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.booking-show-info .show-location {
  margin-bottom: 0;
}

/* ── Form ─────────────────────────────────────────────────── */

.form-section {
  margin-bottom: 1.5rem;
}

.form-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #444;
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

.form-row .form-group {
  flex: 1;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #666;
  margin-bottom: 0.35rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #fafafa;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #333;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus {
  border-color: #f16521;
  box-shadow: 0 0 0 3px rgba(241, 101, 33, 0.08);
  background: #fff;
}

.form-input::placeholder {
  color: #bbb;
}

/* ── Seat Picker ──────────────────────────────────────────── */

.seat-picker {
  position: relative;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
  min-height: 200px;
}

.seat-map {
  position: relative;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.seat-map-bg {
  width: 100%;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.seat-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  font-family: sans-serif;
  color: #333;
  text-align: center;
  z-index: 10;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.seat-dot:hover {
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.seat-dot.vip {
  background: rgba(255, 0, 0, 0.8);
  color: #fff;
}

.seat-dot.pk1 {
  background: rgba(138, 43, 226, 0.8);
  color: #fff;
}

.seat-dot.pk2 {
  background: rgba(255, 215, 0, 0.8);
}

.seat-dot.pk3 {
  background: rgba(30, 144, 255, 0.8);
  color: #fff;
}

.seat-dot.occupied {
  background: #555;
  color: rgba(255,255,255,0.3);
  cursor: not-allowed;
  opacity: 0.5;
}

.seat-dot.selected {
  background: #22c55e;
  color: #fff;
  transform: translate(-50%, -50%) scale(1.3);
  z-index: 100;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.4), 0 4px 8px rgba(0,0,0,0.3);
}

.selected-seat-info {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  text-align: center;
  margin-bottom: 1rem;
}

.seat-legend {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0,0,0,0.7);
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.65rem;
  color: #fff;
}

.seat-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.seat-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Selected Seats Section ───────────────────────────────── */

.selected-seats-section {
  margin-bottom: 1.5rem;
}

.selected-seats-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #444;
}

.freikarte-hint {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: #eff6ff;
  border-radius: 6px;
  border-left: 3px solid #2563eb;
}

.dsgvo-hint {
  font-size: 0.7rem;
  color: #999;
  margin: 0.75rem 0 0.5rem;
  line-height: 1.4;
}

.support-hint {
  font-size: 0.8rem;
  color: #888;
  margin-top: 1.25rem;
  line-height: 1.5;
  text-align: center;
}

.support-hint a {
  color: #f16521;
  text-decoration: none;
  font-weight: 500;
}

.support-hint a:hover {
  text-decoration: underline;
}

.field-hint {
  font-size: 0.75rem;
  color: #e53935;
  min-height: 1rem;
  margin-top: 0.2rem;
}

.selected-seats-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.no-seats-hint {
  font-size: 0.8rem;
  color: #999;
  font-style: italic;
}

.selected-seat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  font-size: 0.85rem;
}

.selected-seat-name {
  flex: 1;
  color: #333;
  font-weight: 500;
}

.selected-seat-tag {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.seat-tag-free {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.seat-tag-extra {
  background: #fff7f3;
  color: #f16521;
  border: 1px solid #fed7aa;
}

.selected-seat-remove {
  background: none;
  border: none;
  color: #999;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  transition: color 0.15s;
}

.selected-seat-remove:hover {
  color: #dc2626;
}

/* ── Upgrade Hint Toast (direkt am Cursor/Dot) ──────────── */

.upgrade-hint-toast {
  position: fixed;
  transform: translate(-50%, -100%);
  background: rgba(0, 0, 0, 0.88);
  color: #fff;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-size: 0.78rem;
  z-index: 1000;
  max-width: 260px;
  text-align: center;
  animation: hintFadeIn 0.15s ease;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.upgrade-hint-toast::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(0, 0, 0, 0.88);
}

@keyframes hintFadeIn {
  from { opacity: 0; transform: translate(-50%, -100%) translateY(4px); }
  to { opacity: 1; transform: translate(-50%, -100%) translateY(0); }
}

/* ── Extras Section ───────────────────────────────────────── */

.extras-section {
  margin-bottom: 1.5rem;
}

.extras-section h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: #444;
}

.extras-desc {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 1rem;
}

.extras-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.extra-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1rem;
  transition: border-color 0.2s;
}

.extra-option:has(input:checked),
.extra-option:has(.qty-display:not(:empty)) {
  border-color: #f16521;
  background: #fff7f3;
}

.extra-info {
  flex: 1;
}

.extra-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #333;
}

.extra-price {
  font-size: 0.8rem;
  color: #f16521;
  font-weight: 500;
  margin-top: 0.1rem;
}

.extra-desc {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.2rem;
}

.extra-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 1rem;
}

/* Quantity Buttons */

.btn-qty {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-qty:hover:not(:disabled) {
  border-color: #f16521;
  color: #f16521;
  background: #fff7f3;
}

.btn-qty:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.qty-display {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
  min-width: 24px;
  text-align: center;
}

/* Toggle Switch */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: #ddd;
  border-radius: 26px;
  transition: 0.3s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: #f16521;
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(22px);
}

/* ── Checkout Screen ─────────────────────────────────────── */

.checkout-card {
  /* Inherits .card styles */
}

.checkout-summary {
  margin: 1.5rem 0;
}

.checkout-line-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.checkout-line-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #eee;
}

.checkout-line-item:last-child {
  border-bottom: none;
}

.line-item-label {
  font-size: 0.9rem;
  color: #555;
}

.line-item-qty {
  color: #999;
  font-size: 0.8rem;
}

.line-item-price {
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}

.line-item-free {
  color: #16a34a;
  font-weight: 500;
}

.checkout-seat-info {
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: #999;
}

.checkout-total {
  border-top: 2px solid #eee;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
}

.checkout-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: #222;
}

.checkout-total-amount {
  color: #f16521;
  font-size: 1.25rem;
}

.checkout-hint {
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  margin-top: 1rem;
}

/* ── Processing ──────────────────────────────────────────── */

.processing-card {
  text-align: center;
  padding: 3rem 1.5rem;
}

.processing-card .spinner-lg {
  margin: 0 auto 1.5rem;
}

.processing-card h2 {
  margin-bottom: 0.75rem;
}

.processing-msg {
  color: #666;
  margin-bottom: 1.5rem;
}

.partial-error {
  background: #fef3cd;
  border: 1px solid #f0d060;
  border-radius: 8px;
  padding: 1rem;
  font-size: 0.85rem;
  color: #856404;
  line-height: 1.5;
  margin-top: 0.75rem;
}

.partial-error a {
  color: #856404;
  font-weight: 600;
}

/* ── Confirmation ─────────────────────────────────────────── */

.confirmation-card {
  text-align: center;
}

.confirmation-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.confirmation-msg {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 1.5rem;
}

.confirmation-details {
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.confirmation-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
  font-size: 0.85rem;
}

.confirmation-details .detail-row:last-child {
  border-bottom: none;
}

.confirmation-details .detail-label {
  color: #888;
}

.confirmation-details .detail-value {
  color: #333;
  font-weight: 500;
}

.confirmation-details .detail-divider {
  border-top: 2px solid #eee;
  margin: 0.25rem 0;
}

.confirmation-email {
  color: #888;
  font-size: 0.85rem;
}

/* ── Loading States ───────────────────────────────────────── */

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #888;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #eee;
  border-top-color: #f16521;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

.spinner-lg {
  width: 48px;
  height: 48px;
  border-width: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn .spinner {
  width: 18px;
  height: 18px;
  border-width: 2px;
  border-color: rgba(255,255,255,0.3);
  border-top-color: #fff;
  margin: 0;
}

/* ── Empty State ──────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #999;
}

/* ── Show Map Container ──────────────────────────────────── */

.show-map-container {
  display: none;
}

/* ── Responsive ───────────────────────────────────────────── */

@media (min-width: 640px) {
  .screen-container {
    padding: 3rem 1.5rem;
    align-items: center;
  }

  .card {
    padding: 2.5rem 2rem;
  }

  .pin-input {
    font-size: 2rem;
    letter-spacing: 0.75rem;
    padding: 1.25rem;
  }

  .logo-img {
    height: 56px;
  }
}

/* ── Desktop: Show-Screen mit Karte ──────────────────────── */

@media (min-width: 900px) {
  #screen-shows.active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    align-items: start;
  }

  #screen-shows .screen-inner {
    min-width: 0;
  }

  #screen-shows .show-map-container {
    display: block;
    position: sticky;
    top: 1.5rem;
    height: calc(100vh - 8rem);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8e8e8;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    background: #e8e8e8;
  }

  #screen-shows .show-map-container #show-map {
    width: 100%;
    height: 100%;
  }
}

/* ── Seat Picker Mobile Touch ─────────────────────────────── */

@media (max-width: 640px) {
  .seat-dot {
    width: 16px;
    height: 16px;
    font-size: 7px;
  }

  .seat-dot:hover {
    transform: translate(-50%, -50%) scale(1.2);
  }

  .seat-dot.selected {
    transform: translate(-50%, -50%) scale(1.2);
  }

  .seat-picker {
    overflow-x: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: 60vh;
  }

  .seat-map {
    min-width: 300px;
  }

  .seat-dot-grid {
    padding: 0.5rem !important;
    font-size: 0.75rem !important;
    min-height: 36px;
  }
}

/* ── Dreh-Hinweis (nur Hochformat) ───────────────────────── */

.rotate-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: 8px;
  margin-bottom: 0.75rem;
  border: 1px solid #bfdbfe;
}

.rotate-hint-icon {
  font-size: 1.1rem;
  animation: wigglePhone 2.5s ease-in-out infinite;
}

@keyframes wigglePhone {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(90deg); }
  40% { transform: rotate(90deg); }
  60% { transform: rotate(0deg); }
}

@media (orientation: landscape) {
  .rotate-hint {
    display: none;
  }
}

/* ── Seat Picker Zoom Container ──────────────────────────── */

.seat-picker {
  touch-action: pan-x pan-y;
}

/* ── Landscape: Sitzplan volle Breite ────────────────────── */

@media (orientation: landscape) and (max-height: 500px) {

  /* Header + Footer weg (via :has auf #app) */
  #app:has(#screen-booking.has-seatpicker.active) .app-header,
  #app:has(#screen-booking.has-seatpicker.active) .app-footer {
    display: none !important;
  }

  /* Screen-Container: kein Padding */
  #app:has(#screen-booking.has-seatpicker.active) .screen-container {
    padding: 0 !important;
    align-items: stretch !important;
  }

  /* Screen: max-width aufheben */
  #screen-booking.has-seatpicker {
    max-width: none !important;
  }

  /* Screen-Inner: volle Breite */
  .has-seatpicker .screen-inner {
    max-width: none !important;
  }

  /* Booking Card: kein Padding/Rahmen */
  .has-seatpicker .booking-card {
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* Layout: Sitzplan oben, Formular darunter */
  .has-seatpicker .booking-layout {
    flex-direction: column-reverse !important;
  }

  /* Sitzplan volle Breite */
  .has-seatpicker .booking-right {
    width: 100% !important;
    display: block !important;
  }

  /* Formular darunter mit etwas Padding */
  .has-seatpicker .booking-left {
    padding: 1rem !important;
  }

  .has-seatpicker .seat-picker {
    max-height: none !important;
    overflow: visible !important;
    border: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
  }

  .has-seatpicker .seat-map {
    min-width: 100% !important;
    border-radius: 0 !important;
  }

  /* Sitzplatz-Kreise etwas kleiner */
  .has-seatpicker .seat-dot {
    width: 18px !important;
    height: 18px !important;
    font-size: 8px !important;
  }

  .has-seatpicker .seat-dot.selected {
    transform: translate(-50%, -50%) scale(1.2) !important;
  }
}

/* ── Confetti (for confirmation) ──────────────────────────── */

.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}
