/* ============================================================
   WALCHSEER HOF — Mobil-Feinschliff
   Wird als LETZTE CSS-Datei geladen und überschreibt gezielt.
   Getestet mit iPhone-Viewport 375 / 390 / 430 px.
   ============================================================ */

/* Abstand Überschrift → Text überall dort, wo keiner gesetzt ist */
.section-heading:not([style*="margin-bottom"]) { margin-bottom: var(--space-4); }

/* ── Tablet & Handy (≤ 940 px): Header einzeilig ──────────── */
@media (max-width: 940px) {
  /* Titelbild füllt den Bildschirm exakt bis zur Buchungsleiste */
  .section-hero { min-height: calc(100svh - var(--bb-h)); }

  /* Die Desktop-Nav-Zeile ist hier ausgeblendet — also auch keinen Platz reservieren */
  .header-inner { display: none; }
  .header-brand { border-bottom: 0; }
  :root { --header-total: calc(2 * clamp(7px, 1vw, 12px) + 45px + var(--safe-top)); }   /* = gemessene Höhe, kein Sprung */
}

/* ── Handy (≤ 600 px) ─────────────────────────────────────── */
@media (max-width: 600px) {
  :root {
    --section-y: 3.5rem;
    --section-y-tight: 2.5rem;
  }

  /* Hero: füllt den ganzen Bildschirm bis zur Buchungsleiste — der nächste
     Bereich beginnt erst beim Scrollen. Titel groß. */
  .section-hero__content { padding-bottom: var(--space-8); }
  .section-hero h1 {
    font-size: clamp(2.75rem, 13.5vw, 4rem);
    line-height: 1;
    margin-bottom: var(--space-4);
  }
  .section-hero__sub { font-size: clamp(1.2rem, 5.2vw, 1.45rem); margin-bottom: 0; }

  /* Unterseiten-Intro: Höhe wächst mit dem Text, nichts rutscht unter den Header */
  .page-intro {
    height: auto;
    min-height: clamp(300px, 82vw, 380px);
    display: flex;
  }
  .page-intro__content {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 4.5rem var(--gutter) 1.75rem;
  }
  .page-intro__heading { font-size: clamp(2rem, 9vw, 2.5rem); }
  .page-intro__sub { font-size: var(--text-body-md); line-height: 1.5; }

  /* Wellness: kompakte Zeilen — Icon links, Text rechts */
  .wellness-grid { grid-template-columns: 1fr; gap: var(--space-3); }
  .wellness-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    column-gap: var(--space-4);
    align-items: start;
    padding: var(--space-4);
  }
  .wellness-item__icon {
    grid-row: span 2;
    width: 52px;
    height: 52px;
    padding: 11px;
    margin-bottom: 0;
  }
  .wellness-item__title { font-size: 1.25rem; margin-bottom: var(--space-1); }
  .wellness-item__desc { font-size: var(--text-meta); line-height: 1.55; }

  /* Aktivitäten: dichter */
  .activity-col__season { margin-bottom: var(--space-3); padding-bottom: var(--space-3); }
  .activity-list li { padding-block: 10px; }

  /* „Bereits inkludiert": etwas kleiner */
  .included-list li { font-size: var(--text-body-md); padding-block: var(--space-3); gap: 12px; }
  .check-ico { width: 20px; height: 20px; }

  /* Öffnungszeiten: schmalere Label-Spalte */
  .opening-hours__item { grid-template-columns: 5.25rem 1fr; }

  /* Karten-Vorschau: höher, Kunst oben, Text unten — Pin und See bleiben sichtbar */
  .map-embed { aspect-ratio: 4 / 5; }
  .map-embed__art { height: 62%; }
  .map-pin { top: 20%; left: calc(50% - 20px); }
  .map-embed__consent { padding: var(--space-4); }
  .map-embed__text { width: 100%; }
  .map-actions .btn--secondary { flex: 1; justify-content: center; }

  /* Buttons in Karten volle Breite, wenn sie umbrechen */
  .card__actions .btn { padding-left: 0; }

  /* Footer: Menüs nebeneinander statt endlos untereinander */
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-7) var(--space-5);
  }
  .footer-grid > :first-child { grid-column: 1 / -1; }   /* Seitenlinks-Spalte entfernt (23.11.2026): Service + Folgen nebeneinander */

  /* Buchungsleiste: Titel klein links · kompakter Button · Telefon */
  .booking-bar__inner { gap: var(--space-3); padding-top: 10px; }
  .booking-bar__title {
    display: block;
    flex: 1;
    min-width: 0;
    font-size: 1rem;
    line-height: 1.15;
    white-space: normal;      /* längere Sprachen (z. B. Italienisch) brechen in 2. Zeile um statt unter den Button zu laufen */
    text-wrap: balance;
    overflow-wrap: anywhere;
  }
  .booking-bar__kicker { font-size: 9px; letter-spacing: .18em; margin-bottom: 3px; white-space: nowrap; }
  .booking-bar__mobile-cta {
    flex: 0 0 auto;
    height: 40px;
    padding: 0 15px;
    font-size: 13px;
  }
  .booking-bar__phone { width: 42px; height: 42px; flex: 0 0 auto; }
}

/* ── Kleine iPhones (≤ 390 px) ───────────────────────────── */
@media (max-width: 360px) {
  /* Sehr schmale Geräte (iPhone SE 1. Gen.): Titel darf umbrechen, Leistenhöhe misst js/main.js */
  .booking-bar__title { white-space: normal; font-size: .9375rem; }
}

@media (max-width: 390px) {
  .wellness-item { grid-template-columns: 44px 1fr; column-gap: var(--space-3); }
  .wellness-item__icon { width: 44px; height: 44px; padding: 9px; }
  .footer-grid { gap: var(--space-6) var(--space-4); }
}

/* ── Anfrage-Panel: Kopfzeile mit Schließen (alle Größen) ──── */
.booking-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}
.booking-panel .booking-panel__title {
  margin: 0;
  max-width: none;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: var(--text-display-3);
  color: var(--text-display);
}
.booking-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-body);
  transition: border-color var(--transition), background var(--transition);
}
.booking-panel__close:hover { border-color: var(--wh-ink); background: var(--wh-sand-50); }
.booking-panel__close svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 940px) {
  /* Panel scrollt selbst, falls es höher ist als der Platz zwischen Header und Buchungsleiste */
  .booking-panel.is-open {
    max-height: calc(100svh - var(--header-total) - var(--bb-h));
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
@media (max-width: 600px) {
  .booking-panel__fields { gap: var(--space-3); }
  .booking-panel__ctas { gap: var(--space-5); margin-top: var(--space-5); padding-top: var(--space-5); }
  .booking-panel .btn { width: 100%; justify-content: center; }
}

/* Karten „Was uns ausmacht": Bilder flacher, damit die Seite kürzer wird */
@media (max-width: 600px) {
  .card .media--ratio-4-3 { aspect-ratio: 16 / 10; }
}

/* Logo bleibt auch auf Handy & iPad LINKSBÜNDIG (mittig wurde getestet und verworfen, 05.10.2026) */
@media (max-width: 940px) {
  .header-brand__logos { min-height: 44px; }
}
/* iPad hochkant (601–940 px): Logo etwas größer */
@media (min-width: 601px) and (max-width: 940px) {
  :root { --header-total: calc(2 * clamp(7px, 1vw, 12px) + 59px + var(--safe-top)); }
  .header-brand__logos { min-height: 58px; }
  .header-logo img { height: 58px; }
  .header-logo__link--sw img { height: 43px; }
}

/* Anfrage-Panel: Angebots-Hinweis (Mindestnächte) */
.booking-panel .booking-panel__offer {
  margin: calc(-1 * var(--space-2)) 0 var(--space-4);
  max-width: none;
  font-size: var(--text-body-sm);
  color: var(--text-muted);
}
.booking-panel__offer strong { color: var(--text-gold); font-weight: var(--weight-bold); }

/* Buchungsanfrage-Panel: nur noch ein Button (Verfügbarkeit prüfen entfernt, 05.10.2026) */
.booking-panel__ctas--single {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4) var(--space-6);
}
.booking-panel .booking-panel__ctas--single p { margin: 0; max-width: 52ch; }

/* ── Unterseiten-Titelbild füllt den Bildschirm wie die Startseite (Kundenwunsch 05.10.2026):
      genau der sichtbare Bereich zwischen Header und Buchungsleiste – nächster Abschnitt erst beim Scrollen ── */
.page-intro { height: calc(100svh - var(--header-total) - var(--bb-h)); min-height: 360px; }
@media (max-width: 600px) {
  .page-intro { height: auto; min-height: calc(100svh - var(--header-total) - var(--bb-h)); }
}

/* ── Header über volle Breite: Logos ganz links, kleiner Abstand zum Rand (Marcel 07.10.2026) ── */
.header-brand__inner.container--wide,
.header-inner.container--wide { max-width: none; padding-inline: clamp(14px, 1.6vw, 28px); }
@media (min-width: 941px) {
  /* Menü exakt mittig (Marcel 07.10.2026). Nur wenn es sonst in die Logos laufen würde (kleine Laptops),
     schiebt js/main.js es so wenig wie nötig nach rechts (--nav-shift). */
  .header-nav { transform: translateX(var(--nav-shift, 0px)); }
}
/* Telefon + Sprache oben rechts größer (Buchen-Button entfernt, Marcel 07.10.2026) */
@media (min-width: 941px) {
  .header-brand__actions { gap: clamp(16px, 1.8vw, 28px); }
  .header-phone { font-size: clamp(14px, 1.05vw, 16px); font-weight: 400; color: var(--wh-off-white); gap: 8px; }
  .header-phone svg { width: 17px; height: 17px; }
  .header-lang .lang-menu__btn { font-size: clamp(14px, 1.05vw, 16px); font-weight: 400; color: var(--wh-off-white); }
  .lang-menu__btn svg { width: 14px; height: 14px; }
}

/* ── Titelbild der Unterseiten reicht HINTER den durchsichtigen Header (wie Startseite, 07.10.2026) ──
   Foto beginnt ganz oben (kein margin-top mehr), Titeltext bekommt oben Platz für den Header. */
.page-intro { margin-top: 0; height: 100svh; min-height: 480px; }
.page-intro__content { padding-top: calc(var(--header-total) + 1.5rem); padding-bottom: calc(var(--bb-h) + clamp(1.5rem, 5vw, 3.5rem)); }
@media (max-width: 600px) {
  .page-intro { height: auto; min-height: 100svh; }
  .page-intro__content { padding-top: calc(var(--header-total) + 2.5rem); padding-bottom: calc(var(--bb-h) + 1.75rem); }
}
/* Startseiten-Titelbild ebenfalls bis HINTER die durchsichtige Buchungsleiste (07.10.2026) */
.section-hero { min-height: 100svh; }
.section-hero__content { padding-bottom: calc(var(--bb-h) + clamp(1rem, 1.5vw, 1.5rem)); }
.section-hero__scroll { bottom: calc(var(--bb-h) + clamp(1.5rem, 3vw, 2.5rem)); }
@media (max-width: 600px) { .section-hero__content { padding-bottom: calc(var(--bb-h) + var(--space-8)); } }

/* ── Menü am PC größer + fett, damit man es gut sieht (Marcel 07.10.2026; vorher 10,5 px Medium) ── */
@media (min-width: 941px) {
  .header-nav a {
    font-size: clamp(12px, .95vw, 14.5px);
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--wh-off-white);
    padding: 0 clamp(.7rem, 1.25vw, 1.5rem);
  }
  .header-nav a:hover::after { left: clamp(.7rem, 1.25vw, 1.5rem); right: clamp(.7rem, 1.25vw, 1.5rem); }
}
/* Kleine Laptops (941–1279 px): Logos + Menüabstände etwas kompakter, damit das Menü mittig bleiben kann */
@media (min-width: 941px) and (max-width: 1279px) {
  .header-logo { gap: 12px; }
  .header-logo img { height: calc(var(--header-total) - var(--safe-top) - 38px); }
  .header-logo__link--sw img { height: calc(var(--header-total) - var(--safe-top) - 52px); }
  .header-nav a { padding: 0 clamp(.5rem, .9vw, 1rem); letter-spacing: .1em; }
  .header-nav a:hover::after { left: clamp(.5rem, .9vw, 1rem); right: clamp(.5rem, .9vw, 1rem); }
}
/* Menü am PC in normaler Groß-/Kleinschreibung statt VERSALIEN (Marcel 07.10.2026) */
@media (min-width: 941px) {
  .header-nav a { text-transform: none; letter-spacing: .015em; font-size: clamp(14px, 1.1vw, 17px); }
}
/* Telefon + Sprache am PC unten rechts auf Höhe der Menütexte (Marcel 07.10.2026) */
@media (min-width: 941px) {
  .site-header .header-brand__actions {
    position: absolute; right: clamp(14px, 1.6vw, 28px); bottom: 0;
    height: 34px;                     /* = Höhe der Menü-Zeile (.header-inner) */
    display: flex; align-items: center;
  }
}
/* Menü am PC in der Titelschrift Cormorant Garamond – wie „Dein Urlaub am Walchsee“ / Footer (Marcel 07.10.2026) */
@media (min-width: 941px) {
  .header-nav a {
    font-family: var(--font-display);
    font-variation-settings: var(--font-display-settings);
    font-weight: 600;
    font-size: clamp(17px, 1.35vw, 21px);
    letter-spacing: .01em;
  }
}
/* Menü am PC noch etwas größer (Marcel 07.10.2026; vorher 17–21 px) */
@media (min-width: 941px) { .header-nav a { font-size: clamp(18px, 1.5vw, 24px); } }
/* Sprachauswahl „DE ▾“ im Header in Gold (Marcel 07.10.2026) */
.header-lang .lang-menu__btn { color: var(--wh-bronze); }
.header-lang .lang-menu__btn:hover, .header-lang .lang-menu.is-open .lang-menu__btn { color: var(--wh-bronze-300); }
/* Buchungsleiste am PC: Text „Direkt beim Haus / Dein Urlaub am Walchsee“ in derselben Flucht wie der
   Titel im Titelbild (gleicher Randabstand wie .section-hero__content / .page-intro__content, Marcel 07.10.2026) */
@media (min-width: 941px) {
  .booking-bar__inner { max-width: none; margin-inline: 0; padding-inline: clamp(2rem, 3.4vw, 4.5rem); }
}
/* Buchungsleiste am PC: Titel links, Anreise · Abreise · Personen · Buchen · Telefon RECHTS
   (Marcel 07.10.2026 nach Tests „mittig“ und „direkt nach dem Titel“ → wieder rechts).
   Rechter Rand = linker Rand des Titels (symmetrisch). */
@media (min-width: 1181px) {
  .booking-bar__title { flex: none; margin-right: auto; }
}

/* ── Titelbild wächst mit, wenn der Text nicht hineinpasst (26.11.2026, Geräte-Prüfung) ──
   Vorher: Text absolut im 100svh-Bild → auf flachen Bildschirmen (Handy quer, Laptop 720 px, Klapphandy)
   rutschte er unter die Buchungsleiste. Jetzt liegt der Text im Fluss: mindestens Bildschirmhöhe, sonst höher.
   Sieht überall dort, wo Platz ist, genau gleich aus. */
.page-intro { height: auto; min-height: max(100svh, 420px); }
.page-intro__content { position: relative; inset: auto; min-height: max(100svh, 420px); }
/* Handy quer / sehr flache Bildschirme: Titel kompakter, damit Kicker, Titel und Subline zwischen Header und Leiste passen */
@media (max-height: 520px) and (orientation: landscape) {
  .page-intro, .page-intro__content { min-height: 100svh; }
  .page-intro__content { padding-top: calc(var(--header-total) + .75rem); padding-bottom: calc(var(--bb-h) + .9rem); }
  .page-intro__heading, .page-intro--home .page-intro__heading { font-size: clamp(1.6rem, 5.2vh, 2.1rem); margin-bottom: .35rem; }
  .page-intro__sub, .page-intro--home .page-intro__sub { font-size: .9rem; margin-top: .35rem; }
  .page-intro--home .page-intro__sub::before { display: none; }
  .page-intro .section-eyebrow { margin-bottom: .4rem; font-size: 11px; }
  .page-intro--home .page-intro__content { padding-top: calc(var(--header-total) + .75rem); justify-content: flex-end; }
  .season-switch { margin-top: .6rem; }
  .season-switch__btn { height: 36px; }
}


/* Handy-Menü in der dunklen Flächenfarbe wie der Speisekarten-Bereich des Gasthauses (26.11.2026, Marcel):
   Winter Winternacht-Blau, Sommer dunkles Tannengrün (--surface-block), weiße Schrift */
.mobile-menu { background: var(--surface-block); color: var(--wh-off-white); }
.mobile-menu nav a { color: var(--wh-off-white); border-bottom-color: rgba(243,237,226,.16); }
.mobile-menu nav a:hover, .mobile-menu nav a:focus-visible { color: var(--wh-bronze-300); }
.mobile-menu__footer a[href^="tel:"] { color: rgba(243,237,226,.82) !important; }
.mobile-menu .lang-row a { border-color: rgba(243,237,226,.28); color: var(--wh-off-white); }
.mobile-menu .lang-row a.is-active { background: var(--wh-bronze); border-color: var(--wh-bronze); color: var(--wh-black); }
.mobile-menu { padding-bottom: calc(var(--bb-h, 68px) + var(--space-8)); }   /* letzte Zeile (Telefon) nicht hinter der Buchungsleiste */
