/* Avora — site.css
   Tokens aus dem Figma-Style-Guide (#369 Avora <> Virtual Entity). Zwei Zusatztöne nur wegen Kontrast:
   --mint-text (Mint als TEXT auf hellem Grund, 5,44:1) und --muted (#5B7175 statt #6B858A, 5,17:1).
   Keine Inline-Styles/Skripte im HTML: die geplante Content-Security-Policy (.htaccess, Plan-Schritt 7) erlaubt nur Dateien
   von avora-fm.de. tools/check-site.mjs hält das fest. */

@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #0B1D20;          /* Dark Teal — Text auf hell, dunkelste Fläche */
  --deep: #0E2F35;         /* Deep Teal — dunkle Hauptfläche */
  --teal-700: #163E47;
  --teal-600: #1D4D57;
  --mint: #2EC4B6;         /* Accent — Buttons + Marken auf dunkel */
  --mint-text: #1C766D;    /* Accent als Text auf hell */
  --line: #C5DFE4;
  --ice: #E6F2F5;
  --mist: #F3F7F8;
  --white: #FFFFFF;
  --muted: #5B7175;
  --muted-on-dark: #A7C4C9;
  --error: #B42318;        /* Fehlertext + Fehlerrand im Anfrageformular (6,6:1 auf Weiß) — nie Farbe allein, immer mit Text */

  --r-s: 8px;
  --r-m: 12px;
  --r-l: 16px;
  --r-xl: 20px;

  --font-display: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;

  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(72px, 10vw, 136px);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.5rem, 1.55rem + 3.9vw, 4.25rem);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.016em;
}
h2 {
  font-size: clamp(2rem, 1.45rem + 2vw, 2.875rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.022em;
}
h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 14px; border-radius: var(--r-s);
  text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--mint-text); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--mint); }

/* Die kleine Dachkante aus dem Logo (rechter Block: Oberkante fällt nach rechts ab) — als Aufzählungsmarke. */
.mark {
  display: inline-block;
  flex: none;
  width: 11px;
  height: 14px;
  background: var(--mint-text);
  clip-path: polygon(0 0, 100% 42%, 100% 100%, 0 100%);
}
.on-dark .mark { background: var(--mint); }

/* Kleine Abschnittsmarke über der Überschrift — so im Figma-Entwurf auf jedem Abschnitt. */
.eyebrow {
  margin-bottom: 14px;
  font: 700 .78125rem/1.3 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint-text);
}
.on-dark .eyebrow { color: var(--mint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r-s);
  border: 1.5px solid transparent;
  font: 600 1rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-mint { background: var(--mint); color: var(--ink); }
.btn-mint:hover { background: #4FD3C7; }
.btn-dark { background: var(--deep); color: var(--white); }
.btn-dark:hover { background: var(--teal-700); }
.btn-ghost { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }
.btn-line { border-color: var(--deep); color: var(--deep); }
.btn-line:hover { background: var(--deep); color: var(--white); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Kopf ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(230, 242, 245, .94);   /* Ice — Kopfleiste wie im Figma-Entwurf */
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid rgba(11, 29, 32, .08);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand { display: block; flex: none; padding-block: 13px; }
.brand img { width: 132px; height: auto; }
.nav-main { display: flex; gap: 28px; margin-left: 12px; }
.nav-main a, .nav-drawer a {
  text-decoration: none;
  font-weight: 500;
  font-size: .96875rem;
}
.nav-main a { color: var(--ink); padding-block: 6px; border-bottom: 2px solid transparent; }
.nav-main a:hover { border-bottom-color: var(--mint); }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.head-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; text-decoration: none; font-variant-numeric: tabular-nums;
}
.head-phone svg { width: 18px; height: 18px; color: var(--mint-text); }
.head-actions .btn { min-height: 44px; padding: 10px 18px; font-size: .9375rem; }

.nav-drawer { display: none; }
.nav-drawer summary {
  list-style: none;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-s);
  cursor: pointer;
}
.nav-drawer summary::-webkit-details-marker { display: none; }
.nav-drawer summary svg { width: 24px; height: 24px; }
.nav-drawer .icon-close { display: none; }
.nav-drawer[open] .icon-open { display: none; }
.nav-drawer[open] .icon-close { display: block; }
.nav-drawer nav {
  position: absolute; left: 0; right: 0; top: 72px;
  background: var(--white);
  border-bottom: 1px solid rgba(11, 29, 32, .1);
  padding: 8px var(--gutter) 24px;
  display: grid;
}
.nav-drawer nav a { padding: 14px 0; border-bottom: 1px solid var(--ice); font-size: 1.125rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 78% 18%, rgba(46, 196, 182, .10), transparent 60%),
    linear-gradient(180deg, var(--deep) 0%, #0C2A30 100%);
  color: var(--white);
  isolation: isolate;
}
.grain::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("/img/grain.svg");
  background-size: 240px 240px;
  opacity: .5;
  mix-blend-mode: soft-light;
  pointer-events: none;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
  min-height: min(700px, calc(100vh - 72px));
  padding-block: clamp(56px, 8vw, 104px);
}
.hero-copy { position: relative; z-index: 2; max-width: 600px; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 28px;
  padding: 8px 15px 8px 13px;
  border-radius: 999px;
  background: rgba(46, 196, 182, .10);
  border: 1px solid rgba(46, 196, 182, .26);
  font: 700 .75rem/1 var(--font-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mint);
}
.eyebrow-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(46, 196, 182, .16); }
/* Zweite Zeile in Mint — wie „Moving.“ im Figma-Entwurf. */
h1 .accent { display: block; color: var(--mint); }
.hero .lead {
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted-on-dark);
  max-width: 34em;
}
.hero .lead strong { color: var(--white); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.hero-art { position: relative; align-self: stretch; min-height: 460px; }
/* Das Logo-Zeichen als Architektur: zwei Baukörper, die auf der Unterkante des Heros stehen. */
.roofs {
  position: absolute;
  right: -240px;
  bottom: 0;
  width: min(84vw, 1210px);
  height: auto;
  z-index: 0;
  overflow: visible;
}
.roofs .back { fill: var(--teal-700); }
.roofs .back-block { fill: #1A4650; }
.roofs .front { fill: var(--teal-600); }
.roofs .front-block { fill: var(--mint); }
.roofs .front-tint { fill: url(#roof-tint); }   /* Foto im Dach: Teal nach unten dichter, Plan-Karte bleibt lesbar */

/* Reinigungsplan — das Artefakt aus dem Alltag jeder Praxis / jedes Büros. */
.plan {
  position: absolute;
  z-index: 2;
  left: -64px;
  top: 50%;
  width: min(100%, 356px);
  margin: 0;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-l);
  padding: 22px 22px 18px;
  box-shadow: 0 40px 80px -30px rgba(3, 18, 21, .75), 0 2px 0 rgba(255, 255, 255, .6) inset;
}
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-title { font: 600 1.125rem/1.2 var(--font-display); letter-spacing: -0.01em; }
.plan-sub { margin-top: 4px; font-size: .875rem; color: var(--muted); }
.plan table { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: .875rem; }
.plan th { font-weight: 600; color: var(--muted); text-align: center; padding: 0 0 8px; font-size: .75rem; }
.plan th:first-child { text-align: left; }
.plan abbr { text-decoration: none; }
/* Tages-Spalten fest breit: auf 320 px kleben sonst „MoDiMiDoFr“ und die Häkchen zusammen; lange Bereichsnamen brechen um. */
.plan thead th:not(:first-child), .plan td { width: 28px; }
.plan td { padding: 9px 0; border-top: 1px solid var(--ice); text-align: center; }
.plan tbody th { text-align: left; font-weight: 500; color: var(--ink); font-size: .875rem; padding: 9px 8px 9px 0; border-top: 1px solid var(--ice); }
.plan .tick {
  display: inline-block; width: 12px; height: 15px; vertical-align: middle;
  background: var(--mint-text);
  clip-path: polygon(0 0, 100% 42%, 100% 100%, 0 100%);
}
.plan .none { display: inline-block; width: 10px; height: 2px; background: var(--line); vertical-align: middle; }
.plan-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--ice);
  font-size: .8125rem; color: var(--muted);
}
.plan-foot strong { color: var(--ink); font-weight: 600; }

@media (forced-colors: active) {
  .plan .tick, .plan .none, .mark { forced-color-adjust: none; background: CanvasText; }
}

/* Der eine choreografierte Moment: Dächer heben sich, der Plan erscheint, Zeile für Zeile wird abgehakt. */
@media (prefers-reduced-motion: no-preference) {
  .roofs .rise-front { animation: rise 1s var(--ease) .1s both; }
  .roofs .rise-back { animation: rise 1.1s var(--ease) both; }
  .plan { animation: plan-in .8s var(--ease) .45s both; }
  .plan .tick, .plan .none { animation: tick .45s var(--ease) both; animation-delay: calc(var(--row) + var(--col)); }
  .hero-copy > * { animation: copy-in .7s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
}
@keyframes rise { from { transform: translateY(60px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes plan-in { from { opacity: 0; transform: translateY(calc(-50% + 24px)); } to { opacity: 1; transform: translateY(-50%); } }
@keyframes copy-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes tick { from { opacity: 0; transform: translateY(6px) scale(.5); } to { opacity: 1; transform: none; } }
/* Verzögerung je Zeile + je Wochentag: der Plan wird Zeile für Zeile, links nach rechts abgehakt. */
.plan tbody tr:nth-child(1) { --row: 1.05s; }
.plan tbody tr:nth-child(2) { --row: 1.25s; }
.plan tbody tr:nth-child(3) { --row: 1.45s; }
.plan tbody tr:nth-child(4) { --row: 1.65s; }
.plan tbody tr:nth-child(5) { --row: 1.85s; }
.plan td:nth-child(2) { --col: 0s; }
.plan td:nth-child(3) { --col: .04s; }
.plan td:nth-child(4) { --col: .08s; }
.plan td:nth-child(5) { --col: .12s; }
.plan td:nth-child(6) { --col: .16s; }

/* ---------- Abschnitte ---------- */
.sec { padding-block: var(--section); }
.sec-ice { background: var(--ice); }
.sec-mist { background: var(--mist); }
.sec-compact { padding-block: clamp(56px, 7vw, 96px); }
.sec-dark { position: relative; background: var(--deep); color: var(--white); isolation: isolate; overflow: hidden; }

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.sec-head > p { color: var(--muted); font-size: 1.125rem; max-width: 34em; }
.on-dark .sec-head > p { color: var(--muted-on-dark); }

/* So arbeiten wir */
.ways {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px 72px;
  align-items: center;
}
.ways-list { margin-top: 44px; }
.ways-photo {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;           /* Quelle 780x525: bleibt auf Handy und Desktop >= 1,5-fach dicht */
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(11, 29, 32, .35);
}
.on-dark .ways-photo { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); outline: 1px solid rgba(255, 255, 255, .08); outline-offset: -1px; }
.ways-photo img { width: 100%; height: 100%; object-fit: cover; }
.ways-intro h2 + p { margin-top: 20px; color: var(--muted); font-size: 1.125rem; max-width: 26em; }
.ways-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.ways-list li { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-content: start; }
.ways-list .mark { margin-top: 7px; grid-row: span 2; }
.ways-list h3 { font-size: 1.1875rem; }
.ways-list p { color: var(--muted); font-size: 1rem; }
/* Dunkles Band (wie „Branchenlösungen“ im Figma): Punkte mit feiner Linie darüber. */
.on-dark .ways-intro h2 + p, .on-dark .ways-list p { color: var(--muted-on-dark); }
.on-dark .ways-list li { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); }

/* Leistungen — Karten wie im Figma-Entwurf (Leistungsspektrum), Inhalt bleibt Leistungsverzeichnis. */
/* Gemeinsames Zeilenraster (subgrid): Zeichen, Überschrift, Text, Liste und „Für“ stehen in allen drei Karten auf einer Höhe. */
.services { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(6, auto); gap: 0 24px; }
.service {
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: 32px 30px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: 0 30px 60px -44px rgba(11, 29, 32, .45);
}
/* Das Zeichen sitzt in der Dachform aus dem Logo (Oberkante fällt nach rechts ab) — die Signatur der Seite. */
.service-icon {
  display: grid; place-items: end center;
  width: 56px; height: 60px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  background: var(--deep);
  color: var(--mint);
  clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 100%);
  border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;
}
.service-icon svg { width: 26px; height: 26px; }
.service > p { margin-top: 12px; color: var(--muted); }
.scope { margin-top: 28px; border-top: 2px solid var(--deep); align-self: start; }
.scope li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: .96875rem; font-weight: 500;
}
.scope .mark { transform: translateY(1px); }
.service .for { margin-top: 18px; font-size: .9375rem; color: var(--muted); }
.service .for strong { color: var(--ink); font-weight: 600; }
/* Direkter Weg aus der Karte ins Formular — die Leistung ist dort schon ausgewählt. */
.service-link {
  display: inline-flex; align-items: center; justify-self: start;
  min-height: 44px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
  font-weight: 700; color: var(--mint-text);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px;
}
.service-link:hover { color: var(--deep); }

/* Dunkle Handlungskarte unter den Leistungen (im Figma die sechste Kachel). */
.service-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 48px;
  margin-top: 24px;
  padding: clamp(28px, 4vw, 40px) clamp(24px, 4.5vw, 52px);
  background: var(--deep);
  color: var(--white);
  border-radius: var(--r-l);
}
.service-cta h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.75rem); }
.service-cta p { margin-top: 8px; color: var(--muted-on-dark); max-width: 36em; }
.service-cta .btn { flex: none; }

/* Ablauf — echte Reihenfolge, darum nummeriert; Karten mit großer Ziffer wie im Figma-Entwurf */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: step; }
.step {
  counter-increment: step;
  padding: 28px 26px 30px;
  background: var(--white);
  border-radius: var(--r-l);
  box-shadow: 0 24px 48px -38px rgba(11, 29, 32, .4);
}
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 26px;
  font: 700 3.25rem/1 var(--font-display);
  letter-spacing: -0.03em;
  color: #A9DCD5;   /* helles Mint, nur Schmuck — die Reihenfolge trägt die Liste selbst */
}
.step:first-child::before { color: var(--mint-text); }
.step h3 { font-size: 1.1875rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: 1rem; }

/* Team */
.team { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.team-copy p { color: var(--muted); font-size: 1.125rem; max-width: 30em; }
.team .btn { margin-top: 24px; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: center; }
.contact-copy h2 + p { margin-top: 20px; color: var(--muted-on-dark); font-size: 1.125rem; max-width: 30em; }
.needs { margin-top: 28px; display: grid; gap: 12px; }
.needs li { display: flex; align-items: baseline; gap: 14px; font-size: 1.0625rem; }
.contact-card {
  position: relative;
  background: var(--teal-700);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}
.contact-card .label { font-size: .875rem; font-weight: 600; color: var(--muted-on-dark); }
.contact-card .card-lead {
  margin-top: 8px;
  font: 600 clamp(1.25rem, 1.05rem + .8vw, 1.625rem)/1.25 var(--font-display);
  letter-spacing: -0.01em;
  color: var(--white);
}
.contact-card .hint a { display: inline-block; padding-block: 11px; color: var(--white); text-underline-offset: 3px; }
.contact-card hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .1); margin: 26px 0; }
.contact-card .btn { margin-top: 28px; width: 100%; }
.contact-card .hint { margin-top: 12px; font-size: .875rem; color: var(--muted-on-dark); text-align: center; }
.contact-roof {
  position: absolute; z-index: -1;
  right: -120px; bottom: -80px; width: 620px;
  opacity: .5;
}
.contact-roof path { fill: var(--teal-700); }

/* ---------- Fuß ---------- */
.site-foot { background: var(--ink); color: var(--muted-on-dark); padding-block: 64px 32px; font-size: .9375rem; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-brand img { width: 150px; height: auto; }
.claim { margin-top: 18px; font: 600 1.25rem/1.2 var(--font-display); color: var(--white); letter-spacing: -0.01em; }
.foot-brand p:not(.claim) { margin-top: 10px; max-width: 22em; }
.site-foot h2 { font: 700 .75rem/1.3 var(--font-body); color: var(--mint); letter-spacing: .1em; text-transform: uppercase; }
.site-foot ul { margin-top: 6px; display: grid; gap: 0; }
.site-foot li a { display: inline-block; padding-block: 11px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom {
  margin-top: 56px; padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  font-size: .875rem;
}

/* ---------- Anrufleiste (nur Handy) ---------- */
.callbar { display: none; }

/* ---------- Rechtstexte ---------- */
.legal { padding-block: clamp(48px, 7vw, 96px) var(--section); }
.legal .wrap { max-width: calc(760px + 2 * var(--gutter)); }
.legal h1 { font-size: clamp(2rem, 1.6rem + 1.8vw, 3.25rem); hyphens: auto; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin-top: 40px; }
.legal p { margin-top: 12px; color: #2B3F43; }
.legal a { color: var(--mint-text); text-underline-offset: 3px; }
.legal .stand { margin-top: 48px; font-size: .875rem; color: var(--muted); }
.notfound p, .thanks p { font-size: 1.125rem; max-width: 32em; }
.notfound-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.legal .back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 16px; font-weight: 600; text-decoration: none; color: var(--mint-text); }

/* ---------- Anfrageformular (/anfrage/) ---------- */
/* Eine Seite, drei Blöcke, kein JavaScript. Blöcke wie das Leistungsverzeichnis: kräftige Linie oben statt Kartenstapel. */
.request { background: var(--mist); padding-block: clamp(40px, 6vw, 88px) var(--section); }
.request-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr);
  gap: 40px 72px;
  align-items: start;
}
.request-intro { position: sticky; top: 104px; }
.request-intro h1 { font-size: clamp(2.25rem, 1.7rem + 2vw, 3.5rem); }
.request-intro .lead { margin-top: 20px; font-size: 1.125rem; color: var(--muted); max-width: 30em; }
.request-next { margin-top: 28px; display: grid; gap: 12px; }
.request-next li { display: flex; align-items: baseline; gap: 14px; }
.request-mail { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); }
.request-mail a { display: inline-block; padding-block: 10px; color: var(--mint-text); font-weight: 600; text-underline-offset: 3px; }

.request-form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(20px, 4vw, 44px);
}
.form-note { font-size: .9375rem; color: var(--muted); }
.form-block { margin-top: 32px; padding-top: 22px; border-top: 2px solid var(--deep); }
.form-block h2 { font-size: 1.375rem; letter-spacing: -0.01em; }

.field { margin: 22px 0 0; padding: 0; border: 0; min-width: 0; }
.field > label:not(.option), .field > legend { display: block; padding: 0; font-weight: 600; font-size: 1.0625rem; line-height: 1.35; }
.opt { font-weight: 400; color: var(--muted); }
.hint { margin-top: 4px; font-size: .9375rem; color: var(--muted); max-width: 40em; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
  padding: 11px 14px;
  font: 400 1.0625rem/1.4 var(--font-body);   /* ≥ 16 px: sonst zoomt iOS beim Antippen ins Feld */
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid var(--muted);            /* Rand 5,2:1 — Feldgrenze muss erkennbar sein (WCAG 1.4.11) */
  border-radius: var(--r-s);
}
.field textarea { min-height: 132px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--deep); border-radius: var(--r-s); outline-offset: 1px; }
.field .w-plz { max-width: 10rem; }
.field .w-tel { max-width: 20rem; }
.field select {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 48px;
  padding: 10px 12px;
  font: 400 1.0625rem/1.4 var(--font-body);
  color: var(--ink);
  background-color: var(--white);
  border: 1.5px solid var(--muted);
  border-radius: var(--r-s);
}
.field select:focus-visible { border-color: var(--deep); outline-offset: 1px; }
.has-error select { border-color: var(--error); }

/* Formular v3 — Objekte (Julius 28.09., website-plan.md § „Formular v3“). Kein JavaScript: ab Objekt 2 steht vor jedem
   Objekt eine Checkbox „Weiteres Objekt hinzufügen“; das Objekt erscheint nur, wenn sie an ist. Ein ausgeschalteter
   Schalter blendet alle späteren Schalter und Objekte aus — der Server wertet genauso (objekt_aktiv()).
   Ohne CSS ist alles sichtbar und bleibt benutzbar. */
.objekt {
  margin: 18px 0 0;
  padding: 14px 18px 18px;
  min-width: 0;
  background: var(--mist);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.objekt > legend {
  float: left; width: 100%; padding: 0;
  font: 700 .78125rem/1.3 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--mint-text);
}
.objekt > .choice { clear: both; margin-top: 8px; }
.objekt .options { grid-template-columns: repeat(auto-fill, minmax(min(100%, 10rem), 1fr)); }
.obj-zeile { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.obj-zeile > .field { margin-top: 14px; }
/* Fehler in einer Zeile über die volle Breite — in einer halben Spalte bricht der Text sonst vielzeilig um (/ux 28.09.). */
.obj-zeile:has(> .field.has-error) > .field { grid-column: 1 / -1; }
.qm { position: relative; display: block; margin-top: 8px; }
.field .qm input { margin-top: 0; padding-right: 3rem; }
.qm-einheit { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }

/* Schalter: die echte Checkbox bleibt im Textfluss (Tastatur springt nicht an den Formularanfang), unsichtbar unter
   dem gezeichneten Kreis des Labels. */
.obj-schalter { width: 24px; height: 24px; margin: 22px 0 0; opacity: 0; vertical-align: top; }
.obj-plus, .notiz-klappe summary {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  font-weight: 700; color: var(--mint-text);
  cursor: pointer;
}
.obj-plus { margin: 12px 0 0 -24px; vertical-align: top; }
.obj-plus::before, .notiz-klappe summary::before {
  content: "+"; display: grid; place-items: center; flex: none; width: 24px; height: 24px;
  border: 1.5px solid currentColor; border-radius: 50%; font-weight: 700; line-height: 1;
}
.obj-schalter:checked + .obj-plus::before { content: "–"; }
.obj-plus .aus { display: none; }
.obj-schalter:checked + .obj-plus .aus { display: inline; }
.obj-schalter:checked + .obj-plus .an { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.obj-schalter:focus-visible + .obj-plus { outline: 3px solid var(--mint-text); outline-offset: 3px; border-radius: 4px; }
.obj-schalter + .obj-plus + .objekt { display: none; }
.obj-schalter:checked + .obj-plus + .objekt { display: block; }
.objekte .obj-schalter:not(:checked) + .obj-plus ~ .obj-schalter,
.objekte .obj-schalter:not(:checked) + .obj-plus ~ .obj-plus,
.objekte .obj-schalter:not(:checked) + .obj-plus ~ .objekt,
.objekte .obj-schalter:not(:checked) + .obj-plus ~ .obj-max { display: none; }
.obj-max { margin-top: 12px; font-size: .9375rem; color: var(--muted); }
.notiz-klappe { margin-top: 18px; }
.notiz-klappe summary { list-style: none; }
.notiz-klappe summary::-webkit-details-marker { display: none; }
.notiz-klappe[open] summary::before { content: "–"; }
.notiz-klappe summary .opt { font-weight: 400; color: var(--muted); }

/* Auswahl als ganze antippbare Zeile (≥ 48 px); gewählt = dunkler Rand + Eisblau. */
.options { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 8px; margin-top: 10px; }
.option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 14px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  font-weight: 500;
  line-height: 1.3;
  cursor: pointer;
}
.option:hover { border-color: var(--teal-600); }
.option:has(input:checked) { border-color: var(--deep); background: var(--ice); }
.option input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--deep); }
/* Sprung aus der Fehlerliste: Label + Fehlertext über dem Feld sollen sichtbar bleiben (zusätzlich zum scroll-padding). */
.field input, .field textarea { scroll-margin-top: 5rem; }
/* Auf der Formularseite selbst würde der Kopf-Knopf „Angebot anfragen“ die Seite neu laden und Eingaben verwerfen. */
.page-request .head-actions .btn-dark { display: none; }

/* Fehler: Text + Randlinie, nie nur Farbe. */
.has-error { border-left: 4px solid var(--error); padding-left: 14px; }
.has-error input, .has-error textarea { border-color: var(--error); }
.field-error { margin-top: 6px; font-weight: 600; font-size: .9375rem; color: var(--error); }
.error-summary { margin-bottom: 24px; padding: 18px 20px; border: 3px solid var(--error); border-radius: var(--r-m); }
.error-summary h2 { font-size: 1.25rem; letter-spacing: -0.01em; }
.error-summary p { margin-top: 8px; }
.error-summary ul { margin-top: 10px; display: grid; gap: 6px; }
.error-summary a { color: var(--error); font-weight: 600; text-underline-offset: 3px; }

.form-submit { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.form-privacy { font-size: .9375rem; color: var(--muted); max-width: 40em; }
.form-privacy a { color: var(--mint-text); text-underline-offset: 3px; }
.form-submit .btn { margin-top: 18px; min-width: 220px; }
/* Köderfeld: für Menschen unsichtbar, Bots füllen es aus. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsiv ---------- */
/* 961–1299 px (u. a. iPad quer): Textspalte reicht bis an den Spaltenabstand — Karte nicht hineinschieben. */
@media (min-width: 961px) and (max-width: 1299px) {
  .plan { left: -8px; }
}
@media (max-width: 1080px) {
  .nav-main { gap: 20px; }
  .head-phone { display: none; }
}
@media (max-width: 960px) {
  .nav-main, .head-phone { display: none; }
  .site-head { position: relative; }
  html { scroll-padding-top: 16px; }
  .nav-drawer { display: block; }
  .head-actions { gap: 4px; }
  .hero .wrap { grid-template-columns: 1fr; min-height: 0; gap: 8px; padding-bottom: 0; }
  /* Handy/Tablet: Plan im Fluss, das Zeichen steht darunter auf der Unterkante (Giebel sichtbar, nicht verdeckt). */
  .hero-art { min-height: 0; padding: 16px 0 calc(min(118vw, 560px) * .415 + 28px); }
  .roofs { right: -15%; width: min(118%, 560px); }
  .plan { position: relative; left: auto; top: auto; transform: none; width: auto; max-width: 440px; }
  @media (prefers-reduced-motion: no-preference) {
    .plan { animation-name: plan-in-flat; }
  }
  .sec-head, .ways, .team, .contact, .request-grid { grid-template-columns: 1fr; }
  .request-intro { position: static; }
  /* Handy/Tablet: das erste Feld soll beim Ankommen sichtbar sein (/ux 28.09.: lag bei 390 px unter der Falz).
     Die drei Schritte sagen dasselbe wie der Satz darüber und die Danke-Seite — der E-Mail-Ausweg bleibt. */
  .request-next { display: none; }
  .ways-photo { max-width: 560px; }
  .services { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; }
  .service { grid-row: auto; grid-template-rows: none; }
  .service-cta { flex-direction: column; align-items: flex-start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@keyframes plan-in-flat { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .plan { padding: 18px 16px 14px; }
  .plan tbody th { font-size: .8125rem; line-height: 1.3; }
  .ways-list { grid-template-columns: 1fr; gap: 28px; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 16px; padding: 22px 20px; }
  .step::before { font-size: 2.25rem; margin-bottom: 0; grid-row: span 2; }
  .service { padding: 26px 22px 22px; }
  .service-cta .btn { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .head-actions .btn-dark { display: none; }
  .form-submit .btn { width: 100%; }
  .obj-zeile { grid-template-columns: 1fr; }
  .obj-zeile-klein { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .objekt { padding: 12px 14px 16px; }
  .callbar {
    display: grid; grid-template-columns: 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(14, 47, 53, .97);
    border-top: 1px solid rgba(255, 255, 255, .08);
  }
  .callbar .btn { min-height: 48px; }
  body.has-callbar { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
