/* Schneehoehen.de – Header & Footer (Shadow DOM)
   Gilt nur innerhalb von <sh-portal-header> und <sh-portal-footer>; nichts davon erreicht die Seite.

   Aufbau
   1. Host & Isolation      6. Mega-Menü
   2. Tokens                7. Dialoge
   3. Basis-Elemente        8. Mobiles Menü (Drawer)
   4. Gemeinsame Bausteine  9. Footer
   5. Header               10. Bewegung (Motion) & reduzierte Bewegung
   Breakpoints: 1150 · 1100 · 1024 (Mobil-Header) · 760 (Mobil-Footer) · 600 · 480 · 380 · 350 */

/* 1. Host & Isolation ---------------------------------------------------------------------------
   Vererbte Seitenstile (font-size, letter-spacing, text-transform …) enden am Host.
   Layout-kritische Host-Eigenschaften sind !important, damit Legacy-Regeln wie `body>*{…}` die
   Module nicht verschieben. Seitenseitig anpassbar: sh-portal-header{--sh-portal-z-index:900} */
:host {
  all: initial;
}
:host {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.6 var(--font-sans);
  text-align: left;
}
:host(sh-portal-header) {
  position: sticky !important;
  top: 0 !important;
  z-index: var(--sh-portal-z-index, 1000);
}
:host(sh-portal-footer) {
  position: relative !important;
  z-index: auto;
}

/* 2. Tokens ------------------------------------------------------------------------------------- */
:host {
  /* Winter-Palette (Schneehoehen) */
  --deep: #102936;
  --ink: var(--deep);
  --green: #167199;
  --accent: #388db2;
  --muted: #617783;
  --line: #dce6eb;
  --tint: #f1f7fa;
  --white: #fff;
  --black: #000;
  --action: #bce8fa;
  --action-hover: color-mix(in srgb, var(--action) 85%, var(--white));
  --surface-active: #d9eef8;
  --on-dark-muted: color-mix(in srgb, var(--white) 65%, var(--deep));
  --input-border: #8197a3;
  /* Sommer-Link (Alpen-Guide-Grün) und Winter-Hover im Saisonschalter */
  --summer-ink: #132016;
  --summer-green: #174f37;
  --summer-surface: color-mix(in srgb, #7fa873 15%, #fff);
  --winter-hover-bg: #ddeffc;
  --winter-hover-ink: #184665;
  /* Transparenzen */
  --deep-a5: color-mix(in srgb, var(--deep) 5%, transparent);
  --deep-a10: color-mix(in srgb, var(--deep) 10%, transparent);
  --deep-a15: color-mix(in srgb, var(--deep) 15%, transparent);
  --deep-a55: color-mix(in srgb, var(--deep) 55%, transparent);
  --black-a15: color-mix(in srgb, var(--black) 15%, transparent);
  --black-a55: color-mix(in srgb, var(--black) 55%, transparent);
  --white-a10: color-mix(in srgb, var(--white) 10%, transparent);
  --white-a15: color-mix(in srgb, var(--white) 15%, transparent);
  --white-a95: color-mix(in srgb, var(--white) 95%, transparent);
  /* Typografie & Layout */
  --font-sans: Arial, Helvetica, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;
  --text-body: 16px;
  --text-small: 14px;
  --text-meta: 12px;
  --max: 1240px;
  /* Bewegung */
  --motion-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-slow: 280ms;
  /* Laufzeitwerte (per JS gesetzt) */
  --main-nav-height: 165px;
  --reading-progress: 0;
}
@media (max-width: 1024px) {
  :host {
    --main-nav-height: 74px;
  }
}

/* 3. Basis-Elemente ----------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  color: var(--green);
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
p {
  margin: 0 0 20px;
}
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 18px;
  font-weight: 500;
  overflow-wrap: break-word;
}
h2 {
  font-size: clamp(27px, 2.5vw, 36px);
  letter-spacing: -0.8px;
}
h3 {
  font-size: 22px;
  letter-spacing: -0.3px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
input {
  width: 100%;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  padding: 12px;
  min-height: 46px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--text-body);
}
input:disabled {
  background: var(--tint);
  color: var(--muted);
}
[hidden] {
  display: none !important;
}

/* 4. Gemeinsame Bausteine ----------------------------------------------------------------------- */
.wrap {
  width: min(calc(100% - 64px), var(--max));
  margin-inline: auto;
}
.icon {
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
}
.small {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}
.small a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 100;
  background: var(--white);
  padding: 14px;
}
.skip:focus {
  top: 10px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 48px;
  padding: 13px 22px;
  background: var(--action);
  color: var(--deep);
  border: 1px solid var(--action);
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
.button:hover {
  background: var(--action-hover);
  border-color: var(--action-hover);
  color: var(--deep);
}
.button-light {
  background: var(--action);
  color: var(--deep);
  border-color: var(--action);
}
.button-light:hover {
  background: var(--action-hover);
  color: var(--deep);
}
.button-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--line);
}
.text-link {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 5px;
}
/* Derselbe Schließen-Button in allen Dialogen. */
.close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--white);
  color: var(--green);
  box-shadow: none;
  line-height: 1;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}
.close-button .icon {
  width: 22px;
  height: 22px;
}
.close-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.close-button:active {
  background: var(--surface-active);
  border-color: var(--accent);
  transform: scale(0.94);
}
@media (hover: hover) and (pointer: fine) {
  .close-button:hover {
    background: var(--surface-active);
    border-color: var(--accent);
  }
}
/* Statische Dialogtitel sind Start-Fokus; Tastaturfokus auf Bedienelementen bleibt sichtbar. */
.dialog-initial-focus:focus {
  outline: none;
}
/* Schneeflocke im Saisonschalter (Icon-Maske, relativ zu dieser Datei). */
.fa-light.fa-snowflake {
  display: inline-block;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  background: currentColor;
  mask: url('snowflake.svg') center/contain no-repeat;
  -webkit-mask: url('snowflake.svg') center/contain no-repeat;
}

/* Sprachwahl-Button (Header & Footer) */
.locale-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: 44px;
  min-width: 68px;
  min-height: 44px;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 24px;
  font-size: var(--text-small);
}
.locale-button .locale-code {
  font-size: var(--text-small);
  font-weight: 400;
  line-height: 1;
}
/* Sprach-Dropdown (Footer & mobiles Menü) */
.locale-dropdown {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  color: var(--ink);
}
.locale-dropdown > summary {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  list-style: none;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
.locale-dropdown > summary::-webkit-details-marker {
  display: none;
}
.locale-dropdown .locale-name {
  min-width: 0;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.locale-symbol {
  display: flex;
  align-items: center;
}
.locale-symbol > .icon {
  width: 24px;
  height: 24px;
}
.locale-dropdown .locale-chevron {
  width: 18px;
  height: 18px;
  color: var(--green);
  transform: rotate(90deg);
  transition: transform 0.3s ease;
}
.locale-dropdown[open] .locale-chevron {
  transform: rotate(-90deg);
}
.locale-dropdown :is(summary, button):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.locale-options {
  max-height: min(240px, 30dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 0;
}
.locale-options > button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 8px;
  text-align: left;
  font-size: 16px;
  line-height: 1.4;
  color: inherit;
  border: 0;
  border-radius: 4px;
  background: transparent;
}
.locale-options > button > span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.locale-options > button > img {
  display: block;
  width: 24px;
  height: 18px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.locale-options > button > .icon {
  width: 18px;
  height: 18px;
  opacity: 0;
}
.locale-options > button[aria-pressed='true'] {
  background: var(--surface-active);
  color: var(--green);
}
.locale-options > button[aria-pressed='true'] > .icon {
  opacity: 1;
}
/* Kompakte Variante: die Liste öffnet als schwebende Ebene. */
.locale-dropdown-compact > summary {
  grid-template-columns: 20px auto 16px;
  gap: 8px;
  min-height: 44px;
  padding: 8px 0;
  border: 0;
  font-weight: 400;
}
.locale-dropdown-compact .locale-symbol > .icon {
  width: 20px;
  height: 20px;
}
.locale-dropdown-compact .locale-chevron {
  width: 16px;
  height: 16px;
}
.locale-dropdown-compact .locale-options {
  position: absolute;
  z-index: 5;
  max-height: min(240px, 40dvh);
  padding: 6px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 6px 24px var(--deep-a15);
}

@media (max-width: 1024px) {
  .wrap {
    width: calc(100% - 40px);
  }
}
@media (max-width: 600px) {
  .wrap {
    width: calc(100% - 32px);
  }
}
@media (max-width: 350px) {
  .wrap {
    width: calc(100% - 24px);
  }
}

/* 5. Header ------------------------------------------------------------------------------------- */
.scroll-progress {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--green);
  pointer-events: none;
}
.scroll-progress > span {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--action);
  transform: scaleX(var(--reading-progress));
  transform-origin: left;
  will-change: transform;
}
.site-header {
  position: relative;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.24s ease;
}
.site-header:has(#mega-menu:not([hidden])) {
  z-index: 55;
}
:host(.shp-scrolled) .site-header {
  box-shadow: 0 4px 18px var(--deep-a10);
}
.header-main {
  display: flex;
  align-items: center;
  gap: 38px;
  padding-block: 24px 18px;
}
.logo {
  display: inline-flex;
  flex: 0 0 auto;
}
.logo img {
  width: 172px;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  padding-left: 10px;
}

/* Saisonschalter: Sommer (Alpen-Guide-Grün) | Winter (aktiv) */
.season-switch {
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 30px;
}
.season-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 32px;
  padding: 4px 12px;
  border-radius: 22px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  box-shadow: none;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}
.season-switch .icon {
  width: 19px;
  height: 19px;
}
.season-switch .active {
  background: var(--surface-active);
  color: var(--ink);
  box-shadow: 0 1px 3px var(--deep-a5);
}
.season-switch a[data-summer-switch] {
  --surface-active: var(--summer-surface);
  --ink: var(--summer-ink);
  --green: var(--summer-green);
}
.season-switch a[data-summer-switch]:focus-visible {
  outline-color: var(--summer-green);
}
.season-switch a:first-child:is(:focus-visible, :active) {
  background: var(--surface-active);
  color: var(--ink);
}
.season-switch a:last-child:is(:focus-visible, :active) {
  background: var(--winter-hover-bg);
  color: var(--winter-hover-ink);
}
@media (hover: hover) and (pointer: fine) {
  .season-switch a:first-child:hover {
    background: var(--surface-active);
    color: var(--ink);
  }
  .season-switch a:last-child:hover {
    background: var(--winter-hover-bg);
    color: var(--winter-hover-ink);
  }
}

/* Werkzeuge rechts: Suche, Merkliste, Konto, Menü, Sprache */
.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.header-tools > button,
.header-tools > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 50%;
  font-size: 13px;
}
.header-tools > .locale-button {
  width: auto;
  min-width: 68px;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 24px;
}
.header-tools > .locale-button-icon {
  width: auto;
  min-width: 72px;
  margin-left: 12px;
  padding: 8px 10px;
  border-radius: 24px;
}
.header-tools > .locale-button-icon::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 12px;
  bottom: 12px;
  border-left: 1px solid var(--line);
}
.header-tools b {
  position: absolute;
  right: -7px;
  top: -2px;
  display: grid;
  place-items: center;
  min-width: 18px;
  min-height: 18px;
  font-size: 10px;
  background: var(--green);
  color: var(--white);
  border-radius: 100%;
}
#mobile-toggle {
  display: none;
  border: 1px solid transparent;
}
#mobile-toggle[aria-expanded='true'] {
  background: var(--white);
  border-color: var(--line);
  color: var(--green);
}
@media (hover: hover) and (pointer: fine) {
  .header-tools > button:hover,
  .header-tools > a:hover,
  .locale-button:hover {
    background: var(--tint);
    color: var(--ink);
  }
}

/* Hauptnavigation (Desktop) */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.nav-item {
  display: flex;
  align-items: center;
  border-bottom: 3px solid transparent;
}
.nav-item.active {
  border-color: var(--green);
}
.nav-item > .nav-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 16px 6px 13px;
  font-size: var(--text-small);
  font-weight: 600;
  line-height: 1.6;
  text-align: left;
}
.nav-trigger:hover,
.nav-item.active > .nav-trigger {
  color: var(--green);
}
.nav-submenu-toggle {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 44px;
  padding: 4px;
  color: var(--green);
}
.nav-chevron {
  flex: 0 0 16px;
}
.nav-submenu-toggle[aria-expanded='true'] .nav-chevron {
  transform: rotate(180deg);
}
@media (pointer: coarse) {
  .nav-submenu-toggle {
    width: 44px;
  }
}

/* Nach oben & Meldungen */
.back-to-top {
  position: fixed;
  z-index: 1001;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  background: var(--green);
  color: var(--white);
  border: 1px solid var(--accent);
  border-radius: 50%;
  box-shadow: 0 5px 20px var(--deep-a15);
}
.back-to-top:hover {
  background: var(--deep);
  border-color: var(--accent);
  color: var(--white);
}
.back-to-top .icon {
  width: 22px;
  height: 22px;
  transform: rotate(-90deg);
}
:host(.shp-mega-open) .back-to-top {
  visibility: hidden;
}
#toast {
  position: fixed;
  z-index: 100;
  bottom: 25px;
  left: 50%;
  max-width: calc(100% - 32px);
  padding: 14px 23px;
  border-radius: 5px;
  background: var(--deep);
  color: var(--white);
  font-size: var(--text-small);
  box-shadow: 0 5px 25px var(--black-a15);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, 8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
    visibility 0s linear 0.2s;
}
#toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}

@media (max-width: 1150px) {
  .header-main {
    gap: 22px;
  }
  .nav-item > .nav-trigger {
    padding-inline: 4px;
  }
}
@media (max-width: 1024px) {
  .header-main {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 12px 0;
  }
  .header-main .logo {
    flex: 0 1 140px;
    min-width: 0;
  }
  .logo img {
    width: 100%;
    height: 44px;
  }
  .header-main > .season-switch,
  .header-tools > [data-dialog='language-dialog'],
  .desktop-nav {
    display: none;
  }
  .header-tools {
    flex: 0 0 auto;
    gap: 2px;
    margin-left: auto;
  }
  .header-tools > button,
  .header-tools > a {
    min-width: 44px;
  }
  .header-tools #mobile-toggle {
    display: flex;
    order: 5;
  }
}
@media (max-width: 600px) {
  .header-main {
    gap: 8px;
  }
  .header-main .logo {
    flex-basis: 128px;
  }
  .logo img {
    height: 40px;
  }
  .header-tools {
    gap: 0;
  }
  .header-tools .icon {
    width: 21px;
    height: 21px;
  }
  .header-tools b {
    right: 0;
    top: 0;
  }
}

/* 6. Mega-Menü ---------------------------------------------------------------------------------- */
#mega-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100dvh - var(--main-nav-height));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  box-shadow: 0 20px 25px var(--deep-a15);
}
#menu-shade {
  position: fixed;
  inset: 0;
  z-index: 52;
  background: var(--black-a55);
  backdrop-filter: grayscale(1);
  touch-action: none;
}
.mega-inner {
  width: min(calc(100% - 64px), var(--max));
  margin: auto;
  padding: 26px 0 28px;
}
.mega-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.mega-heading h2 {
  font-size: 25px;
  margin: 0;
}
/*
.mega-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 1.2fr;
  gap: 24px;
}
*/

.mega-grid {
  --mega-col: 180px;                    /* max. Breite einer Linkspalte */
  --mega-ad: minmax(220px, 300px);      /* Breite der Anzeige */
  display: grid;
  grid-template-columns: repeat(4, minmax(0, var(--mega-col))) minmax(0, 1fr) var(--mega-ad);
  gap: 24px;
}

/* justus added */
/*
.mega-grid.mega-grid-3 {
  grid-template-columns: repeat(3, 1fr) 1.2fr;
}
.mega-grid.mega-grid-2 {
  grid-template-columns: repeat(2, 1fr) 1.2fr;
}
*/
.mega-grid.mega-grid-3 {
  grid-template-columns: repeat(3, minmax(0, var(--mega-col))) minmax(0, 1fr) var(--mega-ad);
}
.mega-grid.mega-grid-2 {
  grid-template-columns: repeat(2, minmax(0, var(--mega-col))) minmax(0, 1fr) var(--mega-ad);
}

.mega-grid > .menu-partner {
  grid-column: -2 / -1;
}

/* end of justus added */
.mega-grid h3 {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.6px;
}
.mega-grid a {
  display: block;
  padding: 6px 0;
  font-size: var(--text-small);
  line-height: 1.4;
}
.mega-grid a:hover {
  text-decoration: underline;
}

.mega-grid .span-2 {
  /*grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  height: fit-content;*/
  grid-column: span 2;
  column-gap: 16px;
  height: fit-content;
}

.column-2 {column-count: 2;}
.column-3 {column-count: 3;}


.mega-grid .span-3 {
  /*grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  height: fit-content;*/
  grid-column: span 3;
  column-gap: 16px;
  height: fit-content;
}

.mega-grid .span-2 h3,
.mega-grid .span-3 h3 {
  width: 100%;
  grid-column: span 2;
  column-span: all;
}

.mega-grid .span-3 h3.multispan,
.mega-grid .span-2 h3.multispan {
  font-size: 16px;
}

.mega-grid .span-2 a,
.mega-grid .span-3 a {
  /*width: 40%;*/
  break-inside: avoid; /* Prevents an item from splitting across columns */
  /*margin-bottom: 16px; /* Acts as your vertical gap between items */
  display: inline-block; /* Helps enforce the break-inside rule in some browsers */
  width: 100%;
}

.mega-grid .span-2 h3.nav-subheader,
.mega-grid .span-3 h3.nav-subheader {
  width: 100%;
  grid-column: span 1;
  margin-bottom: 8px;
  margin-top: 28px;
  column-span: none;
}

.mega-grid .span-2 h3.nav-subheader.start-new-column,
.mega-grid .span-3 h3.nav-subheader.start-new-column {
  margin-top: 0;
  padding: 0;
}

.start-new-column {
  break-before: column;
}

.menu-partner {
  padding: 18px;
  border-radius: 5px;
  background: var(--surface-active);
  height: fit-content;
}
.menu-partner h3 {
  margin: 24px 0 12px;
  color: var(--green);
  font-family: var(--font-sans);
  font-size: 25px;
}
.menu-partner p {
  font-size: var(--text-small);
}
.menu-partner a {
  font-weight: 600;
}
@media (max-width: 1024px) {
  .mega-inner {
    display: none;
  }
}

/* 7. Dialoge ------------------------------------------------------------------------------------ */
dialog {
  width: min(calc(100% - 32px), 580px);
  max-height: 90dvh;
  padding: 0;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
}
dialog::backdrop {
  background: var(--deep-a55);
}
.utility-dialog {
  padding: 30px;
}
.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.dialog-head h2 {
  font-size: 26px;
  margin: 6px 0;
}
.dialog-head button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
}
.utility-dialog label {
  display: block;
  margin: 17px 0 8px;
  font-size: var(--text-small);
  font-weight: 600;
}
.utility-dialog form > .button {
  margin-top: 20px;
}
.utility-dialog > .text-link {
  display: inline-block;
  margin-top: 24px;
}
.notice {
  margin: 20px 0;
  padding: 15px;
  background: var(--tint);
  color: var(--ink);
  font-size: var(--text-small);
}

/* Suche */
.input-action {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.input-action input {
  min-width: 0;
}

/* Sommer-Wechsel */
.summer-dialog {
  width: min(520px, calc(100% - 32px));
}
.summer-dialog p {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.65;
}
.summer-dialog-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.summer-dialog-actions .button {
  width: 100%;
  min-height: 48px;
}
.summer-dialog-actions .button .icon {
  flex: none;
}

/* Konto */
.account-dialog {
  width: min(460px, calc(100% - 24px));
  border-radius: 12px;
}
.account-dialog .dialog-head {
  margin-bottom: 10px;
}
.account-intro {
  margin-bottom: 22px;
  font-size: var(--text-small);
  color: var(--muted);
}
.account-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 22px;
  padding: 4px;
  border-radius: 6px;
  background: var(--tint);
}
.account-tabs button {
  min-height: 44px;
  border-radius: 4px;
  font-size: var(--text-small);
}
.account-tabs button[aria-pressed='true'] {
  background: var(--white);
  box-shadow: 0 1px 4px var(--deep-a10);
  font-weight: 600;
}
.account-providers {
  display: grid;
  gap: 10px;
}
.account-provider {
  display: grid;
  grid-template-columns: 22px 1fr 22px;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--white);
  color: var(--ink);
  font-size: var(--text-small);
  font-weight: 500;
}
.account-provider:hover {
  border-color: var(--muted);
}
.account-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: var(--text-small);
}
.account-divider:before,
.account-divider:after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}
.account-password-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.account-password-label .text-link {
  min-height: 32px;
  font-size: 12px;
}
.account-password-field {
  position: relative;
}
.account-password-field input {
  padding-right: 84px;
}
.account-password-field button {
  position: absolute;
  right: 4px;
  top: 2px;
  min-height: 44px;
  padding: 8px;
  font-size: 12px;
  color: var(--green);
}
.account-dialog #register-info {
  margin: 12px 0 0;
}
.account-dialog #account-submit {
  width: 100%;
  margin-top: 20px;
}
.account-dialog input:disabled {
  background: var(--tint);
}
.account-dialog button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.account-status {
  margin: 16px 0 0;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--muted);
}
.account-dialog .account-guest {
  display: block;
  margin-top: 18px;
  text-align: center;
  font-size: var(--text-small);
}

/* Sprachwahl: großzügige Zeilen mit Flagge, Name in Landessprache, ruhiger Haken */
#language-dialog {
  width: min(960px, calc(100% - 32px));
  max-width: 960px;
  background: var(--white);
  font-family: var(--font-sans);
}
#language-dialog .language-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
#language-dialog .language-options legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
#language-dialog .language-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 8px;
  max-height: 340px;
  padding: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
}
#language-dialog .language-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-size: var(--text-body);
  line-height: 1.4;
  font-weight: 400;
  color: var(--deep);
}
#language-dialog .language-option img {
  display: block;
  flex: none;
  width: 32px;
  height: 24px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 3px;
}
#language-dialog .language-option .language-name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
#language-dialog .language-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  opacity: 0;
}
#language-dialog .language-option .language-check {
  flex: none;
  width: 20px;
  height: 20px;
  opacity: 0;
  color: var(--green);
}
#language-dialog .language-check .icon {
  width: 20px;
  height: 20px;
}
#language-dialog .language-option:has(input:checked) {
  background: color-mix(in srgb, var(--action) 55%, var(--tint));
  font-weight: 600;
  color: var(--green);
}
#language-dialog .language-option:has(input:checked) .language-check {
  opacity: 1;
}
#language-dialog .language-option:has(input:focus-visible) {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}
#language-dialog #language-status {
  margin: 16px 0 0;
  padding: 0 8px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
}
#language-dialog form > .button {
  display: block;
  min-height: 44px;
  margin: 16px 4px 0 auto;
  padding: 10px 16px;
  font-size: 14px;
}
@media (hover: hover) {
  #language-dialog .language-option:hover {
    background: var(--deep-a5);
  }
  #language-dialog .language-option:has(input:checked):hover {
    background: color-mix(in srgb, var(--action) 55%, var(--tint));
  }
}

@media (max-width: 760px) {
  #language-dialog .language-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 50dvh;
  }
  #language-dialog .language-option {
    gap: 10px;
    padding: 10px;
    font-size: 16px;
  }
}
@media (max-width: 600px) {
  .utility-dialog {
    padding: 22px;
  }
  .dialog-head h2 {
    font-size: 24px;
  }
  .input-action {
    flex-wrap: wrap;
  }
  .input-action input,
  .input-action button {
    width: 100%;
  }
  .chips {
    gap: 8px;
  }
  .chips a {
    padding: 9px 13px;
    font-size: 13px;
  }
}
@media (max-width: 480px) {
  #language-dialog .language-options-grid {
    grid-template-columns: 1fr;
  }
  #language-dialog .language-option {
    min-height: 56px;
  }
}

/* 8. Mobiles Menü (Drawer) ---------------------------------------------------------------------- */
.mobile-dialog {
  --mobile-gutter: 24px;
  inset: 0 0 0 auto;
  width: min(360px, calc(100% - 56px));
  max-width: calc(100% - 56px);
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
}
.mobile-dialog[open] {
  display: block;
}
.mobile-sheet {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--white);
}
.mobile-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mobile-top {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: flex-end;
  padding: max(16px, env(safe-area-inset-top)) var(--mobile-gutter) 4px;
}
.mobile-top button {
  width: 44px;
  height: 44px;
}
.mobile-top .mobile-back {
  margin-right: auto;
}
#mobile-panel {
  flex: 1;
  min-height: 0;
  padding-inline: var(--mobile-gutter);
  overflow-y: auto;
  overscroll-behavior: none;
}
.mobile-context {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 8px 0;
  background: var(--white);
}
.mobile-context h2 {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  text-align: left;
}
.mobile-context h2 a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  font: inherit;
  color: inherit;
  text-decoration: none;
}
.mobile-panel-content {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 16px;
}
.mobile-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 18px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  overflow-wrap: anywhere;
}
.mobile-row-label {
  min-width: 0;
}
.mobile-row-icon {
  display: block;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  color: var(--green);
}
.mobile-row:hover {
  background: transparent;
  color: var(--ink);
}
.mobile-row:active {
  color: var(--green);
}
.mobile-row:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.mobile-group {
  margin: 0;
  padding: 0;
  border: 0;
}
.mobile-group > summary {
  list-style: none;
  font-weight: 500;
  cursor: pointer;
}
.mobile-group > summary::-webkit-details-marker {
  display: none;
}
.mobile-group > summary .mobile-row-icon {
  transform: rotate(90deg);
  transition: transform 0.24s ease;
}
.mobile-group[open] > summary:not([aria-expanded='false']) .mobile-row-icon {
  transform: rotate(-90deg);
}
.mobile-group-links {
  padding-bottom: 8px;
}
.mobile-group-links .mobile-row {
  grid-template-columns: minmax(0, 1fr);
  padding-left: 12px;
}
.mobile-partner {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--surface-active);
}
.mobile-partner a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  font-weight: 500;
}
.mobile-partner span {
  font-size: 12px;
  color: var(--muted);
}
/* Untere Leiste: Saisonschalter (nur Icons) und Sprache */
.mobile-settings {
  position: relative;
  display: grid;
  flex-shrink: 0;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px var(--mobile-gutter) max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--white);
}

/*.mobile-settings {display: none;}*/

.mobile-settings .season-switch {
  display: flex;
  order: 0;
  width: auto;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
}
.mobile-settings .season-switch a {
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  gap: 0;
  padding: 0;
}
.mobile-settings .season-switch a > span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mobile-settings .locale-options {
  inset: auto var(--mobile-gutter) calc(100% - 4px);
}
.mobile-preferences {
  display: flex;
  justify-self: end;
  min-width: 0;
}
.mobile-preferences {
  display: none;
}
.mobile-locale-feedback {
  grid-column: 1/-1;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
@media (max-width: 350px) {
  .mobile-dialog {
    --mobile-gutter: 20px;
  }
}

/* 9. Footer ------------------------------------------------------------------------------------- */
.site-footer {
  margin-top: 0;
  padding: 0;
  background: var(--deep);
  color: var(--white);
}
.site-footer :focus-visible {
  outline-color: var(--action);
}

/* Newsletter */
.site-footer .newsletter {
  margin: 0;
  background: transparent;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: 24px 40px;
  padding-block: 34px;
  border-bottom: 1px solid var(--white-a15);
}
.newsletter-copy {
  min-width: 0;
}
.newsletter h2 {
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--action);
}
.newsletter h2 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.14em;
}
.newsletter-copy p {
  max-width: 46ch;
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--on-dark-muted);
}
.newsletter-form {
  justify-self: end;
  width: 100%;
  min-width: 0;
  max-width: 520px;
}
.newsletter-form > label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--text-small);
  font-weight: 500;
  color: var(--on-dark-muted);
}
.newsletter-input {
  display: flex;
  gap: 8px;
}
.newsletter-input input {
  flex: 1;
  width: 0;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--deep);
  color: var(--white);
  border-color: var(--muted);
}
.newsletter-input input::placeholder {
  color: var(--on-dark-muted);
  opacity: 1;
}
.newsletter-input .button {
  flex-shrink: 0;
  width: auto;
  min-height: 48px;
  padding: 12px 16px;
  background: var(--action);
  border-color: var(--action);
  color: var(--deep);
}
.site-footer .newsletter-input input:focus {
  border-color: var(--action);
  box-shadow: none;
  outline: 1px solid var(--action);
  outline-offset: 0;
}
.site-footer .newsletter-input input:focus-visible {
  outline: 2px solid var(--action);
  outline-offset: 1px;
}
.site-footer .newsletter-input input:autofill,
.site-footer .newsletter-input input:autofill:focus {
  box-shadow: 0 0 0 1000px var(--deep) inset;
  -webkit-text-fill-color: var(--white);
}

/* Logo, Intro und Linkspalten (Desktop offen, mobil als Akkordeon) */
.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.8fr) minmax(0, 4fr);
  align-items: start;
  gap: 32px 62px;
  padding: 26px 0;
}
.footer-intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}
.footer-intro > img {
  flex: none;
  width: 140px;
  height: auto;
  aspect-ratio: 200/88;
  margin: 0;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer-intro p {
  max-width: 48ch;
  margin: 0;
  font-size: var(--text-small);
  line-height: 1.6;
  color: var(--on-dark-muted);
  text-wrap: pretty;
}
.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  min-width: 0;
  padding-top: 4px;
}
.footer-columns h3,
.footer-app h3 {
  margin-bottom: 8px;
  font-size: var(--text-small);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--action);
}
.footer-columns a {
  display: block;
  padding: 2px 0;
  font-size: var(--text-small);
  line-height: 1.5;
  color: var(--on-dark-muted);
  overflow-wrap: anywhere;
}
.footer-columns a:focus-visible {
  outline-offset: 2px;
}
.footer-group {
  min-width: 0;
  padding: 0;
  border: 0;
}
.footer-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: default;
}
.footer-group > summary::-webkit-details-marker {
  display: none;
}
.footer-group > summary .icon {
  display: none;
}

/* Sprache, Social Media, App */
.footer-services {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 12px 0;
  border-top: 1px solid var(--white-a15);
}
.footer-connect {
  display: flex;
  align-items: center;
  gap: 16px;
}
.footer-preferences {
  position: relative;
  max-width: 100%;
}
.footer-preferences > .locale-button {
  min-width: 72px;
  color: var(--white-a95);
}
.footer-preferences > .locale-dropdown {
  display: none;
  width: max-content;
  color: var(--white-a95);
}
.footer-preferences .locale-chevron {
  color: var(--action);
}
.footer-preferences .locale-options {
  bottom: calc(100% + 4px);
  left: 0;
  z-index: 10;
  width: 260px;
  max-width: calc(100vw - 32px);
}
.footer-preferences .locale-options > button:focus-visible {
  outline-color: var(--green);
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}
.footer-connect > .social-links {
  position: relative;
  flex: none;
  flex-wrap: nowrap;
  padding-left: 16px;
}
/* removed temporarily because of missing language select
.footer-connect > .social-links::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  border-left: 1px solid var(--white-a15);
}*/
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: var(--white-a95);
}
.social-links svg {
  flex-shrink: 0;
  width: 21px;
  height: 21px;
}
.footer-app {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.footer-app-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.footer-app h3 {
  margin: 0;
  color: var(--white-a95);
}
.app-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.app-badges a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.app-badges img {
  width: auto;
  max-width: 100%;
  height: 40px;
  object-fit: contain;
}
/* Die Google-Grafik hat transparenten Rand, daher größer. */
.app-badges .store-badge-google {
  height: 52px;
}

/* Rechtliches – rechts/unten Platz für den fixen „Nach oben“-Button (49px, 24px Abstand). */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px 24px;
  padding: 14px 80px 30px 0;
  border-top: 1px solid var(--white-a15);
  font-size: var(--text-meta);
  color: var(--on-dark-muted);
  text-align: left;
}
.footer-bottom > span {
  text-align: right;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px 18px;
}
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

@media (hover: hover) and (pointer: fine) {
  .footer-columns a:hover,
  .footer-bottom a:hover {
    color: var(--white);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .site-footer .social-links a:hover,
  .site-footer .locale-button:hover {
    color: var(--white);
    background: var(--white-a10);
  }
  .newsletter-input .button:hover {
    background: var(--action-hover);
    border-color: var(--action-hover);
    color: var(--deep);
  }
}
@media (max-width: 1100px) {
  .footer-main {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 0;
  }
  .footer-intro p {
    max-width: 76ch;
  }
  .footer-services {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .footer-app {
    justify-content: space-between;
  }
}
@media (max-width: 1024px) {
  .footer-preferences > .locale-button {
    display: none;
  }
  .footer-preferences > .locale-dropdown {
    display: block;
  }
}
@media (max-width: 760px) {
  .newsletter-inner {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .newsletter h2 {
    grid-column: 1;
    grid-row: 1;
    font-size: 20px;
  }
  .newsletter-form {
    justify-self: start;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .footer-columns h3 {
    margin-bottom: 6px;
  }
  .footer-group {
    border-bottom: 1px solid var(--white-a15);
  }
  .footer-group:first-child {
    border-top: 1px solid var(--white-a15);
  }
  .footer-group > summary {
    min-height: 54px;
    padding: 12px 0;
    cursor: pointer;
  }
  .footer-group > summary h3 {
    margin: 0;
  }
  .footer-group > summary .icon {
    display: block;
    width: 18px;
    height: 18px;
    color: var(--action);
    transform: rotate(90deg);
  }
  .footer-group[open] > summary .icon {
    transform: rotate(-90deg);
  }
  .footer-group > nav {
    padding-bottom: 12px;
  }
  .footer-columns .footer-group a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
  }
  .footer-services {
    row-gap: 24px;
    justify-items: center;
    border-top: 0;
    text-align: center;
  }
  .footer-connect,
  .social-links,
  .footer-app,
  .footer-app-title,
  .app-badges {
    justify-content: center;
  }
  .footer-connect {
    display: contents;
  }
  .footer-connect > .social-links {
    width: 100%;
    gap: 0;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--white-a15);
  }
  .footer-connect > .social-links::before {
    display: none;
  }
  .footer-preferences {
    order: 1;
    position: relative;
    display: flex;
    justify-content: center;
    flex: none;
    width: 100%;
    min-width: 0;
  }
  .footer-preferences > .locale-dropdown {
    width: 100%;
  }
  .footer-preferences .locale-dropdown > summary {
    grid-template-columns: 20px minmax(0, 1fr) 16px;
    gap: 8px;
    min-height: 52px;
    padding: 12px 8px;
    border: 1px solid var(--on-dark-muted);
    border-radius: 6px;
    text-align: left;
  }
  .footer-preferences .locale-dropdown[open] > summary {
    border-color: var(--accent);
  }
  .footer-preferences .locale-options {
    width: 100%;
    max-width: 100%;
    text-align: left;
  }
  .footer-app {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .footer-app .app-badges {
    display: grid;
    grid-template-columns: 1fr 1.125fr;
    width: 100%;
  }
  .footer-app .app-badges a {
    min-width: 0;
    justify-content: center;
  }
  .footer-app .app-badges img {
    width: 100%;
    height: auto;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    padding: 14px 0 96px;
    text-align: center;
  }
  .footer-bottom > span {
    width: 100%;
    text-align: center;
  }
  .footer-legal {
    justify-content: center;
    gap: 4px 18px;
  }
}
@media (max-width: 380px) {
  .newsletter-input {
    flex-wrap: wrap;
  }
  .newsletter-input input {
    flex-basis: 100%;
    width: 100%;
  }
  .newsletter-input .button {
    width: 100%;
  }
  .app-badges {
    gap: 8px;
  }
}

/* 10. Bewegung --------------------------------------------------------------------------------
   Alles hier hängt am Attribut data-shp-motion="soft" an den Hosts. Ohne das Attribut (und bei
   „Bewegung reduzieren“) laufen alle Zustandswechsel ohne Animation. */
:host([data-shp-motion='soft'])
  :is(.nav-item, .nav-trigger, .nav-submenu-toggle, .button, .header-tools > button, .header-tools > a) {
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.25s ease,
    opacity 0.2s ease;
}
:host([data-shp-motion='soft']) :is(.nav-chevron, .footer-group > summary .icon) {
  transition: transform 0.24s var(--motion-ease);
}
:host([data-shp-motion='soft']) .motion-closing {
  pointer-events: none;
}
:host([data-shp-motion='soft']) .motion-details {
  overflow: hidden;
  box-sizing: border-box;
}
:host([data-shp-motion='soft']) #mega-menu.motion-rolling {
  overflow: hidden;
}
:host([data-shp-motion='soft']) dialog::backdrop {
  animation: soft-backdrop-in 0.25s var(--motion-ease) both;
}
:host([data-shp-motion='soft']) dialog.motion-closing::backdrop {
  animation: soft-backdrop-out 0.18s var(--motion-ease) both;
}
@keyframes soft-backdrop-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes soft-backdrop-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Mobiles Menü + Burger → X (übernommen aus dem Wellness-Template, 06.10.2026).
   Transitions statt Keyframes: Wird das Menü mitten in der Bewegung geschlossen, läuft alles ruhig
   von der aktuellen Position zurück. Burger und Schublade hängen am selben Zustand (.drawer-open). */
:host([data-shp-motion='soft']) #mobile-dialog::backdrop {
  animation-duration: var(--dur-slow);
  animation-delay: 0s;
  animation-timing-function: var(--ease-drawer);
}
:host([data-shp-motion='soft']) #mobile-dialog.motion-closing::backdrop {
  animation-duration: 0.22s;
  animation-delay: 0s;
}
/* CSS-Transitions auf einem gezeichneten Kind funktionieren unabhängig von Dialog-/WAAPI-Unterstützung. */
:host([data-shp-motion='soft']) .mobile-sheet {
  transform: translate3d(100%, 0, 0);
  transition: transform 0.2s var(--ease-drawer);
}
:host([data-shp-motion='soft']) .mobile-dialog.drawer-open > .mobile-sheet {
  transform: translate3d(0, 0, 0);
  transition-duration: var(--dur-slow);
  transition-delay: 0s;
  will-change: transform;
}
.menu-glyph {
  transform-origin: center;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.menu-glyph path {
  transform-box: view-box;
  transition:
    transform 0.32s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.16s ease;
}
.menu-bar-top {
  transform-origin: 12px 6px;
}
.menu-bar-middle {
  transform-origin: 12px 12px;
}
.menu-bar-bottom {
  transform-origin: 12px 18px;
}
#mobile-toggle[aria-expanded='true'] .menu-glyph,
#mobile-dialog.drawer-open .menu-glyph {
  transform: rotate(180deg);
}
#mobile-toggle[aria-expanded='true'] .menu-bar-top,
#mobile-dialog.drawer-open .menu-bar-top {
  transform: translateY(6px) rotate(45deg);
}
#mobile-toggle[aria-expanded='true'] .menu-bar-middle,
#mobile-dialog.drawer-open .menu-bar-middle {
  transform: scaleX(0.2);
  opacity: 0;
}
#mobile-toggle[aria-expanded='true'] .menu-bar-bottom,
#mobile-dialog.drawer-open .menu-bar-bottom {
  transform: translateY(-6px) rotate(-45deg);
}
/* Schließen: das X dreht zum Burger zurück, während die Schublade hinausgleitet. */
#mobile-dialog.motion-closing .menu-glyph,
#mobile-dialog.motion-closing .menu-glyph path {
  transition-duration: 0.22s;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after,
  dialog::backdrop {
    animation: none !important;
    transition: none !important;
  }
}
