/* ================================================================
   GrünWerk Harz – Markenauftritt (BrushWorks-Stil)
   Grün als Markenfarbe, Orange als Akzent, warmes Creme, Anton/Oswald
   ================================================================ */

/* Selbst gehostete Schriften – kein externer Request (Datenschutz) */
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/anton-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Anton"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("assets/fonts/anton-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("assets/fonts/oswald-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Oswald"; font-style: normal; font-weight: 200 700; font-display: swap;
  src: url("assets/fonts/oswald-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --ink: #0f1f16;
  --green: #1c4a2e;
  --green-2: #2a6640;
  --green-deep: #0c1c12;
  --orange: #f79421;          /* Signalfarbe für Flächen (Buttons, Kreise) */
  --orange-dark: #a85c06;     /* dunkler für Text/Links – ≥ 4.5:1 auf --paper */
  --cream: #f4ead8;
  --paper: #fffaf3;
  --card: #ffffff;
  --muted: #5d6d61;
  --line: #e3d6bf;            /* dezente Trennlinien */
  --field-border: #8f8058;    /* Formularrahmen – ≥ 3:1 (WCAG 1.4.11) */
  --on-dark: #eef3ec;
  --on-dark-muted: #b9c8ba;
  --focus: var(--ink);

  --shadow-s: 0 4px 14px rgba(15, 31, 22, .08);
  --shadow-m: 0 16px 44px rgba(15, 31, 22, .12);
  --shadow-l: 0 30px 80px rgba(15, 31, 22, .22);

  --radius: 22px;
  --radius-l: 34px;
  --radius-pill: 999px;

  --max: 1200px;
  --pad: clamp(28px, 5vw, 72px);

  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-label: "Oswald", "Arial Narrow", system-ui, sans-serif;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Dunkle Palette – gilt bei System-Dunkelmodus (sofern nicht ausdrücklich
   "light" gewählt) UND bei manueller Wahl "dark". Beide Selektoren nötig,
   sonst wirkt der Schalter bei System=hell nicht. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #f1f5ee;
    --paper: #101711;
    --cream: #0c130d;
    --card: #17211a;
    --muted: #9fb0a2;
    --line: #2b3a2f;
    --field-border: #66795f;
    --orange-dark: #eaa24a;
    --on-dark: #eef3ec;
    --on-dark-muted: #b9c8ba;
    --focus: var(--orange);
    --shadow-s: 0 4px 14px rgba(0, 0, 0, .4);
    --shadow-m: 0 16px 44px rgba(0, 0, 0, .5);
    --shadow-l: 0 30px 80px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --ink: #f1f5ee;
  --paper: #101711;
  --cream: #0c130d;
  --card: #17211a;
  --muted: #9fb0a2;
  --line: #2b3a2f;
  --field-border: #66795f;
  --orange-dark: #eaa24a;
  --on-dark: #eef3ec;
  --on-dark-muted: #b9c8ba;
  --focus: var(--orange);
  --shadow-s: 0 4px 14px rgba(0, 0, 0, .4);
  --shadow-m: 0 16px 44px rgba(0, 0, 0, .5);
  --shadow-l: 0 30px 80px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: 110px;
  overflow-x: clip;
}

/* Weiches Scrollen bewusst NICHT global auf html.
   Global gesetzt gilt scroll-behavior auch fuer die Scroll-Wiederherstellung
   des Browsers: Safari animiert beim Neuladen zur alten Position, und weil
   die Seitenhoehe waehrend des Ladens noch waechst (Bilder, Schriften,
   .reveal), lief diese Animation ins Seitenende - Jonas landete nach jedem
   Refresh unten. Deshalb schaltet app.js smooth erst nach dem load-Ereignis
   per Klasse frei; dann kann waehrend des Ladens nichts mehr animiert werden.
   Ohne JavaScript springen Anker hart - das ist die richtige Rueckfallebene.
   scroll-padding-top: 110px gilt unabhaengig davon und haelt die 86px hohe
   Kopfzeile frei. */
@media (prefers-reduced-motion: no-preference) {
  html.scroll-smooth { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.section { padding: clamp(64px, 9vw, 128px) 0; }
.section--paper { background: var(--paper); }
.section--green {
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  color: var(--on-dark);
}

/* ---------- Typo-Bausteine ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  /* Anton setzt die Umlautpunkte auf 1.053em ueber der Grundlinie - mit der
     frueheren .96 stiessen AE/OE/UE in die Zeile darueber. 1.08 gibt knapp
     Luft (noetig waeren 1.061) und bleibt so eng wie moeglich. */
  line-height: 1.08;
  letter-spacing: .005em;
  margin: 0;
}
/* Obergrenze 5rem statt 5.6rem. Gemessen in Anton (Vorschussbreiten aus
   assets/fonts/anton-latin.woff2, inkl. letter-spacing .005em):
   "GRUNDSTUECK IN FORM." ist 8.328 em breit. Im .hero-card stehen
   780px - 2x48px Innenabstand - 2x1px Rahmen = 682px zur Verfuegung.
   Bei 5.6rem = 89.6px waeren das 746.2px -> die Zeile brach um und
   "FORM." blieb als Stummel stehen (ab 1173,6px Fensterbreite).
   Bei 5rem = 80px sind es 666.2px, also 15.8px Luft. Zwei Zeilen, wie
   gedacht, bei jeder Fensterbreite ab 444,5px. */
h1.display { font-size: clamp(2.6rem, 7vw, 5rem); }
h2.display { font-size: clamp(2rem, 4.6vw, 3.6rem); }
h3 {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: .01em;
  margin: 0 0 10px;
}

.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .78rem;
  color: var(--orange-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex: none;
}
.section--green .eyebrow { color: var(--orange); }

.kicker {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .95rem;
  color: var(--orange-dark);
}

.lead { font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--muted); }
.section--green .lead { color: var(--on-dark-muted); }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .display { margin: 20px 0 16px; }
/* Umlautpunkte ragen ueber die Em-Hoehe hinaus - ohne Abstand stossen sie in
   die Eyebrow darueber. Gilt fuer jede Ueberschrift direkt nach einer Eyebrow. */
.eyebrow + .display { margin-top: 20px; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: var(--orange);
  --btn-fg: #241503;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-size: .92rem;
  padding: 15px 26px;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-m); }
.btn:active { transform: translateY(0); }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
/* Dunkle Flaechen: die Umriss-Schaltflaeche braucht helle Schrift.
   .hero-card muss ausdruecklich mit dazu - sie liegt in .hero, nicht in
   .section--green. Ohne diese Zeile stand "Leistungen ansehen" im Hellmodus
   in --ink (#0f1f16) auf der dunkelgruenen Karte (#0d1c11): 1.09:1, der Text
   war schlicht unsichtbar. Im Dunkelmodus fiel es nicht auf, weil --ink dort
   hell ist. Der Rahmen liegt auf .42 statt .3 - damit kommt die Umrisslinie
   auf 4.1:1 gegen den Kartengrund und erfuellt WCAG 1.4.11 (>= 3:1); mit .3
   waeren es nur 2.69:1. */
.section--green .btn--ghost,
.hero-card .btn--ghost { --btn-fg: var(--on-dark); border-color: rgba(255,255,255,.42); }
.btn--light { --btn-bg: var(--paper); --btn-fg: var(--ink); }
.btn--solidgreen { --btn-bg: var(--green); --btn-fg: #fff; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--orange) 45%, transparent);
}
.btn:focus-visible { outline-offset: 4px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.nav-shell {
  height: 86px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 52px; height: 54px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; font-family: var(--font-display); text-transform: uppercase; }
.brand-copy strong { font-size: 1.35rem; letter-spacing: .02em; }
.brand-copy small { font-size: .8rem; letter-spacing: .42em; color: var(--orange-dark); margin-top: 5px; }

/* Mit dem Eintrag "Referenzen" braucht die Kopfzeile bei 1000px Fenster
   (direkt oberhalb des Burger-Umbruchs) 925px von 960px Containerbreite.
   Der Abstand faehrt deshalb unterhalb von 1250px kontrolliert herunter
   statt spaeter zu ueberlaufen; ab 1250px ist er unveraendert 30px. */
.mainnav { display: flex; align-items: center; gap: clamp(20px, 2.4vw, 30px); }
.mainnav a {
  font-family: var(--font-label);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
}
.mainnav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--orange); transition: right .2s ease;
}
.mainnav a:hover::after, .mainnav a.active::after { right: 0; }
.mainnav a.active { color: var(--orange-dark); }
.mainnav-cta { display: none; }

.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--ink); margin: 5px 0; transition: .2s; }

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

.hero {
  position: relative;
  padding: clamp(90px, 12vw, 150px) 0 clamp(60px, 8vw, 110px);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url("assets/hero-machine.jpg") center/cover no-repeat;
  background: image-set(
    url("assets/hero-machine.webp") type("image/webp"),
    url("assets/hero-machine.jpg") type("image/jpeg")
  ) center/cover no-repeat;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 120% at 20% 20%, rgba(10,22,13,.35), rgba(10,22,13,.78) 70%);
}
.hero .container { position: relative; z-index: 2; }
/* Auf breiten Schirmen wandert der Standard-Container (max 1200px) mit der
   Seitenmitte nach rechts - und der Textkasten legt sich dort genau auf die
   Maschine. Der Hero bekommt deshalb einen breiteren Rahmen, damit die Karte
   links bleibt und das Motiv rechts frei steht. */
.hero .container { width: min(calc(100% - 40px), 1640px); }

.hero-card {
  max-width: 620px;
  background: linear-gradient(165deg, rgba(20,44,27,.92), rgba(10,22,13,.92));
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: clamp(28px, 4vw, 48px);
  color: var(--on-dark);
}
.hero-card .display { margin: 16px 0 14px; color: #fff; }
.hero-sub {
  font-family: var(--font-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--orange);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  margin: 0 0 16px;
}
.hero-card p.body { color: var(--on-dark-muted); max-width: 52ch; margin: 0 0 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 26px; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  font-family: var(--font-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .8rem; color: var(--on-dark-muted);
}


/* ---------- Proofbar ---------- */

.proofbar { background: var(--green-deep); color: var(--on-dark); }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.proof-grid > div {
  padding: 30px 24px;
  border-right: 1px solid rgba(255,255,255,.1);
  text-align: center;
}
.proof-grid > div:last-child { border-right: 0; }
.proof-grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--orange);
  line-height: 1;
}
.proof-grid span {
  font-family: var(--font-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .74rem; color: var(--on-dark-muted);
  margin-top: 8px; display: block;
}

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

.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service-card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 30px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-s);
  min-height: 280px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-m);
  border-color: color-mix(in srgb, var(--orange) 45%, var(--line));
}
.service-card .icon { font-size: 1.9rem; margin-bottom: 18px; }
.service-card p { color: var(--muted); flex: 1; }
.service-card .card-link {
  font-family: var(--font-label); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  font-size: .82rem; color: var(--orange-dark);
  margin-top: 16px;
}
.service-card.featured {
  background: linear-gradient(160deg, var(--green), var(--green-deep));
  color: var(--on-dark);
  border-color: transparent;
}
.service-card.featured p { color: var(--on-dark-muted); }
.service-card.featured .card-link { color: var(--orange); }
.service-card .tag {
  align-self: flex-start;
  font-family: var(--font-label); font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em; font-size: .68rem;
  color: var(--orange);
  border: 1px solid color-mix(in srgb, var(--orange) 50%, transparent);
  padding: 4px 9px; border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

/* ---------- Über / Split ---------- */

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.feature-list { display: grid; gap: 4px; margin-top: 30px; }
.feature-list > div {
  display: grid; grid-template-columns: 54px 1fr; gap: 16px;
  padding: 16px 0; border-top: 1px solid rgba(255,255,255,.12);
}
.feature-list .num {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--orange);
}
.feature-list p { margin: 0; color: var(--on-dark-muted); }
.feature-list strong { color: var(--on-dark); }
.media-card {
  border-radius: var(--radius-l); overflow: hidden;
  box-shadow: var(--shadow-l); position: relative;
}
.media-card img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
/* fleet.jpg ist ein Panorama (811x235, 3,45:1). Auf Kartenhoehe beschnitten
   fielen der Fahrzeugschriftzug und die halbe Telefonbox weg - deshalb hier
   in voller Breite zeigen, die Karte wird dann eben flacher. */
#ueber-uns .media-card img { height: auto; min-height: 0; }
.media-caption {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(10,22,13,.82); backdrop-filter: blur(8px);
  padding: 12px 16px; border-radius: 12px;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em;
  font-size: .8rem; color: #fff; display: flex; gap: 8px;
}
.media-caption span { color: var(--orange); }


/* ---------- Maschinen ---------- */

.machine-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(36px, 6vw, 68px); align-items: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: 9px; margin: 22px 0 28px; }
/* <a> steht hier gleichberechtigt neben <span>: auf den Leistungsseiten sind
   die Kapseln teils Querverweise auf die anderen fünf Leistungen. */
.pill-row span,
.pill-row a {
  font-family: var(--font-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
  border: 1px solid var(--field-border); background: var(--paper);
  color: var(--ink); /* sonst erbt die Kapsel die helle Schrift der grünen Sektion */
  padding: 8px 14px; border-radius: var(--radius-pill);
}
.pill-row a { transition: border-color .16s ease, background .16s ease; }
.pill-row a:hover { border-color: var(--orange); background: var(--cream); }

/* ---------- Referenzen (Vorher/Nachher) ---------- */

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 3vw, 32px); }
.ba-item { position: relative; margin: 0; }
.ba-item img {
  /* height: auto ist zwingend: ohne das gewinnt das HTML-Attribut
     height="900" (Presentational Hint) und die Bilder wurden 584x900
     hoch statt quadratisch dargestellt - object-fit hat sie dann seitlich
     beschnitten. Gleiche Ursache wie frueher beim Footer-Logo (H11). */
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow-m);
}
.ba-tag {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(10,22,13,.86); color: #fff;
  font-family: var(--font-label); font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; font-size: .78rem;
  padding: 7px 15px; border-radius: var(--radius-pill);
}
.ba-item figcaption { margin-top: 14px; color: var(--muted); font-size: .95rem; }

/* ---------- Leistungsseiten (je eine Unterseite pro Leistung) ---------- */

/* Kopfbereich der sechs Leistungsseiten. Bewusst kein Foto-Hero wie auf der
   Startseite: für vier der sechs Leistungen gibt es kein passendes Foto, und
   ein Symbolbild wäre eine Aussage, die nicht belegt ist. */
.page-hero-body { max-width: 820px; }
.page-hero-body .display { margin: 20px 0 16px; }
/* h1.display steht sonst auf clamp(2.6rem, 7vw, 5rem) – das ist die Größe der
   Startseiten-Überschrift in der schmalen Hero-Karte. Die Überschriften hier
   sind länger (Leistung + Ort) und stehen über die volle Containerbreite,
   deshalb dieselbe Staffelung wie h2.display auf der Startseite.
   line-height bleibt die 1.08 aus .display – Anton setzt die Umlautpunkte auf
   1.053em, und Ä/Ö/Ü kommen in diesen Überschriften laufend vor. */
.page-hero h1.display { font-size: clamp(2rem, 4.6vw, 3.4rem); overflow-wrap: break-word; }
/* overflow-wrap: break-word statt hyphens: auto. Beide verhindern denselben
   Fehler: wer die Standard-Schriftgroesse des Browsers hochsetzt, hat bei
   20px Grundschrift und 320px Fenster mit "HAUSMEISTERSERVICE" ein Wort, das
   43px breiter ist als der 280px-Container – und weil html auf
   overflow-x: clip steht, wuerde es stumm abgeschnitten statt umgebrochen.
   hyphens: auto haette das auch geloest, greift aber schon im Normalfall:
   nachgemessen wurde damit bei 390px Fenster "BAUMPFLEGE UND BAUM-/FÄLLUNG",
   der Suchbegriff also mitten durchgetrennt. break-word greift nur, wenn ein
   einzelnes Wort sonst nicht in seine Zeile passt, und laesst den normalen
   Umbruch in Ruhe. Nachgemessen: Ueberlauf 0px auf allen sechs Seiten bei
   320/390/1440px und zusaetzlich bei 20px Grundschrift. */
.page-hero .hero-actions { margin-top: 28px; }
/* Ortsnamen mit Bindestrich nicht am Bindestrich umbrechen lassen
   ("CLAUSTHAL-" / "ZELLERFELD" liest sich in Versalien wie ein Fehler).
   Gemessen: "CLAUSTHAL-ZELLERFELD" ist bei 2rem (der clamp-Untergrenze)
   278px breit. Der Container hat bei 390px Fenster 350px – passt. Bei
   320px Fenster sind es nur noch 280px, also 2px Luft; das ist zu knapp
   (groessere Standardschrift oder die Ersatzschrift waehrend des Ladens
   kippen es). Weil html auf overflow-x: clip steht, wuerde der Ortsname
   dann stumm abgeschnitten – schlimmer als ein Umbruch. Deshalb faellt
   die Sperre unterhalb von 361px weg. */
.nowrap { white-space: nowrap; }
@media (max-width: 360px) {
  .nowrap { white-space: normal; }
}

/* Abstand ueber einer nachgestellten Schaltflaeche. Bewusst eine Klasse und
   kein style="margin-top:26px": die CSP steht auf style-src 'self', damit
   sind Inline-Stilattribute live blockiert (nachgewiesen mit der echten CSP
   als <meta>, siehe Abschnitt "CSP blockierte das Inline-Skript"). */
.section-cta { margin-top: 26px; }

.breadcrumb {
  font-family: var(--font-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: .1em; font-size: .76rem;
  color: var(--on-dark-muted); margin-bottom: 24px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.breadcrumb a { color: var(--on-dark); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb [aria-current] { color: var(--orange); }

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

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps article {
  padding: 26px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--card);
}
.steps .num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--orange); color: #241503;
  font-family: var(--font-display); font-size: 1.3rem;
  margin-bottom: 20px;
}
.steps p { color: var(--muted); margin: 0; }

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

.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(32px, 6vw, 64px); }
.accordion details { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 0; }
.accordion details:last-child { border-bottom: 1px solid rgba(255,255,255,.14); }
.accordion summary {
  cursor: pointer; list-style: none;
  font-family: var(--font-label); font-weight: 600;
  font-size: 1.08rem; text-transform: uppercase; letter-spacing: .03em;
  display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--orange); font-family: var(--font-display); }
.accordion details[open] summary::after { content: "–"; }
.accordion p { color: var(--on-dark-muted); margin: 12px 0 0; }

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

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 64px); }
.contact-direct { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-direct li {
  display: flex; gap: 14px; align-items: start;
  padding: 14px 16px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--card); color: var(--muted);
}
.contact-direct a { color: var(--orange-dark); font-family: var(--font-label); font-weight: 600; }

.contact-form {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--shadow-s);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label {
  display: grid; gap: 7px; margin-bottom: 14px;
  font-family: var(--font-label); font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em; font-size: .8rem;
}
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; border: 1px solid var(--field-border); border-radius: 12px;
  padding: 13px 14px; background: var(--paper); color: var(--ink);
  font-family: var(--font-body); text-transform: none; letter-spacing: normal;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--focus);
}
.contact-form .optional { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: normal; }
.form-note { font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.form-note a { color: var(--orange-dark); font-weight: 600; }
.form-status {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 12px;
  font-family: var(--font-label); font-weight: 500; font-size: .88rem;
}
.form-status.is-info { background: var(--cream); color: var(--ink); border: 1px solid var(--line); }
.form-status.is-error { background: rgba(180,40,40,.12); color: #a33; }
.hp { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- Impressum / Datenschutz ---------- */

.legal-page { background: var(--paper); color: var(--ink); padding: clamp(110px, 14vw, 150px) 0 80px; }
.legal-page .container { max-width: 800px; }
.legal-page h1 { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1; margin: 0 0 8px; }
.legal-page h2 {
  font-family: var(--font-label); font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; font-size: 1.2rem; margin: 40px 0 12px;
}
.legal-page p, .legal-page li { color: var(--muted); }
.legal-page a { color: var(--orange-dark); font-family: var(--font-label); font-weight: 600; }
.legal-page a:hover { text-decoration: underline; }
.legal-page .back-link {
  display: inline-block; margin-bottom: 30px;
  text-transform: uppercase; letter-spacing: .08em; font-size: .82rem;
}
.legal-note {
  margin: 34px 0 0; padding: 14px 16px;
  border-left: 3px solid var(--orange); background: var(--cream); font-size: .88rem;
}
.legal-page .todo {
  background: #ffe8a3; color: #7a5b00; padding: 1px 6px;
  border-radius: 5px; font-weight: 700; font-size: .92em;
}

/* ---------- Footer ---------- */

.footer { background: var(--green-deep); color: var(--on-dark); padding: 56px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 34px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 9px; }
.footer-grid strong {
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; color: var(--on-dark-muted); margin-bottom: 4px;
}
.footer-grid a { color: var(--on-dark); font-size: .92rem; }
.footer-grid a:hover { color: var(--orange); }
.footer-brand { flex-direction: row !important; align-items: center; gap: 14px; }
.footer-brand img { width: 60px; height: auto; }
.footer-brand .display { font-family: var(--font-display); text-transform: uppercase; font-size: 1.2rem; }
.footer-brand span { color: var(--on-dark-muted); font-size: .82rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 16px;
  font-family: var(--font-label); text-transform: uppercase; letter-spacing: .06em;
  font-size: .76rem; color: var(--on-dark-muted);
}

/* ---------- Floating ---------- */

.floating-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  background: var(--orange); color: #241503;
  font-family: var(--font-label); font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em; font-size: .82rem;
  padding: 13px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-m);
}
.theme-toggle {
  position: fixed; left: 18px; bottom: 18px; z-index: 80;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow-m); cursor: pointer;
}

/* ---------- Skip link ---------- */

.skip-link { position: absolute; left: -999px; top: 10px; }
.skip-link:focus { left: 12px; z-index: 999; background: var(--paper); padding: 10px 14px; border-radius: 8px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
html:not(.reveal-ready) .reveal { opacity: 1 !important; transform: none !important; }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .mainnav {
    position: fixed; inset: 86px 0 auto 0;
    flex-direction: column; align-items: flex-start; gap: 14px;
    background: var(--cream); padding: 24px var(--pad);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-l);
    max-height: calc(100vh - 86px); overflow-y: auto;
    display: none;
  }
  .mainnav.open { display: flex; }
  .menu-toggle { display: block; }
  .mainnav-cta { display: inline-flex; margin-top: 6px; }
  .nav-cta { display: none; }
  .split-grid, .machine-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: 1fr; }
  .proof-grid > div:nth-child(2) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .service-grid, .steps, .footer-grid, .form-row { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-bottom { flex-direction: column; }
  .floating-cta span:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  /* html.scroll-smooth greift hier ohnehin nicht (no-preference-Query) */
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}
