/* ==========================================================
   Buchungsmanagement – gemeinsames Frontend Designsystem 1.5.4
   Gilt für Geburtstage, Schulklassen und Hallenmiete.
========================================================== */
.bm-booking,
.dltb-booking,
.bm-booking-unavailable {
  --bm-ui-text: #182433;
  --bm-ui-muted: #667487;
  --bm-ui-border: #dce3ea;
  --bm-ui-border-strong: #b8c5d3;
  --bm-ui-accent: #1266d4;
  --bm-ui-accent-dark: #0d55b3;
  --bm-ui-accent-soft: #eaf3ff;
  --bm-ui-success: #15803d;
  --bm-ui-success-soft: #ecfdf3;
  --bm-ui-warning: #8a5a00;
  --bm-ui-warning-soft: #fff8e8;
  --bm-ui-danger: #be123c;
  --bm-ui-danger-soft: #fff1f2;
  --bm-ui-radius: 14px;
  --bm-ui-radius-sm: 10px;
  --bm-ui-shadow: 0 12px 34px rgba(25,42,70,.075);
  color: var(--bm-ui-text);
  font-family: inherit;
}

/* Gemeinsamer Hauptcontainer */
.bm-booking,
.dltb-booking {
  width: 100%;
  margin: 2rem auto;
  padding: clamp(18px,2.6vw,30px);
  border: 1px solid var(--bm-ui-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--bm-ui-shadow);
  overflow: hidden;
}
.bm-booking { max-width: 1100px; }
.dltb-booking { max-width: 1260px; }

.bm-booking *, .bm-booking *::before, .bm-booking *::after,
.dltb-booking *, .dltb-booking *::before, .dltb-booking *::after { box-sizing: border-box; }

/* Einheitlicher Kopfbereich */
.bm-booking__header,
.dltb-booking__header {
  max-width: 820px;
  margin: 0 0 22px;
}
.bm-booking__eyebrow,
.dltb-booking__eyebrow {
  margin: 0 0 5px;
  color: var(--bm-ui-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}
.bm-booking__header h2,
.dltb-booking__header h2 {
  margin: 0 0 8px;
  color: var(--bm-ui-text);
  font-size: clamp(25px,3.2vw,36px);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.12;
  text-transform: none;
}
.bm-booking__header p:last-child,
.dltb-booking__header p:last-child {
  margin: 0;
  color: var(--bm-ui-muted);
  font-size: 15px;
  line-height: 1.6;
}

/* Geburtstag: Der Lageplan hat Priorität und nutzt die volle Breite.
   Das Buchungspanel folgt darunter, damit der Plan gut lesbar bleibt. */
.dltb-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr);
  gap: 18px;
  align-items: start;
}
.dltb-map-wrap { width: 100%; max-width: 1200px; min-width: 0; margin: 0 auto; }
.dltb-panel {
  width: 100%;
  max-width: 1200px;
  justify-self: center;
}
.dltb-map {
  border: 1px solid var(--bm-ui-border);
  border-radius: var(--bm-ui-radius);
  background: #f8fafc;
  box-shadow: none;
}
.dltb-map::before { display: none; }
.dltb-map-image { display: block; width: 100%; max-width: 1200px; height: auto; margin: 0 auto; }
.dltb-map-wrap .dltb-map { width: 100%; max-width: 1200px; margin: 0 auto; }

/* Große Desktop-Ansicht: Lageplan erhält bewusst mehr Platz. */
@media (min-width: 1400px) {
  .dltb-booking { max-width: 1260px; }
}

.dltb-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.dltb-panel::before { display: none; }
.dltb-panel h3 {
  margin: 0 0 5px;
  color: var(--bm-ui-text);
  font-size: clamp(21px,2vw,27px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.18;
  text-transform: none;
}
.dltb-meta {
  margin: 0 0 12px;
  color: var(--bm-ui-muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}
.dltb-panel p, .dltb-step p, .dltb-decision p, .dltb-help { color: var(--bm-ui-muted); }

/* Stepper – in allen drei Tools identische, schlanke Fortschrittsleiste */
.bm-steps,
.dltb-stepper {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  margin: 14px 0 20px;
  border-bottom: 1px solid var(--bm-ui-border);
}
.bm-steps > span,
.dltb-stepper-item {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 7px 10px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--bm-ui-muted);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .01em;
  text-transform: none;
}
.bm-steps > span.is-active,
.dltb-stepper-item.is-current {
  border-color: var(--bm-ui-accent);
  background: transparent;
  color: var(--bm-ui-accent);
}
.bm-steps > span.is-done,
.dltb-stepper-item.is-complete {
  border-color: #86d7a3;
  background: transparent;
  color: var(--bm-ui-success);
}
.dltb-step-number {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #94a3b8;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.dltb-stepper-item.is-current .dltb-step-number { background: var(--bm-ui-accent); }
.dltb-stepper-item.is-complete .dltb-step-number { background: var(--bm-ui-success); }

/* Abschnittsüberschriften */
.bm-step h3,
.dltb-step h4,
.dltb-decision h4 {
  margin: 0 0 12px;
  color: var(--bm-ui-text);
  font-size: clamp(19px,2vw,23px);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
  text-transform: none;
}
.dltb-step,
.dltb-decision {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.dltb-step::before, .dltb-decision::before { display: none; }

/* Formularfelder */
.bm-field label,
.dltb-label,
.dltb-form label {
  color: var(--bm-ui-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}
.bm-field input,
.bm-field select,
.bm-field textarea,
.dltb-label input,
.dltb-form input,
.dltb-form textarea {
  width: 100%;
  min-height: 44px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--bm-ui-border-strong);
  border-radius: var(--bm-ui-radius-sm);
  background: #fff;
  color: var(--bm-ui-text);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
}
.bm-field textarea,
.dltb-form textarea { min-height: 82px; resize: vertical; }
.bm-field input:focus,
.bm-field select:focus,
.bm-field textarea:focus,
.dltb-label input:focus,
.dltb-form input:focus,
.dltb-form textarea:focus {
  border-color: var(--bm-ui-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(18,102,212,.12);
}
.bm-request-form,
.dltb-form { gap: 12px; }

/* Datenschutz / AGB */
.bm-privacy,
.dltb-agb-wrap {
  margin: 4px 0;
  padding: 10px 12px;
  border: 1px solid var(--bm-ui-border);
  border-radius: var(--bm-ui-radius-sm);
  background: #f8fafc;
}
.bm-privacy label,
.dltb-agb-wrap label {
  color: var(--bm-ui-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  text-transform: none;
}
.bm-privacy a, .dltb-agb-wrap a { color: var(--bm-ui-accent); }

/* Buttons */
.bm-primary-button,
.dltb-primary,
.dltb-secondary,
.dltb-slot,
.bm-slot {
  border-radius: var(--bm-ui-radius-sm);
  font: inherit;
}
.bm-primary-button,
.dltb-primary {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--bm-ui-accent);
  background: var(--bm-ui-accent);
  color: #fff;
  box-shadow: none;
  font-weight: 800;
  text-transform: none;
}
.bm-primary-button:hover,
.bm-primary-button:focus-visible,
.dltb-primary:hover,
.dltb-primary:focus-visible {
  border-color: var(--bm-ui-accent-dark);
  background: var(--bm-ui-accent-dark);
  color: #fff;
  filter: none;
  outline: 0;
}
.dltb-secondary {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--bm-ui-accent);
  background: #fff;
  color: var(--bm-ui-accent);
  font-weight: 800;
  text-transform: none;
}
.dltb-secondary:hover, .dltb-secondary:focus-visible {
  background: var(--bm-ui-accent-soft);
  color: var(--bm-ui-accent-dark);
  outline: 0;
}
.bm-back,
.dltb-back-btn {
  width: auto;
  min-height: auto;
  margin: 2px 0 12px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--bm-ui-accent);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}
.bm-back:hover, .bm-back:focus-visible,
.dltb-back-btn:hover, .dltb-back-btn:focus-visible {
  border: 0;
  background: transparent;
  color: var(--bm-ui-accent-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: 0;
}

/* Monatsnavigation */
.bm-calendar__toolbar,
.dltb-cal-header {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 40px;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  background: transparent;
  color: var(--bm-ui-text);
}
.bm-calendar__toolbar h3,
.dltb-cal-title {
  margin: 0;
  color: var(--bm-ui-text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  text-transform: capitalize;
}
.bm-icon-button,
.dltb-cal-nav {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--bm-ui-border);
  border-radius: 50%;
  background: #fff;
  color: var(--bm-ui-accent);
  font-size: 21px;
  font-weight: 800;
  cursor: pointer;
}
.bm-icon-button:hover:not(:disabled), .bm-icon-button:focus-visible,
.dltb-cal-nav:hover:not(:disabled), .dltb-cal-nav:focus-visible {
  border-color: var(--bm-ui-accent);
  background: var(--bm-ui-accent-soft);
  outline: 0;
}

/* Nur aktive Tage – identische Kartenlogik */
.bm-availability-hint { margin: 0 0 10px; }
.bm-available-days,
.dltb-available-days {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
}
.bm-available-day,
.dltb-available-day {
  width: 100%;
  min-width: 0;
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(0,1fr) auto 18px;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #a9c9ef;
  border-radius: var(--bm-ui-radius-sm);
  background: #fff;
  color: var(--bm-ui-text);
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.bm-available-day:hover, .bm-available-day:focus-visible,
.dltb-available-day:hover, .dltb-available-day:focus-visible {
  border-color: var(--bm-ui-accent);
  background: var(--bm-ui-accent-soft);
  outline: 2px solid rgba(18,102,212,.12);
  outline-offset: 1px;
}
.bm-available-day__date,
.dltb-available-day__date { min-width: 0; font-weight: 800; line-height: 1.3; }
.bm-available-day__meta,
.dltb-available-day__meta {
  white-space: nowrap;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--bm-ui-accent-soft);
  color: var(--bm-ui-accent);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
}
.bm-available-day__arrow,
.dltb-available-day__arrow {
  color: var(--bm-ui-accent);
  font-size: 21px;
  font-weight: 800;
  line-height: 1;
}
.bm-available-days__empty,
.dltb-available-days__empty {
  grid-column: 1/-1;
  padding: 14px;
  border: 1px dashed var(--bm-ui-border-strong);
  border-radius: var(--bm-ui-radius-sm);
  background: #f8fafc;
  color: var(--bm-ui-muted);
}

/* Zeit-Slots */
.bm-slots,
.dltb-slots { gap: 9px; margin-top: 10px; }
.bm-slot,
.dltb-slot {
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--bm-ui-border);
  border-radius: var(--bm-ui-radius-sm);
  background: #fff;
  color: var(--bm-ui-text);
  box-shadow: none;
  font-weight: 700;
  text-transform: none;
}
.bm-slot:hover, .bm-slot:focus-visible,
.dltb-slot:hover, .dltb-slot:focus-visible,
.dltb-slot.is-selected {
  border-color: var(--bm-ui-accent);
  background: var(--bm-ui-accent-soft);
  color: var(--bm-ui-accent-dark);
  box-shadow: none;
  outline: 0;
}
.dltb-slot::before, .dltb-primary::before, .dltb-secondary::before { display: none; }

/* Auswahlzusammenfassungen */
.bm-selection,
.dltb-summary {
  margin: 8px 0 14px;
  padding: 2px 0;
  border: 0;
  border-top: 1px solid var(--bm-ui-border);
  border-bottom: 1px solid var(--bm-ui-border);
  border-radius: 0;
  background: transparent;
  color: var(--bm-ui-text);
}
.dltb-summary-row {
  padding: 8px 2px;
  border-bottom: 1px solid #edf1f5;
  color: var(--bm-ui-text);
  font-size: 13px;
}
.dltb-summary-row:last-child { border-bottom: 0; }
.dltb-summary-row strong, .dltb-summary-row b { color: var(--bm-ui-muted); }
.dltb-summary-row span:last-child { color: var(--bm-ui-text); }
.bm-selection strong { color: var(--bm-ui-accent); }

/* Hinweise und Statusmeldungen */
.dltb-booking-notice,
.dltb-hold-info,
.bm-success-notice {
  border: 1px solid #f0c36c;
  border-radius: var(--bm-ui-radius-sm);
  background: var(--bm-ui-warning-soft);
  color: #664500;
}
.dltb-success,
.bm-success,
.bm-success-screen {
  border: 1px solid #bbf7d0;
  border-radius: var(--bm-ui-radius);
  background: #f4fff7;
  color: var(--bm-ui-text);
}
.dltb-error,
.dltb-status,
.bm-feedback.is-error,
.bm-capacity-notice {
  border: 1px solid #fecdd3;
  border-radius: var(--bm-ui-radius-sm);
  background: var(--bm-ui-danger-soft);
}
.dltb-success { color: var(--bm-ui-success); }

/* Geburtstagstisch-Marker: bewusst klein, wie im Admin, aber kundenfreundlich ohne ID. */
.dltb-marker {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  min-height: 26px !important;
  max-width: 26px !important;
  max-height: 26px !important;
  border: 2px solid #135e96;
  background: rgba(19,94,150,.90);
}
.dltb-marker.is-selected {
  border-color: var(--bm-ui-accent-dark);
  background: var(--bm-ui-accent);
  outline-color: rgba(18,102,212,.22);
}

/* Galerie */
.dltb-gallery-main,
.dltb-gallery-thumbs img,
.dltb-gallery-thumbs button { border-radius: var(--bm-ui-radius-sm); }



/* Hallenanmietung: kompaktere Frontend-Breite ohne Designbruch.
   Der Inhalt bleibt identisch, wird aber bewusst schmaler und zentrierter,
   damit in großen Content-Bereichen kein übermäßiger Leerraum entsteht. */
.bm-booking[data-bm-type="rental"] {
  max-width: 900px;
}
.bm-booking[data-bm-type="rental"] .bm-booking__header {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
.bm-booking[data-bm-type="rental"] .bm-steps,
.bm-booking[data-bm-type="rental"] > .bm-feedback,
.bm-booking[data-bm-type="rental"] > .bm-step,
.bm-booking[data-bm-type="rental"] > .bm-success-screen {
  max-width: 660px;
  margin-left: auto;
  margin-right: auto;
}
.bm-booking[data-bm-type="rental"] .bm-calendar,
.bm-booking[data-bm-type="rental"] .bm-availability-list,
.bm-booking[data-bm-type="rental"] .bm-slots,
.bm-booking[data-bm-type="rental"] .bm-request-form,
.bm-booking[data-bm-type="rental"] .bm-selection,
.bm-booking[data-bm-type="rental"] .bm-capacity-notice,
.bm-booking[data-bm-type="rental"] .bm-success-notice,
.bm-booking[data-bm-type="rental"] .bm-success-summary,
.bm-booking[data-bm-type="rental"] .bm-success-help {
  max-width: 660px;
}
.bm-booking[data-bm-type="rental"] .bm-booking__header,
.bm-booking[data-bm-type="rental"] > .bm-feedback,
.bm-booking[data-bm-type="rental"] > .bm-step,
.bm-booking[data-bm-type="rental"] > .bm-success-screen {
  width: 100%;
}
@media (max-width: 920px) {
  .bm-booking[data-bm-type="rental"] {
    max-width: 100%;
  }
  .bm-booking[data-bm-type="rental"] .bm-booking__header,
  .bm-booking[data-bm-type="rental"] .bm-steps,
  .bm-booking[data-bm-type="rental"] > .bm-feedback,
  .bm-booking[data-bm-type="rental"] > .bm-step,
  .bm-booking[data-bm-type="rental"] > .bm-success-screen,
  .bm-booking[data-bm-type="rental"] .bm-calendar,
  .bm-booking[data-bm-type="rental"] .bm-availability-list,
  .bm-booking[data-bm-type="rental"] .bm-slots,
  .bm-booking[data-bm-type="rental"] .bm-request-form,
  .bm-booking[data-bm-type="rental"] .bm-selection,
  .bm-booking[data-bm-type="rental"] .bm-capacity-notice,
  .bm-booking[data-bm-type="rental"] .bm-success-notice,
  .bm-booking[data-bm-type="rental"] .bm-success-summary,
  .bm-booking[data-bm-type="rental"] .bm-success-help {
    max-width: none;
  }
}

/* Keine Termine */
.bm-booking-unavailable {
  max-width: 760px;
  margin: 2rem auto;
  padding: 15px 16px;
  border: 1px solid var(--bm-ui-border);
  border-radius: var(--bm-ui-radius);
  background: #f8fafc;
  box-shadow: none;
}

/* Erfolgsansicht bleibt bewusst ohne äußere Zusatzkarte */
.bm-booking.bm-booking--success { max-width: 980px; }

@media (max-width: 920px) {
  .bm-booking, .dltb-booking { margin: 1.25rem auto; padding: 18px; border-radius: 16px; }
  .dltb-grid { grid-template-columns: 1fr; }
  .dltb-panel { padding-top: 2px; }
}

@media (max-width: 700px) {
  .bm-booking, .dltb-booking { padding: 15px; }
  .bm-booking__header, .dltb-booking__header { margin-bottom: 17px; }
  .bm-steps > span small, .dltb-step-label { display: none; }
  .bm-request-form, .dltb-form { grid-template-columns: 1fr; }
  .bm-field--wide, .dltb-field-half, .dltb-field-wide, .dltb-form .dltb-agb-wrap, .dltb-form > .dltb-primary { grid-column: 1; }
  .bm-available-days, .dltb-available-days { grid-template-columns: 1fr; }
  .bm-primary-button, .dltb-primary, .dltb-secondary { width: 100%; }
  .dltb-marker {
    width: 28px !important; height: 28px !important;
    min-width: 28px !important; min-height: 28px !important;
    max-width: 28px !important; max-height: 28px !important;
  }
}

@media (max-width: 420px) {
  .bm-booking, .dltb-booking { margin: .8rem auto; padding: 13px; border-radius: 14px; }
  .bm-steps > span, .dltb-stepper-item { min-height: 36px; padding: 4px 2px 8px; }
  .bm-available-day, .dltb-available-day { grid-template-columns: minmax(0,1fr) 18px; }
  .bm-available-day__meta, .dltb-available-day__meta { grid-column: 1/-1; grid-row: 2; justify-self: start; white-space: normal; }
  .bm-available-day__arrow, .dltb-available-day__arrow { grid-column: 2; grid-row: 1; }
}

/* ==========================================================
   Formular- und Kalender-UX 1.5.6
   Hoher Kontrast, klare Fehlerzustände, gute Touch-Ziele.
========================================================== */

/* Monatsnavigation: bewusst kontraststark auf allen drei Frontends. */
.bm-calendar__toolbar,
.dltb-cal-header {
  padding: 8px 10px;
  border-radius: var(--bm-ui-radius-sm);
  background: #29465b;
  color: #fff;
}
.bm-calendar__toolbar h3,
.dltb-cal-title {
  color: #fff !important;
}
.bm-icon-button,
.dltb-cal-nav {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  color: #fff;
}
.bm-icon-button:hover:not(:disabled),
.bm-icon-button:focus-visible,
.dltb-cal-nav:hover:not(:disabled),
.dltb-cal-nav:focus-visible {
  border-color: #fff;
  background: rgba(255,255,255,.18);
  color: #fff;
  outline: 3px solid rgba(255,255,255,.28);
  outline-offset: 2px;
}
.bm-icon-button:disabled,
.dltb-cal-nav:disabled,
.dltb-cal-nav.is-disabled {
  color: rgba(255,255,255,.58);
  border-color: rgba(255,255,255,.25);
  background: transparent;
  opacity: 1;
}

/* Pflichtfeldhinweis kurz und unaufdringlich direkt vor dem Formular. */
.bm-form-required-note,
.dltb-form-required-note {
  grid-column: 1 / -1;
  margin: 0 0 2px;
  color: var(--bm-ui-muted);
  font-size: 12px;
  line-height: 1.4;
}

/* Labels bleiben dauerhaft sichtbar; Placeholder ersetzt niemals das Label. */
.bm-field label,
.dltb-form label {
  line-height: 1.35;
}

/* 16 px verhindert den automatischen iOS-Zoom und verbessert Lesbarkeit. */
.bm-field input,
.bm-field select,
.bm-field textarea,
.dltb-label input,
.dltb-form input,
.dltb-form select,
.dltb-form textarea {
  min-height: 46px;
  font-size: 16px;
  line-height: 1.35;
}
.bm-field textarea,
.dltb-form textarea {
  min-height: 88px;
}

/* Klarer Tastaturfokus ohne Layoutsprung. */
.bm-field input:focus-visible,
.bm-field select:focus-visible,
.bm-field textarea:focus-visible,
.dltb-label input:focus-visible,
.dltb-form input:focus-visible,
.dltb-form select:focus-visible,
.dltb-form textarea:focus-visible {
  border-color: var(--bm-ui-accent);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(18,102,212,.18);
}

/* Ungültige Eingaben werden direkt am Feld erkennbar. */
.bm-field input[aria-invalid="true"],
.bm-field select[aria-invalid="true"],
.bm-field textarea[aria-invalid="true"],
.bm-field .bm-capacity-invalid,
.dltb-form input[aria-invalid="true"],
.dltb-form textarea[aria-invalid="true"],
.dltb-form select[aria-invalid="true"] {
  border-color: var(--bm-ui-danger) !important;
  background: var(--bm-ui-danger-soft);
  box-shadow: 0 0 0 3px rgba(190,18,60,.10);
}

/* Fehlermeldungen gehören in den Formularfluss, nicht in Browser-Alerts. */
.dltb-form-error {
  grid-column: 1 / -1;
  margin: 0 0 4px;
}
.dltb-form-error[hidden] { display: none !important; }

/* Mindestens ca. 44 px Interaktionsfläche für Touch und Tastatur. */
.bm-primary-button,
.bm-back,
.bm-slot,
.bm-available-day,
.dltb-primary,
.dltb-secondary,
.dltb-back-btn,
.dltb-slot,
.dltb-available-day,
.dltb-cancel-btn {
  min-height: 44px;
}
.bm-primary-button,
.dltb-primary,
.dltb-secondary {
  min-height: 48px;
}

/* Checkboxes bleiben gut treffbar und richten sich stabil am Text aus. */
.bm-privacy input[type="checkbox"],
.dltb-agb-wrap input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin-top: 1px;
}

/* Deaktivierte Aktionen sind erkennbar, aber Text bleibt lesbar. */
.bm-primary-button:disabled,
.dltb-primary:disabled,
.dltb-secondary:disabled {
  opacity: .58;
  cursor: not-allowed;
  filter: none;
}

@media (max-width: 700px) {
  .bm-calendar__toolbar,
  .dltb-cal-header { padding: 7px 8px; }
  .bm-calendar__toolbar h3,
  .dltb-cal-title { font-size: 15px; }
  .bm-field input,
  .bm-field select,
  .bm-field textarea,
  .dltb-form input,
  .dltb-form select,
  .dltb-form textarea { min-height: 48px; font-size: 16px; }
}


/* Barrierefreie Tische – bewusste, nicht-invasive Bestätigung */
.dltb-accessibility-field {
  display: block;
  padding: 12px 14px;
  border: 1px solid #b8d3e6;
  border-radius: 8px;
  background: #f4f9fd;
}
.dltb-accessibility-field > span:first-child { display:flex; align-items:center; gap:8px; }
.dltb-accessibility-field input[type="checkbox"] { width:18px; height:18px; margin:0; }
.dltb-accessibility-gate {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #b8d3e6;
  border-radius: var(--bm-ui-radius-sm);
  background: #f7fbfe;
}
.dltb-accessibility-gate h4 { margin: 8px 0 7px; }
.dltb-accessibility-gate p { margin: 0 0 12px; }
.dltb-accessibility-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #0a4b78;
  background: #e8f4fb;
  font-size: 13px;
  font-weight: 800;
}
.dltb-accessibility-confirm {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  margin: 0 !important;
  padding: 12px;
  border: 1px solid var(--bm-ui-border);
  border-radius: var(--bm-ui-radius-sm);
  background: #fff;
  color: var(--bm-ui-text) !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  cursor: pointer;
}
.dltb-accessibility-confirm input {
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
  min-height: 20px !important;
  margin: 1px 0 0 !important;
  accent-color: var(--bm-ui-accent);
}
.dltb-accessibility-actions { margin-top: 12px; }
.dltb-accessibility-error { margin-top: 10px; }
@media (max-width:700px) {
  .dltb-accessibility-gate { padding: 14px; }
  .dltb-accessibility-actions .dltb-primary { width: 100%; }
}
