/* Wolf Erdbau – Design-System (Spezifikation Abschnitt 4)
   Aufbau: 1 Schriften · 2 Variablen · 3 Grundlagen · 4 Raster · 5 Kopfzeile · 6 Fußzeile
   7 Bausteine · 8 Startseite · 9 Bewegung · 10 Hilfsklassen
   Regeln: keine Inline-Stile, kein !important außer in der Reduced-Motion-Regel. */

/* 1 Schriften (selbst gehostet, nur latin, SIL OFL: fonts/OFL.txt) */
@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/barlow-latin-400-normal.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: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/barlow-latin-500-normal.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: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-latin-600-normal.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: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-600-normal.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: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-700-normal.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;
}

/* 2 Variablen */
:root {
  --bg: #0e1113;
  --surface: #161a1d;
  --surface-2: #1e2327;
  --text: #f2f3f4;
  --text-muted: #aab2b8;
  --line: rgba(255, 255, 255, .12);
  --line-strong: rgba(255, 255, 255, .24);
  --accent: #f5b800;
  --accent-hover: #ffc72e;
  --accent-ink: #141414;
  --brand-gray: #546066;         /* gemessen im Logo-PNG (Original 2287 px) */
  --field-border: #7f8a90;       /* Formular-Rahmen, 5,4:1 auf --bg */
  --error: #ff8f85;              /* Fehlertext, 7,9:1 auf --surface */

  --font-sans: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;

  --container: 75rem;            /* 1200 px Inhaltsbreite */
  --gutter: 1rem;                /* 16 px Rand auf Mobil */
  --gap: 1.5rem;
  --section-y: clamp(4rem, 2.6rem + 4.4vw, 7rem);
  --header-h: 4.5rem;
  --radius: 2px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --slant: clamp(1.5rem, 4vw, 4rem);  /* Höhe der schrägen Kanten (Motiv der Logo-Streifen) */

  /* Schraffur aus dem Logo: schräge Streifen, Farbe über color */
  --hatch: repeating-linear-gradient(115deg, currentColor 0 .75rem, transparent .75rem 1.125rem);
}
@media (min-width: 48em) {
  :root { --gutter: 2rem; --gap: 2rem; }
}

/* 3 Grundlagen */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 48em) {
  body { font-size: 1.125rem; }
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote, address { margin: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-cond);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: .015em;
  text-transform: uppercase;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 1.45rem + 4.5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 1.55rem + 1.9vw, 3rem); }
h3 { font-size: clamp(1.375rem, 1.2rem + .6vw, 1.625rem); font-weight: 600; letter-spacing: .03em; line-height: 1.15; }
h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: .06em; line-height: 1.2; }
p { max-width: 31em; text-wrap: pretty; } /* ≈ 70 Zeichen in Barlow (70ch wären ≈ 89 Zeichen) */
address { font-style: normal; }
strong { font-weight: 600; }
a { color: var(--text); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .22em; }
a:hover { color: var(--accent); }
::selection { background: var(--accent); color: var(--accent-ink); }

/* Sichtbarer Fokus: 3 px Gelb auf allen Bedienelementen */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }

.skip-link {
  position: absolute;
  top: .5rem;
  left: .5rem;
  z-index: 100;
  padding: .75rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* 4 Raster */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.grid-12 > * { grid-column: 1 / -1; }
@media (min-width: 48em) {
  .md-span-4 { grid-column: span 4; }
  .md-span-5 { grid-column: span 5; }
  .md-span-6 { grid-column: span 6; }
  .md-span-7 { grid-column: span 7; }
  .md-span-8 { grid-column: span 8; }
}
@media (min-width: 64em) {
  .lg-span-3 { grid-column: span 3; }
  .lg-span-4 { grid-column: span 4; }
  .lg-span-5 { grid-column: span 5; }
  .lg-span-6 { grid-column: span 6; }
  .lg-span-7 { grid-column: span 7; }
  .lg-start-8 { grid-column: 8 / -1; }
}
.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section-head { display: grid; gap: 1rem; max-width: 46rem; margin-bottom: clamp(2rem, 1.4rem + 2.4vw, 3.5rem); }
.lead { font-size: 1.125em; color: var(--text-muted); }
.stack { display: grid; gap: 1.25rem; align-content: start; }

/* 5 Kopfzeile */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 17, 19, .9);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header {
    background: rgba(14, 17, 19, .74);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    backdrop-filter: blur(14px) saturate(140%);
  }
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 2rem;
  min-height: var(--header-h);
}
.site-logo { display: inline-flex; align-items: center; min-height: 44px; padding-block: .5rem; }
.site-logo img { width: auto; height: 1.875rem; }
@media (min-width: 48em) {
  .site-logo img { height: 2.25rem; }
}
.site-nav__list { display: flex; flex-wrap: wrap; column-gap: 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-cond);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: .375rem;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover { color: var(--text); }
.site-nav a:hover::after, .site-nav a.is-current::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: .75rem;
  min-width: 44px;
  min-height: 44px;
  margin-right: -.625rem;
  padding: .5rem .625rem;
  border: 0;
  background: transparent;
  color: var(--text);
  font-family: var(--font-cond);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle__icon, .nav-toggle__icon::before, .nav-toggle__icon::after {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: currentColor;
  transition: transform .2s var(--ease), background-color .2s;
}
.nav-toggle__icon { position: relative; }
.nav-toggle__icon::before, .nav-toggle__icon::after { content: ""; position: absolute; left: 0; }
.nav-toggle__icon::before { top: -7px; }
.nav-toggle__icon::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon::after { transform: translateY(-7px) rotate(-45deg); }

/* Unter 72em (1152 px) passen Logo und sieben Menüpunkte nicht in eine Zeile.
   Ohne JavaScript steht das Menü dann als Liste unter dem Logo. */
@media (max-width: 71.99em) {
  .site-header { position: relative; }
  .site-nav { flex-basis: 100%; }
  .site-nav__list { flex-direction: column; padding-bottom: 1rem; }
  .site-nav li + li { border-top: 1px solid var(--line); }
  .site-nav a { width: 100%; min-height: 3rem; font-size: 1.375rem; }
  .site-nav a::after { bottom: .5rem; right: auto; width: 2.5rem; }
}
/* Mit JavaScript: zugeklappt, Umschalter rechts neben dem Logo, Menü klappt über den Inhalt.
   Lädt site.js nicht, bleibt die Navigation in der Fußzeile erreichbar. */
@media (max-width: 71.99em) and (scripting: enabled) {
  .site-header { position: sticky; }
  .site-header__inner { flex-wrap: nowrap; column-gap: 1rem; }
  .site-logo { min-width: 0; }
  .site-logo img { max-width: 100%; object-fit: contain; object-position: left center; }
  .nav-toggle { display: inline-flex; flex: none; }
  .site-nav { display: none; }
  .site-header.is-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line-strong);
  }
}

/* 6 Fußzeile */
.site-footer { background: var(--surface); color: var(--text-muted); font-size: 1rem; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
@media (min-width: 48em) {
  .site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer__brand { display: grid; gap: 1rem; align-content: start; }
.site-footer__brand img { width: auto; height: 2rem; }
.footer-title {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .12em;
  color: var(--text);
}
.footer-list { display: grid; gap: .25rem; padding: 0; list-style: none; }
.site-footer a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.site-footer address { display: grid; gap: .25rem; }
.site-footer__phone { font-family: var(--font-cond); font-size: 1.5rem; font-weight: 700; letter-spacing: .04em; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}

/* 7 Bausteine */

/* Schraffur-Linie (Motiv aus dem Logo, per CSS, nie als Bild) */
.hatch { height: .5rem; color: var(--brand-gray); background: var(--hatch); }
.hatch--accent { color: var(--accent); }
.hatch--thin { height: .3125rem; }

/* Kleine Überzeile mit Schraffur-Marke */
.eyebrow {
  display: inline-flex;
  align-items: baseline;
  gap: .875rem;
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: .16em;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  flex: none;
  align-self: center;
  width: 2.75rem;
  height: .5rem;
  color: var(--accent);
  background: repeating-linear-gradient(115deg, currentColor 0 .5rem, transparent .5rem .8125rem);
}

/* Buttons: primär gelb, sekundär Linie */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.25rem;
  padding: .75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-cond);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn--secondary { border-color: var(--text); background: transparent; color: var(--text); }
.btn--secondary:hover, .btn--secondary.is-hover { border-color: var(--accent); color: var(--accent); }
.btn.is-focus { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: .875rem; }
.icon { flex: none; width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; }
.btn .icon, .card__link .icon, .text-link .icon { transition: transform .2s var(--ease); }
.btn:hover .icon, .card__link:hover .icon, .text-link:hover .icon { transform: translateX(3px); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  font-family: var(--font-cond);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}

/* Leistungs-Karten: Linie als Rahmen, gelber Balken bei Hover und Fokus */
.cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 40em) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 64em) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.5rem 1.75rem;
  background: var(--bg);
  transition: background-color .25s;
}
@media (min-width: 48em) {
  .card { padding: 2.5rem 2rem 2rem; }
}
.card::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.card:hover, .card:focus-within { background: var(--surface); }
.card:hover::before, .card:focus-within::before { transform: scaleX(1); }
/* Foto oben in der Karte, randlos; wird bei Hover und Fokus größer */
.card__media { position: relative; overflow: hidden; margin: -2rem -1.5rem .5rem; aspect-ratio: 16 / 10; background: var(--surface-2); }
@media (min-width: 48em) {
  .card__media { margin: -2.5rem -2rem .5rem; }
}
.card__media > picture, .media > picture { display: block; width: 100%; height: 100%; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease-out); }
.card:hover .card__media img, .card:focus-within .card__media img,
.js .card.is-visible:hover .card__media img, .js .card.is-visible:focus-within .card__media img { transform: scale(1.07); }
/* Gegenstück zu den Fotos in der Handlungs-Karte: Schraffur und die drei Angaben einer Anfrage */
.card__media--hatch { display: grid; align-content: end; gap: .25rem; padding: 1.5rem; background: var(--surface); }
.card__media--hatch::before {
  content: "";
  position: absolute;
  inset: 0;
  color: rgba(84, 96, 102, .35);
  background: repeating-linear-gradient(115deg, currentColor 0 1.25rem, transparent 1.25rem 2.25rem);
}
.card__media--hatch span {
  position: relative;
  display: flex;
  align-items: center;
  gap: .75rem;
  font-family: var(--font-cond);
  font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem);
  font-weight: 700;
  line-height: 1.1;
  text-transform: uppercase;
}
.card__media--hatch span::before { content: ""; flex: none; width: 1.25rem; height: 4px; background: var(--accent); }
.card__num { font-family: var(--font-cond); font-size: 1rem; font-weight: 600; letter-spacing: .16em; color: var(--text-muted); }
.card__text { color: var(--text-muted); }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  margin-top: auto;
  font-family: var(--font-cond);
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.card__link::after { content: ""; position: absolute; inset: 0; } /* ganze Karte klickbar */
.card--cta { background: var(--surface-2); }
.card--cta::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  height: .5rem;
  color: var(--brand-gray);
  background: var(--hatch);
}
.card--cta .btn-row { margin-top: auto; position: relative; z-index: 1; }

/* Liste mit gelbem Markierungs-Strich */
.list-mark { display: grid; gap: .75rem; padding: 0; list-style: none; }
.list-mark li { position: relative; padding-left: 2rem; max-width: calc(31em + 2rem); }
.list-mark a { display: inline-flex; align-items: center; min-height: 44px; }
.list-mark li:has(> a:first-child)::before { top: calc(22px - 1.5px); }
.list-mark li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .78em;
  width: 1.125rem;
  height: 3px;
  background: var(--accent);
}

/* Nummerierte Punkte („Warum Wolf“) */
.points { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); counter-reset: punkt; }
@media (min-width: 48em) {
  .points { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 72em) {
  .points { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.point { display: grid; gap: .875rem; align-content: start; padding: 2rem 1.5rem 2.25rem 0; background: var(--surface); }
@media (min-width: 48em) {
  .point { padding: 2.25rem 2rem 2.5rem; }
}
.point::before {
  counter-increment: punkt;
  content: "0" counter(punkt);
  font-family: var(--font-cond);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.point p { color: var(--text-muted); }

/* Zahlen-Zeile: nur belegte Zahlen */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); border-top: 1px solid var(--line); }
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .375rem; padding: 1.5rem 1rem 1.5rem 0; border-bottom: 1px solid var(--line); }
.fact__value { font-family: var(--font-cond); font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem); font-weight: 700; line-height: 1; color: var(--text); }
.fact__label { font-size: .9375rem; color: var(--text-muted); }

/* Fotostreifen: randlos, schräge Kanten wie die Streifen im Logo, großes Zitat */
.band {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(24rem, 52vw, 38rem);
  padding-block: calc(var(--slant) + 3rem);
  overflow: hidden;
  background: var(--surface-2);
  clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 calc(100% - var(--slant)));
}
.band__media, .band__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band__media { z-index: -2; }
.band__media img { object-fit: cover; object-position: 60% 40%; }
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 17, 19, .9) 0%, rgba(14, 17, 19, .72) 55%, rgba(14, 17, 19, .45) 100%);
}
.band__inner { display: grid; gap: 1.25rem; }
.band__quote {
  max-width: 22ch;
  font-family: var(--font-cond);
  font-size: clamp(2rem, 1.2rem + 3.6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.band__quote p { max-width: none; }
.band__quote em { font-style: normal; color: var(--accent); }

/* Abschnitt mit schräger Oberkante */
.section--slant { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); padding-top: calc(var(--section-y) + var(--slant)); margin-top: calc(-1 * var(--slant)); position: relative; }

/* Zitat */
.quote {
  position: relative;
  padding: 1.75rem 0 0 0;
  font-family: var(--font-cond);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
}
.quote::before { content: ""; position: absolute; top: 0; left: 0; width: 4rem; height: .375rem; color: var(--accent); background: var(--hatch); }
.quote p { max-width: 32ch; }

/* Bild mit Rahmen und Platzhalter (dunkle Fläche mit Schraffur, nie Stock-Foto) */
.media { position: relative; overflow: hidden; background: var(--surface-2); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 3 / 2; }
.media::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35%;
  height: .5rem;
  color: var(--accent);
  background: var(--hatch);
}
.media-placeholder {
  display: grid;
  place-items: center;
  min-height: 12rem;
  aspect-ratio: 4 / 3;
  padding: 1rem;
  background: var(--surface-2);
  color: var(--text-muted);
  text-align: center;
  font-size: .9375rem;
  position: relative;
}
.media-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  color: rgba(84, 96, 102, .28);
  background: repeating-linear-gradient(115deg, currentColor 0 1rem, transparent 1rem 1.75rem);
}
.media-placeholder > * { position: relative; }

/* Galerie (Raster, Bilder lazy) */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: .5rem; padding: 0; list-style: none; }
.gallery img, .gallery .media-placeholder { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Kontakt-Teaser: dunkle Fläche, Telefon groß */
.contact-teaser { position: relative; background: var(--surface-2); }
.contact-teaser__box { display: grid; gap: 2rem; }
@media (min-width: 64em) {
  .contact-teaser__box { grid-template-columns: 1.2fr 1fr; align-items: end; }
}
.contact-teaser__phone {
  display: inline-block;
  font-family: var(--font-cond);
  font-size: clamp(2.75rem, 1.7rem + 4.6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none;
  color: var(--text);
}
.contact-teaser__phone:hover { color: var(--accent); }
.contact-teaser__details { display: grid; gap: 1.25rem; color: var(--text-muted); }
.contact-teaser__details a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }

/* Formular-Felder: sichtbare Labels, Hinweise, Fehlertexte */
.form { display: grid; gap: 1.5rem; }
.field { display: grid; gap: .5rem; align-content: start; }
.field label, .field .label { font-weight: 600; color: var(--text); }
.field__optional { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 3.125rem;
  padding: .75rem 1rem;
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
.field textarea { min-height: 10rem; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 3rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--text) 50%), linear-gradient(135deg, var(--text) 50%, transparent 50%);
  background-position: calc(100% - 1.375rem) 50%, calc(100% - 1rem) 50%;
  background-size: .375rem .375rem;
  background-repeat: no-repeat;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-muted); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--accent); }
.field__hint { font-size: .9375rem; color: var(--text-muted); }
.field__error { font-size: .9375rem; font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }
.field :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--error); border-width: 2px; } /* schlägt :hover und :focus-visible */
.field--hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-bottom: 1rem; padding: 1rem 1.25rem; border-left: 4px solid var(--accent); background: var(--surface-2); }
.form-status:empty { margin: 0; padding: 0; border: 0; background: none; } /* bleibt als Live-Region im Baum */
.form-status.is-error { border-left-color: var(--error); }

/* Sichtbare Lücke (vor dem Go-live entfernen, tools/check.mjs zählt sie) */
.luecke {
  padding: 0 .25em;
  border: 1px dashed var(--accent);
  background: transparent;
  color: var(--accent);
  font: inherit;
  font-size: .85em;
  white-space: normal;
  overflow-wrap: anywhere;
}
.fact__value .luecke { display: inline-block; font-size: .32em; line-height: 1.3; }

/* 8 Startseite */
/* Mobil: Fotostreifen oben, der ins Dunkel verläuft; Text darunter auf dunklem Grund */
.hero {
  --hero-band: min(100vw, 34rem);
  position: relative;
  isolation: isolate;
  padding-block: calc(var(--hero-band) * .62) 3.5rem;
  overflow: hidden;
  background: var(--bg);
}
.hero__media { position: absolute; top: 0; left: 0; right: 0; height: var(--hero-band); z-index: -2; }
.hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: calc(var(--hero-band) + 2px);
  z-index: -1;
  background: linear-gradient(180deg, rgba(14, 17, 19, .1) 0%, rgba(14, 17, 19, .3) 35%, rgba(14, 17, 19, .88) 66%, var(--bg) 100%);
}
.hero__content { display: grid; gap: 1.25rem; max-width: 44rem; }
.hero h1 { max-width: 14ch; }
.hero__sub { display: block; margin-top: .35em; font-size: .5em; letter-spacing: .04em; line-height: 1.15; color: var(--text); }
.hero__lead { color: var(--text); max-width: 38rem; }
.hero .btn-row { margin-top: .5rem; }
@media (max-width: 47.99em) {
  .hero .btn-row .btn { width: 100%; }
}
.hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.75rem;
  margin-top: .75rem;
  padding: 0;
  list-style: none;
  font-size: .9375rem;
  color: var(--text-muted);
}
.hero__points li { display: inline-flex; align-items: center; gap: .625rem; }
.hero__points li::before { content: ""; width: .875rem; height: 3px; background: var(--accent); }
.hero__hatch { position: absolute; left: 0; right: 0; bottom: 0; }
@media (min-width: 48em) {
  .hero {
    display: flex;
    align-items: center;
    min-height: min(50rem, calc(100vh - var(--header-h)));
    min-height: min(50rem, calc(100svh - var(--header-h)));
    padding-block: 7rem 6rem;
    background: var(--surface);
  }
  .hero__media { bottom: 0; height: auto; }
  .hero__media img { object-position: 70% 50%; }
  .hero__lead { font-size: 1.125em; }
  .hero::before {
    bottom: 0;
    height: auto;
    background:
      linear-gradient(90deg, rgba(14, 17, 19, .95) 0%, rgba(14, 17, 19, .86) 34%, rgba(14, 17, 19, .45) 62%, rgba(14, 17, 19, .1) 100%),
      linear-gradient(0deg, rgba(14, 17, 19, .7) 0%, rgba(14, 17, 19, 0) 30%);
  }
}

/* Tablet: Text nimmt fast die ganze Breite ein, deshalb kräftigerer Verlauf über dem Foto */
@media (min-width: 48em) and (max-width: 63.99em) {
  .hero__content { max-width: 36rem; }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(14, 17, 19, .95) 0%, rgba(14, 17, 19, .9) 55%, rgba(14, 17, 19, .72) 80%, rgba(14, 17, 19, .5) 100%),
      linear-gradient(0deg, rgba(14, 17, 19, .7) 0%, rgba(14, 17, 19, 0) 30%);
  }
}

/* Unterseiten: Kopf mit Foto (kleiner als auf der Startseite) */
.hero--page { --hero-band: min(50vw, 24rem); }
.hero--page h1 { max-width: 20ch; }
@media (min-width: 48em) {
  .hero--page { min-height: min(36rem, calc(100vh - var(--header-h))); min-height: min(36rem, calc(100svh - var(--header-h))); padding-block: 5rem 4.5rem; }
}
/* Unterseiten ohne Foto: dunkle Fläche mit Schraffur */
.hero--plain { padding-block: 3.5rem 3rem; background: var(--surface); }
.hero--plain::before {
  top: 0;
  bottom: 0;
  left: auto;
  width: 55%;
  height: auto;
  color: rgba(84, 96, 102, .2);
  background: repeating-linear-gradient(115deg, currentColor 0 1.5rem, transparent 1.5rem 2.75rem);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 70%);
}
@media (min-width: 48em) {
  .hero--plain { min-height: 0; padding-block: 5.5rem 4.5rem; }
  .hero--plain::before { background: repeating-linear-gradient(115deg, currentColor 0 1.5rem, transparent 1.5rem 2.75rem); }
}

/* Brotkrumen */
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; column-gap: .625rem; margin: 0; padding: 0; list-style: none; font-size: .9375rem; color: var(--text-muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .625rem; }
.breadcrumb li + li::before { content: "/"; color: var(--text-muted); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

/* Hinweis-Box (Normen, Genehmigungen, Erklärungen) */
.info-box { display: grid; gap: .75rem; align-content: start; padding: 1.5rem 1.75rem; border-left: 4px solid var(--accent); background: var(--surface-2); }
.info-box p { color: var(--text-muted); }

/* Angaben als Liste (Impressum, Kontakt) */
.kv { display: grid; gap: .25rem 2rem; }
.kv dt { margin-top: .75rem; color: var(--text-muted); font-size: .9375rem; }
.kv dd { margin: 0; }
@media (min-width: 40em) {
  .kv { grid-template-columns: max-content minmax(0, 1fr); row-gap: .75rem; }
  .kv dt { margin-top: 0; }
}

/* Fließtext für Rechtstexte */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.prose h3 { margin-top: 2rem; font-size: 1.25rem; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: .375rem; }
.prose a { overflow-wrap: anywhere; }

/* Zeitleiste (Firmengeschichte) */
.timeline { position: relative; display: grid; gap: 2.25rem; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: .5rem; top: .75rem; bottom: .75rem; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; display: grid; gap: .5rem; padding-left: 2.75rem; }
.timeline li::before { content: ""; position: absolute; left: 0; top: .35rem; width: 1.125rem; height: 1.125rem; background: var(--accent); transform: skewX(-25deg); }
.timeline__zeit { font-family: var(--font-cond); font-size: 1.125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.timeline p { color: var(--text-muted); }

/* Galerie: Bilder werden bei Hover größer */
.gallery li { overflow: hidden; background: var(--surface-2); }
/* Galerie mit großem ersten Bild: 5 Fotos = 1 groß + 4 klein, 3 Fotos = 1 groß + 2 klein */
.gallery--gross, .gallery--zwei { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--gross > li:first-child { grid-column: 1 / -1; }
@media (min-width: 48em) {
  .gallery--gross { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .gallery--gross.gallery--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery--gross > li:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery--gross > li:first-child img { height: 100%; aspect-ratio: auto; }
}
.gallery img { transition: transform .9s var(--ease-out); }
.gallery li:hover img { transform: scale(1.06); }
.section-sub { margin-top: clamp(3rem, 2rem + 3vw, 5rem); }

.split { display: grid; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
@media (min-width: 64em) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split--media-right > .media { order: 2; }
}

/* 9 Bewegung (auf Wunsch von Thomas kräftiger als in Spezifikation 4, 03.11.2026):
   Einstieg im Hero läuft einmal beim Laden; alles andere nur beim Scrollen; nichts in Schleife.
   Unter prefers-reduced-motion: reduce steht alles sofort still da. */
@keyframes rein-hoch { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes zoom-ruhig { from { transform: scale(1.12); } to { transform: none; } }
@keyframes linie-aus { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  /* Hero: Foto zoomt einmal heran, Inhalte fahren nacheinander ein */
  .hero__media img { animation: zoom-ruhig 2.4s var(--ease-out) both; }
  .hero__content > * { animation: rein-hoch .9s var(--ease-out) both; }
  .hero__content > :nth-child(2) { animation-delay: .12s; }
  .hero__content > :nth-child(3) { animation-delay: .24s; }
  .hero__content > :nth-child(4) { animation-delay: .36s; }
  .hero__content > :nth-child(5) { animation-delay: .48s; }
  .hero__hatch { transform-origin: left; animation: linie-aus 1.4s .4s var(--ease-out) both; }

  /* Scrollen: kräftiger Versatz, gestaffelt in Rastern */
  .js .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out), background-color .25s; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
  .js :is(.cards, .points, .facts, .gallery, .timeline) > .reveal:nth-child(2) { transition-delay: .1s, .1s, 0s; }
  .js :is(.cards, .points, .facts, .gallery, .timeline) > .reveal:nth-child(3) { transition-delay: .2s, .2s, 0s; }
  .js :is(.cards, .points, .facts, .gallery, .timeline) > .reveal:nth-child(4) { transition-delay: .3s, .3s, 0s; }
  .js :is(.cards, .points, .facts, .gallery, .timeline) > .reveal:nth-child(5) { transition-delay: .4s, .4s, 0s; }
  .js :is(.cards, .points, .facts, .gallery, .timeline) > .reveal:nth-child(6) { transition-delay: .5s, .5s, 0s; }

  /* Fotos: Vorhang öffnet von links, Bild zoomt zurück */
  .js .reveal-media { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s .1s var(--ease-out); }
  .js .reveal-media img { transform: scale(1.18); transition: transform 1.6s var(--ease-out); }
  .js .is-visible .reveal-media, .js .reveal-media.is-visible { clip-path: inset(0 0 0 0); }
  .js .is-visible .reveal-media img, .js .reveal-media.is-visible img { transform: none; }

  /* Schraffur-Marken und Linien fahren aus */
  .js .reveal .eyebrow::before, .js .reveal.eyebrow::before, .js .reveal .quote::before, .js .reveal.hatch {
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .9s .25s var(--ease-out);
  }
  .js .reveal.is-visible .eyebrow::before, .js .reveal.is-visible.eyebrow::before, .js .reveal.is-visible .quote::before, .js .reveal.hatch.is-visible { transform: scaleX(1); }

  /* Fotostreifen: Bild zoomt beim Erscheinen zurück */
  .js .band.reveal { opacity: 1; transform: none; }
  .js .band.reveal .band__media img { transform: scale(1.15); transition: transform 2s var(--ease-out); }
  .js .band.reveal.is-visible .band__media img { transform: none; }
  .js .band.reveal .band__inner { opacity: 0; transform: translateY(36px); transition: opacity .9s .2s var(--ease-out), transform .9s .2s var(--ease-out); }
  .js .band.reveal.is-visible .band__inner { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 10 Hilfsklassen */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.muted { color: var(--text-muted); }
.mt-2 { margin-top: 2rem; }
