/* =====================================================================
   ROSENALM.DE - STYLESHEET
   Eigene Farbwelt: Rosenalm-Rot als Handlungsfarbe, Heimatel-Gold als
   Zierfarbe. Kein Blau. Geometrische Displayschrift (Outfit) fuer alles
   Grosse, Inter fuer alles Funktionale.
   Mobile-first, kein Framework, kein Build-Werkzeug.

   Farbaufteilung, die durchgehend gilt:
     ROT  = handeln. Buchen-Buttons, aktive Filter, Links, "heute".
     GOLD = schmuecken. Icons, Aufzaehlungspunkte, freie Naechte, Badges.
   Nie beide als grosse Flaeche nebeneinander - eine Flaeche fuehrt, die
   andere Farbe erscheint nur als Detail darin.

   Die Schriften werden in _layout.html als eigenes <link> geladen. Ein
   @import an dieser Stelle wuerde sie erst nach dem Parsen dieser Datei
   entdecken und die Textdarstellung um eine Runde verzoegern.
   ===================================================================== */

/* ------------------------------ Design-Tokens ----------------------- */
:root {
  /* Rosenalm-Rot - aus dem Logo ausgemessen */
  --rot:        #b20000;   /* Vollton des einfarbigen Logos, 7,3:1 auf Weiss */
  --rot-dunkel: #800000;   /* dunkles Ende des Logo-Verlaufs, fuer :hover */
  --rot-hell:   #ff2727;   /* helles Ende des Verlaufs - nur Akzentflaechen */
  --rot-soft:   #fdf1f0;   /* zarte rote Flaeche fuer Badges und Hinterlegungen */
  --rot-linie:  #f0d6d3;   /* Rand zu --rot-soft */

  /* Heimatel-Gold als zweite Farbe */
  --gold:        #b59a55;
  --gold-dark:   #977f42;
  --gold-lesbar: #836d2f;  /* nur fuer kleinen Goldtext: 5,0:1 auf Weiss */
  --gold-soft:   #f6f1e3;

  /* Grundgeruest */
  --bg:       #f8f7f4;
  --surface:  #ffffff;
  --ink:      #23283a;
  --ink-soft: #414a63;
  --muted:    #6a7085;
  --line:     #e5e3dc;

  /* heims.de - nur fuer die Eigentuemer-Leiste */
  --heims:      #1e4034;
  --heims-dark: #152e25;
  --whatsapp:   #1faa53;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body:    "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(35, 40, 58, .06);
  --shadow-md: 0 8px 30px rgba(35, 40, 58, .09);
  --shadow-lg: 0 16px 50px rgba(35, 40, 58, .16);

  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  /* Kein overflow-x: clip auf html oder body! Es propagiert auf das
     Wurzelelement und blockiert dort das programmatische Scrollen -
     Ankerspruenge wie #buchen funktionieren dann nicht mehr. Zu breite
     Elemente werden stattdessen einzeln begrenzt. */
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}

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

/* Muss vor allen display-Regeln stehen: eigene Klassen mit display:flex
   oder display:grid wuerden das hidden-Attribut sonst ueberstimmen und
   Elemente sichtbar lassen, die das Skript ausgeblendet hat. */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin: 0 0 .4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 600; letter-spacing: -.035em; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.012em; }
h4 { font-family: var(--font-body); font-weight: 700; font-size: 1rem; margin: 0 0 .5em; }
p  { margin: 0 0 1em; text-wrap: pretty; }
.muted { color: var(--muted); }

/* Gesperrte Grossbuchstaben-Labels - Gold als Zierfarbe */
.eyebrow {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-lesbar);
}

/* Rot ist die Handlungsfarbe - auch bei Links */
a { color: var(--rot); text-underline-offset: 3px; }
a:hover { color: var(--rot-dunkel); }

button { font: inherit; cursor: pointer; }

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

.container { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }

/* ------------------------------ Buttons ------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .82rem 1.6rem;
  border-radius: var(--r-sm);
  border: none;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .97rem;
  letter-spacing: -.005em;
  text-decoration: none;
  transition: background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.btn-primary { background: var(--rot); color: #fff; }
.btn-primary:hover { background: var(--rot-dunkel); color: #fff; }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--ink); transform: translateY(-1px); }
.btn-block { width: 100%; }
.btn-icon { width: 18px; height: 18px; flex: 0 0 18px; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: #199447; color: #fff; }

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 1.2rem; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { height: 44px; width: auto; }
@media (max-width: 900px) { .brand img { height: 36px; } }
@media (max-width: 380px) { .brand img { height: 30px; } }
.site-nav { display: flex; gap: 1.4rem; margin-left: auto; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: .2rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--rot); }
.site-nav a[aria-current="page"] { color: var(--rot); border-bottom-color: var(--rot); }
.header-cta { padding: .58rem 1.2rem; font-size: .92rem; white-space: nowrap; }
.header-cta .cta-kurz { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--ink);
  padding: .3rem;
  line-height: 0;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Der grosse Buchen-Knopf im aufgeklappten Menue. Diese Regel muss VOR
   der Medienabfrage stehen: gleiche Spezifitaet, und die spaeter notierte
   Regel gewinnt - stuende sie danach, bliebe der Knopf auch auf dem Handy
   ausgeblendet. */
.nav-cta { display: none; }
/* Der Knopf liegt IN der Navigation, und .site-nav a (0,1,1) ist
   spezifischer als .btn-primary (0,1,0) - ohne diese Zeile erbt er
   Anthrazit auf Rot und kommt auf 2,0:1. Mit Weiss sind es 7,3:1. */
.site-nav a.nav-cta, .site-nav a.nav-cta:hover { color: #fff; border-bottom: none; }

@media (max-width: 1050px) {
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.5rem 1.4rem;
    gap: .1rem;
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .65rem 0; border-bottom: 1px solid var(--line); }
  .nav-toggle { display: block; margin-left: .5rem; }

  /* Buchen bleibt immer erreichbar: kompakt im Kopf und zusaetzlich
     gross im aufgeklappten Menue. */
  .header-cta { margin-left: auto; padding: .5rem .95rem; font-size: .88rem; }
  .header-cta .cta-lang { display: none; }
  .header-cta .cta-kurz { display: inline; }
  .nav-cta { display: flex; margin-top: .8rem; border-bottom: none !important; }
}

/* ------------------------------ Breadcrumb --------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .1rem .15rem;
  font-size: .85rem;
  padding: 1.2rem 0 1rem;
  margin-bottom: .2rem;
  border-bottom: 1px solid var(--line);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
  padding: .3rem .55rem;
  border-radius: var(--r-sm);
  transition: color .15s ease, background .15s ease;
}
.breadcrumb a:first-child { padding-left: 0; }
.breadcrumb a:hover { color: var(--rot); background: var(--rot-soft); }
.breadcrumb .sep {
  width: 14px; height: 14px; flex: 0 0 14px;
  color: var(--line);
  stroke: currentColor; stroke-width: 2.2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; padding: .3rem .55rem; }

/* ------------------------------ Hero --------------------------------- */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Etwas oberhalb der Mitte beschnitten: dort steht das Haus im Licht,
     weiter unten kaeme nur Rasen ins Bild. */
  object-position: center 42%;
}
/* Verlauf sorgt fuer lesbaren Text, egal wie hell das Foto an der Stelle
   ist. Links am dichtesten, weil dort die Ueberschrift steht - und weil
   das gewaehlte Motiv links ohnehin einen dunklen Baum hat. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(24,20,22,.86) 0%, rgba(24,20,22,.70) 42%, rgba(24,20,22,.28) 78%, rgba(24,20,22,.18) 100%),
    linear-gradient(to top, rgba(24,20,22,.5), transparent 45%);
}
.hero-inner { position: relative; z-index: 1; padding: clamp(4.5rem, 11vw, 8rem) 0 clamp(3.2rem, 7vw, 4.5rem); }
.hero h1 { color: #fff; margin: .5rem 0 .7rem; max-width: 15ch; }
.hero .eyebrow { color: #e8c9c5; }
.hero-sub {
  color: #e4e1de;
  max-width: 52ch;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  margin-bottom: 2rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-actions .btn-outline {
  background: transparent; color: #fff;
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.38);
}
.hero-actions .btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1.5px #fff; }

/* Auszeichnungen: gleichwertige Spalten, durch feine Linien getrennt */
.hero-trust {
  list-style: none;
  padding: 1.6rem 0 0;
  margin: 2.6rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 2.6rem;
}
.hero-trust li { display: grid; gap: .18rem; position: relative; }
.hero-trust li + li::before {
  content: "";
  position: absolute;
  left: -1.3rem; top: .1rem; bottom: .1rem;
  width: 1px;
  background: rgba(255, 255, 255, .16);
}
.trust-icon { width: 22px; height: 22px; color: var(--gold); margin-bottom: .28rem; }
.trust-stars { display: flex; gap: 2px; margin-bottom: .34rem; height: 22px; align-items: center; }
.trust-stars svg { width: 13px; height: 13px; color: var(--gold); }
.trust-source {
  font-size: .7rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: #b3aca9;
}
.trust-award {
  font-family: var(--font-display);
  font-size: 1rem; font-weight: 500; letter-spacing: -.01em; color: #fff;
}
@media (max-width: 720px) {
  .hero-trust { grid-template-columns: 1fr; gap: 1.15rem; }
  .hero-trust li + li::before { left: 0; right: 0; top: -.6rem; bottom: auto; width: auto; height: 1px; }
}

/* Vorteile: Karten, die halb in den Hero ragen - der Uebergang wirkt
   dadurch verbunden statt wie ein abgetrennter Balken. */
.benefits-strip { padding: 0 0 1rem; }
.benefits-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1rem;
  margin-top: -2.6rem;
  position: relative;
  z-index: 2;
}
.benefit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.35rem 1.4rem;
  display: grid;
  gap: .25rem;
  transition: box-shadow .18s ease, transform .18s ease;
}
.benefit:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
/* Goldene Kreisflaeche mit goldenem Icon - Rot bleibt den Knoepfen vorbehalten */
.benefit-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gold-soft);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: .5rem;
}
.benefit-icon svg { width: 20px; height: 20px; color: var(--gold-dark); }
.benefit b { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -.015em; }
.benefit-text { color: var(--muted); font-size: .89rem; line-height: 1.45; }
@media (max-width: 720px) {
  .benefits-inner { margin-top: -1.6rem; gap: .75rem; }
  .benefit { padding: 1.1rem 1.15rem 1.2rem; }
}

/* ------------------------------ Sektionen ---------------------------- */
.section { padding: 3.4rem 0 1rem; }
.section-head { margin-bottom: 1.6rem; max-width: 60ch; }
.section-head h2 { margin-bottom: .35rem; }
.section-head p { color: var(--muted); margin: 0; }
.section-mehr { margin-top: 1.4rem; }

/* ------------------------------ Karten ------------------------------- */
.card-grid {
  display: grid;
  /* Schmale Kacheln: bei 29 Wohnungen zaehlt die Uebersicht mehr als die
     Bildgroesse - so passen vier statt drei in eine Reihe. */
  grid-template-columns: repeat(auto-fill, minmax(228px, 1fr));
  gap: 1.2rem;
  padding-bottom: 1rem;
}
/* Wenige, grosse Entscheidungen bekommen breite Kacheln - eine schmale
   Kachel allein in einer leeren Reihe sieht verloren aus. */
.card-grid-gross { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #dcc9c6; color: var(--ink); }

/* Bildkasten mit festem Seitenverhaeltnis: das Bild liegt absolut darin,
   damit die Eigengroesse des Fotos die Kachelhoehe nie beeinflusst -
   auch dann nicht, wenn das Bild gar nicht laedt. */
.card-media { position: relative; aspect-ratio: 3 / 2; background: var(--rot-soft); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-sub { color: var(--muted); font-size: .91rem; margin: 0; }
.card-sub:empty { display: none; }
.card-meta {
  margin-top: auto;
  padding-top: .7rem;
  font-size: .85rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

/* Gleiche Zeilen in allen Kacheln einer Reihe. Ohne das beginnt der Block
   unter einem einzeiligen Untertitel hoeher als unter einem zweizeiligen -
   die Reihe wirkt unruhig. Mit subgrid teilen sich alle Kacheln einer
   Reihe dieselben Zeilen. row-gap: 0 ist Pflicht, sonst liegt der
   Kachelabstand des Rasters auch zwischen den Zeilen INNERHALB der Kachel. */
/* Die Zeilenzahl muss zur Zahl der Kinder passen: Bild, Titel, Untertitel,
   Faktenzeile, Kalender - also 5 Zeilen fuer die Karte und 4 fuer den
   Rumpf. Bei zu wenigen Zeilen landen die letzten beiden Kinder in
   DERSELBEN Zelle und liegen uebereinander; die Faktenzeile verschwand
   so komplett unter dem Kalender. */
@supports (grid-template-rows: subgrid) {
  .card-grid > .card {
    display: grid;
    grid-row: span 5;
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .card-grid > .card > .card-body {
    grid-row: span 4;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: .3rem;
  }
  /* Untertitel immer als Zeile behalten, auch wenn er leer ist - eine
     fehlende Zeile verschoebe das ganze Raster. */
  .card-grid > .card > .card-body > .card-sub:empty { display: block; }
  .card-grid > .card > .card-body > .card-meta { margin-top: 0; align-self: start; }
  .card-grid > .card > .card-body > .cal-halter { align-self: start; }
}

.unit-card .card-body { gap: .18rem; }
.unit-card h3 { margin: 0; }
.unit-card h3 a { color: var(--ink); text-decoration: none; }
.unit-card h3 a:hover { color: var(--rot); }

/* Abschlusskarte im Trefferraster: gleicher Aufbau wie eine Wohnungs-
   kachel (Medienfeld, Titel, Untertitel, Text, Knopf), damit das subgrid
   ihr exakt dieselbe Hoehe zuteilt. Statt eines Fotos eine ruhige
   Goldflaeche - Rot bliebe den Buchen-Knoepfen vorbehalten. */
.karte-hinweis { background: var(--gold-soft); border-color: #e8dfc4; }
.karte-hinweis:hover { transform: none; box-shadow: var(--shadow-sm); border-color: #e0d4b2; }
.hinweis-flaeche {
  background: linear-gradient(160deg, #f2e9d2 0%, var(--gold-soft) 100%);
  display: grid;
  place-items: center;
}
.hinweis-zeichen svg { width: 42px; height: 42px; color: var(--gold-dark); opacity: .85; }
.karte-hinweis h3 { color: var(--ink); }
.hinweis-text {
  color: var(--ink-soft);
  font-size: .84rem;
  line-height: 1.45;
  display: block;
  padding-top: .4rem;
}
.hinweis-knopf {
  align-self: start;
  margin-top: .6rem;
  font-size: .84rem;
  padding: .5rem .9rem;
  background: var(--surface);
}
.hinweis-knopf:hover { background: #fff; box-shadow: inset 0 0 0 1.5px var(--gold-dark); }
@supports (grid-template-rows: subgrid) {
  .card-grid > .karte-hinweis > .card-body > .hinweis-knopf { align-self: start; }
}

/* Breite Fassung: kommt nur zum Zug, wenn die Karte sonst allein in einer
   neuen Reihe staende. Dann liegt sie quer und traegt Flaeche und Text
   nebeneinander statt uebereinander. */
.karte-hinweis-breit {
  grid-template-rows: auto !important;
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr);
}
.karte-hinweis-breit > .card-media { aspect-ratio: auto; height: 100%; min-height: 130px; }
.karte-hinweis-breit > .card-body {
  grid-row: auto !important;
  grid-template-rows: auto !important;
  align-content: center;
  padding: 1.3rem 1.5rem;
  gap: .3rem;
}
.karte-hinweis-breit .hinweis-text { max-width: 62ch; }
@media (max-width: 560px) {
  .karte-hinweis-breit { grid-template-columns: 1fr; }
  .karte-hinweis-breit > .card-media { min-height: 110px; }
}

/* Badges: Gold als Zierfarbe, der Kombi-Hinweis dunkel und deutlich */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .22rem;
  background: var(--gold-soft);
  color: var(--gold-lesbar);
  font-size: .76rem;
  font-weight: 600;
  border-radius: 999px;
  padding: .16rem .6rem;
  white-space: nowrap;
}
.badge-dark { background: rgba(23,20,22,.82); color: #fff; backdrop-filter: blur(4px); }
.badge-solid { background: var(--ink); color: #fff; }
.card-media .badge { position: absolute; top: .7rem; left: .7rem; }

/* Kompakte Kacheln fuer die Filter-Treffer */
.card-grid-compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.1rem; }
.card-grid-compact .card-media { aspect-ratio: 4 / 3; }
.card-grid-compact .card-body { padding: .75rem .9rem .9rem; gap: .2rem; }
.card-grid-compact .card-body h3 { font-size: .98rem; }
.card-grid-compact .card-sub { font-size: .84rem; }
.card-grid-compact .card-meta { font-size: .8rem; padding-top: .45rem; }
.card-grid-compact .badge { font-size: .7rem; padding: .12rem .5rem; }

/* ------------------------------ Galerie ------------------------------ */
.unit-gallery { margin-top: .4rem; position: relative; }
.haus-galerie { position: relative; }
.haus-kopf { margin-top: .4rem; }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 8px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.gallery-grid a { display: block; height: 100%; overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery-grid a:hover img { transform: scale(1.03); }
/* Ein grosses Bild links ueber beide Zeilen, vier kleine rechts im Quadrat */
.gallery-grid a:first-child { grid-row: span 2; }

/* Weniger als fuenf Bilder: nebeneinander in voller Hoehe, kein Zwei-Zeilen-Raster */
.gallery-grid-schmal { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); grid-template-rows: 320px; }
.gallery-grid-schmal a:first-child { grid-row: auto; }

@media (max-width: 700px) {
  /* Auf dem Handy waeren vier kleine Kacheln nebeneinander Briefmarken:
     das grosse Bild oben ueber die volle Breite, darunter zwei Zeilen zu zweit. */
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 104px 104px; }
  .gallery-grid a:first-child { grid-column: span 2; grid-row: auto; }
  .gallery-grid-schmal { grid-template-rows: 220px; }
  .gallery-grid-schmal a:first-child { grid-column: auto; }
}

/* Knopf ueber der Galerie: die Wohnungen haben im Schnitt 13 Bilder, im
   Raster stehen nur drei. Ohne diesen Weg bliebe der Rest unsichtbar.
   Der umschliessende Wrapper braucht position: relative, sonst rutscht
   der Knopf bis in den Footer. */
.gallery-all {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .5rem .9rem;
  border: 1px solid rgba(35, 40, 58, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.gallery-all:hover { background: #fff; border-color: var(--rot); transform: translateY(-1px); }
.gallery-all .btn-icon { width: 17px; height: 17px; color: var(--rot); }

/* ------------------------- Galerie: Vollansicht ---------------------- */
body.lb-offen { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(18, 16, 17, .96);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.lb-leiste {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1rem; color: #e8e6e1;
}
.lb-zaehler { font-size: .85rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lb-schliessen, .lb-nav {
  appearance: none; border: 0;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.lb-schliessen { width: 2.2rem; height: 2.2rem; }
.lb-schliessen .lb-zeichen { font-size: 1.5rem; line-height: 1; margin-top: -3px; }
.lb-schliessen:hover, .lb-nav:hover { background: rgba(255, 255, 255, .22); }
.lb-buehne { position: relative; display: flex; align-items: center; justify-content: center; min-height: 0; padding: 0 1rem; }
.lb-bild { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--r-sm); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.8rem; height: 2.8rem; }
.lb-nav .lb-zeichen { font-size: 1.7rem; line-height: 1; margin-top: -3px; }
.lb-zurueck { left: .6rem; }
.lb-vor { right: .6rem; }
.lb-streifen { display: flex; gap: 6px; overflow-x: auto; padding: .7rem 1rem 1rem; scrollbar-width: thin; }
.lb-mini {
  appearance: none; border: 0; padding: 0; background: none;
  flex: 0 0 auto;
  width: 74px; height: 50px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: .45;
  outline: 2px solid transparent;
  outline-offset: 1px;
  transition: opacity .15s ease, outline-color .15s ease;
}
.lb-mini img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-mini:hover { opacity: .8; }
.lb-mini.ist-aktiv { opacity: 1; outline-color: var(--rot-hell); }
@media (max-width: 700px) {
  .lb-mini { width: 56px; height: 40px; }
  .lb-nav { width: 2.4rem; height: 2.4rem; }
  .lb-buehne { padding: 0 .4rem; }
  .gallery-all { right: 10px; bottom: 10px; padding: .42rem .7rem; font-size: .78rem; gap: .35rem; }
  .gallery-all .btn-icon { width: 15px; height: 15px; }
}

/* ------------------------------ Wohnung: Kopf ------------------------ */
.unit-head {
  display: flex; flex-wrap: wrap; gap: 1.2rem;
  align-items: flex-start; justify-content: space-between;
  padding: 1.6rem 0 .5rem;
}
.unit-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.unit-facts { color: var(--muted); margin: .25rem 0 0; }
.unit-head-cta { display: grid; gap: .5rem; justify-items: end; }
.unit-head-trust { font-size: .82rem; color: var(--muted); }

.unit-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 3rem;
  align-items: start;
  padding-top: 1rem;
}
@media (max-width: 1050px) { .unit-columns { grid-template-columns: 1fr; gap: 0; } }
.unit-section { padding: 1.6rem 0; border-top: 1px solid var(--line); }
.unit-section:first-child { border-top: none; padding-top: .6rem; }
.unit-section h2 { font-size: 1.4rem; }

/* ------------------------------ Ausstattung -------------------------- */
/* Spalten statt Raster: die Gruppen sind unterschiedlich lang. Im Raster
   zwingt die laengste Gruppe ihrer ganzen Zeile die Hoehe auf und daneben
   klafft Leerraum. Als Textspalten ruecken sie lueckenlos nach. */
.amenity-groups { columns: 250px 3; column-gap: 2.5rem; }
.amenity-group { break-inside: avoid; margin: 0 0 1.5rem; }
.amenity-group h3 {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 .7rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.amenity-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.amenity-list li { display: flex; align-items: flex-start; gap: .6rem; font-size: .94rem; line-height: 1.4; }
.amenity-icon { width: 20px; height: 20px; flex: 0 0 20px; color: var(--gold); margin-top: .06rem; }

/* "Im Haus fuer alle Gaeste": eine Kachel je Angabe. Der Zusatz aus der
   Klammer - Wassertemperatur, Oeffnungszeiten - steht als zweite Zeile
   direkt an der Kachel, statt als graue Wiederholungsliste darunter. */
.haus-merkmale {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .8rem;
}
.haus-merkmale li {
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-areas: "icon name" ".    detail";
  align-items: start;
  /* Pflicht: die Kacheln einer Reihe sind gleich hoch (die laengste gibt
     die Hoehe vor). Ohne align-content verteilt das Raster Name und
     Zusatz ueber die geteilte Resthoehe, und zwischen beiden klafft in
     kurzen Kacheln eine Luecke. */
  align-content: start;
  gap: .15rem .7rem;
  padding: .8rem .95rem .85rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.haus-icon { grid-area: icon; width: 20px; height: 20px; color: var(--gold); margin-top: .05rem; }
.haus-name { grid-area: name; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.haus-detail { grid-area: detail; font-size: .84rem; line-height: 1.4; color: var(--muted); }

/* ------------------------------ Buchungskarte ------------------------ */
.booking-column { display: grid; gap: 1.2rem; }
@media (min-width: 1051px) {
  .booking-column { position: sticky; top: calc(var(--header-h) + 16px); }
  .booking-card { position: static; }
}
.booking-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 1.4rem 1.5rem;
}
.booking-card-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.1rem; letter-spacing: -.015em;
  margin-bottom: .9rem;
}
.benefits { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .5rem; font-size: .91rem; }
.benefits li { padding-left: 1.55rem; position: relative; color: var(--ink-soft); }
/* Haken in Rot - hier bestaetigt Rot, was der Gast bekommt */
.benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: .42em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--rot);
  border-bottom: 2px solid var(--rot);
  transform: rotate(-45deg);
}
.booking-card-alt { display: block; text-align: center; margin-top: .85rem; font-size: .88rem; }
@media (max-width: 1050px) {
  .booking-card {
    position: fixed;
    left: 0; right: 0; bottom: 0; top: auto;
    z-index: 40;
    border-radius: 0;
    border: none;
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 24px rgba(35, 40, 58, .12);
    padding: .7rem 1.25rem calc(.7rem + env(safe-area-inset-bottom));
  }
  .booking-card-title, .benefits, .booking-card-alt { display: none; }
  body.hat-buchungsleiste { padding-bottom: 78px; }
}

.calendar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem 1rem;
}
.calendar-card-title {
  font-family: var(--font-display);
  font-weight: 600; font-size: 1.05rem; letter-spacing: -.015em;
  margin: 0 0 .8rem;
}
/* In der Seitenspalte derselbe Kalender wie auf den Karten, nur ohne
   eigenen Rahmen und mit etwas groesseren Feldern. */
.calendar-card .card-cal { margin-top: 0; border: 0; padding: 0; background: none; }
.calendar-card .card-cal:hover { background: none; }
.calendar-card .cal-tag { max-height: 38px; font-size: .72rem; border-radius: 4px; }
.calendar-card .cal-monat { font-size: .95rem; }
.calendar-card .cal-wd { font-size: .66rem; }
.calendar-card .cal-zahl, .calendar-card .cal-cta { font-size: .82rem; }
.calendar-card .cal-nav { width: 1.9rem; height: 1.9rem; }
.calendar-card .cal-kopf { grid-template-columns: 1.9rem 1fr 1.9rem; margin-bottom: .5rem; }
@media (max-width: 1050px) {
  .booking-column { display: contents; }
  .calendar-card { margin-top: 1.4rem; }
}

/* Smoobu-Embeds: nur so viel Platz reservieren, dass beim Laden nichts
   springt. Smoobu setzt die Hoehe danach selbst - eine hohe min-height
   liesse Leerraum stehen, solange nur die Suchleiste angezeigt wird. */
.booking-embed { min-height: 150px; }

/* ------------------- Belegungsplan auf der Wohnungskarte -------------
   Zeigt den laufenden Monat direkt im Suchergebnis: Gaeste sehen sofort,
   ob sich das Weiterklicken lohnt.
   GOLD = frei, GRAU + Durchstrich = belegt. Gruen wirkte wie "belegt ist
   frei" und wurde verworfen. Frei und belegt unterscheiden sich ueber
   Farbton und Durchstrich, nicht ueber die Helligkeit. */
.card-cal {
  display: block;
  margin-top: .8rem;
  padding: .45rem .65rem .5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, background .15s ease;
}
.card-cal:hover { border-color: var(--rot); background: #fffcfb; }

.cal-kopf {
  display: grid;
  grid-template-columns: 1.6rem 1fr 1.6rem;
  align-items: center;
  gap: .2rem;
  margin-bottom: .35rem;
}
.cal-monat {
  font-family: var(--font-display);
  font-weight: 600; font-size: .82rem;
  color: var(--ink); text-align: center; white-space: nowrap;
}
.cal-nav {
  appearance: none; border: 0; background: none; padding: 0;
  width: 1.6rem; height: 1.6rem;
  border-radius: 50%;
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.cal-nav-zeichen { font-size: 1.05rem; line-height: 1; margin-top: -2px; }
.cal-nav:hover { background: var(--rot-soft); color: var(--rot); }
.cal-nav:disabled { opacity: .25; cursor: default; background: none; color: var(--muted); }

/* Alles unterhalb des Kopfes ist der Link zur Wohnung. Die Blaetter-
   Knoepfe stehen bewusst ausserhalb - Buttons in Links sind unzulaessig. */
.cal-link { display: block; text-decoration: none; color: inherit; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-wd { font-size: .58rem; color: var(--muted); text-align: center; padding-bottom: .15rem; letter-spacing: .02em; }
.cal-tag {
  /* Quadratisch, aber gedeckelt: auf dem Smartphone ist die Karte so breit,
     dass ein echtes Quadrat den halben Bildschirm fuellen wuerde. */
  aspect-ratio: 1;
  max-height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 3px;
  font-size: .63rem;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
/* Textfarben sind auf mindestens 4,5:1 zum jeweiligen Feld gerechnet -
   bei 10 px Schrift ist das keine Formsache, sondern Lesbarkeit. */
.cal-leer { background: none; }
.cal-frei { background: #f5e7c4; color: #7a6428; }            /* 4,65:1 */
.cal-belegt {
  background: #ddd9d0;
  color: #4d4a43;                                             /* 5,9:1 */
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(50, 47, 40, .5);
}
/* Wechseltage, geteilt entlang der Diagonalen - Richtung exakt wie in
   Smoobus eigenem Widget (singleCalendarWidget.css: "to right bottom",
   erste Farbe oben links):
   ANREISE  = Vormittag frei, ab Mittag belegt -> Gold oben links, Nacht belegt.
   ABREISE  = Vormittag belegt, ab Mittag frei -> Grau oben links, Nacht frei. */
.cal-anreise { background: linear-gradient(to right bottom, #f5e7c4 50%, #ddd9d0 50%); color: #4d4a43; }
.cal-abreise { background: linear-gradient(to right bottom, #ddd9d0 50%, #f5e7c4 50%); color: #7a6428; }

/* Vergangene Tage treten zurueck, bleiben aber lesbar: #706c63 auf
   #f4f3f0 sind 4,7:1. Das vorherige #8b8880 kam nur auf 3,2:1 - bei
   11 px Schrift ist das keine Formsache. */
.cal-vorbei { background: #f4f3f0; color: #706c63; }
/* "Heute" rot umrandet - Rot ist hier die Handlungsfarbe */
.cal-heute { box-shadow: inset 0 0 0 1.5px var(--rot); font-weight: 700; }
.cal-laedt { background: var(--line); color: transparent; animation: calPuls 1.1s ease-in-out infinite; }
@keyframes calPuls { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .cal-laedt { animation: none; } }

.cal-fuss {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: .4rem;
  margin-top: .45rem;
  padding-top: .4rem;
  border-top: 1px solid var(--line);
}
.cal-zahl { font-size: .72rem; font-weight: 600; color: var(--gold-lesbar); white-space: nowrap; }
.cal-zahl-voll { color: var(--muted); font-weight: 500; }
.cal-cta { font-size: .76rem; font-weight: 600; color: var(--rot); white-space: nowrap; }
.cal-cta::after { content: " \2192"; }
.card-cal:hover .cal-cta { color: var(--rot-dunkel); }

/* Karte ohne Kalenderdaten: gleiche Form, nur ohne Raster - und bewusst
   KEIN roter Button, der wuerde in der Reihe herausstechen. */
.card-cal-ohne .cal-monat { text-align: left; }
.card-cal-ohne .cal-kopf { display: block; }
.card-cal-ohne .cal-fuss { justify-content: center; }
.cal-hinweis { display: block; font-size: .76rem; line-height: 1.4; color: var(--muted); padding: .1rem 0 .3rem; }

/* Legende unter dem Kalender - ohne sie muss man das Farbschema raten */
.cal-legende {
  display: flex; flex-wrap: wrap; gap: .35rem 1rem;
  margin: .7rem 0 0; padding: 0;
  list-style: none;
  font-size: .78rem; color: var(--muted);
}
.cal-legende li { display: flex; align-items: center; gap: .4rem; }
.cal-legende i {
  width: 13px; height: 13px; border-radius: 3px; flex: 0 0 13px;
}
.cal-legende .lg-frei   { background: #f5e7c4; }
.cal-legende .lg-belegt { background: #ddd9d0; }
.cal-legende .lg-heute  { background: #fff; box-shadow: inset 0 0 0 1.5px var(--rot); }

/* ------------------------------ Filter ------------------------------- */
/* Zwei ruhige Bloecke untereinander: oben drei Auswahlfelder in gleich
   breiten Dritteln, darunter je Gruppe eine Spalte Kaestchen - genau
   unter ihrem Auswahlfeld. repeat(3, 1fr), NICHT auto-fit: das erzeugt je
   nach Fensterbreite vier oder fuenf Spuren und laesst rechts Leerraum. */
.filterbar {
  display: grid;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.3rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.filter-felder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.4rem; align-items: end; }
.filter-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem 1.4rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .filter-felder { grid-template-columns: 1fr; }
  .filter-groups { grid-template-columns: 1fr; }
}
.filter-field { display: grid; gap: .35rem; min-width: 0; }
.filter-field label {
  font-size: .74rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.filter-field select {
  font: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: .62rem .8rem;
  width: 100%;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a7085' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .6rem center;
  background-size: 16px;
  padding-right: 2rem;
}
.filter-field select:hover { border-color: #d8cac8; }

.filter-toggles { border: none; margin: 0; padding: 0; }
.filter-toggles legend {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  padding: 0; margin-bottom: .35rem;
  float: left; width: 100%;
}
.filter-optionen { display: grid; gap: .1rem; align-content: start; margin-left: -.55rem; }
.toggle {
  display: flex; align-items: center; gap: .6rem;
  width: 100%;
  border: 1px solid transparent;
  background: none;
  border-radius: var(--r-sm);
  padding: .42rem .55rem;
  font-size: .93rem; font-weight: 500;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
  user-select: none;
}
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle::before {
  content: "";
  width: 18px; height: 18px; flex: 0 0 18px;
  border: 1.5px solid #cfcabc;
  border-radius: 5px;
  background: var(--surface);
  transition: background .14s ease, border-color .14s ease;
}
/* Icon bleibt gold, das gesetzte Kaestchen wird rot - Rot markiert,
   was gerade wirkt. */
.toggle-icon { width: 18px; height: 18px; color: var(--gold); flex: 0 0 18px; }
.toggle:hover { background: var(--bg); }
.toggle:has(input:checked) { color: var(--ink); font-weight: 600; }
.toggle:has(input:checked)::before {
  background: var(--rot) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 12.5 5 5 11-11'/%3E%3C/svg%3E") center / 12px no-repeat;
  border-color: var(--rot);
}
.toggle:has(input:focus-visible) { outline: 2px solid var(--rot); outline-offset: 2px; }
.toggle-zahl { color: var(--muted); font-weight: 400; font-size: .85em; font-variant-numeric: tabular-nums; }

/* Luft zwischen Suchfeld und Treffern. Ohne das stossen Filterkasten und
   erste Kachelreihe direkt aneinander, sobald die Trefferzeile
   ausgeblendet ist - also immer, solange nicht gefiltert wird. */
#filterResults, #alleWohnungen { margin-top: 2.2rem; }
.filter-status:not([hidden]) + #filterResults,
.filter-status:not([hidden]) + #alleWohnungen { margin-top: .4rem; }

.filter-status {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  padding: 1.8rem 0 1rem;
}
.filter-status p { margin: 0; font-weight: 600; }
.filter-reset {
  background: none; border: none;
  color: var(--rot);
  font-size: .92rem; font-weight: 500;
  text-decoration: underline; text-underline-offset: 3px;
  padding: .2rem;
}
.filter-reset:hover { color: var(--rot-dunkel); }

/* Leerzustand: freundlich, mit Ausweg - nicht nur "0 Ergebnisse" */
.filter-empty {
  background: var(--rot-soft);
  border: 1px solid var(--rot-linie);
  border-radius: var(--r-md);
  padding: 1.6rem 1.8rem;
  color: var(--ink-soft);
  margin: 0;
}
.filter-empty p { margin: 0 0 .8rem; }
.filter-empty p:last-child { margin-bottom: 0; }
.filter-empty .btn { margin-top: .3rem; }

/* Angedeutete naechste Reihe: oben scharf, nach unten in den
   Seitenhintergrund auslaufend. Rein dekorativ, nicht anklickbar. */
.filter-peek {
  margin-top: 1.1rem;
  max-height: 132px;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 55%, transparent 97%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 55%, transparent 97%);
}
.filter-more {
  display: flex; justify-content: center;
  padding: .3rem 0 .6rem;
  margin-top: -.4rem;
  position: relative;
  z-index: 1;
}
.filter-more .btn { background: var(--surface); box-shadow: var(--shadow-sm); }
.filter-more .btn:hover { background: var(--surface); box-shadow: var(--shadow-md); }
.more-chevron {
  width: 17px; height: 17px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .16s ease;
}
.filter-more .btn:hover .more-chevron { transform: translateY(2px); }
@media (prefers-reduced-motion: reduce) { .more-chevron { transition: none; } }

.filter-pricenote {
  margin: 1.2rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  font-size: .9rem;
  color: var(--muted);
  max-width: 72ch;
}
.filter-pricenote a { white-space: nowrap; font-weight: 600; }

/* ------------------------------ Region ------------------------------- */
.region-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.region-karte {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.region-karte .card-media { aspect-ratio: 4 / 3; }
.region-karte .card-body { padding: .9rem 1rem 1.1rem; }
.region-karte h3 { font-size: 1rem; margin: 0 0 .3rem; }
.region-karte p { margin: 0; font-size: .87rem; line-height: 1.45; color: var(--muted); }

@supports (grid-template-rows: subgrid) {
  .region-grid > .region-karte {
    display: grid; grid-row: span 3;
    grid-template-rows: subgrid; row-gap: 0;
  }
  .region-grid > .region-karte > .card-body {
    grid-row: span 2; display: grid;
    grid-template-rows: subgrid; row-gap: .3rem;
  }
  .region-grid > .region-karte h3 { margin-bottom: 0; }
}

/* ------------------------- Digitale Gaestemappe ---------------------- */
.gm-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 168px;
  gap: 1.8rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.8rem;
}
.gm-text h2 { margin-bottom: .5rem; }
.gm-text p { color: var(--muted); margin-bottom: 1.1rem; }
.gm-knopf { font-size: .9rem; padding: .68rem 1.2rem; }
/* Angedeutetes Handy - bewusst flach gezeichnet, kein Foto: es soll den
   Inhalt zeigen, nicht mit der Wohnungsgalerie um Aufmerksamkeit ringen. */
.gm-vorschau { display: block; text-decoration: none; color: inherit; }
.gm-vorschau:hover .gm-geraet { border-color: var(--rot); box-shadow: var(--shadow-md); }
.gm-geraet {
  display: block; position: relative;
  border: 1.5px solid var(--line);
  border-radius: 17px;
  background: var(--bg);
  padding: .8rem .5rem .6rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.gm-schirm { display: block; }
.gm-kerbe {
  position: absolute; top: .5rem; left: 50%;
  transform: translateX(-50%);
  width: 34px; height: 4px; border-radius: 2px;
  background: var(--line);
}
.gm-titel {
  display: block; text-align: center;
  font-family: var(--font-display); font-weight: 600; font-size: .82rem;
  color: var(--ink); padding: .25rem 0 .6rem;
}
.gm-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .22rem; }
.gm-liste li {
  display: flex; align-items: center; gap: .35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .26rem .35rem;
}
.gm-liste svg { width: 12px; height: 12px; flex: 0 0 12px; color: var(--gold-dark); }
.gm-liste span { font-size: .5rem; line-height: 1.2; color: var(--muted); min-width: 0; }
.gm-liste b { display: block; font-size: .56rem; font-weight: 600; color: var(--ink); }
@media (max-width: 720px) {
  .gm-inner { grid-template-columns: 1fr; gap: 1.3rem; padding: 1.3rem 1.2rem; }
  .gm-vorschau { max-width: 200px; margin-inline: auto; }
}

/* -------------------- Hinweis aufs Haus (Wohnungsseite) -------------- */
.haus-teaser {
  display: flex; align-items: center; gap: .8rem;
  max-width: 330px;
  padding: .5rem .8rem .5rem .5rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.haus-teaser:hover { border-color: var(--rot); box-shadow: var(--shadow-sm); color: inherit; }
.haus-teaser img { width: 62px; height: 48px; flex: 0 0 62px; object-fit: cover; border-radius: 5px; }
.haus-teaser-text { display: block; min-width: 0; text-align: left; }
.haus-teaser-text b {
  display: block;
  font-family: var(--font-display);
  font-size: .92rem; font-weight: 600; letter-spacing: -.01em;
  color: var(--ink);
}
.haus-teaser-text em { display: block; font-style: normal; font-size: .78rem; line-height: 1.3; color: var(--muted); }
.haus-teaser-pfeil {
  width: 18px; height: 18px; flex: 0 0 18px;
  fill: none; stroke: var(--rot); stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 700px) { .haus-teaser { max-width: none; } }

/* ------------------------------ Info-Karten -------------------------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; }
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.6rem;
}
.info-card h2 { font-size: 1.15rem; margin-bottom: .7rem; }
.info-card h2 + p { margin-bottom: 1.2rem; }
.info-card p:last-child { margin-bottom: 0; }
.info-card-note { background: var(--gold-soft); border-color: #e8dfc4; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; font-size: .95rem; }
.info-list li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); }
/* Aufzaehlungspunkte in Gold - Zierfarbe */
.info-list li::before {
  content: "";
  position: absolute;
  left: .15rem; top: .58em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.info-check li::before {
  content: "";
  left: 0; top: .42em;
  width: 9px; height: 5px;
  border-radius: 0;
  background: none;
  border-left: 2px solid var(--rot);
  border-bottom: 2px solid var(--rot);
  transform: rotate(-45deg);
}

/* ------------------------------ Su Spa ------------------------------- */
/* Eigenstaendiger Betrieb im Haus - deshalb optisch als eigener Block
   mit eigenen Kontaktwegen, nicht als eine unserer Leistungen. */
.spa-kopf {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1.8rem;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.4rem;
}
.spa-logo { width: 180px; height: auto; }
.spa-kopf p { margin: 0 0 .6rem; }
.spa-kontakt { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .9rem; }
.spa-kontakt .btn { font-size: .9rem; padding: .6rem 1.1rem; }
@media (max-width: 700px) {
  .spa-kopf { grid-template-columns: 1fr; gap: 1.1rem; padding: 1.3rem 1.2rem; }
  .spa-logo { width: 140px; }
  .spa-kontakt .btn { flex: 1 1 100%; }
}

/* Preisliste: Name links, Dauer und Preis rechts. Die Punktreihe fuehrt
   das Auge - ohne sie zerfaellt die Zeile bei kurzen Namen. */
.preis-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.preis-liste li {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.preis-liste li:last-child { border-bottom: none; }
.preis-name { color: var(--ink-soft); }
/* Fuellt den Raum zwischen Name und Preis */
.preis-name::after {
  content: "";
  display: inline-block;
  width: 0;
}
.preis-liste li > .preis-name { flex: 1 1 auto; min-width: 0; }
.preis-dauer { color: var(--muted); font-size: .84rem; white-space: nowrap; flex: 0 0 auto; }
.preis-wert {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
/* Aufklappbarer Block - ohne JavaScript bedienbar, tastaturfaehig */
.ausklapp {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.ausklapp > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.05rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -.01em;
  border-radius: var(--r-md);
}
.ausklapp > summary::-webkit-details-marker { display: none; }
.ausklapp > summary:hover { color: var(--rot); }
.ausklapp > summary:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
.ausklapp[open] > summary { border-bottom: 1px solid var(--line); border-radius: var(--r-md) var(--r-md) 0 0; }
.ausklapp[open] > summary .faq-chevron { transform: rotate(180deg); }
.ausklapp-inhalt { padding: 1.4rem; }
.ausklapp-inhalt .info-card { background: var(--bg); }
.preis-titel {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 .6rem;
}
@media (max-width: 560px) { .ausklapp-inhalt { padding: 1rem .9rem; } }

/* Auf schmalen Schirmen umbrechen: Namen wie "Stempelmassage, Gesicht mit
   Algen-Modellage" passen sonst nicht neben Dauer und Preis in eine Zeile
   und schieben den Preis aus der Karte heraus. */
@media (max-width: 460px) {
  .preis-liste li { flex-wrap: wrap; row-gap: .1rem; }
  .preis-liste li > .preis-name { flex: 1 1 100%; }
  .preis-dauer { margin-right: auto; }
}

.spa-fussnote {
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: .87rem;
  color: var(--muted);
  max-width: 78ch;
}

/* ------------------------------ Gaestestimmen ------------------------ */
/* Endlos laufendes Band statt starrem Raster - siehe .laufband unten. */
/* Gleiche Bauart wie der Haeuser-Slider darunter: feste Spurbreite, gleiche
   Luecke, gleich hohe Karten. Anders als dort ist der Inhalt aber
   unterschiedlich lang. Deshalb DREI Karten je Reihe statt vier: breitere
   Karten brauchen fuer denselben Text weniger Zeilen, damit liegen die
   sechs Bewertungen bei 4 bis 7 Zeilen statt bei 4 bis 9 - und unter der
   kuerzesten bleiben rund 60 px Luft statt 180. */
.stimmen-band {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 340px;
  gap: 1.2rem;
  overflow-x: auto;
  padding: 4px 4px 1.2rem;
  margin: -4px -4px 0;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.stimmen-band::-webkit-scrollbar { display: none; }
.stimmen-band.wird-gezogen { cursor: grabbing; }
@media (min-width: 1000px) { .stimmen-band { grid-auto-columns: calc((100% - 2 * 1.2rem) / 3); } }
@media (max-width: 640px)  { .stimmen-band { grid-auto-columns: 78%; } }

.stimme {
  /* WICHTIG: .stimme ist ein <figure>. Browser geben figure von sich aus
     margin: 1em 40px - links und rechts also je 40 px. Ohne dieses margin:0
     wird die Karte 80 px schmaler als ihre Spur, und zwischen zwei Karten
     klaffen 99 px statt der 19 px, die das gap vorgibt. */
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.15rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
  /* Damit das Ziehen nicht versehentlich Text markiert */
  user-select: none;
}
.stimme:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: #dcc9c6; }
.stimme blockquote { margin: 0 0 .8rem; font-size: .95rem; line-height: 1.55; color: var(--ink-soft); }
.stimme blockquote::before { content: "\201E"; color: var(--gold); font-size: 1.4em; line-height: 0; }
.stimme blockquote::after { content: "\201C"; color: var(--gold); font-size: 1.4em; line-height: 0; }
.stimme figcaption {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--line);
  font-size: .84rem;
  color: var(--muted);
  display: flex;
  align-items: baseline;
  gap: .5rem;
  flex-wrap: wrap;
}
.stimme-name { font-weight: 600; color: var(--ink); }
.stimme-datum::before { content: "\00B7"; margin-right: .5rem; }
.stimme-quelle::before { content: "\00B7"; margin-right: .5rem; }
.stimme-herkunft { margin-left: auto; display: inline-flex; align-items: baseline; gap: .4rem; }

/* Booking-Schriftzug im Blau der Marke. Das ist bewusst die EINZIGE
   Stelle mit Blau auf der Seite: es kennzeichnet eine fremde Quelle und
   gehoert deshalb nicht zur Rosenalm-Farbwelt. 11,5:1 auf Weiss. */
.stimme-booking {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: -.02em;
  color: #003580;
  white-space: nowrap;
}
.booking-punkt { color: #0071c2; }
.stimme-note {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ------------------ Slider: die anderen Heimatel-Haeuser -------------- */
/* Nativ ueber overflow-x mit scroll-snap - keine Bibliothek. */
.slider-kopf { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.slider-knoepfe { display: flex; gap: .5rem; flex: 0 0 auto; }
.slider-knopf {
  appearance: none;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.slider-knopf svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.slider-knopf:hover:not(:disabled) { border-color: var(--rot); color: var(--rot); }
.slider-knopf:disabled { opacity: .35; cursor: default; }
@media (max-width: 640px) { .slider-knoepfe { display: none; } }

.slider {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 255px;
  gap: 1.2rem;
  overflow-x: auto;
  /* KEIN scroll-snap und KEIN scroll-behavior: smooth. Beides kaempft
     mit dem gleichmaessigen Selbstlauf des Laufbands - das Band wuerde
     bei jedem Bildschritt zurueckgerastet und ruckeln. */
  padding: 4px 4px 1.2rem;
  margin: -4px -4px 0;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.slider::-webkit-scrollbar { display: none; }
.slider.wird-gezogen { cursor: grabbing; }
/* Vier Karten im Blick auf breiten Schirmen, auf dem Handy eine plus die
   angeschnittene naechste - das zeigt, dass es weitergeht.
   KEIN minmax(0, ...): eine Untergrenze von 0 laesst die Spuren beliebig
   schrumpfen, dann quetschen sich alle zwoelf Karten in die sichtbare
   Breite und der Slider scrollt ueberhaupt nicht mehr. Eine feste
   Spurbreite laeuft dagegen sauber ueber. */
@media (min-width: 1000px) { .slider { grid-auto-columns: calc((100% - 3 * 1.2rem) / 4); } }
@media (max-width: 640px)  { .slider { grid-auto-columns: 78%; } }
.slider .card { height: 100%; user-select: none; }
/* Die Karten sollen sich beim Ziehen nicht als Bild loesen */
.slider img, .stimmen-band img { -webkit-user-drag: none; user-select: none; }
.haus-karte .card-media { aspect-ratio: 3 / 2; }
.haus-karte .card-body { gap: .25rem; }
.haus-karte h3 { font-size: 1.02rem; }
.haus-karte h3 a { color: var(--ink); text-decoration: none; }
.haus-karte h3 a:hover { color: var(--rot); }
.haus-karte .card-meta { gap: .35rem; }
.haus-extern {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; color: var(--muted);
}
.haus-extern svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------ Kontakt & FAQ ------------------------ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1rem; }
.contact-card {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: .2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.3rem 1.4rem;
  color: var(--ink);
}
.contact-card strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; letter-spacing: -.015em; }
.contact-card .muted { font-size: .88rem; }
.contact-hours { margin-top: .45rem; font-size: .8rem; font-weight: 600; letter-spacing: .06em; color: var(--gold-lesbar); }
.contact-card .btn { margin-top: 1.2rem; width: 100%; }

/* Zustaendigkeiten: bewusst zurueckhaltend gesetzt - eine Klarstellung,
   kein Aushang. Sie soll gelesen werden, aber die Kontaktwege darueber
   nicht ueberstrahlen. */
.zustaendig {
  margin-top: 1.6rem;
  padding: 1.1rem 1.4rem 1.2rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  max-width: 78ch;
}
.zustaendig-titel {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
  margin: 0 0 .7rem;
}
.zustaendig ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.zustaendig li {
  position: relative;
  padding-left: 1.05rem;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--muted);
}
.zustaendig li::before {
  content: "";
  position: absolute;
  left: 0; top: .6em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.zustaendig li b { color: var(--ink); font-weight: 600; }

.faq-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
/* Aufklappbare Antworten ueber details/summary: geht ohne JavaScript,
   ist tastaturbedienbar und wird von Screenreadern verstanden. */
.faq-item > summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem;
  padding: 1.15rem .6rem 1.15rem 0;
  cursor: pointer;
  list-style: none;
  border-radius: var(--r-sm);
  transition: color .14s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--rot); }
.faq-item > summary:focus-visible { outline: 2px solid var(--rot); outline-offset: 2px; }
.faq-item h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.faq-chevron {
  width: 20px; height: 20px; flex: 0 0 20px;
  fill: none; stroke: var(--gold); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .2s ease;
}
.faq-item[open] > summary .faq-chevron { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .faq-chevron { transition: none; } }
.faq-answer { padding: 0 2.4rem 1.3rem 0; }
.faq-answer p { margin: 0 0 .7rem; color: var(--ink-soft); max-width: 78ch; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ------------------------------ Hausregeln (/faq/) ------------------- */
/* Ziel der QR-Codes, die im Haus haengen. Bewusst gross und ruhig
   gesetzt: die Seite wird auf dem Handy im Treppenhaus gelesen. */
.regel-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.regel {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.1rem 1.3rem 1.2rem;
}
.regel-kopf {
  display: flex;
  align-items: center;
  gap: .8rem;
  padding-bottom: .8rem;
  margin-bottom: .8rem;
  border-bottom: 1px solid var(--line);
}
.regel-icon {
  width: 38px; height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  background: var(--rot-soft);
  display: inline-flex; align-items: center; justify-content: center;
}
.regel-icon svg { width: 19px; height: 19px; color: var(--rot); }
.regel h3 { margin: 0; font-size: 1.05rem; }

/* Kurze Aufzaehlung statt Textblock: jede Zeile ein Gedanke, jede mit
   eigenem Icon. align-content: start haelt die Punkte oben, sonst
   verteilte sie das Raster ueber die geteilte Kartenhoehe. */
.regel-punkte {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
  align-content: start;
}
.regel-punkte li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .91rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.regel-punkt-icon {
  width: 17px; height: 17px;
  flex: 0 0 17px;
  color: var(--gold);
  margin-top: .16rem;
}
.regel-punkte b { color: var(--ink); font-weight: 600; }

/* ------------------------------ Lageplan ----------------------------- */
.lageplan-bild {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .8rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.lageplan-bild:hover { border-color: var(--rot); box-shadow: var(--shadow-md); }
.lageplan-bild img { width: 100%; height: auto; border-radius: var(--r-sm); }
.lageplan-wege { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-top: 1rem; }
.lageplan-wege a { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 600; }
.lageplan-wege svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* ------------------------------ Textseiten --------------------------- */
.textseite { max-width: 74ch; }
.textseite h1 { margin-bottom: 1.2rem; }
.textseite h2 {
  font-size: 1.28rem;
  margin: 2.2rem 0 .7rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
}
.textseite h1 + h2 { border-top: none; padding-top: 0; margin-top: 1rem; }
.textseite .text-section:first-of-type h2 { border-top: none; padding-top: 0; margin-top: 1rem; }
.textseite h3 { font-size: 1.03rem; margin: 1.6rem 0 .5rem; }
.textseite p { color: var(--ink-soft); margin-bottom: .85rem; }
/* Mehrzeilige Angaben wie Anschriften: eng gesetzt und leicht abgehoben */
.textseite .datenblock {
  line-height: 1.55;
  background: var(--surface);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: .85rem 1.1rem;
  margin-bottom: 1rem;
}
.textseite .text-list { padding-left: 1.2rem; margin: 0 0 1rem; display: grid; gap: .35rem; }
.textseite .text-list li { color: var(--ink-soft); }
.textseite .text-list li::marker { color: var(--gold); }
.textseite a { word-break: break-word; }

/* ------------------------------ Fehlerseite 404 ---------------------- */
.fehlerseite { padding-top: 2rem; }
.fehler-wege { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 2.4rem; }

/* ------------------------------ Fuer Eigentuemer --------------------- */
/* Volle Breite auf grauem Grund, direkt ueber dem Footer. Bewusst in der
   Farbwelt von heims.de (Waldgruen) statt in Rosenalm-Rot - so ist auf den
   ersten Blick klar: hier wird eine andere Zielgruppe angesprochen. */
.owner-band {
  background: #eceae4;
  border-top: 1px solid #ddd9d0;
  padding: 2.4rem 0;
  margin-top: 3.5rem;
}
/* Mittig gesetzt: die Leiste laeuft ueber die volle Breite, linksbuendig
   stand der Text in der linken Haelfte und rechts blieb totes Feld. */
.owner-inner { display: block; text-align: center; }
.owner-text { max-width: 640px; margin: 0 auto; }
.owner-eyebrow { color: var(--heims); }
.owner-band h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); margin: .35rem 0 .55rem; color: var(--heims-dark); }
.owner-band p { color: #4b5347; font-size: .96rem; margin: 0 auto 1.2rem; max-width: 60ch; }
.owner-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem 1.4rem; }
.owner-contact a { display: inline-flex; align-items: center; gap: .4rem; color: #5c6459; text-decoration: none; font-size: .88rem; }
.owner-contact a:hover { color: var(--heims); }
.owner-contact .btn-icon { color: var(--heims); }
.owner-cta {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  background: var(--heims);
  color: #fff;
  text-decoration: none;
  font-size: .95rem;
  border-radius: var(--r-sm);
  padding: .72rem 1.5rem;
  margin-bottom: 1.2rem;
  transition: background .16s ease;
}
.owner-cta strong { font-weight: 700; }
.owner-cta:hover { background: var(--heims-dark); color: #fff; }
.owner-cta-arrow {
  width: 17px; height: 17px; flex: 0 0 17px;
  fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
  transition: transform .16s ease;
}
.owner-cta:hover .owner-cta-arrow { transform: translateX(3px); }
@media (max-width: 640px) { .owner-cta { display: flex; width: 100%; } }
@media (prefers-reduced-motion: reduce) { .owner-cta, .owner-cta-arrow { transition: none; } }
main:has(.owner-band) + .site-footer { margin-top: 0; }

/* ------------------------------ Sprunglink --------------------------- */
/* fixed statt absolute: so erscheint der Link auch dann im Blickfeld,
   wenn die Seite bereits gescrollt ist. */
.sprunglink {
  position: fixed;
  left: .5rem;
  top: -4rem;
  z-index: 300;
  padding: .6rem 1rem;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.sprunglink:focus { top: .5rem; color: #fff; }
#inhalt:focus { outline: none; }

/* ------------------------------ Footer ------------------------------- */
.site-footer { margin-top: 4rem; background: var(--ink); color: #b9bdca; }
.footer-inner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 1.8rem 3rem;
  padding: 3rem 0 2.4rem;
}
.footer-brand { display: flex; align-items: center; gap: 1.3rem; flex-wrap: wrap; }
.footer-logo { height: 42px; width: auto; }
.footer-brand p { margin: 0; font-size: .9rem; line-height: 1.5; color: #9299a8; }
.footer-links { display: flex; flex-wrap: wrap; gap: .6rem 1.8rem; }
.footer-links a { color: #cfd3dc; text-decoration: none; font-size: .93rem; padding: .25rem 0; }
.footer-links a:hover { color: var(--gold); }
.footer-social { display: flex; gap: .7rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .18);
  color: #cfd3dc;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: .5rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 1.3rem 0 1.7rem;
  font-size: .84rem;
  color: #8b92a1;            /* 4,7:1 auf dem Anthrazit */
}
.footer-heimatel { letter-spacing: .01em; }
.footer-heimatel a { color: #cfd3dc; }
.footer-heimatel a:hover { color: var(--gold); }
@media (max-width: 720px) {
  .footer-inner { flex-direction: column; align-items: flex-start; padding: 2.4rem 0 1.8rem; gap: 1.5rem; }
  .footer-links { gap: .5rem 1.4rem; }
}

/* ------------------------------ WhatsApp-Button ---------------------- */
.whatsapp-fab {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 45;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform .16s ease;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.07); }
body.hat-buchungsleiste .whatsapp-fab { bottom: 92px; }
@media (min-width: 1051px) { body.hat-buchungsleiste .whatsapp-fab { bottom: 18px; } }

/* -------------------- Nachbarn im Haus (/pool-und-sauna/) ------------- */
/* Reine Namensnennung zur Orientierung: bewusst schlicht und unverlinkt,
   damit keine Verwechslung mit unseren eigenen Wohnungen entsteht. */
/* Vier Kacheln, gleich hoch. build.ps1 verteilt die alphabetische Liste
   gleichmaessig darauf - deshalb entsteht hier KEIN Weissraum, obwohl das
   Raster streckt: jede Kachel bekaeme ohnehin gleich viele Zeilen. */
.nachbar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .9rem;
}
@media (max-width: 900px) { .nachbar-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .nachbar-grid { grid-template-columns: 1fr; } }
.nachbar-gruppe {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .85rem .95rem;
}
.nachbar-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; align-content: start; }
.nachbar-liste li {
  font-size: .82rem;
  line-height: 1.35;
  color: var(--ink-soft);
  padding-left: .75rem;
  position: relative;
}
.nachbar-liste li::before {
  content: "";
  position: absolute;
  left: 0; top: .52em;
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--gold);
}

/* ------------- Kleinere Einrichtungen im Haus (/haus/#im-haus) --------- */
/* Vier schmale Kacheln, gleich hoch. Bild oben, Text darunter. Eine Kachel
   ohne Foto (noch keins vorhanden) bleibt gleich hoch - deshalb subgrid
   statt fester Hoehen. */
.betrieb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}
.betrieb {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.betrieb-bild { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rot-soft); }
.betrieb-bild img { width: 100%; height: 100%; object-fit: cover; }
/* Kachel ohne Foto: Symbol gross auf ruhigem Grund statt einer Luecke. */
.betrieb-bild-leer { display: grid; place-items: center; }
.betrieb-bild-leer svg {
  width: 40%;
  max-width: 68px;
  height: auto;
  aspect-ratio: 1;
  color: var(--gold);
  opacity: .55;
}
.betrieb-text { padding: .8rem .95rem 1rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.betrieb-text h3 {
  font-size: .96rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.betrieb-icon { width: 17px; height: 17px; flex: 0 0 auto; color: var(--rot); }
.betrieb-text p { margin: 0; font-size: .85rem; line-height: 1.45; color: var(--ink-soft); }
.betrieb-tel {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
  font-weight: 600;
  color: var(--rot);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.betrieb-tel:hover { text-decoration: underline; }
.betrieb-tel .btn-icon { width: 15px; height: 15px; }
.betrieb-extern {
  margin-top: auto;
  align-self: flex-start;
  font-size: .72rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .16rem .5rem;
}
@media (max-width: 900px) { .betrieb-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .betrieb-grid { grid-template-columns: 1fr; } }
