/* Theaterkarten – Saalplan, Kauf, Kasse, Einlass. Farben der Vereinsseite, Schrift von der Seite. */
.mvh-tickets {
  --mvh-blue: #113259;
  --mvh-blue-dark: #0b2442;
  --mvh-blue-100: #dde7f3;
  --mvh-blue-50: #eef3f9;
  --mvh-ink: #1d2733;
  --mvh-muted: #66717f;
  --mvh-line: #e2e7ee;
  --mvh-line-strong: #cbd4df;
  --mvh-canvas: #f4f6f9;
  --mvh-green: #1f7a3a;
  --mvh-yellow: #b7791f;
  --mvh-red: #b42318;
  --mvh-radius: 16px;
  --mvh-radius-sm: 10px;
  --mvh-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 6px 20px rgba(16, 24, 40, 0.06);
  --mvh-shadow-lg: 0 10px 30px rgba(16, 24, 40, 0.14);
  /* ältere Namen, vom Einlass-Scanner verwendet */
  --mvh-grey: var(--mvh-line-strong);
  --mvh-grey-dark: var(--mvh-muted);
  --mvh-blue-light: var(--mvh-blue-50);
  position: relative;
  margin: 1.5em 0;
}

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

.mvh-tickets svg {
  flex: none;
}

/* Listen ohne Einzug und Aufzählungszeichen des Seiten-Themes */
.mvh-tickets ul.mvh-chips,
.mvh-tickets ul.mvh-ticketlist,
.mvh-tickets ul.mvh-legend,
.mvh-tickets ul.mvh-event__meta,
.mvh-tickets ol.mvh-steps {
  padding-left: 0 !important;
  list-style: none !important;
}

.mvh-tickets__loading {
  padding: 2em 0;
  color: var(--mvh-muted);
}

/* Vor dem Verkaufsstart: nur der Termin, groß */
.mvh-soon {
  padding: clamp(2.25rem, 7vw, 4.5rem) clamp(1.25rem, 5vw, 3.5rem);
  border-radius: var(--mvh-radius);
  background: var(--mvh-blue);
  color: #fff;
  text-align: center;
  box-shadow: var(--mvh-shadow);
}

.mvh-soon__kicker {
  margin: 0 0 1.1rem;
  color: var(--mvh-blue-100);
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mvh-soon__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  margin: 0;
  color: inherit;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: normal;
  text-transform: none;
  text-wrap: balance;
}

.mvh-soon__lead {
  font-size: clamp(1.1rem, 3.4vw, 1.5rem);
  font-weight: 600;
  color: var(--mvh-blue-100);
}

.mvh-soon__day {
  margin-top: 0.25em;
  font-size: clamp(1.9rem, 6.5vw, 3.5rem);
}

.mvh-soon__time {
  font-size: clamp(1.5rem, 5vw, 2.6rem);
}

.mvh-soon__nowrap {
  white-space: nowrap;
}

.mvh-tickets__alert {
  margin: 1em 0;
  padding: 0.85em 1.1em;
  border: 1px solid #c9d7e8;
  border-left: 4px solid var(--mvh-blue);
  border-radius: var(--mvh-radius-sm);
  background: var(--mvh-blue-50);
  scroll-margin-top: calc(var(--mvh-sticky-top, 0px) + 16px);
}

.mvh-tickets__alert--error {
  border-color: #f2c4bf;
  border-left-color: var(--mvh-red);
  background: #fdf0ee;
}

.mvh-tickets__alert--warning {
  border-color: #f0d9b0;
  border-left-color: var(--mvh-yellow);
  background: #fff7e8;
}

.mvh-tickets__alert--success {
  border-color: #bfdfc8;
  border-left-color: var(--mvh-green);
  background: #edf7f0;
}

/* ---------------------------------------------------------------------------------------------
 * Vorstellungen
 * ------------------------------------------------------------------------------------------- */
.mvh-tickets__events {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 0.75em;
  margin-bottom: 1.25em;
}

.mvh-event-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15em;
  min-width: 0;
  padding: 0.9em 1.1em 1em;
  border: 1.5px solid var(--mvh-line);
  border-radius: var(--mvh-radius);
  background: #fff;
  color: var(--mvh-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: var(--mvh-shadow);
  transition: border-color 0.15s, box-shadow 0.15s, background-color 0.15s;
}

.mvh-event-tab:hover {
  border-color: var(--mvh-line-strong);
}

.mvh-event-tab {
  position: relative;
}

/* „2 gewählt“: Auswahl in dieser Vorstellung (eine Bestellung kann mehrere Tage umfassen) */
.mvh-event-tab__picked {
  position: absolute;
  top: -0.7em;
  right: 0.8em;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: var(--mvh-blue);
  color: #fff;
  font-size: 0.75em;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(17, 50, 89, 0.25);
}

.mvh-event-tab__picked[hidden] {
  display: none;
}

/* Im Bestellablauf zählt die Bestellung, nicht die gerade gewählte Vorstellung */
.mvh-tickets.is-checkout > [data-ref="events"],
.mvh-tickets.is-checkout > [data-ref="event-info"] {
  display: none;
}

/* Gewählte Plätze nach Tag */
.mvh-picks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4em;
  min-width: 0;
}

.mvh-pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em 0.5em;
  min-width: 0;
}

.mvh-pick__day {
  flex: none;
  min-width: 4.6em;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--mvh-muted);
  font: inherit;
  font-size: 0.8em;
  font-weight: 700;
  white-space: nowrap;
}

button.mvh-pick__day {
  color: var(--mvh-blue);
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* „+ Plätze am Sa 16.01.“ */
.mvh-add-day {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin: 0.1em 0 0;
  padding: 0.35em 0.8em 0.35em 0.6em;
  border: 1.5px dashed var(--mvh-line-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--mvh-blue);
  font: inherit;
  font-size: 0.825em;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s, background-color 0.15s;
}

.mvh-add-day:hover,
.mvh-add-day:focus-visible {
  border-color: var(--mvh-blue);
  background: var(--mvh-blue-50);
}

.mvh-add-day svg {
  width: 1.05em;
  height: 1.05em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.mvh-event-tab.is-active {
  border-color: var(--mvh-blue);
  background: var(--mvh-blue-50);
  box-shadow: 0 0 0 3px rgba(17, 50, 89, 0.12);
}

.mvh-event-tab:focus-visible {
  outline: 3px solid rgba(17, 50, 89, 0.35);
  outline-offset: 2px;
}

.mvh-event-tab__date {
  color: var(--mvh-blue);
  font-weight: 700;
  font-size: 1.05em;
}

.mvh-event-tab__time,
.mvh-event-tab__free {
  color: var(--mvh-muted);
  font-size: 0.875em;
}

.mvh-event-tab__meter {
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 0.45em;
  border-radius: 999px;
  background: var(--mvh-line);
  overflow: hidden;
}

.mvh-event-tab__meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--mvh-blue);
  transition: width 0.3s;
}

.mvh-event__title {
  margin: 0 0 0.4em;
}

.mvh-event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5em 1.5em;
  margin: 0 0 0.5em;
  padding: 0;
  list-style: none;
}

.mvh-event__meta li {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin: 0;
  padding: 0;
}

.mvh-event__meta li::before {
  content: none !important;
}

.mvh-event__meta svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: var(--mvh-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mvh-event__text {
  margin: 0.5em 0 0;
}

/* ---------------------------------------------------------------------------------------------
 * Schritte
 * ------------------------------------------------------------------------------------------- */
.mvh-steps {
  display: flex;
  align-items: center;
  margin: 1.4em 0 1.1em;
  padding: 0;
  list-style: none;
  font-size: 0.9em;
  scroll-margin-top: calc(var(--mvh-sticky-top, 0px) + 16px);
}

.mvh-steps li {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.55em;
  min-width: 0;
  margin: 0;
  padding: 0;
  color: var(--mvh-muted);
}

.mvh-steps li::before {
  content: none !important;
}

.mvh-steps li:last-child {
  flex: none;
}

.mvh-steps li:not(:last-child)::after {
  content: "";
  flex: 1;
  height: 2px;
  margin: 0 0.75em;
  border-radius: 2px;
  background: var(--mvh-line);
}

.mvh-steps__num {
  display: inline-grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  border: 2px solid var(--mvh-line-strong);
  border-radius: 50%;
  background: #fff;
  font-weight: 700;
  flex: none;
}

.mvh-steps__label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mvh-steps li.is-active {
  color: var(--mvh-blue);
  font-weight: 700;
}

.mvh-steps li.is-active .mvh-steps__num {
  border-color: var(--mvh-blue);
  background: var(--mvh-blue);
  color: #fff;
}

.mvh-steps li.is-done .mvh-steps__num {
  border-color: var(--mvh-blue);
  color: var(--mvh-blue);
}

.mvh-steps li.is-done::after {
  background: var(--mvh-blue);
}

/* ---------------------------------------------------------------------------------------------
 * Leiste über dem Saalplan: Auswahl, Summe, „Weiter“ – wird beim Scrollen oben angeheftet (booking-app.js)
 * ------------------------------------------------------------------------------------------- */
.mvh-pin-slot {
  margin: 0 0 0.75em;
}

.is-pinned {
  z-index: 9;
}

.mvh-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em 1em;
  margin: 0;
  padding: 0.7em 0.7em 0.7em 1.1em;
  border: 1px solid var(--mvh-line);
  border-radius: var(--mvh-radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--mvh-shadow);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  backdrop-filter: saturate(1.4) blur(8px);
}

.mvh-bar.is-pinned {
  box-shadow: var(--mvh-shadow-lg);
}

.mvh-bar.is-pinned-bottom {
  box-shadow: 0 -2px 8px rgba(16, 24, 40, 0.06), 0 12px 32px rgba(16, 24, 40, 0.22);
}

/* „ändern“ in der Leiste (Handy): öffnet den Saalplan */
.mvh-bar__edit {
  margin: -0.6em -0.4em;
  padding: 0.6em 0.4em;
  border: 0;
  background: none;
  color: var(--mvh-blue);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* Handy: Leiste unter Plan und Legende; angeheftet steht sie unten im Daumenbereich */
.mvh-tickets.is-compact [data-ref="step-seats"] {
  display: flex;
  flex-direction: column;
}

.mvh-tickets.is-compact [data-ref="step-seats"] > [data-ref="legend"] {
  order: 1;
}

.mvh-tickets.is-compact [data-ref="step-seats"] > .mvh-pin-slot {
  order: 2;
  margin: 1em 0 0;
}

.mvh-bar[hidden] {
  display: none;
}

.mvh-bar__info {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em 0.9em;
  min-width: 0;
}

.mvh-bar__title {
  color: var(--mvh-blue);
  font-weight: 700;
  white-space: nowrap;
}

.mvh-bar__hint {
  color: var(--mvh-muted);
  font-size: 0.9em;
}

.mvh-bar__next {
  flex: none;
}

.mvh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35em;
  margin: 0;
  padding: 0;
  list-style: none;
}

.mvh-chips li {
  margin: 0;
  padding: 0;
}

.mvh-chips li::before {
  content: none !important;
}

.mvh-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  padding: 0.3em 0.45em 0.3em 0.75em;
  border: 0;
  border-radius: 999px;
  background: var(--mvh-blue-50);
  color: var(--mvh-blue);
  font: inherit;
  font-size: 0.825em;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s;
}

.mvh-chip:hover,
.mvh-chip:focus-visible {
  background: var(--mvh-blue-100);
}

.mvh-chip svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0.7;
}

/* ---------------------------------------------------------------------------------------------
 * Saalplan
 * ------------------------------------------------------------------------------------------- */
.mvh-seatmap {
  position: relative;
}

.mvh-seatmap__viewport {
  position: relative;
  overflow: hidden;
  /* Der ganze Saal passt in die Fensterhöhe; auf schmalen Bildschirmen volle Breite */
  width: min(100%, max(560px, calc((100vh - 250px) * var(--mvh-plan-ratio, 1.4))));
  width: min(100%, max(560px, calc((100svh - 250px) * var(--mvh-plan-ratio, 1.4))));
  aspect-ratio: var(--mvh-plan-ratio, 1.5);
  margin: 0 auto;
  border: 1px solid var(--mvh-line);
  border-radius: var(--mvh-radius);
  background: var(--mvh-canvas);
  box-shadow: inset 0 1px 3px rgba(16, 24, 40, 0.04);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.mvh-seatmap.is-zoomed .mvh-seatmap__viewport {
  touch-action: none;
  cursor: grab;
}

.mvh-seatmap__viewport.is-dragging {
  cursor: grabbing;
}

.mvh-seatmap__svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 0 0;
}

.mvh-seatmap__controls {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--mvh-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--mvh-shadow);
}

.mvh-seatmap__controls button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--mvh-blue);
  cursor: pointer;
  transition: background-color 0.15s;
}

.mvh-seatmap__controls button + button {
  border-top: 1px solid var(--mvh-line);
}

.mvh-seatmap__controls button:hover:not(:disabled) {
  background: var(--mvh-blue-50);
}

.mvh-seatmap__controls button:disabled {
  color: #b8c1cc;
  cursor: default;
}

.mvh-seatmap__controls svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mvh-seatmap__hint {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 2;
  max-width: calc(100% - 24px);
  padding: 0.35em 0.9em;
  border-radius: 999px;
  background: rgba(17, 50, 89, 0.9);
  color: #fff;
  font-size: 0.78em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transform: translateX(-50%);
  pointer-events: none;
}

.mvh-seatmap__hint[hidden] {
  display: none;
}

.mvh-seatmap__toast {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 3;
  max-width: calc(100% - 120px);
  padding: 0.55em 1em;
  border-radius: var(--mvh-radius-sm);
  background: var(--mvh-ink);
  color: #fff;
  font-size: 0.85em;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}

.mvh-seatmap__toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Übersicht beim Vergrößern: ganzer Saal, Rahmen = sichtbarer Ausschnitt */
.mvh-seatmap__mini {
  position: absolute;
  left: 10px;
  bottom: 10px;
  z-index: 2;
  width: min(34%, 150px);
  padding: 4px;
  border: 1px solid var(--mvh-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--mvh-shadow);
  cursor: pointer;
  touch-action: none;
}

.mvh-seatmap__mini svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Hochkant gedrehter Saal: Übersicht schmaler, sonst wird sie zu hoch */
.mvh-seatmap.is-rotated .mvh-seatmap__mini {
  width: min(24%, 92px);
}

.mvh-mini__shape { fill: #e3e8ee; }
.mvh-mini__shape--stage { fill: var(--mvh-blue); }
.mvh-mini__shape--table { fill: #d3dbe5; }
.mvh-mini__seat { fill: #a9b9cc; }
.mvh-mini__seat--taken,
.mvh-mini__seat--sold,
.mvh-mini__seat--held { fill: #e3e8ee; }
.mvh-mini__seat--blocked { fill: #3f4752; }
.mvh-mini__seat--selected,
.mvh-mini__seat--mine { fill: #e8a317; }

.mvh-mini__lens {
  fill: rgba(17, 50, 89, 0.08);
  stroke: var(--mvh-blue);
  stroke-width: 2px;
  vector-effect: non-scaling-stroke;
}

/* Handy: Vorschau des ganzen Saals in der Seite – antippen öffnet das Vollbild */
.mvh-seatmap__head,
.mvh-seatmap__foot,
.mvh-seatmap__open {
  display: none;
}

.mvh-seatmap.is-preview {
  overflow: hidden;
  border: 1px solid var(--mvh-line);
  border-radius: var(--mvh-radius);
  background: #fff;
  box-shadow: var(--mvh-shadow);
}

.mvh-seatmap.is-preview .mvh-seatmap__viewport {
  width: 100%;
  max-height: none;
  aspect-ratio: var(--mvh-plan-ratio, 1.5);
  border: 0;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  touch-action: manipulation;
}

.mvh-seatmap.is-preview .mvh-seatmap__controls,
.mvh-seatmap.is-preview .mvh-seatmap__hint {
  display: none;
}

.mvh-seatmap.is-preview .mvh-seatmap__open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  width: 100%;
  min-height: 48px;
  padding: 0.6em 1em;
  border: 0;
  border-top: 1px solid var(--mvh-line);
  background: #fff;
  color: var(--mvh-blue);
  font: inherit;
  font-size: 0.92em;
  font-weight: 700;
  cursor: pointer;
}

.mvh-seatmap__open svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mvh-seatmap__open:focus-visible {
  outline: 3px solid rgba(17, 50, 89, 0.35);
  outline-offset: -3px;
}

/* Vollbild: eigene Ebene direkt unter <body>, über allem vom Seiten-Theme */
html.mvh-scroll-lock,
html.mvh-scroll-lock body {
  overflow: hidden !important;
  overscroll-behavior: none;
}

.mvh-tickets.mvh-seatmap-layer {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  margin: 0;
  background: var(--mvh-canvas);
  color: var(--mvh-ink);
  overscroll-behavior: contain;
  animation: mvh-layer-in 0.22s ease-out;
}

@keyframes mvh-layer-in {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .mvh-tickets.mvh-seatmap-layer { animation: none; }
}

.mvh-seatmap.is-fullscreen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

/* Titel und Legende nebeneinander, wenn Platz ist (Handy quer), sonst untereinander */
.mvh-seatmap.is-fullscreen .mvh-seatmap__head {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 16px;
  padding: calc(6px + env(safe-area-inset-top, 0px)) 12px 8px 6px;
  border-bottom: 1px solid var(--mvh-line);
  background: #fff;
}

.mvh-seatmap__headrow {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mvh-seatmap__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--mvh-ink);
  cursor: pointer;
}

.mvh-seatmap__close:hover,
.mvh-seatmap__close:focus-visible {
  background: var(--mvh-blue-50);
}

.mvh-seatmap__close:focus-visible {
  outline: 3px solid rgba(17, 50, 89, 0.35);
}

.mvh-seatmap__close svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.mvh-seatmap__heading {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}

.mvh-seatmap__heading strong {
  overflow: hidden;
  color: var(--mvh-blue);
  font-size: 1.02rem;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.mvh-seatmap__heading span {
  color: var(--mvh-muted);
  font-size: 0.85rem;
}

.mvh-seatmap.is-fullscreen .mvh-legend {
  justify-content: flex-start;
  gap: 0.25em 1.1em;
  margin: 4px 0 0 6px;
  font-size: 0.8rem;
}

.mvh-seatmap.is-fullscreen .mvh-seatmap__viewport {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  touch-action: none;
}

.mvh-seatmap.is-fullscreen .mvh-seatmap__controls {
  right: 12px;
  bottom: 12px;
  flex-direction: column;
}

.mvh-seatmap.is-fullscreen .mvh-seatmap__controls button {
  width: 44px;
  height: 44px;
}

.mvh-seatmap.is-fullscreen .mvh-seatmap__controls button + button {
  border-top: 1px solid var(--mvh-line);
  border-left: 0;
}

.mvh-seatmap.is-fullscreen .mvh-seatmap__mini {
  left: 12px;
  bottom: 12px;
}

@media (max-height: 520px) {
  .mvh-seatmap__mini {
    width: min(22%, 120px);
  }

  .mvh-seatmap.is-fullscreen .mvh-seatmap__head {
    padding-bottom: 4px;
  }

  .mvh-seatmap.is-fullscreen .mvh-seatmap__foot {
    padding-top: 8px;
  }
}

/* Steht oben schon der Hinweis „Bereich antippen …“, kommt die Meldung darunter */
.mvh-seatmap.is-fullscreen .mvh-seatmap__hint:not([hidden]) ~ .mvh-seatmap__toast {
  top: 50px;
}

.mvh-seatmap.is-fullscreen .mvh-seatmap__toast {
  top: 12px;
  bottom: auto;
  max-width: calc(100% - 24px);
  transform: translate(-50%, -8px);
}

.mvh-seatmap.is-fullscreen .mvh-seatmap__toast.is-visible {
  transform: translate(-50%, 0);
}

.mvh-seatmap.is-fullscreen .mvh-seatmap__foot {
  display: block;
  flex: none;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--mvh-line);
  background: #fff;
  box-shadow: 0 -6px 20px rgba(16, 24, 40, 0.08);
}

.mvh-seatmap__foot .mvh-bar {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.mvh-seatmap__foot .mvh-bar__info {
  flex-direction: column;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 0.35em;
}

.mvh-seatmap__foot .mvh-chip {
  padding: 0.35em 0.4em 0.35em 0.7em;
  font-size: 0.85rem;
}

/* Zeichnung */
.mvh-shape rect {
  fill: #e6ebf1;
}

.mvh-shape text {
  fill: var(--mvh-muted);
  font-family: inherit;
  font-size: 13px;
  text-anchor: middle;
}

.mvh-shape--stage rect {
  fill: var(--mvh-blue);
}

.mvh-shape--stage text {
  fill: #fff;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.4em;
}

.mvh-shape--bar rect {
  fill: #eaeef3;
  stroke: var(--mvh-line-strong);
  stroke-dasharray: 5 4;
}

.mvh-shape--bar text {
  fill: #7d8896;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.35em;
}

.mvh-shape--table rect {
  fill: #c2cdda;
}

.mvh-shape--row-label text {
  fill: var(--mvh-blue);
  font-weight: 700;
}

/* Plätze */
.mvh-seat {
  cursor: pointer;
  outline: none;
}

.mvh-seat__box {
  stroke-width: 1.4;
  transition: fill 0.15s, stroke 0.15s;
}

.mvh-seat text {
  font-family: inherit;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
  pointer-events: none;
}

.mvh-seat[aria-disabled="true"] {
  cursor: not-allowed;
}

.mvh-seat--free .mvh-seat__box { fill: #fff; stroke: #93a6be; }
.mvh-seat--free text { fill: var(--mvh-blue); }

@media (hover: hover) {
  .mvh-seat--free:hover .mvh-seat__box { fill: var(--mvh-blue-100); stroke: var(--mvh-blue); }
}

.mvh-seat--selected .mvh-seat__box,
.mvh-seat--mine .mvh-seat__box { fill: var(--mvh-blue); stroke: var(--mvh-blue); }
.mvh-seat--selected text,
.mvh-seat--mine text { fill: #fff; font-weight: 700; }

.mvh-seat--selected .mvh-seat__box {
  transform-box: fill-box;
  transform-origin: center;
  animation: mvh-seat-pop 0.22s ease-out;
}

.mvh-seat--taken .mvh-seat__box { fill: #dce2e9; stroke: #dce2e9; }
.mvh-seat--taken text { fill: #9ba6b3; }

/* Zusätzliche Zustände im Backend */
.mvh-seat--sold .mvh-seat__box { fill: #95a2b2; stroke: #95a2b2; }
.mvh-seat--sold text { fill: #fff; }
.mvh-seat--held .mvh-seat__box { fill: #e6ebf1; stroke: #95a2b2; stroke-dasharray: 3 2; }
.mvh-seat--held text { fill: #7d8896; }
.mvh-seat--blocked .mvh-seat__box { fill: #3f4752; stroke: #3f4752; }
.mvh-seat--blocked text { fill: #fff; }

.mvh-seat:focus-visible .mvh-seat__box {
  stroke: #e8a317;
  stroke-width: 3;
}

@keyframes mvh-seat-pop {
  0% { transform: scale(0.8); }
  60% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mvh-seat--selected .mvh-seat__box { animation: none; }
}

/* Legende */
.mvh-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em 1.4em;
  margin: 0.75em 0 0;
  padding: 0;
  list-style: none;
  color: var(--mvh-muted);
  font-size: 0.875em;
}

.mvh-legend li {
  display: flex;
  align-items: center;
  gap: 0.45em;
  margin: 0;
  padding: 0;
}

.mvh-legend li::before {
  content: none !important;
}

.mvh-legend__swatch {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  border: 1.5px solid;
  border-radius: 0.3em;
}

.mvh-legend__swatch.mvh-seat--free { background: #fff; border-color: #93a6be; }
.mvh-legend__swatch.mvh-seat--selected,
.mvh-legend__swatch.mvh-seat--mine { background: var(--mvh-blue); border-color: var(--mvh-blue); }
.mvh-legend__swatch.mvh-seat--taken { background: #dce2e9; border-color: #dce2e9; }
.mvh-legend__swatch.mvh-seat--sold { background: #95a2b2; border-color: #95a2b2; }
.mvh-legend__swatch.mvh-seat--held { background: #e6ebf1; border-color: #95a2b2; border-style: dashed; }
.mvh-legend__swatch.mvh-seat--blocked { background: #3f4752; border-color: #3f4752; }

/* ---------------------------------------------------------------------------------------------
 * Karten, Formulare, Bestellung
 * ------------------------------------------------------------------------------------------- */
.mvh-card {
  margin: 1em 0;
  padding: 1.4em;
  border: 1px solid var(--mvh-line);
  border-radius: var(--mvh-radius);
  background: #fff;
  box-shadow: var(--mvh-shadow);
}

.mvh-card h3 {
  margin-top: 0;
  margin-bottom: 0.8em;
}

.mvh-checkout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 1.25em;
  align-items: start;
}

.mvh-checkout__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em 1em;
}

.mvh-checkout__top .mvh-timer {
  flex: 0 1 26em;
  margin: 0;
}

@media (min-width: 860px) {
  .mvh-checkout {
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  }
}

/* Einspaltig stehen die Zahlungs-Buttons darunter, nicht rechts */
@media (max-width: 859px) {
  .mvh-pay-hint__where {
    display: none;
  }
}

/* Schritt 3: eingegebene Daten zur Kontrolle */
.mvh-review {
  margin: 0 0 1.25em;
  padding: 0.9em 1.1em;
  border-radius: var(--mvh-radius-sm);
  background: var(--mvh-canvas);
}

.mvh-review__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 0.3em;
  color: var(--mvh-muted);
  font-size: 0.85em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mvh-review__head .mvh-btn--link {
  text-transform: none;
  letter-spacing: 0;
}

.mvh-review p {
  margin: 0;
}

.mvh-ticketlist {
  margin: 0 0 1em;
  padding: 0;
  list-style: none;
}

.mvh-ticketlist li {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  margin: 0;
  padding: 0.55em 0;
  border-bottom: 1px solid var(--mvh-line);
}

.mvh-ticketlist li::before {
  content: none !important;
}

/* Vorstellung über ihren Karten */
.mvh-tickets .mvh-ticketlist li.mvh-ticketlist__day {
  display: block;
  padding: 1em 0 0.3em;
  border-bottom: 0;
  color: var(--mvh-blue);
  font-size: 0.85em;
  font-weight: 700;
}

.mvh-tickets .mvh-ticketlist li.mvh-ticketlist__day:first-child {
  padding-top: 0;
}

.mvh-ticketlist__total {
  border-bottom: 0 !important;
  color: var(--mvh-blue);
  font-weight: 700;
  font-size: 1.05em;
}

.mvh-field {
  margin: 0 0 1.1em;
}

.mvh-field label,
.mvh-voucher label,
.mvh-scanner__manual label,
.mvh-scanner__bar label {
  display: block;
  margin-bottom: 0.35em;
  font-weight: 600;
}

.mvh-field label small {
  margin-left: 0.3em;
  color: var(--mvh-muted);
  font-weight: 400;
}

.mvh-field input[type="text"],
.mvh-field input[type="email"],
.mvh-field input[type="tel"],
.mvh-field input[type="password"],
.mvh-voucher input,
.mvh-scanner__manual input,
.mvh-scanner__bar select {
  width: 100%;
  min-height: 2.9em;
  padding: 0.6em 0.85em;
  border: 1.5px solid var(--mvh-line-strong);
  border-radius: var(--mvh-radius-sm);
  background: #fff;
  color: var(--mvh-ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.mvh-field input:focus,
.mvh-voucher input:focus,
.mvh-scanner__manual input:focus,
.mvh-scanner__bar select:focus {
  border-color: var(--mvh-blue);
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 50, 89, 0.14);
}

.mvh-voucher input,
.mvh-scanner__manual input {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Platzhalter „z. B. AB3CD“ normal schreiben – nur die Eingabe selbst in Großbuchstaben */
.mvh-voucher input::placeholder {
  text-transform: none;
  letter-spacing: normal;
}

.mvh-field.is-invalid input,
.mvh-field.is-invalid label {
  border-color: var(--mvh-red);
  color: var(--mvh-red);
}

.mvh-field--check {
  display: flex;
  align-items: flex-start;
  gap: 0.6em;
}

.mvh-field--check input {
  width: 1.2em;
  height: 1.2em;
  margin: 0.15em 0 0;
  accent-color: var(--mvh-blue);
  flex: none;
}

.mvh-field--check label {
  margin: 0;
  font-weight: 400;
}

.mvh-voucher {
  margin-top: 1em;
  padding-top: 1em;
  border-top: 1px dashed var(--mvh-line-strong);
}

.mvh-voucher[hidden] {
  display: none;
}

.mvh-voucher__row {
  display: flex;
  gap: 0.5em;
}

.mvh-voucher__row input {
  flex: 1;
  min-width: 0;
}

.mvh-legal {
  color: var(--mvh-muted);
  font-size: 0.85em;
}

.mvh-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75em;
}

/* Zahlungs-Buttons rechts direkt unter dem Gesamtbetrag */
.mvh-pay {
  margin: 1.2em 0 0;
  padding-top: 1.2em;
  border-top: 1px solid var(--mvh-line);
}

.mvh-pay:empty {
  display: none;
}

.mvh-pay__buttons {
  min-height: 50px;
}

.mvh-pay__loading {
  margin: 0;
  color: var(--mvh-muted);
}

.mvh-pay-hint {
  margin: 0;
  color: var(--mvh-muted);
  font-size: 0.92em;
}

.mvh-timer {
  margin: 0 0 1.1em;
  padding: 0.75em 0.9em;
  border-radius: var(--mvh-radius-sm);
  background: var(--mvh-blue-50);
  color: var(--mvh-blue);
  font-size: 0.92em;
}

.mvh-timer__text {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.mvh-timer svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.mvh-timer__bar {
  display: block;
  height: 4px;
  margin-top: 0.6em;
  border-radius: 999px;
  background: rgba(17, 50, 89, 0.12);
  overflow: hidden;
}

.mvh-timer__bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  transition: width 1s linear;
}

.mvh-timer.is-urgent {
  background: #fff4e0;
  color: #8a5300;
}

.mvh-done {
  text-align: center;
}

.mvh-done .mvh-ticketlist {
  max-width: 420px;
  margin: 0 auto 1.2em;
  text-align: left;
}

.mvh-done__icon {
  display: inline-grid;
  place-items: center;
  width: 3.4em;
  height: 3.4em;
  margin-bottom: 0.6em;
  border-radius: 50%;
  background: #e5f3e9;
  color: var(--mvh-green);
}

.mvh-done__icon svg {
  width: 1.8em;
  height: 1.8em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mvh-done h3 {
  color: var(--mvh-green);
}

.mvh-selection__hint {
  margin: 0;
  color: var(--mvh-muted);
}

/* ---------------------------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------------------------- */
.mvh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 0.7em 1.35em;
  border: 2px solid var(--mvh-blue);
  border-radius: 999px;
  background: #fff;
  color: var(--mvh-blue) !important;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}

.mvh-btn svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mvh-btn:hover,
.mvh-btn:focus-visible {
  background: var(--mvh-blue-50);
}

.mvh-btn:focus-visible {
  outline: 3px solid rgba(17, 50, 89, 0.3);
  outline-offset: 2px;
}

.mvh-btn:active:not([disabled]) {
  transform: translateY(1px);
}

.mvh-btn--primary {
  background: var(--mvh-blue);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(17, 50, 89, 0.22);
}

.mvh-btn--primary:hover,
.mvh-btn--primary:focus-visible {
  border-color: var(--mvh-blue-dark);
  background: var(--mvh-blue-dark);
}

.mvh-btn[disabled] {
  border-color: #c9d1db;
  background: #c9d1db;
  color: #fff !important;
  box-shadow: none;
  cursor: not-allowed;
}

.mvh-btn.is-busy {
  opacity: 0.7;
  cursor: progress;
}

.mvh-btn--ghost {
  padding-left: 0.6em;
  padding-right: 0.9em;
  border-color: transparent;
  background: transparent;
}

.mvh-btn--link {
  padding: 0.3em 0;
  border: 0;
  background: none !important;
  font-weight: 400;
  text-decoration: underline !important;
}

.mvh-btn--small {
  font-size: 0.85em;
}

.mvh-btn--block {
  display: flex;
  width: 100%;
}

/* ---------------------------------------------------------------------------------------------
 * Vorverkaufskasse
 * ------------------------------------------------------------------------------------------- */
.mvh-kasse__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.3em 1em;
  margin-bottom: 1em;
  padding: 0.7em 1.1em;
  border-radius: var(--mvh-radius-sm);
  background: var(--mvh-blue);
  color: #fff;
}

.mvh-kasse__head span {
  opacity: 0.8;
}

.mvh-kasse {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1em;
}

@media (min-width: 900px) {
  .mvh-kasse {
    grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
    align-items: start;
  }

  .mvh-kasse .mvh-pin-slot {
    margin: 0;
  }

  .mvh-kasse__side .mvh-card:first-child {
    margin-top: 0;
  }

  .mvh-kasse .mvh-seatmap__viewport {
    width: min(100%, max(480px, calc((100vh - 220px) * var(--mvh-plan-ratio, 1.4))));
  }
}

.mvh-kasse__side .mvh-chips {
  margin-bottom: 1em;
}

/* Nach Tag gruppiert: Abstand am Block, nicht an jeder Chip-Zeile (sonst sitzt der Tag schief) */
.mvh-kasse__side .mvh-pick .mvh-chips {
  margin-bottom: 0;
}

.mvh-kasse__side .mvh-picks {
  gap: 0.5em;
  margin-bottom: 1em;
}

.mvh-kasse__side .mvh-card {
  scroll-margin-top: calc(var(--mvh-sticky-top, 0px) + 16px);
}

.mvh-kasse__total {
  margin: 0 0 1em;
}

.mvh-kasse__amount {
  color: var(--mvh-blue);
  font-size: 1.3em;
  font-weight: 700;
}

/* „Meine Verkäufe“: Kennzahlen, Tagesgruppen, eine Zeile je Verkauf (am Handy eine Karte) */
.mvh-kasse__sales {
  container-type: inline-size;
}

.mvh-tickets dl.mvh-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75em;
  margin: 0 0 1.75em;
}

.mvh-stat {
  min-width: 0;
  padding: 0.85em 1em 0.9em;
  border-radius: var(--mvh-radius-sm);
  background: var(--mvh-canvas);
}

.mvh-stat dt {
  margin: 0;
  color: var(--mvh-muted);
  font-size: 0.75em;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mvh-stat dd {
  margin: 0.2em 0 0;
  color: var(--mvh-blue);
  font-size: 1.45em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.mvh-stat dd.mvh-stat__sub {
  margin-top: 0.15em;
  color: var(--mvh-muted);
  font-size: 0.8em;
  font-weight: 600;
}

.mvh-sales__day + .mvh-sales__day {
  margin-top: 1.75em;
}

.mvh-sales__dayhead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.2em 1em;
  padding-bottom: 0.55em;
  border-bottom: 2px solid var(--mvh-blue);
}

.mvh-tickets .mvh-sales__dayhead h4 {
  margin: 0;
  color: var(--mvh-ink);
  font-size: 1em;
  letter-spacing: 0;
  text-transform: none;
}

.mvh-sales__dayhead span {
  color: var(--mvh-muted);
  font-size: 0.9em;
  font-variant-numeric: tabular-nums;
}

.mvh-tickets ul.mvh-sales,
.mvh-tickets ul.mvh-sale__seats {
  margin: 0;
  padding-left: 0 !important;
  list-style: none !important;
}

.mvh-sales li::before {
  content: none !important;
}

.mvh-sale {
  display: grid;
  grid-template-columns: 4.75em minmax(0, 1fr) auto auto;
  grid-template-areas: "when what amount actions";
  align-items: center;
  gap: 0.5em 1.25em;
  margin: 0;
  padding: 0.9em 0;
  border-bottom: 1px solid var(--mvh-line);
}

.mvh-sale__when {
  grid-area: when;
  display: flex;
  flex-direction: column;
  align-self: start;
}

.mvh-sale__time {
  color: var(--mvh-ink);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.mvh-sale__number {
  color: var(--mvh-muted);
  font-size: 0.78em;
  font-variant-numeric: tabular-nums;
}

.mvh-sale__what {
  grid-area: what;
  min-width: 0;
}

.mvh-sale__name {
  display: block;
  color: var(--mvh-ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.mvh-sale__name.is-empty {
  color: var(--mvh-muted);
  font-weight: 400;
  font-style: italic;
}

.mvh-sale__seats {
  margin-top: 0.2em !important;
  color: var(--mvh-muted);
  font-size: 0.875em;
}

.mvh-sale__seats li {
  margin: 0.1em 0 0;
  padding: 0;
}

.mvh-sale__day {
  display: inline-block;
  margin-right: 0.5em;
  padding: 0.05em 0.55em;
  border-radius: 999px;
  background: var(--mvh-blue-50);
  color: var(--mvh-blue);
  font-size: 0.85em;
  font-weight: 700;
  white-space: nowrap;
}

.mvh-sale__amount {
  grid-area: amount;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.mvh-sale__amount strong {
  color: var(--mvh-ink);
  font-size: 1.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.mvh-sale__amount span {
  color: var(--mvh-muted);
  font-size: 0.8em;
  white-space: nowrap;
}

.mvh-sale__actions {
  grid-area: actions;
  display: flex;
  justify-content: flex-end;
  gap: 0.4em;
}

.mvh-sale__actions .mvh-btn {
  padding: 0.5em 0.95em;
  border-width: 1.5px;
}

.mvh-tickets .mvh-sale__cancel {
  color: var(--mvh-red) !important;
}

.mvh-sale__cancel:hover,
.mvh-sale__cancel:focus-visible {
  background: #fdf0ee;
}

.mvh-sale.is-cancelled .mvh-sale__when,
.mvh-sale.is-cancelled .mvh-sale__what {
  opacity: 0.55;
}

.mvh-sale.is-cancelled .mvh-sale__amount strong {
  color: var(--mvh-muted);
  text-decoration: line-through;
}

.mvh-tickets .mvh-sale__badge {
  margin-top: 0.25em;
  padding: 0.1em 0.6em;
  border-radius: 999px;
  background: #fdf0ee;
  color: var(--mvh-red);
  font-size: 0.75em;
  font-weight: 700;
}

@container (max-width: 560px) {
  .mvh-tickets dl.mvh-stats {
    grid-template-columns: 1fr 1fr;
  }

  .mvh-stat:last-child {
    grid-column: 1 / -1;
  }

  .mvh-sale {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "when amount"
      "what what"
      "actions actions";
    gap: 0.35em 1em;
  }

  .mvh-sale__when {
    flex-direction: row;
    align-items: baseline;
    align-self: center;
    gap: 0.6em;
  }

  .mvh-sale__actions {
    margin-top: 0.35em;
  }

  .mvh-sale__actions .mvh-btn {
    flex: 1;
    padding: 0.65em 0.9em;
  }
}

/* ---------------------------------------------------------------------------------------------
 * Login (felogin) auf /fgk und /einlass
 * ------------------------------------------------------------------------------------------- */
.mvh-tickets.mvh-login {
  margin: 0.5em 0 1em;
}

.mvh-login__card {
  max-width: 460px;
  margin: 0;
  padding: 1.75em;
}

.mvh-tickets .mvh-login__title {
  margin: 0 0 0.2em;
  color: var(--mvh-blue);
  font-size: 1.35em;
  text-transform: none;
  letter-spacing: 0;
}

.mvh-login__intro {
  margin: 0 0 1.4em;
  color: var(--mvh-muted);
}

.mvh-login__card .mvh-tickets__alert {
  margin-top: 0;
}

.mvh-login__form .mvh-btn {
  margin-top: 0.4em;
}

.mvh-login__forgot {
  margin: 1em 0 0;
  font-size: 0.9em;
}

.mvh-password {
  position: relative;
}

.mvh-tickets .mvh-password input {
  padding-right: 3em;
}

.mvh-password__toggle {
  position: absolute;
  top: 50%;
  right: 0.35em;
  display: grid;
  place-items: center;
  width: 2.3em;
  height: 2.3em;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--mvh-muted);
  cursor: pointer;
  transform: translateY(-50%);
}

.mvh-password__toggle[hidden] {
  display: none;
}

.mvh-password__toggle:hover,
.mvh-password__toggle[aria-pressed="true"] {
  background: var(--mvh-blue-50);
  color: var(--mvh-blue);
}

.mvh-password__toggle svg {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

/* Nach dem Login: „Angemeldet als … · Abmelden“ */
.mvh-tickets.mvh-login-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5em 1em;
  margin: 0.5em 0 1em;
  padding: 0.55em 0.6em 0.55em 1em;
  border: 1px solid var(--mvh-line);
  border-radius: var(--mvh-radius-sm);
  background: #fff;
  box-shadow: var(--mvh-shadow);
}

.mvh-login-status__user {
  display: flex;
  align-items: center;
  gap: 0.55em;
  color: var(--mvh-ink);
}

.mvh-login-status__user svg {
  width: 1.3em;
  height: 1.3em;
  fill: none;
  stroke: var(--mvh-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
}

.mvh-login-status__form {
  margin: 0;
}

.mvh-login-status .mvh-btn {
  padding: 0.45em 1.1em;
}

/* ---------------------------------------------------------------------------------------------
 * Einlass
 * ------------------------------------------------------------------------------------------- */
/* Das hidden-Attribut muss immer gewinnen, auch gegen display: inline-flex/flex der Buttons und Overlays */
.mvh-tickets [hidden] {
  display: none !important;
}

.mvh-scanner__bar {
  display: grid;
  gap: 0.5em;
  margin-bottom: 1em;
}

.mvh-scanner__stats {
  font-size: 1.1em;
}

/* Gewählte Vorstellung ist nicht heute */
.mvh-scanner__day {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 1em;
  margin: 0 0 1em;
}

.mvh-scanner__today {
  border-color: var(--mvh-red);
  color: var(--mvh-red) !important;
}

.mvh-scanner__stage {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  border-radius: var(--mvh-radius);
  background: #111;
  aspect-ratio: 4 / 3;
}

.mvh-scanner__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mvh-scanner__frame {
  position: absolute;
  inset: 18% 22%;
  border: 3px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px;
  pointer-events: none;
}

.mvh-scanner__start {
  white-space: nowrap;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.mvh-scanner__result {
  position: absolute;
  inset: 0;
  z-index: 2; /* über „Kamera starten“, auch bei Eingabe von Hand */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 1em;
  color: #fff;
  text-align: center;
  font-size: 1.1em;
}

.mvh-scanner__result--ok { background: rgba(31, 122, 58, 0.95); }
.mvh-scanner__result--warn { background: rgba(183, 121, 31, 0.95); }
.mvh-scanner__result--error { background: rgba(180, 35, 24, 0.95); }

.mvh-scanner__headline {
  font-size: 2em;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.mvh-scanner__seat {
  font-size: 1.5em;
  font-weight: 700;
}

.mvh-scanner__manual {
  margin-top: 1em;
}

.mvh-scanner__hint {
  margin-top: 1em;
  color: var(--mvh-muted);
  font-size: 0.9em;
}

/* ---------------------------------------------------------------------------------------------
 * Handy
 * ------------------------------------------------------------------------------------------- */
@media (pointer: coarse) {
  .mvh-seatmap__controls button {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 600px) {
  .mvh-tickets__events {
    grid-template-columns: 1fr 1fr;
    gap: 0.5em;
  }

  .mvh-event-tab {
    padding: 0.75em 0.85em 0.85em;
  }

  .mvh-event-tab__date {
    font-size: 0.95em;
  }

  .mvh-event__meta {
    flex-direction: column;
    gap: 0.35em;
    font-size: 0.95em;
  }

  .mvh-steps {
    font-size: 0.8em;
  }

  .mvh-steps li:not(:last-child)::after {
    margin: 0 0.4em;
  }

  /* Vier Schritte passen nur mit einer Beschriftung: die des aktuellen Schritts */
  .mvh-steps li:not(.is-active) .mvh-steps__label {
    display: none;
  }

  .mvh-checkout__top .mvh-timer {
    flex-basis: 100%;
  }


  .mvh-bar {
    padding: 0.55em 0.55em 0.55em 0.85em;
  }

  .mvh-bar__info {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: nowrap;
  }

  .mvh-bar__hint {
    font-size: 0.82em;
    line-height: 1.35;
  }

  .mvh-bar__next {
    padding: 0.7em 1.05em;
  }

  /* Plan direkt in der Seite (Backend): höherer Rahmen, vergrößert bleibt mehr Fläche zum Auswählen */
  .mvh-seatmap:not(.is-preview):not(.is-fullscreen) .mvh-seatmap__viewport {
    aspect-ratio: 1 / 1;
    max-height: 65vh;
    max-height: 65svh;
    border-radius: 12px;
  }

  .mvh-seatmap:not(.is-fullscreen) .mvh-seatmap__controls {
    flex-direction: row;
  }

  .mvh-seatmap:not(.is-fullscreen) .mvh-seatmap__controls button + button {
    border-top: 0;
    border-left: 1px solid var(--mvh-line);
  }

  .mvh-seatmap:not(.is-fullscreen) .mvh-seatmap__toast {
    bottom: 64px;
    max-width: calc(100% - 24px);
  }

  .mvh-card {
    padding: 1.1em;
  }
}
