/* Landhaus Eging am See – Stylesheet
   Farben: Wiese, Lärchenholz, Kalkputz, Apfel. Schriften lokal gehostet (DSGVO). */

@font-face { font-family: "Vollkorn"; src: url("../fonts/Vollkorn.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Vollkorn"; src: url("../fonts/Vollkorn-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("../fonts/SourceSans3.woff2") format("woff2"); font-weight: 400 600; font-style: normal; font-display: swap; }

:root {
  --wiese: #2e4630;
  --wiese-hell: #e4eadb;
  --laerche: #b8741e;
  --laerche-dunkel: #86500f;
  --putz: #fbfbf8;
  --schiefer: #23261f;
  --grau: #5b6157;
  --apfel: #b3362b;
  --linie: #d5dbcc;

  --serif: "Vollkorn", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --mass: 38rem;       /* Satzbreite Fliesstext */
  --breit: 72rem;      /* Seitenbreite */
  --abstand: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--putz);
  color: var(--schiefer);
  font-family: var(--serif);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.62;
  font-variant-numeric: oldstyle-nums proportional-nums;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--laerche-dunkel); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--wiese); }
:focus-visible { outline: 3px solid var(--laerche); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.6em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw + 0.8rem, 4.1rem); }
h2 { font-size: clamp(1.8rem, 2.4vw + 0.9rem, 2.7rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; max-width: var(--mass); }

.skip { position: absolute; left: -999px; top: 0; background: var(--wiese); color: #fff; padding: .6rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--breit)); margin-inline: auto; }

/* ---------- Kopfzeile ---------- */
.kopf {
  position: sticky; top: 0; z-index: 20;
  background: rgba(251, 251, 248, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--linie);
}
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4rem; }
.marke { font-weight: 600; font-size: 1.1rem; color: var(--schiefer); text-decoration: none; line-height: 1.2; }
.marke small { display: block; font-family: var(--sans); font-weight: 400; font-size: .82rem; color: var(--grau); }
.kopf nav { display: none; font-family: var(--sans); font-size: .95rem; }
.kopf nav a { color: var(--schiefer); text-decoration: none; margin-left: 1.3rem; }
.kopf nav a:hover { color: var(--laerche-dunkel); }
@media (min-width: 62rem) { .kopf nav { display: block; } }

.knopf {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--sans); font-weight: 600; font-size: 1rem;
  background: var(--wiese); color: #fff; text-decoration: none;
  padding: .7rem 1.2rem; border-radius: 999px; white-space: nowrap;
}
.knopf:hover { background: #22361f; color: #fff; }
.knopf svg { width: 1.05em; height: 1.05em; }
.knopf--klein { padding: .5rem .95rem; font-size: .93rem; }
.knopf--hell { background: transparent; color: var(--wiese); box-shadow: inset 0 0 0 1.5px var(--wiese); }
.knopf--hell:hover { background: var(--wiese-hell); color: var(--wiese); }

/* ---------- Einstieg ---------- */
.einstieg { padding-block: clamp(2.5rem, 6vw, 5rem) var(--abstand); }
.einstieg .wrap { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 52rem) { .einstieg .wrap { grid-template-columns: 1.15fr 0.85fr; } }

.einstieg .zusatz { font-family: var(--sans); color: var(--wiese); font-weight: 600; margin-bottom: 1.1rem; }
.einstieg .lead { font-size: 1.2em; color: #3a3f35; }
.preis { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; margin: 2rem 0; }
.preis strong { font-size: clamp(2.2rem, 3vw + 1rem, 3rem); font-weight: 600; font-variant-numeric: lining-nums; }
.preis span { font-family: var(--sans); color: var(--grau); }
.aktionen { display: flex; flex-wrap: wrap; gap: .8rem; }

.einstieg figure { margin: 0; position: relative; }
.einstieg figure img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 3px 3px 140px 3px; }
.einstieg figcaption { font-family: var(--sans); font-size: .88rem; color: var(--grau); margin-top: .6rem; }
@media (max-width: 51.99rem) { .einstieg figure { order: -1; } .einstieg figure img { aspect-ratio: 4 / 3; border-radius: 3px 3px 90px 3px; } }

/* ---------- Eckdaten ---------- */
.eckdaten { border-block: 1px solid var(--linie); background: #fff; }
.eckdaten dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1px; background: var(--linie); margin: 0; }
.eckdaten dl > div { padding: 1.3rem 1rem 1.2rem; background: #fff; }
.eckdaten dt { font-family: var(--sans); font-size: .9rem; color: var(--grau); }
.eckdaten dd { margin: .15rem 0 0; font-size: 1.35rem; font-weight: 600; font-variant-numeric: lining-nums; line-height: 1.25; }
.eckdaten dd small { display: block; font-family: var(--sans); font-weight: 400; font-size: .85rem; color: var(--grau); }

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: var(--abstand); }
.abschnitt--gruen { background: var(--wiese); color: #eef2e8; }
.abschnitt--gruen a { color: #f3c98b; }
.abschnitt--gruen h2 { color: #fff; }
.zweispaltig { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 52rem) { .zweispaltig { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- Grundstück: Flächenraster (das eine laute Element) ---------- */
.raster-kopf { display: grid; gap: 1rem 3rem; margin-bottom: 2.5rem; }
@media (min-width: 52rem) { .raster-kopf { grid-template-columns: 1fr 1fr; align-items: end; } }
.raster-kopf p { color: #d8e0cf; }

.raster {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: clamp(2px, 0.5vw, 5px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.raster li { aspect-ratio: 1; border-radius: 2px; background: #7f9a67; }
.raster li.hof { background: var(--laerche); }
.raster li.rest { background: transparent; }
@media (max-width: 34rem) { .raster { grid-template-columns: repeat(14, 1fr); } }

/* eine einmalige, ruhige Füll-Animation beim ersten Sichtbarwerden */
.js .raster li:not(.rest) { opacity: 0; transform: scale(.6); }
.js .raster.sichtbar li:not(.rest) { opacity: 1; transform: none; transition: opacity .35s ease, transform .35s ease; transition-delay: calc(var(--i) * 7ms); }
@media (prefers-reduced-motion: reduce) {
  .js .raster li:not(.rest) { opacity: 1; transform: none; transition: none; }
}

.legende { display: flex; flex-wrap: wrap; gap: .8rem 2rem; margin: 1.6rem 0 0; padding: 0; list-style: none; font-family: var(--sans); font-size: .98rem; }
.legende li { display: flex; align-items: center; gap: .55rem; }
.legende i { width: 1rem; height: 1rem; border-radius: 2px; display: inline-block; flex: none; }
.legende .l-hof { background: var(--laerche); }
.legende .l-land { background: #7f9a67; }
.legende .l-vgl { box-shadow: inset 0 0 0 2px #f3c98b; }
.vergleich { display: flex; align-items: center; gap: 1rem; margin-top: 2rem; font-family: var(--sans); font-size: .98rem; color: #d8e0cf; }
.vergleich .mini { display: grid; grid-template-columns: repeat(3, 1rem); gap: 3px; flex: none; }
.vergleich .mini i { width: 1rem; height: 1rem; border-radius: 2px; box-shadow: inset 0 0 0 2px #f3c98b; }

/* ---------- Haus ---------- */
.ausstattung { columns: 2 12rem; column-gap: 2rem; padding: 0; margin: 1.5rem 0 0; list-style: none; font-family: var(--sans); }
.ausstattung li { padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px solid var(--linie); break-inside: avoid; position: relative; }
.ausstattung li::before { content: ""; position: absolute; left: .15rem; top: .95rem; width: .6rem; height: .35rem; border-left: 2px solid var(--wiese); border-bottom: 2px solid var(--wiese); transform: rotate(-45deg); }
.haus-bild { margin: 0; }
.haus-bild img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 3px; }
.haus-bild figcaption, .bildtext { font-family: var(--sans); font-size: .88rem; color: var(--grau); margin-top: .6rem; }

/* ---------- Bilder ---------- */
.galerie { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 52rem) { .galerie { grid-template-columns: repeat(3, 1fr); gap: 1rem; } }
.galerie a { display: block; overflow: hidden; border-radius: 3px; background: var(--wiese-hell); }
.galerie img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.galerie li.quer { grid-column: span 2; }
.galerie li.quer img { aspect-ratio: 4/3; }
@media (min-width: 52rem) { .galerie li.quer { grid-column: span 1; } .galerie li.quer img { aspect-ratio: 3/4; } }
.galerie a:hover img { filter: brightness(1.05); }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; color: #fff; }
dialog.lightbox::backdrop { background: rgba(20, 24, 18, 0.92); }
dialog.lightbox img { max-width: 92vw; max-height: 80vh; margin: 0 auto; border-radius: 3px; }
dialog.lightbox p { font-family: var(--sans); text-align: center; margin: .8rem auto 0; max-width: 40rem; }
.lb-steuerung { display: flex; justify-content: center; gap: .6rem; margin-top: 1rem; }
.lb-steuerung button { font: 600 .95rem var(--sans); background: #fff; color: var(--schiefer); border: 0; border-radius: 999px; padding: .55rem 1.1rem; cursor: pointer; }
.lb-steuerung button:hover { background: var(--wiese-hell); }

/* ---------- Preis ---------- */
.rechnung { max-width: 34rem; margin: 2rem 0 0; font-family: var(--sans); font-variant-numeric: tabular-nums lining-nums; }
.rechnung div { display: flex; justify-content: space-between; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--linie); }
.rechnung dt { color: var(--grau); }
.rechnung dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; }
.rechnung .summe { border-bottom: 0; border-top: 2px solid var(--schiefer); margin-top: -1px; padding-top: 1rem; }
.rechnung .summe dt { color: var(--schiefer); font-weight: 600; }
.rechnung .summe dd { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.hinweis { font-family: var(--sans); font-size: .92rem; color: var(--grau); margin-top: 1.2rem; }

/* ---------- Lage ---------- */
.lage-liste { padding: 0; margin: 0; list-style: none; }
.lage-liste li { padding: .9rem 0; border-bottom: 1px solid var(--linie); }
.lage-liste strong { display: block; font-weight: 600; }
.lage-liste span { font-family: var(--sans); color: var(--grau); font-size: .98rem; }

/* ---------- Fragen ---------- */
.fragen { max-width: 46rem; margin-top: 2rem; }
.fragen details { border-bottom: 1px solid var(--linie); }
.fragen summary { cursor: pointer; list-style: none; padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.12rem; position: relative; }
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; position: absolute; right: .3rem; top: .85rem; font: 400 1.6rem/1 var(--sans); color: var(--laerche-dunkel); transition: transform .2s; }
.fragen details[open] summary::after { transform: rotate(45deg); }
.fragen details > div { padding-bottom: 1.1rem; }
.fragen details p:last-child { margin-bottom: 0; }

/* ---------- Kontakt ---------- */
.kontakt { text-align: left; }
.kontakt .telefon { display: inline-block; font-size: clamp(2rem, 4vw + 1rem, 3.4rem); font-weight: 600; color: #fff; text-decoration: none; font-variant-numeric: lining-nums; margin: .4rem 0 1.2rem; }
.kontakt .telefon:hover { color: #f3c98b; }
.kontakt .knopf { background: #fff; color: var(--wiese); }
.kontakt .knopf:hover { background: var(--wiese-hell); }

/* ---------- Fuss ---------- */
.fuss { padding: 2.5rem 0 3rem; font-family: var(--sans); font-size: .92rem; color: var(--grau); }
.fuss .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.fuss a { color: var(--grau); }

/* ---------- Rechtstexte ---------- */
.rechtstext { padding-block: 3rem 5rem; }
.rechtstext h1 { font-size: clamp(2rem, 3vw + 1rem, 2.8rem); }
.rechtstext h2 { font-size: 1.35rem; margin-top: 2rem; }

/* ---------- Druck (Exposé ausdrucken) ---------- */
@media print {
  .kopf, .aktionen, .skip, dialog, .kontakt .knopf, .fuss nav { display: none !important; }
  body { font-size: 11pt; background: #fff; }
  .abschnitt { padding-block: 1.5rem; }
  .abschnitt--gruen { background: #fff; color: #000; }
  .abschnitt--gruen h2, .kontakt .telefon { color: #000; }
  .js .raster li:not(.rest) { opacity: 1; transform: none; }
  .fragen details > div { display: block !important; }
  a { color: #000; text-decoration: none; }
}
