/**
 * Helau Tickets - Saalplan Vektor & Interaktivitäts-Styles
 */

/* Saal-Geometrie */
.ht-hall-wall {
  fill: #ffffff;
  stroke: #495057;
  stroke-width: 3.5px;
}

.ht-door,
.ht-door-leaf {
  stroke: #495057;
  stroke-width: 2px;
  fill: none;
}

.ht-door-arc {
  stroke: #94a3b8;
  stroke-width: 1.2px;
  stroke-dasharray: 4, 3;
  fill: none;
}

.ht-door-label {
  font-family: var(--ht-font, sans-serif);
  font-size: 10px;
  font-weight: bold;
  fill: #166534;
  text-anchor: middle;
  letter-spacing: 0.3px;
}

/* Bühne */
.ht-stage-bg {
  fill: #f0f4f8;
  stroke: #607274;
  stroke-width: 2.5px;
}

.ht-stage-border {
  fill: #dbe4ee;
  stroke: #4a627a;
  stroke-width: 2px;
}

.ht-stage-plank {
  stroke: #b0c4de;
  stroke-width: 1px;
}

.ht-stage-arrow {
  fill: #4a627a;
  stroke: #4a627a;
  stroke-width: 1.5px;
}

.ht-stage-text {
  font-family: var(--ht-font);
  font-size: 13px;
  font-weight: bold;
  fill: #2c3e50;
  text-anchor: middle;
  letter-spacing: 0.5px;
}

.ht-stage-subtext {
  font-family: var(--ht-font);
  font-size: 10px;
  fill: #607274;
  text-anchor: middle;
}

/* Technik / Crew Schraffur */
.ht-crew-area {
  fill: url(#diagonal-stripe-pattern);
  stroke: #868e96;
  stroke-width: 1.5px;
}

.ht-crew-area-text {
  font-family: var(--ht-font);
  font-size: 11px;
  font-weight: bold;
  fill: #495057;
  text-anchor: middle;
}

/* Banner Samstag (Rot) / Freitag (Blau) */
.ht-banner-rect,
.ht-banner-group.event-samstag .ht-banner-rect {
  fill: #c1121f;
  stroke: #780000;
  stroke-width: 2px;
  rx: 6px;
}

.ht-banner-group.event-freitag .ht-banner-rect {
  fill: #2563eb;
  stroke: #1d4ed8;
  stroke-width: 2px;
  rx: 6px;
}

.ht-banner-text {
  font-family: var(--ht-font);
  font-size: 20px;
  font-weight: bold;
  fill: #ffffff;
  text-anchor: middle;
}

/* Tische */
.ht-table-shape {
  rx: 3px;
  transition: opacity 0.2s ease;
}

/* Schwarze Kontur = Normaler Sitztisch */
.table-contour-black .ht-table-shape {
  fill: #fca311;
  stroke: #111111;
  stroke-width: 2.5px;
}

/* Rote Kontur = Stehtisch-Variante */
.table-contour-red .ht-table-shape {
  fill: #fca311;
  stroke: #d90429;
  stroke-width: 3px;
}

/* Blaue Kontur = Bühnencrew */
.table-contour-blue .ht-table-shape {
  fill: url(#crew-grid-pattern);
  stroke: #0077b6;
  stroke-width: 2.5px;
}

/* Reserve- / Backup-Tisch (grau, gestrichelt & leicht transparent) */
.ht-table-group.ht-table-backup {
  opacity: 0.45;
  transition: opacity 0.18s ease;
}

.ht-table-group.ht-table-backup .ht-table-shape {
  fill: #cbd5e1;
  stroke: #64748b;
  stroke-width: 2.2px;
  stroke-dasharray: 6 3;
}

.ht-table-group.ht-table-backup .ht-table-label {
  fill: #475569;
}

.ht-table-group.ht-table-backup.is-activatable {
  cursor: pointer;
}

.ht-table-group.ht-table-backup.is-activatable:hover {
  opacity: 0.78;
}

.ht-table-group.ht-table-backup.is-activatable:hover .ht-table-shape {
  fill: #dbeafe;
  stroke: #2563eb;
  stroke-width: 2.6px;
  stroke-dasharray: 5 3;
}

.ht-table-group.ht-table-backup.is-activatable:hover .ht-table-label {
  fill: #1e3a8a;
}

.ht-table-label {
  font-family: var(--ht-font);
  font-weight: bold;
  font-size: 11px;
  fill: #000000;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
}

/* Sitze & Stühle */
.ht-seat-group {
  transition: transform 0.15s ease, filter 0.15s ease;
}

.ht-seat-group .seat-body {
  stroke-width: 1.2px;
  transition: fill 0.15s ease, stroke 0.15s ease, stroke-width 0.15s ease;
}

.ht-seat-group .seat-back {
  fill: none;
  stroke-width: 1.4px;
  transition: stroke 0.15s ease;
}

.ht-seat-group .seat-label {
  font-family: var(--ht-font);
  font-size: 9.5px;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  user-select: none;
}

/* 1. FREIE PLÄTZE (WEISS, KLICKBAR) */
.ht-seat-group.status-free {
  cursor: pointer;
}

.ht-seat-group.status-free .seat-body {
  fill: #ffffff;
  stroke: #212529;
}

.ht-seat-group.status-free .seat-back {
  stroke: #212529;
}

.ht-seat-group.status-free .seat-label {
  fill: #111111;
}

.ht-seat-group.status-free:hover .seat-body {
  fill: #eff6ff;
  stroke: #1d4ed8;
  stroke-width: 2px;
}

.ht-seat-group.status-free:hover .seat-back {
  stroke: #1d4ed8;
  stroke-width: 2px;
}

/* 2. BELEGTE PLÄTZE (GELB / GOLD, DEAKTIVIERT) */
.ht-seat-group.status-occupied {
  cursor: not-allowed;
}

.ht-seat-group.status-occupied .seat-body {
  fill: #ffb703;
  stroke: #c77700;
}

.ht-seat-group.status-occupied .seat-back {
  stroke: #c77700;
}

.ht-seat-group.status-occupied .seat-label {
  fill: #212529;
}

/* 3. AUSGEWÄHLTE PLÄTZE (GRÜN, KLAR & SCHARF) */
.ht-seat-group.status-selected {
  cursor: pointer;
}

.ht-seat-group.status-selected .seat-body {
  fill: #10b981;
  stroke: #065f46;
  stroke-width: 2.2px;
}

.ht-seat-group.status-selected .seat-back {
  stroke: #065f46;
  stroke-width: 2.2px;
}

.ht-seat-group.status-selected .seat-label {
  fill: #ffffff;
}

/* 4. BÜHNENCREW (BLAU KARIERT / GESPERRT) */
.ht-seat-group.status-crew {
  cursor: not-allowed;
}

.ht-seat-group.status-crew .seat-body {
  fill: #90e0ef;
  stroke: #0077b6;
}

.ht-seat-group.status-crew .seat-back {
  stroke: #0077b6;
}

.ht-seat-group.status-crew .seat-label {
  fill: #005080;
}

/* 5. GESPERRT AN ANDEREM SCHALTER (OPACITY 50%, GESTRICHELT, NICHT AUSWÄHLBAR) */
.ht-seat-group.status-locked-other {
  cursor: not-allowed;
  opacity: 0.5;
  filter: grayscale(30%);
}

.ht-seat-group.status-locked-other .seat-body {
  fill: #f1f5f9;
  stroke: #94a3b8;
  stroke-dasharray: 3, 2;
  stroke-width: 1.5px;
}

.ht-seat-group.status-locked-other .seat-back {
  stroke: #94a3b8;
  stroke-dasharray: 2, 2;
}

.ht-seat-group.status-locked-other .seat-label {
  fill: #64748b;
}

/* 6. RESERVE- / BACKUP-TISCH (GRAU, GESTRICHELT, NICHT WÄHLBAR) */
.ht-seat-group.status-backup {
  cursor: inherit;
}

.ht-seat-group.status-backup .seat-body {
  fill: #e2e8f0;
  stroke: #64748b;
  stroke-dasharray: 2.5 2;
}

.ht-seat-group.status-backup .seat-back {
  stroke: #64748b;
}

.ht-seat-group.status-backup .seat-label {
  fill: #64748b;
}

/* Fixe Hover-Infokarte (auf Bühne verankert) */
.ht-tooltip,
.ht-tooltip.ht-tooltip-stage {
  position: absolute;
  pointer-events: none;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(6px);
  color: #f8fafc;
  padding: 20px 28px;
  border-radius: 16px;
  font-size: 22px;
  line-height: 1.45;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.38);
  border: 3px solid rgba(251, 191, 36, 0.55);
  z-index: 500;
  display: none;
  transform: translate(-50%, -50%);
  min-width: min(400px, calc(100% - 24px));
  max-width: min(580px, calc(100% - 24px));
  text-align: center;
  white-space: normal;
}

@media (hover: none) and (pointer: coarse) {
  .ht-tooltip {
    display: none !important;
  }
}

.ht-tooltip-title {
  font-weight: bold;
  font-size: 27px;
  color: #fbbf24;
  margin-bottom: 6px;
  letter-spacing: 0.2px;
}

.ht-tooltip-meta {
  font-size: 21px;
  color: #e2e8f0;
}

.ht-tooltip-occupant {
  margin-top: 8px;
  font-size: 23px;
  font-weight: bold;
  color: #fde68a;
  word-break: break-word;
}

.ht-tooltip-badge {
  display: inline-block;
  font-size: 18px;
  font-weight: bold;
  padding: 6px 15px;
  border-radius: 8px;
  margin-top: 12px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.ht-tooltip-badge.badge-free {
  background: #10b981;
  color: white;
}

.ht-tooltip-badge.badge-occupied {
  background: #ffb703;
  color: #111;
}

.ht-tooltip-badge.badge-selected {
  background: #3b82f6;
  color: white;
}

.ht-tooltip-badge.badge-crew {
  background: #0ea5e9;
  color: white;
}

.ht-tooltip-badge.badge-locked {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.ht-tooltip-badge.badge-backup {
  background: #64748b;
  color: #ffffff;
}

/* Kiosk-Tisch-Aktionen: Abgetrennte Tischenden (A) Alle Plätze & (K) Kopfplatz */
.ht-table-action-btn {
  cursor: pointer;
  transition: opacity 0.14s ease;
}

.ht-table-action-bg {
  stroke: none;
  transition: fill 0.14s ease;
}

.ht-table-action-divider {
  stroke: #111111;
  stroke-width: 1.8px;
  pointer-events: none;
}

.table-contour-red .ht-table-action-divider {
  stroke: #d90429;
  stroke-width: 2px;
}

.ht-table-action-text {
  font-family: var(--ht-font, sans-serif);
  font-size: 11px;
  font-weight: bold;
  text-anchor: middle;
  dominant-baseline: central;
  pointer-events: none;
  user-select: none;
  transition: fill 0.14s ease;
}

.ht-table-action-all .ht-table-action-bg {
  fill: #bae6fd;
}

.ht-table-action-all .ht-table-action-text {
  fill: #0c4a6e;
}

.ht-table-action-all:hover:not(.is-disabled) .ht-table-action-bg {
  fill: #2563eb;
}

.ht-table-action-all:hover:not(.is-disabled) .ht-table-action-text {
  fill: #ffffff;
}

.ht-table-action-all.is-active .ht-table-action-bg {
  fill: #10b981;
}

.ht-table-action-all.is-active .ht-table-action-text {
  fill: #ffffff;
}

.ht-table-action-all.is-active:hover .ht-table-action-bg {
  fill: #059669;
}

.ht-table-action-all.is-disabled {
  cursor: not-allowed;
  opacity: 0.78;
}

.ht-table-action-all.is-disabled .ht-table-action-bg {
  fill: #cbd5e1;
}

.ht-table-action-all.is-disabled .ht-table-action-text {
  fill: #475569;
}

.ht-table-action-head .ht-table-action-bg {
  fill: #ddd6fe;
}

.ht-table-action-head .ht-table-action-text {
  fill: #5b21b6;
}

.ht-table-action-head:hover:not(.is-locked) .ht-table-action-bg {
  fill: #7c3aed;
}

.ht-table-action-head:hover:not(.is-locked) .ht-table-action-text {
  fill: #ffffff;
}

.ht-table-action-head.is-active .ht-table-action-bg {
  fill: #7c3aed;
}

.ht-table-action-head.is-active .ht-table-action-text {
  fill: #ffffff;
}

.ht-table-action-head.is-active:hover:not(.is-locked) .ht-table-action-bg {
  fill: #6d28d9;
}

.ht-table-action-head.is-locked {
  cursor: not-allowed;
  opacity: 0.88;
}

.ht-table-action-head.is-locked .ht-table-action-bg {
  fill: #64748b;
}

.ht-table-action-head.is-locked .ht-table-action-text {
  fill: #f8fafc;
}

.ht-table-action-btn.is-busy {
  opacity: 0.55;
  pointer-events: none;
}

.ht-legend-action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 18px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: bold;
  line-height: 1;
  background: #bae6fd;
  border: 1.8px solid #111111;
  color: #0c4a6e;
  flex-shrink: 0;
}

.ht-legend-action-badge.is-head {
  background: #ddd6fe;
  color: #5b21b6;
}

.ht-legend-color.color-backup {
  background: #cbd5e1;
  border: 2px dashed #64748b;
  opacity: 0.65;
}
