/* Werlein GmbH · Demo v2 · media·fk
   Eine Schrift (Anybody, variabel), zwei Grundfarben, ein Signal. */

@font-face {
  font-family: "Anybody";
  src: url("fonts/Anybody-VF.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 50% 150%;
  font-style: normal;
  font-display: swap;
}

:root {
  --petrol: #0f3b45;       /* Lackpetrol: dunkle Grundfarbe, Textfarbe */
  --tief: #0a2b33;         /* Petrol, abgedunkelt */
  --beton: #e3e6e4;        /* Betongrau: helle Grundfarbe */
  --hell: #eef0ef;         /* Beton, aufgehellt */
  --orange: #ff7a1a;       /* Blinkerorange: nur Anrufen und der eine laute Moment */
  --stumm: #3c5a61;        /* Nebentext auf Beton */
  --stumm-d: #a9bab9;      /* Nebentext auf Petrol */
  --zurueck: #6b8589;      /* nicht gewählte Wörter: 3,1 zu Beton, 3,1 zu Petrol */
  --rand: clamp(20px, 4.4vw, 72px);
  --links: max(var(--rand), env(safe-area-inset-left, 0px));
  --rechts: max(var(--rand), env(safe-area-inset-right, 0px));
  --unten: env(safe-area-inset-bottom, 0px);
  --leiste-h: 0px;         /* Platz, den die Anrufleiste braucht, wenn es sie gibt */
  --leiste: var(--leiste-h); /* Platz, den sie gerade einnimmt */
}
:root.leiste-weg { --leiste: 0px; }

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: 16px;
  scroll-padding-bottom: calc(var(--leiste-h) + 16px);
}
body {
  margin: 0; padding-bottom: var(--leiste-h);
  background: var(--tief);
  color: var(--petrol);
  font-family: "Anybody", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.5;
  font-kerning: normal;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
/* Fließtext: Breite 100, minimal offener gesperrt, damit er sich auch für ältere Leser ruhig liest.
   Überschriften und Geräuschwörter behalten ihren eigenen Charakter. */
p, li, label, input, textarea { letter-spacing: .014em; word-spacing: .05em; }
.satz, .k-note { letter-spacing: normal; word-spacing: normal; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, fieldset, legend, address { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
address { font-style: normal; }
a { color: inherit; }
strong { font-weight: 700; }
h1, h2, h3, .senden, .f-klein a, .seite a, .zweit, .link { overflow-wrap: anywhere; -webkit-hyphens: manual; hyphens: manual; }
[hidden] { display: none !important; }

/* ohne geladenes Skript: Bedienhinweise, Satz und Übernahme entfallen */
html:not(.js) .nur-js { display: none !important; }
.js .ohne-js { display: none !important; }

.vh {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.sprung {
  position: absolute; left: 12px; top: -120px; z-index: 50;
  background: var(--beton); color: var(--petrol); padding: 12px 18px; font-weight: 700;
}
.sprung:focus { top: 12px; outline: 3px solid var(--beton); outline-offset: 3px; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }

/* ---------- Geräuschwörter: Vektor, Form steckt in den Pfaden (tools/woerter.py) ---------- */
.laut { display: block; width: 100%; max-width: 100%; height: auto; overflow: visible; }

/* ---------- Anrufen: die einzige orange Fläche ---------- */
.ruf {
  display: inline-flex; align-items: center; gap: .2em .55em; flex-wrap: wrap;
  min-height: 56px; padding: 10px 24px;
  background: var(--orange); color: var(--petrol);
  text-decoration: none; border-radius: 5px; border: 2px solid transparent;
  font-size: 1.25rem; line-height: 1.2;
}
.ruf-wort { font-weight: 800; font-stretch: 112%; }
.ruf-nr {
  font-weight: 600; font-stretch: 88%; letter-spacing: .035em; white-space: nowrap;
  font-size: 1.3em; font-size: min(1.3em, 10.4vw); font-variant-numeric: tabular-nums;
}
.ruf:hover { background: #ff8f3d; }
.ruf:focus-visible { outline: 3px solid var(--beton); outline-offset: 3px; }
.ruf--gross { font-size: clamp(1.25rem, 2vw, 1.7rem); padding: 14px 30px; }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.link:hover { text-decoration-thickness: 4px; }

/* ---------- Kopf ---------- */
.entwurf {
  background: var(--tief); color: var(--stumm-d);
  font-size: .8125rem; line-height: 1.35; text-align: center; padding: 7px 16px;
}

/* ---------- 1 Einstieg ---------- */
.hero {
  --e: 27.4vw;                          /* 1 em des Worts */
  --e: clamp(8rem, min(27.4vw, 46vh), 34rem);
  position: relative; overflow: hidden;
  background: var(--petrol); color: var(--beton);
  min-height: calc(100vh - 32px);
  min-height: calc(100svh - 32px);
  padding: clamp(20px, 3vw, 40px) var(--rechts) clamp(28px, 3vw, 44px) var(--links);
  display: flex; flex-direction: column;
}
@supports (height: 1svh) { .hero { --e: clamp(8rem, min(27.4vw, 46svh), 34rem); } }
.hero-bild {
  position: absolute; left: 0; bottom: 0; z-index: 0;
  width: 44%; height: 50%; max-width: none;
  object-fit: cover; object-position: 0 62%;
  -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 100%), linear-gradient(to top, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, #000 62%, transparent 100%), linear-gradient(to top, #000 60%, transparent 100%);
  mask-composite: intersect;
}
.hero > :not(.hero-bild) { position: relative; z-index: 1; }
.hero > .hero-wer { position: absolute; right: var(--rechts); top: clamp(20px, 3vw, 40px); text-align: right; font-size: 1.0625rem; line-height: 1.3; }
.hero-wer strong { display: block; font-stretch: 150%; font-weight: 800; font-size: 1.35em; font-size: min(1.35em, 7.4vw); letter-spacing: -.01em; }
/* „Werlein GmbH“ bricht höchstens zwischen den Wörtern */
.hero-wer strong, .seite-kopf .wm, .fuss strong { overflow-wrap: normal; word-break: normal; -webkit-hyphens: manual; hyphens: manual; }
.hero h1 { font-weight: 400; }
.h-vor, .h-nach {
  display: block; font-stretch: 78%; font-weight: 700; line-height: 1.02;
  font-size: clamp(2.4rem, 5.2vw, 5.25rem);
}
.h-laut {
  display: block; position: relative;
  width: calc(var(--e) * 2.884); max-width: calc(100% + var(--links));
  margin-left: calc(var(--links) * -1 - var(--e) * .035); margin-top: calc(var(--e) * -.06);
  -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none;
}
.h-laut .laut { width: 100%; }
.h-laut .t-zug { fill: var(--orange); }
.h-nach { text-align: right; margin-top: calc(var(--e) * -.22); }
.hero-ruf { margin-top: auto; padding-top: 26px; align-self: flex-end; max-width: 75%; display: flex; flex-direction: row-reverse; flex-wrap: wrap; align-items: center; gap: 14px 32px; text-align: right; }
.hero-ruf p { font-size: 1.125rem; font-size: clamp(1.125rem, 1.5vw, 1.375rem); line-height: 1.35; color: var(--beton); }
.satzteil { display: block; }
.hero-ruf .ruf { font-size: clamp(1.25rem, 1.9vw, 1.6rem); padding: 16px 30px; flex-shrink: 0; }

/* Das Wort steht fest. Die Animation ist nach der 20-mal-Probe entfallen (1 von 20 bei 390 px, siehe qa/r4/ABGLEICH.md, A2). */

/* ---------- 2 Werkzeug ---------- */
.werkzeug {
  background: var(--beton); color: var(--petrol);
  padding: clamp(52px, 5.5vw, 92px) var(--rechts) 0 var(--links);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  column-gap: clamp(28px, 4.4vw, 80px);
  position: relative; z-index: 2;
}
.w-wahl { grid-column: 1; grid-row: 1; padding-bottom: clamp(52px, 5.5vw, 92px); }
.werkzeug h2 {
  font-stretch: 78%; font-weight: 750; line-height: 1;
  font-size: clamp(2.4rem, 5vw, 5.25rem); letter-spacing: -.01em;
}
.w-lead { margin-top: 12px; font-size: clamp(1.125rem, 1.4vw, 1.3125rem); }
.w-tipp { margin-top: 2px; font-size: 1.0625rem; font-weight: 700; }
.w-woerter {
  margin-top: clamp(16px, 1.8vw, 30px);
  display: grid; grid-template-columns: repeat(50, minmax(0, 1fr));
  align-items: end; row-gap: clamp(8px, 1vw, 18px);
}
.wahl {
  position: relative; display: block; min-height: 44px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wahl input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.wahl .form { display: block; padding: 4px 0 12px; position: relative; }
.wahl .form::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: currentColor; transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .18s ease-out;
}
/* Auswahl und Fokus ohne :has() */
.wahl input:checked ~ .form::after { transform: scaleX(1); }
.wahl input:focus-visible ~ .form { outline: 3px solid var(--petrol); outline-offset: 4px; }
.hat-wahl .wahl:not(.ist) { color: var(--zurueck); }

.w-woerter .wahl { display: flex; align-items: flex-end; }
.w-woerter .form { width: 100%; }
.wahl--quietscht { grid-column: 1 / 20; grid-row: 1 / 3; }
.wahl--klackert { grid-column: 24 / 46; grid-row: 1; }
.wahl--rumpelt { grid-column: 21 / 51; grid-row: 2; }
.wahl--pfeift { grid-column: 2 / 18; grid-row: 3; }
.wahl--brummt { grid-column: 20 / 51; grid-row: 3; }
.wahl--schleift { grid-column: 1 / 24; grid-row: 4; }
.wahl--anders { grid-column: 29 / 51; grid-row: 4; }
.wahl--anders .form { width: auto; font-size: clamp(1.5rem, 2vw, 1.9rem); font-stretch: 112%; font-weight: 500; line-height: 1.2; }

.w-wann { margin-top: clamp(26px, 2.8vw, 48px); }
.w-wann h3 { font-stretch: 78%; font-weight: 750; line-height: 1; font-size: clamp(1.8rem, 2.8vw, 2.8rem); }
.w-wann .w-tipp { margin-top: 6px; }
.w-zeiten { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px clamp(20px, 2.2vw, 34px); }
.w-zeiten .form { padding: 7px 0 9px; font-size: clamp(1.25rem, 1.75vw, 1.6rem); font-weight: 700; font-stretch: 88%; line-height: 1.2; }
.w-zeiten .form::after { height: 5px; }
.w-zeiten .form { overflow-wrap: anywhere; }
/* dünn unterstrichen wie ein Link: zeigt, dass man es antippen kann */
.w-zeiten .form::before { content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 2px; background: currentColor; opacity: .55; }

/* Ergebnis: die dunkle Tafel, der Satz ist der Höhepunkt */
.w-ergebnis {
  grid-column: 2; grid-row: 1; align-self: start; position: -webkit-sticky; position: sticky; top: 20px;
  margin-bottom: clamp(44px, 4.4vw, 72px); background: var(--petrol); color: var(--beton);
  padding: clamp(20px, 2vw, 34px) clamp(22px, 2.4vw, 40px);
}
.w-ergebnis:focus { outline: none; }
.w-ergebnis:focus-visible { outline: 3px solid var(--beton); outline-offset: -8px; }
/* Feste Höhen in Einheiten der Kastenbreite: kein Wort verschiebt etwas. 1cqw-Fallback davor. */
.satz-rahmen { container-type: inline-size; }
html:not(.js) .satz-rahmen { display: none; }
.satz {
  --k: .3vw;                           /* 1 % der Satzbreite, für Browser ohne cqw */
  --k: min(.3vw, .8vh);                /* nie höher, als das Fenster es erlaubt */
  display: flex; flex-direction: column; min-height: calc(var(--k) * 60);
  font-stretch: 78%; font-weight: 700; line-height: 1;
}
@supports (width: 1cqw) { .satz { --k: min(1cqw, .8vh); } }
@supports (width: 1cqw) and (height: 1svh) { .satz { --k: min(1cqw, .8svh); } }
.s-klein { flex: none; min-height: calc(var(--k) * 12.5); line-height: calc(var(--k) * 12.5); font-size: calc(var(--k) * 10.2); }
.s-wort { flex: none; height: calc(var(--k) * 35); padding: calc(var(--k) * 3.5) 0; }
.s-wort .laut { width: 100%; height: 100%; }
.satz--wort.satz--kurz .s-wort { height: calc(var(--k) * 42); }
.s-gross { flex: none; font-size: calc(var(--k) * 16); line-height: 1.04; font-stretch: 62%; font-weight: 800; padding-top: calc(var(--k) * 1.5); max-width: calc(var(--k) * 100); }
.satz--text.satz--kurz:not(.satz--lang) .s-gross { font-size: calc(var(--k) * 21.5); font-stretch: 74%; max-width: calc(var(--k) * 95); }

.w-hilfe { padding-top: 12px; }
.w-hilfe h3 { font-size: 1.0625rem; font-weight: 700; font-stretch: 112%; color: var(--stumm-d); line-height: 1.3; }
.w-hilfe ul { margin-top: 6px; font-size: 1.125rem; line-height: 1.3; min-height: 6.5em; }
.w-hilfe li { padding: 3px 0; }
.hinweis { margin-top: 10px; font-size: 1rem; line-height: 1.35; font-weight: 600; }
.w-aktionen { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; }
.zweit {
  display: inline-flex; align-items: center; min-height: 44px; font-weight: 700;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px;
}
.zweit:hover { text-decoration-thickness: 4px; }
.mitlauf { display: none; }
.rufleiste { display: none; }
html:not(.js) .wahl { cursor: default; }
html:not(.js) .wahl input, html:not(.js) .wahl--anders { display: none; }

/* ---------- 3 Was die Werkstatt macht ---------- */
.machen {
  position: relative; overflow: hidden;
  background: var(--tief); color: var(--beton);
  padding: clamp(96px, 9vw, 150px) var(--rechts) clamp(64px, 7vw, 116px) var(--links);
}
.machen h2 { position: relative; z-index: 1; font-size: clamp(1.4rem, 2vw, 1.9rem); font-stretch: 112%; font-weight: 600; line-height: 1.1; }
.m-bild {
  position: absolute; right: -5%; top: 0; z-index: 0;
  width: 58%; max-width: none; height: auto;
  -webkit-mask-image: linear-gradient(to left, #000 80%, transparent 100%), linear-gradient(to top, transparent 0, #000 26%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to left, #000 80%, transparent 100%), linear-gradient(to top, transparent 0, #000 26%);
  mask-composite: intersect;
}
.m-liste {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px;
}
/* ein Schnitt für alle vier Wörter, Kontrast nur über Größe und Lage. Verformte Schrift gehört den Geräuschen. */
.m-liste h3 { line-height: 1; font-stretch: 72%; font-weight: 800; letter-spacing: -.01em; }
.m-liste p { margin-top: 10px; max-width: 26ch; font-size: clamp(1.0625rem, 1.4vw, 1.3125rem); line-height: 1.4; }
.m-reparatur { grid-column: 1 / 9; grid-row: 1; margin-top: clamp(14px, 1.6vw, 28px); }
.m-reparatur h3 { font-size: clamp(5rem, 11.6vw, 13rem); margin-left: -.03em; white-space: nowrap; }
.m-reparatur p { font-size: clamp(1.1875rem, 1.7vw, 1.625rem); max-width: 30ch; text-wrap: balance; }
/* Treppe von links oben nach rechts unten: Reparatur, Vor dem TÜV, Reifenwechsel. Inspektion klein dazwischen. */
.m-inspektion { grid-column: 2 / 7; grid-row: 3; margin-top: clamp(36px, 4vw, 72px); }
.m-inspektion h3 { font-size: clamp(2.2rem, 3.6vw, 4rem); }
.m-tuev { grid-column: 4 / 12; grid-row: 2; margin-top: clamp(40px, 4.4vw, 80px); }
.m-tuev h3 { font-size: clamp(3.6rem, 7.6vw, 8.6rem); white-space: nowrap; }
.m-reifen { grid-column: 8 / 13; grid-row: 3; margin-top: clamp(36px, 4vw, 72px); justify-self: end; }
.m-reifen h3 { font-size: clamp(2.6rem, 5vw, 5.6rem); }

/* ---------- 4 Ältere Autos: Text steht auf der dunklen Lackfläche im Bild ---------- */
.alt { position: relative; background: #0d313a; color: var(--beton); display: grid; overflow: hidden; }
.alt picture { position: absolute; inset: 0; }
.alt-bild { width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 100% 100%; }
.alt-text {
  position: relative; justify-self: end; align-self: end;
  width: 44%; min-height: 0;
  padding: 0 var(--rechts) clamp(32px, 4vw, 68px) 0;
  margin-top: clamp(250px, 31vw, 560px);
}
.alt-text h2 { font-stretch: 78%; font-weight: 750; line-height: 1.04; font-size: clamp(2.1rem, 3.7vw, 4.2rem); text-wrap: balance; }
.alt-text p { margin-top: 14px; max-width: 38ch; font-size: clamp(1.125rem, 1.4vw, 1.3125rem); }

/* ---------- 5 Bewertungen ---------- */
.kunden {
  background: var(--beton);
  padding: clamp(60px, 7vw, 116px) var(--rechts) clamp(60px, 7vw, 116px) var(--links);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 5vw, 88px);
}
.kunden h2 { grid-column: 2; grid-row: 1; font-size: clamp(1.4rem, 2vw, 1.9rem); font-stretch: 112%; font-weight: 600; line-height: 1.1; margin-bottom: 16px; }
.k-note { grid-column: 1; grid-row: 1 / 3; }
.k-zahl {
  display: block; font-stretch: 150%; font-weight: 900; line-height: 1; letter-spacing: -.04em;
  font-size: 15.4vw; font-size: clamp(6rem, 15.4vw, 16rem);
  margin: -.15em 0 0 -.035em; font-variant-numeric: lining-nums;
}
.k-bei { display: block; margin-top: 10px; font-size: clamp(1.25rem, 1.9vw, 1.7rem); font-stretch: 90%; font-weight: 700; line-height: 1.25; max-width: 34ch; text-wrap: balance; }
.k-themen { grid-column: 2; grid-row: 2; font-size: clamp(1.25rem, 1.8vw, 1.625rem); line-height: 1.36; }
.k-hinweis { margin-top: 1em; font-size: 1.125rem; line-height: 1.45; max-width: 46ch; }
.k-themen .link { font-size: 1.125rem; margin-top: 10px; }

/* ---------- 6 Termin und Anfahrt ---------- */
.anfahrt {
  background: var(--hell); overflow: hidden;
  padding: clamp(56px, 6vw, 100px) var(--rechts) clamp(56px, 6vw, 100px) var(--links);
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); column-gap: clamp(28px, 4vw, 72px); align-items: start;
}
.anfahrt h2 { grid-column: 1 / -1; font-size: clamp(1.4rem, 2vw, 1.9rem); font-stretch: 112%; font-weight: 600; line-height: 1.1; }
.anfahrt address { display: contents; }
/* Die Straße wie ein Schild über die ganze Breite, links angeschnitten, bleibt lesbar. Bricht nur zwischen den Wörtern. */
.t-strasse {
  grid-column: 1 / -1; display: block; margin: clamp(6px, 1vw, 16px) 0 0 calc(var(--links) * -1 - .1em);
  font-stretch: 140%; font-weight: 800; line-height: .98; letter-spacing: -.02em;
  font-size: 8.4vw; font-variant-numeric: lining-nums;
  overflow-wrap: normal; word-break: normal;
}
.t-nr { white-space: nowrap; }
.t-plz { grid-column: 1; display: block; margin-top: clamp(14px, 1.6vw, 26px); font-size: clamp(1.25rem, 1.9vw, 1.8rem); font-stretch: 92%; font-weight: 700; line-height: 1.25; }
.t-weg { grid-column: 2; margin-top: clamp(14px, 1.6vw, 26px); }
.t-lead { font-size: clamp(1.25rem, 1.7vw, 1.6rem); font-weight: 700; line-height: 1.3; max-width: 26ch; }
.t-wege { margin: 14px 0 4px; max-width: 34ch; font-size: clamp(1.125rem, 1.4vw, 1.3125rem); }

/* ---------- 7 Anfrage ---------- */
.anfrage {
  background: var(--petrol); color: var(--beton);
  padding: clamp(56px, 6.6vw, 108px) var(--rechts) clamp(56px, 6.6vw, 108px) var(--links);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(28px, 5vw, 88px);
}
.anfrage h2 { font-stretch: 78%; font-weight: 750; line-height: 1; font-size: clamp(2.6rem, 5.4vw, 5.25rem); }
.f-links { display: flex; flex-direction: column; align-items: flex-start; }
.f-links p { margin-top: 16px; max-width: 30ch; font-size: clamp(1.125rem, 1.5vw, 1.375rem); }
.f-links .ruf { margin-top: 28px; }
/* Echo: so klingt die Tastatur beim Schreiben */
.echo { display: block; width: clamp(150px, 15vw, 230px); margin: auto 0 4px; padding-top: 40px; color: var(--stumm-d); }
.f-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px 22px; align-content: start; align-items: end; }
.feld { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.feld--breit { grid-column: 1 / -1; }
.feld label { font-size: 1rem; font-weight: 600; }
.f-vorab { font-size: 1.1875rem; font-weight: 700; line-height: 1.35; }
.f-tel { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-weight: 700; white-space: nowrap; text-underline-offset: 4px; }
.pflicht { font-weight: 400; color: var(--stumm-d); margin-left: 6px; font-size: 1rem; }
.feld input, .feld textarea {
  width: 100%; font: inherit; font-size: 1.125rem; line-height: 1.4;
  color: var(--petrol); background: var(--beton);
  border: 2px solid transparent; border-radius: 3px; padding: 11px 12px; min-height: 52px;
}
.feld textarea { resize: vertical; min-height: 164px; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
/* Fehler: doppelter Rand, der Fokusring rückt nach außen */
.feld input[aria-invalid="true"] { border: 4px solid var(--tief); padding: 9px 10px; box-shadow: 0 0 0 4px var(--beton); }
.feld input[aria-invalid="true"]:focus-visible { outline-offset: 6px; }
.fehler { font-size: 1.0625rem; font-weight: 700; line-height: 1.3; margin-bottom: 5px; }
.f-hinweis { font-weight: 700; line-height: 1.35; }
.f-hinweis:empty { display: none; }
.f-ende { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; }
.senden {
  font: inherit; font-weight: 700; font-size: 1.1875rem; line-height: 1.2; cursor: pointer;
  min-height: 56px; padding: 12px 26px; border-radius: 5px;
  background: transparent; color: var(--beton); border: 2px solid var(--beton);
}
.senden:hover { background: var(--beton); color: var(--petrol); }
.senden:disabled { cursor: not-allowed; background: transparent; color: var(--stumm-d); border: 2px dashed var(--stumm-d); }
.f-klein { font-size: 1rem; color: var(--stumm-d); }
.f-klein a { color: var(--beton); display: inline-flex; align-items: center; min-height: 44px; }
.f-status { flex-basis: 100%; font-size: 1.1875rem; font-weight: 600; line-height: 1.4; }
.f-status:focus { outline: 3px solid var(--beton); outline-offset: 8px; }

/* ---------- 8 Fuß ---------- */
.fuss {
  background: var(--tief); color: var(--beton);
  padding: clamp(36px, 4.4vw, 60px) var(--rechts) clamp(36px, 4.4vw, 60px) var(--links);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px 64px;
  font-size: 1rem; line-height: 1.5;
}
.fuss p + p { margin-top: 8px; }
.fuss a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-right: 22px; text-underline-offset: 4px; }
.fuss-rest { max-width: 46ch; max-width: min(46ch, 100%); min-width: 0; color: var(--stumm-d); }
.fuss p { overflow-wrap: anywhere; }
.fuss-rest a { color: var(--beton); }
.fuss-entwurf { color: var(--beton); }

/* ---------- Unterseiten (Muster) ---------- */
.seite { background: var(--beton); padding: clamp(40px, 6vw, 90px) var(--rechts) clamp(64px, 8vw, 120px) var(--links); }
.seite > * { max-width: 68ch; }
.seite h1 { font-stretch: 78%; font-weight: 750; line-height: 1; font-size: 2.6rem; font-size: min(5.25rem, 13vw); }
.seite h2 { margin-top: 2em; font-size: 1.375rem; font-stretch: 112%; font-weight: 700; line-height: 1.2; }
.seite p, .seite ul { margin-top: .7em; }
.seite ul { list-style: disc; padding-left: 1.2em; }
.seite a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.muster { margin-top: 28px; background: var(--petrol); color: var(--beton); padding: 20px 24px; font-weight: 600; line-height: 1.4; }
/* Widerspruch: abgesetzt, damit man ihn nicht überliest (Art. 21 Abs. 4 DSGVO) */
.absatz-wichtig { margin-top: 3em; background: var(--hell); border: 2px solid var(--petrol); padding: 4px 24px 22px; }
.absatz-wichtig h2 { margin-top: .9em; }
.zurueck { font-weight: 700; margin-bottom: 20px; }
.seite-kopf { background: var(--petrol); color: var(--beton); padding: 18px var(--rechts) 18px var(--links); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 24px; }
.seite-kopf .wm { font-stretch: 150%; font-weight: 800; font-size: 1.4rem; font-size: min(1.4rem, 7.4vw); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- Anrufleiste ---------- */
.rufleiste .ruf {
  width: 100%; height: 100%; min-height: 44px; justify-content: center; flex-wrap: nowrap; padding: 0 12px;
  font-size: 1.1rem; font-size: min(1.25rem, 5.3vw);
}
.rufleiste .ruf-nr { font-size: 1.3em; }

/* ---------- schmal ---------- */
@media (max-width: 899px) {
  .hero { --e: 32.6vw; min-height: 0; padding-bottom: 0; }
  .hero > .hero-wer { position: relative; right: auto; top: auto; text-align: left; }
  .hero h1 { margin-top: 22px; }
  .h-vor, .h-nach { font-size: 2.4rem; font-size: clamp(2rem, 9.8vw, 4.4rem); }
  .h-laut { margin-left: calc(var(--links) * -1 + 4px); margin-top: calc(var(--e) * .03); }
  .h-nach { margin-top: calc(var(--e) * -.2); }
  .hero-ruf { align-self: stretch; max-width: none; flex-wrap: nowrap; flex-direction: column; align-items: stretch; text-align: left; padding-top: 20px; margin-top: 0; }
  .hero-ruf .ruf { justify-content: center; padding: 6px 12px; min-height: 58px; max-width: 420px; }
  .hero > .hero-bild {
    position: relative; order: 9; z-index: 0; max-width: none;
    width: calc(100% + var(--links) + var(--rechts)); height: 50vw; min-height: 180px;
    margin: 14px calc(var(--rechts) * -1) 0 calc(var(--links) * -1); object-position: 0 66%;
    -webkit-mask-image: linear-gradient(to top, #000 66%, transparent 100%); mask-image: linear-gradient(to top, #000 66%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }

  .werkzeug { display: block; padding-bottom: 0; }
  .w-wahl { padding-bottom: 44px; }
  .werkzeug h2 { font-size: 2.4rem; font-size: min(2.6rem, 10.6vw); }
  .w-wann { margin-top: 38px; }
  .w-zeiten { gap: 8px 26px; }
  .w-ergebnis {
    position: relative; top: auto; margin: 0 calc(var(--rechts) * -1) 0 calc(var(--links) * -1);
    padding: 28px var(--rechts) 34px var(--links);
  }
  .satz { --k: calc((100vw - var(--links) - var(--rechts)) / 100); --k: min(calc((100vw - var(--links) - var(--rechts)) / 100), .8vh); }
  @supports (width: 1cqw) { .satz { --k: min(1cqw, .8vh); } }
  @supports (width: 1cqw) and (height: 1svh) { .satz { --k: min(1cqw, .8svh); } }
  .w-hilfe ul { min-height: 0; }
  .w-aktionen .ruf { flex: 1 1 100%; justify-content: center; padding-inline: 12px; }

  .machen { padding-top: 48px; }
  .m-bild {
    position: relative; right: auto; width: calc(112% + var(--links) + var(--rechts)); height: auto;
    margin: 14px calc(-12% - var(--rechts)) 0 calc(var(--links) * -1);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 76%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 76%, transparent 100%);
    -webkit-mask-composite: source-over; mask-composite: add;
  }
  .m-liste { display: block; margin-top: -11vw; }
  .m-reparatur { margin-top: 0; }
  .m-reparatur h3 { font-size: 20.6vw; }
  .m-inspektion { margin: 44px 0 0 12%; }
  .m-inspektion h3 { font-size: 2rem; font-size: min(2.2rem, 9vw); }
  .m-tuev { margin: 40px 0 0 0; }
  .m-tuev h3 { font-size: 17vw; }
  .m-reifen { margin: 40px 0 0 auto; width: -moz-fit-content; width: fit-content; max-width: 100%; }
  .m-reifen h3 { font-size: 2.4rem; font-size: min(2.8rem, 11vw); }

  .kunden { display: block; }
  .kunden h2 { margin-bottom: 0; }
  .k-zahl { font-size: 30vw; margin-top: 6px; }
  .k-themen { margin-top: 28px; }
  .anfahrt { display: block; }
  /* Hausnummer in eigener Zeile auf der Textachse, angeschnitten ist nur das P */
  .t-strasse { font-size: 10.9vw; margin-left: calc(var(--links) * -1 - .09em); }
  .t-nr { display: block; margin-left: calc(var(--links) + .09em); }
  .t-weg { margin-top: 26px; }

  .anfrage { display: block; }
  .anfrage h2 { font-size: 2.4rem; font-size: clamp(2rem, 10.7vw, 4rem); }
  .ruf--gross { padding-inline: 14px; }
  .senden { max-width: 100%; }
  .echo { margin: 30px 0 0 auto; padding-top: 0; width: 38%; }
  .f-form { margin-top: 26px; }

  /* Anrufleiste: alles bis 899 px, auch Tablets hochkant. Nach der ersten Auswahl dieselbe Leiste mit Satz. */
  :root { --leiste-h: calc(68px + var(--unten)); }
  .rufleiste {
    display: flex; align-items: stretch; gap: 12px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: var(--leiste-h); background: var(--tief);
    padding: 6px max(10px, env(safe-area-inset-right, 0px)) calc(6px + var(--unten)) max(10px, env(safe-area-inset-left, 0px));
    transition: transform .2s ease-out, visibility .2s;
  }
  .rufleiste .ruf { flex: 1 1 auto; }
  .leiste-weg .rufleiste { transform: translateY(100%); visibility: hidden; }

  /* Leiste mit Satz: links Satz und „Fragen ansehen“ (ein Link), rechts kompakt „Anrufen“, die Nummer bleibt im Namen */
  .leiste-satz .mitlauf {
    display: flex; flex-direction: column; justify-content: center; flex: 1 1 auto; min-width: 0;
    padding-left: max(0px, calc(var(--links) - 10px));
    color: var(--beton); text-decoration: none;
    animation: satz-ein .2s ease-out;
  }
  .leiste-satz .rufleiste .ruf { flex: 0 0 auto; width: auto; padding: 0 18px; font-size: 1.0625rem; }
  .leiste-satz .rufleiste .ruf-nr {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  /* höchstens zwei Zeilen Satz und eine Zeile „Fragen ansehen“ in 56 px */
  .mitlauf-satz {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    font-size: 1rem; font-size: max(15px, min(1.0625rem, 4.6vw)); font-stretch: 74%; font-weight: 700; line-height: 1.1;
  }
  .mitlauf-satz.lang { font-size: max(15px, min(1rem, 4.2vw)); font-stretch: 58%; }
  .mitlauf-satz span { display: inline; }
  .mitlauf-satz span + span { white-space: nowrap; }
  .mitlauf-satz .laut { display: inline-block; width: auto; height: 1.05em; vertical-align: -.12em; margin: 0 .04em; }
  .mitlauf-satz .laut--s-quietscht, .mitlauf-satz .laut--s-pfeift { height: 1.22em; vertical-align: -.24em; }
  .mitlauf-link { display: block; margin-top: 3px; font-size: 15px; font-weight: 700; line-height: 1.1; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--beton); }
  .mitlauf:focus-visible { outline: 3px solid var(--beton); outline-offset: -1px; }
}
@keyframes satz-ein { from { opacity: 0; } to { opacity: 1; } }

@media (max-width: 699px) {
  .w-woerter { row-gap: 10px; }
  .wahl--quietscht { grid-column: 1 / 35; grid-row: 1; }
  .wahl--klackert { grid-column: 17 / 51; grid-row: 2; }
  .wahl--rumpelt { grid-column: 1 / 46; grid-row: 3; }
  .wahl--pfeift { grid-column: 25 / 51; grid-row: 4; }
  .wahl--brummt { grid-column: 1 / 48; grid-row: 5; }
  .wahl--schleift { grid-column: 18 / 51; grid-row: 6; }
  .wahl--anders { grid-column: 1 / 40; grid-row: 7; }

  .alt-bild { object-position: 40% 0; }
  .alt picture { bottom: auto; height: 138vw; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 24%); mask-image: linear-gradient(to top, transparent 0, #000 24%); }
  .alt-text { width: auto; padding: 0 var(--rechts) 44px var(--links); margin-top: 94vw; }

  .f-form { grid-template-columns: minmax(0, 1fr); }
  .feld, .f-ende, .f-vorab { grid-column: 1 / -1; }
  /* Echo auf dem Handy gestrichen: über dem Formular wirkte es wie eine Überschrift */
  .echo { display: none; }
}
/* Tablet hochkant: Inspektion und Reifenwechsel nebeneinander und versetzt, „Vor dem TÜV“ groß darunter */
@media (min-width: 700px) and (max-width: 899px) {
  .m-liste { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; }
  .m-reparatur { grid-column: 1 / -1; grid-row: 1; }
  .m-inspektion { grid-column: 1 / 6; grid-row: 2; margin: 48px 0 0; }
  .m-reifen { grid-column: 7 / 13; grid-row: 2; margin: 104px 0 0; justify-self: start; }
  .m-reifen h3 { font-size: 3.4rem; font-size: min(3.6rem, 7vw); }
  .m-tuev { grid-column: 1 / -1; grid-row: 3; margin: 52px 0 0; justify-self: end; }
}
@media (max-width: 380px) {
  .ruf, .hero-ruf .ruf { font-size: 1.0625rem; gap: .2em .4em; }
  .leiste-satz .rufleiste .ruf { padding: 0 12px; font-size: 1rem; }
  .rufleiste { column-gap: 10px; }
}

/* ---------- Desktop mit wenig Höhe ---------- */
@media (min-width: 900px) and (max-height: 800px) {
  .werkzeug { padding-top: 34px; }
  .w-wahl { padding-bottom: 44px; }
  .werkzeug h2 { font-size: clamp(2.4rem, 4.2vw, 4.4rem); }
  .w-lead { margin-top: 6px; }
  .w-woerter { margin-top: 10px; row-gap: 4px; width: 92%; }
  .w-wann { margin-top: 18px; }
  .w-wann h3 { font-size: 1.75rem; }
  .w-wann .w-tipp { margin-top: 2px; }
  .w-zeiten { gap: 0 24px; }
  .w-zeiten .form { font-size: 1.25rem; }
  .w-ergebnis { top: 12px; padding-top: 14px; padding-bottom: 14px; }
  .satz { min-height: calc(var(--k) * 58); }
  .s-wort { height: calc(var(--k) * 31); padding: calc(var(--k) * 2) 0; }
  .satz--wort.satz--kurz .s-wort { height: calc(var(--k) * 38); }
  .s-klein { min-height: calc(var(--k) * 12); line-height: calc(var(--k) * 12); }
  .s-gross { font-size: calc(var(--k) * 15); }
  .w-hilfe { padding-top: 6px; }
  .w-hilfe ul { margin-top: 2px; font-size: 1.0625rem; }
  .w-hilfe li { padding: 1px 0; }
  .w-aktionen { margin-top: 10px; gap: 0 20px; }
}

/* ---------- niedrige Fenster und Handys quer ---------- */
/* Ergebnis quer: Satz links, Fragen und Anruf rechts, damit alles in etwa eine Bildschirmhöhe passt */
@media (min-width: 560px) and (max-width: 899px) and (max-height: 500px) {
  .w-ergebnis { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: 32px; align-items: start; }
  .w-hilfe { padding-top: 0; }
}
@media (max-height: 560px) {
  .mitlauf { display: none !important; }
}
@media (min-width: 560px) and (max-height: 560px) {
  .hero {
    --e: 22vw;
    --e: min(21vw, 50vh);
    min-height: calc(100vh - 32px); min-height: calc(100svh - 32px);
    padding-top: 12px; padding-bottom: 14px; display: block;
  }
  @supports (height: 1svh) { .hero { --e: min(21vw, 50svh); } }
  .hero > .hero-wer { position: absolute; left: auto; right: var(--rechts); top: 12px; text-align: right; }
  .hero h1 { margin: 0; position: static !important; }
  .h-vor, .h-nach { font-size: 2rem; font-size: clamp(1.7rem, 4.4vw, 3rem); }
  .h-laut { margin-top: calc(var(--e) * -.03); z-index: 1; }
  .h-nach { position: absolute; z-index: 1; right: var(--rechts); margin: 0; bottom: 138px; }
  .hero > .hero-ruf { position: absolute; right: var(--rechts); bottom: 14px; padding: 0; display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 8px; }
  .hero-ruf .ruf { font-size: 1.125rem; padding: 8px 18px; }
  .hero-ruf p { font-size: 1rem; }
  .hero > .hero-bild {
    position: absolute; left: 0; bottom: 0; margin: 0; width: 46%; height: 52%; min-height: 0; object-position: 0 62%;
    -webkit-mask-image: linear-gradient(to right, #000 62%, transparent 100%), linear-gradient(to top, #000 60%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to right, #000 62%, transparent 100%), linear-gradient(to top, #000 60%, transparent 100%);
    mask-composite: intersect;
  }
}
@media (max-height: 560px) and (max-width: 899px), (max-height: 560px) and (hover: none) and (pointer: coarse) {
  :root { --leiste-h: calc(52px + var(--unten)); }
  .rufleiste {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    height: var(--leiste-h); background: var(--tief);
    padding: 4px max(10px, env(safe-area-inset-right, 0px)) calc(4px + var(--unten)) max(10px, env(safe-area-inset-left, 0px));
    transition: transform .2s ease-out, visibility .2s;
  }
  .rufleiste .ruf { border-width: 0; }
  .leiste-weg .rufleiste { transform: translateY(100%); visibility: hidden; }
}
/* kurze Handys: Das Nachrichtenfeld bleibt beim Fokus ganz im Bild (Chrome scrollt nur bis zur Schreibmarke) */
@media (max-height: 700px) { .feld textarea { min-height: 120px; height: 132px; } }
/* starker Zoom: nichts steht fest im Bild */
@media (max-height: 299px) {
  :root { --leiste-h: 0px; }
  .rufleiste { display: none; }
  .feld textarea { height: 110px; min-height: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  .wahl .form::after, .rufleiste { transition: none; }
  .mitlauf { animation: none !important; }
}

/* ---------- Kontrastmodus ---------- */
@media (forced-colors: active) {
  .laut { forced-color-adjust: none; color: CanvasText; }
  .h-laut .t-zug { fill: CanvasText; }
  .wahl .form::after, .w-zeiten .form::before { forced-color-adjust: none; background: CanvasText; }
  .wahl input:checked ~ .form::after { background: Highlight; height: 8px; }
  .wahl input:focus-visible ~ .form { outline-color: Highlight; }
  .hat-wahl .wahl:not(.ist), .hat-wahl .wahl:not(.ist) .laut { color: GrayText; }
  .ruf { border: 2px solid LinkText; }
  .feld input, .feld textarea { border: 2px solid CanvasText; }
  .feld input[aria-invalid="true"] { border: 5px double Highlight; }
  .w-ergebnis, .mitlauf, .rufleiste, .muster { border: 1px solid CanvasText; }
  .hero-bild, .m-bild, .alt picture { display: none; }
}

/* ---------- Druck: dunkel auf Weiß, Kennzeichnung bleibt ---------- */
@media print {
  .rufleiste, .mitlauf, .sprung, .hero-bild, .m-bild, .echo { display: none !important; }
  body, body * { background: #fff !important; color: #111 !important; box-shadow: none !important; }
  body { padding: 0; }
  .entwurf { font-size: 11pt; font-weight: 700; border: 2px solid #111; padding: 8px; }
  .fuss-entwurf { font-weight: 700; }
  .hero { min-height: 0 !important; padding-bottom: 24px !important; --e: 140px !important; }
  .h-laut .t-zug { fill: #111; }
  .ruf { border: 2px solid #111; }
  .h-nach { margin-top: 0; }
  .werkzeug, .kunden, .anfrage, .m-liste { display: block; }
  .w-ergebnis { position: static; margin: 0; padding: 0; }
  /* ohne Auswahl kein Beispielsatz im Ausdruck */
  html:not(.mit-wahl) .satz-rahmen { display: none; }
  .alt picture { position: static; }
  .alt-bild { height: auto; max-height: 90mm; }
  .alt-text { width: auto; margin-top: 12px; padding-left: var(--links); }
  .m-liste li, .w-ergebnis, .alt, .fuss { break-inside: avoid; }
  .feld input, .feld textarea { border: 1px solid #111; }
}
