/* ===========================================================
   Rolling Tiny House — Stylesheet
   =========================================================== */

:root {
  --tanne:      #1d3b2f;
  --tanne-tief: #142a21;
  --moos:       #4a6b55;
  --holz:       #c0763c;
  --holz-hell:  #e09a5f;
  /* Für kleine Schrift auf hellem Grund und für Knöpfe mit weißer Schrift:
     --holz selbst erreicht dort nur ein Kontrastverhältnis von gut 3 : 1,
     verlangt sind 4,5 : 1. Die Zielgruppe ist Mitte fünfzig. */
  --holz-text:  #9f5d29;
  --holz-knopf: #aa6530;
  --gold-fq:    #9a6a10;
  /* Der Terminknopf: helles Orange mit weißer Schrift – so von Niels gewünscht.
     Weiß auf diesem Ton hat nur ein Kontrastverhältnis von rund 2 : 1; deshalb
     ist die Schrift fett und trägt einen feinen dunklen Schatten. */
  --orange:     #ff9d2a;
  --orange-tief:#f58a10;
  --sand:       #f7f2e9;
  --sand-tief:  #ece3d4;
  --papier:     #ffffff;
  --tinte:      #231f1b;
  --tinte-weich:#5c564e;
  --linie:      #ddd3c2;

  --breite:     1180px;
  --radius:     14px;
  --radius-gr:  24px;
  --schatten:   0 1px 2px rgba(35,31,27,.05), 0 8px 28px rgba(35,31,27,.08);
  --schatten-gr:0 2px 6px rgba(35,31,27,.06), 0 24px 60px rgba(35,31,27,.14);

  --serif: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 86px; }
/* Sobald Lenis läuft, übernimmt es das Scrollen – sonst würden zwei
   Animationen gegeneinander arbeiten. Ohne JavaScript bleibt es beim
   weichen Scrollen des Browsers. */
html.lenis { scroll-behavior: auto; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--tinte);
  background: var(--sand);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--tanne); text-decoration-color: rgba(29,59,47,.35); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

/* Wer mit der Tastatur durch die Seite geht, muss sehen, wo er ist. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--holz-knopf);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
  color: var(--tanne-tief);
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

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

.inhalt { width: min(100% - 48px, var(--breite)); margin-inline: auto; }
.schmal { width: min(100% - 48px, 760px); margin-inline: auto; }

.augenbraue {
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--holz-text);
  margin: 0 0 .9rem;
}

.lead { font-size: 1.18rem; color: var(--tinte-weich); }

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

.kopf {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247,242,233,.88);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--linie);
}

.kopf-innen {
  width: min(100% - 48px, var(--breite));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 72px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--tanne-tief);
  text-decoration: none;
}
/* Das Logo ist für dunklen Grund gezeichnet: Sechseck und Balken sind silbern
   bis weiß und würden auf dem hellen Kopf verschwinden. Deshalb die Kachel. */
.marke-bild {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--tanne-tief);
  display: grid;
  place-items: center;
}
.marke-bild img { width: 36px; height: 36px; }
.marke-text { display: block; min-width: 0; white-space: nowrap; }
.marke-name {
  display: block;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  line-height: 1.2;
}
.marke-name b { font-weight: 700; color: var(--gold-fq); }
.marke small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--sans);
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--holz-text);
  margin-top: 2px;
}

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.nav a {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: .94rem;
  font-weight: 500;
  color: var(--tinte);
  text-decoration: none;
  transition: background .18s, color .18s;
}
.nav a { white-space: nowrap; }
.nav a:hover { background: var(--sand-tief); }

/* Der eine Knopf, auf den alles hinausläuft – deshalb als einziger gefüllt. */
.nav a.nav-termin {
  margin-left: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(140,70,0,.45);
  white-space: nowrap;
}
.nav a.nav-termin:hover { background: var(--orange-tief); }
.nav a[aria-current="page"] { color: var(--tanne); background: var(--sand-tief); font-weight: 600; }

.nav-schalter {
  display: none;
  margin-left: auto;
  width: 44px; height: 40px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--papier);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-schalter span {
  display: block;
  width: 19px; height: 1.6px;
  background: var(--tinte);
  position: relative;
}
.nav-schalter span::before,
.nav-schalter span::after {
  content: ""; position: absolute; left: 0;
  width: 19px; height: 1.6px; background: var(--tinte);
}
.nav-schalter span::before { top: -6px; }
.nav-schalter span::after  { top:  6px; }

/* ---------- Knöpfe ---------- */

.knopf {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: .97rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s, color .2s;
}
.knopf:hover { transform: translateY(-1px); }

.knopf-voll { background: var(--holz-knopf); color: #fff; box-shadow: 0 6px 18px rgba(170,101,48,.3); }
/* Nur der Terminknopf ist orange – er soll auf jeder Seite der auffälligste sein. */
.knopf-termin { background: var(--orange); color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(140,70,0,.45); box-shadow: 0 6px 18px rgba(255,157,42,.38); }
.knopf-termin:hover { background: var(--orange-tief); box-shadow: 0 10px 26px rgba(255,157,42,.48); }
.knopf-voll:hover { background: #935526; box-shadow: 0 10px 26px rgba(170,101,48,.38); }

.knopf-rand { background: transparent; color: var(--tanne-tief); border-color: rgba(29,59,47,.3); }
.knopf-rand:hover { border-color: var(--tanne); background: rgba(29,59,47,.05); }

.knopf-hell { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.knopf-hell:hover { background: rgba(255,255,255,.24); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(84vh, 720px);
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--tanne-tief);
}
.hero > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(14,28,22,.82) 0%, rgba(14,28,22,.55) 42%, rgba(14,28,22,.12) 78%),
    linear-gradient(180deg, rgba(14,28,22,.5) 0%, rgba(14,28,22,.18) 38%, rgba(14,28,22,.88) 100%);
}
.hero-text {
  position: relative; z-index: 2;
  width: min(100% - 48px, var(--breite));
  margin-inline: auto;
  padding: 72px 0 64px;
  max-width: calc(min(100% - 48px, var(--breite)));
}
.hero-text h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero-text .augenbraue { color: var(--holz-hell); }
.hero-text p {
  max-width: 54ch;
  font-size: 1.2rem;
  color: rgba(255,255,255,.9);
  margin-bottom: 1.9em;
}
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-klein { min-height: min(52vh, 420px); }
.hero-klein .hero-text { padding: 56px 0 48px; }
.hero-klein h1 { max-width: 20ch; }

/* ---------- Kennzahlen-Band ---------- */

.band {
  background: var(--tanne);
  color: rgba(255,255,255,.88);
}
.band-gitter {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.14);
  border-inline: 1px solid rgba(255,255,255,.14);
}
.band-gitter > div {
  background: var(--tanne);
  padding: 30px 24px;
  text-align: center;
}
.band-gitter b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.band-gitter span {
  display: block;
  font-size: .82rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  margin-top: 7px;
  color: rgba(255,255,255,.62);
}

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

.abschnitt { padding: clamp(60px, 8vw, 104px) 0; }
.abschnitt-sand { background: var(--sand-tief); }
.abschnitt-weiss { background: var(--papier); }
.abschnitt-dunkel { background: var(--tanne-tief); color: rgba(255,255,255,.84); }
.abschnitt-dunkel h2, .abschnitt-dunkel h3 { color: #fff; }
.abschnitt-dunkel .augenbraue { color: var(--holz-hell); }
/* Knöpfe ausgenommen: Sonst bekäme der gefüllte Knopf helle Holzschrift auf
   Holzgrund und wäre kaum zu lesen. */
.abschnitt-dunkel a:not(.knopf) { color: var(--holz-hell); }

.kopfzeile { max-width: 680px; margin-bottom: clamp(36px, 5vw, 56px); }
.kopfzeile.mitte { margin-inline: auto; text-align: center; }

/* ---------- Zwei Spalten ---------- */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.duo-bild img,
.duo-bild video { border-radius: var(--radius-gr); box-shadow: var(--schatten-gr); width: 100%; }
.duo-bild video { display: block; }
.duo.gedreht .duo-bild { order: 2; }

/* Hochformat neben dem Text: Ein stehendes Bild ist höher als der Absatz
   daneben und ragt sonst oben und unten darüber hinaus. Hier bestimmt der
   Text die Höhe; das Medium wird dafür aus dem Fluss genommen, sonst würde
   seine eigene Höhe die Zeile aufziehen, und füllt den Rahmen beschnitten.
   Unterhalb von 961 px steht ohnehin alles untereinander – dort nicht. */
@media (min-width: 961px) {
  .duo.duo-hoch { align-items: stretch; }
  .duo.duo-hoch .duo-bild {
    position: relative;
    min-height: 420px;
    border-radius: var(--radius-gr);
    box-shadow: var(--schatten-gr);
    overflow: hidden;
  }
  .duo.duo-hoch .duo-bild img,
  .duo.duo-hoch .duo-bild video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
  }
}

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

.karten {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}

.karte {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gr);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
a.karte { text-decoration: none; color: inherit; }
a.karte:hover { transform: translateY(-4px); box-shadow: var(--schatten-gr); }

.karte > img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.karte-text { padding: 26px 26px 28px; flex: 1; display: flex; flex-direction: column; }
/* Zweite Zwischenüberschrift in derselben Karte: Luft darüber, damit die
   beiden Listen nicht ineinanderlaufen. */
.karte-zwischen { margin-top: 26px; }
.karte-text h3 { margin-bottom: .4em; }
.karte-text p { color: var(--tinte-weich); font-size: .97rem; }
.karte-fuss {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 600;
  font-size: .93rem;
  color: var(--holz-text);
}

.marke-chip {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.chip-frei  { background: #e4f0e6; color: #27603a; }
.chip-knapp { background: #fdeede; color: #a4551c; }
.chip-voll  { background: #eceaea; color: #65605b; }

/* ---------- Merkmal-Liste ---------- */

.merkmale { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px 36px; }
.merkmal h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; margin-bottom: .35em; }
.merkmal p { font-size: .96rem; color: var(--tinte-weich); }
.merkmal-nr {
  display: inline-grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--sand-tief);
  color: var(--tanne);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 14px;
}
.abschnitt-dunkel .merkmal-nr { background: rgba(255,255,255,.1); color: var(--holz-hell); }
.abschnitt-dunkel .merkmal p { color: rgba(255,255,255,.72); }

/* ---------- Haken-Liste ---------- */

.haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.haken li { position: relative; padding-left: 32px; }
.haken li::before {
  content: "";
  position: absolute; left: 0; top: .42em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--holz) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}

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

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.galerie figure { margin: 0; }
.galerie button {
  display: block; width: 100%; padding: 0;
  border: 0; background: none; cursor: zoom-in;
  border-radius: var(--radius);
  overflow: hidden;
  line-height: 0;
}
.galerie img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .4s ease;
}
.galerie button:hover img { transform: scale(1.04); }
.galerie figcaption { font-size: .85rem; color: var(--tinte-weich); padding-top: 8px; line-height: 1.4; }

.galerie-gross { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.galerie-gross img { aspect-ratio: 3 / 2; }

/* Lightbox */
.lupe {
  position: fixed; inset: 0; z-index: 100;
  display: none;
  place-items: center;
  padding: 28px;
  background: rgba(14,22,18,.93);
  backdrop-filter: blur(4px);
}
.lupe[open] { display: grid; }
.lupe img { max-width: min(1200px, 96vw); max-height: 86vh; width: auto; border-radius: 8px; }
.lupe figcaption { color: rgba(255,255,255,.8); text-align: center; padding-top: 14px; font-size: .92rem; }
.lupe-zu {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff; font-size: 1.5rem; line-height: 1;
  cursor: pointer;
}
.lupe-zu:hover { background: rgba(255,255,255,.26); }

/* ---------- Tabelle / Rechenbeispiel ---------- */

.tabelle-rahmen {
  overflow-x: auto;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gr);
  overflow: hidden;
  box-shadow: var(--schatten);
}
table.rechnung { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.rechnung th, table.rechnung td { padding: 15px 22px; text-align: left; }
table.rechnung thead th {
  background: var(--tanne);
  color: #fff;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .1em;
  text-transform: uppercase;
}
/* Zahlenspalten rechtsbündig: die beiden letzten Spalten */
table.rechnung td:nth-last-child(-n+2),
table.rechnung th:nth-last-child(-n+2) { text-align: right; }
table.rechnung tbody tr + tr { border-top: 1px solid var(--linie); }
table.rechnung tbody tr:nth-child(even) { background: #fcfaf6; }
table.rechnung tfoot td {
  border-top: 2px solid var(--tanne);
  font-weight: 700;
  font-size: 1.06rem;
  background: var(--sand-tief);
}
.notiz { font-size: .86rem; color: var(--tinte-weich); margin-top: 14px; }

/* Schmale Bildschirme: Tabellenzeilen werden zu Karten */
@media (max-width: 680px) {
  table.rechnung thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  table.rechnung, table.rechnung tbody, table.rechnung tfoot, table.rechnung tr, table.rechnung td { display: block; width: 100%; }
  table.rechnung tbody tr, table.rechnung tfoot tr { padding: 16px 18px; }
  table.rechnung tbody tr + tr { border-top: 1px solid var(--linie); }
  table.rechnung tbody tr:first-child { border-top: 1px solid var(--linie); }
  table.rechnung td { padding: 4px 0; text-align: left !important; }
  table.rechnung td[data-spalte]::before {
    content: attr(data-spalte);
    display: block;
    font-size: .68rem;
    font-weight: 650;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--tinte-weich);
  }
  table.rechnung td[data-spalte] { font-weight: 600; }
  table.rechnung tfoot td { border-top: 0; background: none; }
  table.rechnung tfoot tr { background: var(--sand-tief); border-top: 2px solid var(--tanne); }
}

/* ---------- Zitat ---------- */

.zitat {
  border-left: 3px solid var(--holz);
  padding: 4px 0 4px 26px;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.3vw, 1.6rem);
  line-height: 1.4;
  color: var(--tanne-tief);
}
.abschnitt-dunkel .zitat { color: #fff; }

/* ---------- Ablauf / Schritte ---------- */

.schritte { counter-reset: s; display: grid; gap: 4px; }
.schritt {
  position: relative;
  padding: 24px 0 24px 72px;
  border-top: 1px solid var(--linie);
}
.schritt:last-child { border-bottom: 1px solid var(--linie); }
.schritt::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: 24px;
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--holz);
}
.schritt h3 { margin-bottom: .3em; font-family: var(--sans); font-size: 1.08rem; font-weight: 650; }
.schritt p { color: var(--tinte-weich); font-size: .97rem; }

/* ---------- Kontakt / CTA ---------- */

.cta {
  background: linear-gradient(135deg, var(--tanne-tief), var(--moos));
  color: #fff;
  border-radius: var(--radius-gr);
  padding: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta h2 { color: #fff; margin-bottom: .4em; }
.cta p { color: rgba(255,255,255,.85); margin-bottom: 0; }
.cta-knoepfe { display: flex; flex-direction: column; gap: 12px; }
.cta-knoepfe .knopf { justify-content: center; }

.formular { display: grid; gap: 16px; }
.feld { display: grid; gap: 6px; }
.feld label { font-size: .88rem; font-weight: 600; }
.feld input, .feld select, .feld textarea {
  font: inherit;
  font-size: .97rem;
  padding: 12px 14px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--papier);
  color: var(--tinte);
}
.feld input:focus, .feld select:focus, .feld textarea:focus {
  outline: 2px solid var(--holz);
  outline-offset: 1px;
  border-color: transparent;
}
.feld textarea { resize: vertical; min-height: 110px; }
.feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hinweis-klein { font-size: .82rem; color: var(--tinte-weich); }

.kontaktliste { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.kontaktliste li { display: grid; gap: 2px; }
.kontaktliste b { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--holz-text); font-weight: 650; }
.kontaktliste a { font-size: 1.05rem; }

/* ---------- FAQ ---------- */

.faq details {
  border-bottom: 1px solid var(--linie);
  padding: 20px 0;
}
.faq details:first-of-type { border-top: 1px solid var(--linie); }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--tanne-tief);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--holz); font-size: 1.5rem; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 14px; color: var(--tinte-weich); max-width: 70ch; }

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

.fuss {
  background: var(--tanne-tief);
  color: rgba(255,255,255,.62);
  padding: 64px 0 32px;
  font-size: .93rem;
}
.fuss-gitter {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.fuss h3 {
  font-family: var(--sans);
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
  margin-bottom: 14px;
}
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.fuss a { color: rgba(255,255,255,.72); text-decoration: none; }
.fuss a:hover { color: #fff; text-decoration: underline; }
.fuss-marke {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--sans); font-size: 1.05rem; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  color: #fff; margin-bottom: 16px;
}
.fuss-marke img { width: 44px; height: 44px; }
.fuss-marke b { font-weight: 700; color: #e0b24a; }
.fuss-unten {
  padding-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  justify-content: space-between;
  font-size: .85rem;
  color: rgba(255,255,255,.45);
}

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

.rechtstext h2 { font-size: 1.5rem; margin-top: 2.2em; }
.rechtstext h3 { font-size: 1.12rem; font-family: var(--sans); font-weight: 650; margin-top: 1.8em; }
.rechtstext h2:first-child { margin-top: 0; }
.rechtstext ul { padding-left: 1.2em; }
.rechtstext li { margin-bottom: .4em; }
.platzhalter {
  background: #fff6e2;
  border: 1px dashed var(--holz);
  border-radius: 4px;
  padding: 1px 7px;
  font-size: .93em;
  font-weight: 600;
  color: #8a4e1b;
}

.hinweisbox {
  background: var(--papier);
  border: 1px solid var(--linie);
  border-left: 3px solid var(--holz);
  border-radius: var(--radius);
  padding: 22px 26px;
  font-size: .94rem;
  color: var(--tinte-weich);
}
.hinweisbox strong { color: var(--tinte); }

/* ---------- Responsiv ---------- */

@media (max-width: 960px) {
  .duo { grid-template-columns: 1fr; }
  .duo.gedreht .duo-bild { order: 0; }
  .band-gitter { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
  .fuss-gitter { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Seit der Terminknopf im Menü steht, wird es zwischen 1120 und 1360 px eng:
   Dort fällt die Unterzeile der Marke weg und die Menüpunkte rücken zusammen.
   Darunter klappt das Menü ein. */
@media (min-width: 1121px) and (max-width: 1359px) {
  .marke small { display: none; }
  .nav a { padding-inline: 10px; }
  .nav a.nav-termin { padding-inline: 14px; }
}

@media (max-width: 1120px) {
  .nav-schalter { display: flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 24px 20px;
    background: var(--sand);
    border-bottom: 1px solid var(--linie);
    box-shadow: var(--schatten);
  }
  .nav.offen { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav a.nav-termin { margin: 8px 0 0; padding: 13px 16px; text-align: center; }
  .kopf-innen { position: relative; }
}

@media (max-width: 430px) {
  .marke small { display: none; }
  .marke { font-size: 1.04rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .inhalt, .schmal, .kopf-innen, .hero-text { width: min(100% - 32px, var(--breite)); }
  .band-gitter { grid-template-columns: 1fr; }
  .fuss-gitter { grid-template-columns: 1fr; }
  .feld-zeile { grid-template-columns: 1fr; }
  table.rechnung th, table.rechnung td { padding: 12px 14px; font-size: .92rem; }
  .schritt { padding-left: 54px; }
}

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

/* ---------- Überschlagsrechner ---------- */

.rechner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 0;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-radius: var(--radius-gr);
  overflow: hidden;
  box-shadow: var(--schatten-gr);
}

.rechner h3 {
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.rechner-eingabe {
  padding: clamp(26px, 3.4vw, 38px);
  background: var(--sand-tief);
  display: grid;
  gap: 20px;
  align-content: start;
}
.rechner-eingabe h3 { color: var(--tinte-weich); margin-bottom: 2px; }

.label-zusatz {
  font-weight: 400;
  color: var(--tinte-weich);
  font-size: .82em;
}

.eingabe-mit-einheit { position: relative; display: block; }
.eingabe-mit-einheit input {
  width: 100%;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  padding: 13px 44px 13px 14px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--papier);
  color: var(--tinte);
}
.eingabe-mit-einheit span {
  position: absolute;
  right: 15px; top: 50%;
  transform: translateY(-50%);
  color: var(--tinte-weich);
  font-weight: 600;
  pointer-events: none;
}
.eingabe-mit-einheit input:focus {
  outline: 2px solid var(--holz);
  outline-offset: 1px;
  border-color: transparent;
}

.rechner select {
  font: inherit;
  font-size: 1rem;
  padding: 13px 14px;
  border: 1px solid var(--linie);
  border-radius: 10px;
  background: var(--papier);
  color: var(--tinte);
  width: 100%;
}

.rechner input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  margin-top: 12px;
  border-radius: 999px;
  background: var(--linie);
  cursor: pointer;
}
.rechner input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--holz);
  border: 3px solid var(--papier);
  box-shadow: 0 1px 6px rgba(35,31,27,.3);
}
.rechner input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--holz);
  border: 3px solid var(--papier);
}

.rechner-ergebnis {
  padding: clamp(26px, 3.4vw, 38px);
  background: var(--tanne-tief);
  color: rgba(255,255,255,.8);
}
.rechner-ergebnis h3 { color: rgba(255,255,255,.55); }

.ergebnis-haupt {
  padding-bottom: 24px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.15);
}
.ergebnis-label {
  display: block;
  font-size: .86rem;
  color: rgba(255,255,255,.6);
}
.ergebnis-haupt b {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.05;
  color: var(--holz-hell);
  font-variant-numeric: tabular-nums;
  margin: 6px 0 8px;
}
.ergebnis-fuss {
  display: block;
  font-size: .92rem;
  color: rgba(255,255,255,.72);
}

.ergebnis-liste { list-style: none; padding: 0; margin: 0; }
.ergebnis-liste li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  font-size: .95rem;
}
.ergebnis-liste li:last-child { border-bottom: 0; }
.ergebnis-liste small {
  display: block;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
  margin-top: 2px;
}
.ergebnis-liste b {
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  color: #fff;
  white-space: nowrap;
}
.ergebnis-liste .ergebnis-trenner {
  border-top: 1px solid rgba(255,255,255,.22);
  margin-top: 8px;
  padding-top: 16px;
}

.rechner-warnung {
  margin: 20px 0 0;
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(224,154,95,.14);
  border: 1px solid rgba(224,154,95,.35);
  color: rgba(255,255,255,.85);
  font-size: .88rem;
}

@media (max-width: 860px) {
  .rechner { grid-template-columns: 1fr; }
}

/* ---------- Zeitstrahl ---------- */

.strahl { list-style: none; padding: 0; margin: 0; position: relative; }
.strahl::before {
  content: "";
  position: absolute;
  left: 11px; top: 10px; bottom: 10px;
  width: 2px;
  background: var(--linie);
}
.strahl li {
  position: relative;
  padding: 0 0 30px 48px;
}
.strahl li:last-child { padding-bottom: 0; }
.strahl li::before {
  content: "";
  position: absolute;
  left: 4px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--papier);
  border: 3px solid var(--holz);
}
.strahl h3 {
  font-family: var(--sans);
  font-size: 1.04rem;
  font-weight: 650;
  margin-bottom: .3em;
}
.strahl .zeitpunkt {
  display: block;
  font-size: .74rem;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--holz-hell);   /* steht nur im dunklen Abschnitt */
  margin-bottom: 4px;
}
.strahl p { color: var(--tinte-weich); font-size: .96rem; }

.abschnitt-dunkel .strahl::before { background: rgba(255,255,255,.18); }
.abschnitt-dunkel .strahl li::before { background: var(--tanne-tief); }
.abschnitt-dunkel .strahl p { color: rgba(255,255,255,.72); }

/* ---------- Gegenüberstellung ---------- */

.gegenueber {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.gegenueber > div {
  border-radius: var(--radius-gr);
  padding: 30px 32px;
  border: 1px solid var(--linie);
}
.gegenueber .ohne { background: var(--papier); }
.gegenueber .mit  { background: var(--tanne-tief); color: rgba(255,255,255,.82); border-color: transparent; }
.gegenueber .mit h3 { color: #fff; }
.gegenueber h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 650; margin-bottom: 16px; }
.gegenueber .betrag {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.gegenueber .ohne .betrag { color: #9b3d2e; }
.gegenueber .mit .betrag  { color: var(--holz-hell); }
.gegenueber p { font-size: .94rem; }
.gegenueber .ohne p { color: var(--tinte-weich); }

@media (max-width: 720px) {
  .gegenueber { grid-template-columns: 1fr; }
}

/* ---------- Sehr schmale Geräte: lange Komposita umbrechen ---------- */

h1, h2, h3, h4, p, li, td, th, summary, label, figcaption {
  overflow-wrap: break-word;
}

/* Silbentrennung nur, wo der Platz wirklich knapp wird */
@media (max-width: 560px) {
  h1, h2, h3 { hyphens: auto; }
}

/* Rasterkinder dürfen unter ihre Mindestbreite schrumpfen */
.duo > *,
.karten > *,
.merkmale > *,
.gegenueber > *,
.band-gitter > *,
.rechner > *,
.cta > *,
.strahl li,
.fuss-gitter > * {
  min-width: 0;
}


/* ---------- Videos zum Anklicken ---------- */

/* Geladen wird erst beim Klick (preload="none") – bis dahin steht nur das
   Standbild da. Das Seitenverhältnis ist fest, damit beim Laden nichts springt. */
.film { margin: 0; }
.film video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-gr);
  box-shadow: var(--schatten-gr);
  background: var(--tanne-tief);
}
.film figcaption { font-size: .85rem; color: var(--tinte-weich); padding-top: 10px; text-align: center; }
.film-hoch { width: min(100%, 360px); margin-inline: auto; }
.film-hoch video { aspect-ratio: 9 / 16; object-fit: cover; }

h3.gross { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- Porträt ---------- */

/* Feste Breite statt max-width: Mit margin auto würde das Rasterfeld sonst auf
   die Bildbreite schrumpfen – und die ist null, solange das Foto nicht geladen ist. */
.duo-bild.portraet { width: min(100%, 420px); margin-inline: auto; }
.kontakt-kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.kontakt-kopf img {
  flex: none;
  width: 84px; height: 84px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 12%;
}
.kontakt-kopf h3 { margin: 0 0 2px; }
.kontakt-kopf p { margin: 0; font-size: .9rem; color: var(--tinte-weich); }


/* Knopf, der zu einem Video springt: kleines Abspieldreieck davor */
.knopf-film::before {
  content: "";
  display: inline-block;
  width: 0; height: 0;
  margin-right: 10px;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
  vertical-align: -1px;
}
.hero-klein .hero-knoepfe { margin-top: 22px; }


/* ---------- Terminknopf, solange das Menü eingeklappt ist ----------
   Der wichtigste Knopf der Seite darf nicht hinter dem Menüsymbol liegen.
   Auf Tablets steht er deshalb in der Kopfzeile neben dem Symbol, auf dem
   Handy – wo dort kein Platz ist – als schwebende Leiste am unteren Rand,
   in Daumenhöhe. Im aufgeklappten Menü entfällt er dafür. */
.kopf-termin, .termin-leiste { display: none; }

@media (min-width: 600px) and (max-width: 1120px) {
  .kopf-termin {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: .94rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(140,70,0,.45);
  }
  .kopf-termin:hover { background: var(--orange-tief); }
  .nav-schalter { margin-left: 12px; }
  .nav a.nav-termin { display: none; }
}

@media (max-width: 599px) {
  .termin-leiste {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 12px; right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 40;                      /* unter Kopfzeile (50) und Bildvergrößerung (100) */
    padding: 15px 20px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-shadow: 0 1px 2px rgba(140,70,0,.45);
    box-shadow: 0 8px 28px rgba(20,42,33,.32);
  }
  /* Platz unter dem Fuß, damit die Leiste Impressum und Datenschutz nicht verdeckt */
  .fuss { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .nav a.nav-termin { display: none; }
}
