
:root {
  --ground:#F4F6F4; --surface:#FFFFFF; --sunk:#E7EBE7;
  --ink:#161C18; --ink-soft:#485249; --ink-faint:#78827A;
  --line:#D8DED8; --line-stark:#BAC3BB;
  --akzent:#33604A; --akzent-kontrast:#FFFFFF;
  --schatten:0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground:#101412; --surface:#171C19; --sunk:#1E2420;
    --ink:#E5E9E5; --ink-soft:#AAB3AC; --ink-faint:#7C857E;
    --line:#28302B; --line-stark:#3C453F;
    --akzent:#7FA98D; --akzent-kontrast:#12100C;
    --schatten:0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
  }
}
:root[data-theme="dark"] {
  --ground:#101412; --surface:#171C19; --sunk:#1E2420;
  --ink:#E5E9E5; --ink-soft:#AAB3AC; --ink-faint:#7C857E;
  --line:#28302B; --line-stark:#3C453F;
  --akzent:#7FA98D; --akzent-kontrast:#12100C;
  --schatten:0 1px 2px rgba(0,0,0,.5), 0 8px 24px rgba(0,0,0,.4);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--akzent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--akzent); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.wrap-schmal { width: 100%; max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typografie ---------- */

h1, h2, h3 { font-family: 'Newsreader', Georgia, 'Times New Roman', serif; font-weight: 500; letter-spacing: -0.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; }
h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.18; }
h3 { font-size: 21px; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 68ch; }
.eyebrow {
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 14px; font-weight: 600;
}

/* ---------- Kopfzeile ---------- */

.kopf {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--ground) 92%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.kopf-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.logo img { height: 40px; width: auto; display: block; }
.nav { display: flex; gap: 17px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); text-decoration: none; font-size: 15px; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--akzent);
}
.kopf-tel {
  font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-stark); border-radius: 999px; padding: 7px 16px; white-space: nowrap;
}
.kopf-tel:hover { border-color: var(--akzent); color: var(--akzent); }
.sprache { display: flex; gap: 2px; font-size: 13px; }
.sprache a { color: var(--ink-faint); text-decoration: none; padding: 4px 7px; border-radius: 3px; }
.sprache a[aria-current="true"] { color: var(--akzent-kontrast); background: var(--akzent); font-weight: 600; }

.menu-knopf { display: none; }

@media (max-width: 900px) {
  .kopf-inner { flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; min-height: 0; }
  .nav { order: 3; width: 100%; margin-left: 0; gap: 14px 18px; padding-top: 4px; }
  .kopf-tel { margin-left: auto; }
}

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

section { padding: clamp(56px, 8vw, 104px) 0; }
section.sunk { background: var(--sunk); }
.abschnitt-kopf { max-width: 62ch; margin-bottom: 44px; }
.abschnitt-kopf p { color: var(--ink-soft); margin-bottom: 0; }

/* ---------- Auftakt ---------- */

.auftakt { padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 6vw, 76px); }
.auftakt-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.auftakt p.gross { font-size: 19.5px; color: var(--ink-soft); margin-top: 22px; }
.auftakt-bild { position: relative; }
.auftakt-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; box-shadow: var(--schatten); }
@media (max-width: 860px) { .auftakt-grid { grid-template-columns: 1fr; } }

/* ---------- Faktenkarte im Auftakt ---------- */

.fakten {
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: 8px 30px 26px; display: flex; flex-direction: column;
}
.fakt { padding: 20px 0; border-bottom: 1px solid var(--line); }
.fakt:last-of-type { border-bottom: 0; }
.fakt b {
  display: block; font-family: 'Newsreader', Georgia, 'Times New Roman', serif; font-size: 40px;
  line-height: 1.05; font-weight: 500; color: var(--akzent);
  font-variant-numeric: tabular-nums;
}
.fakt span { color: var(--ink-soft); font-size: 15.5px; }
.fakten-tel {
  margin-top: 18px; text-align: center; text-decoration: none; font-weight: 600;
  border: 1px solid var(--line-stark); border-radius: 999px; padding: 11px 18px;
  color: var(--ink);
}
.fakten-tel:hover { border-color: var(--akzent); color: var(--akzent); }

/* ---------- Portrait ---------- */

.portrait {
  width: 200px; height: 200px; object-fit: cover; border-radius: 50%;
  margin: 6px 0 22px;
}

/* ---------- Knoepfe ---------- */

.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.knopf {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--akzent); color: var(--akzent-kontrast);
  padding: 13px 26px; border-radius: 2px; text-decoration: none;
  font-weight: 600; font-size: 16px; border: 1px solid var(--akzent);
  transition: opacity .15s ease;
}
.knopf:hover { opacity: .88; }
.knopf-leer { background: transparent; color: var(--ink); border-color: var(--line-stark); }
.knopf-leer:hover { border-color: var(--akzent); color: var(--akzent); opacity: 1; }

/* ---------- Karten ---------- */

.karten { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 20px; }
.karte {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 3px; padding: 28px 26px; display: flex; flex-direction: column;
}
.karte h3 { margin-bottom: 10px; }
.karte p { color: var(--ink-soft); font-size: 16px; margin-bottom: 14px; }
.karte .weiter { margin-top: auto; font-size: 15px; font-weight: 600; text-decoration: none; }
.karte .weiter::after { content: " \2192"; }

/* ---------- Objekte ---------- */

.objekte { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
.objekt {
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: inherit;
}
.objekt:hover { border-color: var(--line-stark); }
.objekt-bild { position: relative; background: var(--sunk); }
.objekt-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.objekt-status {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; letter-spacing: .09em; text-transform: uppercase; font-weight: 600;
  padding: 5px 10px; border-radius: 2px; background: var(--surface); color: var(--ink-soft);
}
.objekt-status.aktiv { background: var(--akzent); color: var(--akzent-kontrast); }
.objekt-text { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.objekt-text h3 { font-size: 19px; margin-bottom: 8px; }
.objekt-preis { font-weight: 600; margin-bottom: 10px; font-variant-numeric: tabular-nums; }
.objekt-eck { margin-top: auto; font-size: 14.5px; color: var(--ink-faint); display: flex; flex-wrap: wrap; gap: 4px 16px; }

/* ---------- Objektseite ---------- */

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 12px; }
.galerie img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 2px; }
.eckdaten { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; margin: 28px 0; }
.eckdaten div { background: var(--surface); padding: 16px 18px; }
.eckdaten dt { font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 4px; }
.eckdaten dd { margin: 0; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Kundenstimmen ---------- */

.stimmen { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.stimme { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 28px 26px; }
.stimme blockquote { margin: 0 0 16px; font-family: 'Newsreader', Georgia, 'Times New Roman', serif; font-size: 19px; line-height: 1.5; }
.stimme cite { font-style: normal; font-size: 14px; color: var(--ink-faint); display: block; }
.stimme cite b { display: block; color: var(--ink); font-size: 14.5px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }

/* ---------- Bruecke zur Schwesterfirma ---------- */

.bruecke { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.bruecke .inner { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.bruecke h2 { font-size: 27px; margin-bottom: 10px; }
.bruecke p { color: var(--ink-soft); margin: 0; }
@media (max-width: 760px) { .bruecke .inner { grid-template-columns: 1fr; } }

/* ---------- Kontaktblock ---------- */

.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
@media (max-width: 760px) { .kontakt-grid { grid-template-columns: 1fr; } }
.kontakt-zeile { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.kontakt-zeile:first-child { border-top: 1px solid var(--line); }
.kontakt-zeile dt { flex: 0 0 116px; color: var(--ink-faint); font-size: 14.5px; padding-top: 2px; }
.kontakt-zeile dd { margin: 0; font-size: 17px; }

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

form.anfrage { display: grid; gap: 16px; }
form.anfrage label { display: block; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 6px; }
form.anfrage input, form.anfrage textarea, form.anfrage select {
  width: 100%; padding: 12px 14px; font: inherit; font-size: 16px;
  color: var(--ink); background: var(--surface);
  border: 1px solid var(--line-stark); border-radius: 2px;
}
form.anfrage textarea { min-height: 130px; resize: vertical; }
form.anfrage .hinweis { font-size: 14px; color: var(--ink-faint); }

/* ---------- Fusszeile ---------- */

.fuss { background: var(--sunk); border-top: 1px solid var(--line); padding: 56px 0 34px; margin-top: 0; }
.fuss-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 760px) { .fuss-grid { grid-template-columns: 1fr; } }
.fuss h4 { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; font-weight: 600; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 8px; }
.fuss a { color: var(--ink-soft); text-decoration: none; font-size: 15.5px; }
.fuss a:hover { color: var(--akzent); }
.fuss-unten { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--ink-faint); }

/* ---------- Hinweisstreifen (Entwurfsstand) ---------- */

.entwurf {
  background: var(--akzent); color: var(--akzent-kontrast);
  font-size: 13.5px; padding: 8px 0; text-align: center;
}
.entwurf a { color: inherit; }

/* ---------- Fliesstextseiten ---------- */

.fliess h2 { margin-top: 48px; margin-bottom: 14px; }
.fliess h3 { margin-top: 32px; margin-bottom: 10px; }
.fliess ul { margin: 0 0 20px; padding-left: 22px; max-width: 68ch; }
.fliess li { margin-bottom: 7px; }
.fliess > p:first-of-type { font-size: 19.5px; color: var(--ink-soft); }
