/* Styleguide-Ergänzung — Schriften aus Schriften/ (Kopie: static/festival/fonts/) + Farbschema */

/* Nerve Brush — NerveBrushRegular.otf */
@font-face {
  font-family: "Nerve Brush";
  src: url("fonts/NerveBrushRegular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Brother 1816 Printed — alle TTF-Schnitte aus Projektordner Schriften/ */
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/01-brother1816printed-thin-Web.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/02-brother1816printed-thin_italic-Web.ttf") format("truetype");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/03-brother1816printed-light-Web.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/04-brother1816printed-light_italic-Web.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/05-brother1816printed-book-Web.ttf") format("truetype");
  font-weight: 350;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/06-brother1816printed-book_italic-Web.ttf") format("truetype");
  font-weight: 350;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/07-brother1816printed-regular-Web.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/08-brother1816printed-regular_italic-Web.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/09-brother1816printed-medium-Web.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/10-brother1816printed-medium_italic-Web.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/11-brother1816printed-bold-Web.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/12-brother1816printed-bold_italic-Web.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/13-brother1816printed-extrabold-Web.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/14-brother1816printed-extrabold_italic-Web.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/15-brother1816printed-black-Web.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Brother 1816 Printed";
  src: url("fonts/16-brother1816printed-black_italic-Web.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

body {
  font-feature-settings: "kern" 1;
  font-family: var(--st-font-body, var(--bs-body-font-family, system-ui, sans-serif));
  font-weight: var(--st-font-body-weight, 400);
  background-color: var(--st-color-bg, #fff);
  background-image: var(--st-color-bg-image, none);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: var(--st-color-text, #212529);
}

/* Typografie aus Globales Erscheinungsbild (SiteSettings) */
:is(h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6) {
  font-family: var(--st-font-heading, var(--bs-heading-font-family, inherit));
  font-weight: var(--st-font-heading-weight, 600);
}

.table > :not(caption) > * > th,
.table > caption,
legend,
.card-header,
.modal-title,
.offcanvas-title,
.accordion-button {
  font-family: var(--st-font-heading, var(--bs-heading-font-family, inherit));
  font-weight: var(--st-font-heading-weight, 600);
}

.table > :not(caption) > * > th,
.table > caption {
  font-family: var(--st-font-body, var(--bs-body-font-family, inherit));
  font-weight: var(--st-font-body-weight, 400);
}

.btn,
.form-control,
.form-select,
.input-group-text,
.page-link,
.badge,
.alert,
.list-group-item,
.toast,
.popover,
.pagination,
.table {
  font-family: var(--st-font-body, var(--bs-body-font-family, inherit));
}

.navbar.st-main-nav,
.navbar.st-main-nav :is(.nav-link, .dropdown-item, .navbar-brand, .navbar-text, .btn) {
  font-family: var(--st-nav-font, var(--st-font-body, inherit));
  font-weight: var(--st-nav-font-weight, 400);
}

/* Feldüberschriften: eine Typostufe über Fließtext (logisch zu Bootstrap body) */
label.form-label,
label.col-form-label {
  font-size: calc(var(--bs-body-font-size, 1rem) * 1.125);
}
.form-check .form-check-label {
  font-size: calc(var(--bs-body-font-size, 1rem) * 1.125);
}

/*
 * Eingabefelder: gleiche Schriftgröße und Mindesthöhe wie einzeiliges Textfeld (z. B. FOH Pulttyp).
 * Höhe wie Bootstrap .form-control: line-height × font-size + vertikales Padding + Rahmen.
 */
:root {
  --st-form-control-font-size: calc(var(--bs-body-font-size, 1rem) * 1.125);
  --st-form-one-line-height: calc(
    var(--st-form-control-font-size) * var(--bs-body-line-height, 1.5) + 0.75rem +
      2 * var(--bs-border-width, 1px)
  );
}

textarea.form-control:not(.form-control-sm),
input.form-control:not(.form-control-sm):not(.form-control-color):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
select.form-select:not(.form-select-sm) {
  font-size: var(--st-form-control-font-size);
  min-height: var(--st-form-one-line-height);
}

/* Mehrzeilige Felder ohne Auto-Resize: einzeilig starten, manuell vergrößerbar */
textarea.form-control:not(.form-control-sm):not(.st-auto-resize-textarea) {
  height: var(--st-form-one-line-height);
  resize: vertical;
}

/* Auto-Resize: kompakt starten, mit Inhalt nach unten wachsen */
textarea.form-control.st-auto-resize-textarea,
.st-technical-form textarea.form-control {
  min-height: var(--st-form-one-line-height);
  height: auto;
  max-height: none;
  resize: none;
  overflow-y: hidden;
  box-sizing: border-box;
}

/* Monitor: Drumfill/Sidefill — Überschrift oben, Auswahl (Checkbox) darunter; Blockhöhe wie Wedges */
.st-mon-wedges-row .st-mon-fill-like-text .form-check {
  min-height: var(--st-form-one-line-height);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.35rem;
  margin-top: 0;
  margin-bottom: 0;
}
.st-mon-wedges-row .st-mon-fill-like-text .form-check-input {
  margin-top: 0;
  margin-left: 0;
  flex-shrink: 0;
  order: 2;
}
.st-mon-wedges-row .st-mon-fill-like-text .form-check-label {
  padding-top: 0;
  order: 1;
}

.st-navbar-logo {
  object-fit: contain;
}

.st-nav-festival-logo-wrap {
  margin-left: calc(-0.25 * var(--bs-gutter-x, 0.75rem));
  padding-left: 0.125rem;
}

@media (max-width: 575.98px) {
  .st-nav-festival-logo-wrap {
    margin-left: 0;
  }
}

.st-nav-festival-logo {
  object-fit: contain;
  height: calc(32px + 3mm);
  width: auto;
  max-height: calc(32px + 3mm);
  max-width: calc(160px + 3mm);
  vertical-align: middle;
}

/* Aktive Ausgabe: rechts neben „Angemeldet als“ (User-Dropdown-Kopf) */
.st-nav-edition-inline {
  display: inline-block;
  max-width: min(42vw, 14rem);
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

@media (min-width: 992px) {
  .navbar.st-main-nav .st-nav-user-cluster .st-nav-edition-inline {
    border-left: 1px solid rgba(255, 255, 255, 0.35);
    padding-left: 0.75rem;
    margin-left: 0.125rem;
  }
}

/* Ausgabenname in der Navbar: ohne Badge-Hintergrund, +3 Größenstufen (je 0,125rem) */
.navbar.st-main-nav .st-nav-edition-title {
  background: none;
  padding: 0;
  border-radius: 0;
  color: var(--st-nav-link, #fff) !important;
  font-family: var(--st-nav-font, var(--st-font-body, inherit));
  font-size: calc(1rem + 3 * 0.125rem);
  font-weight: var(--st-nav-font-weight, 600);
  line-height: 1.2;
}

/* Ausgabenname in der Navbar: ohne Badge-Hintergrund, +3 Größenstufen (je 0,125rem) */
.st-garderobe-icon,
.st-merchstand-icon {
  width: 2.25rem;
  height: 2.25rem;
  vertical-align: middle;
  color: var(--st-color-text, #212529);
}

/* Gaderoben- / Merch-Belegung (Plan): etwas kompakteres Symbol in den Kartenköpfen */
.st-garderobe-plan-card .st-garderobe-icon {
  width: 2rem;
  height: 2rem;
}

.st-merchstand-plan-card .st-merchstand-icon {
  width: 2rem;
  height: 2rem;
}

/* Gaderoben- / Merchstände-Liste: kompaktes Symbol in der Tabellenzeile */
.st-infra-list-table .st-garderobe-icon,
.st-infra-list-table .st-merchstand-icon {
  width: 1.75rem;
  height: 1.75rem;
}

/* Karten / Flächen */
.card:not(.border-0) {
  background-color: var(--st-color-surface, #f8f9fa);
  border-color: var(--st-color-muted, #dee2e6);
}

/* Kartenüberschrift: +2 Stufen (2×0,125rem) gegenüber bisheriger h5-Größe (1,25rem) */
.card-header {
  font-size: calc(1.25rem + 2 * 0.125rem);
}
.card-header :is(h1, h2, h3, h4, h5, h6) {
  font-size: 1em;
}

/* Tabellen: gestreift nutzt Oberfläche vs. Hintergrund */
.table {
  border-color: var(--st-color-muted, #dee2e6);
  color: var(--st-color-text, inherit);
}

.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: var(--st-color-surface, #f8f9fa);
}

.table-striped > tbody > tr:nth-of-type(even) > * {
  background-color: var(--st-color-bg, #fff);
}

/* Festival-Ausgaben: nur waagrechte schwarze Linien; senkrechte Rahmen/Hilfslinien weg */
.table.st-festival-ausgaben-table {
  border-inline: none !important;
  border-left: none !important;
  border-right: none !important;
}
.table.st-festival-ausgaben-table > :not(caption) > * > * {
  border-inline: none !important;
  border-left: none !important;
  border-right: none !important;
  border-left-color: transparent !important;
  border-right-color: transparent !important;
  border-top: 1px solid #000 !important;
  border-bottom: 1px solid #000 !important;
}

/* Konfigurierbare Navbar (SiteSettings — unabhängig vom Farbschema) */
.navbar.st-main-nav {
  background-color: var(--st-edition-navbar-bg, #0d6efd) !important;
  font-family: var(--st-nav-font, var(--st-font-body, inherit));
  font-weight: var(--st-nav-font-weight, 400);
  --bs-navbar-color: var(--st-nav-link, #fff);
  --bs-navbar-hover-color: var(--st-nav-link-hover, #fff);
  --bs-navbar-active-color: var(--st-nav-link-hover, #fff);
  --bs-navbar-brand-color: var(--st-nav-link, #fff);
  --bs-navbar-brand-hover-color: var(--st-nav-link-hover, #fff);
  --bs-navbar-disabled-color: var(--st-nav-muted, rgba(255, 255, 255, 0.55));
  --bs-navbar-toggler-border-color: var(--st-nav-link, rgba(255, 255, 255, 0.55));
}

.navbar.st-main-nav .navbar-nav .nav-link {
  color: var(--st-nav-link, #fff);
}

.navbar.st-main-nav .navbar-nav .nav-link:hover,
.navbar.st-main-nav .navbar-nav .nav-link:focus {
  color: var(--st-nav-link-hover, #fff);
}

.navbar.st-main-nav .st-nav-text-muted {
  color: var(--st-nav-muted, rgba(255, 255, 255, 0.55)) !important;
}

.navbar.st-main-nav .st-nav-text {
  color: var(--st-nav-link, #fff) !important;
}

.navbar.st-main-nav .dropdown-menu {
  background-color: var(--st-nav-dropdown-bg, #fff);
  border-color: color-mix(in srgb, var(--st-nav-dropdown-link, #212529) 18%, var(--st-nav-dropdown-bg, #fff));
}

.navbar.st-main-nav .dropdown-menu .dropdown-item {
  color: var(--st-nav-dropdown-link, #212529);
}

.navbar.st-main-nav .dropdown-menu .dropdown-item:hover,
.navbar.st-main-nav .dropdown-menu .dropdown-item:focus {
  color: var(--st-nav-dropdown-link, #212529);
  background-color: color-mix(
    in srgb,
    var(--st-nav-dropdown-link, #212529) 8%,
    var(--st-nav-dropdown-bg, #fff)
  );
}

.st-main-nav.st-nav-controls-light .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.st-main-nav.st-nav-controls-dark .navbar-toggler-icon {
  filter: none;
}

/* Festival-Ausgaben: Bearbeiten — dauerhaft gelber Hintergrund, schwarze Schrift */
.table .btn-warning.st-festival-btn-edit {
  color: #000 !important;
  background-color: var(--bs-warning, #ffc107) !important;
  border-color: var(--bs-warning, #ffc107) !important;
}
.table .btn-warning.st-festival-btn-edit:hover,
.table .btn-warning.st-festival-btn-edit:focus,
.table .btn-warning.st-festival-btn-edit:active {
  color: #000 !important;
  background-color: var(--bs-warning, #ffc107) !important;
  border-color: var(--bs-warning, #ffc107) !important;
}

.st-slot-grid-wrap {
  border: 1px solid var(--st-color-muted, #dee2e6);
  border-radius: 0.375rem;
  background: var(--st-color-bg, #fff);
}

.st-slot-grid {
  /* Zeit halb so breit wie zuletzt (11.25rem); Ersparnis gleichmäßig auf Bühnen-Spalten */
  --st-slot-time-baseline: 11.25rem;
  --st-slot-grid-time-width: calc(var(--st-slot-time-baseline) / 2);
  --st-slot-time-saved: calc(var(--st-slot-time-baseline) - var(--st-slot-grid-time-width));
  table-layout: auto;
  min-width: min(100%, 20rem + var(--st-slot-col-count, 3) * 12rem);
}

.st-slot-grid thead th {
  vertical-align: top;
  background: var(--st-color-surface, #f8f9fa);
}

/* Kein max-width: sonst schneidet der Rahmen bei HH:MM–HH:MM (z. B. 20:05–20:40) das letzte Zeichen ab. */
.st-slot-grid td.st-slot-cell[rowspan],
.st-slot-grid th.st-slot-grid-time-col[rowspan] {
  vertical-align: middle;
}

/* Doors: halbtransparenter Streifen über die gesamte Tabellenzeile (alle Bühnen) */
.st-slot-grid-has-doors-overlay .st-slot-grid {
  position: relative;
}

.st-slot-doors-stripe-row > th,
.st-slot-doors-stripe-row > td {
  position: relative;
  border-color: color-mix(in srgb, var(--st-slot-doors, #b8daff) 40%, var(--st-color-muted, #dee2e6));
}

.st-slot-doors-stripe-row > th::before,
.st-slot-doors-stripe-row > td::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--st-slot-doors, #b8daff);
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}

.st-slot-doors-stripe-row > th > *,
.st-slot-doors-stripe-row > td > * {
  position: relative;
  z-index: 2;
}

.st-slot-doors-stripe-row > th.st-slot-grid-time-col {
  background-color: var(--st-color-bg, #fff);
}

.st-slot-grid thead .st-slot-grid-time-col {
  z-index: 3;
}

.st-slot-doors-stripe-row > th.st-slot-grid-time-col {
  z-index: 2;
  box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.12);
}

.st-slot-doors-stripe-labels {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  margin-bottom: 0.2rem;
}

.st-slot-doors-stripe-label {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.25rem 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--st-color-text, #212529);
  text-shadow: 0 0 2px var(--st-color-bg, #fff), 0 1px 2px rgba(255, 255, 255, 0.85);
}

.st-slot-doors-stripe-label-time {
  font-variant-numeric: tabular-nums;
}

.st-slot-doors-stripe-label-name {
  font-weight: 600;
}

.st-slot-doors-stripe-label-edit {
  font-size: 0.7rem;
  opacity: 0.75;
  text-decoration: none;
  color: inherit;
}

.st-slot-doors-stripe-label-edit:hover {
  opacity: 1;
}

.st-slot-time-label {
  position: relative;
  z-index: 1;
}

.st-slot-grid .st-slot-grid-time-col {
  min-width: var(--st-slot-grid-time-width);
  width: auto;
  padding-inline: 0.35rem 0.5rem;
  box-sizing: border-box;
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--st-color-bg, #fff);
  box-shadow: 4px 0 8px -4px rgba(0, 0, 0, 0.12);
}

.st-slot-grid thead .st-slot-grid-time-col {
  z-index: 3;
  background: var(--st-color-surface, #f8f9fa);
}

.st-slot-grid-stage-col {
  min-width: calc(11rem + var(--st-slot-time-saved) / var(--st-slot-col-count, 3));
  width: auto;
}

.st-slot-cell {
  min-width: calc(10rem + var(--st-slot-time-saved) / var(--st-slot-col-count, 3));
  vertical-align: top;
}

/* Timeslot-Zellen: Hintergrund pro Typ (--st-slot-* auf .st-slot-grid-wrap) */
.st-slot-grid-wrap .st-slot-cell.st-slot-type-performance {
  background-color: var(--st-slot-performance, transparent);
}
.st-slot-grid-wrap .st-slot-cell.st-slot-type-changeover {
  background-color: var(--st-slot-changeover, transparent);
}
.st-slot-grid-wrap .st-slot-cell.st-slot-type-moderation {
  background-color: var(--st-slot-moderation, transparent);
}
.st-slot-grid-wrap .st-slot-cell.st-slot-type-general {
  background-color: var(--st-slot-general, transparent);
}
.st-slot-grid-wrap .st-slot-cell.st-slot-type-crew {
  background-color: var(--st-slot-crew, transparent);
}
.st-slot-grid-wrap .st-slot-cell.st-slot-type-milestone {
  background-color: var(--st-slot-milestone, transparent);
}
.st-slot-grid-wrap .st-slot-cell.st-slot-type-karenz {
  background-color: var(--st-slot-karenz, transparent);
}
.st-slot-grid-wrap .st-slot-cell.st-slot-cell-empty {
  background-color: var(--st-slot-gap, #f0f0f0);
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-edit,
:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-edit:visited {
  color: #ffc107 !important;
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border-radius: 0.25rem;
  background-color: var(--st-color-surface, #f8f9fa);
  border: 1px solid color-mix(in srgb, #ffc107 35%, var(--st-color-muted, #dee2e6));
  line-height: 1;
  flex-shrink: 0;
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-edit svg,
:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-edit path {
  fill: #ffc107 !important;
  color: #ffc107 !important;
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-edit:hover,
:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-edit:hover:visited {
  background-color: color-mix(in srgb, #ffc107 22%, var(--st-color-surface, #f8f9fa));
  color: #e0a800 !important;
  border-color: color-mix(in srgb, #ffc107 55%, transparent);
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-edit:hover svg,
:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-edit:hover path {
  fill: #e0a800 !important;
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-edit:focus-visible {
  outline: 2px solid #ffc107;
  outline-offset: 2px;
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-delete,
:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-delete:visited {
  color: #dc3545 !important;
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border-radius: 0.25rem;
  background-color: var(--st-color-surface, #f8f9fa);
  border: 1px solid color-mix(in srgb, #dc3545 35%, var(--st-color-muted, #dee2e6));
  line-height: 1;
  flex-shrink: 0;
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-delete svg path {
  stroke: #dc3545 !important;
  fill: none !important;
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-delete:hover,
:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-delete:hover:visited {
  color: #b02a37 !important;
  background-color: color-mix(in srgb, #dc3545 16%, var(--st-color-surface, #f8f9fa));
  border-color: color-mix(in srgb, #dc3545 45%, transparent);
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-delete:hover svg path {
  stroke: #b02a37 !important;
}

:is(.st-slot-grid, .st-infra-plan-slot-like) a.st-slot-btn-delete:focus-visible {
  outline: 2px solid #dc3545;
  outline-offset: 2px;
}

.st-infra-plan-assign-sep {
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--st-color-muted, #dee2e6);
}

/* Merch-/Garderoben-Belegung: Tabellenraster (je 3 Spalten) */
.st-garderobe-plan-list .list-group-item {
  border-left: 0;
  border-right: 0;
}

.st-garderobe-plan-list .list-group-item:first-child {
  border-top: 0;
}

.st-infra-belegung-grid-wrap {
  border: 1px solid var(--st-color-muted, #dee2e6);
  border-radius: 0.375rem;
  background: var(--st-color-bg, #fff);
}

.st-infra-belegung-grid {
  table-layout: fixed;
  width: 100%;
}

.st-infra-belegung-grid th,
.st-infra-belegung-grid td {
  width: calc(100% / var(--st-belegung-col-count, 3));
  min-width: 0;
  box-sizing: border-box;
}

.st-infra-belegung-grid thead th {
  vertical-align: middle;
  background: var(--st-color-surface, #f8f9fa);
}

.st-infra-belegung-cell {
  vertical-align: top;
}

.st-infra-belegung-grid .st-merchstand-icon,
.st-infra-belegung-grid .st-garderobe-icon {
  width: 1.75rem;
  height: 1.75rem;
}

/* Timeslots: zusätzlicher Abstand vor Bereichsüberschriften */
.st-slot-heading-buehnen {
  margin-top: 3rem;
}

.st-slot-heading-locations-wrap {
  margin-top: 4.5rem;
}

/* Hilfstext / Footer */
.text-muted,
.small.text-muted {
  color: var(--st-color-muted, #6c757d) !important;
}

footer.st-app-footer,
.st-app-footer {
  border-color: var(--st-color-muted, #dee2e6) !important;
  color: var(--st-color-muted, #6c757d);
}

/* App-Name fest unten rechts (nicht in der Navbar) */
.st-app-name-fixed {
  position: fixed;
  bottom: 0.65rem;
  right: 1rem;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--st-color-muted, #6c757d);
  z-index: 1020;
  pointer-events: none;
  user-select: none;
}

/* Impressum / Datenschutz: fest unten links */
.st-legal-footer-links {
  position: fixed;
  bottom: 0.65rem;
  left: 1rem;
  margin: 0;
  padding: 0;
  z-index: 1020;
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  max-width: min(calc(100vw - 2rem - 12rem), 28rem);
}

.st-legal-footer-links a {
  color: var(--st-color-muted, #6c757d);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.st-legal-footer-links a:hover {
  color: var(--st-color-text, #212529);
}

.st-legal-footer-sep {
  color: var(--st-color-muted, #adb5bd);
  user-select: none;
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .st-legal-footer-links {
    font-size: 0.6875rem;
    left: 0.65rem;
    bottom: 0.5rem;
    max-width: calc(100vw - 1.3rem);
  }
}

@media (max-width: 575.98px) {
  .st-app-name-fixed {
    font-size: 0.6875rem;
    right: 0.65rem;
    bottom: 0.5rem;
  }
}

/* Aktiver Tab: nutzt Primärfarbe */
.nav-tabs .nav-link.active {
  color: var(--bs-primary, #0d6efd);
  border-color: var(--st-color-muted, #dee2e6) var(--st-color-muted, #dee2e6) var(--st-color-bg, #fff);
  background-color: var(--st-color-bg, #fff);
}

/* Festival-Tag-Auswahl (Ausgabe): inaktive Tage mit weißem Hintergrund */
.nav.nav-pills.flex-wrap.gap-2.mb-4 > .nav-item > .nav-link:not(.active) {
  background-color: #fff;
  color: var(--st-color-text, #212529);
}

.nav.nav-pills.flex-wrap.gap-2.mb-4 > .nav-item > .nav-link:not(.active):hover,
.nav.nav-pills.flex-wrap.gap-2.mb-4 > .nav-item > .nav-link:not(.active):focus-visible {
  background-color: #fff;
  color: var(--st-color-primary, #0d6efd);
}

/* Listen-Gruppe in Einstellungen */
.list-group-item {
  background-color: var(--st-color-bg, #fff);
  border-color: var(--st-color-muted, #dee2e6);
  color: var(--st-color-text, inherit);
}

/* Bühnen-Logos (Liste, Slots) */
.st-stage-list-logo {
  max-height: 2.25rem;
  max-width: 5rem;
  object-fit: contain;
  vertical-align: middle;
}

.st-festival-list-logo {
  max-height: 2.25rem;
  max-width: 5rem;
  object-fit: contain;
  vertical-align: middle;
}

.st-slot-stage-logo {
  max-height: 1.5rem;
  max-width: 3.5rem;
  object-fit: contain;
}

/* Hauptnavigation: Untermenüs bei Mausüber (Desktop); Mobil weiter per Bootstrap-Dropdown-Tap */
@media (min-width: 992px) {
  .navbar.st-main-nav .nav-item.dropdown.st-nav-hover:hover > .dropdown-menu {
    display: block;
  }
  .navbar.st-main-nav .nav-item.dropdown.st-nav-hover:hover > .nav-link.dropdown-toggle {
    color: var(--st-nav-link-hover, rgba(255, 255, 255, 0.95));
  }
  .navbar.st-main-nav .dropdown-menu {
    margin-top: 0;
  }
}

/* Vollbild / Immersiv: Navbar, Fuß, Kopf (IDs + Klassen — auch wenn :fullscreen nur auf #stTimerPageRoot liegt) */
body.st-timer-immersive > nav.st-main-nav,
body.st-timer-immersive > nav.navbar.st-main-nav,
body.st-timer-immersive .st-main-nav,
body.st-timer-immersive .st-app-name-fixed,
body.st-timer-immersive #stTimerTopChrome,
body.st-timer-immersive #stTimerStageChrome,
body.st-timer-immersive #stTimerPageIntro,
body.st-timer-immersive .st-timer-hide-in-immersive,
body.st-timer-immersive #stTimerPageRoot > .container.st-timer-hide-in-immersive,
body.st-timer-pseudo-fs > nav.st-main-nav,
body.st-timer-pseudo-fs > nav.navbar.st-main-nav,
body.st-timer-pseudo-fs .st-main-nav,
body.st-timer-pseudo-fs .st-app-name-fixed,
body.st-timer-pseudo-fs #stTimerTopChrome,
body.st-timer-pseudo-fs #stTimerStageChrome,
body.st-timer-pseudo-fs #stTimerPageIntro,
body.st-timer-pseudo-fs .st-timer-hide-in-immersive,
html:fullscreen nav.st-main-nav,
html:fullscreen nav.navbar.st-main-nav,
html:fullscreen .st-main-nav,
html:fullscreen .st-app-name-fixed,
html:fullscreen #stTimerTopChrome,
html:fullscreen #stTimerStageChrome,
html:fullscreen #stTimerPageIntro,
html:fullscreen .st-timer-hide-in-immersive,
html:-webkit-full-screen nav.st-main-nav,
html:-webkit-full-screen nav.navbar.st-main-nav,
html:-webkit-full-screen .st-main-nav,
html:-webkit-full-screen .st-app-name-fixed,
html:-webkit-full-screen #stTimerTopChrome,
html:-webkit-full-screen #stTimerStageChrome,
html:-webkit-full-screen #stTimerPageIntro,
html:-webkit-full-screen .st-timer-hide-in-immersive,
html:-moz-full-screen nav.st-main-nav,
html:-moz-full-screen #stTimerTopChrome,
html:-moz-full-screen #stTimerStageChrome,
html:-moz-full-screen #stTimerPageIntro,
html:-moz-full-screen .st-timer-hide-in-immersive,
html:-ms-fullscreen nav.st-main-nav,
html:-ms-fullscreen #stTimerTopChrome,
html:-ms-fullscreen #stTimerStageChrome,
html:-ms-fullscreen #stTimerPageIntro,
html:-ms-fullscreen .st-timer-hide-in-immersive,
#stTimerPageRoot:fullscreen #stTimerTopChrome,
#stTimerPageRoot:fullscreen #stTimerStageChrome,
#stTimerPageRoot:fullscreen #stTimerPageIntro,
#stTimerPageRoot:fullscreen .st-timer-hide-in-immersive,
#stTimerPageRoot:-webkit-full-screen #stTimerTopChrome,
#stTimerPageRoot:-webkit-full-screen #stTimerStageChrome,
#stTimerPageRoot:-webkit-full-screen #stTimerPageIntro,
#stTimerPageRoot:-webkit-full-screen .st-timer-hide-in-immersive,
#stTimerPageRoot:-moz-full-screen #stTimerTopChrome,
#stTimerPageRoot:-moz-full-screen #stTimerStageChrome,
#stTimerPageRoot:-moz-full-screen #stTimerPageIntro,
#stTimerPageRoot:-moz-full-screen .st-timer-hide-in-immersive,
#stTimerPageRoot:-ms-fullscreen #stTimerTopChrome,
#stTimerPageRoot:-ms-fullscreen #stTimerStageChrome,
#stTimerPageRoot:-ms-fullscreen #stTimerPageIntro,
#stTimerPageRoot:-ms-fullscreen .st-timer-hide-in-immersive {
  display: none !important;
}

body.st-timer-immersive .st-legal-footer-links,
body.st-timer-pseudo-fs .st-legal-footer-links,
html:fullscreen .st-legal-footer-links,
html:-webkit-full-screen .st-legal-footer-links {
  display: none !important;
}

/* Im Präsentationsmodus: Hauptspalte füllt die Höhe — Steuerung liegt unter dem Timer (natürliche Reihenfolge + mt-auto) */
body.st-timer-immersive .st-timer-main-column,
body.st-timer-pseudo-fs .st-timer-main-column,
html:fullscreen .st-timer-main-column,
html:-webkit-full-screen .st-timer-main-column,
#stTimerPageRoot:fullscreen .st-timer-main-column,
#stTimerPageRoot:-webkit-full-screen .st-timer-main-column {
  flex: 1 1 auto !important;
  min-height: min(100vh, 100dvh) !important;
  display: flex !important;
  flex-direction: column !important;
}

body.st-timer-immersive .st-timer-toolbar,
body.st-timer-pseudo-fs .st-timer-toolbar,
html:fullscreen .st-timer-toolbar,
html:-webkit-full-screen .st-timer-toolbar,
#stTimerPageRoot:fullscreen .st-timer-toolbar,
#stTimerPageRoot:-webkit-full-screen .st-timer-toolbar {
  position: static !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: auto !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  justify-content: center !important;
  flex-wrap: wrap !important;
  gap: 0.35rem 0.5rem !important;
  padding: 0.75rem 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px)) !important;
  box-sizing: border-box !important;
  background: color-mix(in srgb, var(--bs-body-bg, #fff) 92%, rgba(0, 0, 0, 0.05)) !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

/* Vollbild: Steuerleiste optional komplett ausblenden, FAB zum Einblenden */
.st-timer-toolbar-hide-btn {
  display: none !important;
}

body.st-timer-immersive .st-timer-toolbar-hide-btn,
body.st-timer-pseudo-fs .st-timer-toolbar-hide-btn,
html:fullscreen .st-timer-toolbar-hide-btn,
#stTimerPageRoot:fullscreen .st-timer-toolbar-hide-btn,
#stTimerPageRoot:-webkit-full-screen .st-timer-toolbar-hide-btn {
  display: inline-block !important;
}

/* Eingeklappte Steuerleiste: ID + .st-timer-fs-toolbar-collapsed schlägt Bootstrap .d-flex !important */
#stTimerPageRoot.st-timer-fs-toolbar-collapsed .st-timer-toolbar,
#stTimerPageRoot.st-timer-fs-toolbar-collapsed #stTimerToolbarMain {
  display: none !important;
}

#stTimerPageRoot.st-timer-fs-toolbar-collapsed .st-timer-toolbar {
  padding: 0 !important;
  margin-top: 0 !important;
  border-top: none !important;
  background: transparent !important;
}

.st-timer-toolbar-expand-fab {
  position: fixed;
  left: 50%;
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 2147483640;
  white-space: nowrap;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  appearance: none;
  border-radius: 0.5rem;
  border: 1px solid var(--bs-border-color, #ced4da);
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  line-height: 1.5;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  background-color: var(--bs-secondary-bg, #e9ecef);
  color: var(--bs-secondary-color, #6c757d);
  box-shadow: none;
  transition: none;
}

.st-timer-toolbar-expand-fab:hover,
.st-timer-toolbar-expand-fab:focus,
.st-timer-toolbar-expand-fab:focus-visible,
.st-timer-toolbar-expand-fab:active {
  background-color: var(--bs-secondary-bg, #e9ecef) !important;
  color: var(--bs-secondary-color, #6c757d) !important;
  border-color: var(--bs-border-color, #ced4da) !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

.st-timer-toolbar-expand-fab:focus-visible {
  outline: 2px solid var(--bs-border-color, #ced4da);
  outline-offset: 2px;
}

#stTimerPageRoot.st-timer-fs-toolbar-collapsed .st-timer-toolbar-expand-fab:not([hidden]) {
  display: inline-block !important;
}

.st-timer-toolbar-expand-fab[hidden] {
  display: none !important;
}

body.st-timer-immersive .st-timer-toolbar .badge,
body.st-timer-pseudo-fs .st-timer-toolbar .badge,
html:fullscreen .st-timer-toolbar .badge,
html:-webkit-full-screen .st-timer-toolbar .badge,
#stTimerPageRoot:fullscreen .st-timer-toolbar .badge,
#stTimerPageRoot:-webkit-full-screen .st-timer-toolbar .badge {
  margin-left: 0 !important;
  margin-inline-start: 0 !important;
}

body.st-timer-immersive #stTimerRoot,
body.st-timer-pseudo-fs #stTimerRoot,
html:fullscreen #stTimerRoot,
html:-webkit-full-screen #stTimerRoot,
#stTimerPageRoot:fullscreen #stTimerRoot,
#stTimerPageRoot:-webkit-full-screen #stTimerRoot {
  flex: 1 1 auto !important;
  padding-bottom: 1rem !important;
}

body.st-timer-immersive #stTimerPageRoot {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: min(90vh, 100dvh) !important;
}

body.st-timer-immersive main.container,
body.st-timer-pseudo-fs main.container {
  max-width: 100% !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

html:fullscreen main.container,
html:-webkit-full-screen main.container,
html:-moz-full-screen main.container,
html:-ms-fullscreen main.container {
  max-width: 100% !important;
  padding-bottom: 0.5rem !important;
  margin-bottom: 0 !important;
}

/* Kein natives Fullscreen (iOS Safari u. ä.): Inhalt über feste Fläche, Menü bleibt per .st-timer-immersive aus */
body.st-timer-pseudo-fs {
  overflow: hidden !important;
  height: 100% !important;
}

body.st-timer-pseudo-fs #stTimerPageRoot {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  min-height: 100vh;
  min-height: -webkit-fill-available;
  z-index: 2147483000;
  margin: 0 !important;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  padding-top: env(safe-area-inset-top, 0);
  padding-bottom: env(safe-area-inset-bottom, 0);
  background: var(--bs-body-bg, #fff);
  display: flex !important;
  flex-direction: column !important;
}

#stTimerPageRoot:fullscreen,
#stTimerPageRoot:-webkit-full-screen {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bs-body-bg, #fff);
}

body.st-timer-immersive .st-timer-toolbar .btn,
body.st-timer-pseudo-fs .st-timer-toolbar .btn,
html:fullscreen .st-timer-toolbar .btn,
html:-webkit-full-screen .st-timer-toolbar .btn,
html:-moz-full-screen .st-timer-toolbar .btn,
html:-ms-fullscreen .st-timer-toolbar .btn,
#stTimerPageRoot:fullscreen .st-timer-toolbar .btn,
#stTimerPageRoot:-webkit-full-screen .st-timer-toolbar .btn,
#stTimerPageRoot:-moz-full-screen .st-timer-toolbar .btn,
#stTimerPageRoot:-ms-fullscreen .st-timer-toolbar .btn {
  font-size: 1.05rem;
  padding: 0.45rem 0.85rem;
}

body.st-timer-immersive .st-timer-toolbar .badge,
body.st-timer-pseudo-fs .st-timer-toolbar .badge,
html:fullscreen .st-timer-toolbar .badge,
html:-webkit-full-screen .st-timer-toolbar .badge,
html:-moz-full-screen .st-timer-toolbar .badge,
html:-ms-fullscreen .st-timer-toolbar .badge,
#stTimerPageRoot:fullscreen .st-timer-toolbar .badge,
#stTimerPageRoot:-webkit-full-screen .st-timer-toolbar .badge,
#stTimerPageRoot:-moz-full-screen .st-timer-toolbar .badge,
#stTimerPageRoot:-ms-fullscreen .st-timer-toolbar .badge {
  font-size: 0.95rem;
}

/* Bühnen-Timer — Skalierung (lokal per Modal / --st-timer-mul-*) anpassbar */
#stTimerStageChrome .st-timer-edition-logo-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
}

#stTimerPageRoot .st-timer-edition-logo {
  display: block;
  box-sizing: border-box;
  max-width: min(14rem, 42vw);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center right;
}

#stTimerPageRoot .st-timer-stage-name {
  font-size: calc(min(1.2vmin, 1vw, 0.9rem) * var(--st-timer-mul-stage, 1)) !important;
  color: var(--st-timer-col-stage, inherit);
}

.st-timer-title {
  font-size: calc(min(10vmin, 6vw, 6rem) * var(--st-timer-mul-title, 1));
  font-weight: 800;
  line-height: 1.08;
  color: var(--st-timer-col-title, inherit);
}

.st-timer-slot-window {
  font-size: calc(min(1.8vmin, 1.4vw, 1.5rem) * var(--st-timer-mul-sub, 1));
  line-height: 1.2;
  font-weight: 600;
  color: var(--st-timer-col-sub, inherit);
}

.st-stage-timer-display .st-stage-timer-countdown {
  font-size: calc(min(9.6vh, 18.4vw, 7.2rem) * var(--st-timer-mul-countdown, 1));
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--st-timer-col-countdown, inherit);
}

.st-timer-countdown-caption {
  font-size: calc(min(1vmin, 0.9vw, 0.9rem) * var(--st-timer-mul-sub, 1));
  font-weight: 600;
  color: var(--st-timer-col-sub, inherit);
}

.st-timer-next-title {
  font-size: calc(min(1.4vmin, 1.2vw, 1rem) * var(--st-timer-mul-danach, 1));
  font-weight: 700;
  color: var(--st-timer-col-danach, inherit);
}

.st-timer-next-detail {
  font-size: calc(max(0.75rem, min(0.7vmin, 0.6vw, 0.45rem)) * var(--st-timer-mul-danach, 1)) !important;
  color: var(--st-timer-col-danach, inherit);
}

.st-timer-danach-label {
  font-size: calc(max(0.65rem, min(0.56vmin, 0.5vw, 0.3rem)) * var(--st-timer-mul-danach, 1)) !important;
  color: var(--st-timer-col-danach, inherit);
}

#stTimerRoot.st-timer-rest-green .st-timer-next-title,
#stTimerRoot.st-timer-rest-green .st-timer-next-detail {
  color: var(--st-timer-col-danach, rgba(255, 255, 255, 0.92));
}

#stTimerRoot.st-timer-rest-yellow .st-timer-next-title,
#stTimerRoot.st-timer-rest-yellow .st-timer-next-detail {
  color: var(--st-timer-col-danach, rgba(33, 37, 41, 0.9));
}

#stTimerRoot.st-timer-rest-red .st-timer-next-title,
#stTimerRoot.st-timer-rest-red .st-timer-next-detail {
  color: var(--st-timer-col-danach, rgba(255, 255, 255, 0.92));
}

#stTimerRoot.st-timer-rest-green {
  background-color: var(--st-timer-bg-green, #198754);
  color: var(--st-timer-col-title, #fff);
}

#stTimerRoot.st-timer-rest-green .st-timer-title {
  color: var(--st-timer-col-title, #fff);
}

#stTimerRoot.st-timer-rest-green .st-timer-slot-window,
#stTimerRoot.st-timer-rest-green .st-timer-countdown-caption {
  color: var(--st-timer-col-sub, rgba(255, 255, 255, 0.92));
}

#stTimerRoot.st-timer-rest-green .st-timer-danach,
#stTimerRoot.st-timer-rest-green .st-timer-danach-label {
  color: var(--st-timer-col-danach, rgba(255, 255, 255, 0.92));
}

#stTimerRoot.st-timer-rest-green .st-stage-timer-countdown {
  color: var(--st-timer-col-countdown, #fff);
}

#stTimerRoot.st-timer-rest-green .st-timer-danach {
  border-top-color: var(--st-timer-col-border-danach, rgba(255, 255, 255, 0.35)) !important;
}

#stTimerRoot.st-timer-rest-yellow {
  background-color: var(--st-timer-bg-yellow, #ffc107);
  color: var(--st-timer-col-title, #212529);
}

#stTimerRoot.st-timer-rest-yellow .st-timer-title {
  color: var(--st-timer-col-title, #212529);
}

#stTimerRoot.st-timer-rest-yellow .st-timer-slot-window,
#stTimerRoot.st-timer-rest-yellow .st-timer-countdown-caption {
  color: var(--st-timer-col-sub, rgba(33, 37, 41, 0.88));
}

#stTimerRoot.st-timer-rest-yellow .st-timer-danach,
#stTimerRoot.st-timer-rest-yellow .st-timer-danach-label {
  color: var(--st-timer-col-danach, rgba(33, 37, 41, 0.88));
}

#stTimerRoot.st-timer-rest-yellow .st-stage-timer-countdown {
  color: var(--st-timer-col-countdown, #212529);
}

#stTimerRoot.st-timer-rest-yellow .st-timer-danach {
  border-top-color: var(--st-timer-col-border-danach, rgba(0, 0, 0, 0.12)) !important;
}

#stTimerRoot.st-timer-rest-red {
  background-color: var(--st-timer-bg-red, #dc3545);
  color: var(--st-timer-col-title, #fff);
}

#stTimerRoot.st-timer-rest-red .st-timer-title {
  color: var(--st-timer-col-title, #fff);
}

#stTimerRoot.st-timer-rest-red .st-timer-slot-window,
#stTimerRoot.st-timer-rest-red .st-timer-countdown-caption {
  color: var(--st-timer-col-sub, rgba(255, 255, 255, 0.92));
}

#stTimerRoot.st-timer-rest-red .st-timer-danach,
#stTimerRoot.st-timer-rest-red .st-timer-danach-label {
  color: var(--st-timer-col-danach, rgba(255, 255, 255, 0.92));
}

#stTimerRoot.st-timer-rest-red .st-stage-timer-countdown {
  color: var(--st-timer-col-countdown, #fff);
}

#stTimerRoot.st-timer-rest-red .st-timer-danach {
  border-top-color: var(--st-timer-col-border-danach, rgba(255, 255, 255, 0.35)) !important;
}

#stTimerRoot.st-timer-rest-neutral {
  background-color: var(--st-timer-bg-neutral, #f8f9fa);
  color: inherit;
}

#stTimerRoot.st-timer-rest-neutral .st-timer-title {
  color: var(--st-timer-col-title, inherit);
}

#stTimerRoot.st-timer-rest-neutral .st-timer-slot-window,
#stTimerRoot.st-timer-rest-neutral .st-timer-countdown-caption {
  color: var(--st-timer-col-sub, inherit);
}

#stTimerRoot.st-timer-rest-neutral .st-stage-timer-countdown {
  color: var(--st-timer-col-countdown, inherit);
}

#stTimerRoot.st-timer-rest-neutral .st-timer-danach,
#stTimerRoot.st-timer-rest-neutral .st-timer-danach-label,
#stTimerRoot.st-timer-rest-neutral .st-timer-next-title,
#stTimerRoot.st-timer-rest-neutral .st-timer-next-detail {
  color: var(--st-timer-col-danach, inherit);
}

#stTimerRoot {
  transition: background-color 0.35s ease, color 0.25s ease;
}

.st-kiosk-root {
  background: var(--st-color-bg, #fff);
  color: var(--st-color-text, #212529);
}

/* Schadensmeldung: PDF-Vorschau */
.st-damage-pdf-iframe {
  min-height: 480px;
  background: #f0f0f0;
}
.st-damage-pdf-panel .card-body {
  line-height: 0;
}

/* Band Timings: Spaltenüberschrift mit Zusatzinfo in zweiter Zeile */
.st-band-timing-col-header {
  vertical-align: bottom;
  white-space: normal;
  line-height: 1.2;
  font-family: var(--st-font-body, var(--bs-body-font-family, inherit));
  font-weight: var(--st-font-body-weight, 400);
}
.st-band-timing-col-header__title {
  font-size: 1em;
  font-weight: inherit;
}
.st-band-timing-col-header__hint {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.7em;
  font-weight: var(--st-font-body-weight, 400);
  line-height: 1.15;
  color: var(--bs-secondary-color, #6c757d);
}

.st-moderation-presseinfo-modal .modal-body {
  min-height: 75vh;
  background: #f8f9fa;
}

.st-moderation-presseinfo-preview {
  display: block;
  width: 100%;
  min-height: 75vh;
  height: 75vh;
  border: 0;
  background: #fff;
}

.st-moderation-presseinfo-pdf .st-moderation-presseinfo-preview {
  min-height: 60vh;
  height: 60vh;
}

.st-changeover-plan-table {
  table-layout: fixed;
  width: 100%;
  font-size: 0.75rem;
  margin-bottom: 0;
}

.st-changeover-plan-table th,
.st-changeover-plan-table td {
  word-wrap: break-word;
  overflow-wrap: anywhere;
  vertical-align: top;
  padding: 0.35rem 0.4rem;
}

.st-changeover-plan-table th {
  font-weight: 600;
  line-height: 1.2;
}

.st-changeover-plan-table .st-co-col-time {
  width: 6.5%;
  white-space: normal;
}

.st-changeover-plan-table .st-co-col-flag {
  width: 4.5%;
  text-align: center;
  white-space: nowrap;
}

.st-changeover-plan-table .st-co-col-action {
  width: 6.5%;
  white-space: normal;
}

.st-changeover-plan-table .st-co-col-action .btn {
  white-space: normal;
  line-height: 1.15;
  padding: 0.2rem 0.35rem;
  font-size: 0.7rem;
}

.st-co-tech-modal.st-co-techrider-modal .modal-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.st-co-tech-modal.st-co-techrider-modal .modal-header,
.st-co-tech-modal.st-co-techrider-modal .modal-footer {
  flex: 0 0 auto;
}

.st-co-tech-modal.st-co-techrider-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 0;
  background: #525659;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.st-co-tech-modal.st-co-techrider-modal .st-co-techrider-file {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
}

.st-co-tech-modal.st-co-techrider-modal .st-co-techrider-label {
  flex: 0 0 auto;
  margin: 0;
  padding: 0.5rem 0.75rem 0.25rem;
  background: #f8f9fa;
  color: inherit;
}

.st-co-techrider-pdf-host {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  width: 100%;
  height: 100%;
}

.st-co-techrider-pdfjs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.st-co-techrider-pdfjs-scroll {
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.st-co-techrider-pdfjs-pages {
  margin: 0 auto;
  padding: 0.75rem;
  max-width: 100%;
}

.st-co-techrider-pdfjs-page {
  margin: 0 auto 0.75rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  background: #fff;
  line-height: 0;
}

.st-co-techrider-pdfjs-page:last-child {
  margin-bottom: 0;
}

.st-co-techrider-pdfjs-page canvas {
  display: block;
  width: 100%;
  height: auto;
}

.st-co-techrider-image-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  background: #fff;
  padding: 0.75rem;
}

.st-co-techrider-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
