/* =====================================================================
   Ferienhaus Reich – Design (hell, ruhig, pastellig)
   ---------------------------------------------------------------------
   FARBEN: Alle Farben stehen hier oben als Variablen. Ersetzen Sie einfach
   die Hex-Werte, die ganze Seite passt sich an.
   ===================================================================== */
:root {
  --ink:        #24302B;  /* Text, dunkles Grün-Anthrazit */
  --muted:      #5E6B65;  /* Nebentext */

  --sage:       #A9C3B5;  /* Pastell-Salbei (Akzentflächen) */
  --sage-soft:  #E6EEE9;  /* sehr helles Salbei (Abschnitte) */
  --sage-deep:  #3F6656;  /* Buttons, Links, Auswahl */
  --sage-deeper:#2F5142;  /* Hover */

  --sky:        #BDD0E0;  /* Pastell-Himmelblau */
  --sky-soft:   #E8EEF4;  /* sehr helles Blau (Abschnitte) */

  --sand:       #E8D5BC;  /* Pastell-Sand (Akzent) */
  --sand-soft:  #F7F1E8;  /* sehr helles Sand (Abschnitte) */

  --error:      #B33A2A;
  --paper:      #FFFFFF;
  --page:       #FCFCFA;
  --line:       #D5DDD8;  /* feine Linien */

  --font-display: "Source Serif", Georgia, "Times New Roman", serif;
  --font-text:    "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --gutter: clamp(20px, 5vw, 40px);
  --max: 1140px;
  --header-h: 60px;
}
@media (min-width: 640px) { :root { --header-h: 68px; } }

@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font-text); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--sage-deep); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--sage-deeper); }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; font-weight: 600; }
h2 { font-size: clamp(1.95rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.12; letter-spacing: -.012em; margin-bottom: .6em; max-width: 24ch; }
h3 { font-size: 1.3rem; line-height: 1.3; }
h4 { font-size: 1.08rem; }
p { margin: 0 0 1em; max-width: 66ch; }
ul { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 650; }
small { font-size: .85em; }
:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--paper); color: var(--ink); padding: .6em 1em; z-index: 200; border: 1px solid var(--ink); }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(980px + var(--gutter) * 2); }
.lead { font-size: 1.2rem; line-height: 1.6; }
.fineprint { font-size: .9rem; color: var(--muted); line-height: 1.5; }

.icon { width: 1.4em; height: 1.4em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--xl { width: 52px; height: 52px; stroke-width: 1.8; color: var(--sage-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 50px; padding: .7em 1.7em; border: 1px solid var(--ink); border-radius: 0;
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; letter-spacing: .01em; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
  color: var(--ink); background: transparent;
  transition: background-color .18s, color .18s, border-color .18s;
}
.btn:hover { background: var(--paper); color: var(--ink); }
.btn--primary { background: var(--sage-deep); border-color: var(--sage-deep); color: #fff; }
.btn--primary:hover { background: var(--sage-deeper); border-color: var(--sage-deeper); color: #fff; }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: #38463F; border-color: #38463F; color: #fff; }
.btn--ghost { background: transparent; }
.btn--ghost:hover { background: var(--paper); }
.btn--sm { min-height: 42px; padding: .45em 1.15em; font-size: .95rem; }
.btn--lg { min-height: 58px; padding: .8em 2em; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; padding: 0; border-radius: 0;
}
.icon-btn:hover { border-color: var(--ink); background: var(--sage-soft); }
.icon-btn[disabled] { opacity: .3; cursor: default; }
.icon-btn[disabled]:hover { background: var(--paper); border-color: var(--line); }

/* ---------- Kopfzeile (immer deckend, wird beim Scrollen nie überlagert) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h); color: var(--ink);
  background: var(--page); border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 14px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; margin-right: auto; min-width: 0; }
.brand:hover { color: inherit; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__text strong { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; white-space: nowrap; }
.brand__text small { font-size: .74rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.header-cta { display: none; }
.menu-btn { background: transparent; border: 0; color: inherit; width: 46px; height: 46px; display: inline-grid; place-items: center; cursor: pointer; margin-right: -8px; }
.menu-btn .icon { width: 28px; height: 28px; }

/* Menü auf dem Handy: kompaktes Ausklapp-Feld unter der Kopfzeile, jeder Punkt als Kachel */
.nav {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 79; background: var(--paper);
  border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px rgba(36,48,43,.14);
  display: none; flex-direction: column; gap: 6px; padding: 12px var(--gutter) 14px;
  max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
}
.nav a {
  display: block; padding: .72em 1em; background: var(--sage-soft); color: var(--ink); text-decoration: none;
  font-family: var(--font-text); font-size: 1rem; font-weight: 600;
}
.nav a:hover, .nav a:active { background: var(--sage); color: var(--ink); }
.nav .nav__cta { background: var(--sage-deep); color: #fff; text-align: center; margin-top: 4px; }
.nav .nav__cta:hover, .nav .nav__cta:active { background: var(--sage-deeper); color: #fff; }
.nav.is-open { display: flex; }

/* ---------- Hero: beginnt mit dem Bild des Ferienhauses ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--sage-soft) 0%, #F2F6F3 100%);
  padding-top: var(--header-h);
  border-bottom: 1px solid var(--line);
}
.hero__visual {
  position: relative; width: 100%; aspect-ratio: 4 / 3; max-height: 58vh; overflow: hidden;
  background: linear-gradient(155deg, var(--sky) 0%, var(--sage) 100%);
}
.hero__visual::before { content: ""; position: absolute; left: 50%; top: 50%; width: 15%; min-width: 64px; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40' fill='none' stroke='white' stroke-width='1.4' stroke-linecap='square'%3E%3Cpath d='M4 20 L20 6 L36 20'/%3E%3Cpath d='M9 17 V35 H31 V17'/%3E%3Cpath d='M17 35 V25 H23 V35'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .9; }
.hero__visual img { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 45%; }
.hero__grid { display: grid; gap: 18px; padding-block: 28px 40px; }
.hero h1 { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.012em; max-width: 18ch; margin-bottom: .4em; text-wrap: balance; }
.hero__sub { font-weight: 500; font-size: 1.05rem; color: var(--muted); max-width: 44ch; margin-bottom: 1.4em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__lead { font-size: 1.08rem; line-height: 1.6; max-width: 42ch; margin: 0; }
@media (min-width: 700px) { .hero__visual { aspect-ratio: 16 / 7; max-height: 62vh; } }
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.3fr .7fr; gap: 56px; align-items: center; padding-block: 32px 48px; }
  .hero h1 { max-width: 26ch; }
}

/* Kennzahlen */
.facts { border-bottom: 1px solid var(--line); background: var(--paper); }
.facts__list { display: grid; grid-template-columns: repeat(2, 1fr); }
.facts__list li {
  display: flex; flex-direction: column; gap: .4rem; padding: 26px var(--gutter) 28px; min-height: 140px;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts__list li:nth-child(2n) { border-right: 0; }
.facts__list li:nth-last-child(-n+2) { border-bottom: 0; }
.facts__list li:nth-child(1) { background: var(--sage-soft); }
.facts__list li:nth-child(2) { background: var(--sky-soft); }
.facts__list li:nth-child(3) { background: var(--sand-soft); }
.facts__list li:nth-child(4) { background: var(--paper); }
.facts__list strong { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.3rem, 1.7rem + 2vw, 3.2rem); line-height: 1; }
.facts__list span { font-size: .98rem; line-height: 1.35; color: var(--muted); max-width: 22ch; }
@media (min-width: 800px) {
  .facts__list { grid-template-columns: repeat(4, 1fr); }
  .facts__list li, .facts__list li:nth-child(2n) { border-right: 1px solid var(--line); border-bottom: 0; padding-inline: 30px; }
  .facts__list li:last-child { border-right: 0; }
}

/* ---------- Abschnitte ---------- */
.section { padding-block: clamp(56px, 8vw, 112px); }
.section + .section { border-top: 1px solid var(--line); }
.section--sage { background: var(--sage-soft); }
.section--sky { background: var(--sky-soft); }
.section--sand { background: var(--sand-soft); }

.split { display: grid; gap: 40px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
  .split--top { align-items: start; }
}
.split.split--single { grid-template-columns: 1fr; }
.split--single .split__text { max-width: 46rem; }
.split__media { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.split__media[data-empty] { display: none; }
.ph { margin: 0; overflow: hidden; background: var(--sky-soft); }
.ph { position: relative; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph--tall { grid-row: 1 / span 2; min-height: 100%; }
.ph--wide { aspect-ratio: 4 / 3; }
.ph[hidden] { display: none; }
.split__media--plain { display: block; }
.split__media--plain h3 { margin: 0 0 .5em; }
.split__media--plain h3:not(:first-child) { margin-top: 1.6em; }
@media (min-width: 900px) {
  .split__media--plain { border-left: 1px solid var(--line); padding-left: clamp(28px, 4vw, 56px); }
}

/* Grundrisse */
.plans { margin-top: clamp(44px, 6vw, 80px); }
.plans__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.tabs { display: inline-flex; border: 1px solid var(--line); background: var(--paper); }
.tabs button { font-family: var(--font-text); font-weight: 600; font-size: 1rem; border: 0; background: transparent; color: var(--ink); padding: .6em 1.3em; min-height: 46px; cursor: pointer; border-radius: 0; }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button[aria-selected="true"] { background: var(--sage-deep); color: #fff; }
.plans__panels img { width: 100%; max-width: 760px; border: 1px solid var(--line); background: #fff; }
.plans[data-empty] { display: none; }

/* Das Ferienhaus passt für … */
.who { display: grid; gap: 22px; margin-top: 34px; }
.who article { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--sage); padding: 26px 24px 28px; }
.who article:nth-child(2) { border-top-color: var(--sky); }
.who article:nth-child(3) { border-top-color: var(--sand); }
.who h3 { margin: 0 0 .5em; font-size: 1.45rem; }
.who p { margin: 0; font-size: 1rem; line-height: 1.6; }
@media (min-width: 700px) { .who { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .who { grid-template-columns: repeat(4, 1fr); } }

/* Urlaubsprogramm: nur die Überschriften sind sichtbar, Klick klappt die Infos auf */
.acts { display: grid; gap: 12px; margin-top: 32px; max-width: 56rem; }
.act { border: 1px solid var(--line); background: var(--paper); }
.act__head { position: relative; display: block; list-style: none; cursor: pointer; padding: 18px 62px 18px 22px; }
.act__head::-webkit-details-marker { display: none; }
.act__head h3 { font-size: 1.4rem; }
.act__head::before, .act__head::after { content: ""; position: absolute; right: 24px; top: 50%; width: 18px; height: 2px; background: var(--sage-deep); transition: transform .2s; }
.act__head::after { transform: rotate(90deg); }
.act[open] > .act__head::after { transform: rotate(0); }
.act[open] > .act__head { border-bottom: 1px solid var(--line); }
.act--wandern > .act__head { background: var(--sage-soft); }
.act--rad > .act__head { background: var(--sky-soft); }
.act--baden > .act__head { background: var(--sand-soft); }
.act--wellness > .act__head { background: #F1ECF3; }
.act--winter > .act__head { background: #EFF3F7; }
.act__head:hover { filter: brightness(.975); }
.act__body { padding: 20px 22px 24px; display: flex; flex-direction: column; }
.act__body ul { margin-bottom: 1.1em; }
.act__body li { position: relative; padding: .3em 0 .3em 1.4rem; font-size: 1rem; line-height: 1.55; }
.act__body li::before, .ticks li::before, .infobox li::before { content: ""; position: absolute; left: 0; top: .95em; width: .42rem; height: .42rem; background: var(--sage-deep); }
.act__link { font-weight: 600; color: var(--sage-deep); text-decoration: none; border-bottom: 1px solid var(--sage-deep); align-self: flex-start; padding-bottom: 2px; }
.act__link:hover { background: var(--sage-soft); color: var(--sage-deeper); }

/* Galerie */
/* Raster geht bei 21 Fotos auf jeder Breite ohne Lücke auf:
   Handy 2 Spalten (erstes Foto volle Breite), Tablet 3, Desktop 4 Spalten. */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 26px; }
.tile { position: relative; padding: 0; border: 0; background: var(--sky-soft); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; display: block; border-radius: 0; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.tile:hover img { transform: scale(1.04); }
.tile:focus-visible { outline: 3px solid var(--sage-deep); outline-offset: 2px; }
.gallery > .tile:first-child { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .gallery > .tile:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (min-width: 560px) {
  .gallery--umgebung { grid-template-columns: repeat(3, 1fr); }
  .gallery--umgebung > .tile:first-child { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; }
}
.gallery__sub { margin: 48px 0 0; font-size: 1.4rem; }
/* Bildausschnitte, damit bei Hochformat-Fotos das Wichtige sichtbar bleibt */
.tile img[src*="treppe-galerie"], .tile img[src*="wohnraum-galerie"] { object-position: 50% 70%; }
.tile img[src*="doppelzimmer.jpg"] { object-position: 50% 75%; }
.tile img[src*="dachfenster"], .tile img[src*="mosaikfliesen"], .tile img[src*="toilette"] { object-position: 50% 65%; }

/* Fotos in den aufklappbaren Freizeit-Rubriken */
.act__img { margin: 0 0 18px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--sky-soft); }
.act__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 700px) { .act__img { aspect-ratio: 21 / 9; } }
.act__img[hidden] { display: none; }

/* Ausstattung */
.equip { display: grid; gap: 22px; margin-top: 34px; }
@media (min-width: 720px) { .equip { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .equip { grid-template-columns: repeat(3, 1fr); } }
.equip > div { background: var(--paper); border: 1px solid var(--line); border-top: 4px solid var(--sage); padding: 22px 24px 24px; }
.equip > div:nth-child(3n+2) { border-top-color: var(--sky); }
.equip > div:nth-child(3n+3) { border-top-color: var(--sand); }
.equip h3 { margin-bottom: .6em; }
.equip__note { margin-top: 1.4em; }
.ticks li { position: relative; padding: .28em 0 .28em 1.4rem; font-size: 1rem; line-height: 1.5; }
.ticks li::before { top: .9em; }

/* Lage */
.dist { margin: 0 0 1.4em; }
.dist div, .prices div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: .7em 0; border-bottom: 1px solid var(--line); }
.dist div:first-child { border-top: 1px solid var(--line); }
.dist dt { font-weight: 600; }
.dist dd { margin: 0; color: var(--muted); text-align: right; }

/* Preise */
.prices { margin: 1.6em 0 1em; max-width: 36rem; }
.prices div:first-child { border-top: 1px solid var(--line); }
.prices dt { font-weight: 600; line-height: 1.3; }
.prices dt small { display: block; margin-top: .25em; font-weight: 400; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.prices dd { margin: 0; flex: none; min-width: 9.5rem; text-align: right; font-family: var(--font-display); font-weight: 600; font-size: 1.7rem; white-space: nowrap; }
.prices dd small { display: block; font-family: var(--font-text); font-weight: 500; font-size: .8rem; color: var(--muted); white-space: normal; }

/* ---------- Buchung ---------- */
.infobox { background: var(--sand-soft); border: 1px solid var(--line); padding: 22px 24px; margin-top: 26px; }
.infobox h3 { margin-bottom: .6em; }
.infobox li { position: relative; padding: .25em 0 .25em 1.4rem; font-size: .98rem; line-height: 1.5; }
.infobox li::before { top: .85em; }
.notice { background: var(--sand-soft); border: 1px solid var(--line); padding: 12px 16px; }
.cal-card, .req-card, .success { background: var(--paper); border: 1px solid var(--line); padding: clamp(18px, 4vw, 34px); margin-top: 24px; }
.step-title { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.step-no { display: inline-grid; place-items: center; width: 36px; height: 36px; background: var(--sage-deep); color: #fff; font-family: var(--font-display); font-weight: 600; }

.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.cal-head__title { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; text-align: center; flex: 1; }
.cal-months { display: grid; gap: 26px; grid-template-columns: 1fr; }
.cal-months.two { grid-template-columns: 1fr 1fr; gap: 40px; }
.month__name { font-family: var(--font-display); font-weight: 600; text-align: center; margin: 0 0 8px; font-size: 1.05rem; }
.cal-months:not(.two) .month__name { display: none; }
.month__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.dow { text-align: center; font-size: .8rem; color: var(--muted); padding: 4px 0; font-weight: 600; }
.day {
  position: relative; aspect-ratio: 1 / 1; min-height: 38px; width: 100%; min-width: 0; padding: 0;
  border: 1px solid transparent; border-radius: 0; background: var(--sage-soft); color: var(--ink);
  font-family: var(--font-text); font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: background-color .12s, border-color .12s;
}
.day:hover { border-color: var(--sage-deep); background: #fff; }
.day--empty { visibility: hidden; pointer-events: none; }
.day--past { background: transparent; color: #B3BDB8; cursor: default; font-weight: 500; }
.day--past:hover { border-color: transparent; background: transparent; }
.day--booked { background: var(--sand); color: #6B5A45; text-decoration: line-through; cursor: not-allowed; font-weight: 500; }
.day--booked:hover { border-color: transparent; background: var(--sand); }
.day--buffer { background: repeating-linear-gradient(135deg, #F1F5F2 0 5px, #E3EAE5 5px 10px); color: #8A9690; cursor: not-allowed; font-weight: 500; }
.day--buffer:hover { border-color: transparent; background: repeating-linear-gradient(135deg, #F1F5F2 0 5px, #E3EAE5 5px 10px); }
.day--today::after { content: ""; position: absolute; bottom: 5px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; background: var(--sage-deep); }
.day--can-end { border: 1px dashed var(--sage-deep); background: var(--paper); cursor: pointer; text-decoration: none; }
.day--can-end:hover { border-style: solid; background: var(--sage-soft); }
.day--in, .day--hover { background: var(--sage); border-color: transparent; text-decoration: none; }
.day--start, .day--end { background: var(--sage-deep); color: #fff; border-color: var(--sage-deep); text-decoration: none; }
.day--start:hover, .day--end:hover { background: var(--sage-deep); }
.day--start.day--today::after, .day--end.day--today::after { background: #fff; }

.cal-msg { min-height: 1.6em; margin: 16px 0 6px; font-size: 1rem; font-weight: 500; color: var(--error); max-width: none; }
.cal-msg.is-ok { color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; color: var(--muted); margin: 6px 0 20px; }
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 16px; height: 16px; display: inline-block; }
.lg--free { background: var(--sage-soft); border: 1px solid var(--line); }
.lg--booked { background: var(--sand); }
.lg--buffer { background: repeating-linear-gradient(135deg, #F1F5F2 0 3px, #E3EAE5 3px 6px); border: 1px solid var(--line); }
.lg--sel { background: var(--sage-deep); }
.cal-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 460px; }
.cal-dates label { font-size: .92rem; font-weight: 600; display: grid; gap: 5px; min-width: 0; }
.cal-dates input { min-width: 0; max-width: 100%; }

/* Formular */
.req-grid { display: grid; gap: 28px; }
.summary { background: var(--sage-soft); border: 1px solid var(--line); padding: 22px; }
.summary h4 { margin-bottom: .7em; }
.summary__empty { margin: 0; color: var(--muted); font-size: 1rem; }
.summary__dates { font-weight: 650; font-size: 1.08rem; line-height: 1.4; margin: 0 0 .1em; }
.summary__dates small { font-weight: 500; color: var(--muted); }
.summary__nights { color: var(--muted); margin: 0 0 .9em; font-size: 1rem; }
.summary__lines { margin: 0; font-size: .98rem; }
.summary__lines div { display: flex; justify-content: space-between; gap: 12px; padding: .3em 0; }
.summary__lines dd { margin: 0; white-space: nowrap; font-weight: 600; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: .8em 0 .5em; padding-top: .8em; border-top: 1px solid var(--ink); }
.summary__total strong { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; }
.summary .fineprint { margin: 0; }
@media (min-width: 900px) {
  .req-grid { grid-template-columns: 1fr 320px; align-items: start; }
  .summary { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-h) + 16px); }
  .fields { grid-column: 1; grid-row: 1; }
}

.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 6px; }
.field label small { font-weight: 500; color: var(--muted); }
.field label .req { color: var(--error); }
input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 50px; padding: .65em .85em; font: inherit; font-size: 1rem; font-family: var(--font-text);
  color: var(--ink); background: var(--paper); border: 1px solid #9FB0A8; border-radius: 0; appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324302B' stroke-width='2' stroke-linecap='square'%3E%3Cpath d='M5 9l7 7 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7em center; background-size: 1.2em; padding-right: 2.6em;
}
textarea { resize: vertical; min-height: 100px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--sage); outline-offset: 0; border-color: var(--sage-deep); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--error); background: #FFF7F5; }
.field-row { display: grid; gap: 0 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.field-row--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field-row { align-items: start; }
.field-row--guests { grid-template-columns: 1fr; margin-bottom: 4px; }
.field-row--address { grid-template-columns: 1fr 2fr; }
.field-row--address .field:first-child { grid-column: 1 / -1; }
@media (min-width: 560px) {
  .field-row--guests { grid-template-columns: repeat(3, 1fr); }
  .field-row--address { grid-template-columns: 2fr 1fr 2fr; }
  .field-row--address .field:first-child { grid-column: auto; }
}
.field__hint { font-size: .9rem; color: var(--muted); margin: 6px 0 0; max-width: none; }
.stepper { display: flex; align-items: center; gap: 6px; }
.stepper button { flex: none; width: 46px; height: 50px; border: 1px solid #9FB0A8; background: var(--paper); font-family: var(--font-text); font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer; border-radius: 0; }
.stepper button:hover { background: var(--sage-soft); border-color: var(--sage-deep); }
.stepper input { text-align: center; padding-inline: .2em; min-width: 0; -moz-appearance: textfield; font-weight: 600; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 8px 0 12px; font-size: 1rem; line-height: 1.5; cursor: pointer; }
.check input { flex: none; width: 24px; height: 24px; min-height: 0; margin: 2px 0 0; accent-color: var(--sage-deep); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { background: #FFF3F0; border: 1px solid var(--error); color: #7A1F12; padding: 12px 14px; font-size: 1rem; max-width: none; }
.form-ok { background: var(--sage-soft); border: 1px solid var(--sage-deep); padding: 12px 14px; max-width: none; }
.success { text-align: center; padding-block: clamp(38px, 7vw, 68px); background: var(--sage-soft); }
.success p { margin-inline: auto; }
.success .icon { margin: 0 auto 14px; }

/* FAQ */
.faq { margin-top: 30px; max-width: 52rem; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 56px 20px 4px; position: relative; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 12px; top: 50%; width: 18px; height: 2px; background: var(--sage-deep); transition: transform .2s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 56px 22px 4px; margin: 0; max-width: 62ch; }

/* ---------- Kontakt ---------- */
.contact { display: grid; gap: 12px; margin: 1.4em 0; }
.contact li { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); font-weight: 600; }
.contact a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--sage-deep); }
.contact a:hover { background: var(--paper); }
.contact-form { background: var(--paper); border: 1px solid var(--line); padding: clamp(22px, 4vw, 34px); }
.contact-form h3 { margin-bottom: 1em; }

/* ---------- Fuß ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 40px 0 calc(40px + 84px); font-size: .98rem; }
.site-footer p { margin: 0 0 .5em; max-width: none; }
.site-footer a { color: var(--ink); margin-right: 20px; }
.footer-row { display: grid; gap: 10px; }
@media (min-width: 720px) { .site-footer { padding-bottom: 40px; } }

/* ---------- Mobiler Schnellzugriff ---------- */
.dock { position: fixed; z-index: 55; left: 0; right: 0; bottom: 0; display: flex; gap: 12px; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.dock .btn { min-height: 50px; padding-inline: 1.1em; }
.dock .btn--primary { flex: 1; }
.dock.is-visible { transform: none; }
@media (min-width: 720px) { .dock { display: none; } }

/* ---------- Bildbetrachter ---------- */
dialog.lightbox { border: 0; padding: 0; margin: 0; width: 100%; max-width: 100vw; height: 100%; max-height: 100dvh; background: transparent; color: #fff; }
dialog.lightbox[open] { display: grid; grid-template-columns: 56px 1fr 56px; align-items: center; }
dialog.lightbox::backdrop { background: rgba(36,48,43,.93); }
.lightbox figure { margin: 0; grid-column: 2; display: grid; justify-items: center; gap: 10px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: 80dvh; object-fit: contain; }
.lightbox figcaption { font-size: .98rem; text-align: center; }
.lightbox .icon-btn { background: var(--paper); }
.lightbox__close { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 2; }
.lightbox__nav--prev { grid-column: 1; grid-row: 1; justify-self: center; }
.lightbox__nav--next { grid-column: 3; grid-row: 1; justify-self: center; }
@media (max-width: 640px) { dialog.lightbox[open] { grid-template-columns: 8px 1fr 8px; } .lightbox__nav { position: absolute; bottom: 20px; z-index: 2; } .lightbox__nav--prev { left: 20px; } .lightbox__nav--next { right: 20px; } }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 640px) { .header-cta { display: inline-flex; } .nav .nav__cta { display: none; } }
@media (min-width: 1000px) {
  .menu-btn { display: none; }
  .nav { position: static; display: flex; flex-direction: row; gap: 2px; padding: 0; background: transparent; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .nav a { background: transparent; font-size: .98rem; font-weight: 550; padding: .45em .8em; }
  .nav a:hover { background: var(--sage-soft); }
}

/* ---------- Rechtstexte ---------- */
.legal-page { background: var(--page); }
.legal-bar { background: var(--sage-soft); border-bottom: 1px solid var(--line); padding: 14px 0; }
.legal-bar a { color: var(--ink); font-weight: 650; text-decoration: none; }
.legal { padding-block: clamp(36px, 6vw, 72px); }
.legal h1 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.4rem); margin-bottom: .6em; }
.legal h2 { font-size: 1.5rem; margin: 1.8em 0 .5em; max-width: none; }
.legal h3 { font-size: 1.15rem; margin: 1.4em 0 .4em; }
.legal p, .legal li { max-width: 70ch; font-size: 1.05rem; }
.legal ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.legal .hinweis { background: var(--sand-soft); border: 1px solid var(--line); padding: 12px 16px; font-size: .98rem; }

.acts-note { margin-top: 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media print { .site-header, .dock, .hero__visual { display: none; } }

/* ---------- Einwilligung (nur sichtbar, wenn Tracking in assets/tracking.js aktiviert ist) ---------- */
.consent { position: fixed; z-index: 120; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--ink); padding: 14px var(--gutter) calc(14px + env(safe-area-inset-bottom)); box-shadow: 0 -12px 32px rgba(36,48,43,.16); }
.consent__inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 14px; }
.consent h2 { font-size: 1.05rem; margin: 0 0 .25em; max-width: none; }
.consent p { margin: 0; font-size: .9rem; line-height: 1.5; max-width: 70ch; }
.consent__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.consent__actions .btn { flex: 1 1 0; min-height: 46px; padding-inline: .8em; }
.consent-link { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }
@media (min-width: 800px) { .consent__inner { grid-template-columns: 1fr auto; align-items: center; gap: 32px; } .consent__actions .btn { flex: 0 0 auto; min-width: 150px; } }

/* ---------- Handy: kompaktere Schrift und Abstände ---------- */
@media (max-width: 600px) {
  body { font-size: 1rem; line-height: 1.6; }
  h2 { font-size: 1.65rem; line-height: 1.15; margin-bottom: .5em; }
  h3 { font-size: 1.15rem; }
  .lead { font-size: 1.04rem; }
  .section { padding-block: 44px; }
  .split { gap: 28px; }
  .brand__text strong { font-size: 1.05rem; }
  .hero__grid { padding-block: 24px 34px; }
  .hero h1 { font-size: 2rem; }
  .hero__sub { font-size: .98rem; margin-bottom: 1.2em; }
  .hero__lead { font-size: 1rem; }
  .btn { min-height: 48px; padding: .6em 1.3em; font-size: .98rem; }
  .btn--lg { min-height: 50px; font-size: 1rem; padding: .7em 1.4em; }
  .hero__cta .btn { flex: 1 1 100%; }
  .facts__list li { min-height: 104px; padding: 16px 16px 18px; gap: .3rem; }
  .facts__list strong { font-size: 1.9rem; }
  .facts__list span { font-size: .88rem; }
  .who article, .equip > div, .infobox, .summary { padding: 18px; }
  .who h3 { font-size: 1.22rem; }
  .who p, .ticks li, .act__body li { font-size: .97rem; }
  .act__head { padding: 15px 56px 15px 18px; }
  .act__head h3 { font-size: 1.2rem; }
  .act__head::before, .act__head::after { right: 20px; }
  .act__body { padding: 16px 18px 20px; }
  .prices dd { font-size: 1.4rem; min-width: 7.5rem; }
  .prices dt { font-size: .98rem; }
  .cal-card, .req-card { padding: 16px; }
  .summary__total strong { font-size: 1.6rem; }
  .faq summary { font-size: 1.08rem; padding: 16px 46px 16px 2px; }
  .faq details p { font-size: .98rem; padding-right: 40px; }
  .contact li { font-size: 1.12rem; }
  .step-title h3 { font-size: 1.12rem; }
  .step-no { width: 32px; height: 32px; }
}

/* Sehr kleine Handys (bis 380 px, z. B. iPhone SE): nichts darf seitlich überstehen */
@media (max-width: 380px) {
  .tabs { display: flex; width: 100%; }
  .tabs button { flex: 1; padding: .6em .5em; }
  .prices div { gap: 4px 10px; flex-wrap: wrap; }
  .prices dt { min-width: 0; hyphens: auto; }
  .prices dd { margin-left: auto; }
  .prices dd { min-width: 0; font-size: 1.25rem; }
  .prices dd small { font-size: .74rem; }
  .dock { gap: 8px; }
  .dock .btn { padding-inline: .7em; font-size: .95rem; }
  .dock .btn--primary { min-width: 0; white-space: normal; text-align: center; line-height: 1.2; }
}
