/* ==========================================================================
   Sewenhütte – Pre-Website
   Aufbau: Fonts · Variablen · Basis · Utilities (Label, Text, Buttons)
           · Header · Hero · Neues Kapitel · Reservation & Kontakt · Zustieg
           · Abschluss-Band · Footer · Responsive
   ========================================================================== */


/* ===== Fonts ===== */
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('../assets/fonts/outfit-v15-latin-300.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('../assets/fonts/outfit-v15-latin-regular.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('../assets/fonts/outfit-v15-latin-500.woff2') format('woff2');
}
@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('../assets/fonts/outfit-v15-latin-600.woff2') format('woff2');
}


/* ===== Variablen ===== */
:root {
  /* Farben */
  --color-bg: #f9f7f1;
  --color-text: #24251c;
  --color-olive: #5c6035;
  --color-orange: #c7682d;
  --color-orange-dark: #ad5724;
  --color-cream: #f1ebdd;
  --color-hero-text: #f9efd9;
  --color-footer: #e9e3d5;
  --color-sand: #ddd5c1; /* aktives Band bei den Wegen */
  --color-line: rgba(36, 37, 28, 0.15);
  --color-line-strong: rgba(36, 37, 28, 0.3);
  --color-muted: rgba(36, 37, 28, 0.7);

  /* Fonts */
  --font-sans: 'Outfit', sans-serif;

  /* Abstände */
  --content-width: 1280px;
  --gutter: 80px;
  --section-padding: 100px;
  /* Seitenrand, der auf breiten Bildschirmen die Inhaltsbreite zentriert */
  --page-inline: max(var(--gutter), (100% - var(--content-width)) / 2);

  /* Titelgrössen */
  --size-h1: 120px;
  --size-h2: 56px;

  --transition: 0.2s ease;

  /* Höhe des Headers (wird von js/header-scroll.js genau gesetzt) */
  --header-height: 89px;
}


/* ===== Basis ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  /* Ankerlinks landen nicht unter dem Header */
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-weight: 600;
  margin: 0;
}

p, dl, dd {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 3px;
}


/* ===== Utilities: Label, Fliesstext, Textlinks ===== */
.label {
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.06em; /* 0.72px */
}

.label--olive {
  color: var(--color-olive);
  font-weight: 500;
  letter-spacing: 0.04em; /* 0.48px */
}

.text {
  font-size: 19px;
  line-height: 1.55;
}

/* Leerzeile zwischen aufeinanderfolgenden Absätzen */
.text + .text {
  margin-top: 1.55em;
}

/* Textlinks: ohne Unterstrich, beim Hover unterstrichen */
.site-header__link,
.info-list a,
.site-footer a {
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.site-header__link:hover,
.info-list a:hover,
.site-footer a:hover {
  text-decoration: underline;
}

/* Telefonnummern nie mitten in der Nummer umbrechen */
a[href^="tel:"] {
  white-space: nowrap;
}


/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
}

/* Header: Reservieren */
.btn--header {
  padding: 12px 22px;
  background: var(--color-orange);
  color: var(--color-cream);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: 0.84px;
}

/* Sektion 3: Online reservieren */
.btn--primary {
  padding: 16px 28px;
  background: var(--color-orange);
  color: var(--color-bg);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.72px;
}

.btn--header:hover,
.btn--primary:hover {
  background: var(--color-orange-dark);
}

/* Sektion 2: Outline-Button auf Olive */
.btn--outline {
  padding: 14px 28px;
  border: 1px solid var(--color-cream);
  color: var(--color-cream);
  font-weight: 400;
  font-size: 12px;
  line-height: 1.3;
  letter-spacing: 0.72px;
}

.btn--outline:hover {
  background: var(--color-cream);
  color: var(--color-olive);
}

.btn--outline:focus-visible {
  outline-color: var(--color-cream);
}

/* ↗ ist nicht im latin-Subset der Fonts, daher als SVG */
.icon-arrow {
  flex-shrink: 0;
}


/* ===== Header ===== */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 15px var(--page-inline);
  background: var(--color-bg);
  /* Sticky: bleibt oben, blendet beim Runterscrollen aus (js/header-scroll.js) */
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 0.25s ease;
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

/* Mit Tastatur im Header: immer sichtbar */
.site-header:focus-within {
  transform: none;
}

.site-header__logos {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header__logos img[src$=".svg"] {
  width: 55px;
  height: 55px;
}

.site-header__logos a img {
  width: 150px;
  height: auto;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header__link {
  color: var(--color-text);
  font-weight: 500;
  font-size: 16px;
  white-space: nowrap;
}

/* Zwei Telefonnummern mit Namen, getrennt mit feinem Strich */
.site-header__phones,
.site-header__phone {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  white-space: nowrap;
}

.site-header__name {
  color: var(--color-olive);
  font-weight: 300;
}

.site-header__number {
  letter-spacing: 0.02em; /* 0.32px */
}


/* ===== Hero ===== */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 760px;
  padding: 80px var(--page-inline) 185px; /* unten abgeglichen mit Figma-Screenshot */
  background-color: #4a4d33;
  background-image:
    linear-gradient(90deg, rgba(92, 96, 53, 0.3965) 0%, rgba(92, 96, 53, 0) 84%),
    linear-gradient(180deg, rgba(26, 28, 15, 0) 45%, rgba(26, 28, 15, 0.42) 100%),
    linear-gradient(180deg, rgba(20, 20, 15, 0.2) 0%, rgba(20, 20, 15, 0) 35%),
    url('../assets/images/hero.jpg');
  background-image:
    linear-gradient(90deg, rgba(92, 96, 53, 0.3965) 0%, rgba(92, 96, 53, 0) 84%),
    linear-gradient(180deg, rgba(26, 28, 15, 0) 45%, rgba(26, 28, 15, 0.42) 100%),
    linear-gradient(180deg, rgba(20, 20, 15, 0.2) 0%, rgba(20, 20, 15, 0) 35%),
    image-set(url('../assets/images/hero.webp') type('image/webp'), url('../assets/images/hero.jpg') type('image/jpeg'));
  /* Bild füllt die Fläche, die Hütte steht mittig (Bild ist darauf zugeschnitten);
     die Verläufe (erste drei Ebenen) füllen immer die ganze Fläche */
  background-size: 100% 100%, 100% 100%, 100% 100%, cover;
  background-position: 0 0, 0 0, 0 0, 50% 60%;
  background-repeat: no-repeat;
  color: var(--color-hero-text);
  /* kein overflow: hidden – der Notizzettel darf über die ganze Seite gezogen werden */
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: var(--size-h1);
  line-height: 1.1;
  letter-spacing: -0.02em; /* -2.4px bei 120px */
}

/* «SAC» im Titel klein gesetzt, wie im Logo */
.hero__sac {
  margin-left: -0.28em; /* Lücke zum Wort wie im Figma (ca. 11px) */
  font-size: 0.3833em; /* 46px bei 120px, wie im Figma */
  letter-spacing: -0.052em; /* -2.4px bei 46px */
}

.hero__subtitle {
  margin-top: 8px;
  font-size: 30px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Notiz: Drehung, Schatten und Klebeband sind bereits im PNG enthalten */
.hero__note {
  position: absolute;
  left: 61.8%;   /* Papier beginnt im Figma bei 906px von 1440px */
  top: 370px;
  width: 390px;  /* PNG inkl. Schattenrand → Papier ca. 350px breit */
  z-index: 2;    /* liegt beim Verschieben über allen Abschnitten, unter dem Header */
}

/* Mit dem Finger ziehen: nur auf dem Zettel scrollt die Seite nicht */
.hero__note.is-touch-draggable {
  touch-action: none;
}

/* Notiz lässt sich verschieben (siehe js/main.js) */
@media (hover: hover) and (pointer: fine) {
  .hero__note {
    cursor: grab;
    -webkit-user-select: none;
    user-select: none;
  }

  .hero__note.is-dragging {
    cursor: grabbing;
  }
}


/* ===== Sektion: Neues Kapitel ===== */
.intro {
  display: grid;
  grid-template-columns: minmax(0, 580px) minmax(0, 580px);
  justify-content: space-between;
  column-gap: 60px;
  padding: var(--section-padding) var(--page-inline);
  background: var(--color-olive);
  color: var(--color-cream);
}

.intro__title {
  margin-top: 28px;
  font-size: var(--size-h2);
  line-height: 1.2;
}

.intro .btn--outline {
  margin-top: 32px;
}


/* ===== Sektion: Reservation & Kontakt ===== */
.contact {
  display: flex;
  align-items: flex-end;
  gap: 120px;
  padding: var(--section-padding) var(--page-inline);
  background: var(--color-bg);
}

.contact__main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}

.contact__title,
.approach__title {
  color: var(--color-olive);
  font-size: var(--size-h2);
  line-height: 1.05;
  letter-spacing: -0.02em; /* -1.12px bei 56px */
}

.contact__signature {
  color: var(--color-olive);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.4;
}

.contact__aside {
  flex: 0 0 480px;
  width: 480px;
}

/* Infoliste */
.info-list__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-line);
}

.info-list__row:first-child {
  border-top: 1px solid var(--color-line);
}

.info-list dt {
  flex-shrink: 0;
  color: var(--color-olive);
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em; /* 0.48px */
}

.info-list dd {
  color: var(--color-text);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.3;
  text-align: right;
}

/* Telefonnummern untereinander, Name links davor */
.info-list .info-list__phones {
  display: grid;
  grid-template-columns: 60px auto;
  justify-content: end;
  column-gap: 12px;
  row-gap: 10px;
  text-align: left;
}

.info-list__phone {
  display: contents;
}

/* Beschriftung «Telefon» mittig zu den zwei Zeilen (wie Figma) */
.info-list__row:has(.info-list__phones) {
  align-items: center;
}

.info-list__name {
  color: var(--color-olive);
  font-weight: 300;
}

.info-list__number {
  letter-spacing: 0.02em; /* 0.34px */
}

.info-list__agb {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: baseline;
  column-gap: 12px;
}

.info-list a.info-list__download {
  color: var(--color-olive);
}

.info-list__langs {
  color: var(--color-muted);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.info-list__langs a {
  color: var(--color-olive);
}

.info-list__note {
  margin-top: 14px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.45;
}


/* ===== Sektion: Zustieg (Karte und Wege) ===== */
.approach {
  display: flex;
  align-items: stretch; /* beide Spalten gleich hoch, die rechte bestimmt die Höhe */
  gap: 120px;
  padding: var(--section-padding) var(--page-inline);
  background: var(--color-footer);
}

.approach__intro,
.approach__routes {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.approach__intro {
  gap: 32px;
}

.approach__routes {
  gap: 56px;
}

/* Karte: Platzhalterbild, darüber später die Leaflet-Karte.
   Füllt die linke Spalte bis nach unten aus (Bildunterschrift endet
   auf der Höhe der letzten Linie rechts). */
.route-map {
  position: relative;
  isolation: isolate; /* Leaflet (z-index bis 1000) bleibt in der Karte */
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.route-map__frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 290px; /* Figma Desktop 580 × 290 als Mindesthöhe */
  overflow: hidden;
  background: var(--color-footer);
}

.route-map__placeholder,
.route-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-map__placeholder {
  z-index: 1;
  object-fit: cover;
  transition: opacity var(--transition);
}

.route-map__placeholder.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.route-map__caption,
.route__app {
  color: var(--color-olive);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em; /* 0.48px */
}

/* Leaflet an die Seite angepasst (höhere Spezifität, da leaflet.css später lädt) */
.route-map .leaflet-container {
  background: var(--color-footer);
  font-family: var(--font-sans);
}

.route-map .leaflet-bar {
  border: 1px solid var(--color-line);
  border-radius: 0;
  box-shadow: none;
}

.route-map .leaflet-bar a {
  width: 28px;
  height: 28px;
  border-bottom-color: var(--color-line);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 400;
  line-height: 28px;
}

.route-map .leaflet-bar a:hover {
  background: var(--color-cream);
}

.route-map .leaflet-control-attribution {
  background: rgba(249, 247, 241, 0.8);
  color: var(--color-text);
  font-size: 10px;
}

.route-map .leaflet-control-attribution a {
  color: inherit;
}

/* Wegegruppen */
.route-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.route-group__title {
  color: var(--color-olive);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.01em; /* -0.28px */
}

.route-group__sub {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Wegliste: ganze Zeile wählt den Weg (siehe js/route-map.js) */
.route-list {
  position: relative;
  isolation: isolate; /* Band (::before) liegt hinter dem Text */
  margin: 0;
  padding: 0;
  list-style: none;
}

.route {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--color-line);
  cursor: pointer;
}

.route:last-child {
  border-bottom: 1px solid var(--color-line);
}

/* Eckiges Band, ragt seitlich 16px über die Liste hinaus */
.route::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -1px -16px;
  border-block: 1px solid transparent;
  background: var(--color-sand);
  opacity: 0;
  transition: opacity var(--transition);
}

.route__select {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}

.route__app {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  white-space: nowrap;
  text-decoration: none;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.route__app:hover {
  text-decoration: underline;
}

/* Hover nur mit Maus: Band in 45 % Deckkraft, ohne kräftige Linien */
@media (hover: hover) {
  .route:hover::before {
    opacity: 0.45;
  }
}

/* Aktiver Weg */
.route.is-active {
  border-top-color: transparent;
}

.route.is-active:last-child {
  border-bottom-color: transparent;
}

.route.is-active + .route {
  border-top-color: transparent;
}

.route.is-active::before {
  border-color: var(--color-line-strong);
  opacity: 1;
}

.route.is-active .route__select,
.route.is-active .route__app {
  color: var(--color-text);
  font-weight: 500;
}


/* ===== Abschluss-Band ===== */
.closing {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: 30px;
  height: 680px;
  padding: 80px var(--page-inline);
  background-color: #4a4d33;
  background-image:
    linear-gradient(rgba(20, 20, 15, 0.3), rgba(20, 20, 15, 0.3)),
    url('../assets/images/abschluss.jpg');
  background-image:
    linear-gradient(rgba(20, 20, 15, 0.3), rgba(20, 20, 15, 0.3)),
    image-set(url('../assets/images/abschluss.webp') type('image/webp'), url('../assets/images/abschluss.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center 39%; /* Ausschnitt wie im Figma */
  color: var(--color-hero-text);
}

.closing__title {
  font-size: 96px;
  line-height: 1.05;
  letter-spacing: -0.03em; /* -2.88px bei 96px */
}


/* ===== Footer ===== */
.site-footer {
  display: flex;
  flex-direction: column;
  gap: 80px;
  padding: 80px var(--page-inline) 40px;
  background: var(--color-footer);
  color: var(--color-text);
}

/* Logo + drei Spalten */
.site-footer__cols {
  display: flex;
  align-items: flex-start;
  gap: 80px;
}

.site-footer__logo {
  flex: 0 0 111px;
  width: 111px;
  height: 111px;
}

.site-footer__col {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.site-footer__label {
  color: var(--color-olive);
  font-weight: 500;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em; /* 0.48px */
}

.site-footer__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.25;
}

/* Namen vor den Telefonnummern: Olive und leicht, wie in der Infoliste */
.site-footer__name {
  display: inline-block;
  min-width: 3.4em; /* Nummern stehen bündig untereinander */
  color: var(--color-olive);
  font-weight: 300;
}

.site-footer__list .nowrap {
  white-space: nowrap;
}

/* Pfeil bleibt am letzten Wort */
.site-footer__list .icon-arrow {
  display: inline-block;
  margin-left: 1px;
  vertical-align: 0;
}

/* Meta-Zeile: Copyright und Design */
.site-footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  padding-top: 20px;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-weight: 400;
  font-size: 11px;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.04em; /* 0.44px */
}


/* ===== Responsive: Tablet (≤ 1024px) ===== */
@media (max-width: 1024px) {
  :root {
    --gutter: 40px;
    --section-padding: 80px;
    --size-h1: clamp(64px, 11vw, 120px);
    --size-h2: clamp(38px, 5.2vw, 56px);
  }

  .site-header__nav {
    gap: 24px;
  }

  .hero {
    height: 680px;
    padding-bottom: 120px;
    background-size: cover;
    background-position: 50% 45%;
  }

  .hero__note {
    left: auto;
    right: var(--gutter);
    top: 200px;
    width: min(36vw, 340px);
  }

  .contact {
    gap: 60px;
  }

  .contact__aside {
    flex-basis: 400px;
    width: 400px;
  }

  .approach {
    gap: 60px;
  }

  .route-map__frame {
    min-height: 350px; /* Figma Tablet 500 × 350 als Mindesthöhe */
  }

  .closing__title {
    font-size: clamp(44px, 9vw, 96px);
  }

  .site-footer__cols {
    gap: 60px;
  }
}


/* Das Hüttentelefon hat im Header erst ab 900px Platz (getestet: ab 860px),
   sonst schrumpft das SAC-Logo (steht weiterhin in Infoliste und Footer) */
@media (max-width: 899px) {
  .site-header__phones {
    display: none;
  }
}


/* ===== Responsive: Mobile (≤ 768px) ===== */
@media (max-width: 768px) {
  :root {
    --gutter: 24px;
    --section-padding: 64px;
    --header-height: 68px;
    /* «Sewenhütte SAC» bleibt auf einer Zeile */
    --size-h1: clamp(44px, 14.4vw, 64px);
  }

  /* Header: nur Logos + Reservieren */
  .site-header {
    padding-block: 12px;
  }

  .site-header__logos {
    gap: 20px;
  }

  .site-header__logos img[src$=".svg"] {
    width: 44px;
    height: 44px;
  }

  .site-header__logos a img {
    width: 110px;
  }

  .site-header__link {
    display: none;
  }

  .btn--header {
    padding: 10px 18px;
    font-size: 13px;
  }

  /* Hero: Notiz fliesst oben rechts, Titel unten */
  .hero {
    height: auto;
    min-height: 85vh;
    min-height: 85svh;
    padding-top: 32px;
    padding-bottom: 48px;
    background-size: cover;
    background-image:
      linear-gradient(90deg, rgba(92, 96, 53, 0.3965) 0%, rgba(92, 96, 53, 0) 84%),
      linear-gradient(180deg, rgba(26, 28, 15, 0) 45%, rgba(26, 28, 15, 0.42) 100%),
      linear-gradient(180deg, rgba(20, 20, 15, 0.2) 0%, rgba(20, 20, 15, 0) 35%),
      url('../assets/images/hero-mobile.jpg');
    background-image:
      linear-gradient(90deg, rgba(92, 96, 53, 0.3965) 0%, rgba(92, 96, 53, 0) 84%),
      linear-gradient(180deg, rgba(26, 28, 15, 0) 45%, rgba(26, 28, 15, 0.42) 100%),
      linear-gradient(180deg, rgba(20, 20, 15, 0.2) 0%, rgba(20, 20, 15, 0) 35%),
      image-set(url('../assets/images/hero-mobile.webp') type('image/webp'), url('../assets/images/hero-mobile.jpg') type('image/jpeg'));
    background-position: center;
  }

  .hero__note {
    position: relative; /* wie static im Fluss, aber mit z-index beim Verschieben */
    inset: auto;        /* Werte aus der Tablet-Regel hier nicht anwenden */
    align-self: flex-end;
    width: 72%;
    max-width: 280px;
    margin-bottom: auto;
    order: -1;
  }

  .hero__content {
    padding-top: 32px;
  }

  .hero__subtitle {
    font-size: 20px;
  }

  /* Sektionen einspaltig */
  .intro {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

  .contact {
    flex-direction: column;
    align-items: stretch;
    gap: 56px;
  }

  .contact__aside {
    flex-basis: auto;
    width: 100%;
  }

  .info-list__row {
    padding-block: 16px;
  }

  .info-list dd {
    font-size: 16px;
  }

  .info-list .info-list__phones {
    grid-template-columns: 56px auto;
  }

  .text {
    font-size: 17px;
  }

  /* Zustieg einspaltig, Wegzeilen untereinander */
  .approach {
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
  }

  .approach__intro {
    gap: 24px;
  }

  /* Mobil: Karte quadratisch (Figma 340 × 340). js/route-map.js
     setzt sie in ein Klapp-Element unter der offenen Wanderung */
  .route-map,
  .route-map__frame {
    flex: none;
  }

  .route-map__frame {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  /* Klapp-Element: geht über die Zeilenhöhe (grid-template-rows) weich auf und zu */
  .route__panel {
    display: grid;
    grid-template-rows: 1fr;
    width: 100%;
    margin-top: -8px; /* hebt den Zeilenabstand auf, solange es zu ist */
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease;
  }

  /* Zu: unsichtbar und für die Tastatur nicht erreichbar (erst nach der Animation) */
  .route__panel.is-closed {
    grid-template-rows: 0fr;
    opacity: 0;
    visibility: hidden;
    transition: grid-template-rows 0.3s ease, opacity 0.3s ease, visibility 0s 0.3s;
  }

  .route__panel-inner {
    min-height: 0;
    overflow: hidden;
  }

  .route .route-map {
    margin-top: 16px; /* 16px Abstand zu «swisstopo app», wie bisher */
    cursor: auto;
  }

  .route-group__title {
    font-size: 24px;
  }

  .route {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .route::before {
    inset: -1px -12px;
  }

  .route__select {
    flex: none;
    width: 100%;
  }

  .closing {
    height: 520px;
    gap: 24px;
    padding-block: 56px;
  }

  .closing__title {
    font-size: 44px;
  }

  /* Footer: ohne Logo, Spalten untereinander */
  .site-footer {
    gap: 48px;
    padding-top: 56px;
    padding-bottom: 32px;
  }

  .site-footer__cols {
    flex-direction: column;
    gap: 36px;
  }

  .site-footer__logo {
    display: none;
  }

  .site-footer__col {
    flex: none;
  }

  .site-footer__meta {
    flex-direction: column;
  }
}

/* Sehr schmale Bildschirme */
@media (max-width: 400px) {
  .site-header__logos {
    gap: 14px;
  }

  .site-header__logos a img {
    width: 92px;
  }

  .info-list__row {
    flex-direction: column;
    gap: 6px;
  }

  .info-list dd {
    text-align: left;
  }

  .info-list__agb {
    justify-content: flex-start;
  }

  /* Telefon wie die anderen Zeilen: Label oben, Namen und Nummern linksbündig darunter */
  .info-list__row:has(.info-list__phones) {
    align-items: flex-start;
  }

  /* Sobald «Telefon» oben steht: Name und Nummer untereinander, linksbündig
     (Mona / Nummer / Dani / Nummer) */
  .info-list .info-list__phones {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .info-list__phone {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
