/* Wellness.info · Darkmode-Handkorrekturen der Hotelseite. Erzeugt von _werkzeug/farben/petrol.mjs aus wellness-templates/public/site-darkmode.css (Designer),
   _werkzeug/farben/wl-darkmode-ergaenzungen.css und den Dark-Blöcken der hellen Dateien – nicht von Hand bearbeiten. */
/* Wellness.info · Darkmode der Hotelvorlagen. Folgt automatisch der Systemeinstellung (prefers-color-scheme).
   Handkorrekturen zur generierten Darkmode-CSS (scripts/darkmode.mjs): scripts/build.mjs hängt diese Datei an
   die generierten Regeln an, sie gewinnt also bei gleicher Spezifität. Farbwerte wie im Styleguide, Kapitel 12. */
@media (prefers-color-scheme: dark) {
  html {
    background: #0b1f29;
  }
  /* Dialoge ohne eigene Fläche zeigen hell das Weiß des Browsers, dunkel sein Schwarz (#121212): Kartenfläche */
  :where(dialog) {
    background-color: #102e3d;
    color: #f1f7f8;
  }
  /* Logo auf dunklem Kopfband einfarbig weiß – gleiche Behandlung wie das Footer-Logo */
  .header-main .logo img {
    filter: brightness(0) invert(1);
  }
  /* Anfragebutton: transparent mit Link-Türkis (10,37 : 1 auf der Seite), Hover #24566E (4,90 : 1) */
  .button.button-outline,
  html[data-inquiry-started]
    :is(
      .booking-card,
      .room-conversion,
      .room-modal-actions,
      .offer-actions,
      .mobile-booking-actions,
      .occupancy-selection-actions
    )
    .button.button-host {
    --cta-bg: transparent;
    --cta-fg: #98d5dc;
    --cta-border: #76b9c5;
    --cta-hover-bg: #24566e;
    --cta-hover-fg: #98d5dc;
    --cta-hover-border: #76b9c5;
  }
  /* „Beim Gastgeber buchen“ trägt auch .button-outline, bleibt aber Sekundäraktion wie hell: #194459 mit Eisweiß
     (9,4 : 1), Kontur #76B9C5, Hover #24566E. :where() hält die Spezifität bei 0,2,0 – Website-Modus,
     Top-Angebot und begonnene Anfrage (Kontur) gewinnen weiter. Ohne IBE und im Angebot ist die Gastgeberbuchung
     der Buchungsbutton: nach „Anfrage begonnen“ rückt sie genau eine Stufe ab, zum Zweitbutton – wie hell. */
  .button.button-host:where(.button-outline),
  html[data-inquiry-started][data-booking-mode='website']
    :is(
      .booking-card,
      .room-conversion,
      .room-modal-actions,
      .offer-actions,
      .mobile-booking-actions,
      .occupancy-selection-actions
    )
    .button.button-host,
  html[data-inquiry-started] .offer-actions .button.button-host.portal-offer-action {
    --cta-bg: var(--secondary);
    --cta-fg: var(--secondary-text);
    --cta-border: var(--secondary-border);
    --cta-hover-bg: var(--secondary-hover);
    --cta-hover-fg: var(--secondary-text);
    --cta-hover-border: var(--secondary-border);
  }
  /* Deaktiviert: #9AADB7 auf #243A46 (5,11 : 1), wie --wl-disabled in wellness-darkmode.css */
  body .button:is(:disabled, [aria-disabled='true']) {
    background: #243a46 !important;
    color: #9aadb7 !important;
    border-color: #265d6d !important;
  }
}

/* Wellness.info · Ergänzungen zum Darkmode (Handkorrekturen). Wird von petrol.mjs hinter wellness-templates/public/site-darkmode.css gehängt.
   Wellness-Dunkelpalette (wellness-templates/scripts/darkmode.mjs, Styleguide Kapitel 12): Seite #0B1F29, Fläche #102E3D,
   erhöht #194459, Linie #265D6D, Bedienelemente/Feldrand #76B9C5, Schrift #F1F7F8, Nebenschrift #B5CBD2, Link #98D5DC, Hover #24566E. */
@media (prefers-color-scheme: dark) {
    /* Buttonrollen laufen über die Tokens in wl-theme.css (.wl-hotel). Der Generator setzt Konversion/Zweitbutton auf :root,.wl-hotel;
       Kontur und Top-Angebot hier wie Vorlage site-darkmode.css: Kontur transparent mit Link-Türkis, Hover #24566E. */
    .wl-hotel{--outline-bg:transparent;--outline-text:#98d5dc;--outline-border:#76b9c5;--outline-hover:#24566e;
      --secondary-on-dark:#24566e;--secondary-on-dark-text:#f1f7f8;--secondary-on-dark-hover:#2b6680;
      --outline-on-dark-text:#98d5dc;--border-on-dark:#76b9c5;--outline-on-dark-hover:#24566e}
    /* aus AG-Designer ag-darkmode.css (Hotelteil), Wellness-Farben */
    :where(input, textarea)::placeholder{color:#b5cbd2}
    .wl-hotel .inquiry-progress li:not([aria-current='step']) b{color:#f1f7f8}
    .wl-hotel .gallery-dialog .close-button{border-color:#76b9c5}
    .wl-hotel .leaflet-bar a,.wl-hotel .leaflet-bar a:hover{background-color:#102e3d;color:#f1f7f8;border-bottom-color:#265d6d}
    .wl-hotel .leaflet-bar{border-color:#76b9c5}
    .wl-hotel .leaflet-control-attribution{background:#0b1f29e6;color:#b5cbd2}
    .wl-hotel .leaflet-control-attribution a{color:#98d5dc}

    /* Anfrage-Dialog der Hotelseiten (18.11.2026): Fläche wie die Seite, an der das Formular vorher stand; Kopfzeile wie Karten */
    .inquiry-dialog{background:#0b1f29;color:#f1f7f8}
    .inquiry-dialog>.dialog-head{background:#102e3d;border-bottom-color:#265d6d}
    .inquiry-dialog-intro,#anfrage .inquiry-review-intro{color:#b5cbd2}
    #anfrage .consent a{color:#98d5dc}
    #anfrage .wish-field{border:1px solid #76b9c5}
    #anfrage .wish-checkbox{background:#0b1f29;border-color:#76b9c5;color:#f1f7f8}
    #anfrage .wish-checkbox:has(input:checked){background:#102e3d;border-color:#76b9c5}
    #anfrage .wish-followup{background:#102e3d;border-color:#265d6d}
    #anfrage .review-edit{color:#98d5dc}
    #anfrage .review-edit:hover{background:#194459}
    /* Danke-Seite der Anfrage (18.11.2026): Darkmode wie Merkliste (Band #194459, Häkchen-Farben getauscht 7,3:1 / 8,5:1). */
    #anfrage .thanks-hero{background:#194459}
    #anfrage .thanks-hero .section-eyebrow,#anfrage .thanks-card-label,#anfrage .partner-label,#anfrage .additional-services-heading>span{color:#b5cbd2}
    #anfrage .thanks-hero h3,#anfrage .thanks-recipients li,#anfrage .thanks-reply,#anfrage .thanks-reply strong,#anfrage .additional-services-heading h3,#anfrage .inquiry-thanks .additional-services h4{color:#f1f7f8}
    #anfrage .thanks-icon{color:#143d2b;background:#a9e6bc}
    #anfrage .thanks-icon::after,#anfrage .thanks-recipients li::before{border-color:#a9e6bc}
    #anfrage .thanks-card,#anfrage .inquiry-thanks .additional-services li{background:#102e3d;border-color:#265d6d}
    #anfrage .thanks-reply{border-top-color:#265d6d}
    #anfrage .inquiry-thanks .additional-services li>svg,#anfrage .service-partners a{color:#98d5dc}
    /* Fenster der Hotelseiten (18.11.2026): Kartenfläche der Dunkelpalette wie in der Merkliste statt Browser-Standard #121212;
       eine Stufe heller als die Seite, damit Unterfenster über dem Anfrage-Fenster als Ebene erkennbar sind. */
    .wl-hotel>dialog.utility-dialog:not(.inquiry-dialog),#anfrage dialog.utility-dialog{background:#102e3d;color:#f1f7f8}
    /* Leisten, die hell weiß wie das Fenster sind (der Generator setzt sie auf die Seitenfläche): gleiche Fläche wie das Fenster. */
    :is(.wl-hotel>dialog.utility-dialog,#anfrage dialog.utility-dialog) :is(.travel-dialog-actions,.occupancy-toolbar){background:#102e3d}
    .booking-card .booking-destination-note{color:#b5cbd2}
    #anfrage .inquiry-step fieldset>.required-hint{background:#0b1f29}
    #anfrage .inquiry-edit-dialog fieldset>.required-hint{background:none}
    .mobile-booking-controls .booking-destination-note{color:#b5cbd2}
    .booking-start-intro{color:#b5cbd2}
    .wish-field-choices>.choice-hint{color:#b5cbd2} /* Hinweis „Mehrere möglich …“ (19.11.2026), wie die anderen Einleitungstexte */
    .booking-start-dialog .travel-dialog-actions{border-top-color:#265d6d}
    .booking-start-dialog>.dialog-head{border-bottom-color:#265d6d}
    /* Pfeil in Auswahlfeldern auch im Darkmode (18.11.2026): wl-darkmode-hotel-website.css setzt bei „Erwachsene“/„Kinder“ den ganzen Hintergrund
       und löschte den Pfeil; Farbe hell #98d5dc statt #04778C für Kontrast auf dunklem Grund. */
    #guests-dialog #guests-form select,#anfrage .wish-field select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398d5dc' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 13px center;background-size:15px 15px}
    .inquiry-edit-dialog .inquiry-choice{background:#0b1f29;border-color:#76b9c5;color:#f1f7f8}
    .inquiry-edit-dialog .inquiry-choice:has(input:checked){background:#102e3d}
    #guests-form .guest-row-label{color:#f1f7f8}
    #anfrage .inquiry-choice{background:#0b1f29;border-color:#76b9c5;color:#f1f7f8}
    #anfrage .inquiry-choice:has(input:checked){background:#102e3d}
    #anfrage .room-picker-field{background:#102e3d;border-color:#76b9c5;color:#f1f7f8}
    #anfrage .room-picker-field>.icon{color:#98d5dc}
    .room-calendar-dialog .occupancy-dates-meta{color:#b5cbd2}
    #anfrage .inquiry-progress li[aria-current=step]{border-bottom-color:#265d6d}
    #anfrage .inquiry-progress-bar{background:#76b9c5}
    #anfrage .inquiry-progress li:has(~ li[aria-current=step]) b{color:#fff;background:#24566e}
    /* (aus AG ag-darkmode-ergaenzungen.css übersetzt) */
    /* Galerie-Platzhalter (27.11.2026) wie Zimmer-Platzhalter */
    .wl-hotel .media-gallery .gallery-tile.gallery-tile-placeholder{background:#102e3d;color:#98d5dc}
    .wl-hotel .gallery-tile-placeholder span{color:#b5cbd2}
}

/* Herausgelöst aus den hellen Dateien (prefers-color-scheme: dark) */
@media (prefers-color-scheme: dark) {
  :root:not([data-sh-theme='light']) {
    --ui-focus: #98d5dc;
  }
}
@media (prefers-color-scheme: dark) {
  html:not([data-sh-theme='light']) body :is(.range-grid > button, .occupancy-day):focus-visible {
    outline-color: #98d5dc !important;
  }
}
