/* Weinand & Pauken GmbH Dachtechnik
   Farben aus dem Logo: Grün #1DA62B, Anthrazit #1B1C20.
   Grafisches Leitmotiv: die grüne Schräge aus dem Logo (auch an Firmengebäude und Transportern),
   von der alten Seite übernommen: dunkle Anthrazit-Flächen, Dreier-Zeilen mit grünen Punkten.
   Alle Fotos in Farbe (Vorgabe Fabian).
   Schrift: Barlow / Barlow Condensed (lokal eingebunden). */

@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/Barlow-400.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../assets/fonts/Barlow-400i.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/Barlow-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/Barlow-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("../assets/fonts/BarlowCondensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/BarlowCondensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/BarlowCondensed-700.woff2") format("woff2"); }

:root {
  --green: #1da62b;          /* Logo-Grün: Flächen, Balken */
  --green-dark: #137a1f;     /* Text und Buttons auf Hell (Kontrast > 5:1) */
  --green-light: #4cc457;    /* Akzent auf Anthrazit */
  --ink: #1b1c20;            /* Logo-Anthrazit */
  --ink-2: #24262b;
  --ink-3: #3a3d44;
  --text: #2a2c31;
  --muted: #5d6067;
  --paper: #f1f0ec;
  --line: #d9d8d2;
  --white: #fff;
  --font: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --edge: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));   /* Abstand bis Textkante */
  --header-h: 88px;
  --slant: 56px;             /* Schräge wie im Logo */
  --section: clamp(72px, 9vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--text); background: var(--white); overflow-x: hidden; }
[hidden] { display: none !important; }   /* sonst überschreibt z. B. .map__consent { display: flex } das Ausblenden */
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
address { font-style: normal; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.05; text-wrap: balance; }
h2, h3, h4, dd, legend { overflow-wrap: break-word; hyphens: auto; }   /* lange Wörter wie „Verbraucherstreitbeilegung“ auf schmalen Bildschirmen */
.job-page > *, .apply > *, .certs > *, .team > *, .contact > *, .about > *, .training > *, .cols > * { min-width: 0; }
::selection { background: var(--green); color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 500; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { top: 12px; }

/* ---------- Typografie ---------- */
.h1, .title, .hero__title { font-family: var(--font-cond); font-weight: 700; text-transform: uppercase; letter-spacing: -.005em; }
.h1 { font-size: clamp(44px, 6.6vw, 100px); line-height: .92; margin: 0 0 22px; }
.h3 { font-family: var(--font-cond); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); text-transform: uppercase; }
.title { font-size: clamp(36px, 4.4vw, 64px); line-height: .95; margin: 0 0 22px; }
.title::before {     /* grüne Schräge aus dem Logo über jeder Überschrift */
  content: ""; display: block; width: 46px; height: 9px; margin: 0 0 20px 4px;
  background: var(--green); transform: skewX(-32deg);
}
.title--plain { font-size: clamp(30px, 3.2vw, 46px); }
.title--plain::before { display: none; }
.title--light, .on-dark .title { color: #fff; }
.title b, .dots b { color: var(--green); font-weight: 700; padding: 0 .04em; }
.on-dark .title b { color: var(--green-light); }
.intro { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.6; color: var(--muted); max-width: 44em; }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.6; color: var(--ink-3); max-width: 44em; }
.muted { color: var(--muted); }
.note { font-size: 15px; color: var(--muted); border-left: 3px solid var(--green); padding-left: 14px; }
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font-family: var(--font-cond); font-weight: 600; font-size: 16px; letter-spacing: .16em; text-transform: uppercase; color: var(--green-dark);
}
.kicker::before { content: ""; width: 26px; height: 8px; background: currentColor; transform: skewX(-32deg); }
.dots { font-family: var(--font-cond); font-weight: 600; font-size: clamp(17px, 1.6vw, 22px); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 18px; color: var(--ink); }
.dots--light { color: #fff; }
.dots--light b { color: var(--green-light); }

.text-link {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-cond); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.text-link::after {
  content: ""; width: 30px; height: 12px; flex: none;
  background: var(--green); clip-path: polygon(0 42%, 70% 42%, 70% 0, 100% 50%, 70% 100%, 70% 58%, 0 58%);
  transition: transform .2s ease;
}
.text-link:hover { color: var(--green-dark); }
.text-link:hover::after { transform: translateX(6px); }
.text-link--light, .on-dark .text-link { color: #fff; }
.text-link--light:hover, .on-dark .text-link:hover { color: var(--green-light); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.ticks--single { grid-template-columns: 1fr; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 12px; height: 6px; background: var(--green); transform: skewX(-32deg); }
.plain-list { list-style: none; padding: 0; margin: 0 0 1em; }
.plain-list li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.plain-list li:first-child { border-top: 1px solid var(--line); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 30px; line-height: 1.05;
  font-family: var(--font-cond); font-weight: 700; font-size: 18px; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; border: 2px solid transparent; border-radius: 0; cursor: pointer;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--green { background: var(--green-dark); color: #fff; padding-right: 38px; }
.btn--green:hover { background: var(--ink); color: #fff; }
.on-dark .btn--green:hover { background: #fff; color: var(--ink); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; clip-path: none; }
.btn--line:hover { background: var(--ink); color: #fff; }
.on-dark .btn--line { color: #fff; border-color: rgba(255,255,255,.7); }
.on-dark .btn--line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* ---------- Kopfbereich ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 10px 30px rgba(27,28,32,.06); }
.site-header__row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.brand { flex: none; display: block; }
.brand img { height: 54px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link {
  position: relative; display: block; padding: 10px 13px;
  font-family: var(--font-cond); font-weight: 600; font-size: 18px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
}
.nav-link::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 4px; background: var(--green); transform: skewX(-32deg) scaleX(0); transform-origin: left; transition: transform .2s ease; }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: skewX(-32deg) scaleX(1); }
.nav-link:hover { color: var(--ink); }
.nav-sub-toggle { display: none; }
.caret { transition: transform .2s ease; }
.nav-sub {
  position: absolute; top: 100%; left: 0; min-width: 250px; padding: 10px 0;
  background: var(--ink); box-shadow: 0 20px 40px rgba(0,0,0,.18);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-sub::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--green); }
.nav-item--drop:hover .nav-sub, .nav-item--drop:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: block; padding: 9px 22px; color: #fff; text-decoration: none; font-size: 16px; }
.nav-sub a:hover { background: rgba(255,255,255,.07); color: var(--green-light); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 0 10px; padding-left: 20px; border-left: 1px solid var(--line);
  font-family: var(--font-cond); font-weight: 700; font-size: 19px; letter-spacing: .03em; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-phone svg { color: var(--green-dark); }
.nav-phone:hover { color: var(--green-dark); }
.nav-cta { flex: none; min-height: 48px; padding: 10px 30px 10px 22px; font-size: 17px; white-space: nowrap; }
.nav-toggle, .main-nav__contact { display: none; }

/* ---------- Abschnitte ---------- */
.section { padding: var(--section) 0; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--ink); color: rgba(255,255,255,.82); }
.head { margin-bottom: clamp(36px, 5vw, 64px); }
.head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.head--row .intro { margin-bottom: 0; }
.head--row .text-link { flex: none; margin-bottom: 6px; }

/* ---------- Startseite: Hero ---------- */
.hero { --img: 52%; --room: calc(48vw - var(--edge) - 56px); position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; min-height: min(calc(100svh - var(--header-h) - 64px), 860px); background: var(--ink); color: #fff; overflow: hidden; }
/* Foto rechts mit schräger Kante wie das Logo, davor ein grüner Streifen entlang der Schräge */
.hero__bg { position: absolute; top: 0; bottom: 0; right: 0; width: var(--img); z-index: -2; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
.hero::before {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: var(--img); z-index: -3;
  background: var(--green); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); transform: translateX(-18px);
}
.hero__inner { padding-top: 80px; padding-bottom: 80px; }
/* Text bleibt links der Schräge: --room ist der Platz bis zur unteren Bildkante. Der Titel steht weiter oben, dort lässt die Schräge mehr Platz.
   Zwei feste Zeilen, die Schrift richtet sich nach der längeren („Ihr Großprojekt“) */
.hero__title { color: #fff; font-size: clamp(30px, calc((var(--room) + 10vw) / 7.6), 128px); line-height: .88; margin: 0 0 30px; max-width: none !important; }
.hero__title span { display: block; white-space: nowrap; }
.hero__title span + span { color: var(--green-light); }
.hero__inner > * { max-width: var(--room); }
.hero__lead { max-width: min(33em, var(--room)); font-size: clamp(17px, 1.4vw, 20px); line-height: 1.6; color: rgba(255,255,255,.86); }
/* Laufband unter dem Kopfbereich, grün wie die Schräge */

/* ---------- Zahlen ---------- */
.facts { background: var(--ink); color: #fff; }
.facts__list { list-style: none; margin: 0; padding: clamp(36px, 5vw, 60px) 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.facts__list li { padding: 4px 28px 4px 0; }
.facts__list li + li { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.14); }
.facts__list strong { display: block; font-family: var(--font-cond); font-weight: 700; font-size: clamp(42px, 4.6vw, 68px); line-height: 1; color: #fff; }
.facts__list .count { font-variant-numeric: tabular-nums; }
.facts__list small { font-size: .45em; margin-left: 4px; color: var(--green-light); }
.facts__list small.pre { margin: 0 6px 0 0; }
.facts__list span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.66); max-width: 16em; }

/* ---------- Leistungen (Startseite): Liste ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a {
  position: relative; display: grid; grid-template-columns: 72px minmax(0, 5fr) minmax(0, 4fr) 340px; align-items: center; gap: 28px;
  padding: 26px 0; color: var(--text); text-decoration: none; isolation: isolate;
}
.svc-list a::before { content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--paper); transform: scaleY(0); transform-origin: bottom; transition: transform .25s ease; }
.svc-list a:hover::before { transform: scaleY(1); }
.svc-list__no { font-family: var(--font-cond); font-weight: 700; font-size: 20px; color: var(--green-dark); letter-spacing: .06em; }
.svc-list h3 { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: clamp(26px, 2.7vw, 40px); overflow-wrap: break-word; hyphens: auto; line-height: 1; text-transform: uppercase; transition: color .2s ease; }
.svc-list p { margin: 0; color: var(--muted); font-size: 16px; }
.svc-list img {
  width: 340px; aspect-ratio: 16 / 10; object-fit: cover;
  clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
  transition: transform .25s ease;
}
.svc-list a:hover h3 { color: var(--green-dark); }
.svc-list a:hover img { transform: translateX(-10px); }

/* ---------- Meisterbetrieb (dunkler Block wie auf der alten Seite) ---------- */
.master { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ink); color: rgba(255,255,255,.8); }
.master__img { position: relative; min-height: 640px; }
.master__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; clip-path: polygon(0 0, 100% 0, calc(100% - 110px) 100%, 0 100%); }
.master__img figcaption { position: absolute; left: var(--gutter); bottom: 22px; font-size: 14px; color: #fff; background: rgba(27,28,32,.7); padding: 6px 12px; }
.master__body { padding: var(--section) var(--edge) var(--section) clamp(32px, 5vw, 80px); align-self: center; }
.master__body > * { max-width: 36em; }
.master__body { container-type: inline-size; }
.master__body .title { white-space: nowrap; font-size: min(clamp(30px, 3vw, 46px), 8cqi); }   /* „Dachdecker • Meister • Betrieb“ in einer Zeile, ohne Punkt am Zeilenende */
.master__lead { font-size: clamp(18px, 1.5vw, 21px); color: #fff; }

/* ---------- Referenz-Kacheln (Startseite) ---------- */
.ref-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 12px; }
.ref-tiles li:nth-child(1) { grid-row: 1 / 3; }
.ref-tiles li:nth-child(2) { grid-column: 2 / 4; }
.ref-tiles li:nth-child(5) { grid-column: 3 / 5; }
.ref-tile { position: relative; display: block; height: 100%; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.ref-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; opacity: .92; }
.ref-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(20,21,24,.82) 0%, rgba(20,21,24,0) 55%); }
.ref-tile span {
  position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 20px;
  font-family: var(--font-cond); font-weight: 700; font-size: clamp(22px, 2vw, 30px); line-height: 1; text-transform: uppercase;
}
.ref-tile span::before { content: ""; display: block; width: 30px; height: 7px; margin-bottom: 12px; background: var(--green); transform: skewX(-32deg); transition: width .25s ease; }
.ref-tile small { display: block; margin-top: 8px; font-family: var(--font); font-weight: 400; font-size: 14px; text-transform: none; color: rgba(255,255,255,.8); }
.ref-tile:hover { color: #fff; }
.ref-tile:hover img { transform: scale(1.05); opacity: 1; }
.ref-tile:hover span::before { width: 64px; }


/* ---------- Qualifikationen ---------- */
.cert-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.cert-strip a { display: block; color: var(--ink); text-decoration: none; }
.cert-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; background: #fff; padding: 10px; box-shadow: 0 1px 0 var(--line), 0 14px 30px rgba(27,28,32,.08); transition: transform .25s ease; }
.cert-strip span { display: block; margin-top: 14px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.cert-strip a:hover img { transform: translateY(-6px); }

/* ---------- Karriere-Teaser ---------- */
.career-teaser { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: var(--paper); }
.career-teaser__img { position: relative; min-height: 600px; }
.career-teaser__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: polygon(0 0, 100% 0, calc(100% - 110px) 100%, 0 100%); }
.career-teaser__body { padding: var(--section) var(--edge) var(--section) clamp(32px, 4vw, 64px); align-self: center; }
.career-teaser--top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); background: none; }
.jobs { list-style: none; margin: 28px 0; padding: 0; border-top: 2px solid var(--ink); }
.job a { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.job__title { font-family: var(--font-cond); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; text-transform: uppercase; }
.job__meta { grid-column: 1; font-size: 15px; color: var(--muted); }
.job__more { grid-column: 2; grid-row: 1 / 3; align-self: center; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-cond); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--green-dark); }
.job__more::after { content: ""; width: 26px; height: 12px; background: var(--green); clip-path: polygon(0 42%, 70% 42%, 70% 0, 100% 50%, 70% 100%, 70% 58%, 0 58%); transition: transform .2s ease; }
.job a:hover .job__title { color: var(--green-dark); }
.job a:hover .job__more::after { transform: translateX(6px); }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact__list { margin: 30px 0 0; display: grid; border-top: 2px solid var(--ink); }
.contact__list div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact__list dt { font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.contact__list dd { margin: 0; color: var(--ink); }
.contact__list a { color: var(--ink); font-weight: 600; text-decoration: none; }
.contact__list a:hover { color: var(--green-dark); text-decoration: underline; }
.contact-line { background: var(--ink); color: #fff; padding: 34px 0; }
.contact-line p { margin: 0; font-family: var(--font-cond); font-weight: 600; font-size: clamp(20px, 2vw, 26px); }
.contact-line a { color: var(--green-light); }

/* ---------- Seitenkopf Unterseiten ---------- */
.page-hero { --room: calc(46vw - var(--edge) - 56px); position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(440px, 64vh, 680px); background: var(--ink); color: rgba(255,255,255,.86); overflow: hidden; }
.page-hero__grid { position: static; }
.page-hero__img { position: absolute; top: 0; bottom: 0; right: 0; left: 46%; z-index: -2; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero:has(.page-hero__img)::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; left: 46%; z-index: -3; background: var(--green); clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); transform: translateX(-16px); }
.page-hero::after { content: ""; position: absolute; left: 0; bottom: 0; width: min(420px, 60%); height: 14px; background: var(--green); clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.page-hero__text { max-width: min(720px, var(--room)); padding: clamp(64px, 7vw, 104px) 0; }
.page-hero__text p { font-size: clamp(17px, 1.4vw, 20px); max-width: 40em; }
.page-hero .h1 { --fit: 7; color: #fff; font-size: clamp(28px, calc(var(--room) / var(--fit)), 84px); hyphens: manual; overflow-wrap: normal; }
.h1 .zeile { display: block; white-space: nowrap; }
.page-karriere .page-hero .h1, .page-stelle-dachdecker .page-hero .h1, .page-stelle-lagermitarbeiter .page-hero .h1 { --fit: 8.6; }
.page-unternehmen .page-hero .h1 { --fit: 7.6; }
.page-hero a:not(.btn) { color: #fff; }
.page-hero__img--mosaic { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; background: var(--ink); }
.page-hero__img--mosaic img { min-height: 0; }
.page-hero--plain { min-height: 0; }
.page-hero--plain .page-hero__text { padding-top: 96px; }
.page-hero--plain .page-hero__grid::after { content: ""; position: absolute; right: -60px; top: 0; bottom: 0; width: 38%; background: var(--ink-2); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); z-index: -1; }
.page-impressum .page-hero .h1, .page-datenschutz .page-hero .h1 { font-size: clamp(36px, 5.4vw, 76px); }
.page-hero--plain { --room: 100%; }

/* Sprungmarken unter dem Seitenkopf */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { position: relative; display: block; padding: 18px 0; white-space: nowrap; font-family: var(--font-cond); font-weight: 600; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; }
.subnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 4px; background: var(--green); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.subnav a:hover, .subnav a.is-active { color: var(--ink); }
.subnav a.is-active::after { transform: scaleX(1); }

/* ---------- Leistungen (Unterseite) ---------- */
main > .container:has(> .svc) { counter-reset: svc; }
.svc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); padding: clamp(64px, 8vw, 112px) 0; border-bottom: 1px solid var(--line); counter-increment: svc; }
.svc:last-child { border-bottom: 0; }
.svc--flip .svc__media { order: 2; }
.svc__media { position: sticky; top: calc(var(--header-h) + 80px); align-self: start; }
.svc__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: polygon(0 0, calc(100% - var(--slant)) 0, 100% var(--slant), 100% 100%, 0 100%); }
.svc--flip .svc__media img { clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%, 0 var(--slant)); }
.svc__media figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); padding-left: 14px; border-left: 3px solid var(--green); }
.svc .title::before { content: counter(svc, decimal-leading-zero); display: block; width: auto; height: auto; margin: 0 0 14px; background: none; transform: none; font-size: 20px; letter-spacing: .1em; color: var(--green-dark); }
.svc__claim { font-family: var(--font-cond); font-weight: 600; font-size: clamp(20px, 1.8vw, 24px); color: var(--ink-3); margin-top: -6px; }
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
.cols h3 { font-family: var(--font-cond); font-weight: 700; font-size: 24px; text-transform: uppercase; padding-top: 18px; border-top: 2px solid var(--ink); }

/* ---------- Referenzen ---------- */
.filter { list-style: none; margin: 0 0 40px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filter button { min-height: 46px; padding: 8px 20px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-family: var(--font-cond); font-weight: 600; font-size: 16px; letter-spacing: .08em; text-transform: uppercase; }
.filter button:hover { border-color: var(--ink); }
.filter button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 28px; grid-auto-flow: dense; }
.project[hidden] { display: none; }
.project__img { position: relative; margin-bottom: 20px; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink); }
.project__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.project:hover .project__img img { transform: scale(1.04); }
.project__cat { position: absolute; left: 0; top: 18px; z-index: 1; padding: 6px 22px 6px 14px; background: var(--green-dark); color: #fff; font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.project__img--plain { display: flex; align-items: flex-end; padding: 24px; }
.project__img--plain::before { content: ""; position: absolute; right: -10%; top: 0; bottom: 0; width: 55%; background: var(--green); clip-path: polygon(35% 0, 100% 0, 65% 100%, 0 100%); opacity: .9; }
.project__now { position: relative; font-family: var(--font-cond); font-weight: 700; font-size: 30px; line-height: 1; text-transform: uppercase; color: #fff; }
.project h3 { font-family: var(--font-cond); font-weight: 700; font-size: 25px; text-transform: uppercase; margin-bottom: 4px; }
.project__place { font-size: 15px; color: var(--muted); margin-bottom: 14px; }
.project dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; font-size: 15px; border-top: 1px solid var(--line); padding-top: 14px; }
.project dt { font-weight: 600; color: var(--ink); }
.project dd { margin: 0; color: var(--muted); }
.project--wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.project--wide .project__img { margin: 0; aspect-ratio: 4 / 3; }
.project--wide-xl { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }   /* letzte Karte über die ganze Breite, sonst bleibt rechts eine Lücke */
.ref-table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); }
.ref-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 860px; }
.ref-table th { text-align: left; padding: 14px 16px 14px 0; font-family: var(--font-cond); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line); }
.ref-table td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref-table td:first-child { font-weight: 600; color: var(--ink); }
.ref-table tr.project[hidden] { display: none; }
.ref-table tbody tr:hover td { background: #fff; }
.monument { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); padding: 56px 0; border-top: 1px solid var(--line); }
.monument h3 { font-family: var(--font-cond); font-weight: 700; font-size: clamp(28px, 2.6vw, 38px); text-transform: uppercase; margin-bottom: 4px; }
.monument__place { color: var(--green-dark); font-family: var(--font-cond); font-weight: 600; font-size: 18px; letter-spacing: .06em; }
.monument ul:not(.gallery) { padding-left: 0; list-style: none; }
.monument ul:not(.gallery) li { position: relative; padding: 6px 0 6px 26px; }
.monument ul:not(.gallery) li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 12px; height: 6px; background: var(--green); transform: skewX(-32deg); }
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease, opacity .2s ease; }
.gallery button:hover img { transform: scale(1.06); opacity: .9; }

/* ---------- Unternehmen ---------- */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.about__img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; clip-path: polygon(0 0, calc(100% - var(--slant)) 0, 100% var(--slant), 100% 100%, 0 100%); }
.bosses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.boss { display: grid; grid-template-columns: 200px 1fr; gap: 28px; background: #fff; padding: 28px; }
.boss img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.boss h3 { font-family: var(--font-cond); font-weight: 700; font-size: 30px; text-transform: uppercase; margin-bottom: 2px; }
.boss__role { font-size: 15px; color: var(--green-dark); font-weight: 600; }
.cv { list-style: none; margin: 0; padding: 0; }
.cv li { display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.5; }
.cv b { font-family: var(--font-cond); font-weight: 700; font-size: 17px; color: var(--ink); }
/* Zeitstrahl: Aufbau wie eine Tabelle (Jahr links, Text rechts), dazwischen die Linie mit Markierungen in der Schräge des Logos.
   Die grüne Füllung (--fill) setzt main.js beim Scrollen */
.timeline { --x: 230px; --fill: 0%; position: relative; list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.timeline::before, .timeline::after { content: ""; position: absolute; left: var(--x); top: 0; width: 4px; margin-left: -2px; }
.timeline::before { bottom: 0; background: var(--line); }
.timeline::after { height: var(--fill); background: var(--green); }
.timeline li { position: relative; display: grid; grid-template-columns: calc(var(--x) - 44px) minmax(0, 1fr); column-gap: 88px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.timeline li::before { content: ""; position: absolute; left: var(--x); top: 27px; z-index: 1; width: 26px; height: 19px; margin-left: -13px; background: var(--green); clip-path: polygon(32% 0, 100% 0, 68% 100%, 0 100%); }
.timeline__year { margin: 0; font-family: var(--font-cond); font-weight: 700; font-size: clamp(22px, 2vw, 28px); line-height: 1.1; text-transform: uppercase; color: var(--green-dark); white-space: nowrap; }
.timeline h3 { margin: 0 0 4px; font-family: var(--font-cond); font-weight: 700; font-size: 22px; text-transform: uppercase; color: var(--ink); }
.timeline__body p { margin: 0; }
/* Einblenden nur mit JS und ohne „Bewegung reduzieren“ */
.timeline.is-animated li > * { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.timeline.is-animated li.is-in > * { opacity: 1; transform: none; }
.timeline.is-animated li::before { transform: scale(.4); transition: transform .35s ease; }
.timeline.is-animated li.is-in::before { transform: none; }
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 40px 24px; }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; margin-bottom: 16px; }
.member h3 { font-family: var(--font-cond); font-weight: 700; font-size: 23px; text-transform: uppercase; margin: 0 0 2px; }
.member p { margin: 0; font-size: 15px; color: var(--muted); }
.certs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 28px; }
.cert button { display: block; width: 100%; padding: 12px; border: 0; background: #fff; cursor: zoom-in; box-shadow: 0 1px 0 var(--line), 0 14px 30px rgba(27,28,32,.08); transition: transform .25s ease; }
.cert button:hover { transform: translateY(-6px); }
.cert img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: top; }
.cert h3 { font-family: var(--font-cond); font-weight: 700; font-size: 21px; text-transform: uppercase; margin: 18px 0 6px; }
.cert p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---------- Karriere ---------- */
.photo-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
.photo-row img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-row img:first-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 0); }
.training { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.training article { position: relative; display: flex; flex-direction: column; background: var(--paper); padding: 40px 36px 32px; }
.training article > :last-child { margin-top: auto; padding-top: 8px; }   /* Bewerben-Links beider Karten auf einer Höhe */
.training article::before { content: ""; position: absolute; left: 0; top: 0; width: 120px; height: 8px; background: var(--green); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.training h3 { font-family: var(--font-cond); font-weight: 700; font-size: 32px; text-transform: uppercase; margin-bottom: 4px; }
.apply .title { font-size: clamp(32px, 3.2vw, 50px); }
.apply { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.section--dark .title::before { background: var(--green-light); }
.job-page { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.job-page h2 { font-family: var(--font-cond); font-weight: 700; font-size: clamp(28px, 2.6vw, 38px); text-transform: uppercase; margin: 44px 0 18px; }
.job-page h2:first-child { margin-top: 0; }
.job-aside { position: sticky; top: calc(var(--header-h) + 24px); background: var(--ink); color: rgba(255,255,255,.82); padding: 32px; }
.job-aside dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin: 0 0 26px; }
.job-aside dt { font-family: var(--font-cond); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); font-size: 15px; padding-top: 2px; }
.job-aside dd { margin: 0; color: #fff; font-weight: 600; }
.job-aside .btn { width: 100%; }
.job-aside .btn--green:hover { background: #fff; color: var(--ink); }
.job-aside p { margin: 16px 0 0; font-size: 15px; }
.job-aside a:not(.btn) { color: var(--green-light); }

/* ---------- Formulare ---------- */
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; background: #fff; padding: clamp(24px, 4vw, 48px); position: relative; }
.form::before { content: ""; position: absolute; left: 0; top: 0; width: 160px; height: 8px; background: var(--green); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: 15px; color: var(--ink); }
.field small { font-size: 14px; color: var(--muted); }
.req { color: var(--green-dark); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: #fff; border: 0; border-bottom: 2px solid #b9bab4; border-radius: 0; padding: 12px 2px; min-height: 50px;
  transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 120px; border: 1px solid #b9bab4; border-bottom-width: 2px; padding: 12px 14px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231b1c20' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; padding-right: 32px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); }
.field input[type=file] { padding: 10px; min-height: 0; background: var(--paper); border: 1px dashed #b9bab4; }
.field input:user-invalid, .field select:user-invalid, .field textarea:user-invalid { border-color: #b3261e; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--green-dark); }
.form__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form__hint { font-size: 14px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 18px; font-weight: 500; }
.form-status.is-active { display: block; }
.form-status.is-ok { background: #e6f4e7; color: #0f5b18; border-left: 4px solid var(--green); }
.form-status.is-error { background: #fbeaea; color: #8c1d18; border-left: 4px solid #b3261e; }
.form--dark { background: var(--ink-2); }
.form--dark .field label, .form--dark .consent { color: rgba(255,255,255,.88); }
.form--dark .field small, .form--dark .form__hint { color: rgba(255,255,255,.6); }
.form--dark .req { color: var(--green-light); }
.form--dark .consent a { color: var(--green-light); }
.form--dark .field input, .form--dark .field textarea { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.form--dark .field input[type=file] { background: rgba(255,255,255,.06); }
.form--dark .btn--green:hover { background: #fff; color: var(--ink); }

/* Karte mit Einwilligung */
.map { position: relative; aspect-ratio: 16 / 7; background: var(--paper); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; }
.map__consent p { max-width: 460px; margin: 0; font-size: 15px; color: var(--muted); }
.directions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 36px; }
.directions h3 { font-family: var(--font-cond); font-weight: 700; font-size: 22px; text-transform: uppercase; margin: 0 0 6px; padding-top: 16px; border-top: 2px solid var(--ink); }
.directions p { margin: 0; color: var(--muted); font-size: 16px; }

/* Rechtstexte */
.legal > * { max-width: 820px; }
.legal h2 { font-family: var(--font-cond); font-weight: 700; font-size: 28px; text-transform: uppercase; margin: 44px 0 12px; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; }

/* Bildansicht */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; }
.lightbox::backdrop { background: rgba(15,16,18,.92); }
.lightbox img { max-width: 100%; max-height: 82vh; width: auto; margin: 0 auto; }
.lightbox figcaption { color: #fff; text-align: center; padding: 12px 8px 0; font-size: 15px; }
.lightbox__close { position: fixed; top: 16px; right: 16px; width: 48px; height: 48px; border: 0; background: #fff; color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 48px; height: 64px; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 28px; cursor: pointer; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- Fußbereich ---------- */
.site-footer { position: relative; background: var(--ink); color: rgba(255,255,255,.7); font-size: 16px; }
.site-footer::before { content: ""; position: absolute; left: 0; top: 0; width: min(560px, 70%); height: 10px; background: var(--green); clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: clamp(64px, 7vw, 96px) var(--gutter) 56px; }
.site-footer__brand img { height: 54px; width: auto; margin-bottom: 22px; }
.site-footer__brand p { max-width: 22em; }
.site-footer h2 { font-family: var(--font-cond); font-weight: 700; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 0 0 14px; }
.site-footer__h-gap { margin-top: 28px !important; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--green-light); }
.site-footer__social { display: inline-flex; align-items: center; gap: 8px; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 22px; padding-bottom: 26px; font-size: 14px;
  background: linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; }   /* Linie nur so breit wie der Inhalt */
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- Cookie-Banner (blockierendes Modal mit Tabs, Aufbau wie bei bohr.media) ---------- */

/* ---------- Bewerbungs-Funnel ---------- */
.funnel { display: block; }
.funnel__head { display: none; }
.funnel.is-stepped .funnel__head { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.funnel__count { flex: none; font-size: 14px; color: rgba(255,255,255,.7); }
.funnel__count b { color: #fff; }
.funnel__bar { flex: 1; height: 4px; background: rgba(255,255,255,.14); position: relative; }
.funnel__bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--green); transition: width .25s ease; }
.funnel__step { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.funnel.is-stepped .funnel__step { margin-bottom: 0; }
.funnel__step legend { font-family: var(--font-cond); font-weight: 700; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; text-transform: uppercase; color: #fff; padding: 0; margin-bottom: 18px; }
.choices { display: grid; gap: 10px; }
.choice { position: relative; display: flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span {
  flex: 1; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 18px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.04); color: #fff; font-weight: 500;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice span::before { content: ""; flex: none; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.6); border-radius: 50%; }
.choice:hover span { border-color: #fff; background: rgba(255,255,255,.08); }
.choice input:checked + span { border-color: var(--green); background: rgba(29,166,43,.16); }
.choice input:checked + span::before { border-color: var(--green-light); background: var(--green-light); box-shadow: inset 0 0 0 3px var(--ink-2); }
.choice input:focus-visible + span { outline: 3px solid var(--green-light); outline-offset: 2px; }
.funnel__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.funnel__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.funnel__nav [hidden] { display: none; }
.funnel .form-status { margin-top: 18px; }

/* ---------- 404 ---------- */
.notfound { min-height: 56vh; display: flex; align-items: center; }

/* ============ Responsiv ============ */
@media (max-width: 1280px) {
  .nav-phone span { display: none; }
  .nav-phone { margin-left: 10px; padding-left: 16px; }
}

@media (max-width: 1140px) {
  .nav-link { padding: 10px 9px; font-size: 17px; }
  .nav-link::after { left: 9px; right: 9px; }
  .nav-cta { display: none; }
  .svc-list a { grid-template-columns: 56px minmax(0, 1fr) minmax(0, 1fr) 250px; gap: 20px; }
  .svc-list img { width: 250px; }
  .team { gap: 32px 16px; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cert-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .bosses { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .certs { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 8 Zertifikate: 4×2 bzw. 2×4 */
  :root { --header-h: 72px; --slant: 36px; }
  .brand img { height: 44px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; margin-left: auto; height: 46px; padding: 0 14px;
    border: 0; background: var(--ink); color: #fff; cursor: pointer;
    font-family: var(--font-cond); font-weight: 700; font-size: 17px; letter-spacing: .1em; text-transform: uppercase;
  }
  .nav-toggle__bars { position: relative; width: 20px; height: 2px; background: currentColor; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: currentColor; transition: transform .2s ease; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .main-nav {
    position: fixed; left: 0; right: 0; top: var(--nav-top, var(--header-h)); bottom: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 32px;
    background: #fff; overflow-y: auto; border-top: 1px solid var(--line);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .main-nav { visibility: visible; opacity: 1; transform: none; }
  .nav-open { overflow: hidden; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-link { flex: 1; padding: 16px 0; font-size: 26px; font-weight: 700; }
  .nav-link::after { display: none; }
  .nav-link[aria-current="page"] { color: var(--green-dark); }
  .nav-sub-toggle { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
  .nav-sub-toggle[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .nav-sub { position: static; flex-basis: 100%; min-width: 0; padding: 0 0 12px; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; }
  .nav-sub::before { display: none; }
  .nav-item--drop.is-open .nav-sub { display: block; }
  .nav-sub a { color: var(--ink); padding: 9px 0 9px 16px; font-size: 17px; border-left: 3px solid var(--green); margin: 4px 0; }
  .nav-sub a:hover { background: transparent; color: var(--green-dark); }
  .nav-phone { display: none; }
  .nav-cta { display: flex; margin: 24px 0 0; min-height: 56px; font-size: 19px; }
  .main-nav__contact { display: grid; gap: 10px; margin-top: 22px; }
  .main-nav__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; }
  .main-nav__contact svg { color: var(--green-dark); }

  .hero { min-height: 0; justify-content: flex-start; }
  .hero__bg { position: relative; width: 100%; height: min(52svh, 520px); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), 0 100%); }
  .hero__bg img { object-position: 50% 35%; }
  .hero::before { display: none; }
  .hero__inner { padding-top: 28px; padding-bottom: 56px; }
  .hero__inner > * { max-width: none; }
  .hero__title { font-size: clamp(30px, calc((100vw - 2 * var(--gutter)) / 8.4), 84px); }
  .hero__lead { max-width: 36em; }
  .hero__inner { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .svc-list a { grid-template-columns: 44px minmax(0, 1fr) 190px; grid-template-rows: auto auto; gap: 6px 18px; padding: 22px 0; }
  .svc-list__no { grid-row: 1 / 3; align-self: start; padding-top: 6px; }
  .svc-list p { grid-column: 2; }
  .svc-list img { grid-column: 3; grid-row: 1 / 3; width: 190px; }
  .master, .career-teaser { grid-template-columns: 1fr; }
  .master__img, .career-teaser__img { min-height: 0; aspect-ratio: 16 / 10; }
  .master__img img, .career-teaser__img img { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
  .master__body, .career-teaser__body { padding: 56px var(--gutter) 72px; max-width: none; }
  .ref-tiles { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 220px 220px; }
  .ref-tiles li:nth-child(1) { grid-row: auto; grid-column: 1 / 3; }
  .ref-tiles li:nth-child(2), .ref-tiles li:nth-child(5) { grid-column: auto; }
  .ref-tiles li:nth-child(5) { grid-column: 1 / 3; }
  .ref-tiles { grid-template-rows: 340px 220px 220px 220px; }
  .head--row { flex-direction: column; align-items: flex-start; }
  .about, .contact, .apply, .job-page, .career-teaser--top, .monument { grid-template-columns: 1fr; }
  .cert-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cert-strip li:last-child { display: none; }   /* vier statt drei plus zwei */
  .page-hero { min-height: 0; display: block; }
  .page-hero:has(.page-hero__img)::before { display: none; }
  .page-hero__grid { display: flex; flex-direction: column; }
  .page-hero__img { position: relative; inset: auto; order: -1; height: min(46svh, 440px); margin: 0 calc(var(--gutter) * -1); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 40px), 0 100%); }
  .page-hero__text { max-width: none; padding: 26px 0 64px; }
  .page-hero .h1 { font-size: clamp(28px, calc((100vw - 2 * var(--gutter)) / var(--fit)), 64px); }
  .page-hero--plain { min-height: 0; }
  .svc, .svc--flip { grid-template-columns: 1fr; }
  .svc--flip .svc__media { order: 0; }
  .svc__media { position: static; }
  .cols { grid-template-columns: 1fr 1fr; }
  .project--wide { grid-column: span 2; }
  .project--wide-xl { grid-column: span 2; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .job-aside { position: static; }
  .directions { grid-template-columns: 1fr; }
  .photo-row { grid-template-columns: 1fr 1fr; }
  .photo-row img:first-child { grid-column: 1 / 3; }
  .map { aspect-ratio: 4 / 3; }
}

@media (max-width: 640px) {
  .filter { display: grid; grid-template-columns: 1fr 1fr; }   /* sechs Filter gleich breit, 3×2 */
  .filter button { width: 100%; }
  .timeline { --x: 13px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); padding: 20px 0 20px 46px; }
  .timeline li::before { top: 24px; }
  body { font-size: 16px; }
  .brand img { height: 38px; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 0 13px; }
  .facts__list strong { font-size: 40px; }
  .facts__list { grid-template-columns: 1fr; }
  .facts__list li { padding: 18px 0; }
  .facts__list li + li { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .facts__list span { font-size: 14px; }
  .svc-list a { grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; }
  .svc-list h3 { font-size: 24px; }
  .svc-list p { font-size: 15px; }
  .svc-list img { grid-column: 2; grid-row: auto; width: 100%; aspect-ratio: 16 / 9; margin-top: 12px; clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%); }
  .ref-tiles { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 240px; }
  .ref-tiles li:nth-child(n) { grid-column: auto; }
  .cert-strip { grid-template-columns: 1fr 1fr; }
  .cert-strip li:last-child { display: none; }
  .projects, .team, .certs, .training, .cols { grid-template-columns: 1fr; }
  .team { grid-template-columns: 1fr 1fr; gap: 28px 14px; }
  .member h3 { font-size: 19px; }
  .member p { font-size: 14px; }
  .certs { grid-template-columns: 1fr 1fr; }
  .cert p { display: none; }
  .project--wide { grid-column: auto; grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .form { grid-template-columns: 1fr; padding: 28px 18px 22px; }
  .ticks { grid-template-columns: 1fr; }
  .boss { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .boss img { width: 160px; }
  .training article { padding: 34px 22px 24px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .contact__list div { grid-template-columns: 1fr; gap: 2px; }
  .funnel__fields { grid-template-columns: 1fr; }
  .funnel__nav .btn { flex: 1 1 auto; }
}

@media (min-width: 641px) {
  .choices { grid-template-columns: 1fr 1fr; }
}

@media print {
  .site-header, .priv-modal, .site-footer, .subnav { display: none !important; }
}

/* ---------- Datenschutz-Banner (Übersicht + Einstellungen, Aufbau wie bei bohr.media, Farben nach Weinand-&-Pauken-CI: Anthrazit-Verlauf, Logo-Grün, Schrägen wie im Logo) ----------
   Klassen bewusst ohne „cookie“: Werbeblocker blenden solche Container sonst aus.
   „Alles akzeptieren“ und „Ablehnen“ sind gleich gestaltet, keiner von beiden ist hervorgehoben. */
.priv-modal {
  --pv-bg: linear-gradient(160deg, #24262b 0%, #1b1c20 55%);
  --pv-foot: #16171a;
  --pv-line: rgba(255,255,255,0.16);
  --pv-accent: var(--green);
  --pv-accent-hover: var(--green-light);
  --pv-accent-text: var(--ink);
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.priv-modal.is-visible { display: flex; }
.priv-modal__backdrop { position: absolute; inset: 0; background: rgba(14,15,18,0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.priv-modal__card {
  position: relative; display: flex; flex-direction: column;
  width: min(600px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden;
  background: var(--pv-bg); color: #fff; border: 1px solid var(--pv-line);
  border-radius: 0; box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  animation: priv-ein .25s ease;
}
@keyframes priv-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.priv-modal__card:focus { outline: none; }
.priv-head { flex: none; margin: 0 32px; padding: 26px 0 18px; border-bottom: 1px solid var(--pv-line); text-align: center; }
.priv-h { margin: 0; color: #fff; font-size: 1.35rem; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
  font-family: var(--font-cond); text-transform: uppercase; letter-spacing: .02em; font-size: 1.6rem; }
.priv-panel { display: none; }
.priv-panel.is-active { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 20px 32px 24px; }
.priv-scroll { min-height: 0; overflow-y: auto; padding-right: 8px; font-size: .9rem; line-height: 1.6; color: rgba(255,255,255,0.88); }
.priv-scroll::-webkit-scrollbar { width: 8px; }
.priv-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.5); border-radius: 4px; }
.priv-scroll p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
.priv-scroll p + p { margin-top: .8em; }
.priv-scroll a { color: #fff; text-decoration: underline; }
.priv-scroll a:hover { color: var(--green-light); }
.priv-cat {
  position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  margin: 0; padding: 14px 0; border-bottom: 1px solid var(--pv-line);
  font-size: .82rem; font-weight: 400; line-height: 1.55; color: rgba(255,255,255,0.72); cursor: pointer;
}
.priv-cat:first-child { padding-top: 0; }
.priv-cat b { display: block; margin-bottom: 2px; color: #fff; font-size: .95rem; font-weight: 600; }
.priv-cat input { position: absolute; opacity: 0; width: 0; height: 0; }
.priv-cat i { position: relative; flex: none; width: 46px; height: 26px; margin-top: 2px; border-radius: 26px; background: #0e0f11; border: 1px solid var(--pv-line); transition: background .15s ease, border-color .15s ease; }
.priv-cat i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
.priv-cat input:checked + i { background: var(--pv-accent); border-color: var(--pv-accent); }
.priv-cat input:checked + i::after { transform: translateX(20px); }
.priv-cat input:disabled + i { opacity: .6; }
.priv-cat input:disabled { cursor: default; }
.priv-cat input:focus-visible + i { outline: 2px solid #fff; outline-offset: 3px; }
.priv-actions { flex: none; display: grid; gap: 12px; margin-top: 22px; }
.priv-btn {
  min-height: 0; border: none; border-radius: 0; background: var(--pv-accent); color: var(--pv-accent-text); cursor: pointer;
  font: inherit; font-size: .95rem; font-weight: 700; line-height: 1.3; padding: 14px 20px; transition: background .15s ease;
}
.priv-btn:hover { background: var(--pv-accent-hover); }
.priv-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
/* „Individuelle Einstellungen“ schlichter: Akzeptieren und Ablehnen bleiben gleich auffällig */
.priv-btn--rahmen { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.7); }
.priv-btn--rahmen:hover { background: rgba(255,255,255,0.08); }
.priv-foot { flex: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 36px; margin: 0; padding: 16px 24px; background: var(--pv-foot); font-size: .85rem; line-height: 1.4; }
.priv-foot a, .priv-foot button { color: rgba(255,255,255,0.75); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; text-decoration: none; }
.priv-foot a:hover, .priv-foot button:hover { color: #fff; text-decoration: underline; }
.priv-foot a:focus-visible, .priv-foot button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.priv-foot [hidden] { display: none; }
/* Handy: Fenster als Blatt von unten, alles passt in den Bildschirm */
@media (max-width: 640px) {
  .priv-modal { align-items: flex-end; padding: 0; }
  .priv-modal__card { width: 100%; max-height: 92vh; max-height: 92dvh; border-radius: 0; border-bottom: 0; }
  .priv-head { margin: 0 18px; padding: 18px 0 14px; }
  .priv-h { font-size: 1.15rem; }
  .priv-panel.is-active { padding: 14px 18px 16px; }
  .priv-scroll { font-size: .86rem; line-height: 1.55; }
  .priv-actions { gap: 8px; margin-top: 14px; }
  .priv-btn { padding: 13px 16px; font-size: .92rem; }
  .priv-foot { gap: 6px 24px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); font-size: .8rem; }
}
/* Eigener Look von Weinand & Pauken: grüner Balken mit Schräge oben links, Schrift und Schrägen wie bei .btn */
.priv-modal__card::before { content: ""; position: absolute; left: 0; top: 0; width: 180px; height: 6px; background: var(--green); clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.priv-btn { font-family: var(--font-cond); font-size: 1.05rem; letter-spacing: .06em; text-transform: uppercase; clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%); }
.priv-btn--rahmen { clip-path: none; }
@media (max-width: 640px) {
  .priv-h { font-size: 1.35rem; }
  .priv-btn { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .priv-modal__card { animation: none; } }
