/* AlpenLuxus · Gemeinsame Kopfzeile v1 (25.11.2026)
   Eine Quelle für Höhe, Logo, Menü, Buchen-Knopf, Sprachknopf und Burger auf ALLEN Seiten.
   Maße wie /weihnachten-silvester-tirol/ und Startseite v908 (Rand 4,5 % wie Startseite, Logo bündig mit dem Titel):
   Desktop 88 px · Logo 86×66 · Menü 14 px · Knopf 42 px · Sprachknopf 40 px rund
   Handy 76 px · Logo 86×66 · Knopf 44 px · Sprachknopf 44 px · Burger 44 px
   Wird als letztes Stylesheet geladen; ":root:root body" hebt die Regeln über alle älteren Einzelkorrekturen. */

@font-face{font-family:"ALX Spartan Fallback";src:local("Arial"),local("ArialMT"),local("Arimo"),local("Liberation Sans"),local("Helvetica");size-adjust:92%;ascent-override:76%;descent-override:24%;line-gap-override:0%}

:root{--alx-hdr-h:88px;--alx-hdr-pad:max(4.5vw,24px);--alx-hdr-lang:40px;--alx-hdr-gap:12px;--alx-hdr-font:"League Spartan","ALX Spartan Fallback",Arial,sans-serif}

/* ---------- Grundgerüst (Desktop) ---------- */
:root:root body .site-header,
:root:root body .alx-nav{
  position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;transform:none!important;animation:none!important;
  box-sizing:border-box!important;width:100%!important;max-width:none!important;height:var(--alx-hdr-h)!important;min-height:0!important;margin:0!important;
  padding:0 var(--alx-hdr-pad)!important;
  display:grid!important;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)!important;grid-template-rows:var(--alx-hdr-h)!important;align-items:center!important;gap:0!important;
  font-family:var(--alx-hdr-font)!important;direction:ltr!important;z-index:100!important;
  background:#080808!important;background-image:none!important;border:0!important;border-bottom:1px solid #262626!important;box-shadow:none!important;
  -webkit-backdrop-filter:none!important;backdrop-filter:none!important;transition:none!important;color:#fff
}
:root:root body .site-header:before,:root:root body .site-header:after{display:none!important}
/* Eigentümer-Seite: Menü-Overlay liegt neben (nicht in) der Kopfzeile -> Kopfzeile darüber, damit X und Logo bedienbar bleiben */
:root:root body .alx-nav{z-index:102!important}

/* Logo */
:root:root body .site-header>.logo,
:root:root body .site-header>.brand,
:root:root body .alx-nav>.alx-nav-brand{grid-column:1!important;grid-row:1!important;justify-self:start!important;display:block!important;width:86px!important;height:66px!important;margin:0!important;padding:0!important;position:relative!important;inset:auto!important;transform:none!important;z-index:102!important;line-height:0!important}
:root:root body .site-header>.logo img,
:root:root body .site-header>.brand img,
:root:root body .alx-nav>.alx-nav-brand img{display:block!important;width:86px!important;height:66px!important;max-width:none!important;object-fit:contain!important;margin:0!important}

/* Menü (Mitte, immer in der Bildschirmmitte) */
:root:root body .site-header>.desktop-nav,
:root:root body .alx-nav>.alx-nav-center{grid-column:2!important;grid-row:1!important;display:flex!important;justify-content:center!important;align-items:center!important;gap:clamp(18px,2.35vw,33.6px)!important;margin:0!important;padding:0!important;flex:none!important;white-space:nowrap!important;direction:ltr}
html[dir=rtl] body .site-header>.desktop-nav{direction:rtl!important}
:root:root body .site-header>.desktop-nav>a,
:root:root body .alx-nav>.alx-nav-center>*{font-family:var(--alx-hdr-font)!important;font-size:14px!important;font-weight:400!important;line-height:1!important;letter-spacing:normal!important;text-transform:none!important;white-space:nowrap!important;padding:0!important;margin:0!important;text-decoration:none!important}

/* Buchen-Knopf (rechts, Platz für den Sprachknopf bleibt reserviert -> nichts springt, wenn er nachlädt) */
:root:root body .site-header>.header-button,
:root:root body .site-header>.header-cta,
:root:root body .alx-nav>.alx-nav-cta{grid-column:3!important;grid-row:1!important;justify-self:end!important;margin:0 calc(var(--alx-hdr-lang) + var(--alx-hdr-gap)) 0 0!important}
:root:root body .alx-nav>.alx-nav-cta{display:flex!important;padding:0!important}
:root:root body .site-header>.header-button,
:root:root body .site-header>.header-cta,
:root:root body .alx-nav .alx-nav-btn{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important;
  height:42px!important;min-height:42px!important;padding:0 22px!important;margin-right:0;border-radius:999px!important;
  font-family:var(--alx-hdr-font)!important;font-size:14px!important;font-weight:600!important;line-height:1!important;letter-spacing:normal!important;white-space:nowrap!important;text-decoration:none!important;flex:none!important;position:relative!important;inset:auto!important;transform:none!important;z-index:102!important;
  background:transparent!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #555!important;box-shadow:none!important}
:root:root body .alx-nav .alx-nav-btn{margin:0!important}
:root:root body .site-header>.header-button:hover,:root:root body .alx-nav .alx-nav-btn:hover{background:#fff!important;color:#000!important;-webkit-text-fill-color:#000!important;border-color:#fff!important}
/* site.js fügt auf Unterseiten zusätzlich einen zweiten Knopf ein -> nur einer sichtbar (der feste aus dem HTML) */
:root:root body .site-header:has(>.header-button)>.header-cta{display:none!important}

/* Burger: nur Handy */
:root:root body .site-header>.menu-button,
:root:root body .alx-nav>.alx-menu-btn{display:none!important}

/* Mobiles Menü auf Desktop nie sichtbar */
:root:root body .site-header>.mobile-nav,:root:root body .alx-mobile-nav{display:none!important}

/* Sprachknopf: immer an derselben Stelle rechts in der Kopfzeile, egal ob er im Header oder im Body hängt */
:root:root body .alx-language.alx-lsw,
:root:root body .site-header>.alx-language.alx-lsw{position:absolute!important;top:calc((var(--alx-hdr-h) - var(--alx-hdr-lang)) / 2)!important;right:var(--alx-hdr-pad)!important;left:auto!important;bottom:auto!important;margin:0!important;transform:none!important;z-index:99999!important;transition:none!important;align-self:auto!important}
:root:root body .alx-language.alx-lsw .alx-lsw-btn{width:var(--alx-hdr-lang)!important;height:var(--alx-hdr-lang)!important}
:root:root body .alx-language.alx-lsw .alx-lsw-menu{right:0!important;left:auto!important}

/* ---------- Farbvarianten ---------- */
/* dunkel (Unterseiten, Unterkünfte, Regionen, Rechtliches, Eigentümer): Menü grau, aktuelle Seite weiß */
:root:root body .site-header.sub-header>.desktop-nav>a{color:#aaa!important;opacity:1}
:root:root body .site-header.sub-header>.desktop-nav>a[aria-current="page"],:root:root body .site-header.sub-header>.desktop-nav>a:hover{color:#fff!important}
:root:root body .alx-nav>.alx-nav-center>a{color:#aaa!important}
:root:root body .alx-nav>.alx-nav-center>.alx-nav-current,:root:root body .alx-nav>.alx-nav-center>a:hover{color:#fff!important;opacity:1!important;text-decoration:none!important}
/* hell (Startseiten und Buchen-Seiten): weiße Fläche, schwarzes Logo, schwarzer Knopf */
:root:root .atelier .site-header,:root:root body.atelier .site-header,:root:root body.booking-atelier .site-header{background:#fff!important;border-bottom-color:#e2e2e2!important;color:#000}
:root:root .atelier .site-header>.logo img,:root:root body.booking-atelier .site-header>.logo img{filter:brightness(0)!important;opacity:.82!important}
:root:root .atelier .site-header>.desktop-nav>a,:root:root body.booking-atelier .site-header>.desktop-nav>a{color:#000!important;-webkit-text-fill-color:#000!important}
:root:root .atelier .site-header>.desktop-nav>a:hover,:root:root body.booking-atelier .site-header>.desktop-nav>a:hover{opacity:.6!important}
:root:root .atelier .site-header>.header-cta,:root:root .atelier .site-header>.header-button,:root:root body.booking-atelier .site-header>.header-button{background:#000!important;color:#fff!important;-webkit-text-fill-color:#fff!important;border:1px solid #000!important}
:root:root .atelier .site-header>.header-cta:hover,:root:root .atelier .site-header>.header-button:hover,:root:root body.booking-atelier .site-header>.header-button:hover{background:#2a2a2a!important;border-color:#2a2a2a!important}
:root:root body.booking-atelier .site-header>.menu-button span{background:#000!important}

/* ---------- Handy und Tablet hochkant (bis 900 px) ---------- */
@media (max-width:900px){
  :root{--alx-hdr-h:76px;--alx-hdr-lang:44px}
  :root:root body .site-header,
  :root:root body .alx-nav{display:flex!important;justify-content:flex-start!important;padding:0 14px 0 20px!important;grid-template-columns:none!important;grid-template-rows:none!important}
  :root:root body .site-header>.desktop-nav,:root:root body .alx-nav>.alx-nav-center{display:none!important}
  :root:root body .site-header>.logo,:root:root body .site-header>.brand,:root:root body .alx-nav>.alx-nav-brand{flex:none!important;margin:0 auto 0 0!important}
  :root:root body .site-header>.header-button,:root:root body .site-header>.header-cta,
  :root:root body .alx-nav>.alx-nav-cta{display:inline-flex!important;flex:none!important;margin:0 64px 0 0!important}
  :root:root body .site-header>.header-button,:root:root body .site-header>.header-cta,:root:root body .alx-nav .alx-nav-btn{height:44px!important;min-height:44px!important;padding:0 16px!important;font-size:14px!important}
  :root:root body .site-header>.menu-button,:root:root body .alx-nav>.alx-menu-btn{display:block!important;position:relative!important;flex:none!important;width:44px!important;height:44px!important;padding:0!important;margin:0!important;inset:auto!important;top:auto!important;left:auto!important;right:auto!important;bottom:auto!important;transform:none!important;border-radius:50%!important;z-index:102!important;cursor:pointer;-webkit-tap-highlight-color:transparent}
  :root:root body .site-header>.menu-button span,:root:root body .alx-nav>.alx-menu-btn span{position:absolute!important;display:block!important;left:8px!important;width:26px!important;height:1.5px!important;margin:0!important;transform-origin:center}
  :root:root body .site-header>.menu-button span:first-child,:root:root body .alx-nav>.alx-menu-btn span:first-child{top:15.5px!important;transform:none}
  :root:root body .site-header>.menu-button span:last-child,:root:root body .alx-nav>.alx-menu-btn span:last-child{top:25px!important;transform:none}
  :root:root body .site-header>.menu-button[aria-expanded="true"] span:first-child,:root:root body .alx-nav>.alx-menu-btn[aria-expanded="true"] span:first-child{top:20.25px!important;transform:rotate(45deg)!important}
  :root:root body .site-header>.menu-button[aria-expanded="true"] span:last-child,:root:root body .alx-nav>.alx-menu-btn[aria-expanded="true"] span:last-child{top:20.25px!important;transform:rotate(-45deg)!important}
  :root:root body .site-header:has(>.header-button)>.header-cta{display:none!important}
  /* Sprachknopf zwischen Buchen und Burger: rechts = 14 + 44 + 10 */
  :root:root body .alx-language.alx-lsw,:root:root body .site-header>.alx-language.alx-lsw{right:68px!important}
  /* Mobiles Menü: Vollbild schwarz unter der Kopfzeile, überall gleich */
  :root:root body .site-header>.mobile-nav,:root:root body .alx-mobile-nav{display:flex!important;flex-direction:column!important;position:fixed!important;inset:0!important;top:0!important;left:0!important;right:0!important;width:100%!important;max-width:none!important;height:100dvh!important;min-height:100svh!important;box-sizing:border-box!important;margin:0!important;
    padding:calc(var(--alx-hdr-h) + 28px) 24px max(28px,env(safe-area-inset-bottom))!important;gap:0!important;overflow-y:auto!important;z-index:101!important;
    background:#000!important;background-image:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;
    opacity:0;visibility:hidden;pointer-events:none;transition:opacity .3s ease,visibility .3s ease}
  :root:root body .site-header>.mobile-nav.open,:root:root body .alx-mobile-nav.open{opacity:1!important;visibility:visible!important;pointer-events:auto!important;transform:none!important}
  :root:root body .site-header>.mobile-nav>a,:root:root body .alx-mobile-nav>a{display:flex!important;align-items:center!important;min-height:56px!important;padding:0!important;margin:0!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.14)!important;border-radius:0!important;background:none!important;
    font-family:var(--alx-hdr-font)!important;font-size:20px!important;font-weight:400!important;line-height:1.2!important;letter-spacing:0!important;color:#fff!important;-webkit-text-fill-color:#fff!important;text-decoration:none!important;justify-content:flex-start!important}
  :root:root body .site-header>.mobile-nav>a:is([href$="/buchen/"],[href$="/boeken/"],[href$="/booking/"]):last-child{margin-top:26px!important;min-height:52px!important;justify-content:center!important;border:0!important;border-radius:999px!important;background:#fff!important;color:#000!important;-webkit-text-fill-color:#000!important;font-size:17px!important;font-weight:500!important}
  /* Menü offen: Kopfzeile schwarz, Logo weiß, Knopf weiß */
  :root:root body .site-header.menu-open,:root:root body .alx-nav:has(>.alx-menu-btn[aria-expanded="true"]){background:#000!important;border-bottom-color:rgba(255,255,255,.14)!important}
  :root:root body .site-header.menu-open>.logo img{filter:brightness(0) invert(1)!important;opacity:1!important}
  :root:root body .site-header.menu-open>.header-button,:root:root body .site-header.menu-open>.header-cta{background:#fff!important;color:#000!important;-webkit-text-fill-color:#000!important;border-color:#fff!important}
  :root:root body .site-header.menu-open>.menu-button span{background:#000!important}
  :root:root body .alx-nav:has(>.alx-menu-btn[aria-expanded="true"]) .alx-nav-btn{background:#fff!important;color:#000!important;-webkit-text-fill-color:#000!important;border-color:#fff!important}
  /* Eigentümer-Seite: Kopfzeile im Fluss wie überall (nicht mehr fixiert/ausblendend) */
  :root:root body .alx-hero .alx-hero-body{padding-top:28px!important}
}
/* Burger-Knopf: weiße runde Fläche (wie bisher), Striche schwarz */
:root:root body .site-header>.menu-button,:root:root body .alx-nav>.alx-menu-btn{background:#fff!important;border:1px solid #e2e2e2!important;box-shadow:none!important;box-sizing:border-box!important}
:root:root body .site-header>.menu-button span,:root:root body .alx-nav>.alx-menu-btn span{background:#000!important}
@media (max-width:900px){:root:root body .site-header.menu-open>.menu-button span{background:#000!important}}

/* ═══ Design-System Basis (alle Seiten, alle Varianten): kein seitlicher Überlauf bei 375 px ═══
   Ursache (29.11.2026): Auf Unterkunftsseiten ist der Kopfzeilen-Knopf „Tous les hébergements“ (FR) bzw.
   „Todos los alojamientos“ (ES) mit nowrap und min-width:auto breiter als der Platz neben Logo und Menü.
   Die Kopfzeile wird dadurch 383–385 px breit, .menu-button ragt rechts hinaus und alle fixen Ebenen
   (Cookie-Panel, Sticky-Bar .alx-sb, Handy-Menü) übernehmen die breitere Seite.
   Lösung: Knopf darf schrumpfen (min-width:0), am Handy 13 px Schrift und 12 px Innenabstand;
   im äußersten Fall Auslassungspunkte statt Überlauf. Keine Texte geändert. */
@media (max-width:420px){
  :root:root:root body .site-header.site-header>.header-button,
  :root:root:root body .site-header.site-header>.header-cta{flex:0 1 auto!important;min-width:0!important;max-width:100%!important;overflow:hidden!important;text-overflow:ellipsis!important;
    padding:0 12px!important;font-size:13px!important;letter-spacing:-.01em!important}
  :root:root:root body .site-header.site-header{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
}
