/* Das Wetterstein – gemeinsames Stylesheet
   Gestaltung „Stube 1860“: Besley für Überschriften, Archivo für Text,
   Weiß, Tanne und das Rot aus dem Logo. Mobile first. */

/* ---------- Schriften (lokal, SIL OFL) ---------- */

@font-face {
  font-family: "Besley";
  src: url("../fonts/besley-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@view-transition { navigation: auto; }

/* ---------- Farben und Maße ---------- */

:root {
  --weiss: #fff;
  --nebel: #eef1ec;
  --tanne: #1f3d35;
  --tanne-tief: #10221d;
  --tanne-hell: #c9d6cf;
  --holz: #ddbb91;
  --russ: #2a2b27;
  --nebentext: #5a5e57;
  --rot: #a31a1a;
  --rot-dunkel: #861414;
  --grat: #cbcbcb;
  --titel: "Besley", Georgia, "Times New Roman", serif;
  --text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rand: clamp(1.25rem, 4vw, 2.5rem);
  --breite: 72rem;
  --radius: 6px;
}

/* ---------- Grundlagen ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}
html:has(.leiste) { scroll-padding-bottom: 5.5rem; }

body {
  margin: 0;
  background: var(--weiss);
  color: var(--russ);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
}

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

a { color: var(--rot); text-underline-offset: 0.18em; }
a:hover { color: var(--rot-dunkel); }

:focus-visible { outline: 3px solid var(--rot); outline-offset: 3px; }

h1, h2, h3 {
  margin: 0;
  color: var(--tanne);
  font-family: var(--titel);
  font-weight: 650;
  line-height: 1.1;
  text-wrap: balance;
}
/* Lange zusammengesetzte Wörter (de, nl) dürfen getrennt werden, statt über den Rand zu ragen. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.125rem, 8.5vw, 4.75rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.875rem, 6vw, 3rem); }
h1.titel--klein { font-size: clamp(1.875rem, 6vw, 3rem); }   /* H1 in Größe einer H2, z. B. „Kontakt“ neben „Adresse“ */
h3 { font-size: 1.625rem; }
p { margin: 0; text-wrap: pretty; }

.symbol {
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sprung {
  position: absolute;
  left: 0.5rem;
  top: -4rem;
  z-index: 30;
  padding: 0.5rem 1rem;
  background: var(--weiss);
  color: var(--russ);
}
.sprung:focus { top: 0.5rem; }

/* ---------- Kopfzeile und Menü ---------- */

.kopf {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 3.5rem;
  padding: 0.375rem var(--rand);
  background: var(--weiss);
  border-bottom: 1px solid var(--nebel);
}
/* Am Handy schrumpft nur das Logo, wenn der Platz knapp wird; Knöpfe und Sprachen behalten ihre Größe. */
.kopf__logo { flex: 0 1 10.5rem; min-width: 5rem; margin-right: auto; }
.kopf__logo img { display: block; width: 100%; height: auto; }
.kopf > :not(.kopf__logo) { flex: none; }
.kopf .knopf--klein { padding-inline: 0.75rem; }

.menue-knopf,
.menue__zu {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1.5px solid var(--tanne);
  border-radius: var(--radius);
  background: transparent;
  color: var(--tanne);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.menue {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 1rem var(--rand) 2rem;
  border: 0;
  background: var(--weiss);
  color: var(--russ);
}
.menue:popover-open { display: flex; flex-direction: column; gap: 1.5rem; }
.menue__zu { align-self: flex-end; }
.menue ul { display: grid; margin: 0; padding: 0; list-style: none; }
.menue a {
  display: block;
  padding: 0.5rem 0;
  color: var(--tanne);
  font-family: var(--titel);
  font-size: 2rem;
  font-weight: 650;
  line-height: 1.15;
  text-decoration: none;
}
.menue a:hover { color: var(--rot); }
.menue-knopf { justify-content: center; width: 2.75rem; padding: 0; border-color: transparent; }
.menue-knopf .symbol { width: 1.75rem; height: 1.75rem; }

/* Flaggen der Sprachen (3 : 2, mit feinem Rand für Weiß auf Weiß) */
.flagge { display: block; flex: none; width: 1.5rem; height: 1rem; border-radius: 2px; box-shadow: 0 0 0 1px rgb(0 0 0 / 0.15); }

/* Sprachen im Menü (Handy, Tablet): untereinander mit Flagge, die aktuelle hervorgehoben.
   Sie sollen nicht wie Menülinks aussehen. Ab Desktop übernimmt die Sprachauswahl in der Kopfzeile. */
.menue .sprachen { gap: 0.25rem; font-weight: 600; color: var(--nebentext); }
.menue .sprachen li > * { display: flex; align-items: center; gap: 0.75rem; min-height: 2.75rem; }
.menue .sprachen a { padding: 0; color: inherit; font: inherit; text-decoration: none; }
.menue .sprachen a:hover { color: var(--rot); text-decoration: underline; text-underline-offset: 0.25em; }
.menue .sprachen [aria-current] { color: var(--tanne); text-decoration: underline; text-underline-offset: 0.25em; }

/* Sprachauswahl in der Kopfzeile: aktuelle Flagge, darunter aufklappbar die anderen Sprachen.
   <details> funktioniert ohne JavaScript; js/seite.js schließt die Liste bei Klick daneben und mit Escape. */
.sprachwahl { position: relative; }
.sprachwahl > summary {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 2.75rem;
  padding: 0 0.375rem;
  border-radius: var(--radius);
  color: var(--tanne);
  list-style: none;
  cursor: pointer;
}
.sprachwahl > summary::-webkit-details-marker { display: none; }
.sprachwahl > summary:hover { background: var(--nebel); }
.sprachwahl > summary .symbol { width: 1rem; height: 1rem; transition: transform 0.15s; }
.sprachwahl[open] > summary .symbol { transform: rotate(180deg); }
.sprachwahl__liste {
  position: absolute;
  top: calc(100% + 0.375rem);
  right: 0;
  display: grid;
  min-width: 11rem;
  margin: 0;
  padding: 0.375rem;
  list-style: none;
  background: var(--weiss);
  border: 1px solid var(--nebel);
  border-radius: var(--radius);
  box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.12);
}
.sprachwahl__liste a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.75rem;
  padding: 0 0.625rem;
  border-radius: calc(var(--radius) - 2px);
  color: var(--russ);
  font-weight: 600;
  text-decoration: none;
}
.sprachwahl__liste a:hover { background: var(--nebel); color: var(--rot); }

/* Nur für Screenreader */
.unsichtbar {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.625rem 1.25rem;
  border: 1.5px solid var(--rot);
  border-radius: var(--radius);
  background: var(--rot);
  color: #fff;
  font: inherit;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }
.knopf--klein { min-height: 2.75rem; padding: 0.375rem 1rem; }
.knopf--zweit { background: transparent; border-color: var(--tanne); color: var(--tanne); }
.knopf--zweit:hover { background: var(--tanne); border-color: var(--tanne); color: #fff; }
.knoepfe { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.knoepfe__hinweis { margin-top: -0.75rem; max-width: 34rem; color: var(--nebentext); font-size: 0.875rem; }

/* ---------- Titelbild der Startseite ---------- */

.hero__bild {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: 50% 30%;
}
.hero__text {
  display: grid;
  gap: 1.25rem;
  max-width: calc(var(--breite) + 2 * var(--rand));
  margin: 0 auto;
  padding: 1.75rem var(--rand) 3rem;
}
.hero__mehr { display: grid; gap: 1.5rem; align-content: start; }
.hero__mehr > p:first-child { font-size: 1.1875rem; max-width: 32rem; }

/* ---------- Abschnitte ---------- */

.abschnitt { padding: 3rem var(--rand); }
.abschnitt--nebel { background: var(--nebel); }
.abschnitt--tanne { background: var(--tanne); color: #fff; }
.abschnitt--tanne h2,
.abschnitt--tanne h3 { color: #fff; }
.abschnitt--tanne a { color: #fff; }
.innen { max-width: var(--breite); margin: 0 auto; }
.einleitung { margin-top: 0.75rem; max-width: 36rem; color: var(--nebentext); }
.abschnitt--tanne .einleitung { color: var(--tanne-hell); }

/* ---------- Wohnungskarten (am Handy seitlich wischbar) ---------- */

.karten {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82%, 22rem);
  gap: 1.25rem;
  margin: 1.75rem calc(var(--rand) * -1) 0;
  padding: 0 var(--rand) 0.75rem;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--rand);
}
.karte { position: relative; display: flex; flex-direction: column; scroll-snap-align: start; }
.karte img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.karte__text { display: grid; gap: 0.625rem; padding: 0.75rem 0.125rem 0.5rem; }
.karte__link { color: inherit; text-decoration: none; }
.karte__link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.karte__link:hover { color: var(--rot); }
.karte__link:focus-visible { outline: none; }
.karte__link:focus-visible::after { outline: 3px solid var(--rot); outline-offset: 4px; }
.karte__titel { font-size: 1.625rem; }
.karte__berg { color: var(--nebentext); font-size: 0.9375rem; line-height: 1.45; }
.karte__hinweis { color: var(--nebentext); font-size: 0.875rem; font-style: italic; }

.berg {
  width: 100%;
  max-width: 22rem;
  height: auto;
  margin-bottom: -0.25rem;
  fill: none;
  stroke: var(--grat);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fakten { display: flex; flex-wrap: wrap; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.fakten li {
  padding: 0.125rem 0.625rem;
  border-radius: 4px;
  background: var(--nebel);
  color: var(--tanne);
  font-size: 0.9375rem;
  font-weight: 550;
}
.abschnitt--nebel .fakten li { background: var(--weiss); }

.preis { color: var(--nebentext); font-size: 0.9375rem; line-height: 1.3; }
.preis strong {
  display: block;
  color: var(--tanne);
  font-family: var(--titel);
  font-size: 1.625rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

/* ---------- Karte auf „Lage“: Bild aus tools/karte.py, Beschriftung als Liste ---------- */

.karte { margin: 1.5rem 0 0; container-type: inline-size; }
.karte__flaeche { position: relative; overflow: hidden; border-radius: var(--radius); }
.karte__flaeche img { width: 100%; height: auto; }
.karte__orte { margin: 0; padding: 0; list-style: none; }
.karte__ort {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transform: translate(-0.4375rem, -50%);
  color: var(--tanne);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.karte__ort::before {
  content: "";
  flex: none;
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid var(--weiss);
  border-radius: 50%;
  background: var(--tanne);
}
.karte__ort > span { padding: 0.0625rem 0.375rem; border-radius: 3px; background: rgb(255 255 255 / 0.9); }
.karte__ort--links { flex-direction: row-reverse; transform: translate(calc(-100% + 0.4375rem), -50%); }
.karte__ort--haus { color: var(--rot); font-family: var(--titel); font-size: 0.9375rem; font-weight: 700; transform: translate(-0.625rem, -50%); }
.karte__ort--haus::before { width: 1.25rem; height: 1.25rem; border-width: 3px; background: var(--rot); }
.karte__ort--rand { top: 0.5rem; transform: none; }
.karte__ort--rand::before { content: none; }
.karte figcaption { margin-top: 0.5rem; color: var(--nebentext); font-size: 0.8125rem; }
/* Schmale Karte (Handy): kleinere Schrift, Name des Hauses zweizeilig */
@container (max-width: 26rem) {
  .karte__ort { font-size: 0.75rem; }
  .karte__ort--haus { font-size: 0.875rem; }
  .karte__ort--haus > span { width: min-content; white-space: normal; }
}

/* ---------- Kurze Seiten (404): Inhalt mittig, Fußzeile unten ---------- */

.kurz { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.kurz main { flex: 1; display: grid; align-content: center; }

/* ---------- Bewertung ---------- */

.note { margin: 1rem 0 0.25rem; color: var(--nebentext); font-size: 1.125rem; }
.note strong {
  margin-right: 0.25rem;
  color: var(--tanne);
  font-family: var(--titel);
  font-size: clamp(2.75rem, 10vw, 3.5rem);
  font-weight: 650;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ---------- Gästestimmen (aus dem Gästebuch) ---------- */

.stimmen { display: grid; gap: 1.5rem; margin: 2rem 0 0; padding: 0; list-style: none; }
.stimme { margin: 0; padding-left: 1rem; border-left: 3px solid var(--holz); }
.stimme blockquote { margin: 0; }
.stimme blockquote p { margin: 0; color: var(--russ); font-family: var(--titel); font-size: 1.125rem; line-height: 1.5; }
.stimme figcaption { margin-top: 0.625rem; color: var(--nebentext); font-size: 0.875rem; }
.gaeste { display: grid; gap: 1.5rem; align-items: center; }
.gaeste__zeichnung { width: min(100%, 15rem); margin: 0; }
.gaeste__zeichnung img { width: 100%; height: auto; mix-blend-mode: multiply; }
.gaeste__zeichnung figcaption { margin-top: 0.25rem; color: var(--nebentext); font-size: 0.8125rem; }
@media (min-width: 48rem) {
  .stimmen { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .gaeste { grid-template-columns: 1fr auto; }
}

/* ---------- Im Haus inklusive ---------- */

.haus { display: grid; gap: 2rem; }
.symbole {
  display: grid;
  gap: 0.875rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.symbole li { display: flex; align-items: center; gap: 0.75rem; }
.symbole .symbol { width: 1.75rem; height: 1.75rem; color: var(--holz); }
.haus__bild { width: 100%; border-radius: var(--radius); }

/* ---------- Sommer und Winter ---------- */

.jahreszeiten { display: grid; gap: 2rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.jahreszeit { display: grid; gap: 0.625rem; }
.jahreszeit img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); margin-bottom: 0.375rem; }

/* ---------- Platzhalter für noch fehlende Inhalte ---------- */

.platzhalter {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 2px dashed var(--grat);
  border-radius: var(--radius);
  color: var(--nebentext);
}

/* ---------- Lage: Liste mit Punktlinien ---------- */

.lage { display: grid; gap: 2rem; }
.wege { display: grid; gap: 0.625rem; max-width: 28rem; margin: 0; }
.wege div { display: flex; align-items: baseline; gap: 0.5rem; font-size: 1.1875rem; }
.wege dt { display: flex; flex: 1; align-items: baseline; gap: 0.5rem; }
.wege dt::after { content: ""; flex: 1; border-bottom: 2px dotted var(--grat); }
.wege dd {
  margin: 0;
  color: var(--tanne);
  font-family: var(--titel);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.adresse { display: grid; gap: 1rem; justify-items: start; margin-top: 1.5rem; font-style: normal; }
.adresse > span:first-child { font-size: 1.1875rem; line-height: 1.6; }

/* ---------- Gastgeber ---------- */

.gastgeber { display: grid; gap: 1.5rem; }
.gastgeber img { width: 100%; max-width: 24rem; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--radius); }
.gastgeber__text { display: grid; gap: 1rem; align-content: center; max-width: 36rem; }

/* ---------- Wohnungsseite: Galerie ---------- */

.galerie { position: relative; }
.galerie__liste {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.galerie__liste::-webkit-scrollbar { display: none; }
.galerie__liste li { scroll-snap-align: start; }
.galerie__bild { display: block; }
.galerie__bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie__zaehler {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.125rem 0.625rem;
  border-radius: 4px;
  background: rgb(16 34 29 / 0.8);
  color: #fff;
  font-size: 0.875rem;
  font-variant-numeric: tabular-nums;
}
.galerie__alle { display: none; }
.galerie + .abschnitt { padding-top: 1.5rem; }

/* ---------- Vollbild (Fotos und Grundriss) ---------- */

.vollbild {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--tanne-tief);
  color: #fff;
}
.vollbild::backdrop { background: var(--tanne-tief); }
.vollbild[open] { display: grid; grid-template-rows: auto 1fr; }
.vollbild__leiste {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem var(--rand);
}
.vollbild__zaehler { font-variant-numeric: tabular-nums; }
.vollbild__knoepfe { display: flex; gap: 0.5rem; }
.vollbild button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.625rem;
  border: 1.5px solid var(--tanne-hell);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.vollbild__liste {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior: contain;
}
.vollbild__liste li { display: grid; flex: 0 0 100%; place-items: center; padding: 0.5rem; scroll-snap-align: center; }
.vollbild__liste img { width: auto; max-width: 100%; max-height: calc(100dvh - 5rem); object-fit: contain; }

/* ---------- Wohnungsseite: Kopf, Ausstattung, Grundriss, Buchen ---------- */

.wohnung { display: grid; gap: 1.25rem; }
.wohnung__zurueck { justify-self: start; font-weight: 550; }
.wohnung__text { display: grid; gap: 1rem; max-width: 38rem; }

.klappliste { display: grid; max-width: 44rem; margin-top: 1rem; }
.klappliste details { border-bottom: 1px solid var(--grat); }
.klappliste summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.75rem 0;
  color: var(--tanne);
  font-family: var(--titel);
  font-size: 1.3125rem;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}
.klappliste summary::-webkit-details-marker { display: none; }
.klappliste summary::after { content: "+"; font-family: var(--text); font-size: 1.5rem; font-weight: 400; line-height: 1; }
.klappliste details[open] > summary::after { content: "–"; }
.klappliste ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.klappliste li + li { margin-top: 0.25rem; }
.klappliste details > p { max-width: 40rem; margin: 0 0 1.25rem; }

.grundriss { display: block; max-width: 44rem; margin-top: 1.5rem; }
.grundriss img { width: 100%; border: 1px solid var(--nebel); border-radius: var(--radius); }
.grundriss__hinweis { display: inline-flex; align-items: center; gap: 0.375rem; margin-top: 0.5rem; color: var(--nebentext); font-size: 0.9375rem; }

.buchen { display: grid; gap: 1.5rem; max-width: 44rem; }
.buchen .preis { font-size: 1rem; }
.buchen .preis strong { font-size: 2rem; }
.smoobu {
  display: grid;
  gap: 1rem;
  justify-items: start;
  padding: 1.25rem;
  border: 1.5px solid var(--grat);
  border-radius: var(--radius);
  background: var(--weiss);
}
.smoobu__hinweis { color: var(--nebentext); font-size: 0.9375rem; }
.smoobu--geladen { display: grid; gap: 1.5rem; justify-items: stretch; padding: 0; border-color: transparent; background: transparent; }
.smoobu__buchung { display: block; width: 100%; min-height: 9rem; border: 0; }
.smoobu__widerruf { margin: 0; color: var(--nebentext); font-size: 0.875rem; }
.textknopf { padding: 0; border: 0; background: none; color: var(--rot); font: inherit; text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; }
.textknopf:hover { color: var(--rot-dunkel); }
.kontaktwege { display: grid; gap: 0.5rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.kontaktwege li { display: flex; align-items: center; gap: 0.625rem; }
.kontaktwege .symbol { color: var(--tanne); }

/* ---------- Unterseiten: Seitenkopf, Liste, Tabelle, Bild mit Text ---------- */

.seitenkopf { display: grid; gap: 1rem; }
.seitenkopf .einleitung { margin-top: 0; max-width: 38rem; color: var(--russ); font-size: 1.1875rem; }
.seitenbild { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 35%; }

.karten--liste {
  grid-auto-flow: row;
  grid-auto-columns: auto;
  gap: 2.5rem;
  margin-inline: 0;
  padding: 0;
  overflow: visible;
}

.abschnitt { --flaeche: var(--weiss); }
.abschnitt--nebel { --flaeche: var(--nebel); }
.tabelle {
  margin: 1.5rem calc(var(--rand) * -1) 0;
  padding: 0 var(--rand) 0.5rem;
  overflow-x: auto;
}
.tabelle table { width: 100%; min-width: 36rem; border-collapse: collapse; font-size: 0.9375rem; }
.tabelle th,
.tabelle td { padding: 0.625rem 0.75rem; border-bottom: 1px solid var(--grat); text-align: left; vertical-align: top; }
.tabelle thead th { color: var(--tanne); font-family: var(--titel); font-size: 1.125rem; font-weight: 650; }
.tabelle tbody th { position: sticky; left: 0; background: var(--flaeche); color: var(--nebentext); font-weight: 550; }
.tabelle thead td { position: sticky; left: 0; background: var(--flaeche); }
.tabelle td strong { color: var(--tanne); font-family: var(--titel); font-size: 1.125rem; font-weight: 650; white-space: nowrap; }
.tabelle__hinweis { margin-top: 1rem; color: var(--nebentext); font-size: 0.9375rem; }

.bildtext { display: grid; gap: 1.5rem; }
.bildtext img { width: 100%; max-height: 34rem; object-fit: cover; border-radius: var(--radius); }
.bildtext__text { display: grid; gap: 1rem; align-content: center; max-width: 36rem; }

.leistungen { display: grid; gap: 1.5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.leistungen li { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.875rem; }
.leistungen .symbol { grid-row: span 2; width: 1.75rem; height: 1.75rem; margin-top: 0.125rem; color: var(--tanne); }
.leistungen h3 { font-size: 1.25rem; }
.leistungen p { color: var(--nebentext); }

.grundrisse { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.grundrisse .grundriss { margin-top: 0; }
.grundrisse h3 { margin-bottom: 0.5rem; font-size: 1.25rem; }

/* ---------- Fließtext-Seiten: Impressum, Datenschutz, AGB ---------- */

.text { max-width: 44rem; }
.text > * + * { margin-top: 0.875rem; }
.text h2 { margin-top: 2.5rem; font-size: 1.625rem; }
.text h3 { margin-top: 1.75rem; font-size: 1.25rem; }
.text ul,
.text ol { padding-left: 1.25rem; }
.text li + li { margin-top: 0.25rem; }
.text dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.375rem 1.25rem; }
.text dt { font-weight: 600; }
.text dd { margin: 0; }
.inhalt { padding-left: 1.25rem; columns: 2 16rem; column-gap: 2rem; }
.inhalt li { break-inside: avoid; }
.luecke {
  display: inline-block;
  padding: 0 0.375rem;
  border: 1.5px dashed var(--grat);
  border-radius: 4px;
  color: var(--nebentext);
  font-size: 0.9375em;
}

.menue a[aria-current="page"] { color: var(--rot); }

/* ---------- Buchungsleiste: am Handy unten stehend ---------- */

.leiste {
  position: sticky;
  bottom: 0;
  z-index: 9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.625rem var(--rand) calc(0.625rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--nebel);
  background: var(--weiss);
}
.leiste .preis strong { font-size: 1.375rem; }
.leiste .knopf { flex: none; white-space: nowrap; }

/* ---------- Fußzeile ---------- */

.fuss { padding: 3rem var(--rand); background: var(--tanne); color: var(--tanne-hell); }
.fuss a { color: #fff; }
.fuss img { width: auto; height: 2.5rem; margin-bottom: 1rem; }
.fuss__raster { display: grid; gap: 1.75rem; }
.fuss__liste { display: grid; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }

/* ---------- Ab Tablet ---------- */

@media (min-width: 48rem) {
  .hero__bild { aspect-ratio: 16 / 9; max-height: 72vh; object-position: 50% 35%; }
  .symbole { grid-template-columns: 1fr 1fr; }
  .jahreszeiten { grid-template-columns: 1fr 1fr; }
  .gastgeber { grid-template-columns: minmax(0, 20rem) 1fr; align-items: center; gap: 3rem; }
  .fuss__raster { grid-template-columns: 2fr 1fr 1fr; }
  .bildtext { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
  .bildtext--umgekehrt > img { order: 2; }
  .leistungen { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; }
  .grundrisse { grid-template-columns: 1fr 1fr; align-items: start; }
  .karten--liste { grid-template-columns: repeat(2, 1fr); }
  .seitenbild { aspect-ratio: 21 / 9; max-height: 60vh; }
}

@media (max-width: 30rem) {
  .text dl { grid-template-columns: 1fr; }
  .text dd { margin-bottom: 0.5rem; }
}

/* ---------- Ab Desktop ---------- */

@media (min-width: 64rem) {
  .menue-knopf,
  .menue__zu,
  .menue .sprachen { display: none; }
  .kopf { gap: 0.5rem; }
  .kopf__logo { flex: none; }
  .kopf__logo img { width: auto; height: 2.5rem; }
  .kopf .knopf--klein { padding-inline: 1rem; }
  .menue {
    position: static;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: auto;
    height: auto;
    padding: 0;
    background: none;
    overflow: visible;
  }
  .menue ul { display: flex; gap: 1.5rem; }
  .menue a { padding: 0.5rem 0; color: var(--russ); font-family: var(--text); font-size: 1.0625rem; font-weight: 550; }
  .menue a[aria-current="page"] { color: var(--rot); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.4em; }
  .karten--liste { grid-template-columns: repeat(3, 1fr); }

  .hero__text { grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
  .karten {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    margin-inline: 0;
    padding: 0;
    overflow: visible;
  }
  .haus { grid-template-columns: 1fr 1fr; align-items: center; gap: 3rem; }
  .lage { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; }

  /* Galerie als Mosaik: ein großes und vier kleine Fotos, der Rest im Vollbild */
  .galerie { max-width: calc(var(--breite) + 2 * var(--rand)); margin: 0 auto; padding: 1.5rem var(--rand) 0; }
  .galerie__liste {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    overflow: visible;
  }
  .galerie__liste li:first-child { grid-column: span 2; grid-row: span 2; }
  .galerie__liste li:nth-child(n + 6) { display: none; }
  .galerie__bild img { height: 100%; border-radius: var(--radius); }
  .galerie__zaehler { display: none; }
  .galerie__alle { position: absolute; right: calc(var(--rand) + 1rem); bottom: 1rem; display: inline-flex; background: var(--weiss); }

  .leiste { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Titelbild „Das Haus“: alte Postkarte ---------- */

/* Ausschnitt so, dass Dach und Schriftzug „Pension Wetterstein“ auch im breiten Format sichtbar bleiben */
.seitenbild--postkarte { object-position: 50% 45%; }
