/* Styles für die wiederverwendbare Sitzplatzwahl (js/seat-picker.js).
   Nutzt die bestehenden Marken-Tokens aus colors_and_type.css. */
.banner-note {
  background: var(--color-orange-50);
  border: 1px solid var(--color-orange-100);
  color: var(--color-orange-700);
  font-size: 13px;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 20px;
}
.seatplan-strip {
  background: var(--color-brand-navy);
  color: var(--color-white);
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  border-radius: 6px;
  padding: 6px 0;
  margin-bottom: 10px;
}
.seatplan-strip-south { margin-top: 10px; margin-bottom: 0; }
.seatplan-row {
  display: flex;
  gap: 14px;
}
/* Flex statt festem 3-Spalten-Grid: eine Zeile kann auch nur 2 Blöcke enthalten
   (z. B. Einzelticket ohne VIP-Block B) und teilt den Platz trotzdem gleichmäßig auf. */
.seatplan-row .seatplan-block { flex: 1 1 0; min-width: 0; }
.seatplan-block {
  background: var(--color-neutral-50);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  padding: 10px;
  overflow-x: auto;
}
.seatplan-block.cat1 { background: var(--color-orange-50); border-color: var(--color-orange-100); }
.seatplan-block-label { text-align: center; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.seatplan-block-cat { text-align: center; font-size: 10px; color: var(--text-muted); margin-bottom: 8px; }
.seatplan-grid { display: grid; gap: 3px; justify-content: center; width: max-content; margin: 0 auto; }
/* Jede Reihe eine eigene zentrierte Flex-Zeile — reale Reihen sind unterschiedlich breit,
   das ergibt automatisch die typische, zum Spielfeld hin verjüngte Tribünenform statt
   eines starren Rasters mit linksbündig "abgeschnittenen" kürzeren Reihen. */
.seatplan-grid-wrap { display: flex; flex-direction: column; gap: 2px; align-items: center; margin: 0 auto; }
.seatplan-row-line { display: flex; gap: 2px; justify-content: center; }
.seatplan-seat {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--color-neutral-200); border: 1px solid var(--color-neutral-300); cursor: pointer; padding: 0;
}
/* Sitzfarbe nach Kategorie, wie im Original-Saalplan (Kategorie 1/2/VIP je eigene Farbe) —
   macht den Block auf einen Blick als das erkennbar, was er im echten Plan ist. */
.seatplan-seat.cat-kat1 { background: #D99A3E; border-color: #B87F2E; }
.seatplan-seat.cat-kat2 { background: #7A8CA6; border-color: #5F7089; }
.seatplan-seat.cat-vip { background: #B3392C; border-color: #8F2D22; }
.seatplan-seat[disabled] { opacity: .35; cursor: not-allowed; }
.seatplan-seat.selected {
  box-shadow: 0 0 0 2px var(--color-brand-navy);
  outline: 1px solid var(--color-white); outline-offset: -2px;
}
.seatplan-seat:focus-visible { outline: 2px solid var(--color-brand-blue); outline-offset: 1px; }

.seatplan-block-controls { margin-top: 10px; border-top: 1px dashed var(--color-neutral-200); padding-top: 8px; }
.seatplan-stepper-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; padding: 4px 0; gap: 8px; white-space: nowrap;
}
.seatplan-stepper { display: inline-flex; align-items: center; gap: 6px; }
.seatplan-stepper button {
  width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--color-neutral-300);
  background: var(--color-white); font-size: 13px; line-height: 1; cursor: pointer; padding: 0;
}
.seatplan-stepper button:hover { background: var(--color-neutral-50); }
.seatplan-stepper input[data-count] {
  width: 34px; text-align: center; font-weight: 700; font-family: inherit; font-size: 11px;
  border: 1px solid var(--color-neutral-200); border-radius: 4px; padding: 2px 0; -moz-appearance: textfield;
}
.seatplan-stepper input[data-count]::-webkit-outer-spin-button,
.seatplan-stepper input[data-count]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* Dauerkarte: kompaktes Kauf-Grid (Vorschaubild | Preise | Warenkorb), das große
   interaktive Sitzplan-Popup öffnet sich erst per Klick auf das Vorschaubild. */
.buy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1.1fr;
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .buy-grid { grid-template-columns: 1fr; }
}
/* Cart-Spalte streckt sich auf die Höhe der Preise-/Vorschaubild-Spalte; der leere
   Zustand ("Noch keine Plätze ausgewählt") füllt den Platz, sodass der Button unten
   immer mit der Unterkante von Preistabelle und Floorplan abschließt. */
.buy-cart-col { display: flex; flex-direction: column; }
.buy-cart-col #seatplan-cart { flex: 1; }
.buy-thumb-btn {
  display: block; width: 100%; height: 100%; padding: 0; border: 1px solid var(--border);
  border-radius: var(--radius-md); background: none; cursor: pointer; position: relative;
  overflow: hidden;
}
.buy-thumb-btn img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.buy-thumb-cta {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0,18,45,.82), rgba(0,18,45,0));
  color: var(--color-white); font-size: 13px; font-weight: 600;
  padding: 24px 12px 10px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.buy-prices-col .price-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--bg-muted); font-size: 14px; }
.buy-prices-col .price-row:last-of-type { border-bottom: none; }

/* Callout "Dauerkarte trotz laufender Saison" unter "Gut zu wissen" */
.dauerkarte-callout {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: var(--color-orange-50); border: 1px solid var(--color-orange-100); border-radius: var(--radius-lg);
  padding: 18px 20px; margin-top: 16px;
}
.dauerkarte-callout p { margin: 0; flex: 1; min-width: 220px; }

.seatplan-court-area { display: flex; gap: 10px; align-items: stretch; margin-top: 14px; }
.seatplan-side-strip {
  writing-mode: vertical-rl;
  background: var(--color-brand-blue);
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 6px;
  padding: 8px 4px;
  text-align: center;
  white-space: nowrap;
}
/* Stehblock — im Original-Saalplan eine eigene große Fläche links neben dem Spielfeld,
   nicht buchbar (kein Ticket-Produkt), nur zur räumlichen Einordnung gezeigt. */
.seatplan-side-strip.stehblock {
  writing-mode: horizontal-tb;
  background: #6A4C93;
  flex: 0 0 84px;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; letter-spacing: 0.04em;
}
.seatplan-side-strip.entrance { flex: 0 0 24px; }
.seatplan-court {
  flex: 1;
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-md);
  min-height: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  color: var(--text-muted); font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  background: var(--color-white);
}
/* Legende sitzt wie im Original-Saalplan mitten im Spielfeld-Bereich. */
.seatplan-court .seatplan-legend { justify-content: center; overflow-x: visible; white-space: normal; }

/* Fußzeile des Sitzplan-Popups: "Übernehmen"-Button rechtsbündig, muss nicht mehr
   die volle Breite einnehmen (die Legende sitzt jetzt wie im Original im Spielfeld). */
.seatplan-footer-row { display: flex; justify-content: flex-end; margin-top: 14px; }

/* Eine einzige, zeilenbündige Legende — Kategorie-Farben und Status (frei/vergeben/Auswahl)
   nebeneinander statt in zwei getrennten, uneinheitlich gestylten Boxen. */
.seatplan-legend {
  display: flex; gap: 12px; font-size: 11px; color: var(--text-muted);
  flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-bottom: 2px;
}
.seatplan-legend span { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; }
.seatplan-legend i { width: 10px; height: 10px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.seatplan-legend .cat-kat1 i { background: #D99A3E; }
.seatplan-legend .cat-kat2 i { background: #7A8CA6; }
.seatplan-legend .cat-vip i { background: #B3392C; }
.seatplan-legend .free i { background: var(--color-neutral-300); border: 1px solid var(--color-neutral-400); }
.seatplan-legend .taken i { background: var(--color-neutral-300); border: 1px solid var(--color-neutral-400); opacity: .35; }
.seatplan-legend .sel i { background: var(--color-neutral-300); box-shadow: 0 0 0 2px var(--color-brand-navy); }

.seatplan-cart-empty { font-size: 13px; color: var(--text-muted); padding: 12px 0; }
.seatplan-cart-item {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 10px 0; border-bottom: 1px solid var(--color-neutral-100); font-size: 13px; gap: 10px;
}
.seatplan-cart-item:last-of-type { border-bottom: none; }
.seatplan-cart-item-right { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.seatplan-cart-item button {
  background: none; border: none; color: var(--color-error); font-size: 12px; cursor: pointer; padding: 2px 4px;
}
.seatplan-tarif-select { margin-top: 4px; font-size: 12px; font-family: inherit; padding: 2px 4px; border-radius: 4px; border: 1px solid var(--color-neutral-200); }
.seatplan-nachwuchs-row {
  display: flex; align-items: center; gap: 10px; padding: 12px 0;
  border-top: 1px dashed var(--color-neutral-200); font-size: 13px; cursor: pointer;
}
.seatplan-nachwuchs-row input { width: 16px; height: 16px; accent-color: var(--color-brand-orange); flex-shrink: 0; }
.seatplan-nachwuchs-row span { flex: 1; }
.seatplan-nachwuchs-row .t-caption { display: block; color: var(--text-muted); }
.seatplan-voucher-row { padding: 12px 0; border-top: 1px dashed var(--color-neutral-200); }
.seatplan-voucher-input-wrap { display: flex; gap: 8px; }
.seatplan-voucher-input-wrap input {
  flex: 1; font-size: 13px; font-family: inherit; padding: 8px 10px;
  border: 1px solid var(--color-neutral-200); border-radius: var(--radius-md);
}
.seatplan-voucher-input-wrap button {
  flex-shrink: 0; font-size: 13px; font-weight: 600; padding: 8px 14px;
  border: 1px solid var(--color-brand-navy); border-radius: var(--radius-md);
  background: var(--color-white); color: var(--color-brand-navy); cursor: pointer;
}
.seatplan-voucher-input-wrap button:hover { background: var(--color-brand-navy); color: var(--color-white); }
.seatplan-voucher-error { color: var(--color-error); font-size: 12px; margin: 6px 0 0; }
.seatplan-voucher-applied {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--color-heart-green); font-weight: 600;
}
.seatplan-voucher-applied span { display: inline-flex; align-items: center; gap: 6px; }
.seatplan-voucher-applied button {
  background: none; border: none; color: var(--text-muted); font-size: 12px;
  font-weight: 400; cursor: pointer; padding: 2px 4px; text-decoration: underline;
}
.seatplan-cart-total {
  display: flex; justify-content: space-between; font-weight: 700; font-size: 15px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--color-neutral-100);
}
.seatplan-notiz-row { padding: 12px 0; border-top: 1px dashed var(--color-neutral-200); }
.seatplan-notiz-row label { display: block; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.seatplan-notiz-row textarea {
  width: 100%; font-size: 13px; font-family: inherit; padding: 8px 10px; resize: vertical;
  border: 1px solid var(--color-neutral-200); border-radius: var(--radius-md);
}
.seatplan-notiz-row textarea::placeholder { color: var(--text-muted); opacity: .7; }
.seatplan-notiz-row textarea:focus { outline: 2px solid var(--color-brand-blue); outline-offset: 1px; }

@media (max-width: 720px) {
  .seatplan-row { grid-template-columns: 1fr; }
}
