/* Definitive shared navigation geometry. Loaded last on every page. */
html { scrollbar-gutter: stable; }
html.language-pending .site-header,
html.language-pending .page-header{visibility:hidden!important}

@media (min-width: 1101px) {
  .site-header,
  .site-header.scrolled,
  .site-header:not(.scrolled),
  .page-header,
  .page-header.scrolled {
    display: grid !important;
    grid-template-columns: minmax(0, 1050px) 84px !important;
    column-gap: 32px !important;
    justify-content: start !important;
    align-items: center !important;
    width: 100% !important;
    height: 78px !important;
    min-height: 78px !important;
    padding: 0 48px !important;
    box-sizing: border-box !important;
  }

  .main-nav,
  .page-nav {
    display: grid !important;
    grid-template-columns: 45px 103px 61px 50px 60px 77px 52px 142px 118px 34px 58px !important;
    column-gap: 0 !important;
    gap: 0 !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 1050px !important;
    min-width: 1050px !important;
    max-width: 1050px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: none !important;
    transform: none !important;
  }

  .main-nav a,
  .page-nav a,
  html[lang="de"] .main-nav a,
  html[lang="en"] .main-nav a,
  html[lang="de"] .page-nav a,
  html[lang="en"] .page-nav a {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    font-family: Corbel, "Trebuchet MS", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    letter-spacing: .02em !important;
    text-align: center !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  .header-actions,
  .page-lang,
  .language-switcher {
    justify-self: start !important;
    width: 84px !important;
    min-width: 84px !important;
    max-width: 84px !important;
    margin: 0 !important;
    transform: none !important;
  }
}



/* Identical restrained desktop navigation for German and English. */
@media (min-width: 1101px) {
  html[lang="de"] .site-header,
  html[lang="en"] .site-header,
  html[lang="de"] .site-header.scrolled,
  html[lang="en"] .site-header.scrolled,
  html[lang="de"] .site-header:not(.scrolled),
  html[lang="en"] .site-header:not(.scrolled),
  html[lang="de"] .page-header,
  html[lang="en"] .page-header,
  html[lang="de"] .page-header.scrolled,
  html[lang="en"] .page-header.scrolled {
    grid-template-columns:1050px 84px!important;
    column-gap:32px!important;
    height:78px!important;
    min-height:78px!important;
    padding-inline:32px!important;
  }
  html[lang="de"] .main-nav,html[lang="en"] .main-nav,
  html[lang="de"] .page-nav,html[lang="en"] .page-nav {
    width:1050px!important;
    min-width:1050px!important;
    max-width:1050px!important;
    grid-template-columns:45px 103px 61px 50px 60px 77px 52px 104px 106px 34px 58px!important;
    column-gap:24px!important;
    gap:24px!important;
    justify-content:start!important;
  }
  html[lang="de"] .main-nav a,html[lang="en"] .main-nav a,
  html[lang="de"] .page-nav a,html[lang="en"] .page-nav a {
    padding-block:10px!important;
    font-size:13px!important;
  }
  html[lang="de"] .header-actions,html[lang="en"] .header-actions,
  html[lang="de"] .page-lang,html[lang="en"] .page-lang,
  html[lang="de"] .language-switcher,html[lang="en"] .language-switcher {
    width:84px!important;min-width:84px!important;max-width:84px!important;
  }
  .language-switcher,.page-lang{
    height:40px!important;
    padding:3px!important;
    border:1px solid rgba(255,255,255,.62)!important;
    border-radius:999px!important;
    gap:0!important;
  }
  .language-switcher .lang-btn,.page-lang button{
    width:38px!important;
    min-width:38px!important;
    height:32px!important;
    padding:0!important;
    border:0!important;
    border-radius:999px!important;
    font-size:12px!important;
    text-decoration:none!important;
  }
  .language-switcher .lang-btn.active,.page-lang button.active{
    background:#fff!important;
    color:#3f4630!important;
  }
}

/* English-only proportional rhythm; German geometry remains untouched. */
@media (min-width:1101px){
  html[lang="en"] .main-nav,html[lang="en"] .page-nav{
    display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:42px!important;
  }
  html[lang="en"] .main-nav a,html[lang="en"] .page-nav a{
    display:block!important;width:auto!important;min-width:0!important;flex:0 0 auto!important;
  }
}

/* German labels need compact, even tracks. English geometry stays unchanged. */
@media (min-width: 1101px) {
  html[lang="de"] .main-nav,
  html[lang="de"] .page-nav {
    grid-template-columns: 45px 103px 61px 50px 60px 77px 52px 104px 106px 34px 58px !important;
    column-gap: 24px !important;
    gap: 24px !important;
    justify-content: start !important;
  }
}

/* German desktop navigation scales from the approved 1240px reference. */
@media (min-width: 1101px) {
  html[lang="de"] .site-header,
  html[lang="de"] .site-header.scrolled,
  html[lang="de"] .site-header:not(.scrolled),
  html[lang="de"] .page-header,
  html[lang="de"] .page-header.scrolled {
    grid-template-columns: 84.68vw 6.77vw !important;
    column-gap: 2.58vw !important;
    height: 6.29vw !important;
    min-height: 6.29vw !important;
    padding-inline: 2.58vw !important;
  }
  html[lang="de"] .main-nav,
  html[lang="de"] .page-nav {
    width: 84.68vw !important;
    min-width: 84.68vw !important;
    max-width: 84.68vw !important;
    grid-template-columns: 3.63vw 8.31vw 4.92vw 4.03vw 4.84vw 6.21vw 4.19vw 8.39vw 8.55vw 2.74vw 4.68vw !important;
    column-gap: 1.94vw !important;
    gap: 1.94vw !important;
  }
  html[lang="de"] .main-nav a,
  html[lang="de"] .page-nav a {
    padding-block: .81vw !important;
    font-size: 1.13vw !important;
  }
  html[lang="de"] .header-actions,
  html[lang="de"] .page-lang,
  html[lang="de"] .language-switcher {
    width: 6.77vw !important;
    min-width: 6.77vw !important;
    max-width: 6.77vw !important;
  }
}

@media (min-width: 1101px) and (max-width: 1261px) {
  .site-header,
  .site-header.scrolled,
  .site-header:not(.scrolled),
  .page-header,
  .page-header.scrolled {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}

/* Final authority: same compact geometry in DE and EN. */
@media (min-width: 1101px) {
  html[lang="de"] .site-header,html[lang="en"] .site-header,
  html[lang="de"] .site-header.scrolled,html[lang="en"] .site-header.scrolled,
  html[lang="de"] .site-header:not(.scrolled),html[lang="en"] .site-header:not(.scrolled),
  html[lang="de"] .page-header,html[lang="en"] .page-header,
  html[lang="de"] .page-header.scrolled,html[lang="en"] .page-header.scrolled{
    grid-template-columns:1050px 84px!important;column-gap:32px!important;
    height:78px!important;min-height:78px!important;padding-inline:32px!important;
  }
  html[lang="de"] .main-nav,html[lang="en"] .main-nav,
  html[lang="de"] .page-nav,html[lang="en"] .page-nav{
    width:1050px!important;min-width:1050px!important;max-width:1050px!important;
    grid-template-columns:45px 103px 61px 50px 60px 77px 52px 104px 106px 34px 58px!important;
    column-gap:24px!important;gap:24px!important;justify-content:start!important;
  }
  html[lang="de"] .main-nav a,html[lang="en"] .main-nav a,
  html[lang="de"] .page-nav a,html[lang="en"] .page-nav a{
    padding-block:10px!important;font-size:13px!important;
  }
  html[lang="de"] .header-actions,html[lang="en"] .header-actions,
  html[lang="de"] .page-lang,html[lang="en"] .page-lang,
  html[lang="de"] .language-switcher,html[lang="en"] .language-switcher{
    width:84px!important;min-width:84px!important;max-width:84px!important;
  }
}

/* v20260816-6 — final header-only correction; content below is untouched. */
@media (min-width:1101px){
  .site-header,.site-header.scrolled,.site-header:not(.scrolled),
  .page-header,.page-header.scrolled{
    grid-template-columns:1050px 84px!important;
    column-gap:0!important;
    justify-content:space-between!important;
    height:78px!important;
    min-height:78px!important;
    padding:0 32px!important;
  }
  html[lang="de"] .main-nav,html[lang="de"] .page-nav{
    width:1050px!important;min-width:1050px!important;max-width:1050px!important;
    grid-template-columns:45px 103px 61px 50px 60px 77px 52px 104px 106px 34px 58px!important;
    column-gap:24px!important;gap:24px!important;justify-content:start!important;
  }
  html[lang="en"] .main-nav,html[lang="en"] .page-nav{
    width:1050px!important;min-width:1050px!important;max-width:1050px!important;
    grid-template-columns:45px 103px 61px 50px 60px 77px 52px 142px 118px 34px 58px!important;
    column-gap:0!important;gap:0!important;justify-content:space-between!important;
  }
  .main-nav a,.page-nav a,
  html[lang="de"] .main-nav a,html[lang="en"] .main-nav a,
  html[lang="de"] .page-nav a,html[lang="en"] .page-nav a{
    padding:10px 0!important;font-size:13px!important;
    line-height:1.2!important;text-align:center!important;white-space:nowrap!important;
  }
  .header-actions,.page-lang,.language-switcher{
    justify-self:end!important;
    width:84px!important;min-width:84px!important;max-width:84px!important;
    margin:0!important;transform:none!important;
  }
}

/* One immutable desktop navigation geometry for every page and both languages. */
@media (min-width:1101px){
  html[lang="de"] .main-nav,html[lang="en"] .main-nav,
  html[lang="de"] .page-nav,html[lang="en"] .page-nav{
    display:grid!important;
    width:1050px!important;
    min-width:1050px!important;
    max-width:1050px!important;
    grid-template-columns:45px 103px 61px 50px 60px 77px 52px 104px 106px 34px 58px!important;
    column-gap:24px!important;
    gap:24px!important;
    justify-content:start!important;
    margin:0!important;
    transform:none!important;
  }
  html[lang="de"] .main-nav a,html[lang="en"] .main-nav a,
  html[lang="de"] .page-nav a,html[lang="en"] .page-nav a{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    padding:10px 0!important;
    font-size:13px!important;
    line-height:1.2!important;
    text-align:center!important;
    white-space:nowrap!important;
  }
}

/* Home: corner logo with language selection immediately to its left. */
.site-header .home-corner-logo{top:8px;right:8px;width:96px}
@media(min-width:1101px){
  html .site-header:not(.scrolled),html .site-header.scrolled{grid-template-columns:minmax(0,1fr) 84px!important;padding:0 120px 0 32px!important;column-gap:24px!important}
  html[lang] .site-header .main-nav{display:flex!important;width:100%!important;min-width:0!important;max-width:none!important;gap:clamp(10px,1.2vw,24px)!important;justify-content:space-between!important}
  html[lang] .site-header .main-nav a{width:auto!important;font-size:12px!important}
}
@media(max-width:1100px){
  .site-header .home-corner-logo{top:8px;right:8px;width:64px;padding:5px}
  body:not(.menu-open) .site-header .header-actions{display:flex!important;position:absolute!important;top:16px!important;right:84px!important;bottom:auto!important;left:auto!important;transform:none!important}
}@media(min-width:1101px){
  html[lang] .site-header .header-actions{position:absolute!important;top:20px!important;right:120px!important;left:auto!important;bottom:auto!important}
  html[lang] .site-header .main-nav{max-width:calc(100vw - 260px)!important}
}
/* Scrolling frees the right corner for the language selector. */
@media(min-width:1101px){
  html[lang] .site-header.scrolled .header-actions{right:8px!important}
}
@media(max-width:1100px){
  body:not(.menu-open) .site-header.scrolled .header-actions{right:8px!important}
}
/* Shared corner branding and scroll behavior on every content page. */
.page-header .home-corner-logo{position:absolute;top:8px;right:8px;display:block;width:96px;padding:8px;border-radius:6px;background:rgba(255,255,255,.88);box-shadow:0 8px 24px rgba(0,0,0,.15)}
.page-header .home-corner-logo img{display:block;width:100%;height:auto}
.page-header.scrolled .home-corner-logo{opacity:0;visibility:hidden;pointer-events:none}
@media(min-width:1101px){
  html[lang] .page-header .page-nav{display:flex!important;width:100%!important;min-width:0!important;max-width:calc(100vw - 260px)!important;gap:clamp(10px,1.2vw,24px)!important;justify-content:space-between!important}
  html[lang] .page-header .page-nav a{width:auto!important;font-size:12px!important}
  html[lang] .page-header .page-lang{position:absolute!important;top:20px!important;right:120px!important;left:auto!important;bottom:auto!important}
  html[lang] .page-header.scrolled .page-lang{right:8px!important}
}
@media(max-width:1100px){
  .page-header .home-corner-logo{width:64px;padding:5px}
  html[lang] .page-header:not(.open) .page-lang{display:flex!important;position:absolute!important;top:16px!important;right:84px!important;bottom:auto!important;left:auto!important;transform:none!important}
  html[lang] .page-header.scrolled:not(.open) .page-lang{right:8px!important}
  .page-header.open .home-corner-logo{display:none}
}
/* Mobile only: logo left, menu right. */
@media(max-width:600px){
  html body .site-header .home-corner-logo,html body .page-header .home-corner-logo{position:absolute!important;top:8px!important;left:8px!important;right:auto!important;width:64px!important;margin:0!important;transform:none!important}
  html body .site-header .menu-toggle,html body .page-header .mobile-menu{position:absolute!important;top:14px!important;right:16px!important;left:auto!important;margin:0!important;transform:none!important}
  html body:not(.menu-open) .site-header .header-actions,html body .page-header:not(.open) .page-lang{right:76px!important}
}
/* Fixed mobile menu toolbar; only the navigation list scrolls. */
@media(max-width:900px){
  html body.menu-open .site-header,html body .page-header.open{overflow:visible!important;transform:none!important}
  html body.menu-open .site-header::before,html body .page-header.open::before{content:"";position:fixed;inset:0 0 auto;height:88px;background:#faf8f3;border-bottom:1px solid #ded8cc;z-index:110;pointer-events:none}
  html body.menu-open .site-header .home-corner-logo,html body .page-header.open .home-corner-logo{display:block!important;position:fixed!important;top:8px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:76px!important;height:66px!important;padding:3px!important;margin:0!important;z-index:112!important;opacity:1!important;visibility:visible!important;pointer-events:auto!important;background:transparent!important;box-shadow:none!important}
  html body.menu-open .site-header .home-corner-logo img,html body .page-header.open .home-corner-logo img{width:100%;height:100%;object-fit:contain}
  html body.menu-open .site-header .header-actions,html body .page-header.open .page-lang{position:fixed!important;top:24px!important;left:16px!important;right:auto!important;bottom:auto!important;z-index:112!important;display:flex!important;width:auto!important;margin:0!important;transform:none!important}
  html body.menu-open .site-header .menu-toggle,html body .page-header.open .mobile-menu{position:fixed!important;top:24px!important;right:16px!important;left:auto!important;z-index:112!important;margin:0!important;transform:none!important}
  html body.menu-open .site-header .main-nav,html body .page-header.open .page-nav{position:fixed!important;inset:88px 0 0!important;height:calc(100dvh - 88px)!important;max-height:calc(100dvh - 88px)!important;padding:12px 24px max(24px,env(safe-area-inset-bottom))!important;overflow-y:auto!important;overscroll-behavior:contain;justify-content:flex-start!important;z-index:100!important}
  html body.menu-open .site-header .main-nav a,html body .page-header.open .page-nav a{flex-shrink:0!important}
  html body.menu-open .main-nav::after,html body .page-header.open .page-nav::after{content:none!important;display:none!important}
}
/* Mobile navigation: brand and menu only, with a compact link list. */
@media(max-width:900px){
  html[lang] body .site-header .header-actions,
  html[lang] body.menu-open .site-header .header-actions,
  html[lang] body .site-header .language-switcher,
  html[lang] body .page-header .page-lang,
  html[lang] body .page-header.open .page-lang{display:none!important}
  html[lang] body.menu-open .site-header .main-nav,
  html[lang] body .page-header.open .page-nav{gap:0!important;padding-top:4px!important;padding-bottom:12px!important}
  html[lang] body.menu-open .site-header .main-nav a,
  html[lang] body .page-header.open .page-nav a{min-height:36px!important;height:auto!important;padding:6px 4px!important;font-size:18px!important;line-height:1.25!important;margin:0!important}
}
/* Keep the last mobile menu item clear of the viewport edge. */
@media(max-width:900px){
  html[lang] body.menu-open .site-header .main-nav,
  html[lang] body .page-header.open .page-nav{padding-bottom:calc(48px + env(safe-area-inset-bottom, 0px))!important;scroll-padding-bottom:48px}
}
/* Language selection is available exclusively inside an open menu. */
html[lang] body .site-header:not(.unused) .header-actions,
html[lang] body .site-header:not(.unused) .language-switcher,
html[lang] body .page-header:not(.unused) .page-lang{display:none!important}
html[lang] body.menu-open .site-header:not(.unused) .header-actions,
html[lang] body.menu-open .site-header:not(.unused) .language-switcher,
html[lang] body .page-header.open:not(.unused) .page-lang{display:flex!important}

/* Desktop: keep the language selector visible immediately left of the logo. */
@media(min-width:901px){
  html[lang] body .site-header:not(.unused) .header-actions,
  html[lang] body .site-header:not(.unused) .language-switcher,
  html[lang] body .page-header:not(.unused) .page-lang{
    display:flex!important;
  }
}

/* Phone only: a quiet two-line menu trigger without a persistent header bar. */
@media(max-width:600px){
  html body:not(.menu-open) .site-header,
  html body .page-header:not(.open){
    background:transparent!important;
    border-color:transparent!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  html body:not(.menu-open) .site-header .home-corner-logo,
  html body .page-header:not(.open) .home-corner-logo{
    display:none!important;
  }
  html body:not(.menu-open) .site-header .menu-toggle,
  html body .page-header:not(.open) .mobile-menu{
    opacity:.94!important;
    transition:opacity .3s ease!important;
  }
  html body:not(.menu-open) .site-header .menu-toggle{
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  html body:not(.menu-open) .site-header.scrolled .menu-toggle,
  html body .page-header.scrolled:not(.open) .mobile-menu{
    opacity:.42!important;
  }
  html body:not(.menu-open) .site-header.scrolled .menu-toggle span{
    background:#596141!important;
  }
  html body .page-header.scrolled:not(.open) .mobile-menu{
    color:#596141!important;
  }
}

/* Phone home hero: keep the brand visible in the upper-left corner only here. */
@media(max-width:600px){
  html body.mobile-hero-logo:not(.menu-open) .site-header .home-corner-logo{
    display:block!important;
    position:absolute!important;
    top:8px!important;
    left:8px!important;
    right:auto!important;
    width:64px!important;
    padding:5px!important;
    margin:0!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
    background:rgba(255,255,255,.88)!important;
    border-radius:6px!important;
    box-shadow:0 8px 24px rgba(0,0,0,.15)!important;
  }
}

/* Footer logo background — footer only */
footer .footer-logo,
.site-footer .footer-logo {
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
  border-radius: 16px;
  display: block;
  object-fit: contain;
}
@media (max-width: 768px) {
  footer .footer-logo,
  .site-footer .footer-logo {
    padding: 12px;
    border-radius: 14px;
    max-width: min(180px, 72vw);
    height: auto;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Header logo/layout restoration — language switch left, logo right */
header .header-actions,
.site-header .header-actions,
header .nav-actions,
.site-header .nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
header .lang-switch,
.site-header .lang-switch,
header .language-switcher,
.site-header .language-switcher {
  order: 1;
  flex: 0 0 auto;
}
header .header-logo,
.site-header .header-logo,
header .logo,
.site-header .logo {
  order: 2;
  flex: 0 0 auto;
  margin-left: 0;
  margin-right: 8px;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  width: auto;
  height: auto;
  object-fit: contain;
}
@media (max-width: 768px) {
  header .header-actions,
  .site-header .header-actions,
  header .nav-actions,
  .site-header .nav-actions {
    margin-left: auto;
    gap: 8px;
    justify-content: flex-end;
  }
  header .lang-switch,
  .site-header .lang-switch,
  header .language-switcher,
  .site-header .language-switcher {
    order: 1;
  }
  header .header-logo,
  .site-header .header-logo,
  header .logo,
  .site-header .logo {
    order: 2;
    margin-left: 0;
    margin-right: 6px;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
}


/* FINAL header logo sizing/layout fix:
   DE/EN stay fully visible to the LEFT; logo stays compact on the RIGHT. */
header .header-actions,
.site-header .header-actions,
header .nav-actions,
.site-header .nav-actions {
  margin-left: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}

header .lang-switch,
.site-header .lang-switch,
header .language-switcher,
.site-header .language-switcher {
  order: 1 !important;
  position: relative !important;
  z-index: 20 !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

header .header-logo,
.site-header .header-logo,
header .logo,
.site-header .logo {
  order: 2 !important;
  position: relative !important;
  z-index: 10 !important;
  flex: 0 0 auto !important;
  width: 78px !important;
  max-width: 78px !important;
  height: auto !important;
  margin: 0 8px 0 0 !important;
  padding: 5px !important;
  box-sizing: border-box !important;
  background: rgba(255,255,255,.82) !important;
  border-radius: 9px !important;
  object-fit: contain !important;
}

/* If the actual image is inside a logo wrapper, keep the image compact too. */
header .header-logo img,
.site-header .header-logo img,
header .logo img,
.site-header .logo img {
  display: block !important;
  width: 68px !important;
  max-width: 68px !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 768px) {
  header .header-actions,
  .site-header .header-actions,
  header .nav-actions,
  .site-header .nav-actions {
    gap: 8px !important;
  }

  header .header-logo,
  .site-header .header-logo,
  header .logo,
  .site-header .logo {
    width: 66px !important;
    max-width: 66px !important;
    padding: 4px !important;
    border-radius: 8px !important;
    margin-right: 6px !important;
  }

  header .header-logo img,
  .site-header .header-logo img,
  header .logo img,
  .site-header .logo img {
    width: 58px !important;
    max-width: 58px !important;
  }
}

@media (max-width: 420px) {
  header .header-actions,
  .site-header .header-actions,
  header .nav-actions,
  .site-header .nav-actions {
    gap: 6px !important;
  }

  header .header-logo,
  .site-header .header-logo,
  header .logo,
  .site-header .logo {
    width: 58px !important;
    max-width: 58px !important;
    padding: 3px !important;
    margin-right: 4px !important;
  }

  header .header-logo img,
  .site-header .header-logo img,
  header .logo img,
  .site-header .logo img {
    width: 52px !important;
    max-width: 52px !important;
  }
}


/* EXACT header controls fix — actual project classes */
@media (min-width: 769px) {
  .site-header,
  .page-header { position: relative; }

  .site-header .home-corner-logo,
  .page-header .home-corner-logo {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    width: 72px !important;
    padding: 5px !important;
    margin: 0 !important;
    border-radius: 10px !important;
    background: rgba(255,255,255,.84) !important;
    box-shadow: 0 5px 16px rgba(0,0,0,.12) !important;
    transform: none !important;
  }

  .site-header .home-corner-logo img,
  .page-header .home-corner-logo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .site-header .header-actions,
  .site-header .page-lang,
  .page-header .header-actions,
  .page-header .page-lang {
    position: absolute !important;
    top: 12px !important;
    right: 94px !important; /* safely left of 72px logo + gap */
    left: auto !important;
    margin: 0 !important;
    z-index: 30 !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 768px) {
  html body.mobile-hero-logo:not(.menu-open) .site-header .home-corner-logo,
  .site-header .home-corner-logo,
  .page-header .home-corner-logo {
    top: 7px !important;
    right: 7px !important;
    left: auto !important;
    width: 58px !important;
    padding: 4px !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,.84) !important;
    transform: none !important;
  }

  .site-header .header-actions,
  .site-header .page-lang,
  .page-header .header-actions,
  .page-header .page-lang {
    position: absolute !important;
    top: 10px !important;
    right: 76px !important;
    left: auto !important;
    margin: 0 !important;
    z-index: 30 !important;
    white-space: nowrap !important;
  }
}



/* Restore original hero-overlay header.
   Keep the corrected DE/EN + compact right logo layout. */
.site-header,
.page-header {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  z-index: 100 !important;
}

/* Do not let an inner header wrapper paint a gray/white bar. */
.site-header .container,
.page-header .container {
  background: transparent !important;
}

/* Preserve readable white navigation over hero imagery. */
.site-header nav a,
.page-header nav a {
  color: #fff !important;
}



/* 2026-09-15 final small logo enlargement */
@media (min-width:769px){
  .site-header .home-corner-logo,
  .page-header .home-corner-logo{
    width:80px!important;
    padding:5px!important;
    right:8px!important;
  }
  .site-header .header-actions,
  .site-header .page-lang,
  .page-header .header-actions,
  .page-header .page-lang{
    right:96px!important;
  }
}
@media (max-width:768px){
  html body.mobile-hero-logo:not(.menu-open) .site-header .home-corner-logo,
  .site-header .home-corner-logo,
  .page-header .home-corner-logo{
    width:64px!important;
    padding:4px!important;
    right:7px!important;
  }
  .site-header .header-actions,
  .site-header .page-lang,
  .page-header .header-actions,
  .page-header .page-lang{
    right:78px!important;
  }
}



/* One outer corner treatment for content boxes on every page and viewport.
   The explicit scope and specificity override earlier responsive card rules. */
:root{--card-radius:18px}
html body :is(
  .card,.arrival-card,.arrival-address,.contact-card,.faq details,.notice,
  .service-card,.room-card,.recognition-card,.booking-card,
  .chalet-card,.chalet-compare-card,.intro-feature-card,.playground-feature,
  .amenity,.detail-facts,.detail-note,.floorplan-card,.booking-banner,.cross-chalet-card,
  .restaurant-copy,.restaurant-facts,.restaurant-mini-facts,
  .journey-stop,.booking-rating,.review-card,.final-booking-box,
  .home-contact-form,.inquiry-wrap .form,.date-range-field,.contact-status,
  .nearby-group,.nearby-summary,.proximity-hero,.proximity-card,
  .premium-map-directory>div,.premium-map-directory>a,
  .funspace-shell,.funspace-benefit,.summer-card-program-note,
  .gallery-item,.gallery-full button,.detail-gallery button,
  .photo,.atmosphere-image img,.restaurant-visuals img,.restaurant-family-image,.floorplan-card img,
  .ac-content-slideshow,.summer-card-slideshow,.slope-location-visual,
  .plan-preview,.map-preview,.map-consent,.google-map-wrap iframe,.embedded-map iframe,
  .radius-map,.route-map-panel,.route-map-stage,.beyond-radius,
  .butler-panel,.butler-privacy
){
  border-radius:var(--card-radius)!important;
}

/* Clip media at the outer card without changing text panels' intrinsic sizing. */
html body :is(
  .chalet-card,.chalet-compare-card,.intro-feature-card,.playground-feature,
  .recognition-card,.summer-feature-card,.detail-facts,
  .gallery-item,.gallery-full button,.detail-gallery button,
  .ac-content-slideshow,.summer-card-slideshow,.funspace-shell,
  .slope-location-visual,.plan-preview,.map-preview,.map-consent,.radius-map
){overflow:hidden}

/* Edge-to-edge media is clipped once, by its outer card, without inner corners. */
html body :is(
  .playground-feature>.playground-slideshow,
  .chalet-card>.chalet-image,.chalet-compare-card>.chalet-carousel,
  .recognition-card>.recognition-image,
  .summer-feature-card>.summer-feature-image,
  .gallery-item>img,.gallery-full button>img,.detail-gallery button>img,
  .intro-feature-card>img,.playground-slideshow>img,
  .chalet-image>img,.chalet-carousel img,.recognition-image>img,
  .ac-content-slideshow>img,.summer-card-slideshow>img,
  .slope-location-visual>img,.map-preview>img
){
  border-radius:0!important;
}

/* The existing mobile cards inset their images with padding. */
@media(max-width:780px){
  html body .summer-feature-card>.summer-feature-image{border-radius:var(--card-radius)!important}
}

/* Unified Flachauer Alpenchalets footer logo on every page/language */
footer img.footer-logo,
.site-footer img.footer-logo {
  display:block !important;
  width:175px !important;
  max-width:100% !important;
  height:auto !important;
  box-sizing:border-box !important;
  padding:12px !important;
  background:rgba(255,255,255,.82) !important;
  border-radius:16px !important;
  object-fit:contain !important;
}
@media (max-width:768px){
  footer img.footer-logo,
  .site-footer img.footer-logo {
    width:145px !important;
    padding:10px !important;
    border-radius:14px !important;
    margin-left:auto !important;
    margin-right:auto !important;
  }
}

/* Mobile header and footer alignment. */
@media (max-width: 768px) {
  html body .site-header .home-corner-logo,
  html body.mobile-hero-logo:not(.menu-open) .site-header .home-corner-logo,
  html body .page-header .home-corner-logo {
    position: absolute !important;
    top: 7px !important;
    left: 16px !important;
    right: auto !important;
    margin: 0 !important;
    transform: none !important;
  }
  html body .site-header .menu-toggle {
    position: absolute !important;
    top: 12px !important;
    right: 16px !important;
    left: auto !important;
  }
  html body footer .footer-grid,
  html body footer .footer-top {
    grid-template-columns: minmax(0, 1fr) !important;
    justify-items: start !important;
    text-align: left !important;
    gap: 24px !important;
  }
  html body footer img.footer-logo {
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-self: start !important;
  }
  html body footer .footer-contact,
  html body footer .footer-direct-contact,
  html body footer .footer-bottom {
    align-items: flex-start !important;
    text-align: left !important;
  }
}
