/* Ostsee-Landlust – Farben aus dem Haus selbst:
   Kalkputz, verwittertes Eichenfachwerk, die grüne Küche oben, Backstein. */

:root {
  --papier:      #FBFAF7;
  --tinte:       #221F1A;
  --tinte-leise: #57524A;
  --eiche:       #8C8578;
  --sand:        #EDE7DA;
  --sand-tief:   #E2D9C6;
  --gruen:       #1E6B3C;
  --gruen-tief:  #14502C;
  --backstein:   #9E4B32;
  --linie:       #DCD5C7;

  --schrift-titel: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                   "Helvetica Neue", Arial, sans-serif;
  --schrift-text:  Georgia, "Iowan Old Style", "Palatino Linotype",
                   "Times New Roman", serif;

  --rand: clamp(1.25rem, 5vw, 4.5rem);
  --spalte: 34rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--schrift-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-feature-settings: "onum" 1;
}

h1, h2, h3, .titelschrift {
  font-family: var(--schrift-titel);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: 0; }

p { margin: 0 0 1.1em; max-width: 38em; }
p:last-child { margin-bottom: 0; }

a { color: var(--gruen-tief); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--tinte); }

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

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

/* ---------- Kopf ---------- */

.kopf {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.5rem var(--rand) 1.25rem;
  border-bottom: 1px solid var(--linie);
}

.wortmarke {
  font-family: var(--schrift-titel);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--tinte);
}

.kopf nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  font-family: var(--schrift-titel);
  font-size: 0.95rem;
}

.kopf nav a { color: var(--tinte-leise); text-decoration: none; }
.kopf nav a:hover { color: var(--gruen-tief); text-decoration: underline; }

/* ---------- Titelbereich ---------- */

.titel { padding: 0 0 clamp(2.5rem, 6vw, 4.5rem); }

.titel-bild {
  background: var(--sand);
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 var(--rand);
}
.titel-bild img { border-radius: 2px; }

@media (min-width: 78rem) {
  .titel-bild { padding: 0; }
}

.titel-text {
  padding: clamp(1.75rem, 4vw, 3rem) var(--rand) 0;
  max-width: 56rem;
}

.titel-text h1 {
  text-wrap: balance;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--gruen-tief);
  max-width: 30em;
}

.vorspann {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--tinte-leise);
  margin-top: 1.1rem;
}

/* ---------- Merkmale ---------- */

.merkmale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1px;
  background: var(--linie);
  border-top: 1px solid var(--linie);
  border-bottom: 1px solid var(--linie);
}

.merkmal {
  background: var(--papier);
  padding: 1.15rem var(--rand);
  font-family: var(--schrift-titel);
  font-size: 0.98rem;
  color: var(--tinte-leise);
}
.merkmal b { color: var(--tinte); font-weight: 500; display: block; }

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

.abschnitt { padding: clamp(3rem, 7vw, 5.5rem) var(--rand); }
.abschnitt--sand { background: var(--sand); }

.abschnitt > h2 { max-width: 30em; text-wrap: balance; }
.abschnitt > h2 + p { margin-top: 1rem; }

/* Wohnung: Bild und Text asymmetrisch, seitenweise gespiegelt */

.wohnung {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

@media (min-width: 56rem) {
  .wohnung { grid-template-columns: 1.15fr 1fr; }
  .wohnung--gespiegelt .wohnung-bild { order: 2; }
}

.wohnung-bild img { border-radius: 2px; }

.bildzeile {
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--tinte-leise);
}

.wohnung-kopf { display: flex; align-items: baseline; gap: 0.75rem; flex-wrap: wrap; }

.lage {
  font-family: var(--schrift-titel);
  font-size: 0.85rem;
  color: var(--gruen-tief);
  background: rgba(30, 107, 60, 0.09);
  padding: 0.15rem 0.6rem;
  border-radius: 2px;
}

.wohnung-text > p:first-of-type { margin-top: 1rem; }

/* Fakten als feine Tabelle */

.fakten {
  margin: 1.75rem 0 0;
  border-top: 1px solid var(--linie);
  font-size: 0.98rem;
}
.fakten div {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--linie);
}
.fakten dt { color: var(--tinte-leise); margin: 0; }
.fakten dd { margin: 0; text-align: right; }

.preis {
  margin-top: 1.5rem;
  font-family: var(--schrift-titel);
  font-size: 1.35rem;
}
.preis span {
  font-family: var(--schrift-text);
  font-size: 0.95rem;
  color: var(--tinte-leise);
  display: block;
  margin-top: 0.15rem;
}

/* ---------- Knopf ---------- */

.knopf {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.5rem;
  background: var(--gruen-tief);
  color: #fff;
  font-family: var(--schrift-titel);
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid var(--gruen-tief);
  border-radius: 2px;
  cursor: pointer;
}
.knopf:hover { background: var(--gruen); color: #fff; }

/* ---------- Galerie ---------- */

.galerie {
  margin-top: clamp(1.75rem, 4vw, 2.75rem);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: 0.75rem;
}

.galerie button {
  padding: 0;
  border: 0;
  background: var(--sand);
  cursor: pointer;
  overflow: hidden;
  border-radius: 2px;
}
.galerie img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Garten ---------- */

.garten-teil {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--sand-tief);
  margin-top: clamp(2rem, 4vw, 3rem);
}
.abschnitt--sand .garten-teil { border-color: rgba(34,31,26,0.14); }
.garten-teil:first-of-type { border-top: 0; margin-top: 0; }

@media (min-width: 52rem) {
  .garten-teil { grid-template-columns: 1fr 1.1fr; align-items: center; }
  .garten-teil--gespiegelt > :first-child { order: 2; }
}

.garten-bilder { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
.garten-bilder img { aspect-ratio: 1 / 1; object-fit: cover; border-radius: 2px; }
.garten-bilder--einzeln { grid-template-columns: 1fr; }
.garten-bilder--einzeln img { aspect-ratio: 4 / 3; }

/* ---------- Belegung ---------- */

.monate {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.5rem 2rem;
  margin-top: 2rem;
  max-width: 62rem;
}

.monat h3 { font-family: var(--schrift-titel); font-size: 1rem; margin-bottom: 0.6rem; }

.raster { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }

.wochentag {
  font-family: var(--schrift-titel);
  font-size: 0.72rem;
  color: var(--tinte-leise);
  text-align: center;
  padding-bottom: 0.2rem;
}

.tag {
  font-size: 0.85rem;
  text-align: center;
  padding: 0.3rem 0;
  border-radius: 2px;
}
.tag--belegt { background: rgba(158, 75, 50, 0.16); color: #6E3323; }
.tag--leer { visibility: hidden; }

.legende {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--tinte-leise);
  flex-wrap: wrap;
}
.legende i { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; margin-right: 0.4rem; vertical-align: -1px; }
.legende .belegt { background: rgba(158, 75, 50, 0.16); }
.legende .frei { border: 1px solid var(--eiche); }

/* ---------- Formular ---------- */

.formular {
  margin-top: 2rem;
  max-width: 40rem;
  display: grid;
  gap: 1rem 1.25rem;
}
@media (min-width: 40rem) {
  .formular { grid-template-columns: 1fr 1fr; }
  .formular .breit { grid-column: 1 / -1; }
}

.feld { display: grid; gap: 0.3rem; }
.feld label { font-family: var(--schrift-titel); font-size: 0.9rem; }

input, select, textarea {
  font-family: var(--schrift-text);
  font-size: 1rem;
  color: var(--tinte);
  background: var(--papier);
  border: 1px solid var(--eiche);
  border-radius: 2px;
  padding: 0.55rem 0.65rem;
  width: 100%;
}
textarea { min-height: 7rem; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gruen); }

.einwilligung {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.92rem;
  color: var(--tinte-leise);
}
.einwilligung input { width: auto; margin-top: 0.35rem; }

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

.fuss {
  border-top: 1px solid var(--linie);
  padding: clamp(2rem, 5vw, 3.5rem) var(--rand);
  font-size: 0.95rem;
  color: var(--tinte-leise);
  display: grid;
  gap: 1.5rem 3rem;
}
@media (min-width: 44rem) { .fuss { grid-template-columns: 1fr auto; } }
.fuss b { color: var(--tinte); font-weight: 400; }
.fuss nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }

/* ---------- Lupe ---------- */

.lupe {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 20;
}
.lupe[open] { display: flex; }
.lupe img { max-width: min(100%, 1400px); max-height: 88vh; width: auto; object-fit: contain; }
.lupe-zu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: 1px solid rgba(255,255,255,0.5);
  color: #fff;
  font-family: var(--schrift-titel);
  font-size: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  cursor: pointer;
}

/* ---------- Rechtstexte ---------- */

.rechtstext { padding: clamp(2.5rem, 6vw, 4.5rem) var(--rand); max-width: 46rem; }
.rechtstext h2 { font-size: 1.35rem; margin-top: 2.5rem; }
.rechtstext h2:first-of-type { margin-top: 2rem; }
.rechtstext ul { padding-left: 1.2rem; max-width: 38em; }
.rechtstext li { margin-bottom: 0.4em; }


@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.belegung-wohnung { margin-top: clamp(2rem, 4vw, 3rem); }
.belegung-wohnung > h3 { font-family: var(--schrift-titel); font-size: 1.15rem; }
.monat h4 {
  font-family: var(--schrift-titel);
  font-size: 1rem;
  font-weight: 500;
  margin: 0 0 0.6rem;
}

.tag--vergangen { color: var(--eiche); }

.garten-aufmacher {
  margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
  max-width: 62rem;
}
.garten-aufmacher img { border-radius: 2px; }

/* ---------- Anfrage mit Gastgeberfoto ---------- */

.anfrage-raster {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (min-width: 56rem) {
  .anfrage-raster { grid-template-columns: minmax(0, 1fr) 16rem; }
}
.vermieter img { border-radius: 2px; }
.vermieter p {
  margin: 0.6rem 0 0;
  font-size: 0.92rem;
  color: var(--tinte-leise);
}

/* Gartenbilder nebeneinander */
.garten-bilder--zwei { grid-template-columns: 1fr 1fr; align-items: start; }
.garten-bilder--zwei img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Lupe: Blättern ---------- */

.lupe-huelle { position: relative; display: flex; align-items: center; justify-content: center; }

.lupe-blaettern {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20,18,15,0.55);
  border: 1px solid rgba(255,255,255,0.45);
  color: #fff;
  font-family: var(--schrift-titel);
  font-size: 1.5rem;
  line-height: 1;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  cursor: pointer;
}
.lupe-blaettern:hover { background: rgba(20,18,15,0.8); }
.lupe-zurueck { left: -0.5rem; }
.lupe-weiter { right: -0.5rem; }
@media (min-width: 48rem) {
  .lupe-zurueck { left: -3.75rem; }
  .lupe-weiter { right: -3.75rem; }
}

.lupe-zaehler {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.85);
  font-family: var(--schrift-titel);
  font-size: 0.9rem;
}

.galerie button:hover img { opacity: 0.92; }

/* ---------- Anfahrt ---------- */

.karte {
  margin-top: clamp(1.5rem, 4vw, 2rem);
  max-width: 62rem;
  border: 0.5px solid var(--linie);
  border-radius: 2px;
  overflow: hidden;
  background: var(--papier);
}

.karte-platz {
  background: var(--sand);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: 1rem;
  justify-items: start;
}
.abschnitt--sand .karte-platz { background: var(--sand-tief); }

.karte-adresse {
  font-family: var(--schrift-titel);
  font-size: 1.1rem;
  line-height: 1.5;
}
.karte-hinweis { font-size: 0.9rem; color: var(--tinte-leise); max-width: 34em; }
.karte-knoepfe { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.karte-knoepfe .knopf { margin-top: 0; }

.knopf--leise {
  background: transparent;
  color: var(--gruen-tief);
  border-color: var(--eiche);
}
.knopf--leise:hover { background: rgba(30,107,60,0.08); color: var(--gruen-tief); }

.karte-rahmen { aspect-ratio: 16 / 10; }
.karte-rahmen iframe { display: block; width: 100%; height: 100%; border: 0; }

/* ---------- Rückmeldung nach dem Absenden ---------- */

.meldung {
  padding: 1rem 1.25rem;
  border-radius: 2px;
  margin: 0 0 1.5rem;
  max-width: 44rem;
  border-left: 3px solid var(--gruen);
  background: rgba(30, 107, 60, 0.08);
}
.meldung--fehler {
  border-left-color: var(--backstein);
  background: rgba(158, 75, 50, 0.09);
}
.meldung p { margin: 0; }
.meldung b { font-weight: 500; }

/* Honigtopf: für Menschen unsichtbar, für Bots verlockend */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
