/* ══════════════════════════════════════════════════════════════════════════
   site.css — Seiten-Layout & Komponenten für malerlangner.de (Relaunch).
   Baut auf modernist.css auf. Desktop-Fidelity nach Handoff, plus vollständige
   mobile Responsiveness (der Prototyp war fixspaltig / desktop-only).
   ══════════════════════════════════════════════════════════════════════ */

:root { --sec: 96px; --container: 1280px; }

/* ── Grundgerüst ─────────────────────────────────────────────────────── */
/* Fixe Raufaser-Tapeten-Textur als Seitenhintergrund (scrollt nicht mit).
   Optional per DEV-TWEAKS: nur mit .bg-tapete an <html>, sonst normaler Grund. */
html.bg-tapete body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("/images/raufaser.webp");
  background-image: image-set(url("/images/raufaser.avif") type("image/avif"),
                              url("/images/raufaser.webp") type("image/webp"));
  background-position: center; background-size: cover; background-repeat: no-repeat;
}
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--color-accent);
  color: var(--color-bg); padding: 10px 16px; font-weight: 600; text-decoration: none; }
.skip-link:focus { left: 8px; }
.site { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip; }
.site > main { flex: 1; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { max-width: var(--container); margin: 0 auto; padding: calc(var(--sec) / 2) 24px; }
/* Abwechselnde Abschnitts-Hintergründe (volle Breite) — von section-stripes.js gesetzt. */
.section.bg-alt { position: relative; }
.section.bg-alt::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%); background: var(--color-surface);
}
.section--first { padding-top: 72px; }
.section--sm { padding-top: 56px; }
.spacer { height: calc(var(--sec) / 2); }

/* ── Text-Bausteine ──────────────────────────────────────────────────── */
/* Mini-Label auf rotem Pinselstrich: Pinsel-Bild als Maske über roter Fläche, weißer Text. */
.eyebrow {
  position: relative; isolation: isolate; display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; line-height: 1.2;
  text-transform: uppercase; color: #fff; margin-bottom: 24px; padding: 5px 16px;
}
/* Nur der Text kippt/rückt – der Pinselstrich bleibt komplett unangetastet. */
.eyebrow__t { display: inline-block; transform: translate(-5px, 5px) rotate(-4deg); }
.eyebrow::before {
  content: ""; position: absolute; inset: -33px -21px -33px -17px; z-index: -1; /* gleiche Breite (17+21=38), nur ~5px nach rechts geschoben */
  background: url(/images/pinsel-4-eb.webp?v=3) center / 100% 100% no-repeat;
}
/* Auf dunklem Band: weißer Pinsel, roter Text. */
.band-dark .eyebrow { color: var(--color-accent); }
.band-dark .eyebrow::before { background: url(/images/pinsel-4-eb-w.webp?v=3) center / 100% 100% no-repeat; }
/* Überschrift auf weißem Pinselstrich (dunkles Band); Textfarbe = Scrollleisten-Thumb-Ton. */
.brush-head { position: relative; isolation: isolate; display: inline-block; padding: 8px 28px;
  color: var(--color-accent); }
.brush-head::before {
  content: ""; position: absolute; inset: -13px -32px -13px -20px; z-index: -1;
  background: url(/images/pinsel-5-head.webp) center / 100% 100% no-repeat;
}
.eyebrow--line { display: flex; align-items: center; gap: 10px; color: var(--color-neutral-700); }
.eyebrow--line::before { content: ""; width: 28px; height: 2px; background: var(--color-accent); flex: none; }
.lead { font-size: 19px; line-height: 1.6; color: var(--color-neutral-800); margin: 22px 0 0; max-width: 660px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; flex-wrap: wrap; }
.textlink {
  font-weight: 600; font-size: 16px; white-space: nowrap; color: var(--color-accent);
  border-bottom: 2px solid var(--color-accent); padding-bottom: 4px; text-decoration: none;
}
.textlink:hover { color: var(--color-accent-700); border-color: var(--color-accent-700); }
/* Einheitlicher Hover für Text-/CTA-Links: sanftes Nach-rechts-Gleiten. */
.textlink, .accent-box a, .hub-card__more { transition: transform .18s ease, color .18s ease, border-color .18s ease; }
.textlink:hover, .accent-box a:hover, .hub-card__more:hover { transform: translateX(4px); }

/* ── Buttons (seitenspezifische Größen) ──────────────────────────────── */
/* Buttons minimal abgerundet — der Rest des Systems bleibt kantig (0px). */
.btn, .btn-cta, .btn-outline, .btn-dark, .btn-onred, .btn-outline-light,
.header-cta, .filter-chip, .choice { border-radius: 4px; }

/* Sanfter Hover-Effekt für die Action-Buttons */
.btn-cta, .btn-outline, .btn-dark, .btn-onred, .btn-outline-light, .header-cta {
  transition: background-color .18s ease, border-color .18s ease, color .18s ease,
              transform .12s ease, box-shadow .18s ease;
}
.btn-cta:hover, .btn-outline:hover, .btn-dark:hover, .btn-onred:hover,
.btn-outline-light:hover, .header-cta:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-cta:active, .btn-outline:active, .btn-dark:active, .btn-onred:active,
.btn-outline-light:active, .header-cta:active { transform: translateY(0); box-shadow: var(--shadow-sm); }
@media (prefers-reduced-motion: reduce) {
  .btn-cta, .btn-outline, .btn-dark, .btn-onred, .btn-outline-light, .header-cta { transition: background-color .15s ease, color .15s ease; }
  .btn-cta:hover, .btn-outline:hover, .btn-dark:hover, .btn-onred:hover, .btn-outline-light:hover, .header-cta:hover { transform: none; }
}
.btn-cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--color-accent);
  color: var(--color-bg); padding: 16px 28px; font-weight: 600; font-size: 16px;
  font-family: var(--font-body); border: 0; cursor: pointer; text-decoration: none;
}
.btn-cta:hover { background: var(--color-accent-700); color: var(--color-bg); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--color-text);
  color: var(--color-text); padding: 16px 28px; font-weight: 600; font-size: 16px;
  background: transparent; cursor: pointer; text-decoration: none;
}
.btn-outline:hover { background: var(--color-text); color: var(--color-bg); }
.btn-dark {
  display: inline-flex; align-items: center; gap: 8px; background: var(--color-text);
  color: var(--color-bg); padding: 15px 26px; font-weight: 600; text-decoration: none;
  border: 0; cursor: pointer;
}
.btn-dark:hover { background: var(--color-accent); color: var(--color-bg); }
.btn-onred {
  display: inline-flex; align-items: center; gap: 8px; background: var(--color-surface);
  color: var(--color-text); padding: 17px 30px; font-weight: 600; white-space: nowrap;
  text-decoration: none;
}
.btn-onred:hover { background: var(--color-text); color: var(--color-bg); }

/* ── Parallax-Hintergrund (von parallax.js erzeugt) ──────────────────── */
.px-root { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.px-layer { position: absolute; will-change: transform; }
.px1 { top: -14vh; right: -14vw; width: 56vw; height: 78vh; background: var(--color-accent-100); }
.px2 { top: -20vh; left: 0; width: 100%; height: 160vh;
  background: repeating-linear-gradient(90deg, var(--color-divider) 0 2px, transparent 2px 128px); opacity: .16; }
.px3 { top: 18vh; left: -10vw; width: 44vw; height: 0; }
.px3 > i { display: block; height: 38px; background: var(--color-accent-200); }
.px3 > i:nth-child(2) { width: 82%; margin-top: 26px; background: var(--color-accent-300); }
.px3 > i:nth-child(3) { width: 60%; margin-top: 26px; background: var(--color-accent-200); }
.px3 > i:first-child { width: 100%; }
.px4 { bottom: -10vh; left: -8vw; width: 70vw; height: 34vh; background: var(--color-neutral-200); }
.px5 { inset: -20vh -10vw;
  background: repeating-linear-gradient(58deg, color-mix(in srgb, var(--color-text) 5%, transparent) 0 3px, transparent 3px 22px);
  animation: px-drift 34s linear infinite; }
.px6 { top: 52vh; right: -18vw; width: 64vw; height: 14px; background: var(--color-accent); }
.px7 { top: 8vh; left: 34vw; width: 2px; height: 52vh; background: var(--color-accent-700); opacity: .5; }
@keyframes px-drift { to { background-position: 240px 240px; } }
@media (prefers-reduced-motion: reduce) { .px5 { animation: none; } }

/* ── Header ──────────────────────────────────────────────────────────── */
/* Nav-Mount aus dem Box-Baum nehmen, sonst wäre der Header-Container nur 74px
   hoch und sticky würde nach kurzem Scrollen abreißen. So ist .site (volle
   Seitenhöhe) der Container des sticky Headers. */
[data-component="nav"] { display: contents; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 94%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-divider);
}
.site-header__inner {
  display: flex; align-items: center; gap: 28px; max-width: var(--container);
  margin: 0 auto; padding: 0 24px; height: 74px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--color-text); text-decoration: none; flex: none; }
.brand__logo { height: 50px; width: auto; display: block; }

/* Startseiten-Gimmick: „Langner" und „Ihr Maler" zeichnen sich beim Laden nach.
   Basis-Bild liegt im Fluss (gibt die Box-Maße), die beiden Schrift-Ebenen
   deckungsgleich darüber. Langner zuerst, „Ihr Maler" leicht versetzt. */
.brand__draw { position: relative; display: inline-block; width: 125px; height: 50px; line-height: 0; }
.brand__draw img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.brand__langner, .brand__ink { clip-path: inset(0 100% 0 0); }
.brand__langner.is-drawn { clip-path: inset(0 0 0 0); transition: clip-path .95s cubic-bezier(.65, 0, .2, 1); }
.brand__ink.is-drawn { clip-path: inset(0 0 0 0); transition: clip-path 1.05s cubic-bezier(.65, 0, .2, 1); transition-delay: .5s; }
/* Farbkleckse: poppen nach den Schreib-Animationen (transform-origin je Punkt inline gesetzt) */
.brand__dot { opacity: 0; will-change: transform; }
.brand__dot.pop { animation: brand-dot-pop .42s ease-out forwards; }
@keyframes brand-dot-pop {
  0%   { transform: scale(0); opacity: 0; }
  65%  { transform: scale(2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .brand__langner, .brand__ink { clip-path: inset(0 0 0 0) !important; transition: none !important; }
  .brand__dot { opacity: 1 !important; animation: none !important; transform: none !important; }
}
/* Startseiten-Logo Variante B: fertiges Pinsel-Logo, Reveal von links nach rechts.
   Größer als die Header-Höhe -> hängt leicht in den Body-Bereich (z-index über Inhalt). */
.brand__pinsel { display: block; height: 96px; width: auto; max-width: none; flex: none; position: relative; z-index: 2; transform: translateY(10px); }
/* Reveal-Startzustand nur, wenn per JS markiert (nur Startseite).
   inset(... links 100%) -> Aufdecken von rechts nach links. */
.brand__pinsel.anim { clip-path: inset(0 0 0 100%); }
.brand__pinsel.anim.is-painted { clip-path: inset(0 0 0 0); transition: clip-path 1.05s cubic-bezier(.55, 0, .2, 1); }
@media (max-width: 768px) { .brand__pinsel { height: 58px; transform: none; } }
/* Mittlere Breiten: Logo etwas kleiner + Telefonnummer weg (steckt im Mobile-Menü),
   damit der Desktop-Header nicht eng wird und das Logo nicht gestaucht wird. */
@media (min-width: 769px) and (max-width: 1024px) {
  .brand__pinsel { height: 76px; }
  .header-phone { display: none; }
}
.brand__mark { width: 14px; height: 28px; background: var(--color-accent); display: block; flex: none; }
.brand__word { font-family: var(--font-heading); font-weight: 800; font-size: 19px; letter-spacing: 0.06em; }
.nav-desktop { display: flex; align-items: center; gap: 4px; position: relative; }
.nav-link {
  padding: 10px 14px; font-weight: 600; font-size: 15px; color: var(--color-text);
  text-decoration: none; background: transparent; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
}
.nav-link:hover, .nav-link[aria-current="page"] { color: var(--color-accent); }
/* Gleitender Unterstrich: liegt auf dem aktiven Punkt und wandert beim
   Hovern/Bereichswechsel animiert zum Ziel. Positionierung per JS (nav.js). */
.nav-underline {
  position: absolute; bottom: 4px; left: 0; height: 2px; width: 0;
  background: var(--color-accent); transform: translateX(0); opacity: 0;
  pointer-events: none;
  transition: transform .32s cubic-bezier(.65, 0, .2, 1), width .32s cubic-bezier(.65, 0, .2, 1), opacity .2s ease;
}
.nav-underline.is-visible { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .nav-underline { transition: opacity .2s ease; } }
.nav-caret { width: 6px; height: 6px; border-right: 2px solid var(--color-accent);
  border-bottom: 2px solid var(--color-accent); transform: rotate(45deg); display: block; margin-top: -3px; }
.nav-dd { position: relative; }
.nav-dd__menu {
  position: absolute; top: 56px; left: 0; right: auto; width: 290px; background: var(--color-surface);
  border: 1px solid var(--color-divider); box-shadow: var(--shadow-lg); padding: 8px; z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-8px); transform-origin: top center; pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
}
.nav-dd__menu[hidden] { display: none; }
.nav-dd__menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; transition: opacity .18s ease, transform .18s ease; }
@media (prefers-reduced-motion: reduce) { .nav-dd__menu { transition: none; } }
.nav-dd__item { display: flex; align-items: center; gap: 12px; padding: 11px 14px; color: var(--color-text); font-weight: 600; font-size: 15px; text-decoration: none; }
.nav-dd__item:hover { background: var(--color-bg); color: var(--color-accent); }
.nav-dd__item[aria-current="page"], .nav-dd__item[aria-current="page"] .nav-ic { color: var(--color-accent); }
/* Leistungs-Icons (Dropdown + Mobile) — currentColor, färbt beim Hover mit */
.nav-ic { flex: none; display: inline-flex; width: 20px; height: 20px; color: var(--color-accent); }
.nav-ic svg { width: 100%; height: 100%; display: block; }
.nav-dd__all { display: block; padding: 11px 14px; margin-top: 4px; border-top: 1px solid var(--color-divider);
  color: var(--color-neutral-700); font-size: 14px; text-decoration: none; }
.nav-dd__all:hover { color: var(--color-accent); }
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; color: var(--color-text); white-space: nowrap; text-decoration: none; }
.header-phone:hover { color: var(--color-accent); }
.phone-ic { flex: none; display: inline-flex; width: 16px; height: 16px; transform-origin: 50% 60%; }
.phone-ic svg { width: 100%; height: 100%; display: block; }
/* Hörer klingelt beim Hover über der Nummer */
.header-phone:hover .phone-ic { animation: phone-ring .9s ease-in-out infinite; }
@keyframes phone-ring {
  0%   { transform: rotate(0); }
  8%   { transform: rotate(-13deg); }
  16%  { transform: rotate(11deg); }
  24%  { transform: rotate(-9deg); }
  32%  { transform: rotate(7deg); }
  40%  { transform: rotate(-4deg); }
  48%  { transform: rotate(0); }
  100% { transform: rotate(0); }
}
@media (prefers-reduced-motion: reduce) { .header-phone:hover .phone-ic { animation: none; } }
.header-cta { position: relative; isolation: isolate; display: inline-flex; align-items: center;
  transform-origin: center center; background: transparent; color: #fff;
  padding: 12px 26px; font-weight: 700; font-size: 15px; white-space: nowrap; text-decoration: none; border-radius: 0; }
.header-cta::before {
  content: ""; position: absolute; inset: -4px -8px; z-index: -1;
  background: url(/images/pinsel-3.webp?v=6) center / 100% 100% no-repeat;
  transform: translateX(6px);
  transition: filter .2s ease; }
.header-cta:hover { background: transparent; color: #fff; transform: scale(1.06) rotate(1.5deg); box-shadow: none; }
.nav-burger { display: none; width: 44px; height: 44px; border: 0; background: transparent;
  cursor: pointer; margin-left: auto; align-items: center; justify-content: center; }
.nav-burger span, .nav-burger span::before, .nav-burger span::after {
  content: ""; display: block; width: 24px; height: 2px; background: var(--color-text); position: relative; }
.nav-burger span::before { position: absolute; top: -7px; }
.nav-burger span::after { position: absolute; top: 7px; }

/* Off-Canvas (mobil) */
.mobile-menu { position: fixed; inset: 0; z-index: 80; background: var(--color-bg);
  display: flex; flex-direction: column; padding: 20px 24px 40px; overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__top { display: flex; align-items: center; justify-content: space-between; height: 54px; margin-bottom: 20px; }
.mobile-menu__close { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center; }
.mobile-menu__close span { position: relative; width: 22px; height: 2px; background: var(--color-text); display: block; transform: rotate(45deg); }
.mobile-menu__close span::before { content: ""; position: absolute; inset: 0; background: var(--color-text); transform: rotate(-90deg); }
.mobile-nav { display: flex; flex-direction: column; }
.mobile-nav a { padding: 16px 0; font-family: var(--font-heading); font-weight: 800; font-size: 26px;
  color: var(--color-text); text-decoration: none; border-bottom: 1px solid var(--color-divider); }
.mobile-nav a.sub { display: flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 600; padding: 12px 0 12px 16px; }
.mobile-nav a.sub .nav-ic { width: 22px; height: 22px; }
.mobile-nav .grp { font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); padding: 24px 0 6px; }
.mobile-menu__actions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }

/* ── Hero (Startseite) ───────────────────────────────────────────────── */
.hero { max-width: var(--container); margin: 0 auto; padding: 72px 24px 0;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: 62px; line-height: 1.02; }
.hero__lead { font-size: 19px; line-height: 1.6; color: var(--color-neutral-800); margin: 26px 0 0; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px;
  border-top: 1px solid var(--color-divider); padding-top: 24px; }
.stat__num { font-family: var(--font-heading); font-size: 30px; font-weight: 700; color: var(--color-accent); }
.stat__lbl { font-size: 14px; color: var(--color-neutral-700); margin-top: 4px; }
.hero__media { position: relative; }
.hero__media picture { display: block; }
.hero__media img { width: 100%; height: 520px; object-fit: cover; }
.hero__badge { position: absolute; left: -32px; bottom: -28px; background: var(--color-accent);
  color: var(--color-bg); padding: 22px 26px; max-width: 260px; }
.hero__badge b { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.25; display: block; }
.hero__badge span { font-size: 14px; line-height: 1.5; margin-top: 6px; display: block; color: var(--color-accent-200); }

/* ── Leistungs-Kacheln (Raster sichtbar) ─────────────────────────────── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--color-divider); }
.svc-tile { background: var(--color-surface); color: var(--color-text); display: block; overflow: hidden; text-decoration: none; }
.svc-tile img { width: 100%; height: 200px; object-fit: cover; filter: saturate(1.1); transform: scale(1); backface-visibility: hidden; will-change: transform; transition: filter .3s ease, transform .3s ease; }
.svc-tile:hover img { filter: saturate(1.2); transform: scale(1.02); }
.svc-tile__ph { height: 200px; display: flex; align-items: center; justify-content: center; text-align: center; padding: 16px;
  background: var(--color-bg); border-bottom: 1px dashed color-mix(in srgb, var(--color-accent) 30%, var(--color-divider)); }
.svc-tile__ph span { color: var(--color-neutral-400); font-size: 13px; letter-spacing: .02em; }
.svc-tile__body { padding: 24px 24px 28px; }
.svc-tile__head { display: flex; align-items: baseline; gap: 10px; }
.svc-num { font-family: var(--font-heading); font-size: 13px; font-weight: 700; color: var(--color-accent); }
/* Nummerierung (01/02/…) seitenweit ausgeblendet – zu generischer Design-Look */
.svc-num, .svc-row__num, .svc-card__n { display: none !important; }
/* Quer-Navigation zu den anderen Leistungen (quadratisches Bild) */
.svc-cross { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.svc-cross__card { display: flex; flex-direction: column; border: 1px solid var(--color-divider); background: var(--color-bg); text-decoration: none; color: inherit; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.svc-cross__card:hover { border-color: var(--color-accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.svc-cross__img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(1); transition: filter .3s ease; }
.svc-cross__card:hover .svc-cross__img { filter: grayscale(0); }
.svc-cross__ph { width: 100%; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 12px;
  background: var(--color-bg); border-bottom: 1px dashed color-mix(in srgb, var(--color-accent) 30%, var(--color-divider)); }
.svc-cross__ph span { color: var(--color-neutral-400); font-size: 12px; }
.svc-cross__b { padding: 14px 16px 16px; }
.svc-cross__b h3 { font-size: 16px; font-weight: 700; }
.svc-cross__b p { font-size: 13px; line-height: 1.5; color: var(--color-neutral-700); margin-top: 4px; }
@media (max-width: 900px) { .svc-cross { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .svc-cross { grid-template-columns: repeat(2, 1fr); gap: 10px; } .svc-cross__b { padding: 12px 12px 14px; } .svc-cross__b h3 { font-size: 14px; } .svc-cross__b p { font-size: 12px; } }
/* Touch-Geräte ohne Hover: Cross-Nav-Bilder direkt farbig statt grau */
@media (hover: none) { .svc-cross__img { filter: none; } }
/* Markenpartner-Band (Logos folgen) */
.partners { padding: calc(var(--sec) / 2) 0; background: var(--color-surface); border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.partners__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.partners__lead { font-size: 15px; color: var(--color-neutral-700); max-width: 680px; margin: 8px 0 0; }
.partners__logos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 22px; }
.partners__logo { aspect-ratio: 5 / 2; border: 1px dashed color-mix(in srgb, var(--color-accent) 28%, var(--color-divider)); background: var(--color-bg); display: flex; align-items: center; justify-content: center; }
.partners__logo span { color: var(--color-neutral-400); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 760px) { .partners__logos { grid-template-columns: repeat(2, 1fr); } }
/* Impressionen-Karussell */
.carousel { position: relative; }
.carousel__track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; padding: 2px; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__slide { flex: 0 0 auto; width: 360px; max-width: 82vw; aspect-ratio: 4 / 3; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--color-divider); background: var(--color-surface); }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(1.05); transition: transform .4s ease; }
.carousel__slide:hover img { transform: scale(1.03); }
.carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--color-accent); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.28); display: flex; align-items: center; justify-content: center; transition: background .15s ease; }
.carousel__nav:hover { background: color-mix(in srgb, var(--color-accent) 85%, #000); }
.carousel__nav--prev { left: -12px; }
.carousel__nav--next { right: -12px; }
@media (max-width: 640px) { .carousel__nav { display: none; } }
/* Einzugsgebiet-Karte: Verbindung/Ort rot aufleuchten beim Chip-Hover */
.chips .chip { cursor: pointer; }
.map-box svg line { transition: stroke .15s ease, stroke-width .15s ease; }
.map-box svg line.is-active { stroke: var(--color-accent); stroke-width: 2.6; }
.map-box svg circle.is-active { fill: var(--color-accent); }
.map-box svg text.is-active { fill: var(--color-accent); font-weight: 700; }
/* Geöffnete FAQ-Frage: Überschrift in Akzentrot */
.faq__item[open] > summary { color: var(--color-accent); }
/* Paddingfreier Wrapper um die Antwort: seine Höhe wird animiert */
.faq__aw { overflow: hidden; }
.svc-tile h3 { font-size: 22px; }
.svc-tile p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); margin: 10px 0 0; }
.svc-tile:hover h3 { color: var(--color-accent); }

/* ── Vorher / Nachher ────────────────────────────────────────────────── */
.ba-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: center; }
.ba-range { width: 100%; margin-top: 24px; accent-color: var(--color-accent); }
.ba-stage { position: relative; height: 460px; overflow: hidden; background: var(--color-divider); touch-action: none; user-select: none; }
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-after { position: absolute; inset: 0; }
.ba-line { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--color-accent); }
.ba-handle { position: absolute; top: 50%; width: 40px; height: 40px; transform: translate(-50%, -50%);
  background: var(--color-accent); display: flex; align-items: center; justify-content: center; cursor: ew-resize; }
.ba-handle::before { content: "‹ ›"; color: var(--color-bg); font-size: 15px; letter-spacing: 2px; }
.ba-label { position: absolute; top: 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; padding: 6px 10px; color: var(--color-bg); }
.ba-label--after { left: 16px; background: var(--color-accent); }
.ba-label--before { right: 16px; background: rgba(23,18,15,0.8); }

/* ── Referenz-Teaser ─────────────────────────────────────────────────── */
.ref-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ref-teaser a { color: var(--color-text); display: block; text-decoration: none; }
.ref-teaser img { width: 100%; height: 260px; object-fit: cover; }
.ref-teaser .meta { font-size: 13px; color: var(--color-neutral-700); margin-top: 14px; }
.ref-teaser h3 { font-size: 21px; margin-top: 4px; }
.ref-teaser a:hover h3 { color: var(--color-accent); }

/* ── Dunkle Bänder / Bewertungen ─────────────────────────────────────── */
.band-dark { background: var(--color-text); color: var(--color-bg); margin-top: 0; padding: calc(var(--sec) / 2) 0; }
.band-dark__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--color-neutral-800); }
.review { background: var(--color-text); padding: 32px 30px; display: flex; flex-direction: column; }
.review__stars { color: var(--color-accent); font-size: 15px; letter-spacing: 3px; }
.review p { font-size: 17px; line-height: 1.6; color: var(--color-neutral-200); margin: 16px 0 0; }
.review__author { font-size: 14px; color: var(--color-neutral-400); margin-top: auto; padding-top: 18px; }

/* ── Einzugsgebiet ───────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.chip { border: 1px solid var(--color-divider); padding: 8px 14px; font-size: 14px; font-weight: 600; background: var(--color-surface);
  box-shadow: 0 2px 7px color-mix(in srgb, #2d2b2b 13%, transparent);
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease; }
.chip:hover { background: color-mix(in srgb, var(--color-accent) 8%, var(--color-bg));
  border-color: color-mix(in srgb, var(--color-accent) 45%, var(--color-divider));
  box-shadow: 0 5px 13px color-mix(in srgb, #2d2b2b 18%, transparent); transform: translateY(-1px); }

/* Trust-Leiste (Leistungsseiten, unter dem Hero) */
.trustbar { background: var(--color-surface); border-bottom: 1px solid var(--color-divider); }
.trustbar__inner { max-width: var(--container); margin: 0 auto; padding: 12px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 9px 22px; font-size: 14px; }
.trustbar__i { display: inline-flex; align-items: center; gap: 8px; color: var(--color-neutral-800); white-space: nowrap; }
.trustbar__i strong { color: var(--color-text); }
.trustbar__g { text-decoration: none; }
.trustbar__g:hover { color: var(--color-accent); }
.trustbar__stars { color: #f5a623; letter-spacing: 1px; }
.trust-todo { display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .04em; color: #b45309; background: #fff7ed; border: 1px dashed #f59e0b; border-radius: 3px; padding: 1px 6px; }
@media (max-width: 720px) { .trustbar__inner { font-size: 13px; gap: 8px 16px; } }

/* Google-Bewertung im „Was Kunden sagen"-Band (dunkel) */
.greviews { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-size: 15px;
  color: rgba(243,239,232,.82); padding: 4px 0; margin-left: auto; }
@media (max-width: 720px) { .greviews { margin-left: 0; } }
.greviews:hover { color: #fff; }
.greviews strong { color: #fff; font-size: 16px; }
.greviews__g { flex: none; width: 18px; height: 18px; display: block; }
.greviews__stars { color: #f5a623; letter-spacing: 1px; }
.greviews__meta { color: rgba(243,239,232,.7); }
.accent-box { background: var(--color-accent); color: var(--color-bg); padding: 24px 26px; margin-top: 26px; }
.accent-box b { font-family: var(--font-heading); font-weight: 800; font-size: 20px; display: block; letter-spacing: -0.01em; }
.accent-box p { font-size: 15px; line-height: 1.6; margin: 8px 0 0; color: var(--color-accent-200); }
.accent-box a { color: var(--color-bg); font-weight: 600; font-size: 15px; text-decoration: none;
  display: inline-block; margin-top: 12px; border-bottom: 2px solid rgba(243,242,242,.5); padding-bottom: 2px; }
.accent-box a:hover { border-color: var(--color-bg); }

/* Statische OpenStreetMap-Karte (selbst gehostet, kein externer Request). */
.map-box { position: relative; border: 1px solid var(--color-divider); overflow: hidden; background: var(--color-surface); }
.map-box img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.map-box:hover img { transform: scale(1.01); } /* dezenter 1% Zoom bei Hover */
/* „Muster"-Wasserzeichen für noch nicht finale Karten */
.map-box--muster::after {
  content: "Muster"; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-weight: 800; text-transform: uppercase; letter-spacing: .12em;
  font-size: clamp(44px, 11vw, 120px); color: rgba(255, 255, 255, 0.6);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45); transform: rotate(-20deg);
}

/* Box-/Karten-/Bild-Elemente site-weit mit Schatten (etwas kräftiger, Tiefe). */
.svc-tile, .map-box, .wizard, .extra-card, .hub-card, .svc-card,
.edu-box, .quote-box, .accent-box, .cta-banner,
.svc-row__media, .ref-card, .ba-stage,
.gallery-3 img, .gallery-2 img {
  box-shadow: 0 6px 18px color-mix(in srgb, #2d2b2b 20%, transparent);
}
.map-attr { position: absolute; right: 0; bottom: 0; font-size: 10px; line-height: 1.2;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent); color: var(--color-neutral-700); padding: 3px 7px; }
.map-attr a { color: inherit; text-decoration: underline; }
/* Team-Hero (Test): Foto in Originalgröße rechtsbündig, kein Zoom. Links
   entsteht ein heller Rand, auf dem der Text sitzt. Der rechte Versatz
   schiebt die Mülltonnen hinter den Baum aus dem Bild.
   Mobil: gestapelt (Text oben, Bild darunter, volle Breite). */
.team-hero { background: var(--color-bg); display: flex; flex-direction: column-reverse; }
.team-hero__pic { display: block; }
.team-hero__img { width: 100%; height: auto; display: block; }
.team-hero__scrim { display: none; }
.team-hero__inner { padding: 36px 20px 22px; color: var(--color-text); }
.team-hero__title { color: var(--color-text); margin: 6px 0 0; }
.team-hero__text { margin-top: 16px; }
.team-hero__text p { color: var(--color-neutral-800); }
.team-hero__text p + p { margin-top: 14px; }
@media (min-width: 900px) {
  /* Bereich in der Höhe kleiner als das Bild -> oben/unten steht Bild über,
     dieser Überstand ist der Parallax-Weg (kein Zoom, Bildhöhe bleibt fix). */
  .team-hero { position: relative; flex-direction: row; align-items: center; overflow: hidden; min-height: 430px; }
  .team-hero__pic { position: absolute; top: 0; bottom: 0; right: -100px;   /* Versatz -> Tonnen aus dem Bild */
    display: flex; align-items: center; justify-content: flex-end; }
  /* Feste Bildhöhe (= bisherige Darstellungsgröße) -> kein Einzoomen. Das Bild
     ist höher als der Bereich; der Überstand wird per JS für Parallax genutzt.
     Linke Kante am Bild selbst weich ausblenden (keine sichtbare Kante). */
  .team-hero__img { height: 540px; width: auto; max-width: none; will-change: transform;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 320px);
    mask-image: linear-gradient(90deg, transparent 0, #000 320px); }
  .team-hero__scrim { display: none; }
  .team-hero__inner { position: relative; z-index: 1; max-width: var(--container); width: 100%; margin: 0 auto; padding: 44px 24px; }
  .team-hero__text { max-width: 440px; margin-top: 18px; }
}

.map-ph { background: repeating-linear-gradient(135deg, var(--color-surface) 0 12px, var(--color-bg) 12px 24px);
  border: 1px solid var(--color-divider); display: flex; align-items: center; justify-content: center; text-align: center; padding: 32px; }
.map-ph__txt { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--color-neutral-700); line-height: 1.7; }

/* ── Ausbildungskasten ───────────────────────────────────────────────── */
.edu-box { background: var(--color-surface); border: 1px solid var(--color-divider);
  display: grid; grid-template-columns: 1fr 380px; gap: 0; align-items: stretch; }
.edu-box__body { padding: 56px; }
.edu-box img { width: 100%; height: 100%; object-fit: cover; }

/* ── Leistungsseite: dunkler Hero ────────────────────────────────────── */
.svc-hero { background: var(--color-text); color: var(--color-bg); }
.svc-hero__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; min-height: 420px; }
.svc-hero__text { padding: 64px 0; }
.svc-hero h1 { font-size: 52px; line-height: 1.04; }
.svc-hero .lead { color: var(--color-neutral-200); max-width: 540px; }
.svc-hero img { width: 100%; height: 420px; object-fit: cover; }
.breadcrumb { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--color-neutral-700); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: inherit; text-decoration: none; }
.breadcrumb a:hover { color: var(--color-accent); }
.svc-hero .breadcrumb { color: var(--color-neutral-400); }
.svc-hero .breadcrumb a:hover { color: var(--color-bg); }
.svc-hero .breadcrumb .cur { color: var(--color-bg); }

/* Detail-Liste "Im Detail" */
.detail-list { display: flex; flex-direction: column; }
.detail-list__row { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--color-divider); }
.detail-list__row::before { content: ""; width: 8px; height: 8px; background: var(--color-accent); margin-top: 8px; flex: none; }
.detail-list__row span { font-size: 16px; line-height: 1.55; }

/* Galerie 3er */
.gallery-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--color-divider); }
.gallery-3 img { width: 100%; height: 280px; object-fit: cover; }
.gallery-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--color-divider); }
.gallery-2 img { width: 100%; height: 360px; object-fit: cover; }

/* Roter Abschluss-Banner */
.cta-banner { background: var(--color-accent); color: var(--color-bg); padding: 52px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-banner h2 { font-size: 34px; max-width: 640px; }
.cta-banner p { font-size: 17px; color: var(--color-accent-200); margin: 10px 0 0; max-width: 560px; }

/* ── Leistungen-Hub ──────────────────────────────────────────────────── */
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.hub-card { background: var(--color-surface); border: 1px solid var(--color-divider);
  display: grid; grid-template-columns: 220px 1fr; color: var(--color-text); text-decoration: none; }
.hub-card:hover { border-color: var(--color-accent); }
.hub-card img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; }
.hub-card__body { padding: 28px 28px 30px; }
.hub-card__head { display: flex; align-items: baseline; gap: 10px; }
.hub-card h2 { font-size: 24px; }
.hub-card p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); margin: 10px 0 16px; }
.hub-card__more { font-size: 15px; font-weight: 600; color: var(--color-accent); }
.extra-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* Leistungsübersicht: abwechselndes Zig-Zag-Layout (Bild/Text wechseln die Seite),
   dazu wechselnde Hintergrundfarbe je Zeile (jede zweite in Surface, volle Breite). */
.svc-rows { display: flex; flex-direction: column; }
.svc-row { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 52px 0; }
.svc-row:nth-child(even)::before {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%;
  width: 100vw; transform: translateX(-50%); background: var(--color-surface);
}
.svc-row--flip .svc-row__media { grid-column: 2; grid-row: 1; }
.svc-row--flip .svc-row__text { grid-column: 1; grid-row: 1; }
.svc-row__media { display: block; overflow: hidden; border: 1px solid var(--color-divider); }
.svc-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; transition: transform .5s ease, filter .3s ease; }
.svc-row__media:hover img { transform: scale(1.03); filter: saturate(1.15); }
.svc-row__num { font-family: var(--font-heading); font-weight: 800; font-size: 44px; line-height: 1; color: var(--color-divider); display: block; }
.svc-row__text h2 { font-size: 36px; line-height: 1.08; margin: 8px 0 0; }
.svc-row__text p { font-size: 17px; line-height: 1.7; color: var(--color-neutral-800); margin: 16px 0 22px; max-width: 520px; }
@media (max-width: 860px) {
  .svc-row { grid-template-columns: 1fr; gap: 18px; padding: 36px 0; }
  .svc-row--flip .svc-row__media, .svc-row--flip .svc-row__text { grid-column: auto; grid-row: auto; }
  .svc-row__text h2 { font-size: 30px; }
}
.extra-card { background: var(--color-surface); border: 1px solid var(--color-divider); padding: 34px; }
.extra-card h3 { font-size: 24px; }
.extra-card p { font-size: 16px; line-height: 1.65; color: var(--color-neutral-800); margin: 12px 0 0; }
.extra-card img { width: 100%; height: 220px; object-fit: cover; margin-top: 22px; }

/* ── Referenzen-Übersicht ────────────────────────────────────────────── */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.filter-chip { border: 1px solid var(--color-divider); background: var(--color-surface); color: var(--color-text);
  padding: 10px 18px; font-weight: 600; font-size: 15px; cursor: pointer; font-family: inherit; }
.filter-chip[aria-pressed="true"] { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }
.ref-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ref-card { background: var(--color-surface); border: 1px solid var(--color-divider); display: flex; flex-direction: column; }
.ref-card img { width: 100%; height: 240px; object-fit: cover; }
.ref-card__body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.ref-card__kat { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.ref-card h3 { font-size: 22px; margin-top: 8px; }
.ref-spec { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; margin-bottom: 22px; font-size: 15px; color: var(--color-neutral-800); }
.ref-spec > div { display: flex; gap: 10px; }
.ref-spec .k { color: var(--color-neutral-600); width: 74px; flex: none; }
/* „Projekt ansehen": rot und unten bündig (gleiche Höhe über alle Karten) */
.ref-card .btn-outline { margin-top: auto; justify-content: center; padding: 12px 20px; font-size: 15px;
  background: var(--color-accent); color: #fff; border-color: var(--color-accent); }
.ref-card .btn-outline:hover { background: var(--color-accent-700); border-color: var(--color-accent-700); color: #fff; }

/* ── Projekt-Fallstudie ──────────────────────────────────────────────── */
.case-hero-img { width: 100%; height: auto; display: block; object-fit: contain; }
.facts { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 0; margin-top: 2px; box-shadow: 0 6px 18px color-mix(in srgb, #2d2b2b 20%, transparent); }
.fact { background: var(--color-surface); padding: 26px 24px; }
.fact__k { font-size: 13px; color: var(--color-neutral-600); letter-spacing: 0.1em; text-transform: uppercase; }
.fact__v { font-family: var(--font-heading); font-size: 20px; font-weight: 700; margin-top: 6px; }
.case-body { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.case-body h2 { font-size: 32px; }
.case-body h2 + p { font-size: 17px; line-height: 1.7; color: var(--color-neutral-800); margin: 16px 0 0; }
.case-body .blk + .blk { margin-top: 40px; }
.case-side { background: var(--color-surface); border: 1px solid var(--color-divider); padding: 32px; }
.quote-box { background: var(--color-text); color: var(--color-bg); padding: 32px; margin-top: 24px; }
.quote-box p { font-size: 20px; line-height: 1.55; font-family: var(--font-heading); font-weight: 600; margin: 0; }
.quote-box cite { font-size: 14px; color: var(--color-neutral-400); margin-top: 16px; display: block; font-style: normal; }

/* ── Team ────────────────────────────────────────────────────────────── */
.team-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.team-intro h1 { font-size: 54px; line-height: 1.04; }
.team-intro p { font-size: 18px; line-height: 1.7; color: var(--color-neutral-800); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.team-card img { width: 100%; height: 340px; object-fit: cover; }
.team-card__cap { border-top: 2px solid var(--color-accent); padding-top: 14px; margin-top: 14px; }
.team-card__name { font-family: var(--font-heading); font-size: 21px; font-weight: 700; }
.team-card__role { font-size: 15px; color: var(--color-neutral-700); margin-top: 2px; }
.edu-wide { background: var(--color-surface); border: 1px solid var(--color-divider); padding: 52px;
  display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: center; }
.edu-wide img { width: 100%; height: 320px; object-fit: cover; }

/* ── Kontakt ─────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 44px; }
.contact-block b { font-family: var(--font-heading); font-size: 19px; font-weight: 700; display: block; }
.contact-block .lines { font-size: 16px; line-height: 1.7; color: var(--color-neutral-800); margin-top: 8px; }
.contact-block a { color: var(--color-accent); text-decoration: none; }
.contact-block a:hover { text-decoration: underline; }

/* ── Anfrage-Assistent (Wizard) ──────────────────────────────────────── */
.wizard { background: var(--color-surface); border: 1px solid var(--color-divider); }
.wizard__bar { height: 4px; background: var(--color-divider); }
.wizard__bar > i { display: block; height: 4px; background: var(--color-accent); transition: width .45s cubic-bezier(.65, 0, .2, 1); }
/* Erfolgs-Flash bei 4/4: ein kurzes helles Aufflashen mit rotem Glühen. */
@keyframes wizard-complete-flash {
  0%, 100% { filter: brightness(1);   box-shadow: 0 0 0 0 rgba(225, 0, 24, 0); }
  45%      { filter: brightness(1.9); box-shadow: 0 0 10px 1px rgba(225, 0, 24, .65); }
}
.wizard__bar.is-complete > i { animation: wizard-complete-flash .5s ease-out; }
@media (prefers-reduced-motion: reduce) {
  .wizard__bar > i { transition: none; }
  .wizard__bar.is-complete > i { animation: none; }
}
.wizard__body { padding: 40px; }
.wizard__step-label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; color: var(--color-neutral-600); }
.wizard h2 { font-size: 28px; margin-top: 12px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.choice-col { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.choice { border: 1px solid var(--color-divider); background: var(--color-surface); color: var(--color-text);
  padding: 16px 18px; text-align: left; font-weight: 600; font-size: 16px; cursor: pointer; font-family: inherit; }
.choice:hover { border-color: var(--color-accent); }
.choice[aria-pressed="true"] { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }
.wizard label.fld { display: block; font-size: 15px; font-weight: 600; margin-top: 24px; }
.wizard .input { margin-top: 8px; padding: 14px; }
.wizard__summary { background: var(--color-bg); border-left: 3px solid var(--color-accent); padding: 16px;
  margin-top: 20px; font-size: 15px; line-height: 1.6; color: var(--color-neutral-800); }
.wizard__consent { display: flex; gap: 10px; margin-top: 20px; font-size: 14px; line-height: 1.5; color: var(--color-neutral-800); }
.wizard__consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--color-accent); flex: none; }
.wizard__nav { display: flex; gap: 12px; margin-top: 32px; align-items: center; flex-wrap: wrap; }
.wizard__error { color: var(--color-accent-700); font-size: 14px; font-weight: 600; margin-top: 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ── FAQ ─────────────────────────────────────────────────────────────── */
.faq__item { border-top: 1px solid var(--color-divider); }
.faq__q { width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 20px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-family: inherit; }
.faq__q span { font-family: var(--font-heading); font-size: 19px; font-weight: 600; }
.faq__sign { color: var(--color-accent); font-size: 24px; font-weight: 700; line-height: 1; }
.faq__a { font-size: 16px; line-height: 1.7; color: var(--color-neutral-800); margin: 0 0 22px; max-width: 800px; }
.faq__a[hidden] { display: none; }

/* Ablauf-Schritte */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--color-divider); margin-top: 28px; }
.step { background: var(--color-surface); padding: 26px 24px; }
.step__num { font-family: var(--font-heading); font-size: 34px; font-weight: 800; color: var(--color-divider); }
.step__t { font-family: var(--font-heading); font-size: 19px; font-weight: 700; margin-top: 8px; }
.step p { font-size: 15px; line-height: 1.6; color: var(--color-neutral-700); margin: 8px 0 0; }

/* ── Footer ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--color-text); color: var(--color-bg); padding: 64px 24px 32px; }
.site-footer__inner { max-width: var(--container); margin: 0 auto; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 16px; line-height: 1.65; color: var(--color-neutral-400); margin: 18px 0 0; max-width: 320px; }
.footer-logo { height: 90px; width: auto; display: block; margin: -8px 0 0 -14px; }
.footer-col h3 { font-family: var(--font-heading); font-size: 15px; font-weight: 700; letter-spacing: 0.08em; margin: 0; }
.footer-col .links { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.footer-col a, .footer-col .links span { color: var(--color-neutral-400); font-size: 15px; text-decoration: none; }
.footer-col a:hover { color: var(--color-bg); }
.footer-legal { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--color-neutral-800);
  margin-top: 48px; padding-top: 22px; font-size: 14px; color: var(--color-neutral-700); flex-wrap: wrap; }
.footer-legal a { color: var(--color-neutral-700); text-decoration: none; }
.footer-legal a:hover { color: var(--color-bg); }
.footer-legal .legal-links { display: flex; gap: 20px; }
.footer-legal .footer-credit { display: inline-flex; align-items: center; gap: 6px; }
.footer-legal .footer-credit a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.footer-legal .footer-credit img { width: 14px; height: 14px; display: block; }

/* Cookie-Hinweis */
.cookie-banner {
  position: fixed; left: 20px; bottom: 20px; z-index: 90; max-width: 380px;
  background: var(--color-surface); border: 1px solid var(--color-divider);
  box-shadow: var(--shadow-lg); padding: 22px 24px;
  opacity: 0; transform: translateY(14px) scale(.98); will-change: opacity, transform;
  transition: opacity .28s ease, transform .3s cubic-bezier(.2,.7,.2,1);
}
.cookie-banner.is-open { opacity: 1; transform: translateY(0) scale(1); }
@media (prefers-reduced-motion: reduce) { .cookie-banner { transition: none; } }
@media (max-width: 720px) { .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; } }

/* Rechtstext-Seiten (Impressum / Datenschutz) */
.legal { max-width: 820px; }
.legal h1 { font-size: 48px; margin-bottom: 24px; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal p, .legal li { font-size: 16px; line-height: 1.7; color: var(--color-neutral-800); }
.legal a { color: var(--color-accent); }
.legal ul { padding-left: 20px; }

/* ══════════════════════════════════════════════════════════════════════
   DEV: Startseiten-Varianten-Umschalter (A / B) — nur Entwurfsvergleich
   ══════════════════════════════════════════════════════════════════════ */
/* Das DEV-TWEAKS-Panel bringt seine Styles inline mit (components/dev-tweaks.js). */
/* Variantenblöcke: [hidden] muss über Layout-Displays (z. B. .hero{display:grid}) gewinnen. */
[data-variant][hidden] { display: none !important; }

/* Hero Variante B — vollflächiges Bild mit Overlay-Text */
.heroB { position: relative; overflow: hidden; background: var(--color-neutral-900); }
.heroB__pic { display: contents; }
/* etwas höher als die Sektion, damit der leichte Parallax-Versatz keine Lücke zeigt */
.heroB__img { position: absolute; left: 0; width: 100%; top: -80px; height: calc(100% + 160px);
  object-fit: cover; will-change: transform; }
.heroB__scrim { position: absolute; inset: 0;
  background: linear-gradient(90deg,
    rgba(32,30,29,.82) 0%,
    rgba(32,30,29,.62) 40%,
    rgba(32,30,29,.10) 62%,
    rgba(32,30,29,0) 72%); }
.heroB__inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 120px 24px;
  min-height: 760px; display: flex; flex-direction: column; justify-content: center; }
.heroB__kicker { align-self: flex-start; background: var(--color-accent); color: var(--color-bg);
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 8px 14px; }
.heroB__title { color: var(--color-bg); font-size: 64px; line-height: 1.02; margin: 22px 0 0; max-width: 840px; }
.heroB__lead { color: rgba(243,242,242,.9); font-size: 19px; line-height: 1.6; margin: 22px 0 0; max-width: 560px; }
.heroB__lead strong { display: inline-block; margin-top: 8px; color: #fff; font-weight: 700; }
.heroB__actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.btn-outline-light { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--color-bg);
  color: var(--color-bg); padding: 16px 28px; font-weight: 600; font-size: 16px; background: transparent; text-decoration: none; }
.btn-outline-light:hover { background: var(--color-bg); color: var(--color-text); }

/* DEV-Tweak „Bereich einfärben" (Akzent). Generischer Marker .is-accent-fill;
   pro Bereich die nötigen Innenflächen mit einer eigenen Regel überschreiben. */
.audience.is-accent-fill { background: var(--color-accent); }
.audience.is-accent-fill .audience__grid { background: color-mix(in srgb, #000 10%, var(--color-accent)); }
.audience.is-accent-fill .aud { background: var(--color-accent); }
.audience.is-accent-fill .aud b { color: var(--color-bg); }
.audience.is-accent-fill .aud span { color: var(--color-accent-200); }

/* Zielgruppen-Band (Teil von Variante B) */
.audience { background: var(--color-text); }
.audience__inner { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.audience__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.aud { background: var(--color-text); padding: 28px 24px; }
.aud b { font-family: var(--font-heading); font-size: 19px; font-weight: 700; display: block; color: var(--color-bg); }
.aud span { font-size: 14px; color: var(--color-neutral-400); margin-top: 6px; display: block; }

/* ══════════════════════════════════════════════════════════════════════
   Individueller Cursor: Farbrolle + Farb-Spur (nur Zeigergeräte).
   .paint-cursor wird von paint-cursor.js an <html> gesetzt.
   ══════════════════════════════════════════════════════════════════════ */
@media (pointer: fine) {
  /* reduced-motion: statischer Rollen-Cursor (kein Drehen/keine Spur) */
  html.pc-native, html.pc-native *:not(input):not(textarea):not(select) {
    cursor: url("/images/cursor-roller.png") 6 13, auto !important;
  }
  /* Nur ÜBER der Tapete: nativen Cursor ausblenden (Rolle übernimmt).
     pc-hidecursor wird von paint-cursor.js je nach Fläche an-/abgeschaltet. */
  html.pc-hidecursor, html.pc-hidecursor *:not(input):not(textarea):not(select) {
    cursor: none !important;
  }
}
.paint-cursor-el {
  position: fixed; top: 0; left: 0; width: 36px; height: 36px; pointer-events: none;
  z-index: 2147483647; opacity: 0;
  background: url("/images/cursor-roller.png") center / contain no-repeat;
  transform-origin: 6px 13px; will-change: transform;
}
/* Wand-Mal-Canvas: liegt über der Tapete (‑1) und unter dem Inhalt (.site = 1).
   Wird von der Raufaser-Maske moduliert -> Farbe sitzt auf den Chips, weniger in
   den Fugen (wie echte Farbe auf Raufaser). Maske nur laden, wenn aktiv. */
.paint-wall-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
/* Height-Map nur, wenn auch die Raufaser-Tapete an ist — sonst glatte Farbe. */
html.bg-tapete.paint-wall .paint-wall-canvas {
  -webkit-mask: url("/images/raufaser-mask.webp") center / cover no-repeat;
          mask: url("/images/raufaser-mask.webp") center / cover no-repeat;
}
.paint-trail { position: fixed; inset: 0; pointer-events: none; z-index: 9998; overflow: hidden; }

.paint-blob { position: fixed; border-radius: 50%; background: var(--paint-color, #f3a29b);
  will-change: transform, opacity; animation: paint-blob-fade .7s ease-out forwards; }
@keyframes paint-blob-fade {
  0%   { opacity: .5; transform: scale(1); }
  100% { opacity: 0;  transform: scale(.35); }
}

/* ── Native Scrollleiste (WebKit: Chrome/Edge/Safari) ──────────────────
   Track/Thumb bewusst wie der Chrome-Standard gehalten; geändert werden nur
   die Pfeile: oben weißes Chevron (auf dunkel), unten rotes Chevron (auf hell).
   Hinweis: sobald die Pfeile umgefärbt werden, nutzt Chrome die klassische
   Leiste. Firefox kann Pfeile nicht stylen. */
::-webkit-scrollbar { width: 12px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-track-piece:vertical:start { background: var(--color-accent); } /* oberhalb Thumb: rot */
::-webkit-scrollbar-track-piece:vertical:end { background: #f1f1f1; }              /* unterhalb Thumb: hell */
::-webkit-scrollbar-thumb { background: color-mix(in srgb, #fff 12%, var(--color-text)); border-radius: 10px; } /* einen Tick heller als die Box-Farbe */
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, #fff 24%, var(--color-text)); }
/* Nur die Einzel-Buttons oben/unten zeigen (Doppel-/Eck-Buttons aus). */
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-button:single-button:vertical:decrement,
::-webkit-scrollbar-button:single-button:vertical:increment {
  display: block; height: 12px; width: 12px;
  background-repeat: no-repeat; background-position: center; background-size: 10px 11px;
}
/* Pfeil oben: großes weißes, gefülltes Dreieck auf rotem Feld. */
::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-color: var(--color-accent);
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M5 2.6 L8.5 7.6 L1.5 7.6 Z' fill='white' stroke='white' stroke-width='2.4' stroke-linejoin='round'/></svg>");
}
::-webkit-scrollbar-button:single-button:vertical:decrement:hover { background-color: color-mix(in srgb, #000 10%, var(--color-accent)); }
/* Pfeil unten: großes rotes, gefülltes Dreieck auf hellem Feld. */
::-webkit-scrollbar-button:single-button:vertical:increment {
  background-color: #f1f1f1;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'><path d='M5 7.4 L1.5 2.4 L8.5 2.4 Z' fill='%23e10018' stroke='%23e10018' stroke-width='2.4' stroke-linejoin='round'/></svg>");
}
::-webkit-scrollbar-button:single-button:vertical:increment:hover { background-color: #e6e6e6; }

/* ══════════════════════════════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root { --sec: 72px; }
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero__media img { height: 440px; }
  .ba-grid, .two-col, .team-intro, .contact-grid, .case-body,
  .svc-hero__inner, .edu-wide, .edu-box { grid-template-columns: 1fr; }
  .edu-box__body { padding: 40px; }
  .edu-box img, .edu-wide img { height: 300px; }
  .hub-grid, .extra-grid { grid-template-columns: 1fr; }
  .svc-grid, .ref-teaser, .ref-grid, .team-grid, .gallery-3, .reviews { grid-template-columns: repeat(2, 1fr); }
  .facts, .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero h1 { font-size: 48px; }
  .svc-hero h1, .team-intro h1 { font-size: 40px; }
  .heroB__title { font-size: 48px; }
  .heroB__inner { min-height: 520px; padding: 96px 24px; }
  .audience__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  /* Desktop-Nav passt nicht mehr in die Kopfzeile -> Burger schon ab Tablet */
  .nav-desktop, .header-actions { display: none; }
  .nav-burger { display: flex; }
}
@media (max-width: 720px) {
  .nav-desktop, .header-actions { display: none; }
  .nav-burger { display: flex; }
  .site-header__inner { gap: 12px; }
  .hero { padding-top: 40px; }
  .hero h1 { font-size: 36px; }
  .hero__lead, .lead { font-size: 17px; }
  .hero__stats { gap: 12px; }
  .stat__num { font-size: 24px; }
  .hero__badge { left: 0; bottom: -20px; position: relative; margin-top: 16px; max-width: none; }
  .svc-grid, .ref-teaser, .ref-grid, .team-grid, .gallery-3, .gallery-2, .reviews,
  .choice-grid { grid-template-columns: 1fr; }
  .facts, .steps { grid-template-columns: 1fr 1fr; }
  .hub-card { grid-template-columns: 1fr; }
  .hub-card img { min-height: 180px; height: 180px; }
  .contact-cols { grid-template-columns: 1fr; gap: 24px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 26px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-cols > .footer-col:last-child { grid-column: 1 / -1; }
  .section, .hero { padding-left: 20px; padding-right: 20px; }
  .container, .site-header__inner, .svc-hero__inner, .site-footer { padding-left: 20px; padding-right: 20px; }
  .band-dark__inner { padding-left: 20px; padding-right: 20px; }
  h1 { font-size: 34px; }
  .svc-hero h1 { font-size: 34px; }
  .team-intro h1 { font-size: 36px; }
  .section-head h2, .cta-banner h2 { font-size: 30px; }
  .wizard__body { padding: 28px 22px; }
  .edu-box__body { padding: 28px 22px; }
  .cta-banner { padding: 36px 28px; }
  .edu-wide { padding: 26px; }
  .ba-stage { height: 320px; }
  .band-dark { padding: 56px 0; }
  .heroB__title { font-size: 34px; }
  .heroB__inner { min-height: 460px; padding: 72px 20px; }
  .heroB__lead { font-size: 17px; }
  /* Mobile-Hero: rotes Motiv sichtbar machen + Text klar lesbar */
  .heroB__img { object-position: 74% center; }
  .heroB__scrim { background: linear-gradient(180deg, rgba(24,22,21,.58) 0%, rgba(24,22,21,.74) 50%, rgba(24,22,21,.88) 100%); }
  .heroB__title, .heroB__lead { text-shadow: 0 1px 10px rgba(0,0,0,.5); }
  .audience__grid { grid-template-columns: 1fr; }
}
