/* ===========================================================
   abfindungshebel.de — Stylesheet
   Niels Kakies. Eine Schriftfamilie für Überschriften, eine für
   Text, ein Akzent (Holz), flache Flächen, Ecken höchstens 4 px.
   Keine Verläufe, keine Unschärfe, keine Bewegung beim Scrollen.
   =========================================================== */

:root {
  --tanne:      #1d3b2f;
  --tanne-tief: #142a21;
  --moos:       #4a6b55;
  --sand:       #f7f2e9;
  --sand-tief:  #ece3d4;
  --papier:     #ffffff;
  --tinte:      #231f1b;
  --tinte-weich:#5c564e;
  --linie:      #ddd3c2;

  /* Einziger Akzent. --holz-knopf trägt weiße Schrift (4,6 : 1), --holz-text
     steht als Schrift auf hellem Grund (4,6 : 1 auf Sand, 5,1 : 1 auf Weiß).
     --holz und --holz-hell sind nur Schmuck: Striche und Marken, nie Schrift. */
  --holz:       #c0763c;
  --holz-hell:  #e09a5f;
  --holz-licht: #f7dfc5;  /* heller Holzton, nur für Schrift auf dem abgedunkelten Hero */
  --holz-knopf: #aa6530;
  --holz-text:  #9f5d29;

  --breite: 1120px;
  --ecke:   4px;

  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans:  "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tinte);
  background: var(--sand);
  overflow-wrap: break-word;
}

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

a { color: var(--holz-text); text-underline-offset: 3px; }
a:hover { color: var(--tanne); }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--tanne);
  outline-offset: 3px;
}

h1, h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  color: var(--tanne-tief);
}
h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 .35em;
  color: var(--tanne-tief);
}
h1 { font-size: clamp(2.2rem, 5.2vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.5rem); }
h3 { font-size: 1.22rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; }

.inhalt { width: min(100% - 40px, var(--breite)); margin-inline: auto; }
.text   { max-width: 68ch; }
.text-breit { max-width: 80ch; }

.dachzeile {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--holz-text);
  margin: 0 0 .8rem;
}
.vorspann { font-size: 1.2rem; color: var(--tinte-weich); }
.klein { font-size: .9rem; color: var(--tinte-weich); }
.status { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-weich); margin: 0 0 .5rem; }

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

.abschnitt { padding: clamp(56px, 8vw, 104px) 0; }
.abschnitt.knapp { padding: clamp(36px, 5vw, 60px) 0; }
.auf-weiss    { background: var(--papier); }
.auf-sandtief { background: var(--sand-tief); }
/* Holz als Schrift erreicht auf Sand-tief nur 4,05 : 1. Dort steht Tanne. */
.auf-sandtief .dachzeile, .auf-sandtief a:not(.knopf) { color: var(--tanne); }
.auf-sandtief .hinweis a:not(.knopf) { color: var(--holz-text); }
.auf-tanne    { background: var(--tanne-tief); color: var(--sand); }
.auf-tanne h1, .auf-tanne h2, .auf-tanne h3, .auf-tanne h4 { color: var(--papier); }
.auf-tanne .dachzeile, .auf-tanne .vorspann, .auf-tanne .klein, .auf-tanne .status { color: var(--sand-tief); }
.auf-tanne a:not(.knopf) { color: var(--papier); }
.abschnittskopf { max-width: 62ch; margin-bottom: clamp(28px, 4vw, 48px); }

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

.kopf {
  position: sticky; top: 0; z-index: 50;
  background: var(--sand);
  border-bottom: 1px solid var(--linie);
}
.kopf-innen {
  width: min(100% - 40px, var(--breite));
  margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
  min-height: 72px;
}
/* Das Porträt ist freigestellt (durchsichtiger Hintergrund) und so hoch wie Name und Unterzeile zusammen. */
.marke { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--tanne); white-space: nowrap; }
.marke-foto { flex: none; width: 36px; height: 42px; }
.marke-text { display: block; }
.marke-name { display: block; font-family: var(--serif); font-weight: 600; font-size: 1.4rem; line-height: 1.15; color: var(--tanne); }
.marke small { display: block; font-size: .78rem; color: var(--tinte-weich); letter-spacing: .02em; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 10px 11px;
  font-size: 1rem;
  color: var(--tinte);
  text-decoration: none;
  white-space: nowrap;
}
.nav a:hover { color: var(--holz-text); text-decoration: underline; }
.nav a[aria-current="page"] { font-weight: 600; color: var(--tanne); border-bottom: 2px solid var(--holz); }
.nav a.nav-termin, .kopf-termin {
  margin-left: 10px;
  padding: 10px 16px;
  border-radius: var(--ecke);
  background: var(--holz-knopf);
  color: var(--papier);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.nav a.nav-termin:hover, .kopf-termin:hover { background: var(--tanne); color: var(--papier); text-decoration: none; }

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

.kopf-termin, .termin-leiste { display: none; }

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

.knopf {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid var(--holz-knopf);
  border-radius: var(--ecke);
  background: var(--holz-knopf);
  color: var(--papier);
  font-family: var(--sans); font-size: 1.02rem; font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: var(--tanne); border-color: var(--tanne); color: var(--papier); }
.knopf-rand { background: transparent; border-color: var(--tanne); color: var(--tanne); }
.knopf-rand:hover { background: var(--tanne); color: var(--papier); }
.auf-tanne .knopf-rand, .hero .knopf-rand { border-color: var(--papier); color: var(--papier); }
.auf-tanne .knopf-rand:hover, .hero .knopf-rand:hover { background: var(--papier); border-color: var(--papier); color: var(--tanne-tief); }
.auf-tanne .knopf:not(.knopf-rand):hover { background: var(--papier); border-color: var(--papier); color: var(--tanne-tief); }
.knopfreihe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.knopf-film::before {
  content: ""; width: 0; height: 0; margin-right: 10px;
  border-style: solid; border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

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

.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: grid; align-items: end;
  overflow: hidden;
  background: var(--tanne-tief);
  color: var(--papier);
}
.hero > img, .hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Eine einzige, gleichmäßige Abdunklung, damit die Überschrift auf jedem Bild
   des Videos lesbar bleibt. Bewusst kein Verlauf. */
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(20, 42, 33, .66); }
.hero-text {
  position: relative; z-index: 2;
  width: min(100% - 40px, var(--breite));
  margin-inline: auto;
  padding: 72px 0 64px;
}
.hero-text h1 { color: var(--papier); max-width: 17ch; }
/* Startseite: zwei Zeilen mit festem Umbruch. Auf dem Handy bricht die erste Zeile ausgewogen um. */
.hero-text h1.zweizeilig { max-width: none; font-size: clamp(1.75rem, 4.6vw, 3.4rem); text-wrap: balance; hyphens: manual; }
/* Die Dachzeile trägt einen Holzton. --holz-hell war über hellen Videostellen zu schwach (bis 2,2 : 1),
   deshalb --holz-licht. Gemessen am 25.11.2026 über den ganzen Videoverlauf: Bildschirm mindestens 4,4 : 1,
   Handy mindestens 4,0 : 1; über 4,5 : 1 in 98 % (Handy) bis 99,9 % (Bildschirm) der Messfelder.
   Überall 4,5 : 1 ginge nur mit einem fast weißen Ton. */
.hero-text .dachzeile { color: var(--holz-licht); letter-spacing: .08em; }
.hero-text p { max-width: 52ch; font-size: 1.22rem; color: rgba(255, 255, 255, .86); }
.hero-nebenlink { align-self: center; color: var(--papier); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.hero-nebenlink:hover { color: var(--holz-hell); }
.hero-klein { min-height: min(56vh, 440px); }
.hero-klein .hero-text { padding: 56px 0 44px; }
.hero-klein h1 { max-width: 22ch; font-size: clamp(2rem, 4.4vw, 3.1rem); }
.hero-pause {
  position: absolute; z-index: 3; right: 20px; bottom: 20px;
  min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--papier); border-radius: var(--ecke);
  background: var(--tanne-tief); color: var(--papier);
  font: 600 .9rem var(--sans); cursor: pointer;
}
.hero-pause:hover { background: var(--papier); color: var(--tanne-tief); }

.kennzahlen { background: var(--papier); border-bottom: 1px solid var(--linie); padding: 20px 0; }
.kennzahlen p { margin: 0; font-size: 1.05rem; color: var(--tinte); }

/* ---------- Zweispalter, Bilder ---------- */

.zwei { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.zwei.bild-links { grid-template-columns: 5fr 7fr; }
.zwei.halb { grid-template-columns: 1fr 1fr; }
.zwei.mittig { align-items: center; }
.zwei.gleichhoch { align-items: stretch; }
.zwei > * { min-width: 0; }
.bild { margin: 0; }
.bild img, .bild video { width: 100%; border-radius: 2px; }
.bild-fuellt img { aspect-ratio: 3 / 2; object-fit: cover; }
.bild-5-4 img { aspect-ratio: 5 / 4; }
.schritte-foto {
  max-width: 32rem;
  margin: 0 0 clamp(28px, 4vw, 48px);
}
/* Hochformat neben Text: Der Text bestimmt die Höhe, das Medium füllt sie. */
.medium-fuellt { position: relative; min-height: 420px; overflow: hidden; border-radius: 2px; }
/* Ausnahme von „Ecken höchstens 4 px“: das Feuerbild wirkte mit harter Kante zu schroff (Niels, 25.11.2026). */
.medium-fuellt.ecken-weich { border-radius: 8px; }
.medium-fuellt img, .medium-fuellt video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.randlos { margin: 0; }
.randlos img { width: 100%; height: clamp(240px, 44vw, 560px); object-fit: cover; }

.portraet { width: min(100%, 400px); }
.portraet img { width: 100%; border-radius: 2px; }

/* ---------- Listen ---------- */

.punkte { list-style: none; padding: 0; margin: 0 0 1.05em; display: grid; gap: 9px; }
.punkte li { position: relative; padding-left: 22px; }
.punkte li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--holz); }

.schritte { list-style: none; padding: 0; margin: 0; counter-reset: schritt; }
.schritte > li {
  counter-increment: schritt;
  display: grid; grid-template-columns: 3.2rem 1fr; gap: 0 12px;
  padding: 22px 0;
  border-top: 1px solid var(--linie);
}
.schritte > li::before {
  content: counter(schritt);
  font-family: var(--serif); font-weight: 600; font-size: 2rem; line-height: 1.1;
  color: var(--tanne);
}
.schritte > li > div > :last-child { margin-bottom: 0; }
.schritte .wann { font-size: .85rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--tinte-weich); margin: 0 0 .2rem; }
.auf-tanne .schritte > li { border-top-color: var(--moos); }
.auf-tanne .schritte > li::before { color: var(--papier); }
.auf-tanne .schritte .wann { color: var(--sand-tief); }
.schritte.zweispaltig { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 72px); }

.eintraege { margin: 0; }
.eintrag {
  display: grid; grid-template-columns: minmax(200px, 1fr) 2.3fr; gap: 6px 40px;
  padding: 22px 0;
  border-top: 1px solid var(--linie);
}
.eintrag h3 { margin: 0; }
.eintrag > div > :last-child { margin-bottom: 0; }
.auf-tanne .eintrag { border-top-color: var(--moos); }

.hinweis {
  padding: 18px 22px;
  background: var(--papier);
  border: 1px solid var(--linie);
  border-left: 4px solid var(--holz);
  border-radius: 0 var(--ecke) var(--ecke) 0;
  max-width: 80ch;
}
.auf-weiss .hinweis { background: var(--sand); }
.hinweis + .hinweis { margin-top: 16px; }

/* ---------- Vergleich ---------- */

.vergleich { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); }
.vergleich > div { border-top: 4px solid var(--tinte-weich); padding-top: 18px; }
.vergleich > div.mit { border-top-color: var(--tanne); }
.vergleich .betrag { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; color: var(--tanne-tief); margin: .1em 0 .3em; }

/* ---------- Tabellen ---------- */

.tabelle { overflow-x: auto; border: 1px solid var(--linie); background: var(--papier); }
table.rechnung { width: 100%; border-collapse: collapse; font-size: 1rem; }
.rechnung th, .rechnung td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--linie); vertical-align: top; }
.rechnung thead th { background: var(--tanne); color: var(--papier); font-weight: 600; }
.rechnung td:not(:first-child), .rechnung th:not(:first-child) { text-align: right; white-space: nowrap; }
.rechnung.textspalten td:nth-child(2), .rechnung.textspalten th:nth-child(2) { text-align: left; white-space: normal; }
.rechnung tfoot td { font-weight: 600; background: var(--sand-tief); border-bottom: 0; }
.notiz { font-size: .9rem; color: var(--tinte-weich); margin-top: 14px; max-width: 90ch; }

/* ---------- Rechner ---------- */

.rechner { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--linie); background: var(--papier); }
.rechner-eingabe, .rechner-ergebnis { padding: clamp(22px, 3.4vw, 36px); min-width: 0; }
.rechner-ergebnis { background: var(--tanne-tief); color: var(--sand); }
.rechner-ergebnis h3 { color: var(--papier); }
.feld { margin-bottom: 18px; }
.feld label { display: block; font-weight: 600; margin-bottom: 6px; }
.feld label span { font-weight: 400; color: var(--tinte-weich); }
.feld input[type="text"], .feld input[type="number"], .feld input[type="email"], .feld input[type="tel"], .feld select, .feld textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--tinte-weich);
  border-radius: var(--ecke);
  background: var(--papier);
  color: var(--tinte);
  font: 400 1.05rem var(--sans);
}
.feld textarea { min-height: 130px; resize: vertical; }
.feld input[type="range"] { width: 100%; margin-top: 12px; accent-color: var(--tanne); }
.mit-einheit { display: flex; align-items: center; gap: 10px; }
.mit-einheit span { font-weight: 600; }
.feld-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.ergebnis-haupt { padding-bottom: 20px; border-bottom: 1px solid var(--moos); margin-bottom: 8px; }
.ergebnis-haupt .bezeichnung { display: block; font-size: .95rem; color: var(--sand-tief); }
.ergebnis-haupt b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(2.3rem, 5vw, 3.2rem); line-height: 1.15; color: var(--papier); }
.ergebnis-haupt .dazu { display: block; color: var(--sand); }
.ergebnis-liste { list-style: none; margin: 0; padding: 0; }
.ergebnis-liste li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--moos); }
.ergebnis-liste li span small { display: block; font-size: .85rem; color: var(--sand-tief); }
.ergebnis-liste b { color: var(--papier); white-space: nowrap; }
.rechner-warnung { margin-top: 16px; padding: 12px 14px; border: 1px solid var(--sand-tief); border-radius: var(--ecke); font-size: .95rem; }
.rechner-ergebnis .knopf { margin-top: 22px; width: 100%; }

/* ---------- Häufige Fragen ---------- */

.fragen { border-bottom: 1px solid var(--linie); max-width: 80ch; }
.fragen details { border-top: 1px solid var(--linie); }
.fragen summary {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 18px 0;
  font-weight: 600; font-size: 1.12rem;
  cursor: pointer; list-style: none;
}
.fragen summary::-webkit-details-marker { display: none; }
.fragen summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--tanne); }
.fragen details[open] summary::after { content: "\2212"; }
.fragen details > p { margin: 0 0 20px; }

/* ---------- Galerie, Videos ---------- */

.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; margin-top: clamp(28px, 4vw, 48px); }
.galerie figure { margin: 0; }
.galerie button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; line-height: 0; }
.galerie img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 2px; }
.galerie figcaption { font-size: .9rem; color: var(--tinte-weich); padding: 6px 0 8px; line-height: 1.4; }

.lupe { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 24px; margin: 0; background: rgba(20, 42, 33, .96); }
.lupe[open] { display: grid; }
.lupe img { max-width: 100%; max-height: 82vh; }
.lupe figcaption { color: var(--papier); margin-top: 12px; text-align: center; }
.lupe-zu { position: absolute; top: 14px; right: 16px; width: 48px; height: 48px; border: 1px solid var(--papier); border-radius: var(--ecke); background: transparent; color: var(--papier); font-size: 1.6rem; line-height: 1; cursor: pointer; }

.film { margin: 0; }
.film video { display: block; width: 100%; border-radius: 2px; background: var(--tanne-tief); }
.film figcaption { font-size: .9rem; color: var(--tinte-weich); padding-top: 8px; }
.film-hoch { width: min(100%, 360px); }
.film-hoch video { aspect-ratio: 9 / 16; object-fit: cover; }

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

.kontakt-kopf { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.kontakt-kopf img { flex: none; width: 88px; height: 88px; border-radius: 2px; object-fit: cover; object-position: 50% 12%; }
.kontakt-kopf h3 { margin: 0 0 2px; }
.kontakt-kopf p { margin: 0; color: var(--tinte-weich); }
.kontaktliste { list-style: none; padding: 0; margin: 0 0 1.4em; }
.kontaktliste li { padding: 12px 0; border-top: 1px solid var(--linie); }
.kontaktliste b { display: block; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: var(--tinte-weich); }
.kontaktliste a { font-size: 1.15rem; }
.randspalte { border-left: 4px solid var(--holz); padding-left: clamp(18px, 3vw, 32px); }

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

.fuss { background: var(--tanne-tief); color: var(--sand); padding: 56px 0 28px; font-size: 1rem; }
.fuss-gitter { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid var(--moos); }
.fuss-gitter > * { min-width: 0; }
.fuss h3 { font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--papier); margin-bottom: 12px; }
.fuss ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fuss a { color: var(--sand); }
.fuss a:hover { color: var(--papier); }
.fuss-marke { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--papier); margin-bottom: 10px; }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; font-size: .92rem; }

.rechtstext h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.rechtstext h2 { font-family: var(--sans); font-size: 1.2rem; margin-top: 2em; }
.rechtstext ul { padding-left: 1.2em; }

/* ===========================================================
   Schmalere Bildschirme
   =========================================================== */

/* Zwischen 1100 und 1240 px wird das Menü eng: Unterzeile der Marke weg. */
@media (min-width: 1101px) and (max-width: 1240px) {
  .marke small { display: none; }
  .nav a { padding-inline: 8px; }
}

@media (max-width: 1100px) {
  .nav-schalter { display: flex; }
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 6px 20px 18px;
    background: var(--sand);
    border-bottom: 1px solid var(--linie);
  }
  .nav.offen { display: flex; }
  .nav a { padding: 13px 4px; border-top: 1px solid var(--linie); }
  .nav a[aria-current="page"] { border-bottom: 0; }
  .nav a.nav-termin { display: none; }
  .kopf-innen { position: relative; }
}

/* Der Terminknopf bleibt sichtbar, auch wenn das Menü eingeklappt ist:
   auf Tablets in der Kopfzeile, auf dem Handy als feste Leiste am unteren Rand. */
@media (min-width: 620px) and (max-width: 1100px) {
  .kopf-termin { display: inline-flex; margin-left: auto; }
  .nav-schalter { margin-left: 12px; }
}
@media (max-width: 619px) {
  .termin-leiste {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    min-height: 56px;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--holz-knopf);
    color: var(--papier);
    font-weight: 600; font-size: 1.05rem;
    text-decoration: none;
  }
  .fuss { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  /* Auf dem Handy oben rechts, damit der Knopf die beiden Knöpfe im Hero nicht überdeckt. */
  .hero-pause { top: 16px; bottom: auto; }
}

@media (max-width: 900px) {
  .zwei, .zwei.bild-links, .zwei.halb, .vergleich, .rechner, .schritte.zweispaltig { grid-template-columns: 1fr; }
  .zwei.bild-links > .bild, .zwei.bild-links > .portraet { order: 2; }
  .medium-fuellt { min-height: 0; }
  .medium-fuellt img, .medium-fuellt video { position: static; height: auto; }
  .fuss-gitter { grid-template-columns: 1fr 1fr; }
  .eintrag { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 17px; }
  /* Lange deutsche Wörter in Überschriften dürfen auf dem Handy getrennt werden */
  h1, h2, h3 { hyphens: auto; }
  .hero { min-height: min(88vh, 640px); }
  .hero-text { padding: 48px 0 40px; }
  .hero-text p { font-size: 1.1rem; }
  .feld-zeile { grid-template-columns: 1fr; }
  .fuss-gitter { grid-template-columns: 1fr; }
  .knopfreihe .knopf { width: 100%; }
  .schritte > li { grid-template-columns: 2.4rem 1fr; }

  /* Tabellen werden zu Blöcken, jede Zelle mit ihrer Spaltenüberschrift */
  .rechnung thead { display: none; }
  .rechnung, .rechnung tbody, .rechnung tfoot, .rechnung tr, .rechnung td { display: block; width: 100%; }
  .rechnung tr { padding: 10px 0; border-bottom: 1px solid var(--linie); }
  .rechnung td, .rechnung td:not(:first-child) { display: flex; justify-content: space-between; gap: 16px; padding: 4px 14px; border: 0; text-align: right; white-space: normal; }
  .rechnung td::before { content: attr(data-spalte); font-weight: 600; text-align: left; color: var(--tinte-weich); }
  .rechnung td:first-child { font-weight: 600; text-align: left; }
  .rechnung td:first-child::before { content: none; }
  .rechnung tfoot td[colspan] { display: block; text-align: left; }
  .rechnung tfoot td[colspan]::before { content: none; }
}

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