/* Ferienhaus am Twistesee – Wald & See */
:root {
  --wald: #1f3a2c;
  --wald-2: #2e5240;
  --moos: #e6e9d8;
  --see: #2f6b74;
  --see-hell: #cfe3e2;
  --sand: #f4efe4;
  --holz: #8a5a34;
  --pilz: #b8332b;
  --text: #24302a;
  --text-leise: #56635b;
  --rund: 14px;
  --schatten: 0 10px 30px rgba(31, 58, 44, .14);
  --kopf-hoehe: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--kopf-hoehe); }
body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--see); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; line-height: 1.2; font-weight: 700; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .2em 0 .7em; color: var(--wald); }
h3 { font-size: 1.2rem; margin: 0 0 .5em; color: var(--wald); }

.inhalt { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.inhalt.schmal { max-width: 680px; }
.abschnitt { padding: 72px 0; }
.abschnitt-moos { background: var(--moos); }
.abschnitt-see { background: var(--see); color: #eef6f5; }
.abschnitt-see h2, .abschnitt-see .kicker { color: #fff; }
.kicker {
  margin: 0; text-transform: uppercase; letter-spacing: .14em;
  font-size: .8rem; font-weight: 700; color: var(--holz);
}
.zwei-spalten { display: grid; gap: 40px; align-items: start; }
@media (min-width: 860px) { .zwei-spalten { grid-template-columns: 1.3fr 1fr; gap: 64px; } }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 24px; border-radius: 999px;
  background: var(--pilz); color: #fff; text-decoration: none; font-weight: 700;
  border: 2px solid var(--pilz); cursor: pointer; font-size: 1rem;
  transition: transform .15s, background .15s;
}
.knopf:hover { transform: translateY(-1px); background: #9f2a23; }
.knopf-rand { background: transparent; border-color: #fff; color: #fff; }
.knopf-rand:hover { background: rgba(255,255,255,.15); }
.knopf-rand-hell { background: transparent; border-color: #fff; color: #fff; margin-top: 8px; }
.knopf-rand-hell:hover { background: rgba(255,255,255,.15); }
.knopf-breit { width: 100%; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid #e7b04a; outline-offset: 2px;
}

/* Kopfleiste */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--kopf-hoehe);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; color: #fff; transition: background .25s, box-shadow .25s;
}
.kopf.fest { background: var(--wald); box-shadow: 0 2px 12px rgba(0,0,0,.2); }
/* Logo: Wortmarke "HAUS am Twistesee" – das A ist das Nurdachhaus */
.marke { display: flex; align-items: baseline; gap: 10px; color: #fff; text-decoration: none; font-family: Georgia, "Times New Roman", serif; line-height: 1; white-space: nowrap; }
.wortmarke { font-size: 28px; font-weight: 700; letter-spacing: .03em; }
.wortmarke svg { display: inline-block; width: .84em; height: .71em; margin: 0 .03em; vertical-align: baseline; }
.marke-zusatz { font-size: 19px; font-style: italic; color: var(--see-hell); }
@media (max-width: 380px) { .wortmarke { font-size: 24px; } .marke-zusatz { font-size: 16px; } }
.navi { display: flex; align-items: center; gap: 6px; }
.navi a { color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 8px; font-weight: 600; }
.navi a:not(.knopf):hover { background: rgba(255,255,255,.14); }
.navi .knopf-hell { min-height: 42px; padding: 8px 20px; margin-left: 8px; }
.menue-knopf { display: none; }

@media (max-width: 1000px) {
  .menue-knopf {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 48px; height: 48px; padding: 12px; background: transparent; border: 0; cursor: pointer;
  }
  .menue-knopf span { display: block; height: 3px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menue-knopf[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menue-knopf[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .navi {
    position: fixed; top: var(--kopf-hoehe); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--wald); padding: 8px 16px 20px;
    transform: translateY(-120%); transition: transform .25s; box-shadow: 0 10px 20px rgba(0,0,0,.25);
  }
  .navi.offen { transform: none; }
  .navi a { padding: 14px 12px; font-size: 1.1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
  .navi .knopf-hell { margin: 14px 0 0; border-bottom: 0; }
  .kopf.menue-offen { background: var(--wald); }
}

/* Titelbild */
.titel {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--wald);
}
.titel-bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.titel::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,38,28,.55) 0%, rgba(20,38,28,.1) 35%, rgba(20,38,28,.75) 100%);
}
.titel-text { position: relative; z-index: 2; max-width: 1140px; margin: 0 auto; width: 100%; padding: 120px 20px 130px; }
.titel h1 { font-size: clamp(2.1rem, 6.5vw, 4.2rem); margin: .15em 0 .35em; max-width: 14em; text-shadow: 0 2px 16px rgba(0,0,0,.35); }
.titel h1 span { color: var(--see-hell); }
.unterzeile { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; opacity: .92; }
.einleitung { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 34em; margin: 0 0 28px; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.titel-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.baumkante { position: absolute; left: 0; bottom: -1px; width: 100%; height: 70px; z-index: 3; }

/* Fakten */
.fakten { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.fakten li {
  background: #fff; border-radius: var(--rund); padding: 16px; box-shadow: var(--schatten);
  display: flex; flex-direction: column; border-top: 4px solid var(--wald-2);
}
.fakten li:nth-child(3n+2) { border-top-color: var(--see); }
.fakten li:nth-child(3n) { border-top-color: var(--holz); }
.fakten b { font-family: Georgia, serif; font-size: 1.5rem; color: var(--wald); }
.fakten span { color: var(--text-leise); font-size: .92rem; }

/* Galerie */
.reiter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.reiter button {
  flex: none; min-height: 44px; padding: 8px 18px; border-radius: 999px; cursor: pointer;
  border: 2px solid var(--wald-2); background: transparent; color: var(--wald); font-weight: 700; font-size: .95rem;
}
.reiter button[aria-selected="true"] { background: var(--wald-2); color: #fff; }
.galerie { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
@media (min-width: 700px) { .galerie { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .galerie { grid-template-columns: repeat(4, 1fr); } }
.galerie figure { margin: 0; position: relative; border-radius: var(--rund); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; background: #cdd3c3; }
/* Querformat: doppelt breit, gleich hoch wie die Hochformat-Kacheln daneben */
.galerie figure.quer { grid-column: span 2; aspect-ratio: 1.55; }
.galerie img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.galerie figure:hover img { transform: scale(1.04); }
.galerie figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 24px 12px 10px;
  color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.3;
  background: linear-gradient(transparent, rgba(0,0,0,.65));
}
.galerie figure.versteckt { display: none; }

/* Großansicht */
.grossbild {
  position: fixed; inset: 0; z-index: 100; background: rgba(12, 22, 17, .95);
  display: flex; align-items: center; justify-content: center; touch-action: pan-y;
}
.grossbild[hidden] { display: none; }
.grossbild figure { margin: 0; max-width: 92vw; max-height: 88vh; display: flex; flex-direction: column; align-items: center; }
.grossbild img { max-width: 92vw; max-height: 80vh; object-fit: contain; border-radius: 8px; }
.grossbild figcaption { color: #fff; margin-top: 12px; text-align: center; }
.grossbild button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; cursor: pointer; border-radius: 50%; width: 52px; height: 52px; font-size: 2rem; line-height: 1; }
.grossbild button:hover { background: rgba(255,255,255,.25); }
.gb-zu { top: 14px; right: 14px; }
.gb-zurueck { left: 14px; top: 50%; transform: translateY(-50%); }
.gb-weiter { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) {
  .gb-pfeil { top: auto !important; bottom: 20px; transform: none !important; }
}

/* Stimmen */
.stimmen { display: grid; gap: 20px; }
@media (min-width: 860px) { .stimmen { grid-template-columns: repeat(3, 1fr); } }
.stimmen blockquote {
  margin: 0; background: #fff; border-radius: var(--rund); padding: 28px 24px 22px;
  box-shadow: var(--schatten); position: relative;
}
.stimmen blockquote::before { content: "★★★★★"; color: #d39b2a; letter-spacing: 2px; display: block; margin-bottom: 8px; }
.stimmen p { margin: 0 0 12px; font-family: Georgia, serif; font-size: 1.08rem; }
.stimmen cite { color: var(--text-leise); font-style: normal; font-size: .9rem; }

/* Lage */
.entfernungen { list-style: none; margin: 0; padding: 0; background: rgba(255,255,255,.1); border-radius: var(--rund); }
.entfernungen li { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid rgba(255,255,255,.15); }
.entfernungen li:last-child { border-bottom: 0; }
.adresse { background: rgba(255,255,255,.1); padding: 14px 18px; border-radius: 10px; }

/* Belegungskalender */
.kalender-box { background: #fff; color: var(--text); border-radius: var(--rund); padding: 24px; margin-top: 8px; box-shadow: var(--schatten); min-height: 120px; }
.kalender-box a { color: var(--see); }
.kalender-zustimmung { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 16px 8px; color: var(--wald); }
.kalender-zustimmung[hidden] { display: none; }
.kalender-zustimmung p { margin: 0; max-width: 36em; color: var(--text); }
.kalender-fehler { margin: 0; text-align: center; }
.preise-zeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; }
.preise-zeile p { margin: 0; flex: 1 1 320px; }

/* Freizeit */
.schlagworte { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.schlagworte li { background: var(--moos); color: var(--wald); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; }

/* Infos */
.karten { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .karten { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .karten { grid-template-columns: repeat(4, 1fr); } }
.karte { background: #fff; border-radius: var(--rund); padding: 22px; box-shadow: var(--schatten); }
.karte ul { margin: 0; padding-left: 1.1em; }
.karte li { margin: 4px 0; }
.hinweis { margin-top: 28px; }

/* Formular */
.formular { display: grid; gap: 16px; background: #fff; padding: 24px; border-radius: var(--rund); box-shadow: var(--schatten); }
.feld-reihe { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.formular label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: .95rem; }
.formular input, .formular textarea {
  font: inherit; font-size: 16px; /* verhindert Zoom auf dem iPhone */
  padding: 12px; min-height: 48px; border: 2px solid #c9cfc0; border-radius: 10px; background: #fbfaf6; color: var(--text);
}
.formular input:focus, .formular textarea:focus { border-color: var(--see); }
.formular .haken { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.formular .haken input { width: 24px; height: 24px; min-height: 0; }
.direkt { text-align: center; margin-top: 20px; }
.form-hinweis { margin: 0; padding: 12px 14px; background: var(--see-hell); border-radius: 10px; color: var(--wald); }

/* Fuß */
.fuss { position: relative; background: var(--wald); color: #dfe8e1; padding: 90px 0 40px; }
.fuss a { color: #fff; }
.baumkante-oben { top: -1px; bottom: auto; height: 50px; }
.fuss-inhalt { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }

/* Leiste unten nur auf dem Handy */
.handy-leiste { display: none; }
@media (max-width: 700px) {
  body { padding-bottom: 72px; }
  .abschnitt { padding: 56px 0; }
  .handy-leiste {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(31, 58, 44, .96); box-shadow: 0 -4px 16px rgba(0,0,0,.2);
  }
  .handy-leiste a {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; border: 2px solid #fff;
  }
  .handy-leiste a:last-child { background: var(--pilz); border-color: var(--pilz); }
  .feld-reihe { grid-template-columns: 1fr; }
}

/* Ohne Telefonnummer (siehe script.js): Anrufen-Knöpfe ausblenden */
.ohne-telefon .js-tel, .ohne-telefon .tel-teil { display: none !important; }
.ohne-telefon .handy-leiste { grid-template-columns: 1fr; }

/* Unterseiten (Impressum, Datenschutz) */
.unterseite { max-width: 760px; margin: 0 auto; padding: 110px 20px 60px; }
.unterseite h1 { color: var(--wald); font-size: 2rem; }

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