/*
   ══════════════════════════════════════════════════════════════════════════
      ██  C O P Y R I G H T  ██
   ──────────────────────────────────────────────────────────────────────────
      COLOREA GbR · Nadine und Florian Munzert
      Im Ziegelfeld 22 · 27432 Bremervörde
      info@colorea.de · www.colorea.de
   ──────────────────────────────────────────────────────────────────────────
      Projekt      Tobias Holst Dachdeckermeisterbetrieb GmbH
      Entwicklung  Nadine Munzert, Florian Munzert
      Datei        site.css
   ──────────────────────────────────────────────────────────────────────────
      Gestaltung und Quelltext sind urheberrechtlich geschützt.
      Vervielfältigung oder Weitergabe nur mit schriftlicher Zustimmung.
   ══════════════════════════════════════════════════════════════════════════
*/

:root {
  /* Marke — abgeleitet aus Logo und Visitenkarte */
  --red:        #E1251B;
  --red-dark:   #B4180F;
  --red-soft:   rgba(225, 37, 27, .12);

  --ink:        #1A1A1A;
  --ink-soft:   #242424;
  --slate:      #3C3C3E;
  --zinc:       #6B6B6E;
  --zinc-light: #A2A2A5;
  --grey:       #D9D9D9;
  --paper:      #F4F4F3;
  --paper-pure: #FFFFFF;

  /* Abgeleitet */
  --line:       rgba(26, 26, 26, .14);
  --line-soft:  rgba(26, 26, 26, .08);
  --line-dark:  rgba(255, 255, 255, .14);
  --shadow-s:   0 1px 2px rgba(26,26,26,.05), 0 4px 14px rgba(26,26,26,.05);
  --shadow-m:   0 2px 6px rgba(26,26,26,.06), 0 18px 50px rgba(26,26,26,.11);
  --shadow-l:   0 30px 90px rgba(26,26,26,.24);

  /* Schrift */
  --font-display: "Archivo", "ArchivoFallback", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body:    "SourceSans", "SourceSansFallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;

  /* Maße */
  --wrap:        1280px;
  --wrap-narrow: 820px;
  --gutter:      clamp(1.25rem, 4vw, 3.5rem);
  --sect:        clamp(3.5rem, 6.5vw, 6.5rem);
  --radius:      3px;
  --radius-l:    6px;
  --header-h:    98px;

  /* Bewegung */
  --ease:      cubic-bezier(.22, .61, .36, 1);
  --ease-out:  cubic-bezier(.16, 1, .3, 1);
}

/* --------------------------------------------------------------
   2. Schriften
   Die @font-face-Regeln erzeugt includes/icons.php aus den
   Dateien, die tatsaechlich unter /assets/fonts/ liegen.
   Dateinamen von Google Fonts koennen unveraendert bleiben.
-------------------------------------------------------------- */

/* --------------------------------------------------------------
   3. Basis
-------------------------------------------------------------- */

/* Masslich angeglichene Systemschrift als Rückfall. */
@font-face {
  font-family: "ArchivoFallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 101%;
  ascent-override: 92%;
  descent-override: 24%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "SourceSansFallback";
  src: local("Arial"), local("Helvetica Neue"), local("Liberation Sans");
  size-adjust: 96%;
  ascent-override: 98%;
  descent-override: 28%;
  line-gap-override: 0%;
}
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 5.4rem); letter-spacing: -.038em; line-height: .98; }
h2 { font-size: clamp(1.9rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.6rem); letter-spacing: -.02em; }
h4 { font-size: 1.0625rem; letter-spacing: -.01em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
strong, b { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: .9rem 1.4rem;
}
.skip:focus { left: 1rem; top: 1rem; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------
   4. Layout
-------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--sect); position: relative; }
.section--tight { padding-block: clamp(3rem, 5vw, 5rem); }
.section--dark { background: var(--ink); color: var(--paper); }
.section--slate { background: var(--ink-soft); color: var(--paper); }
.section--pure { background: var(--paper-pure); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--slate h1, .section--slate h2, .section--slate h3 { color: #fff; }

/* Markenkante — der rote Balken aus dem Logo */
.seam { display: none; }

.bar { position: relative; padding-left: 1.4rem; }
.bar::before {
  content: ""; position: absolute; left: 0; top: .15em; bottom: .15em;
  width: 5px; background: var(--red);
}

/* Dachlinie als Trenner */
.roofline {
  display: block; width: 100%; height: 14px; color: var(--red);
  margin-bottom: 1.5rem;
}

/* --------------------------------------------------------------
   5. Typografie-Bausteine
-------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-family: var(--font-display);
  font-size: .72rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: ""; width: 4px; height: 15px; background: var(--red); flex: none;
}
.section--dark .eyebrow, .section--slate .eyebrow { color: var(--red); }

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.6;
  color: var(--zinc);
  max-width: 62ch;
}
.section--dark .lead, .section--slate .lead { color: var(--zinc-light); }

.head { max-width: 66ch; margin-bottom: clamp(2rem, 3vw, 3rem); }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow::before { display: none; }

.rule {
  height: 1px; background: var(--line); border: 0; margin: 0;
}
.section--dark .rule, .section--slate .rule { background: var(--line-dark); }

/* --------------------------------------------------------------
   6. Buttons
-------------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  padding: 1.05rem 1.9rem;
  font-family: var(--font-display);
  font-size: .875rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--red);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .45s var(--ease-out);
}
.btn:hover::after, .btn:focus-visible::after { transform: scaleX(1); }
.btn:not(:hover)::after { transform-origin: right center; }
.btn:hover { border-color: var(--red); box-shadow: 0 12px 30px var(--red-soft); }
.btn:active { transform: translateY(1px); }

.btn--red { --btn-bg: var(--red); --btn-fg: #fff; }
.btn--red::after { background: var(--ink); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --btn-fg: #fff; }

.btn--light { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.3); }
.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--white::after { background: var(--red); }
.btn--white:hover { --btn-fg: #fff; }

.btn--sm { padding: .7rem 1.2rem; font-size: .78rem; }
.btn--block { width: 100%; }

.btn .ico { width: 16px; height: 16px; flex: none; }

.btns { display: flex; flex-wrap: wrap; gap: .85rem; }

/* Textlink mit Unterstreichung */
.tlink {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: .84rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 3px;
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0 1.5px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease-out), color .3s;
}
.tlink:hover { background-size: 100% 1.5px; color: var(--red); }
.tlink .ico { transition: transform .35s var(--ease); }
.tlink:hover .ico { transform: translateX(4px); }
.section--dark .tlink, .section--slate .tlink { color: #fff; }

/* --------------------------------------------------------------
   7. Kopfbereich
-------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 200;
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
  transition: border-color .35s, box-shadow .35s;
}
.header__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; height: var(--header-h);
}
.header.is-stuck { box-shadow: 0 1px 0 var(--line), 0 10px 40px rgba(26, 26, 26, .09); }

/* Logo auf gleichem Weiss wie der Kopfbereich */
.brand__mark,
.footer__brand .logoplate,
.drawer__top .logoplate { background: #fff; }

.brand {
  display: inline-flex; align-items: center; gap: .85rem;
  flex: none; padding-block: 4px;
}
.brand__mark { height: 64px; width: auto; display: block; }
.brand__fallback {
  display: flex; flex-direction: column; line-height: 1;
  font-family: var(--font-display);
}
.brand__fallback b { font-size: 1.25rem; letter-spacing: -.03em; }
.brand__fallback span { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; color: var(--zinc); margin-top: 4px; }

.nav { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__link {
  position: relative;
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .7rem .95rem;
  font-family: var(--font-display);
  font-size: .82rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink);
  transition: color .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: .35rem;
  height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.nav__link:hover::after, .nav__item.is-open > .nav__link::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav__link[aria-current="page"] { color: var(--red); }
.nav__link .chev { width: 11px; height: 11px; transition: transform .3s; }
.nav__item.is-open .chev { transform: rotate(180deg); }

.header__actions { display: flex; align-items: center; gap: .85rem; flex: none; }
.header__social { display: inline-flex; align-items: center; gap: .35rem; }
.header__social a {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--ink);
  transition: color .25s var(--ease), border-color .25s, background .25s;
}
.header__social a:hover {
  color: #fff; background: var(--red); border-color: var(--red);
}
.header__social .ico { width: 18px; height: 18px; }
.header__social a:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* Mega-Menü — Panel über die volle Breite */
.nav__item { position: static; }

.mega {
  position: absolute; top: 100%; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(26, 26, 26,.35);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .4s var(--ease-out), visibility .3s;
  overflow: hidden;
}
.nav__item.is-open .mega { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.mega::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 79px, var(--line-soft) 79px 80px);
  opacity: .8;
}
.mega__in {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 340px;
  gap: clamp(1.5rem, 2.5vw, 3rem);
  padding-block: clamp(2rem, 3vw, 2.75rem) clamp(2rem, 3vw, 3rem);
}
.mega__title {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: .66rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--zinc);
  padding-bottom: .8rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--line);
}
.mega__title::after { content: ""; flex: 1; height: 1px; background: var(--line-soft); }
.mega__list { list-style: none; margin: 0; padding: 0; }
.mega__list li { margin: 0; }
.mega__list a {
  position: relative;
  display: flex; align-items: center; gap: .6rem;
  padding: .62rem 0 .62rem 0;
  font-family: var(--font-display);
  font-size: .96rem; font-weight: 600; letter-spacing: -.015em;
  transition: color .25s var(--ease), padding-left .35s var(--ease);
}
.mega__list a::before {
  content: ""; position: absolute; left: 0; top: 50%;
  width: 14px; height: 1.5px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.mega__list a:hover, .mega__list a:focus-visible { color: var(--red); padding-left: 24px; }
.mega__list a:hover::before, .mega__list a:focus-visible::before { transform: scaleX(1); }

/* Vorschau */
.mega__preview {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--ink);
  min-height: 300px;
  display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate;
}
.mega__figs { position: absolute; inset: 0; z-index: -2; }
.mega__figs img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.05);
  transition: opacity .55s var(--ease), transform 1.2s var(--ease-out);
}
.mega__figs img.is-active { opacity: 1; transform: scale(1); }
.mega__preview::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26, 26, 26,.15) 0%, rgba(26, 26, 26,.55) 45%, rgba(26, 26, 26,.92) 100%);
}
.mega__cap { padding: 1.5rem; color: #fff; }
.mega__cap .k {
  display: block;
  font-family: var(--font-display); font-size: .64rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase; color: var(--red);
  margin-bottom: .5rem;
}
.mega__cap b {
  display: block; font-family: var(--font-display);
  font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.15; color: #fff;
  margin-bottom: .4rem;
}
.mega__cap p { font-size: .85rem; color: rgba(255,255,255,.72); margin: 0 0 1.1rem; }

.mega__foot {
  position: relative;
  grid-column: 1 / -1;
  display: flex; justify-content: flex-end;
  padding-top: 1.5rem; margin-top: .5rem;
  border-top: 1px solid var(--line);
}

.tag-new {
  font-family: var(--font-display); font-size: .6rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--red); color: #fff;
  padding: .15rem .4rem; border-radius: 2px; line-height: 1.4;
}

/* Menütaste mobil */
.burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center; justify-content: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; padding: 0;
}
.burger span {
  display: block; width: 20px; height: 1.5px; background: var(--ink);
  position: relative; transition: background .2s;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink);
  transition: transform .35s var(--ease), top .25s;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger.is-active span { background: transparent; }
.burger.is-active span::before { top: 0; transform: rotate(45deg); }
.burger.is-active span::after  { top: 0; transform: rotate(-45deg); }

/* Vollbild-Menü */
.drawer {
  position: fixed; inset: 0; z-index: 300;
  background: var(--ink); color: #fff;
  display: flex; flex-direction: column;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease-out), opacity .3s var(--ease), visibility .7s;
}
.drawer.is-open { visibility: visible; opacity: 1; clip-path: inset(0 0 0 0); }
.drawer::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, transparent 0 79px, rgba(255,255,255,.06) 79px 80px);
}
.drawer > * { position: relative; }

.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter); border-bottom: 1px solid var(--line-dark);
  flex: none;
}
.drawer__top .logoplate {
  background: #fff; padding: .6rem .8rem; border-radius: var(--radius);
  display: inline-block;
}
.drawer__top .logoplate img { height: 44px; width: auto; display: block; }
.drawer__close {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: #fff; cursor: pointer;
  transition: background .3s, border-color .3s, transform .3s var(--ease);
}
.drawer__close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }

.drawer__body { padding: clamp(1.5rem, 4vw, 3rem) var(--gutter) 2rem; flex: 1; }

/* Zeilen laufen gestaffelt ein */
.drawer__row {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}
.drawer.is-open .drawer__row { opacity: 1; transform: none; }
.drawer.is-open .drawer__row:nth-child(1) { transition-delay: .12s; }
.drawer.is-open .drawer__row:nth-child(2) { transition-delay: .18s; }
.drawer.is-open .drawer__row:nth-child(3) { transition-delay: .24s; }
.drawer.is-open .drawer__row:nth-child(4) { transition-delay: .30s; }
.drawer.is-open .drawer__row:nth-child(5) { transition-delay: .36s; }
.drawer.is-open .drawer__row:nth-child(6) { transition-delay: .42s; }

.drawer__link {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: 100%; padding: 1.15rem 0;
  border: 0; border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 7vw, 2.4rem); font-weight: 700;
  letter-spacing: -.035em; line-height: 1.1; color: #fff;
  background: none; text-align: left; cursor: pointer;
  transition: color .3s var(--ease), padding-left .45s var(--ease-out);
}
.drawer__link .n {
  font-size: .62rem; font-weight: 700; letter-spacing: .18em;
  color: var(--red); align-self: flex-start; margin-top: .85rem;
  flex: none; width: 34px;
}
.drawer__link .t { flex: 1; }
.drawer__link .chev { width: 20px; height: 20px; color: var(--red); flex: none; transition: transform .35s var(--ease); }
.drawer__link:hover { color: var(--red); }
.drawer__link:hover .chev { transform: translateX(5px); }
.drawer__link[aria-expanded="true"] .chev { transform: rotate(180deg); }

.drawer__sub {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.drawer__sub.is-open { grid-template-rows: 1fr; }
.drawer__sub > div { overflow: hidden; }
.drawer__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem; padding: 1rem 0 1.5rem 34px;
}
.drawer__grid a {
  display: flex; align-items: center; gap: .55rem;
  padding: .5rem 0; color: var(--zinc-light); font-size: 1rem;
  transition: color .25s, transform .3s var(--ease);
}
.drawer__grid a::before { content: ""; width: 10px; height: 1px; background: var(--red); flex: none; }
.drawer__grid a:hover { color: #fff; transform: translateX(4px); }
.drawer__grid a.is-all { color: #fff; font-weight: 700; font-family: var(--font-display); }

.drawer__foot {
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter) calc(2.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: center;
}
.drawer__meta { color: var(--zinc-light); font-size: .95rem; }
.drawer__meta a { display: block; padding: .18rem 0; }
.drawer__meta a:hover { color: var(--red); }
.drawer__meta .big {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  letter-spacing: -.02em; color: #fff;
}
.drawer__social { display: flex; gap: .5rem; }
.drawer__social a {
  width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: background .3s, border-color .3s;
}
.drawer__social a:hover { background: var(--red); border-color: var(--red); }
.drawer__social svg { width: 18px; height: 18px; }

/* Abdunklung hinter dem Mega-Menü */
.mega-scrim {
  position: fixed; inset: 0; z-index: 190;
  background: rgba(26, 26, 26, .38);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.mega-scrim.is-on { opacity: 1; visibility: visible; }

/* Fortschrittsbalken */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; z-index: 400;
  background: var(--red); width: 0;
  transition: width .1s linear;
}

/* --------------------------------------------------------------
   8. Startbereich
-------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex; align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1.5%, 0); }
}
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(26, 26, 26,.72) 0%, rgba(26, 26, 26,.28) 38%, rgba(26, 26, 26,.9) 100%),
    linear-gradient(90deg, rgba(26, 26, 26,.62) 0%, transparent 62%);
}
.hero__in { padding-block: clamp(4.5rem, 9vw, 7rem) clamp(2.5rem, 5vw, 4rem); color: #fff; width: 100%; }
.hero__title {
  color: #fff; max-width: none; margin-bottom: 1.1rem;
  font-size: clamp(1.75rem, 4.6vw, 4.1rem);
}
.hero__title .ln { max-width: 100%; }

.hero__claim {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.1vw, 1.9rem);
  font-weight: 700; letter-spacing: -.025em; line-height: 1.15;
  color: var(--red);
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  position: relative;
  opacity: 0; animation: fadeUp .9s var(--ease-out) .28s forwards;
}
.hero__claim::before {
  content: ""; position: absolute; left: 0; top: .1em; bottom: .1em;
  width: 5px; background: var(--red);
}
.hero__title .ln { display: block; overflow: hidden; }
.hero__title .ln > span {
  display: block;
  white-space: nowrap;
  transform: translateY(105%);
  animation: lineUp .95s var(--ease-out) forwards;
}
.no-js .hero__title .ln > span,
.no-js .hero__sub,
.no-js .hero__cta,
.no-js .hero__claim,
.no-js .hero__eyebrow { transform: none; opacity: 1; animation: none; }
.hero__title .ln:nth-child(2) > span { animation-delay: .1s; }
.hero__title .ln:nth-child(3) > span { animation-delay: .2s; }
.hero__title .ln > span { padding-bottom: .06em; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero__sub {
  max-width: 50ch; color: rgba(255,255,255,.8);
  font-size: clamp(.98rem, 1.2vw, 1.12rem); line-height: 1.6;
  margin-bottom: 1.9rem;
  opacity: 0; animation: fadeUp .9s var(--ease-out) .38s forwards;
}
.hero__cta { opacity: 0; animation: fadeUp .9s var(--ease-out) .5s forwards; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.hero__eyebrow {
  color: #fff; opacity: 0; animation: fadeUp .8s var(--ease-out) .15s forwards;
}
.hero__eyebrow::before { background: var(--red); }

/* Leiste unter dem Startbild */
.hero-strip {
  border-top: 1px solid rgba(255,255,255,.14);
  background: rgba(26, 26, 26,.55);
  backdrop-filter: blur(10px);
}
.hero-strip__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.hero-strip__item {
  padding: 1.6rem 1.5rem;
  border-left: 1px solid rgba(255,255,255,.12);
  color: #fff;
  display: flex; flex-direction: column; gap: .3rem;
  transition: background .35s var(--ease);
}
.hero-strip__item:first-child { border-left: 0; }
.hero-strip__item:hover { background: rgba(176,113,60,.18); }
.hero-strip__item b {
  font-family: var(--font-display); font-size: 1rem; letter-spacing: -.01em;
  display: flex; align-items: center; gap: .5rem;
}
.hero-strip__item b .ico { width: 16px; height: 16px; color: var(--red); }
.hero-strip__item span { font-size: .82rem; color: rgba(255,255,255,.6); }

/* Kopfbereich Unterseiten */
.phero {
  position: relative; background: var(--ink); color: #fff;
  padding-block: clamp(5rem, 10vw, 8rem) clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden; isolation: isolate;
}
.phero__media { position: absolute; inset: 0; z-index: -2; }
.phero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.phero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(26, 26, 26,.86) 0%, rgba(26, 26, 26,.7) 60%, rgba(26, 26, 26,.94) 100%);
}
.phero h1 { color: #fff; max-width: 20ch; margin-bottom: 1.1rem; }
.phero .lead { color: rgba(255,255,255,.78); }
.phero--plain { background: var(--ink); }

.crumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .78rem; color: var(--zinc-light);
  margin-bottom: 1.75rem;
  list-style: none; padding: 0;
}
.crumbs li { margin: 0; display: inline-flex; align-items: center; gap: .5rem; }
.crumbs li + li::before { content: "/"; color: rgba(255,255,255,.3); }
.crumbs a:hover { color: var(--red); }
.crumbs [aria-current] { color: #fff; }

/* --------------------------------------------------------------
   9. Raster
-------------------------------------------------------------- */
.grid { display: grid; gap: clamp(1.25rem, 2.2vw, 2rem); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--5 .svc__body { padding: 1.25rem 1.25rem 1.4rem; }
.grid--5 .svc__body h3 { font-size: 1.05rem; }
.grid--5 .svc__body p { font-size: .88rem; margin-bottom: 1.1rem; }
.grid--5 .svc__media { aspect-ratio: 4 / 3; }

.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
}
.split--wide { grid-template-columns: 1.15fr 1fr; }
.split--flip .split__media { order: 2; }

.split__media { position: relative; }
.split__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-l);
}
.split__media--tall img { aspect-ratio: 3 / 4; }
.split__badge {
  position: absolute; left: -1.5rem; bottom: -1.5rem;
  background: var(--red); color: #fff;
  padding: 1.4rem 1.6rem; border-radius: var(--radius);
  max-width: 230px; box-shadow: var(--shadow-m);
}
.split__badge b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; letter-spacing: -.04em; }
.split__badge span { font-size: .8rem; opacity: .88; }

/* --------------------------------------------------------------
   10. Leistungskarten
-------------------------------------------------------------- */
.svc {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper-pure);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .35s;
}
.svc:hover { transform: translateY(-6px); box-shadow: var(--shadow-m); border-color: transparent; }
.svc__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--slate); }
.svc__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s var(--ease-out), filter .5s;
}
.svc:hover .svc__media img { transform: scale(1.07); }
.svc__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(26, 26, 26,.55) 100%);
}
.svc__num {
  position: absolute; top: 1rem; right: 1.15rem; z-index: 2;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; color: rgba(255,255,255,.65);
}
.svc__body { padding: 1.6rem 1.6rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.svc__body h3 { margin-bottom: .55rem; }
.svc__body p { color: var(--zinc); font-size: .95rem; margin-bottom: 1.4rem; }
.svc__body .tlink { margin-top: auto; align-self: flex-start; }
.svc__seam {
  position: absolute; left: 0; top: 0; bottom: 0; width: 5px; z-index: 3;
  background: var(--red);
  transform: scaleY(0); transform-origin: top;
  transition: transform .5s var(--ease-out);
}
.svc:hover .svc__seam { transform: scaleY(1); }
.svc .tag-new { position: absolute; top: 1rem; left: 1.15rem; z-index: 2; }

/* Kompakte Kachelliste */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.tile {
  background: var(--paper-pure); padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: background .35s var(--ease);
  position: relative;
}
.tile:hover { background: var(--ink); color: #fff; }
.tile:hover h3 { color: #fff; }
.tile:hover p { color: var(--zinc-light); }
.tile__ico { width: 26px; height: 26px; color: var(--red); margin-bottom: .5rem; }
.tile h3 { font-size: 1.08rem; margin: 0; transition: color .3s; }
.tile p { font-size: .9rem; color: var(--zinc); margin: 0; transition: color .3s; }

/* --------------------------------------------------------------
   11. Kennzahlen
-------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat {
  padding: clamp(2rem, 3.5vw, 3rem) clamp(1.25rem, 2.5vw, 2.25rem);
  border-left: 1px solid var(--line-dark);
}
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b {
  display: block; font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.2rem); font-weight: 700;
  letter-spacing: -.045em; line-height: 1; color: #fff;
  margin-bottom: .6rem;
}
.stat b .unit { color: var(--red); }
.stat span { color: var(--zinc-light); font-size: .92rem; }

/* --------------------------------------------------------------
   12. Vorteile
-------------------------------------------------------------- */
.feat { display: flex; gap: 1.15rem; padding: 1.6rem 0; border-top: 2px solid var(--line); }
.section--dark .feat, .section--slate .feat { border-color: rgba(255,255,255,.16); }
.section--dark .feat { border-top-color: var(--red); border-top-width: 2px; }
.feat__ico {
  flex: none; width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--red);
}
.section--dark .feat__ico, .section--slate .feat__ico { border-color: var(--line-dark); }
.feat__ico svg { width: 20px; height: 20px; }
.feat h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.feat p { font-size: .93rem; color: var(--zinc); margin: 0; }
.section--dark .feat p, .section--slate .feat p { color: var(--zinc-light); }

/* Ablauf */
.steps { counter-reset: st; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 92px 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3vw, 2.5rem) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }
.section--dark .step { border-color: var(--line-dark); }
.step__n {
  font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700; letter-spacing: -.05em; line-height: 1;
  color: var(--red);
}
.step h3 { margin-bottom: .5rem; }
.step p { color: var(--zinc); margin: 0; max-width: 62ch; }
.section--dark .step p { color: var(--zinc-light); }

/* Aufzählung mit Haken */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.checks li {
  position: relative; padding: .7rem 0 .7rem 2rem;
  border-bottom: 1px solid var(--line-soft); margin: 0;
  font-size: .97rem;
}
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1.15rem;
  width: 11px; height: 6px;
  border-left: 1.5px solid var(--red); border-bottom: 1.5px solid var(--red);
  transform: rotate(-45deg);
}
.section--dark .checks li { border-color: var(--line-dark); }
.checks--2 { grid-template-columns: repeat(2, 1fr); column-gap: 2.5rem; }

/* --------------------------------------------------------------
   13. Referenzen
-------------------------------------------------------------- */
.proj {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-l); background: var(--slate);
  isolation: isolate;
}
.proj__media { aspect-ratio: 4 / 3; }
.proj--wide .proj__media { aspect-ratio: 16 / 10; }
.proj__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease-out);
}
.proj:hover .proj__media img { transform: scale(1.06); }
.proj__over {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 26,0) 32%, rgba(26, 26, 26,.86) 100%);
}
.proj__body {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.75rem; color: #fff;
}
.proj__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.proj__tags span {
  font-size: .68rem; font-family: var(--font-display); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.28); border-radius: 2px;
  padding: .2rem .5rem; color: rgba(255,255,255,.85);
}
.proj__body h3 { color: #fff; font-size: clamp(1.1rem, 1.6vw, 1.4rem); margin-bottom: .4rem; }
.proj__body p { font-size: .9rem; color: rgba(255,255,255,.7); margin: 0; }
.proj__more {
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: 1rem; font-family: var(--font-display); font-weight: 700;
  font-size: .78rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red);
}
.proj__more .ico { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.proj:hover .proj__more .ico { transform: translateX(4px); }

/* --------------------------------------------------------------
   14. Bewertungen
-------------------------------------------------------------- */
.revs { position: relative; }
.revs__track {
  display: flex; gap: clamp(1rem, 2vw, 1.75rem);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding-bottom: .5rem;
  scroll-behavior: smooth;
}
.revs__track::-webkit-scrollbar { display: none; }
.rev {
  flex: 0 0 min(430px, 82vw); scroll-snap-align: start;
  background: var(--paper-pure); border: 1px solid var(--line-soft);
  border-radius: var(--radius-l); padding: 2rem;
  display: flex; flex-direction: column;
}
.section--dark .rev { background: var(--ink-soft); border-color: var(--line-dark); }
.rev__stars { display: flex; gap: 2px; color: var(--red); margin-bottom: 1.1rem; }
.rev__stars svg { width: 15px; height: 15px; }
.rev p { font-size: .97rem; line-height: 1.65; margin-bottom: 1.5rem; }
.section--dark .rev p { color: var(--paper); }
.rev__by { margin-top: auto; display: flex; align-items: center; gap: .75rem; }
.rev__av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--red); color: #fff;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .85rem;
  flex: none;
}
.rev__by b { display: block; font-family: var(--font-display); font-size: .95rem; }
.rev__by span { font-size: .78rem; color: var(--zinc); }
.revs__nav { display: flex; gap: .5rem; margin-top: 1.75rem; }
.revs__nav button {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; color: inherit;
  transition: background .3s, border-color .3s, color .3s;
}
.section--dark .revs__nav button { border-color: var(--line-dark); }
.revs__nav button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.revs__nav svg { width: 16px; height: 16px; }

/* --------------------------------------------------------------
   15. Handlungsaufforderung
-------------------------------------------------------------- */
.cta {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  isolation: isolate;
}
.cta__media { position: absolute; inset: 0; z-index: -2; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; }
.cta__scrim {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(26, 26, 26,.95) 0%, rgba(26, 26, 26,.78) 55%, rgba(26, 26, 26,.5) 100%);
}
.cta__in {
  display: grid; grid-template-columns: 1.3fr auto; gap: 3rem;
  align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem);
}
.cta h2 { color: #fff; max-width: 20ch; }
.cta p { color: rgba(255,255,255,.75); max-width: 52ch; margin-bottom: 0; }

/* Notfall-Band */
.band {
  background: var(--red); color: #fff;
  padding-block: 1.5rem;
}
.band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem; }
.band b { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; }
.band p { margin: 0; font-size: .95rem; opacity: .9; }

/* --------------------------------------------------------------
   16. Formulare
-------------------------------------------------------------- */
.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: flex; flex-direction: column; gap: .45rem; }
.field > label {
  font-family: var(--font-display); font-size: .74rem; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--zinc);
}
.field .req { color: var(--red); }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="date"],
.field input[type="password"],
.field select,
.field textarea {
  width: 100%;
  font-family: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .95rem 1.05rem;
  transition: border-color .25s, box-shadow .25s, background .25s;
  appearance: none;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236E777D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
  padding-right: 2.75rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--red);
  box-shadow: 0 0 0 3px var(--red-soft);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #B4382F; }
.field__hint { font-size: .8rem; color: var(--zinc); }
.field__err { font-size: .82rem; color: #B4382F; }

.check { display: flex; gap: .8rem; align-items: flex-start; font-size: .9rem; line-height: 1.55; }
.check input[type="checkbox"] {
  flex: none; width: 20px; height: 20px; margin-top: 2px;
  accent-color: var(--red); cursor: pointer;
}
.check a { text-decoration: underline; text-underline-offset: 2px; }
.check a:hover { color: var(--red); }

.checkline { display: flex; flex-wrap: wrap; gap: .6rem; }
.checkline label {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .7rem 1rem; font-size: .92rem; cursor: pointer;
  transition: border-color .25s, background .25s;
}
.checkline label:hover { border-color: var(--red); }
.checkline input { accent-color: var(--red); }
.checkline input:checked + span { font-weight: 600; }

.hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

.drop {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1.4rem; text-align: center; background: var(--paper);
  transition: border-color .25s, background .25s;
}
.drop:hover, .drop.is-over { border-color: var(--red); background: var(--paper-pure); }
.drop input[type="file"] { width: 100%; font-size: .88rem; }
.drop p { font-size: .82rem; color: var(--zinc); margin: .6rem 0 0; }

.note {
  border-left: 3px solid var(--red);
  background: var(--paper-pure);
  padding: 1.1rem 1.35rem; border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .95rem;
}
.note--ok { border-color: #2F7D53; }
.note--err { border-color: #B4382F; }
.note b { display: block; font-family: var(--font-display); margin-bottom: .25rem; }

.form-card {
  background: var(--paper-pure);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-s);
}

/* --------------------------------------------------------------
   17. Kontaktkarten
-------------------------------------------------------------- */
.ccard {
  display: flex; gap: 1.1rem; align-items: flex-start;
  padding: 1.5rem 0; border-bottom: 1px solid var(--line);
}
.ccard:last-child { border-bottom: 0; }
.ccard__ico {
  flex: none; width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--ink); color: var(--red); border-radius: var(--radius);
}
.ccard__ico svg { width: 19px; height: 19px; }
.ccard h3 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--zinc); margin-bottom: .3rem; font-weight: 700; }
.ccard p, .ccard a { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.ccard a:hover { color: var(--red); }

.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: .6rem 0; border-bottom: 1px solid var(--line-soft); }
.hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------
   18. Aufklappbereiche
-------------------------------------------------------------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 1.5rem 0;
  background: none; border: 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 700; letter-spacing: -.02em; color: inherit;
}
.acc__btn .plus { flex: none; width: 22px; height: 22px; position: relative; }
.acc__btn .plus::before, .acc__btn .plus::after {
  content: ""; position: absolute; background: var(--red);
  transition: transform .35s var(--ease);
}
.acc__btn .plus::before { left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; }
.acc__btn .plus::after  { top: 0; bottom: 0; left: 50%; width: 1.5px; margin-left: -.75px; }
.acc__btn[aria-expanded="true"] .plus::after { transform: scaleY(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__inner { padding-bottom: 1.75rem; max-width: 70ch; }
.acc__inner p { color: var(--zinc); }

/* --------------------------------------------------------------
   19. Maschinen
-------------------------------------------------------------- */
.machine {
  background: var(--paper-pure); border: 1px solid var(--line-soft);
  border-radius: var(--radius-l); overflow: hidden;
  display: flex; flex-direction: column;
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.machine:hover { box-shadow: var(--shadow-m); transform: translateY(-4px); }
.machine img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.machine__body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.machine__body h3 { margin-bottom: .5rem; }
.machine__body p { font-size: .93rem; color: var(--zinc); }
.machine__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 1.1rem; }
.machine__links a,
.machine__link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--paper-pure);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: .55rem .85rem; cursor: pointer;
  transition: border-color .25s var(--ease), color .25s, background .25s;
}
.machine__link::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background: currentColor;
  -webkit-mask: no-repeat center / contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3M11 8v6M8 11h6"/></svg>');
  mask: no-repeat center / contain
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3M11 8v6M8 11h6"/></svg>');
}
.machine__links a:hover,
.machine__link:hover { border-color: var(--red); color: var(--red); background: var(--red-soft); }
.machine__link:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* --------------------------------------------------------------
   20. Einbettungen mit Einwilligung
-------------------------------------------------------------- */
.embed { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--slate); }
.embed__frame { width: 100%; border: 0; display: block; }
.embed--map .embed__frame { aspect-ratio: 16 / 10; min-height: 380px; }
.embed--velux .embed__frame { min-height: 760px; }
.embed--ig .embed__frame { min-height: 620px; }

.gate {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; text-align: center;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  background: var(--ink-soft); color: #fff;
  min-height: 380px;
  position: relative; overflow: hidden;
}
.gate__ico { width: 40px; height: 40px; color: var(--red); }
.gate h3 { color: #fff; font-size: 1.25rem; margin-bottom: 0; }
.gate p { color: var(--zinc-light); font-size: .92rem; max-width: 52ch; margin: 0; }
.gate small { color: var(--zinc); font-size: .78rem; }
.gate a { text-decoration: underline; }

/* --------------------------------------------------------------
   21. Einwilligungsbanner
-------------------------------------------------------------- */
/* Milchglas ueber der Seite, solange keine Entscheidung vorliegt */
.consent-veil {
  position: fixed; inset: 0; z-index: 490;
  background: rgba(26, 26, 26, .42);
  backdrop-filter: blur(8px) saturate(115%);
  -webkit-backdrop-filter: blur(8px) saturate(115%);
  opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
html.needs-consent .consent-veil { opacity: 1; visibility: visible; }
html.needs-consent body { overflow: hidden; }
html.needs-consent .mbar,
html.needs-consent .totop { display: none; }

.consent {
  position: fixed; left: 50%; top: 50%; z-index: 500;
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2.5rem);
  overflow-y: auto;
  transform: translate(-50%, -50%) scale(.96);
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-l);
  padding: clamp(1.5rem, 3vw, 2rem);
  transition: transform .55s var(--ease-out), opacity .4s var(--ease), visibility .4s;
  opacity: 0;
  visibility: hidden;
}
.consent.is-visible { transform: translate(-50%, -50%) scale(1); opacity: 1; visibility: visible; }
.consent h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.consent p { font-size: .9rem; color: var(--zinc); margin-bottom: 1.25rem; }
.consent p a { text-decoration: underline; text-underline-offset: 2px; }
.consent p a:hover { color: var(--red); }
.consent__btns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.consent__btns .btn { padding: .9rem 1rem; font-size: .78rem; }
.consent__more {
  display: block; width: 100%; margin-top: .9rem;
  background: none; border: 0; cursor: pointer;
  font-size: .8rem; color: var(--zinc); text-decoration: underline;
  font-family: inherit;
}
.consent__more:hover { color: var(--red); }
.consent__legal {
  margin-top: 1.1rem; padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: .74rem; line-height: 1.55; color: var(--zinc);
  display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .85rem;
}
.consent__legal .co {
  display: inline-flex; align-items: center; gap: .4rem;
}
.consent__legal .co b {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: .06em; color: var(--ink);
}
.consent__legal a { text-decoration: underline; text-underline-offset: 2px; }
.consent__legal a:hover { color: var(--red); }
.consent__legal .sep { color: var(--line); }

.cmodal {
  position: fixed; inset: 0; z-index: 600;
  display: grid; place-items: center;
  padding: 1.25rem;
  background: rgba(26, 26, 26,.6);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.cmodal.is-open { opacity: 1; visibility: visible; }
.cmodal__box {
  background: var(--paper-pure); border-radius: var(--radius-l);
  width: min(640px, 100%); max-height: 86vh; overflow-y: auto;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transform: translateY(16px); transition: transform .4s var(--ease-out);
}
.cmodal.is-open .cmodal__box { transform: none; }
.cgroup { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.cgroup__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.25rem; }
.cgroup h4 { margin-bottom: .3rem; }
.cgroup p { font-size: .87rem; color: var(--zinc); margin: 0; }
.cgroup small { display: block; font-size: .76rem; color: var(--zinc); margin-top: .6rem; }

.switch { position: relative; flex: none; width: 48px; height: 27px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch i {
  position: absolute; inset: 0; background: #D5D2CC; border-radius: 999px;
  transition: background .3s var(--ease);
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 21px; height: 21px; background: #fff; border-radius: 50%;
  transition: transform .3s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { transform: translateX(21px); }
.switch input:disabled + i { background: var(--zinc-light); opacity: .55; cursor: not-allowed; }
.switch input:focus-visible + i { outline: 2px solid var(--red); outline-offset: 2px; }

/* --------------------------------------------------------------
   22. Fußbereich
-------------------------------------------------------------- */
.footer { background: var(--ink); color: var(--zinc-light); position: relative; overflow: hidden; }
.footer__main {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3.5rem, 6vw, 5.5rem);
}
.footer h4 {
  color: #fff; font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 1.4rem;
}
.footer__brand .logoplate {
  display: inline-block; background: #fff;
  padding: .9rem 1.1rem; border-radius: var(--radius-l);
  margin-bottom: 1.4rem;
}
.footer__brand .logoplate img { height: 62px; width: auto; display: block; }
.footer__brand p { font-size: .92rem; max-width: 34ch; }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin: 0; }
.footer__list a {
  display: inline-block; padding: .3rem 0; font-size: .93rem;
  transition: color .25s, transform .3s var(--ease);
}
.footer__list a:hover { color: var(--red); transform: translateX(3px); }
.footer__contact { font-size: .93rem; }
.footer__contact a { display: block; padding: .2rem 0; }
.footer__contact a:hover { color: #fff; }
.footer__contact address { font-style: normal; margin-bottom: 1rem; }
.footer__social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.footer__social a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  transition: background .3s, border-color .3s, color .3s;
}
.footer__social a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.footer__social svg { width: 17px; height: 17px; }

.footer__agency {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.75rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .82rem;
}
.footer__agency a:hover { color: var(--red); }
.footer__agency strong { color: #fff; font-weight: 700; letter-spacing: .04em; }

.footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-block: 1.5rem 2rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; font-size: .82rem;
}
.footer__legal { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer__legal a:hover { color: #fff; }
.footer__legal button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: inherit; font: inherit;
}
.footer__legal button:hover { color: #fff; }

/* --------------------------------------------------------------
   23. Schwebende Elemente
-------------------------------------------------------------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 180;
  display: none;
  background: var(--paper-pure);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(26, 26, 26,.08);
  padding: .6rem;
  padding-bottom: calc(.6rem + env(safe-area-inset-bottom));
}
.mbar__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }

.totop {
  position: fixed; right: 1.25rem; bottom: 1.5rem; z-index: 170;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--ink); color: #fff; border: 0; border-radius: 50%;
  cursor: pointer; opacity: 0; visibility: hidden;
  transform: translateY(12px);
  transition: opacity .35s, transform .35s var(--ease), visibility .35s, background .3s;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--red); }
.totop svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------
   24. Fließtextseiten
-------------------------------------------------------------- */
.prose { max-width: 74ch; }
.prose h2 {
  font-size: clamp(1.4rem, 2.4vw, 2rem); margin-top: 3rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.2rem; margin-top: 2rem; }
.prose h4 { font-size: 1rem; margin-top: 1.5rem; color: var(--zinc); letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }
.prose p, .prose li { color: var(--slate); }
.prose a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.prose ul { padding-left: 1.1em; }
.prose .up { text-transform: none; font-size: .92rem; background: var(--paper-pure); padding: 1.1rem 1.35rem; border-left: 3px solid var(--line); border-radius: 0 var(--radius) var(--radius) 0; }

.toc {
  position: sticky; top: calc(var(--header-h) + 24px);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 1.5rem; background: var(--paper-pure);
}
.toc h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--zinc); margin-bottom: .9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: t; }
.toc li { margin: 0; counter-increment: t; }
.toc a { display: block; padding: .4rem 0; font-size: .89rem; color: var(--slate); }
.toc a::before { content: counter(t) ". "; color: var(--red); font-weight: 700; }
.toc a:hover { color: var(--red); }

/* --------------------------------------------------------------
   25. Bildansicht
-------------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 700;
  background: rgba(26, 26, 26,.94);
  display: grid; place-items: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: none; border: 1px solid var(--line-dark); border-radius: var(--radius);
  color: #fff; cursor: pointer;
}
.lightbox__close:hover { background: var(--red); border-color: var(--red); }

/* --------------------------------------------------------------
   26. Einblenden beim Scrollen
-------------------------------------------------------------- */
.rv { opacity: 1; transform: none; }
.js .rv { opacity: 0; transform: translateY(18px); }
.js .rv.is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.js .rv-d1.is-in { transition-delay: .08s; }
.js .rv-d2.is-in { transition-delay: .16s; }
.js .rv-d3.is-in { transition-delay: .24s; }
.js .rv-d4.is-in { transition-delay: .32s; }

/* --------------------------------------------------------------
   26b. Bausteine der Leistungsseiten
-------------------------------------------------------------- */

/* Sprungleiste unter dem Seitenkopf */
.jump {
  position: sticky; top: var(--header-h); z-index: 90;
  background: var(--paper-pure);
  border-bottom: 1px solid var(--line);
}
.jump__in {
  display: flex; gap: .35rem;
  max-width: var(--wrap); margin-inline: auto;
  padding-inline: var(--gutter);
  overflow-x: auto; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%);
}
.jump__in::-webkit-scrollbar { display: none; }
.jump__in a {
  position: relative; flex: none; scroll-snap-align: start;
  padding: 1.05rem .95rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--zinc); white-space: nowrap;
  transition: color .25s;
}
.jump__in a::after {
  content: ""; position: absolute; left: .95rem; right: .95rem; bottom: 0;
  height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.jump__in a:hover, .jump__in a.is-current { color: var(--ink); }
.jump__in a:hover::after, .jump__in a.is-current::after { transform: scaleX(1); }

/* Textnahe Verweise auf andere Leistungen */
.ilinks {
  display: flex; flex-wrap: wrap; align-items: center; gap: .55rem;
  margin-top: 2.25rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.ilinks__label {
  width: 100%;
  font-family: var(--font-display); font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--zinc);
  margin-bottom: .35rem;
}
.ilinks a {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .55rem .9rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  font-size: .87rem; font-weight: 500;
  transition: border-color .3s, color .3s, background .3s, transform .3s var(--ease);
}
.ilinks a .ico { width: 13px; height: 13px; color: var(--red); transition: transform .3s var(--ease); }
.ilinks a:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.ilinks a:hover .ico { transform: translateX(3px); }

/* Qualitätsmerkmale */
.usp { display: flex; flex-direction: column; }
.usp .feat__ico { margin-bottom: 1.35rem; }
.usp h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.usp p { font-size: .93rem; color: var(--zinc-light); margin: 0; }

/* Kompaktes Verzeichnis aller Leistungen */
.index {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius-l);
  overflow: hidden;
}
.index__col { background: var(--ink); padding: 1.75rem 1.5rem; }
.index__head {
  font-family: var(--font-display); font-size: .68rem; font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red);
  padding-bottom: .85rem; margin-bottom: .5rem;
  border-bottom: 1px solid var(--line-dark);
}
.index__list { list-style: none; margin: 0; padding: 0; }
.index__list li { margin: 0; }
.index__list a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .65rem 0; font-size: .93rem; color: var(--zinc-light);
  transition: color .25s, padding-left .3s var(--ease);
}
.index__list a .ico { width: 13px; height: 13px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .3s var(--ease); }
.index__list a:hover { color: #fff; padding-left: 6px; }
.index__list a:hover .ico { opacity: 1; transform: none; color: var(--red); }

/* Überschrift mit Verweis am rechten Rand */
.head--split {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap; max-width: none;
}
.head--split > div { max-width: 60ch; }
.h-sm { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 0; }

/* --------------------------------------------------------------
   27. Anpassung an Bildschirmgrößen
-------------------------------------------------------------- */
@media (max-width: 1240px) {
  .mega__in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega__preview { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 82px; }
  .brand__mark { height: 54px; }
  .nav, .header__social { display: none; }
  .burger { display: inline-flex; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--5 { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .index { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line-dark); padding-left: 0; }
  .stat:nth-child(-n+2) { border-top: 0; }
  .footer__main { grid-template-columns: 1fr 1fr; }
  .cta__in { grid-template-columns: 1fr; gap: 2rem; }
  .hero-strip__grid { grid-template-columns: repeat(2, 1fr); }
  .hero-strip__item:nth-child(3) { border-left: 0; }
  .hero-strip__item:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
}

@media (max-width: 860px) {
  .consent { width: calc(100vw - 1.5rem); }
  .split, .split--wide { grid-template-columns: 1fr; }
  .grid--5 { grid-template-columns: repeat(2, 1fr); }
  .split--flip .split__media { order: 0; }
  .split__badge { left: 1rem; bottom: -1rem; }
  .checks--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .step { grid-template-columns: 60px 1fr; }
  .mbar { display: block; }
  .jump__in a { padding: .95rem .75rem; font-size: .72rem; }
  body { padding-bottom: 76px; }
  .totop { bottom: 88px; }
}

@media (max-width: 640px) {
  :root { --header-h: 72px; }
  .brand__mark { height: 46px; }
  .grid--2, .grid--3, .grid--4, .grid--5 { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr; }
  .index { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-top: 1px solid var(--line-dark); }
  .stat:first-child { border-top: 0; }
  .footer__main { grid-template-columns: 1fr; }
  .hero-strip__grid { grid-template-columns: 1fr; }
  .hero-strip__item { border-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .hero-strip__item:first-child { border-top: 0; }
  .consent__btns { grid-template-columns: 1fr; }
  .drawer__grid { grid-template-columns: 1fr; padding-left: 0; }
  .drawer__link .n { display: none; }
  .drawer__foot { grid-template-columns: 1fr; }
  .rev { flex-basis: 86vw; }
  .revs__nav { display: none; }
  .embed--velux .embed__frame { min-height: 620px; }
}

/* --------------------------------------------------------------
   28. Reduzierte Bewegung
-------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .rv, .js .rv { opacity: 1; transform: none; }
  .drawer { clip-path: none; }
  .drawer__row { opacity: 1; transform: none; }
  .hero__title .ln > span { transform: none; }
  .hero__sub, .hero__cta, .hero__eyebrow { opacity: 1; }
  .hero__media img { animation: none; }
}

/* --------------------------------------------------------------
   29. Druck
-------------------------------------------------------------- */
@media print {
  .header, .mbar, .totop, .consent, .cmodal, .cta, .band, .progress { display: none !important; }
  body { background: #fff; color: #000; padding: 0; }
  .section { padding-block: 1.5rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* --------------------------------------------------------------
   30. Ergänzende Bausteine
-------------------------------------------------------------- */

/* Zitat */
.quote {
  margin: 2rem 0;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 5px solid var(--red);
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 1.7vw, 1.4rem);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.35;
}
.section--dark .quote { color: #fff; }

/* Werte-Kachel */
.value { padding-top: 1.5rem; border-top: 2px solid var(--red); }
.value h3 { font-size: 1.05rem; margin: 1rem 0 .35rem; }
.value p { font-size: .92rem; color: var(--zinc-light); margin: 0; }

/* Projektbild */
.projfig { margin: 0; cursor: zoom-in; position: relative; }
.projfig img {
  width: 100%; border-radius: var(--radius-l);
  aspect-ratio: 16 / 10; object-fit: cover;
}
.projfig figcaption {
  font-size: .8rem; color: var(--zinc);
  margin-top: .75rem; text-align: right;
}

/* Faktenkasten */
.factbox {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius-l); padding: clamp(1.5rem, 2.5vw, 2rem);
}
.factbox h3 { font-size: 1.1rem; margin: 0; }

/* Blättern zwischen Projekten */
.pnav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--line); border-block: 1px solid var(--line);
}
.pnav__item {
  background: var(--paper); padding: 1.75rem;
  display: flex; flex-direction: column; gap: .5rem;
  transition: background .35s var(--ease);
}
.pnav__item:hover { background: var(--paper-pure); }
.pnav__item span {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-display); font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--red);
}
.pnav__item b { font-family: var(--font-display); font-size: 1.05rem; letter-spacing: -.02em; }
.pnav__item--right { text-align: right; align-items: flex-end; }
.pnav__item .ico { width: 14px; height: 14px; }

/* Rechtstexte mit Inhaltsverzeichnis */
.legal { display: grid; grid-template-columns: 280px 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; }
.legal .prose { max-width: 76ch; }

/* Agenturkasten im Impressum */
.agencybox {
  background: var(--paper); border-left: 5px solid var(--red);
  border-radius: 0 var(--radius-l) var(--radius-l) 0;
  padding: 1.75rem;
}
.agencybox__brand {
  display: inline-block;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  letter-spacing: .12em; color: var(--red); margin-bottom: .75rem;
}
.agencybox p { font-size: .95rem; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; }
  .legal__nav { position: static; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .pnav { grid-template-columns: 1fr; }
  .pnav__item--right { text-align: left; align-items: flex-start; }
}

/* Hinweis unter einer Einbettung */
.embed__alt {
  margin-top: 1rem; font-size: .88rem; color: var(--zinc);
}
.embed__alt a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }

/* --------------------------------------------------------------
   31. Agenturhinweis im Impressum
-------------------------------------------------------------- */
.credit {
  position: relative;
  background: var(--paper-pure);
  border: 1px solid var(--line-soft);
  border-top: 3px solid var(--red);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 2rem;
  box-shadow: var(--shadow-s);
}

.credit__logo {
  width: 100%; max-width: 168px; height: auto;
  display: block; margin-bottom: 1.4rem;
}

.credit__lead {
  font-size: .92rem; line-height: 1.65; color: var(--zinc);
  padding-bottom: 1.25rem; margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--line-soft);
}

.credit__rows { display: grid; gap: .1rem; margin-bottom: 1.4rem; }
.credit__rows > div {
  display: grid; grid-template-columns: 84px 1fr;
  gap: .75rem; align-items: baseline;
  padding: .48rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.credit__rows > div:last-child { border-bottom: 0; }
.credit__rows span {
  font-family: var(--font-display); font-size: .62rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--zinc);
}
.credit__rows b {
  font-weight: 500; font-size: .92rem; line-height: 1.5; color: var(--ink);
}
.credit__rows a { color: var(--ink); }
.credit__rows a:hover { color: var(--red); }

.credit__note {
  margin: 0; padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-size: .74rem; line-height: 1.6; color: var(--zinc);
}

/* Impressum: Firmendaten und Agenturhinweis nebeneinander */
.imp {
  display: grid; grid-template-columns: 1.35fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}
.imp__main { max-width: none; }
.imp__credit { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }

@media (max-width: 900px) {
  .imp { grid-template-columns: 1fr; }
  .imp__credit { position: static; }
}

/* Schaltfläche im Fliesstext */
.linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: inherit; color: var(--red);
  text-decoration: underline; text-underline-offset: 2px;
}
.linkbtn:hover { color: var(--red-dark); }
.prose code {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .88em; background: var(--paper);
  padding: .12em .4em; border-radius: 3px;
}

/* Vorschau im Mega-Menü ist anklickbar */
a.mega__preview { color: inherit; text-decoration: none; cursor: pointer; }
a.mega__preview .mega__cap .tlink { background-size: 0 1.5px; }
a.mega__preview:hover .mega__cap .tlink { background-size: 100% 1.5px; }
a.mega__preview:hover .mega__cap .tlink .ico { transform: translateX(4px); }
a.mega__preview:hover .mega__figs img.is-active { transform: scale(1.04); }
a.mega__preview:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

/* --------------------------------------------------------------
   32. Titelvideo
-------------------------------------------------------------- */
.hero__poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}
.hero__video.is-playing { opacity: 1; }
.hero--video .hero__media img { animation: none; }

.hero__toggle {
  position: absolute; right: var(--gutter); bottom: 1.5rem; z-index: 3;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(26, 26, 26, .5);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .3s var(--ease), border-color .3s;
}
.hero__toggle:hover { background: var(--red); border-color: var(--red); }
.hero__toggle-ico {
  display: block; width: 12px; height: 14px;
  border-left: 4px solid #fff; border-right: 4px solid #fff;
}
.hero__toggle[aria-pressed="true"] .hero__toggle-ico {
  width: 0; height: 0;
  border-left: 13px solid #fff; border-right: 0;
  border-top: 8px solid transparent; border-bottom: 8px solid transparent;
  margin-left: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .hero--video .hero__media { background: var(--ink); }
}
@media (max-width: 640px) {
  .hero__toggle { bottom: .9rem; right: .9rem; width: 42px; height: 42px; }
}

/* --------------------------------------------------------------
   33. Offene Stellen
-------------------------------------------------------------- */
.jobs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 2vw, 1.75rem);
  align-items: stretch;
}
.job {
  display: flex; flex-direction: column;
  background: var(--paper-pure);
  border: 1px solid var(--line-soft);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.job:hover { transform: translateY(-5px); box-shadow: var(--shadow-m); }

.job__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.job__num {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  letter-spacing: -.05em; line-height: 1; color: var(--grey);
}
.job__ico {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--red);
}
.job__ico svg { width: 21px; height: 21px; }

.job h3 { font-size: clamp(1.2rem, 1.7vw, 1.45rem); margin-bottom: .8rem; }
.job__mwd { color: var(--zinc); font-weight: 400; font-size: .82em; letter-spacing: 0; }

.job__meta {
  display: flex; flex-wrap: wrap; gap: .4rem;
  list-style: none; padding: 0; margin: 0 0 1.1rem;
}
.job__meta li {
  margin: 0; font-family: var(--font-display);
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  background: var(--paper); color: var(--slate);
  border-radius: 2px; padding: .3rem .6rem;
}
.job__intro { color: var(--zinc); font-size: .95rem; margin-bottom: 1.25rem; }

.job__req { padding-top: 1.1rem; border-top: 1px solid var(--line-soft); }
.job__req h4 {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--zinc); margin-bottom: .5rem;
}
.job__req .checks li { padding-block: .5rem; font-size: .92rem; }

.job__plus {
  font-size: .9rem; color: var(--slate);
  background: var(--paper); border-left: 3px solid var(--red);
  padding: .85rem 1rem; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.25rem 0 1.5rem;
}
.job__plus strong { font-family: var(--font-display); }
.job .btn { margin-top: auto; }

.jobs__note { margin-top: 2rem; text-align: center; color: var(--zinc); font-size: .95rem; }

@media (max-width: 980px) {
  .jobs { grid-template-columns: 1fr; }
  .job__head { margin-bottom: .8rem; }
}

/* --------------------------------------------------------------
   34. Ergänzungen Einwilligungsbanner und Fussbereich
-------------------------------------------------------------- */
.consent__top { display: flex; align-items: center; gap: .75rem; margin-bottom: .6rem; }
.consent__ico {
  width: 34px; height: 34px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--red); border-radius: var(--radius);
}
.consent__ico svg { width: 16px; height: 16px; }
.consent__top h3 { margin: 0; }

.consent__cats { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.consent__cats li {
  display: flex; align-items: center; gap: .55rem;
  padding: .45rem 0; margin: 0;
  font-size: .86rem; font-weight: 600;
  border-top: 1px solid var(--line-soft);
}
.consent__cats li:last-child { border-bottom: 1px solid var(--line-soft); }
.consent__cats em {
  margin-left: auto; font-style: normal; font-weight: 400;
  font-size: .78rem; color: var(--zinc); text-align: right;
}
.consent__cats .dot {
  width: 9px; height: 9px; border-radius: 50%; flex: none;
  border: 1.5px solid var(--zinc-light);
}
.consent__cats .dot--on { background: var(--red); border-color: var(--red); }

.footer__credit { display: inline-flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.footer__credit .sep { color: var(--zinc); }
.footer__credit a { text-decoration: none; }
.footer__credit a:hover { color: var(--red); }

/* --------------------------------------------------------------
   35. Bewerbungsformular
-------------------------------------------------------------- */
.apply {
  display: grid; grid-template-columns: 340px 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}
.apply__side { display: grid; gap: 1.25rem; position: sticky; top: calc(var(--header-h) + 24px); }
.apply__box {
  background: var(--paper); border: 1px solid var(--line-soft);
  border-radius: var(--radius-l); padding: 1.6rem;
}
.apply__box h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.apply__box .ccard { padding: 1rem 0; }
.apply__box .ccard:first-of-type { padding-top: 1.25rem; }
.apply__box--dark { background: var(--ink); color: var(--zinc-light); border-color: transparent; }
.apply__box--dark h3 { color: #fff; }
.apply__box--dark p { font-size: .92rem; margin: 0; }

.apply__form {
  background: var(--paper-pure);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 3vw, 2.75rem);
  box-shadow: var(--shadow-s);
}

.fset {
  border: 0; padding: 0; margin: 0 0 2rem;
  display: grid; gap: 1.1rem;
}
.fset:last-of-type { margin-bottom: 1.5rem; }
.fset > legend {
  display: flex; align-items: baseline; gap: .75rem;
  width: 100%; padding: 0 0 .9rem; margin-bottom: .4rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  letter-spacing: -.02em; color: var(--ink);
}
.fset > legend span {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  color: var(--red); flex: none;
}
.fset > legend em {
  margin-left: auto; font-style: normal; font-weight: 400;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--zinc);
}

.form__row--3 { grid-template-columns: repeat(3, 1fr); }

/* Stellenauswahl als Kacheln */
.pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: .7rem; }
.pick__item {
  position: relative;
  display: flex; align-items: center; gap: .8rem;
  padding: .95rem 1.1rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; background: var(--paper-pure);
  transition: border-color .25s, background .25s;
}
.pick__item:hover { border-color: var(--red); }
.pick__item input { position: absolute; opacity: 0; width: 0; height: 0; }
.pick__box {
  flex: none; width: 22px; height: 22px;
  border: 1.5px solid var(--line); border-radius: 4px;
  display: grid; place-items: center;
  transition: background .2s, border-color .2s;
}
.pick__tick { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity .2s; }
.pick__label { font-size: .95rem; font-weight: 500; }
.pick__item input:checked ~ .pick__box { background: var(--red); border-color: var(--red); }
.pick__item input:checked ~ .pick__box .pick__tick { opacity: 1; }
.pick__item input:checked ~ .pick__label { font-weight: 700; }
.pick__item:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.pick__item input:focus-visible ~ .pick__box { outline: 2px solid var(--red); outline-offset: 2px; }

/* Dateiauswahl */
.drop {
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  padding: 1.25rem 1rem; text-align: center; background: var(--paper);
  transition: border-color .25s, background .25s;
}
.drop:hover, .drop.is-over { border-color: var(--red); background: var(--paper-pure); }
.drop__ico { width: 26px; height: 26px; color: var(--red); }
.drop__ico svg { width: 100%; height: 100%; }
.drop input[type="file"] { width: 100%; font-size: .82rem; }
.drop p { font-size: .78rem; color: var(--zinc); margin: 0; }

.apply__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
}
.apply__foot .check { flex: 1 1 320px; }
.apply__foot .btn { flex: none; }

@media (max-width: 1024px) {
  .apply { grid-template-columns: 1fr; }
  .apply__side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .apply__side { grid-template-columns: 1fr; }
  .form__row--3 { grid-template-columns: 1fr; }
  .pick { grid-template-columns: 1fr; }
}

/* Hinweis zur Pflichtabfrage */
.consent__hint {
  margin: .9rem 0 0;
  font-size: .78rem; line-height: 1.55; color: var(--zinc);
  text-align: center;
}

/* --------------------------------------------------------------
   36. Feinschliff für kleine Bildschirme
-------------------------------------------------------------- */
@media (max-width: 1024px) {
  .jump__in { padding-inline: var(--gutter); }
  .jump__in a { padding: .95rem .8rem; font-size: .74rem; letter-spacing: .08em; }
  .jump__in a::after { left: .8rem; right: .8rem; }
}

@media (max-width: 860px) {
  :root { --sect: clamp(3rem, 8vw, 4.5rem); }

  /* Ueberschriften und Fliesstext */
  h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
  h2 { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  h3 { font-size: clamp(1.05rem, 4.6vw, 1.25rem); }
  body { font-size: 1rem; }
  .lead { font-size: 1rem; }
  .head { margin-bottom: 1.75rem; }

  /* Kopfbereiche */
  .phero { padding-block: clamp(2.5rem, 8vw, 4rem) clamp(2rem, 6vw, 3rem); }
  .crumbs { margin-bottom: 1.1rem; font-size: .72rem; }
  .eyebrow { margin-bottom: 1rem; font-size: .66rem; letter-spacing: .16em; }

  /* Schaltflaechen fassen sich besser an */
  .btns { gap: .6rem; }
  .btns .btn { flex: 1 1 100%; }
  .btn { padding: 1rem 1.4rem; min-height: 52px; }
  .btn--sm { padding: .8rem 1.1rem; min-height: 46px; }
  .hero__cta .btn, .phero .btn { flex: 1 1 100%; }

  /* Startbereich */
  .hero { min-height: min(78vh, 620px); }
  .hero__in { padding-block: clamp(3rem, 12vw, 5rem) clamp(2rem, 8vw, 3rem); }
  .hero__claim { font-size: clamp(1.05rem, 5vw, 1.35rem); padding-left: .85rem; }
  .hero__claim::before { width: 4px; }

  /* Bilder in Textabschnitten */
  .split__media img { aspect-ratio: 3 / 2; }
  .split__badge {
    position: static; margin-top: -2.5rem; margin-left: 1rem;
    max-width: 190px; padding: 1.1rem 1.25rem;
  }
  .split__badge b { font-size: 2rem; }

  /* Ablauf */
  .step { grid-template-columns: 1fr; gap: .5rem; padding-block: 1.4rem; }
  .step__n { font-size: 1.6rem; }

  /* Bewertungen */
  .rev { padding: 1.5rem; }
  .rev p { font-size: .95rem; }

  /* Kennzahlen und Vorteile */
  .feat { padding-block: 1.25rem; gap: .9rem; }
  .feat__ico { width: 38px; height: 38px; }
  .feat__ico svg { width: 17px; height: 17px; }

  /* Projekte */
  .proj__body { padding: 1.25rem; }
  .proj__body h3 { font-size: 1.1rem; }
  .proj__tags { gap: .3rem; margin-bottom: .6rem; }
  .proj__tags span { font-size: .62rem; padding: .15rem .4rem; }

  /* Formulare */
  .form-card, .apply__form { padding: 1.25rem; }
  .field input, .field select, .field textarea { font-size: 16px; padding: .9rem 1rem; }
  .apply__foot { flex-direction: column; align-items: stretch; }
  .apply__foot .btn { width: 100%; }
  .fset { margin-bottom: 1.5rem; }
  .fset > legend { font-size: .98rem; }

  /* Aufklappbereiche und Tabellen */
  .acc__btn { padding-block: 1.1rem; font-size: 1.02rem; }
  .hours { font-size: .9rem; }
  .hours td { padding: .5rem 0; }

  /* Rechtstexte */
  .prose h2 { margin-top: 2.25rem; padding-top: 1.5rem; }
  .prose { font-size: .98rem; }
  .toc { padding: 1.1rem; }
  .toc a { padding: .32rem 0; font-size: .86rem; }

  /* Maschinen und Kacheln */
  .machine__body { padding: 1.25rem; }
  .tile { padding: 1.4rem 1.25rem; }
  .job { padding: 1.4rem; }
  .job__num { font-size: 2rem; }

  /* Einbettungen */
  .embed--map .embed__frame { min-height: 300px; }
  .embed--velux .embed__frame { min-height: 560px; }
  .gate { min-height: 300px; padding: 2rem 1.25rem; }
  .gate h3 { font-size: 1.1rem; }
  .gate p { font-size: .88rem; }

  /* Fussbereich */
  .footer__main { padding-block: 2.5rem; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .footer__legal { gap: 1rem; }
}

@media (max-width: 560px) {
  :root { --gutter: 1.1rem; }
  .wrap { padding-inline: var(--gutter); }

  .hero__title { font-size: clamp(1.7rem, 9vw, 2.3rem); }
  .split__badge { margin-left: 0; }
  .revs__track { gap: .75rem; }
  .rev { flex-basis: 88vw; }
  .credit { padding: 1.25rem; }
  .credit__rows > div { grid-template-columns: 1fr; gap: .1rem; }
  .cmodal__box { padding: 1.25rem; }
  .consent { padding: 1.25rem; }
  .consent__cats em { font-size: .72rem; }
  .pnav__item { padding: 1.25rem; }
  .projfig img { aspect-ratio: 4 / 3; }
}

/* Beruehrungsflaechen auf Touch-Geraeten */
@media (hover: none) {
  .nav__link, .footer__list a, .footer__legal a, .crumbs a { min-height: 44px; display: inline-flex; align-items: center; }
  .drawer__grid a { min-height: 44px; }
  .tlink { padding-block: .35rem; }
}

/* --------------------------------------------------------------
   37. Schutz vor seitlichem Ueberlauf
-------------------------------------------------------------- */
html { overflow-x: hidden; }
img, svg, video, iframe, table, pre { max-width: 100%; }
.wrap, .wrap--narrow { max-width: min(var(--wrap), 100%); }
.wrap--narrow { max-width: min(var(--wrap-narrow), 100%); }
.prose, .prose p, .prose li, .prose h2, .prose h3 { overflow-wrap: anywhere; }
.prose a { word-break: break-word; }
.d-path, .credit__rows b { overflow-wrap: anywhere; }
h1, h2, h3, .hero__title, .job h3 { overflow-wrap: break-word; hyphens: auto; }
.field input, .field select, .field textarea { max-width: 100%; }

/* Leistungen der Agentur im Impressum */
.credit__services {
  list-style: none; padding: 0;
  margin: 0 0 1.25rem;
  display: grid; gap: .1rem;
}
.credit__services li {
  display: flex; align-items: flex-start; gap: .8rem;
  margin: 0; padding: .8rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.credit__services li:last-child { border-bottom: 0; }
.credit__svc-ico {
  flex: none; width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--red);
}
.credit__svc-ico svg { width: 15px; height: 15px; }
.credit__services b {
  display: block; font-family: var(--font-display);
  font-size: .95rem; letter-spacing: -.01em; color: var(--ink);
  margin-bottom: .12rem;
}
.credit__services span:not(.credit__svc-ico) {
  display: block; font-size: .84rem; line-height: 1.5; color: var(--zinc);
}

/* Referenzhinweis, wenn einer Leistung keine Projekte zugeordnet sind */
.refbar {
  display: grid; grid-template-columns: 1fr auto;
  gap: clamp(1.25rem, 3vw, 2.5rem); align-items: center;
  background: var(--paper-pure);
  border: 1px solid var(--line-soft);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 3vw, 2.25rem);
}
.refbar h2 { margin-bottom: .5rem; }
.refbar p { color: var(--zinc); margin: 0; max-width: 62ch; font-size: .96rem; }
@media (max-width: 860px) {
  .refbar { grid-template-columns: 1fr; }
  .refbar .btn { width: 100%; }
}

/* Firmenname im Fussbereich sauber umbrechen */
.footer__co {
  display: block;
  text-wrap: balance;
  max-width: 22ch;
  margin-bottom: .35rem;
}

/* --------------------------------------------------------------
   38. Sicherheitsfrage beim Absenden
   Erscheint als Fenster, sobald auf Absenden geklickt wurde.
-------------------------------------------------------------- */
.task {
  position: fixed; inset: 0; z-index: 520; margin: 0;
  display: grid; place-items: center; padding: 1.25rem;
  background: rgba(26, 26, 26, .55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.task.is-open { opacity: 1; }

.task__box {
  width: min(430px, 100%);
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-l);
  padding: clamp(1.5rem, 4vw, 2rem);
  box-shadow: var(--shadow-l);
  transform: translateY(16px) scale(.97);
  transition: transform .42s var(--ease-out);
}
.task.is-open .task__box { transform: none; }
.task.is-shake .task__box { animation: taskShake .45s var(--ease); }

.task__kicker {
  display: block; font-family: var(--font-display);
  font-size: .64rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--red); margin-bottom: .5rem;
}
.task__q {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 700;
  letter-spacing: -.02em; margin: 0 0 1rem;
}
.task__q b { color: var(--red); }
.task__in {
  width: 100%;
  font: inherit; font-size: 1.3rem; font-weight: 700; text-align: center;
  padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
}
.task__in:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); background: var(--paper-pure); }
.task__hint { font-size: .82rem; color: var(--zinc); margin: .8rem 0 0; }
.task__btns { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.task__btns .btn { flex: 1 1 auto; justify-content: center; }

@keyframes taskShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

/* Ohne Skript steht die Frage im Formular */
.no-js .task {
  position: static; display: block; padding: 0; margin-top: 1.25rem;
  background: none; backdrop-filter: none; opacity: 1;
}
.no-js .task__box { transform: none; box-shadow: none; border-left: 4px solid var(--red); border-top: 1px solid var(--line); }
.no-js .task__btns { display: none; }

/* --------------------------------------------------------------
   39. Fenster auf kleinen Bildschirmen
-------------------------------------------------------------- */
@media (max-width: 640px) {
  /* Einwilligung und Einstellungen als Blatt von unten */
  .consent {
    left: 0; right: 0; top: auto; bottom: 0;
    width: 100%; max-width: none;
    max-height: 88vh;
    transform: translateY(100%);
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    border-left: 0; border-right: 0; border-bottom: 0;
    padding: 1.4rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom));
  }
  .consent.is-visible { transform: translateY(0); }
  .consent__btns { flex-direction: column; }
  .consent__btns .btn { width: 100%; justify-content: center; }
  .consent__cats em { font-size: .7rem; }

  .cmodal { padding: 0; align-items: flex-end; }
  .cmodal__box {
    width: 100%; max-height: 92vh;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    padding: 1.4rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom));
  }
  .cgroup__top { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .cmodal .btns { flex-direction: column; }
  .cmodal .btns .btn { width: 100%; justify-content: center; }

  /* Sicherheitsfrage */
  .task { padding: 0; place-items: end stretch; }
  .task__box {
    width: 100%;
    border-radius: var(--radius-l) var(--radius-l) 0 0;
    padding: 1.4rem 1.25rem calc(1.4rem + env(safe-area-inset-bottom));
    transform: translateY(100%);
  }
  .task.is-open .task__box { transform: none; }
  .no-js .task__box { transform: none; border-radius: var(--radius); }
  .task__in { max-width: none; }
  .task__btns { flex-direction: column-reverse; }
  .task__btns .btn { width: 100%; }

  /* Bildansicht */
  .lightbox__close { top: .75rem; right: .75rem; }
  .lightbox img { max-width: 100%; max-height: 78vh; }
}

/* Fenster nur über die Schaltflächen schliessen */
.cmodal, .lightbox, .task { touch-action: manipulation; }

/* --------------------------------------------------------------
   40. Social-Media-Kanäle auf der Kontaktseite
-------------------------------------------------------------- */
.social { display: grid; gap: .6rem; }

.social__item {
  background: var(--paper-pure);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.social__item[open] { border-color: var(--line); box-shadow: var(--shadow-s); }
.social__item:hover { border-color: var(--red); }

.social__item summary {
  display: flex; align-items: center; gap: .9rem;
  padding: .95rem 1.1rem;
  cursor: pointer; list-style: none;
}
.social__item summary::-webkit-details-marker { display: none; }
.social__item summary:focus-visible { outline: 2px solid var(--red); outline-offset: -2px; }

.social__ico {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  background: var(--paper); border-radius: var(--radius);
  color: var(--red);
  transition: background .3s var(--ease), color .3s;
}
.social__item[open] .social__ico,
.social__item:hover .social__ico { background: var(--red); color: #fff; }
.social__ico svg { width: 18px; height: 18px; }

.social__txt { display: block; min-width: 0; }
.social__txt b {
  display: block; font-family: var(--font-display);
  font-size: 1rem; letter-spacing: -.01em; line-height: 1.3;
}
.social__txt span {
  display: block; font-size: .84rem; color: var(--zinc);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.social__pfeil {
  margin-left: auto; flex: none;
  width: 22px; height: 22px; display: grid; place-items: center;
  color: var(--zinc);
  transition: transform .35s var(--ease-out), color .3s;
}
.social__pfeil svg { width: 14px; height: 14px; }
.social__item[open] .social__pfeil { transform: rotate(180deg); color: var(--red); }

.social__body {
  padding: 0 1.1rem 1.1rem calc(1.1rem + 40px + .9rem);
  border-top: 1px solid var(--line-soft);
  margin-top: -1px; padding-top: 1rem;
}
.social__body p { font-size: .9rem; color: var(--zinc); margin: 0 0 1rem; }

.social__hinweis {
  font-size: .78rem; color: var(--zinc);
  margin: .9rem 0 0; line-height: 1.6;
}

@media (max-width: 560px) {
  .social__body { padding-left: 1.1rem; }
  .social__body .btn { width: 100%; justify-content: center; }
}

/* Kontaktseite: auf schmalen Bildschirmen zuerst das Formular */
@media (max-width: 900px) {
  .kontakt__split { display: flex; flex-direction: column; gap: 2rem; }
  .kontakt__split .form-card { order: 1; }
  .kontakt__split > div:not(.form-card) { order: 2; }
}

/* Ohne Skript steht die Frage im Formular, sonst immer als Fenster */
.no-js [data-task] { display: block !important; }
