/* Heim Stuttgart – ein Stylesheet, mobil zuerst.
 *
 * Farben: Oxblood (`--lack`, Primärfarbe der bisherigen Site, bewusst gewählt) für Knöpfe, Links,
 * Akzente, dunkle Flächen und die Logo-Flügel; auf dunklem Grund hellere Flügel wie auf den
 * Fahrzeugen. Auf dunklem Grund heben Weiß und Oxblood hervor (Auswahl, Preis, Fokus), sonst
 * Beton. Die Containerskizze ist rot, weil sie den echten roten Container zeigt.
 * Schrift: Archivo (variabel, selbst gehostet, mit mehr Abstand zwischen f und i aus
 * `tools/schrift-fi.py`). Schmal und schwer für Überschriften wie die Buchstaben im Logo, normale
 * Breite für Fließtext.
 * Die abgeschrägten unteren Bildecken zitieren die Absetzcontainer-Silhouette aus dem Logo.
 */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wdth-fi.woff2") format("woff2-variations"), url("/fonts/archivo-latin-wdth-fi.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --lack: #561728; /* steht auch in `static/favicon.svg`; Rasterbilder danach mit `tools/icons.sh` */
  --lack-tief: #3b0e1a;
  --lack-hell: #c0394d;
  --tinte: #231f20;
  --grau: #5b5457;
  --beton: #e6e5e2;
  --beton-hell: #f3f2f0;
  --linie: #cdc9c4;
  --weiss: #fff;

  --schrift: "Archivo", "Arial Narrow", Arial, sans-serif;
  --fase: clamp(1.25rem, 4vw, 2.5rem); /* Abschrägung der Bildecken */
  --aktionen-h: 0px;
  --radius: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Nur für Screenreader, z. B. Beschriftungen, die sonst ein Icon trägt. */
.nur-vorlesen {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 1rem;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--weiss);
  color: var(--tinte);
  font-family: var(--schrift);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-stretch: 100%;
  font-variant-numeric: lining-nums;
  font-kerning: normal; /* trägt den f-i-Abstand der Schrift, auch wo „auto“ nicht kernt */
  padding-bottom: var(--aktionen-h);
  /* Fuß auch bei kurzen Seiten (404) am unteren Rand. */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

h1, h2, h3 {
  font-stretch: 72%;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.005em;
  text-wrap: balance;
  overflow-wrap: break-word;
  margin: 0;
}
/* Lange Wörter in Überschriften (`templates/components/trennen.html`): ein Block, der höchstens so
 * breit wie die Zeile wird. Nur ein Wort, das allein nicht hineinpasst, wird darin getrennt statt
 * abgeschnitten; alle anderen bleiben ganz. Ohne Trennwörterbuch bricht `overflow-wrap` es um. */
.wort { display: inline-block; max-width: 100%; -webkit-hyphens: auto; hyphens: auto; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.9rem); }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.6rem); }
h3 { font-size: 1.35rem; font-stretch: 82%; font-weight: 750; line-height: 1.15; }

p, ul, ol { margin: 0; }
a { color: var(--lack); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--lack-tief); text-decoration-thickness: 2px; }
strong, b { font-weight: 700; }
img { max-width: 100%; height: auto; display: block; }

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

.sprung {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--tinte);
  color: var(--weiss);
  padding: 0.5rem 1rem;
  z-index: 20;
}
.sprung:focus { top: 1rem; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

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

.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.3rem;
  border: 2px solid var(--lack);
  border-radius: var(--radius);
  background: var(--lack);
  color: var(--weiss);
  font: inherit;
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.knopf:hover { background: var(--lack-tief); border-color: var(--lack-tief); color: var(--weiss); text-decoration: none; }
.knopf-zweit { background: transparent; color: var(--tinte); border-color: var(--tinte); }
.knopf-zweit:hover { background: var(--tinte); border-color: var(--tinte); color: var(--weiss); }
/* Hauptknopf auf dunklem Grund. */
.knopf-hell { background: var(--weiss); border-color: var(--weiss); color: var(--lack); }
.knopf-hell:hover { background: var(--beton); border-color: var(--beton); color: var(--lack-tief); }
.knopf:disabled { opacity: 0.6; cursor: progress; }

.knopf-text {
  background: none;
  border: 0;
  padding: 0.25rem 0;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--lack);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
main > .cta { margin-top: 1.5rem; }

/* Firmenname als kleinere Zeile vor der Überschrift: in der H1 (Startseite) oder davor (Unterseiten). */
.vorspann, .seitenkopf-kicker {
  display: block;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  font-weight: 650;
  font-stretch: 88%;
  line-height: 1.2;
  letter-spacing: 0;
}
.vorspann { margin-bottom: 0.45rem; }

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

.kopf {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas: "logo . tel" "nav nav nav";
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.75rem 1rem 0;
  border-bottom: 1px solid var(--linie);
}
.kopf-logo { grid-area: logo; display: block; }
.kopf-logo .logo { height: 2.6rem; width: auto; display: block; }

.kopf-telefon {
  grid-area: tel;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 2px solid var(--tinte);
  border-radius: var(--radius);
  color: var(--tinte);
  font-weight: 700;
  font-stretch: 88%;
  text-decoration: none;
  white-space: nowrap;
}
.kopf-telefon:hover { background: var(--tinte); color: var(--weiss); text-decoration: none; }

.kopf-nav {
  grid-area: nav;
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  margin-inline: -1rem;
  padding-inline: 1rem 2.5rem;
  /* Ausblenden am rechten Rand zeigt, dass die Leiste weiterscrollt. */
  mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent);
}
.kopf-nav::-webkit-scrollbar { display: none; }
.kopf-nav a {
  flex: none;
  padding: 0.6rem 0 0.7rem;
  border-bottom: 3px solid transparent;
  color: var(--tinte);
  font-weight: 600;
  font-stretch: 88%;
  text-decoration: none;
  white-space: nowrap;
}
.kopf-nav a:hover { border-bottom-color: var(--linie); }
.kopf-nav a[aria-current="page"] { border-bottom-color: var(--lack); }

@media (max-width: 26rem) {
  .kopf-telefon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
}

@media (min-width: 60rem) {
  .kopf {
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "logo nav tel";
    gap: 2rem;
    padding: 0 max(1.5rem, (100vw - 76rem) / 2);
  }
  .kopf-logo { padding-block: 0.9rem; }
  .kopf-logo .logo { height: 3.4rem; }
  .kopf-nav { margin: 0; padding: 0; gap: 1.75rem; justify-content: flex-end; align-self: stretch; mask-image: none; }
  .kopf-nav a { display: flex; align-items: center; padding: 0; border-bottom-width: 4px; border-top: 4px solid transparent; }
}

/* ---------- Logo ---------- */

.logo-fluegel { fill: var(--lack); }
.logo-schrift { fill: #000; }
.logo text { font-family: var(--schrift); font-size: 92px; font-weight: 800; font-stretch: 100%; }
.logo-hell .logo-fluegel { fill: var(--lack-hell); }
.logo-hell .logo-schrift { fill: var(--weiss); }

/* ---------- Seitenraster ---------- */

main {
  display: grid;
  grid-template-columns:
    [voll-start] minmax(1rem, 1fr)
    [weit-start] minmax(0, 9rem)
    [breit-start] minmax(0, 8rem)
    [text-start] min(42rem, 100% - 2rem)
    [text-end] minmax(0, 8rem)
    [breit-end] minmax(0, 9rem)
    [weit-end] minmax(1rem, 1fr)
    [voll-end];
  align-content: start;
  flex-grow: 1;
  padding-bottom: 4rem;
}
main > * { grid-column: text; }
main > * + * { margin-top: 1.1rem; }

main > h2 {
  margin-top: 4rem;
  margin-bottom: 0.4rem;
}
/* Kleine Containersilhouette über jedem Abschnitt, wie die Flügel im Logo. */
main > h2::before,
.faq h2::before {
  content: "";
  display: block;
  width: 2.25rem;
  height: 0.8rem;
  margin-bottom: 0.9rem;
  background: var(--lack);
  clip-path: polygon(0 0, 100% 0, 78% 100%, 22% 100%);
}
main > h3 { margin-top: 2rem; }

main > ul { padding-left: 1.2rem; list-style: square; }
main li + li { margin-top: 0.35rem; }
main li::marker { color: var(--lack); }

.stichworte { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
main > .stichworte { padding: 0; margin-top: 1.25rem; }
.stichworte li {
  margin: 0;
  padding: 0.4rem 0.75rem;
  background: var(--beton-hell);
  border-left: 3px solid var(--lack);
  font-weight: 600;
  font-stretch: 88%;
  line-height: 1.3;
}

/* Fotos: etwas breiter als der Text, unten abgeschrägt. */
main > img {
  grid-column: breit;
  width: 100%;
  margin-block: 2rem 1rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--fase)), calc(100% - var(--fase)) 100%, var(--fase) 100%, 0 calc(100% - var(--fase)));
}
main > img.hoch {
  grid-column: text;
  justify-self: center;
  max-width: min(100%, 28rem);
}
@media (max-width: 42rem) {
  main > img { grid-column: voll; }
  main > img.hoch { grid-column: voll; max-width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; object-position: 50% 40%; }
}

/* ---------- Startseite: Kopfbereich ---------- */

.held {
  grid-column: voll;
  display: grid;
  grid-template-columns: subgrid;
  padding-bottom: 1rem;
}
.held-bild { grid-column: voll; grid-row: 1; }
.held-bild img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--fase)), calc(100% - var(--fase)) 100%, var(--fase) 100%, 0 calc(100% - var(--fase)));
}
.held-text { grid-column: text; grid-row: 2; padding-top: 1.5rem; }
.held-text .cta { margin-top: 1.75rem; }

@media (min-width: 40rem) {
  .held-bild img { aspect-ratio: 2 / 1; }
}
@media (min-width: 60rem) {
  .held {
    grid-column: weit;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 3.5rem;
    padding-block: 3.5rem 2rem;
  }
  .held-text { grid-column: 1; grid-row: 1; padding: 0; }
  .held-bild { grid-column: 2; grid-row: 1; }
  .held-bild img { aspect-ratio: 4 / 3.4; }
}

/* ---------- Unterseiten: Kopfbereich ---------- */

.seitenkopf {
  grid-column: voll;
  display: grid;
  grid-template-columns: subgrid;
  row-gap: 0.9rem;
  padding-block: 2.5rem 2.75rem;
  background: var(--beton-hell);
  border-bottom: 1px solid var(--linie);
}
.seitenkopf > * { grid-column: text; }
/* Direkt über dem Rechner bündig mit ihm. */
.seitenkopf:has(+ .rechner) > * { grid-column: weit; }
.seitenkopf-sub { font-size: 1.15rem; color: var(--grau); max-width: 36rem; }
.seitenkopf .cta { margin-top: 0.75rem; }
.seitenkopf + * { margin-top: 2.5rem; }
.seitenkopf + .rechner { margin-top: 0; }

/* ---------- Leistungen ---------- */

.leistungen {
  grid-column: breit;
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}
.leistung {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem 1.25rem 1.6rem;
  background: var(--beton-hell);
  border-top: 6px solid var(--lack);
}
.leistung p:last-child { margin-top: auto; padding-top: 0.4rem; }
@media (min-width: 46rem) {
  .leistungen { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .leistung { padding: 1.75rem 1.75rem 2rem; }
}

/* ---------- Containerrechner ---------- */

.rechner {
  grid-column: voll;
  margin-block: 3rem 1rem;
  padding-block: 3rem 2.5rem;
  background: var(--lack);
  color: var(--weiss);
  --chip-bg: rgb(255 255 255 / 0.07);
  --chip-rand: rgb(255 255 255 / 0.28);
  --chip-an-bg: var(--weiss);
  --chip-an-text: var(--lack);
  --chip-an-rand: var(--weiss);
}
.rechner :focus-visible { outline-color: var(--weiss); }
.rechner a:not(.knopf) { color: var(--weiss); }

.rechner + p { margin-top: 2.5rem; }

.rechner-innen {
  width: min(100% - 2rem, 76rem);
  margin-inline: auto;
  display: grid;
  gap: 2rem;
}
.rechner-intro { display: grid; gap: 1rem; max-width: 42rem; }
.rechner-intro p { color: rgb(255 255 255 / 0.82); }

.rechner-form { display: grid; gap: 1.5rem; align-items: start; }
.rechner-felder { display: grid; gap: 1.6rem; }

.feld { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 0.55rem; }
.feld > label, .feld > legend {
  padding: 0;
  font-weight: 700;
  font-stretch: 88%;
  line-height: 1.3;
}
.feld > legend { margin-bottom: 0.55rem; }

select {
  appearance: none;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.7rem 3rem 0.7rem 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: var(--weiss) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231f20' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 1.25rem;
  color: var(--tinte);
  font: inherit;
  font-weight: 600;
}

/* Auswahl-Kacheln: echte Radiobuttons, optisch als Segmente. */
.wahl { display: grid; gap: 0.5rem; }
.wahl-reihe { grid-auto-flow: column; grid-auto-columns: 1fr; }
.wahl label { position: relative; display: flex; }
.wahl input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.wahl span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  min-height: 3rem;
  padding: 0.5rem 0.6rem;
  border: 2px solid var(--chip-rand, var(--linie));
  border-radius: var(--radius);
  background: var(--chip-bg, var(--weiss));
  font-weight: 600;
  font-stretch: 88%;
  line-height: 1.2;
  text-align: center;
  pointer-events: none;
}
.wahl small { font-size: 0.85em; font-weight: 500; }
.wahl-reihe span { flex-direction: row; flex-wrap: wrap; }
.wahl input:hover + span { border-color: var(--chip-an-rand, var(--lack)); }
.wahl input:checked + span {
  background: var(--chip-an-bg, var(--lack));
  border-color: var(--chip-an-rand, var(--lack));
  color: var(--chip-an-text, var(--weiss));
  font-weight: 750;
}
.wahl input:focus-visible + span { outline: 3px solid var(--chip-an-rand, var(--lack)); outline-offset: 2px; }
.wahl-liste span { justify-content: flex-start; text-align: left; padding-inline: 1rem; gap: 0.6rem; font-weight: 500; }
.wahl-liste b { flex: none; font-weight: 750; }
.wahl-liste span::before {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: 0.7;
}
.wahl-liste input:checked + span::before { opacity: 1; background: radial-gradient(currentColor 0 40%, transparent 45%); }

/* Ergebnis: auf dem Handy klebt es am unteren Rand, solange der Rechner sichtbar ist. */
.rechner-ergebnis {
  position: sticky;
  bottom: var(--aktionen-h);
  z-index: 2;
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  align-items: center;
  gap: 0.6rem 1rem;
  margin-inline: -1rem;
  padding: 0.85rem 1rem;
  background: var(--lack-tief);
  border-top: 3px solid var(--weiss);
  box-shadow: 0 -0.75rem 1.5rem rgb(0 0 0 / 0.25);
}
.rechner-ergebnis output { display: grid; gap: 0.1rem; line-height: 1.25; }
.rechner-titel { font-size: 0.8125rem; color: rgb(255 255 255 / 0.75); }
.rechner-preis { font-size: 1rem; }
.rechner-preis strong {
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.1rem);
  font-weight: 800;
  font-stretch: 78%;
  font-variant-numeric: tabular-nums;
  color: var(--weiss);
}
.rechner-netto { font-size: 0.875rem; color: rgb(255 255 255 / 0.75); font-variant-numeric: tabular-nums; }
.rechner-ergebnis .knopf { grid-column: 1 / -1; width: 100%; }

.rechner-hinweis { display: grid; gap: 0.75rem; max-width: 42rem; font-size: 0.9375rem; color: rgb(255 255 255 / 0.75); }

/* Containerskizze */
.skip { width: 100%; height: auto; overflow: visible; }
.skip-koerper {
  transform-box: view-box;
  transform-origin: 110px 112px;
  transform: scale(var(--skip-skala, 0.92));
}
.skip-wand { fill: #a3263a; stroke: #d65a6e; stroke-width: 2; stroke-linejoin: round; }
.skip-raum { fill: var(--lack-tief); }
.skip-fuellung {
  fill: #a59c92;
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(var(--skip-fuellung, 1));
}
.skip-rand { fill: #c0394d; }
.skip-fuss { fill: #6d1120; }
@media (prefers-reduced-motion: no-preference) {
  .skip-koerper, .skip-fuellung { transition: transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1); }
}

@media (min-width: 56rem) {
  .rechner { padding-block: 4.5rem 4rem; }
  .rechner-innen { gap: 2.5rem; }
  .rechner-form { grid-template-columns: 1.25fr 1fr; gap: 3.5rem; }
  .rechner-ergebnis {
    position: sticky;
    top: 1.5rem;
    bottom: auto;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin: 0;
    padding: 2rem 1.75rem 1.75rem;
    border-top-width: 6px;
    box-shadow: none;
  }
  .skip { max-width: 20rem; justify-self: center; margin-bottom: 0.5rem; }
  .rechner-titel { font-size: 0.9375rem; }
  .rechner-preis { font-size: 1.125rem; }
  .rechner-preis { margin-block: 0.2rem 0.1rem; }
  .rechner-preis strong { font-size: 3.25rem; line-height: 1; }
  .rechner-netto { font-size: 1rem; }
}

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

.faq { margin-top: 4rem; }
.faq h2 { margin-bottom: 1.25rem; }
.faq details { border-top: 1px solid var(--linie); }
.faq details:last-child { border-bottom: 1px solid var(--linie); }
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1rem 0;
  font-weight: 650;
  font-stretch: 92%;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  background:
    linear-gradient(var(--lack), var(--lack)) center / 100% 3px no-repeat,
    linear-gradient(var(--lack), var(--lack)) center / 3px 100% no-repeat;
}
.faq details[open] summary::after { transform: rotate(45deg); }
@media (prefers-reduced-motion: no-preference) {
  .faq summary::after { transition: transform 0.2s; }
}
.faq summary:hover { color: var(--lack); }
.faq-antwort { padding-bottom: 1.25rem; color: var(--grau); }
.faq-antwort p + p { margin-top: 0.75rem; }

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

.kontakt {
  display: grid;
  gap: 1.5rem;
  padding: 1.5rem 1.25rem;
  background: var(--beton-hell);
  border-left: 6px solid var(--lack);
}
.kontakt address { font-style: normal; display: grid; gap: 0.75rem; }
.kontakt-firma { font-weight: 700; }
.kontakt ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.kontakt li { display: flex; gap: 0.65rem; align-items: start; margin: 0; }
.kontakt li .icon { margin-top: 0.2rem; color: var(--lack); }
.kontakt li a { overflow-wrap: anywhere; }
.zeiten h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
@media (min-width: 46rem) {
  .kontakt { grid-template-columns: 1.6fr 1fr; padding: 2rem; }
}

/* ---------- Angebotsanfrage ---------- */

.anfrage {
  grid-column: breit;
  display: grid;
  gap: 1.25rem;
  margin-top: 1.5rem;
  padding: 1.5rem 1.25rem 2rem;
  background: var(--beton);
}
.anfrage > p:has(> label), .anfrage > fieldset { display: grid; gap: 0.45rem; }
.anfrage fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.anfrage label, .anfrage legend { font-weight: 700; font-stretch: 88%; }
.anfrage legend { margin-bottom: 0.45rem; padding: 0; }
.anfrage .wahl label { font-weight: 600; }
.anfrage .wahl-reihe { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
.pflicht { color: var(--lack); }

input:not([type="radio"]), textarea {
  width: 100%;
  min-height: 3rem;
  padding: 0.65rem 0.85rem;
  border: 2px solid #8b8487;
  border-radius: var(--radius);
  background: var(--weiss);
  color: var(--tinte);
  font: inherit;
}
textarea { resize: vertical; min-height: 6.5rem; }
input:not([type="radio"]):focus-visible, textarea:focus-visible { border-color: var(--lack); outline-offset: 0; }
textarea[readonly] { background: var(--beton-hell); border-style: dashed; font-size: 0.9375rem; }
.anfrage-rechner { justify-items: start; }
.anfrage-klein { font-size: 0.9375rem; color: var(--grau); }
.anfrage .knopf { width: 100%; min-height: 3.5rem; font-size: 1.125rem; }
.anfrage-status:empty { display: none; }
.anfrage-status { font-weight: 700; color: var(--lack); }

@media (min-width: 46rem) {
  .anfrage { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; padding: 2.25rem 2.25rem 2.5rem; }
  .anfrage > :nth-child(n + 4) { grid-column: 1 / -1; }
  .anfrage .wahl-reihe { grid-auto-flow: column; grid-template-columns: none; }
  .anfrage .knopf { width: auto; padding-inline: 2rem; }
}

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

.fuss {
  background: var(--lack-tief);
  color: rgb(255 255 255 / 0.85);
  font-size: 0.9375rem;
  padding: 3rem 1rem 2rem;
}
.fuss a { color: var(--weiss); }
.fuss :focus-visible { outline-color: var(--weiss); }
.fuss-innen { width: min(100%, 76rem); margin-inline: auto; display: grid; gap: 1.75rem; }
.fuss-logo .logo { height: 3.25rem; width: auto; display: block; }
.fuss-kontakt { list-style: none; padding: 0; display: grid; gap: 0.5rem; }
.fuss-kontakt li, .fuss-kontakt a { display: flex; gap: 0.6rem; align-items: center; }
.fuss-kontakt a { text-decoration: none; }
.fuss-kontakt a:hover { text-decoration: underline; }
.fuss-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 255 255 / 0.15); }
@media (min-width: 46rem) {
  .fuss-innen { grid-template-columns: auto 1fr 1fr; align-items: start; column-gap: 3rem; }
  .fuss-links { grid-column: 1 / -1; }
}

/* ---------- Schnellkontakt-Leiste (nur Handy/Tablet) ---------- */

.aktionen {
  position: fixed;
  inset: auto 0 0;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--tinte);
  border-top: 1px solid rgb(255 255 255 / 0.12);
}
.aktionen a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  min-height: 3.5rem;
  color: var(--weiss);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
}
.aktionen a:hover { background: rgb(255 255 255 / 0.08); color: var(--weiss); }
.aktionen :focus-visible { outline-color: var(--weiss); outline-offset: -3px; }
.aktionen .icon { width: 1.35rem; height: 1.35rem; }
.aktionen a.aktionen-haupt { background: var(--lack); font-size: 0.9375rem; font-weight: 750; }
.aktionen a.aktionen-haupt:hover { background: var(--lack-tief); }

@media (max-width: 59.99rem) {
  :root { --aktionen-h: calc(3.5rem + env(safe-area-inset-bottom)); }
}
@media (min-width: 60rem) {
  .aktionen { display: none; }
}

/* ---------- Einwilligung ---------- */

.consent {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(var(--aktionen-h) + 0.75rem);
  z-index: 30;
  display: grid;
  gap: 0.75rem;
  max-width: 32rem;
  max-height: calc(100vh - var(--aktionen-h) - 1.5rem);
  overflow: auto;
  padding: 1.25rem;
  background: var(--weiss);
  border-top: 6px solid var(--lack);
  box-shadow: 0 0.5rem 2.5rem rgb(0 0 0 / 0.3);
  font-size: 0.9375rem;
}
.consent[hidden] { display: none; }
.consent p:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
@media (min-width: 60rem) {
  .consent { left: 1.5rem; bottom: 1.5rem; }
}

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

main > h2 + h3 { margin-top: 1.25rem; }
