/* Schneehoehen.de · Darkmode der Website. Folgt automatisch der Systemeinstellung (prefers-color-scheme).
   Reihenfolge: nach sh-design-system.css und der generierten sh-darkmode-<seite>.css laden, im Shadow DOM
   von Header/Footer nach sh-darkmode-chrome.css. Farbwerte wie im Styleguide, Kapitel 12. */
@media (prefers-color-scheme:dark){
  /* gleiche Selektoren wie der Token-Block in sh-design-system.css, sonst gewinnt dort :root[data-colorway] (Startseite) */
  :root,:root[data-hotel-accent],:root[data-colorway]{
    color-scheme:dark;
    /* Buchung wird im Dunkeln hell: Hellblau mit Tiefblau-Schrift (9,87 : 1) */
    --conversion:#a6d9eb;--conversion-hover:#c7e4f1;--conversion-border:#a6d9eb;--conversion-text:#102936;--conversion-ink:#102936;
    --sh-focus:#a6d9eb;
  }
  html{background:#0b1c26}
  /* Logo auf dunklem Header weiß – gleiche Behandlung wie das Footer-Logo (#006699 hätte nur 2,8 : 1) */
  :where(a,button,input,select,textarea,summary):focus-visible{outline-color:#a6d9eb}
  /* Auf dunklen Flächen bleibt die Buchung hell mit Tiefblau-Schrift (die Generierung hätte die Schrift aufgehellt) */
  :is(.portal-offer-card-featured){--conversion:#a6d9eb;--conversion-hover:#c7e4f1;--conversion-border:#a6d9eb;--conversion-text:#102936}
  /* Gelbe Akzente aus sh-design-system.css bleiben – die generierten Overrides der Bundles würden sie überdecken */
  .portal-offer-badge,.portal-offer-card-featured .portal-offer-badge{background:#ffd43b;color:#102936}
  :is(.hero-copy .eyebrow,.season-card .kicker){color:#ffd43b}
  /* Bewertung: Sterne gelb wie im Lightmode, fehlende Hälfte in Seitenfarbe mit gelber Kontur */
  .entity-rating{color:#ffd43b}
  .entity-rating .star-half::after{color:#0b1c26}
  /* Schrittnummern im Anfrageformular auf #2F6A85 (5,52 : 1) */
  .inquiry-progress li:not([aria-current=step]) b{color:#f1f7fa}
  /* Anzeigen-Buttons folgen der Buchungsfarbe – portal-buttons.css hätte im Dunkeln helle Schrift auf Hellblau erzeugt */
  :root[data-colorway] :is(.native-ad .button,.ad-creative a),
  :root[data-colorway] :is(.native-ad .button,.ad-creative a):hover{color:var(--conversion-text)}
  /* Aktiver Saison-Schalter: Eisweiß auf #2F6A85 (5,52 : 1), auch gegen [data-colorway] der Startseite */
  /* Startseite: Native Ad auf Kartenfläche, damit die graue Nebenschrift lesbar bleibt (#B7CBD5 auf #102936) */
  .native-ad{background:#102936}
  /* Platzhalter in Suchfeldern: Browser-Grau #757575 hätte auf #0B1C26 nur 3,7 : 1 → #B7CBD5 */
  :where(input,textarea)::placeholder{color:#b7cbd5}
  /* Magazin-Bildbetrachter ist hell wie dunkel dunkel: Auswahlrahmen und Fokus bleiben weiß */
  .poi-gallery-thumbs button[aria-pressed=true]{border-color:#fff}
  .poi-lightbox button:focus-visible{outline-color:#fff}
  /* Sekundär-Buttons: Hover #326F8C mit Eisweiß (5,13 : 1). Die Generierung lässt das helle #C7E4F1 stehen und hellt nur die Schrift auf (1,23 : 1) */
  body .button,body .button.button-host{--cta-hover-bg:#326f8c;--cta-hover-fg:#f1f7fa;--cta-hover-border:#83b6ca}
  :is(:root[data-colorway="original-gelb"]) .button:hover{background:#326f8c;color:#f1f7fa;border-color:#83b6ca}
  /* Fokus auf dunklen Flächen bleibt Hellblau – die Generierung hätte #A6D9EB zur Trennlinie #365462 gemacht (1,9 : 1) */
  :is(.portal-offer-card-featured,.hotel-subnav,.gallery-dialog,.viewer,.sg-dark,.hero-copy,.season-card,.ad-creative,.magazine-feature,.magazine-hero) :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #a6d9eb;outline-offset:3px}
  :is(.portal-offer-card-featured,.hotel-subnav,.gallery-dialog,.viewer,.sg-dark,.hero-copy,.season-card,.ad-creative,.magazine-feature,.magazine-hero) .button:focus-visible{outline:3px solid #a6d9eb!important;outline-offset:3px!important}
  .hotel-chapters a:focus-visible,:root[data-colorway] .ad-creative a:focus-visible{outline-color:#a6d9eb}
  /* Anfrage begonnen (hotel-schneehoehen.css): Die Generierung übergeht :root[data-inquiry-started]-Regeln, sonst blieben
     die herabgestuften Buttons hell. Zweitbutton #2F6A85 mit Eisweiß (5,52 : 1), Kontur #0B1C26 mit Hellblau; der
     Anfragebutton folgt über var(--conversion) bereits dem dunklen Buchungsbutton. */
  :root[data-inquiry-started] body .button:is(.button-conversion,.button-host.portal-offer-action),
  :root[data-inquiry-started][data-booking-mode="website"] body .button.button-host{--cta-bg:#2f6a85;--cta-fg:#f1f7fa;--cta-border:#83b6ca;--cta-hover-bg:#326f8c;--cta-hover-fg:#f1f7fa;--cta-hover-border:#83b6ca}
  :root[data-inquiry-started]:not([data-booking-mode="website"]) body .button.button-host:not(.portal-offer-action){--cta-bg:#0b1c26;--cta-fg:#a6d9eb;--cta-border:#83b6ca;--cta-hover-bg:#102936;--cta-hover-fg:#a6d9eb;--cta-hover-border:#83b6ca}
  /* Bildnachweis unter Magazin-Videos: Nebenbeschriftung wie im Lightmode */
  .magazine-cms .image-container:has(.youtube_wrap)>.img-caption-container.outside{color:#b7cbd5}
  /* Menü-Anzeigen-Vergleich: Logo weiß wie im Header */
  .top>a>img[src="/assets/logo.svg"]{filter:brightness(0) invert(1)}
  /* Designer-Stand 20.11.2026 – eingefügt 23.11. */
    /* Auf dunklen Flächen bleibt die Buchung hell mit Tiefblau-Schrift (die Generierung hätte die Schrift aufgehellt) */
    /* 10.11.2026: auch die 300×250-Anzeige (.ad-creative) – ihr Button steht auf dunklem Foto */
    :is(.portal-offer-card-featured,.ad-creative){--conversion:#a6d9eb;--conversion-hover:#c7e4f1;--conversion-border:#a6d9eb;--conversion-text:#102936}
    /* Hover-Fläche ebenfalls in Buchungsfarbe (10.11.2026): die generierte gelbe Farbvarianten-Regel ergab sonst #243A46 mit dunkler Schrift (1,27 : 1) */
    :root[data-colorway] :is(.native-ad .button,.ad-creative a):hover{background:var(--conversion-hover);border-color:var(--conversion-border)}
    /* Anfrage-Dialog der Hotelseiten (18.11.2026): Fläche wie die Seite, an der das Formular vorher stand; Kopfzeile wie Karten */
    .inquiry-dialog{background:#0b1c26;color:#f1f7fa}
    .inquiry-dialog>.dialog-head{background:#102936;border-bottom-color:#365462}
    .inquiry-dialog-intro,#anfrage .inquiry-review-intro{color:#b7cbd5}
    #anfrage .consent a{color:#a6d9eb}
    #anfrage .wish-field{border:1px solid #83b6ca}
    #anfrage .wish-checkbox{background:#0b1c26;border-color:#83b6ca;color:#f1f7fa}
    #anfrage .wish-checkbox:has(input:checked){background:#102936;border-color:#83b6ca}
    #anfrage .wish-followup{background:#102936;border-color:#365462}
    #anfrage .review-edit{color:#a6d9eb}
    #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:#b7cbd5}
    #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:#f1f7fa}
    #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:#102936;border-color:#365462}
    #anfrage .thanks-reply{border-top-color:#365462}
    #anfrage .inquiry-thanks .additional-services li>svg,#anfrage .service-partners a{color:#a6d9eb}
    /* 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. */
    #hotel-reading-progress~dialog.utility-dialog:not(.inquiry-dialog),#anfrage dialog.utility-dialog{background:#102936;color:#f1f7fa}
    /* Leisten, die hell weiß wie das Fenster sind (der Generator setzt sie auf die Seitenfläche): gleiche Fläche wie das Fenster. */
    :is(#hotel-reading-progress~dialog.utility-dialog,#anfrage dialog.utility-dialog) :is(.travel-dialog-actions,.occupancy-toolbar){background:#102936}
    .booking-card .booking-destination-note{color:#b7cbd5}
    #anfrage .inquiry-step fieldset>.required-hint{background:#0b1c26}
    #anfrage .inquiry-edit-dialog fieldset>.required-hint{background:none}
    .mobile-booking-controls .booking-destination-note{color:#b7cbd5}
    .booking-start-intro{color:#b7cbd5}
    .wish-field-choices>.choice-hint{color:#b7cbd5} /* Hinweis „Mehrere möglich …“ (19.11.2026), wie die anderen Einleitungstexte */
    .booking-start-dialog .travel-dialog-actions{border-top-color:#365462}
    .booking-start-dialog>.dialog-head{border-bottom-color:#365462}
    /* Pfeil in Auswahlfeldern auch im Darkmode (18.11.2026): sh-darkmode-hotel.css setzt bei „Erwachsene“/„Kinder“ den ganzen Hintergrund
       und löschte den Pfeil; Farbe hell #A6D9EB 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='%23a6d9eb' 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:#0b1c26;border-color:#83b6ca;color:#f1f7fa}
    .inquiry-edit-dialog .inquiry-choice:has(input:checked){background:#102936}
    #guests-form .guest-row-label{color:#f1f7fa}
    #anfrage .inquiry-choice{background:#0b1c26;border-color:#83b6ca;color:#f1f7fa}
    #anfrage .inquiry-choice:has(input:checked){background:#102936}
    #anfrage .room-picker-field{background:#102936;border-color:#83b6ca;color:#f1f7fa}
    #anfrage .room-picker-field>.icon{color:#a6d9eb}
    .room-calendar-dialog .occupancy-dates-meta{color:#b7cbd5}
    #anfrage .inquiry-progress li[aria-current=step]{border-bottom-color:#365462}
    #anfrage .inquiry-progress-bar{background:#83b6ca}
    #anfrage .inquiry-progress li:has(~ li[aria-current=step]) b{color:#fff;background:#167199}
}
