/* ============================================================
   GEBRÜDER WAGNER — Design „Signal & Stahl"
   Signalrot · Stahlschwarz · Papierweiß
   Barlow Condensed (Plakat) · Barlow (Text) · IBM Plex Mono (Technik)
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Farben — kühles Stahlschwarz, Papierweiß, Signalrot (Dachpfanne als Signalfarbe) */
  --paper:        #F3F2ED;
  --paper-soft:   #E9E8E1;
  --paper-raise:  #FBFAF7;
  --steel:        #14171C;
  --steel-raise:  #1E2228;
  /* CI-Farben aus dem Logo (gebrueder-wagner.png) */
  --red:          #9C1006;
  --red-deep:     #7A0B03;
  --red-bright:   #EF4630;
  --blue:         #01468E;
  --blue-bright:  #4A8BE0;

  --text:         #191C20;
  --muted:        #5F6268;
  --text-dark-bg: #F3F2ED;
  --muted-dark-bg:#9BA0A8;

  --line:         rgba(25, 28, 32, .16);
  --line-dark:    rgba(243, 242, 237, .18);
  --line-onred:   rgba(251, 250, 247, .5);

  /* Typografie */
  --sans: 'Barlow', 'Helvetica Neue', Arial, sans-serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout & Motion */
  --container: 1340px;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --dur: .7s;

  --header-h: 5.25rem;
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--paper);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul[aria-label], ol { list-style: none; }
address { font-style: normal; }
sup { font-size: .6em; color: var(--red); font-weight: 600; }

::selection { background: var(--red); color: var(--paper-raise); }

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

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 1;
}

.section { padding-block: clamp(4.5rem, 10vw, 7.5rem); }

.section--dark {
  background: var(--steel);
  color: var(--text-dark-bg);
  position: relative;
}
.section--red {
  background: var(--red);
  color: var(--paper-raise);
  position: relative;
}
/* Absperrband-Kante am roten Band */
.section--red::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 10px;
  background: repeating-linear-gradient(-45deg,
    rgba(20, 23, 28, .3) 0 14px, transparent 14px 28px);
}

/* ---------- Typo-Bausteine ---------- */
.kicker {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Kicker-Slash in CI-Blau: Blau übernimmt die Rolle „Ordnung/Technik" */
.kicker::before {
  content: '/ ';
  color: var(--blue);
  font-weight: 600;
}
.kicker--on-dark, .section--dark .kicker { color: var(--muted-dark-bg); }
.kicker--on-dark::before, .section--dark .kicker::before { color: var(--blue-bright); }
.section--dark .section-head__intro { color: var(--muted-dark-bg); }
.kicker--on-red { color: var(--paper-raise); }
.kicker--on-red::before { color: var(--paper-raise); }

/* Akzentwort in Headlines: Rot statt Kursive */
.em { font-style: normal; color: var(--red); }
.section--dark .em { color: var(--red-bright); }
/* Auf dem roten Band: Akzentwort als weiße Plakette (Banner-Optik des Logos) */
.em--plate {
  display: inline-block;
  color: var(--red);
  background: var(--paper-raise);
  padding: .02em .16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.section-head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.section-head__row {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem 4rem;
  align-items: end;
  margin-top: 1.4rem;
}
.section-head__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: .95;
  letter-spacing: .008em;
  text-transform: uppercase;
  margin-top: 1.2rem;
}
.section-head__row .section-head__title { margin-top: 0; }
.section-head__intro {
  color: var(--muted);
  font-size: 1rem;
  max-width: 42ch;
  justify-self: end;
}

/* ---------- Buttons & Links ---------- */
.btn {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6em;
  padding: .95em 1.9em;
  border: 0;
  border-radius: 0;
  font-family: var(--cond);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s ease;
}
/* Hover: Füll-Wipe von links */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); }
.btn--red { background: var(--red); color: var(--paper-raise); }
.btn--red::before { background: var(--steel); }
.btn--ink { background: var(--steel); color: var(--paper); }
.btn--ink::before { background: #08090C; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  font-family: var(--cond);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  padding-block: .5em;
}
.text-link::after {
  content: '→';
  color: var(--red);
  transition: transform .3s var(--ease-out);
}
.text-link:hover::after { transform: translateX(.45em); }

/* ---------- Skip-Link & Scroll-Progress ---------- */
.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 200;
  background: var(--steel);
  color: var(--paper);
  padding: .8em 1.2em;
  text-decoration: none;
  font-size: .85rem;
  transform: translateY(-300%);
}
.skip-link:focus { transform: none; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 150;
  width: 100%;
  height: 3px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Header ---------- */
/* Topbar: dunkle Basis, invertiert über dunklen Sektionen (JS setzt --inverse) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--steel) 94%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--text-dark-bg);
  box-shadow: 0 1px 0 var(--line-dark);
  transition: background .35s ease, color .35s ease, box-shadow .35s ease;
}
.site-header--inverse {
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  color: var(--text);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
  transition: height .35s ease;
}
.site-header.is-scrolled .site-header__inner { height: 4.25rem; }

/* Logo in zwei CI-Varianten (hell/dunkel), weich überblendet je nach Header-Zustand */
.brand {
  display: grid;
  text-decoration: none;
}
.brand__logo {
  grid-area: 1 / 1;
  display: block;
  height: 3.1rem;
  width: auto;
  transition: height .35s ease, opacity .35s ease;
}
.site-header.is-scrolled .brand__logo { height: 2.6rem; }
.brand__logo--light { opacity: 0; }
.site-header--inverse .brand__logo--light { opacity: 1; }
.site-header--inverse .brand__logo--dark { opacity: 0; }
body.menu-open .brand__logo--light { opacity: 0; }
body.menu-open .brand__logo--dark { opacity: 1; }

.site-nav { display: flex; gap: clamp(1.2rem, 2.2vw, 2.2rem); }
.site-nav a {
  font-size: .92rem;
  font-weight: 500;
  text-decoration: none;
  padding-block: .4em;
  background: linear-gradient(var(--red-bright), var(--red-bright)) left bottom / 0 2px no-repeat;
  transition: background-size .3s var(--ease-out), color .2s ease;
}
.site-nav a:hover { color: var(--red-bright); background-size: 100% 2px; }
.site-header--inverse .site-nav a:hover { color: var(--red-deep); }
/* Scrollspy: aktive Sektion mit blauer Linie */
.site-nav a.is-active {
  background-image: linear-gradient(var(--blue-bright), var(--blue-bright));
  background-size: 100% 2px;
}
.site-header--inverse .site-nav a.is-active {
  background-image: linear-gradient(var(--blue), var(--blue));
}

.site-header__actions { display: flex; align-items: center; gap: 1.4rem; }
.site-header__phone {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease;
}
.site-header__phone svg { width: 1rem; height: 1rem; color: var(--red-bright); }
.site-header--inverse .site-header__phone svg { color: var(--red); }
.site-header__phone:hover { color: var(--red-bright); }
.site-header--inverse .site-header__phone:hover { color: var(--red-deep); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 3rem;
  height: 3rem;
  background: none;
  border: 1px solid var(--line-dark);
  cursor: pointer;
}
.site-header--inverse .menu-toggle { border-color: var(--line); }
.menu-toggle__line {
  display: block;
  width: 1.3rem;
  height: 2px;
  background: currentColor;
  transition: transform .3s var(--ease-out), opacity .3s;
}
.menu-toggle__label {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
.menu-toggle[aria-expanded="true"] .menu-toggle__line:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__line:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Mobile-Menü */
.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--steel);
  color: var(--text-dark-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--header-h) var(--pad) 2rem;
  opacity: 0;
  transition: opacity .35s ease;
}
.mobile-menu.is-open { opacity: 1; }
.mobile-menu__nav { display: flex; flex-direction: column; gap: .55rem; }
.mobile-menu__nav a {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(2.2rem, 9vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: .02em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(1.2rem);
  opacity: 0;
  transition: transform .5s var(--ease-out), opacity .5s ease;
}
.mobile-menu.is-open .mobile-menu__nav a { transform: none; opacity: 1; }
.mobile-menu__nav a:nth-child(1) { transition-delay: .05s; }
.mobile-menu__nav a:nth-child(2) { transition-delay: .1s; }
.mobile-menu__nav a:nth-child(3) { transition-delay: .15s; }
.mobile-menu__nav a:nth-child(4) { transition-delay: .2s; }
.mobile-menu__nav a:nth-child(5) { transition-delay: .25s; }
.mobile-menu__nav a:nth-child(6) { transition-delay: .3s; }
.mobile-menu__num {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 500;
  color: var(--red-bright);
}
.mobile-menu__foot {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-dark);
  font-size: .9rem;
  color: var(--muted-dark-bg);
}
.mobile-menu__foot a {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-dark-bg);
  text-decoration: none;
}
body.menu-open { overflow: hidden; }
body.menu-open .site-header {
  background: transparent;
  color: var(--text-dark-bg);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.menu-open .menu-toggle { border-color: var(--line-dark); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(2rem, 6vh, 4.5rem));
  padding-bottom: clamp(3rem, 7vw, 5.5rem);
}
/* Aufmaß-Raster im Hintergrund */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: .38;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 96%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 96%);
}
/* Große Giebel-Kontur als technisches Wasserzeichen hinter dem Bild */
.hero::after {
  content: '';
  position: absolute;
  top: clamp(4rem, 9vh, 7rem);
  right: -4vw;
  width: clamp(320px, 44vw, 660px);
  aspect-ratio: 64 / 58;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath fill='none' stroke='%239C1006' stroke-width='.5' d='M32 1.5 62.5 56.5H1.5Z'/%3E%3Cpath fill='none' stroke='%2301468E' stroke-width='.5' d='M32 15 55 55.5H9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .55;
}
.hero .container { z-index: 2; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}
.hero__kicker { margin-bottom: 1.6rem; }
.hero__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(3rem, 7vw, 6.6rem);
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.hero__title .line {
  display: block;
  overflow: hidden;
  padding-bottom: .06em;
  margin-bottom: -.06em;
}
.hero__title .line__inner { display: block; }
.hero__lead {
  margin-top: 1.8rem;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--muted);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.6rem;
  margin-top: 2.2rem;
}
.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem;
  margin-top: 2.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.hero__facts li {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
/* Giebel-Marke aus dem Logo (rot/blau) als Listen-Marker */
.hero__facts li::before {
  content: '';
  width: .95rem;
  height: .86rem;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath fill='%239C1006' fill-rule='evenodd' d='M32 0L64 58H0Z M32 16L49 50H15Z'/%3E%3Cpath fill='%2301468E' d='M32 23L45 53H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero__media { position: relative; }
/* Registermarken statt Zierrahmen — Aufmaß-Optik */
.hero__marks {
  position: absolute;
  inset: -14px;
  pointer-events: none;
  --m: linear-gradient(var(--red), var(--red));
  background:
    var(--m) left 0 top 0 / 26px 3px,
    var(--m) left 0 top 0 / 3px 26px,
    var(--m) right 0 top 0 / 26px 3px,
    var(--m) right 0 top 0 / 3px 26px,
    var(--m) left 0 bottom 0 / 26px 3px,
    var(--m) left 0 bottom 0 / 3px 26px,
    var(--m) right 0 bottom 0 / 26px 3px,
    var(--m) right 0 bottom 0 / 3px 26px;
  background-repeat: no-repeat;
}
.hero__figure {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 4.15;
  background: var(--paper-soft);
}
.hero__figure img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  transform: scale(1.06);
  will-change: transform;
}
/* Rote Messlatte links neben dem Bild */
.hero__ruler {
  position: absolute;
  left: -2.4rem;
  top: 4%;
  bottom: 4%;
  width: 9px;
  border-left: 2px solid var(--red);
  background: repeating-linear-gradient(to bottom,
    transparent 0 44px, var(--red) 44px 46px);
}
/* Bildunterschrift vertikal an der Bildkante */
.hero__caption {
  position: absolute;
  top: 0;
  right: -1.9rem;
  writing-mode: vertical-rl;
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero-Intro-Animation (nur mit JS aktiv, sonst sofort sichtbar) */
.js .hero .line__inner {
  transform: translateY(115%);
  transition: transform .95s var(--ease-out);
}
.js .hero .line:nth-child(2) .line__inner { transition-delay: .1s; }
.js .hero .line:nth-child(3) .line__inner { transition-delay: .2s; }
.js .hero .line:nth-child(4) .line__inner { transition-delay: .3s; }
.js .hero__kicker, .js .hero__lead, .js .hero__actions, .js .hero__facts, .js .hero__caption {
  opacity: 0;
  transform: translateY(1.1rem);
  transition: opacity .8s ease, transform .8s var(--ease-out);
}
.js .hero__kicker { transition-delay: .05s; }
.js .hero__lead { transition-delay: .35s; }
.js .hero__actions { transition-delay: .45s; }
.js .hero__facts { transition-delay: .55s; }
.js .hero__caption { transition-delay: .8s; }
.js .hero__figure { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease-out) .25s; }
.js .hero__marks { opacity: 0; transition: opacity .8s ease .9s; }

.js.is-loaded .hero .line__inner { transform: none; }
.js.is-loaded .hero__kicker, .js.is-loaded .hero__lead, .js.is-loaded .hero__actions,
.js.is-loaded .hero__facts, .js.is-loaded .hero__caption { opacity: 1; transform: none; }
.js.is-loaded .hero__figure { clip-path: inset(0 0 0 0); }
.js.is-loaded .hero__marks { opacity: 1; }

/* ---------- Leistungszeile (statisches Band) ---------- */
.ticker {
  padding-block: 1.15rem;
  border-block: 1px solid var(--line-dark);
}
.ticker__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .8rem 2rem;
}
.ticker__item {
  font-family: var(--cond);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__item--accent {
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .1em;
  color: var(--blue-bright);
}
/* Giebel-Marke (helle CI-Variante) als Trennzeichen */
.ticker__sep {
  width: .84rem;
  height: .76rem;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath fill='%23EF4630' fill-rule='evenodd' d='M32 0L64 58H0Z M32 16L49 50H15Z'/%3E%3Cpath fill='%234A8BE0' d='M32 23L45 53H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* ---------- Leistungen ---------- */
.services__layout {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: start;
}
.service { border-top: 1px solid var(--line); }
.service:last-child { border-bottom: 1px solid var(--line); }
.service__link {
  display: grid;
  grid-template-columns: 3.6rem 1fr auto;
  gap: 1.4rem;
  align-items: start;
  padding-block: 2.3rem;
  text-decoration: none;
}
/* Giebel-Marke statt Nummerierung */
.service__mark {
  width: 1.55rem;
  height: 1.4rem;
  margin-top: .5rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath fill='%23EF4630' fill-rule='evenodd' d='M32 0L64 58H0Z M32 16L49 50H15Z'/%3E%3Cpath fill='%234A8BE0' d='M32 23L45 53H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .85;
  transition: opacity .3s ease, transform .3s var(--ease-out);
}
.service__link:hover .service__mark { opacity: 1; transform: translateY(-3px); }
.service__body { transition: transform .4s var(--ease-out); }
.service__link:hover .service__body { transform: translateX(.5rem); }
.service__titlerow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .4rem .9rem;
}
.service__badge {
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #FFFFFF;
  background: var(--blue);
  padding: .5em .75em;
  white-space: nowrap;
}
/* Kerngeschäft-Badge in Rot */
.service__badge--core { background: var(--red); }
.service__title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(1.9rem, 2.8vw, 2.6rem);
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
  transition: color .25s ease;
}
.service__link:hover .service__title { color: var(--red); }
.service__desc {
  margin-top: .7rem;
  max-width: 50ch;
  font-size: .98rem;
  color: var(--muted);
}
.service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
}
.service__tags li {
  font-family: var(--mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .5em .85em;
}
.service__arrow {
  font-size: 1.5rem;
  color: var(--red);
  padding-top: .4rem;
  opacity: .45;
  transition: opacity .3s ease, transform .3s var(--ease-out);
}
.service__link:hover .service__arrow { opacity: 1; transform: translateX(.4rem); }

.service__img { display: none; }

/* Gewerke auf dunklem Grund */
.section--dark .service { border-color: var(--line-dark); }
.section--dark .service__arrow { color: var(--red-bright); }
.section--dark .service__link:hover .service__title { color: var(--red-bright); }
.section--dark .service__desc { color: var(--muted-dark-bg); }
.section--dark .service__tags li {
  color: var(--muted-dark-bg);
  border-color: var(--line-dark);
}
.section--dark .service__badge { background: var(--blue-bright); color: #10141B; }
.section--dark .service__badge--core { background: var(--red-bright); }
.section--dark .services__visual { background: var(--steel-raise); }

.services__visual {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background: var(--paper-soft);
}
.services__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity .55s ease, transform .8s var(--ease-out);
}
.services__visual img.is-active { opacity: 1; transform: scale(1); }

/* ---------- Manifest + Zahlen ---------- */
.manifest {
  position: relative;
  overflow: clip;
  padding-bottom: clamp(3rem, 6vw, 5rem);
}
/* Giebel-Kontur als Wasserzeichen rechts */
.manifest::after {
  content: '';
  position: absolute;
  right: -4vw;
  bottom: -14%;
  width: clamp(280px, 30vw, 520px);
  aspect-ratio: 64 / 58;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath fill='none' stroke='%239C1006' stroke-width='.5' d='M32 1.5 62.5 56.5H1.5Z'/%3E%3Cpath fill='none' stroke='%2301468E' stroke-width='.5' d='M32 15 55 55.5H9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .45;
}
.manifest__quote {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: .98;
  letter-spacing: .008em;
  text-transform: uppercase;
  max-width: 22ch;
}
.manifest__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem 2rem;
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.stat {
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding-left: 1.5rem;
}
.stat__value {
  order: -1;
  margin-bottom: .8rem;
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  line-height: 1;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__label sup { color: var(--red); }

/* ---------- Referenzen (horizontale Galerie) ---------- */
.gallery { padding-top: clamp(3rem, 6vw, 5rem); }
.gallery__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.8rem;
}
.gallery__head .section-head__title { margin-top: 1.2rem; }
.gallery__nav { display: flex; gap: .7rem; }
.gallery__btn {
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid var(--line-dark);
  background: none;
  color: var(--text-dark-bg);
  font-size: 1.15rem;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, opacity .25s ease;
}
.gallery__btn:hover { background: var(--red); border-color: var(--red); color: var(--paper-raise); }
.gallery__btn:disabled { opacity: .3; cursor: default; }
.gallery__btn:disabled:hover { background: none; border-color: var(--line-dark); color: var(--text-dark-bg); }

.gallery__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  scroll-padding-inline: max(var(--pad), calc((100vw - var(--container)) / 2 + var(--pad)));
  cursor: grab;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__viewport.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery__track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  list-style: none;
}
.gallery__card {
  flex: 0 0 auto;
  width: min(430px, 80vw);
  scroll-snap-align: start;
}
.gallery__imgwrap {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--steel-raise);
}

/* Vorher/Nachher-Vergleich */
.compare {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--steel-raise);
  --pos: 50%;
}
.compare img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.compare__before {
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:focus-within { outline: 2px solid var(--red); outline-offset: 3px; }
.compare__divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 2px;
  margin-left: -1px;
  background: var(--paper);
  pointer-events: none;
}
.compare__divider::after {
  content: '↔';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  background: var(--paper);
  color: var(--steel);
  font-size: .95rem;
}
.compare__tag {
  position: absolute;
  top: .7rem;
  font-family: var(--mono);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .45em .65em;
  color: var(--paper);
  pointer-events: none;
}
.compare__tag--before { left: .7rem; background: rgba(20, 23, 28, .78); }
.compare__tag--after { right: .7rem; background: var(--red); }
.gallery__imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease-out);
}
.gallery__card:hover .gallery__imgwrap img { transform: scale(1.05); }
.gallery__meta {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-top: 1.1rem;
}
.gallery__place { font-weight: 600; font-size: .98rem; }
.gallery__job {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted-dark-bg);
}
.gallery__job i {
  font-style: normal;
  color: var(--blue-bright);
  margin-left: .5em;
}
.gallery__progress {
  margin-top: 2.6rem;
  height: 2px;
  background: var(--line-dark);
  overflow: hidden;
}
.gallery__progress span {
  display: block;
  height: 100%;
  background: var(--red-bright);
  transform: scaleX(.2);
  transform-origin: left;
  transition: transform .2s linear;
}

/* ---------- Manufaktur ---------- */
.manufaktur__grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.manufaktur__media { position: relative; margin-bottom: 3.5rem; }
.manufaktur__main {
  overflow: hidden;
  aspect-ratio: 4 / 4.8;
}
.manufaktur__main img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  will-change: transform;
}
.manufaktur__small {
  position: absolute;
  right: -1.6rem;
  bottom: -3rem;
  width: 52%;
  border: .5rem solid var(--paper);
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(15, 18, 22, .4);
}
.manufaktur__small img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; height: 100%; }

.manufaktur__text {
  margin-top: 1.6rem;
  max-width: 52ch;
  color: var(--muted);
}
.values { margin-top: 2.2rem; }
.values__item {
  display: grid;
  grid-template-columns: 2.9rem 1fr;
  gap: 1.1rem;
  padding-block: 1.45rem;
  border-top: 1px solid var(--line);
}
.values__item:last-child { border-bottom: 1px solid var(--line); }
.values__num {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  color: var(--blue);
  padding-top: .3rem;
}
.values__item h3 { font-size: 1.05rem; font-weight: 600; }
.values__item p { margin-top: .35rem; font-size: .95rem; color: var(--muted); max-width: 52ch; }

/* Prüfstempel statt Unterschrift */
.manufaktur__stamp {
  display: inline-block;
  margin-top: 2.6rem;
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  border: 2px solid var(--red);
  padding: .95em 1.35em;
  transform: rotate(-2deg);
  transform-origin: left center;
}

/* ---------- Ablauf ---------- */
.ablauf__grid {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.ablauf__sticky { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.ablauf__sticky .section-head__title { margin-top: 1.2rem; }
.ablauf__figure {
  margin-top: 2.2rem;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.ablauf__figure img { width: 100%; height: 100%; object-fit: cover; }
.ablauf__note {
  margin-top: 1.3rem;
  font-family: var(--mono);
  font-size: .78rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 44ch;
}

/* Prozess-Linie: verbindet die Schritte, füllt sich beim Scrollen (JS setzt --line-progress) */
.steps { position: relative; }
.steps::before, .steps::after {
  content: '';
  position: absolute;
  left: .55rem;
  top: 2.8rem;
  bottom: 2.8rem;
  width: 2px;
}
.steps::before { background: var(--line-dark); }
.steps::after {
  background: var(--blue-bright);
  transform: scaleY(var(--line-progress, 0));
  transform-origin: top;
}
.step__num {
  position: relative;
  background: var(--steel);
  padding-block: .3rem;
}
.step {
  display: grid;
  grid-template-columns: 4.2rem 1fr;
  gap: 1.3rem;
  padding-block: 2.1rem;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--blue);
  line-height: 1.5;
  align-self: start;
}
.step__body h3 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.step__body p { margin-top: .55rem; color: var(--muted); font-size: .98rem; max-width: 50ch; }

/* Ablauf auf dunklem Grund — Prozess-Sektion trägt Blau */
.section--dark .step { border-color: var(--line-dark); }
.section--dark .step__num { color: var(--blue-bright); }
.section--dark .step__body p,
.section--dark .ablauf__note { color: var(--muted-dark-bg); }
.ablauf .em { color: var(--blue-bright); }

/* ---------- FAQ (natives Akkordeon) ---------- */
.faq__list { max-width: 900px; }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.35rem 0;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__q {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  line-height: 1.1;
  letter-spacing: .015em;
  text-transform: uppercase;
  transition: color .2s ease;
}
.faq__item summary:hover .faq__q { color: var(--red); }
.faq__item summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--blue);
}
.faq__item[open] summary::after { content: '−'; }
.faq__a {
  padding: 0 0 1.6rem;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- Stimme (Testimonial) — Bühne mit Registermarken-Rahmen ---------- */
.voice__inner { max-width: 940px; }
.voice__stage {
  position: relative;
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.6rem, 5vw, 4.5rem);
}
.voice__frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  --m: linear-gradient(var(--red), var(--red));
  background:
    var(--m) left 0 top 0 / 28px 3px,
    var(--m) left 0 top 0 / 3px 28px,
    var(--m) right 0 top 0 / 28px 3px,
    var(--m) right 0 top 0 / 3px 28px,
    var(--m) left 0 bottom 0 / 28px 3px,
    var(--m) left 0 bottom 0 / 3px 28px,
    var(--m) right 0 bottom 0 / 28px 3px,
    var(--m) right 0 bottom 0 / 3px 28px;
  background-repeat: no-repeat;
}
/* Hängendes »Guillemet« links vor der ersten Zeile */
.voice__quote { position: relative; margin-top: 1.8rem; }
.voice__glyph {
  position: absolute;
  top: -.06em;
  left: -.12em;
  transform: translateX(-100%);
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(3rem, 4.6vw, 4.2rem);
  line-height: .9;
  color: var(--blue);
}
.voice__quote p {
  font-size: clamp(1.55rem, 2.9vw, 2.3rem);
  font-weight: 500;
  line-height: 1.35;
  max-width: 30ch;
}
.voice__quote cite {
  display: block;
  margin-top: 2rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.voice__quote cite::before {
  content: '/ ';
  color: var(--blue);
  font-weight: 600;
}
/* Stimme auf dunklem Grund */
.voice.section--dark .voice__frame {
  --m: linear-gradient(var(--red-bright), var(--red-bright));
}
.voice.section--dark .voice__glyph { color: var(--blue-bright); }
.voice.section--dark .voice__quote cite { color: var(--muted-dark-bg); }
.voice.section--dark .voice__quote cite::before { color: var(--blue-bright); }

/* ---------- Karriere ---------- */
.karriere { overflow: clip; }
/* Giebel-Kontur in Papier auf dem roten Band */
.karriere::after {
  content: '';
  position: absolute;
  right: -3vw;
  bottom: -20%;
  width: clamp(280px, 28vw, 500px);
  aspect-ratio: 64 / 58;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath fill='none' stroke='%23F3F2ED' stroke-width='.5' d='M32 1.5 62.5 56.5H1.5Z'/%3E%3Cpath fill='none' stroke='%23F3F2ED' stroke-width='.35' d='M32 15 55 55.5H9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  opacity: .3;
}
.karriere__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.karriere .section-head__title { margin-top: 1.2rem; }
.karriere__text {
  margin-top: 1.4rem;
  max-width: 46ch;
  color: var(--paper-raise);
  opacity: .94;
}
.karriere__jobs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .6rem;
  margin-bottom: 1.8rem;
}
.karriere__jobs li {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--line-onred);
  padding: .65em 1em;
}

/* ---------- Kontakt ---------- */
.kontakt__grid {
  display: grid;
  grid-template-columns: 1fr .95fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: start;
}
.kontakt__phone {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.6vw, 3.9rem);
  line-height: 1;
  letter-spacing: .01em;
  text-decoration: none;
  transition: color .25s ease;
}
.kontakt__phone:hover { color: var(--red); }
.kontakt__reach { margin-top: .9rem; color: var(--muted); font-size: .95rem; }
.kontakt__reach a {
  color: var(--text);
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.kontakt__reach a:hover { color: var(--red-deep); }

.kontakt__orte {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.ort { border-top: 1px solid var(--line); padding-top: 1.2rem; }

/* Stilisierte Niedersachsen-Karte */
.kontakt__map {
  max-width: 440px;
  margin-top: 3rem;
}
.map__land {
  fill: var(--paper-soft);
  stroke: var(--muted);
  stroke-width: .45;
  stroke-linejoin: round;
}
.map__route {
  stroke: var(--blue);
  stroke-width: .5;
  stroke-dasharray: 2 1.6;
  fill: none;
}
.map__marker-outer { fill: var(--red); }
.map__marker-inner { fill: var(--blue); }
.map__label {
  font-family: var(--mono);
  font-size: 3.2px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  fill: var(--text);
}
.map__title {
  font-family: var(--mono);
  font-size: 3.3px;
  letter-spacing: .28em;
  text-transform: uppercase;
  fill: var(--muted);
  opacity: .8;
}
.ort__name {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.ort address { margin-top: .5rem; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* CTA-Karte: Anfrage läuft über ein externes Formular */
.kontakt__cta {
  background: var(--steel);
  color: var(--text-dark-bg);
  padding: clamp(2rem, 3.5vw, 3rem);
  box-shadow: 0 28px 56px -30px rgba(15, 18, 22, .45);
}
.kontakt__cta-title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: .98;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin-top: 1.4rem;
}
.kontakt__cta-title em { font-style: normal; color: var(--red-bright); }
.kontakt__cta-list { margin-top: 1.8rem; }
.kontakt__cta-list li {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  padding-block: .8rem;
  border-top: 1px solid var(--line-dark);
  font-size: .97rem;
  color: var(--muted-dark-bg);
}
.kontakt__cta-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.kontakt__cta-list li::before {
  content: '';
  width: .8rem;
  height: .72rem;
  flex: none;
  transform: translateY(.05em);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath fill='%23EF4630' fill-rule='evenodd' d='M32 0L64 58H0Z M32 16L49 50H15Z'/%3E%3Cpath fill='%234A8BE0' d='M32 23L45 53H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.kontakt__cta-btn { width: 100%; margin-top: 2rem; }
.kontakt__cta-note {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: .7rem;
  line-height: 1.7;
  color: var(--muted-dark-bg);
}
.kontakt__cta-note a {
  color: var(--text-dark-bg);
  text-decoration-color: var(--red-bright);
  text-underline-offset: 3px;
}
.kontakt__cta-note a:hover { color: var(--red-bright); }

/* ---------- Footer ---------- */
.footer { padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer__mega {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(3.4rem, 11vw, 10rem);
  line-height: .95;
  letter-spacing: .01em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(243, 242, 237, .34);
  padding-bottom: clamp(2rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line-dark);
}
@supports not (-webkit-text-stroke: 1px black) {
  .footer__mega { color: rgba(243, 242, 237, .16); }
}
.footer__cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2.5rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}
.footer__logo {
  display: block;
  width: 188px;
  height: auto;
  margin-bottom: 1.4rem;
}
.footer__claim {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.15;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.footer__col h3 {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-dark-bg);
  margin-bottom: 1.1rem;
}
.footer__col a {
  display: block;
  font-size: .95rem;
  text-decoration: none;
  color: var(--text-dark-bg);
  opacity: .85;
  margin-bottom: .55rem;
  transition: color .2s ease, opacity .2s ease;
}
.footer__col a:hover { color: var(--red-bright); opacity: 1; }
.footer__col p {
  font-size: .92rem;
  color: var(--muted-dark-bg);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .8rem 2rem;
  border-top: 1px solid var(--line-dark);
  padding-top: 1.6rem;
  font-size: .8rem;
  color: var(--muted-dark-bg);
}
.footer__links a { color: inherit; text-underline-offset: 3px; }
.footer__links a:hover { color: var(--text-dark-bg); }
.footer__disclaimer {
  width: 100%;
  font-family: var(--mono);
  font-size: .68rem;
}
.footer__disclaimer sup { color: var(--red-bright); }

/* ---------- Unterseiten: Kopf, CTA-Band, Rechtstexte ---------- */
.page-head {
  position: relative;
  padding: calc(var(--header-h) + clamp(2rem, 5vh, 3.5rem)) 0 clamp(2.5rem, 5vw, 4rem);
}
.page-head::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 76px 76px;
  opacity: .38;
  -webkit-mask-image: linear-gradient(to bottom, black 30%, transparent 96%);
  mask-image: linear-gradient(to bottom, black 30%, transparent 96%);
}
.page-head__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.page-head__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(2.8rem, 5.8vw, 5rem);
  line-height: .95;
  letter-spacing: .006em;
  text-transform: uppercase;
  margin-top: 1.3rem;
}
.page-head__lead {
  margin-top: 1.5rem;
  max-width: 56ch;
  font-size: 1.08rem;
  color: var(--muted);
}
.page-head__tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.6rem;
}
.page-head__tags li {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: .5em .85em;
}
.page-head__media { position: relative; }
.page-head__figure {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--paper-soft);
}
.page-head__figure img { width: 100%; height: 100%; object-fit: cover; }
.kicker a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--blue);
  text-underline-offset: 3px;
}
.kicker a:hover { color: var(--red); }

/* Leistungs-Detailblöcke (dunkle Sektion) */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 5rem);
}
.detail {
  border-top: 1px solid var(--line-dark);
  padding-top: 1.4rem;
}
.detail__mark {
  width: 1.3rem;
  height: 1.18rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 58'%3E%3Cpath fill='%23EF4630' fill-rule='evenodd' d='M32 0L64 58H0Z M32 16L49 50H15Z'/%3E%3Cpath fill='%234A8BE0' d='M32 23L45 53H19Z'/%3E%3C/svg%3E") center / contain no-repeat;
  margin-bottom: 1rem;
}
.detail h3 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.6rem;
  line-height: 1.05;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.detail p { margin-top: .6rem; color: var(--muted-dark-bg); font-size: .97rem; }

/* Video-Block (in dunkler Sektion) */
.video-block { margin-top: clamp(3rem, 6vw, 4.5rem); }
.video-block__kicker { margin-bottom: 1.2rem; }
.video-block video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-block__note {
  margin-top: .9rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--muted-dark-bg);
}

/* CTA-Band (rote Abschluss-Sektion der Unterseiten) */
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band .section-head__title { margin-top: 1.2rem; }
.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.2rem;
}
.cta-band__phone {
  font-family: var(--mono);
  font-size: .9rem;
  font-weight: 600;
  color: var(--paper-raise);
  text-decoration: none;
}
.cta-band__phone:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Rechtsseiten */
.legal { max-width: 800px; }
.legal h2 {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin-top: 2.6rem;
}
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 1.05rem; font-weight: 600; margin-top: 1.8rem; }
.legal p, .legal li { color: var(--muted); margin-top: .8rem; }
.legal ul { margin-top: .8rem; padding-left: 1.3rem; list-style: disc; }
.legal a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--red-deep); }
.legal strong { color: var(--text); }

/* ---------- Cookie-Banner ---------- */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--steel);
  color: var(--text-dark-bg);
  border-top: 3px solid var(--red);
  box-shadow: 0 -14px 44px -22px rgba(0, 0, 0, .65);
  transform: translateY(100%);
  transition: transform .45s var(--ease-out);
}
.cookie-banner.is-visible { transform: none; }
.cookie-banner__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 1.25rem var(--pad);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem 2.5rem;
}
.cookie-banner__text { flex: 1 1 30rem; }
.cookie-banner__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: .25rem;
}
.cookie-banner__text p:last-child {
  font-size: .88rem;
  line-height: 1.55;
  color: var(--muted-dark-bg);
  max-width: 68ch;
}
.cookie-banner__text a {
  color: var(--text-dark-bg);
  text-decoration: underline;
  text-decoration-color: var(--red-bright);
  text-underline-offset: 3px;
}
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: .5rem .9rem;
  flex: 0 0 auto;
  flex-wrap: wrap;
}
.cookie-banner__settings {
  background: none;
  border: 0;
  padding: .4em .2em;
  font-family: var(--sans);
  font-size: .86rem;
  color: var(--muted-dark-bg);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cookie-banner__settings:hover { color: var(--text-dark-bg); }
.cookie-banner__btn {
  font-family: var(--cond);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .75em 1.6em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.cookie-banner__btn--accept {
  background: var(--red);
  color: var(--paper-raise);
  border-color: var(--red);
}
.cookie-banner__btn--accept:hover {
  background: var(--red-bright);
  border-color: var(--red-bright);
  color: #10141B;
}
.cookie-banner__btn--decline {
  background: transparent;
  color: var(--text-dark-bg);
  border-color: var(--line-dark);
}
.cookie-banner__btn--decline:hover { border-color: var(--text-dark-bg); }
@media (max-width: 560px) {
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__settings { order: 3; width: 100%; text-align: center; }
  .cookie-banner__btn { flex: 1; }
}

/* ---------- Cookie-Einstellungs-Dialog ---------- */
.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: rgba(15, 18, 22, .62);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.cookie-modal.is-open { opacity: 1; visibility: visible; }
.cookie-modal__card {
  position: relative;
  width: min(560px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper-raise);
  color: var(--text);
  border-top: 4px solid var(--red);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, .5);
  transform: translateY(14px);
  transition: transform .3s var(--ease-out);
}
.cookie-modal.is-open .cookie-modal__card { transform: none; }
.cookie-modal__close {
  position: absolute;
  top: .7rem;
  right: 1rem;
  background: none;
  border: 0;
  font-size: 1.9rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.cookie-modal__close:hover { color: var(--red); }
.cookie-modal__kicker {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.cookie-modal__kicker::before { content: '/ '; color: var(--blue); font-weight: 600; }
.cookie-modal__title {
  font-family: var(--cond);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
  margin: .5rem 0 1rem;
}
.cookie-modal__intro {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 1.6rem;
}
.cookie-modal__intro a {
  color: var(--text);
  text-decoration-color: var(--red);
  text-underline-offset: 2px;
}
.cookie-cat {
  border-top: 1px solid var(--line);
  padding: 1.1rem 0;
}
.cookie-cat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 1.6rem;
}
.cookie-cat__name {
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.cookie-cat__always {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.cookie-cat__desc {
  margin-top: .45rem;
  font-size: .9rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 58ch;
}
.cookie-modal__actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}
.cookie-modal__actions .cookie-banner__btn { flex: 1 1 auto; }
/* Ablehnen-Button auf hellem Dialog-Grund lesbar machen */
.cookie-modal .cookie-banner__btn--decline { color: var(--text); border-color: var(--line); }
.cookie-modal .cookie-banner__btn--decline:hover { border-color: var(--text); background: var(--paper-soft); }
body.cookie-modal-open { overflow: hidden; }

/* Umschalter (Kategorie an/aus) */
.switch { position: relative; display: inline-flex; flex: none; }
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.switch__track {
  width: 3rem;
  height: 1.65rem;
  border-radius: 999px;
  background: var(--line);
  transition: background .2s ease;
}
.switch__track::after {
  content: '';
  position: absolute;
  top: .22rem;
  left: .22rem;
  width: 1.21rem;
  height: 1.21rem;
  border-radius: 50%;
  background: var(--paper-raise);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .35);
  transition: transform .2s var(--ease-out);
}
.switch input:checked + .switch__track { background: var(--red); }
.switch input:checked + .switch__track::after { transform: translateX(1.35rem); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--red); outline-offset: 2px; }

/* Button, der wie ein Textlink aussieht (Cookie-Einstellungen im Footer) */
.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover { color: var(--red-bright); }

/* ---------- Scroll-Reveals (nur mit JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(1.7rem);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .site-header__phone span { display: none; }
}
@media (max-width: 960px) {
  .site-nav, .site-header__cta { display: none; }
  .menu-toggle { display: flex; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__figure { aspect-ratio: 16 / 11; }
  .hero::after, .hero__ruler { display: none; }
  .hero__caption {
    position: static;
    writing-mode: horizontal-tb;
    margin-top: 1rem;
  }
  .voice__glyph {
    position: static;
    display: block;
    transform: none;
    margin-bottom: .6rem;
    font-size: 2.6rem;
  }

  .section-head__row { grid-template-columns: 1fr; align-items: start; }
  .section-head__intro { justify-self: start; }

  .services__layout { grid-template-columns: 1fr; }
  .services__visual { display: none; }
  .service__img {
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    width: 100%;
    margin-bottom: 2.3rem;
  }
  .service__link { padding-bottom: 1.4rem; }
  .service__arrow { display: none; }

  .manifest__stats { grid-template-columns: 1fr 1fr; }

  .manufaktur__grid, .ablauf__grid, .kontakt__grid, .karriere__inner,
  .page-head__grid, .detail-grid { grid-template-columns: 1fr; }
  .ablauf__sticky { position: static; }
  .manufaktur__small { right: 0; }

  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__mega { white-space: normal; }
}
@media (max-width: 560px) {
  .hero__actions { gap: 1.1rem; }
  .manifest__stats { gap: 2rem 1.4rem; }
  .stat { padding-left: 1.1rem; }
  .kontakt__orte { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr; }
  .gallery__nav { display: none; }
}

/* ---------- Reduzierte Bewegung: alles sofort sichtbar ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal],
  .js .hero .line__inner,
  .js .hero__kicker, .js .hero__lead, .js .hero__actions,
  .js .hero__facts, .js .hero__caption, .js .hero__marks {
    opacity: 1 !important;
    transform: none !important;
  }
  .js .hero__figure { clip-path: none !important; }
  .steps::after { transform: none !important; }
}

/* ---------- Landingpage Dachsanierung ---------- */

/* Dreispaltige Variante der Detailblöcke (fällt am 960er-Breakpoint auf 1 Spalte) */
.detail-grid--three { grid-template-columns: repeat(3, 1fr); }
.detail p .text-link { display: inline-block; margin-top: .6rem; }

/* Betriebsfoto unterhalb der Detailblöcke */
.betrieb__figure {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  aspect-ratio: 21 / 9;
  overflow: hidden;
  background: var(--steel-raise);
}
.betrieb__figure img { width: 100%; height: 100%; object-fit: cover; }

/* Kundenstimmen-Raster (helle Sektion) */
.voices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.voice-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-raise);
  padding: 1.8rem 1.6rem 1.6rem;
}
.voice-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 2.4rem;
  height: 3px;
  background: var(--blue);
}
.voice-card__glyph {
  display: block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: 2.4rem;
  line-height: .8;
  color: var(--blue);
}
.voice-card p { margin-top: .7rem; font-size: .97rem; color: var(--text); }
.voice-card cite {
  display: block;
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-style: normal;
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.voice-card cite::before { content: '— '; color: var(--blue); }
.voices-cta {
  margin-top: clamp(2.2rem, 4vw, 3rem);
  display: flex;
  justify-content: center;
}

/* Options-Vergleich (helle Sektion) */
.optionen {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 2.5vw, 2rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  align-items: stretch;
}
.option {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper-raise);
  /* Eigene Textfarbe: die helle Karte muss auch in dunklen Sektionen lesbar sein */
  color: var(--text);
  padding: 1.8rem 1.6rem;
}
.option__label {
  font-family: var(--mono);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.option h3 {
  margin-top: .8rem;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.9rem;
  line-height: 1.02;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.option p { margin-top: .8rem; font-size: .95rem; color: var(--muted); }
.option--best {
  border: 2px solid var(--red);
  box-shadow: 0 18px 44px -28px rgba(156, 16, 6, .45);
}
.option--best .option__label { color: var(--red); }
.option__badge {
  position: absolute;
  top: 0;
  right: 1.2rem;
  transform: translateY(-50%);
  background: var(--red);
  color: var(--paper-raise);
  font-family: var(--mono);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .38em .8em;
}
.option__actions { margin-top: auto; padding-top: 1.5rem; }
.optionen__note {
  margin-top: clamp(2rem, 4vw, 2.6rem);
  max-width: 78ch;
  font-size: 1.02rem;
  color: var(--muted);
}
.optionen__note strong { color: var(--text); }

/* Zeitaufwand-Label in den Ablauf-Schritten (dunkle Sektion) */
.step__time {
  display: inline-block;
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--blue-bright);
  border: 1px solid var(--line-dark);
  padding: .4em .8em;
}

/* Abschluss-CTA der Ablauf-Sektion */
.ablauf__cta {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-top: clamp(2rem, 4vw, 2.6rem);
  border-top: 1px solid var(--line-dark);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.2rem 2rem;
}
.ablauf__cta-title {
  font-family: var(--cond);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1;
  letter-spacing: .015em;
  text-transform: uppercase;
}
.ablauf__cta-title .em { color: var(--blue-bright); }

@media (max-width: 960px) {
  /* --three steht nach der globalen 960er-Regel in der Kaskade und braucht
     deshalb einen eigenen Umbruch auf eine Spalte */
  .voices, .optionen, .detail-grid--three { grid-template-columns: 1fr; }
  .betrieb__figure { aspect-ratio: 16 / 10; }
}

/* ---------- Anfrage-Auswahlseite ---------- */

/* Zwei Karten statt drei: schmaler und zentriert */
.optionen--anfrage {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1040px;
}
.optionen--anfrage .option { padding: 2.2rem 2rem; }
.optionen--anfrage .option h3 { font-size: 2.2rem; }

/* Hinweis unter den Karten (dunkle Sektion) */
.anfrage-hinweis {
  margin-top: clamp(2rem, 4vw, 2.6rem);
  max-width: 68ch;
  font-size: .92rem;
  color: var(--muted-dark-bg);
}
.anfrage-hinweis a {
  color: var(--text-dark-bg);
  text-decoration: underline;
  text-decoration-color: var(--blue-bright);
  text-underline-offset: 3px;
}
.anfrage-hinweis a:hover { color: var(--blue-bright); }

/* "Lieber persönlich"-Block: Telefon links, Kundenstimme rechts */
.anfrage-direkt__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.anfrage-direkt .kontakt__phone { margin-top: 1.6rem; }
.anfrage-direkt .voice-card { max-width: 480px; justify-self: end; }

@media (max-width: 960px) {
  .optionen--anfrage { grid-template-columns: 1fr; }
  .anfrage-direkt__inner { grid-template-columns: 1fr; }
  .anfrage-direkt .voice-card { justify-self: start; }
}
