/* =========================================================================
   TopDachdecker Berlin: Design-System
   Graphit & Signal. Farben aus dem Material: Anthrazitziegel, Zinkblech,
   Berliner Himmel, Marken-Rot aus dem Logo.
   ========================================================================= */

/* ---------- Schriften (selbstgehostet, keine externen Aufrufe) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('fonts/archivo-var.woff2') format('woff2');
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlexSans';
  src: url('fonts/plexsans-var.woff2') format('woff2');
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlexMono';
  src: url('fonts/plexmono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PlexMono';
  src: url('fonts/plexmono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  /* Material */
  --schiefer: #16191c;   /* Anthrazitziegel: Text & dunkle Flächen */
  --traufe:   #22272c;   /* erhöhte Fläche auf dunkel */
  --kante:    #2f353b;   /* Linien auf dunkel */
  --zink:      #98a0a9;  /* Sekundärtext auf dunkel */
  --zink-foto: #c4cbd2;  /* Sekundärtext über Fotos: heller, damit die
                            Schleier darunter dünner bleiben dürfen */
  --nebel:    #5a626b;   /* Sekundärtext auf hell */
  --kalk:     #f4f5f6;   /* Seitengrund */
  --papier:   #ffffff;   /* Karten */
  --himmel:   #c3d3df;   /* Himmel aus den Fotos */
  /* Marken-Rot in zwei Stärken: das helle für große Typo und Akzente auf
     Anthrazit, das tiefe überall dort, wo weißer oder kleiner Text draufliegt. */
  --signal:      #ff2e39;
  --signal-tief: #cc1520;

  --dunst:  #e9eef2;     /* getönte Fläche: dritter Grund neben Kalk und Papier */
  --rule:   #dfe2e5;     /* Hairline auf hell */

  /* WhatsApp: Glyphe im Original-Grün, Fläche im dunklen Ton (Weiß darauf = 5,2:1) */
  --wa:      #25d366;
  --wa-tief: #0f7a68;

  /* Typo */
  --display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --body: 'PlexSans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'PlexMono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Raum */
  --pad-y: clamp(4.25rem, 8vw, 7.5rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --maxw: 1300px;

  /* Bewegung: 38° ist die Dachneigung, die alles hier bestimmt */
  --skew: -22deg;
  --ease: cubic-bezier(.22, .7, .28, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.65;
  color: var(--schiefer);
  background: var(--kalk);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

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

/* ---------- Typo-Skala ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 84%;
  line-height: 1.02;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.h-xl { font-size: clamp(2.55rem, 6.4vw, 5rem); line-height: .96; letter-spacing: -.025em; font-weight: 800; }
.h-lg { font-size: clamp(1.95rem, 4.1vw, 3.15rem); line-height: 1.03; letter-spacing: -.02em; }
.h-md { font-size: clamp(1.4rem, 2.3vw, 1.85rem); line-height: 1.12; }
.h-sm { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.2; font-stretch: 92%; }

.lead {
  font-size: clamp(1.075rem, 1rem + .55vw, 1.3rem);
  line-height: 1.55;
  color: var(--nebel);
  text-wrap: pretty;
}
/* Dunkler Kontext: .dark, plus Hero und Seitenkopf, die ihn selbst mitbringen */
.dark .lead, .hero .lead, .phero .lead { color: var(--zink); }
/* Wo Text auf einem Foto liegt, wird der Sekundärton angehoben */
.hero .lead, .phero .lead, .has-plx .lead { color: var(--zink-foto); }

.prose p + p { margin-top: 1.1em; }
.prose { text-wrap: pretty; }

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

.sec {
  position: relative;
  padding-block: var(--pad-y);
}
.sec--tight { padding-block: clamp(3rem, 5.5vw, 4.5rem); }
/* getönte Fläche: hält den Rhythmus, ohne dass alles wieder schwarz wird */
.sec--tint { background: var(--dunst); }

.dark {
  background: var(--schiefer);
  /* der dunkle Ton ist kein flacher Block, sondern hat Licht von oben */
  background-image:
    radial-gradient(120% 90% at 18% 0%, rgba(195,211,223,.10) 0%, rgba(195,211,223,0) 58%),
    linear-gradient(180deg, #1c2126 0%, var(--schiefer) 55%);
  color: #fff;
}
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }

/* Traufkante: die 1px-Oberkante jeder Sektion, links mit rotem Ortgang-Stück */
.sec--ruled { border-top: 1px solid var(--rule); }
.dark.sec--ruled { border-top-color: var(--kante); }
.sec--ruled::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(3rem, 7vw, 5.5rem);
  height: 2px;
  background: var(--signal);
}

/* ---------- Sektionskopf: Speclabel links, Aussage rechts ---------- */
.sec-head {
  display: grid;
  gap: 1.25rem 2.75rem;
  align-items: start;
  margin-bottom: clamp(2.25rem, 4vw, 3.5rem);
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: 13rem minmax(0, 1fr); }
  .sec-head__meta { position: sticky; top: 6.5rem; }
}
.sec-head__body > * + * { margin-top: 1.1rem; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nebel);
}
.dark .eyebrow, .hero .eyebrow, .phero .eyebrow { color: var(--zink); }
.hero .eyebrow, .phero .eyebrow, .has-plx .eyebrow { color: var(--zink-foto); }
.eyebrow::before {
  content: '';
  flex: none;
  width: 15px;
  height: 11px;
  background: var(--signal-tief);
  /* Giebel-Glyphe: das Zeichen aus dem Logo */
  -webkit-mask: polygon(50% 0, 100% 100%, 78% 100%, 50% 44%, 22% 100%, 0 100%) center/contain no-repeat;
  mask: polygon(50% 0, 100% 100%, 78% 100%, 50% 44%, 22% 100%, 0 100%) center/contain no-repeat;
}
.dark .eyebrow::before, .hero .eyebrow::before, .phero .eyebrow::before { background: var(--signal); }

/* ---------- Buttons: Füllung wischt in Dachneigung ein ---------- */
.btn {
  --btn-bg: var(--signal-tief);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .95rem 1.6rem;
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: 1.02rem;
  letter-spacing: .005em;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  background: var(--btn-bg);
  color: var(--btn-fg);
  transition: transform .2s var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  box-shadow: inset 0 0 0 1px currentColor;
}
.btn--ghost::before {
  content: '';
  position: absolute;
  inset: -1px -30%;
  z-index: 0;
  background: var(--signal-tief);
  transform: skewX(var(--skew)) translateX(-118%);
  transition: transform .42s var(--ease);
}
.btn--ghost:hover::before, .btn--ghost:focus-visible::before { transform: skewX(var(--skew)) translateX(0); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: #fff; box-shadow: inset 0 0 0 1px var(--signal-tief); }

.btn--lg { padding: 1.1rem 2rem; font-size: 1.1rem; }

/* WhatsApp: steht überall direkt neben der Telefonnummer */
.btn--wa { --btn-bg: var(--wa-tief); --btn-fg: #fff; }
.btn--wa.btn--ghost { --btn-bg: transparent; --btn-fg: currentColor; }
.btn--wa.btn--ghost::before { background: var(--wa-tief); }
.btn--wa.btn--ghost:hover, .btn--wa.btn--ghost:focus-visible { color: #fff; box-shadow: inset 0 0 0 1px var(--wa-tief); }
.btn--wa svg { color: var(--wa); }
.btn--wa:hover svg, .btn--wa:not(.btn--ghost) svg { color: #fff; }

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

/* Textlink mit Pfeil */
.tlink {
  display: inline-flex;
  align-items: baseline;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--signal-tief);
  border-bottom: 1px solid currentColor;
  padding-bottom: .18rem;
}
.dark .tlink { color: var(--signal); }
.tlink span:last-child { transition: transform .25s var(--ease); }
.tlink:hover span:last-child { transform: translateX(4px); }

/* =========================================================================
   Kopfzeile
   ========================================================================= */
.hdr {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--schiefer);
  color: #fff;
  /* Traufkante: dieselbe rote Linie, die im Hero als Ortgang weiterläuft */
  border-bottom: 3px solid var(--signal);
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
/* beim Scrollen rückt die Leiste enger zusammen und wirft einen Schatten */
.hdr.is-stuck { box-shadow: 0 10px 30px -12px rgba(0,0,0,.55); background: rgba(22,25,28,.94); backdrop-filter: blur(8px); }
.hdr__in {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  transition: min-height .3s var(--ease);
}
.hdr.is-stuck .hdr__in { min-height: 3.75rem; }
.hdr.is-stuck .brand__claim { opacity: 0; }
.brand__claim { transition: opacity .25s var(--ease); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: #fff;
  margin-right: auto;
}
.brand__mark { width: 26px; height: 20px; flex: none; color: var(--signal); }
.brand__word {
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 400;
  font-size: 1.32rem;
  letter-spacing: -.01em;
  line-height: 1;
}
.brand__word b { font-weight: 800; }
.brand__claim {
  display: none;
  font-family: var(--mono);
  font-size: .6rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--zink);
  margin-top: .22rem;
}
@media (min-width: 560px) { .brand__claim { display: block; } }

.nav { display: none; }
@media (min-width: 1020px) {
  .nav { display: flex; align-items: center; gap: 1.9rem; }
}
.nav a {
  font-size: .95rem;
  text-decoration: none;
  color: #fff;
  padding-block: .3rem;
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -.15rem;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }

/* Zwei Wege zu uns, immer nebeneinander: auf dem Handy nur als Symbole */
.hdr__ct { display: inline-flex; gap: .4rem; }
@media (min-width: 700px) { .hdr__ct { gap: .5rem; } }
@media (max-width: 699px) { .hdr__in { gap: .7rem; } }

.hdr__tel, .hdr__wa {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: .95rem;
  text-decoration: none;
  color: #fff;
  padding: .6rem 1.05rem;
  box-shadow: inset 0 0 0 1px var(--kante);
  transition: box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.hdr__tel:hover { background: var(--signal-tief); box-shadow: inset 0 0 0 1px var(--signal-tief); }
.hdr__wa { padding-inline: .85rem; }
.hdr__wa svg { color: var(--wa); transition: color .2s var(--ease); }
.hdr__wa:hover { background: var(--wa-tief); box-shadow: inset 0 0 0 1px var(--wa-tief); }
.hdr__wa:hover svg { color: #fff; }
@media (max-width: 899px) { .hdr__tel span { display: none; } .hdr__tel { padding-inline: .85rem; } }
@media (max-width: 699px) {
  .hdr__tel, .hdr__wa { padding: .55rem .7rem; }
  .brand__claim { display: none; }
}

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem; height: 2.85rem;
  background: transparent;
  border: 1px solid var(--kante);
  cursor: pointer;
}
@media (min-width: 1020px) { .burger { display: none; } }
.burger span { display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
  transition: transform .28s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded='true'] span { background: transparent; }
.burger[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

.mnav {
  display: none;
  border-top: 1px solid var(--kante);
  padding-block: 1rem 1.5rem;
}
.mnav[data-open='true'] { display: block; }
@media (min-width: 1020px) { .mnav { display: none !important; } }
.mnav a {
  display: block;
  padding: .8rem 0;
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 600;
  font-size: 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--kante);
}
.mnav .btn { margin-top: 1.15rem; width: 100%; justify-content: center; }

/* =========================================================================
   Hero: die Dachfläche steigt von der Traufe zum First
   ========================================================================= */
.hero {
  position: relative;
  background: var(--schiefer);
  color: #fff;
  overflow: hidden;
}
/* Das Foto liegt über die ganze Breite, das Anthrazit liegt als Schleier darauf. */
.hero__grid { display: grid; gap: 0; position: relative; z-index: 1; }
@media (min-width: 1040px) {
  .hero__grid { min-height: min(82vh, 740px); align-content: center; }
}

.hero__type {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.75rem, 5vw, 4.5rem);
  align-self: center;
  max-width: min(46rem, 66%);
}
@media (max-width: 1039px) { .hero__type { max-width: 46rem; } }
.hero__type > * + * { margin-top: clamp(1.1rem, 2vw, 1.5rem); }
.hero h1 { font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
.hero h1 .hl { color: var(--signal); }

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* leichter Grundschleier über dem ganzen Bild */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,25,28,.40) 0%, rgba(22,25,28,.10) 45%, rgba(22,25,28,.36) 100%);
}
/* der dunkle Keil unter der Typografie: seine Kante ist der Ortgang */
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(22,25,28,.72);
}
/* Die Kante folgt der Textbreite: --veil-x setzt das Skript aus der
   tatsächlichen rechten Kante des Textblocks, damit nie Text aufs Foto rutscht. */
@media (min-width: 1040px) {
  .hero__veil {
    clip-path: polygon(0 0, calc(var(--veil-x, 62%) + 16%) 0, var(--veil-x, 62%) 100%, 0 100%);
  }
}
/* die rote Ortgangkante exakt auf der Keilkante */
.hero__edge { display: none; }
@media (min-width: 1040px) {
  .hero__edge {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
  }
  .hero__edge line { stroke: var(--signal); stroke-width: 3; vector-effect: non-scaling-stroke; }
}

/* Alle drei Wege stehen auf dem Laptop in einer Reihe */
@media (min-width: 760px) {
  .hero .btn-row { flex-wrap: nowrap; }
  .hero .btn-row .btn { white-space: nowrap; }
}

/* Faktenband unter dem Hero */
.specbar {
  border-top: 1px solid var(--kante);
  background: var(--schiefer);
  color: #fff;
}
.specbar__in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 800px) { .specbar__in { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.spec {
  padding: 1.5rem var(--gutter) 1.6rem;
  border-left: 1px solid var(--kante);
}
.spec:first-child { border-left: 0; padding-left: 0; }
@media (max-width: 799px) {
  .spec:nth-child(odd) { border-left: 0; padding-left: 0; }
  .spec:nth-child(n+3) { border-top: 1px solid var(--kante); }
}
.spec__n {
  font-family: var(--display);
  font-stretch: 78%;
  font-weight: 800;
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.spec__n em { font-style: normal; color: var(--signal); }
.spec__l {
  margin-top: .5rem;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--zink);
  line-height: 1.5;
}

/* =========================================================================
   Leistungskarten
   ========================================================================= */
.cards {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--papier);
  padding: 0 0 1.6rem;
  text-decoration: none;
  color: inherit;
  transition: background .25s var(--ease);
}
.card:hover { background: #fbfbfc; }
.card__go {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-top: 1.15rem;
  padding-inline: clamp(1.25rem, 2vw, 1.75rem);
  font-family: var(--mono);
  font-size: .73rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--signal-tief);
}
.card__go svg { transition: transform .3s var(--ease); }
.card:hover .card__go svg { transform: translateX(5px); }
.card__img { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--himmel); }
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card__img img { transform: scale(1.05); }
/* roter Streifen fährt in Dachneigung übers Bild */
.card__img::after {
  content: '';
  position: absolute;
  inset: -10% -30%;
  background: linear-gradient(90deg, rgba(255,46,57,0) 0%, rgba(255,46,57,.55) 45%, rgba(255,46,57,0) 100%);
  transform: skewX(var(--skew)) translateX(-150%);
  transition: transform .75s var(--ease);
  pointer-events: none;
}
.card:hover .card__img::after { transform: skewX(var(--skew)) translateX(150%); }
.card__body { padding: 1.5rem clamp(1.25rem, 2vw, 1.75rem) 0; flex: 1; }
.card__body h3 { margin-bottom: .55rem; }
.card__body p { color: var(--nebel); font-size: .965rem; }
/* Ortgangblech: rote Ecke oben links */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2.5rem; height: 3px;
  background: var(--signal);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform .35s var(--ease);
  z-index: 2;
}
.card:hover::before { transform: scaleX(1); }

/* =========================================================================
   Parallax-Hintergrund
   ========================================================================= */
.has-plx { position: relative; overflow: hidden; }
.has-plx > .wrap { position: relative; z-index: 1; }
.plx {
  position: absolute;
  inset: -14% 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.plx img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Gerade so weit abgedunkelt, dass selbst die hellste Stelle im Foto
     den Text darüber nicht unter 4,5:1 drückt. */
  filter: brightness(.65) saturate(.85);
  will-change: transform;
}
.plx::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(22,25,28,.66) 0%, rgba(22,25,28,.62) 45%, rgba(22,25,28,.72) 100%);
}
@media (prefers-reduced-motion: reduce) {
  .plx img { transform: none !important; }
}

/* =========================================================================
   Dachaufbau: der Querschnitt
   ========================================================================= */
.build {
  display: grid;
  gap: clamp(2rem, 4vw, 3.25rem);
  align-items: start;
}
@media (min-width: 940px) { .build { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }

.build__fig {
  background: var(--traufe);
  border: 1px solid var(--kante);
  padding: clamp(1rem, 2.5vw, 1.75rem);
}
.build__fig svg { width: 100%; height: auto; }

.layer { cursor: pointer; transition: opacity .3s var(--ease); }
.layer .lyr-fill { transition: fill .3s var(--ease); }
.layer .lyr-line { transition: stroke .3s var(--ease); }
.build[data-active] .layer { opacity: .34; }
.build .layer.is-on { opacity: 1; }
.build .layer.is-on .lyr-fill { fill: var(--signal); }
.build .layer.is-on .lyr-line { stroke: #fff; }

.build__list { list-style: none; padding: 0; counter-reset: lyr; }
.build__list li + li { margin-top: 1px; }
.build__btn {
  counter-increment: lyr;
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: .9rem;
  align-items: baseline;
  width: 100%;
  text-align: left;
  background: var(--traufe);
  border: 0;
  border-left: 2px solid transparent;
  padding: .95rem 1.1rem;
  cursor: pointer;
  transition: background .22s var(--ease), border-color .22s var(--ease);
}
.build__btn::before {
  content: counter(lyr, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .78rem;
  color: var(--zink);
  transition: color .22s var(--ease);
}
.build__btn b {
  font-family: var(--display);
  font-stretch: 90%;
  font-weight: 600;
  font-size: 1.02rem;
  color: #fff;
}
.build__btn span {
  display: block;
  font-size: .93rem;
  line-height: 1.5;
  color: var(--zink);
  margin-top: .25rem;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height .35s var(--ease), opacity .25s var(--ease), margin .35s var(--ease);
}
.build__btn:hover { background: #272d33; }
.build__btn[aria-pressed='true'] { background: #272d33; border-left-color: var(--signal); }
.build__btn[aria-pressed='true']::before { color: var(--signal); }
.build__btn[aria-pressed='true'] span { max-height: 9rem; opacity: 1; }

/* =========================================================================
   Über uns
   ========================================================================= */
.split {
  display: grid;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
}
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.split--wide-l { }
@media (min-width: 900px) { .split--wide-l { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media::after {
  content: '';
  position: absolute;
  right: -.75rem; bottom: -.75rem;
  width: 45%; height: 3px;
  background: var(--signal);
}
.split__body > * + * { margin-top: 1.2rem; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.pills li {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .45rem .8rem;
  background: var(--papier);
  border: 1px solid var(--rule);
  color: var(--nebel);
}
.dark .pills li { background: var(--traufe); border-color: var(--kante); color: var(--zink); }

/* Merkmale */
.traits {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 620px) { .traits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .traits { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trait { background: var(--papier); padding: clamp(1.4rem, 2.4vw, 2rem); }
.trait svg { width: 34px; height: 34px; color: var(--signal-tief); margin-bottom: 1.1rem; }
.trait h3 { margin-bottom: .5rem; }
.trait p { font-size: .95rem; color: var(--nebel); }

/* =========================================================================
   Vorschau-Raster der Themenseiten
   ========================================================================= */
.previews {
  display: grid;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
@media (min-width: 780px) { .previews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.prev {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
  background: var(--papier);
  padding: 1.1rem;
  text-decoration: none;
  color: inherit;
  transition: background .25s var(--ease);
}
.prev:hover { background: #fbfcfd; }
.prev__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--himmel); }
.prev__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.prev:hover .prev__img img { transform: scale(1.07); }
.prev__tag {
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--nebel);
}
.prev__t {
  font-family: var(--display);
  font-stretch: 90%;
  font-weight: 600;
  font-size: 1.12rem;
  line-height: 1.15;
  margin: .3rem 0 .4rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}
.prev__t svg { flex: none; color: var(--signal-tief); transition: transform .3s var(--ease); }
.prev:hover .prev__t svg { transform: translateX(4px); }
.prev__d { font-size: .9rem; line-height: 1.5; color: var(--nebel); }

/* die Überblicksseite bekommt die volle Breite */
.prev--feat {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.15rem;
  padding: clamp(1.25rem, 2.5vw, 2rem);
}
@media (min-width: 620px) {
  .prev--feat { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.25rem, 3vw, 2.25rem); }
}
.prev--feat .prev__img { aspect-ratio: 16 / 9; }
.prev--feat .prev__t { font-size: clamp(1.35rem, 2.4vw, 1.9rem); margin-block: .45rem .6rem; }
.prev--feat .prev__d { font-size: 1rem; }

/* =========================================================================
   Leistungsindex (Zeilenvariante, für Unterseiten)
   ========================================================================= */
.index { border-top: 1px solid var(--rule); }
.dark .index { border-top-color: var(--kante); }
.index__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .35rem 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  transition: padding-left .3s var(--ease), background .3s var(--ease);
}
.dark .index__row { border-bottom-color: var(--kante); }
@media (min-width: 760px) {
  .index__row { grid-template-columns: 11rem minmax(0, 1fr) auto; padding-block: 1.4rem; }
}
.index__row:hover { padding-left: .85rem; background: rgba(255,46,57,.045); }
.dark .index__row:hover { background: rgba(255,46,57,.09); }
.index__tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--nebel);
  order: 2;
}
.dark .index__tag { color: var(--zink); }
@media (min-width: 760px) { .index__tag { order: 0; } }
.index__name {
  font-family: var(--display);
  font-stretch: 88%;
  font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.15;
  grid-column: 1;
}
@media (min-width: 760px) { .index__name { grid-column: 2; } }
.index__go {
  grid-row: 1;
  grid-column: 2;
  justify-self: end;
  color: var(--signal-tief);
  transition: transform .3s var(--ease);
}
.dark .index__go { color: var(--signal); }
@media (min-width: 760px) { .index__go { grid-column: 3; } }
.index__row:hover .index__go { transform: translateX(5px); }

/* =========================================================================
   FAQ
   ========================================================================= */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.35rem 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-stretch: 90%;
  font-weight: 600;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  margin-left: auto;
  width: 18px; height: 18px;
  margin-top: .3rem;
  background: var(--signal-tief);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v16h-2z'/%3E%3Cpath d='M4 11h16v2H4z'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M11 4h2v16h-2z'/%3E%3Cpath d='M4 11h16v2H4z'/%3E%3C/svg%3E") center/contain no-repeat;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq__a { padding: 0 3rem 1.6rem 0; color: var(--nebel); max-width: 62ch; }

/* =========================================================================
   Referenzen
   ========================================================================= */
.gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 6px;
}
@media (min-width: 700px) { .gal { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.gal button {
  position: relative;
  padding: 0;
  border: 0;
  background: var(--himmel);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  cursor: pointer;
}
.gal button.is-wide { aspect-ratio: 4 / 3; grid-column: span 2; }
@media (max-width: 499px) { .gal button.is-wide { grid-column: span 2; } }
.gal img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.gal button:hover img { transform: scale(1.05); }
.gal button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(22,25,28,.35);
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.gal button:hover::after { opacity: 1; }

dialog.lbx {
  padding: 0;
  border: 0;
  background: transparent;
  max-width: 100vw;
  max-height: 100vh;
  width: 100%;
  height: 100%;
}
dialog.lbx::backdrop { background: rgba(10,12,14,.93); }
.lbx__in {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: clamp(1rem, 4vw, 3rem);
}
.lbx img { max-width: 100%; max-height: 82vh; width: auto; object-fit: contain; }
.lbx__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1rem, 4vw, 2rem);
  color: #fff;
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .1em;
}
.lbx__nav { position: absolute; inset: 0; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.lbx__nav button, .lbx__close {
  pointer-events: auto;
  width: 3rem; height: 3rem;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  cursor: pointer;
  margin: clamp(.5rem, 2vw, 1.5rem);
  transition: background .2s var(--ease);
}
.lbx__nav button:hover, .lbx__close:hover { background: var(--signal); border-color: var(--signal); }

/* =========================================================================
   Stimmen
   ========================================================================= */
.quotes { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote {
  background: var(--papier);
  padding: clamp(1.75rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  transition: background .25s var(--ease);
}
.quote:hover { background: #fbfcfd; }
.quote__mark { width: 26px; height: 20px; color: var(--signal-tief); flex: none; }
.quote p { color: #2c3238; font-size: 1rem; line-height: 1.62; flex: 1; }
.quote footer {
  font-family: var(--mono);
  font-size: .76rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--nebel);
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

/* =========================================================================
   CTA-Block
   ========================================================================= */
.cta {
  position: relative;
  background: var(--signal-tief);
  color: #fff;
  overflow: hidden;
}
.cta__in {
  display: grid;
  gap: 1.75rem;
  align-items: center;
  padding-block: clamp(2.75rem, 5vw, 4.25rem);
}
@media (min-width: 860px) {
  .cta__in { grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem; }
}
.cta h2 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.06; }
.cta p { color: #fff; margin-top: .7rem; max-width: 46ch; }
.cta .btn { --btn-bg: #fff; --btn-fg: var(--schiefer); }
.cta .btn--wa { --btn-bg: #fff; --btn-fg: var(--schiefer); }
.cta .btn--wa svg, .cta .btn--wa:hover svg { color: var(--wa-tief); }
.cta .btn--ghost { --btn-bg: transparent; --btn-fg: #fff; }
.cta .btn--ghost::before { background: var(--schiefer); }
.cta .btn--ghost:hover { color: #fff; box-shadow: inset 0 0 0 1px var(--schiefer); }
/* Ziegel-Rhythmus als sehr leise Textur */
.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: repeating-linear-gradient(var(--skew), transparent 0 26px, rgba(0,0,0,.5) 26px 27px);
}

/* =========================================================================
   Kontakt / Formular
   ========================================================================= */
.contact { display: grid; gap: clamp(2.25rem, 4.5vw, 3.5rem); }
@media (min-width: 940px) { .contact { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }

.contact__ways { display: grid; gap: .75rem; }

.telbox {
  display: block;
  text-decoration: none;
  background: var(--papier);
  border: 1px solid var(--rule);
  padding: clamp(1.35rem, 2.6vw, 1.9rem);
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.telbox:hover { border-color: var(--signal-tief); background: #fbfcfd; }
.dark .telbox { background: var(--traufe); border-color: var(--kante); }
.dark .telbox:hover { border-color: var(--signal); background: #262c32; }
.telbox__l {
  display: block;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--nebel);
}
.dark .telbox__l { color: var(--zink); }
.telbox__n {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-stretch: 80%;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.3rem);
  line-height: 1.05;
  letter-spacing: -.015em;
  white-space: nowrap;
  margin-top: .5rem;
  color: var(--schiefer);
}
.dark .telbox__n { color: #fff; }
.telbox__n svg { flex: none; }
.telbox--wa:hover { border-color: var(--wa-tief); }
.dark .telbox--wa:hover { border-color: var(--wa); }
.telbox--wa .telbox__n svg { color: var(--wa-tief); }
.dark .telbox--wa .telbox__n svg { color: var(--wa); }

.addr { font-style: normal; margin-top: 1.75rem; color: var(--nebel); line-height: 1.8; }
.addr b { color: var(--schiefer); font-weight: 600; }
.addr a { color: var(--signal-tief); text-decoration: none; border-bottom: 1px solid rgba(204,21,32,.35); }
.addr a:hover { border-bottom-color: var(--signal-tief); }
.dark .addr { color: var(--zink); }
.dark .addr b { color: #fff; }
.dark .addr a { color: var(--signal); border-bottom-color: rgba(255,46,57,.4); }
.dark .addr a:hover { border-bottom-color: var(--signal); }

.form { display: grid; gap: 1rem; }
@media (min-width: 620px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: grid; gap: .45rem; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--nebel);
}
.dark .field label { color: var(--zink); }
.field input, .field select, .field textarea {
  background: var(--papier);
  border: 1px solid var(--rule);
  color: var(--schiefer);
  padding: .85rem .95rem;
  width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.dark .field input, .dark .field select, .dark .field textarea {
  background: var(--traufe);
  border-color: var(--kante);
  color: #fff;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--signal-tief);
  box-shadow: 0 0 0 3px rgba(204,21,32,.12);
}
.dark .field input:focus, .dark .field select:focus, .dark .field textarea:focus {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(255,46,57,.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--nebel); }
.dark .field input::placeholder, .dark .field textarea::placeholder { color: #7d858e; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%235a626b'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  background-size: 22px;
  padding-right: 2.4rem;
}
.dark .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2398a0a9'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E"); }
.check { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--nebel); }
.dark .check { color: var(--zink); }
.check input { width: 1.15rem; height: 1.15rem; flex: none; margin-top: .18rem; accent-color: var(--signal-tief); }
.check a { color: var(--signal-tief); }
.dark .check input { accent-color: var(--signal); }
.dark .check a { color: var(--signal); }
.form__note { grid-column: 1 / -1; font-size: .84rem; color: var(--nebel); }
.dark .form__note { color: var(--zink); }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.err { color: var(--signal-tief); font-size: .82rem; font-family: var(--mono); }
.dark .err { color: var(--signal); }

/* =========================================================================
   Fußzeile
   ========================================================================= */
.ftr { background: var(--schiefer); color: #fff; border-top: 1px solid var(--kante); }
.ftr__grid {
  display: grid;
  gap: 2.25rem;
  padding-block: clamp(2.75rem, 5vw, 4rem);
}
@media (min-width: 700px) { .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ftr__grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); } }
.ftr h2 {
  font-family: var(--mono);
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--zink);
  margin-bottom: 1.1rem;
}
.ftr ul { list-style: none; padding: 0; display: grid; gap: .6rem; }
.ftr a { text-decoration: none; color: #d7dade; font-size: .96rem; }
.ftr a:hover { color: var(--signal); }
.ftr__brand p { color: var(--zink); font-size: .95rem; margin-top: 1.1rem; max-width: 32ch; }
.ftr__base {
  border-top: 1px solid var(--kante);
  padding-block: 1.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--zink);
}
.ftr__base a { font-size: inherit; }

/* =========================================================================
   Unterseiten
   ========================================================================= */
.phero {
  position: relative;
  background: var(--schiefer);
  color: #fff;
  overflow: hidden;
}
.phero__bg { position: absolute; inset: 0; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.phero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(92deg, rgba(22,25,28,.9) 12%, rgba(22,25,28,.66) 58%, rgba(22,25,28,.4) 100%);
}
.phero__in {
  position: relative;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  max-width: 46rem;
}
.phero__in > * + * { margin-top: 1.15rem; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--mono);
  font-size: .73rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--zink);
  list-style: none;
  padding: 0;
}
.crumbs, .crumbs a { color: var(--zink-foto); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--signal); }
.crumbs li + li::before { content: '/'; margin-right: .5rem; color: #7d858e; }
.crumbs [aria-current] { color: #fff; }

/* Artikel-Layout: Inhaltsverzeichnis links, Text rechts */
.art { display: grid; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
@media (min-width: 1000px) { .art { grid-template-columns: 15rem minmax(0, 1fr); } }

.toc { position: static; }
@media (min-width: 1000px) { .toc { position: sticky; top: 6.5rem; } }
.toc h2 {
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nebel);
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: .9rem;
}
.toc ol { list-style: none; padding: 0; counter-reset: toc; display: grid; gap: .1rem; }
.toc a {
  counter-increment: toc;
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: .5rem;
  padding: .5rem 0;
  font-size: .94rem;
  line-height: 1.35;
  text-decoration: none;
  color: var(--nebel);
  transition: color .2s var(--ease);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--mono);
  font-size: .72rem;
  color: #a7adb4;
}
.toc a:hover, .toc a.is-active { color: var(--schiefer); }
.toc a.is-active::before { color: var(--signal-tief); }

.art__body { max-width: 74ch; }
.art__body > * + * { margin-top: 1.15rem; }
.art__body h2 {
  font-size: clamp(1.5rem, 2.9vw, 2.15rem);
  line-height: 1.1;
  margin-top: clamp(2.75rem, 5vw, 4rem);
  padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
  position: relative;
}
.art__body h2::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 2.75rem; height: 2px;
  background: var(--signal);
}
.art__body h3 {
  font-size: clamp(1.15rem, 1.9vw, 1.4rem);
  margin-top: 2.1rem;
  display: flex;
  gap: .7rem;
  align-items: baseline;
}
.art__body h3 i {
  font-family: var(--mono);
  font-style: normal;
  font-size: .8rem;
  font-weight: 500;
  color: var(--signal-tief);
  flex: none;
}
.art__body p { color: #2c3238; }
.art__body strong { font-weight: 600; color: var(--schiefer); }
.art__body ul { padding-left: 0; list-style: none; display: grid; gap: .8rem; }
.art__body ul li {
  display: grid;
  grid-template-columns: 1.4rem minmax(0, 1fr);
  gap: .55rem;
  color: #2c3238;
}
.art__body ul li::before {
  content: '';
  width: 11px; height: 8px;
  margin-top: .55rem;
  background: var(--signal-tief);
  -webkit-mask: polygon(50% 0, 100% 100%, 78% 100%, 50% 44%, 22% 100%, 0 100%) center/contain no-repeat;
  mask: polygon(50% 0, 100% 100%, 78% 100%, 50% 44%, 22% 100%, 0 100%) center/contain no-repeat;
}

/* Lead-Absatz der Artikel */
.art__lead {
  font-size: clamp(1.1rem, 1rem + .6vw, 1.32rem);
  line-height: 1.5;
  color: var(--schiefer);
  padding-left: 1.25rem;
  border-left: 3px solid var(--signal);
}

/* Bild im Artikel */
.fig { margin: clamp(2rem, 3.5vw, 2.75rem) 0 0; }
.fig img { width: 100%; max-width: 30rem; }
.fig figcaption {
  margin-top: .8rem;
  padding-left: 1rem;
  border-left: 2px solid var(--signal);
  font-size: .9rem;
  line-height: 1.5;
  color: var(--nebel);
  max-width: 30rem;
}

/* Merkkasten im Artikel */
.note {
  background: var(--papier);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--signal);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  margin-top: 2rem;
}
.note__l {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal-tief);
  margin-bottom: .6rem;
}
.note p { color: #2c3238; font-size: .98rem; }

/* Rechtstexte */
.legal { max-width: 78ch; }
.legal > * + * { margin-top: 1.05rem; }
.legal h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  margin-top: 2.75rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--rule);
}
.legal h3 { font-size: 1.15rem; margin-top: 1.9rem; }
.legal a { color: var(--signal-tief); }
.legal ul { padding-left: 1.2rem; display: grid; gap: .5rem; }
.legal dl { display: grid; gap: .3rem; }
.legal dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--nebel); margin-top: 1rem; }
.legal dd { margin: 0; font-size: 1.05rem; }

/* Nachbarseiten */
.more { display: grid; gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
@media (min-width: 700px) { .more { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1050px) { .more { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.more a {
  background: var(--papier);
  padding: 1.35rem;
  text-decoration: none;
  display: grid;
  gap: .4rem;
  transition: background .2s var(--ease);
}
.more a:hover { background: #fbfbfc; }
.more small { font-family: var(--mono); font-size: .7rem; letter-spacing: .13em; text-transform: uppercase; color: var(--nebel); }
.more b { font-family: var(--display); font-stretch: 90%; font-weight: 600; font-size: 1.08rem; }

/* ---------- Skip-Link ---------- */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--schiefer);
  color: #fff;
  border-left: 3px solid var(--signal);
  padding: .8rem 1.2rem;
  font-family: var(--mono);
  font-size: .8rem;
  text-decoration: none;
}
.skip:focus { left: .5rem; top: .5rem; }

/* =========================================================================
   Helle Kopfleiste
   ========================================================================= */
.hdr {
  background: var(--papier);
  color: var(--schiefer);
}
.hdr.is-stuck {
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px -14px rgba(22,25,28,.3);
}
.hdr .brand { color: var(--schiefer); }
.hdr .brand__claim { color: var(--nebel); }
.hdr .nav a { color: var(--schiefer); }
.hdr__tel, .hdr__wa { color: var(--schiefer); box-shadow: inset 0 0 0 1px var(--rule); }
.hdr__tel:hover, .hdr__wa:hover { color: #fff; }
.hdr__wa svg { color: var(--wa-tief); }
.burger { border-color: var(--rule); }
.burger span, .burger span::before, .burger span::after { background: var(--schiefer); }
.burger[aria-expanded='true'] span { background: transparent; }
.mnav { border-top-color: var(--rule); }
.mnav a { border-bottom-color: var(--rule); color: var(--schiefer); }

/* =========================================================================
   Heller Hero und heller Seitenkopf: das Foto liegt unter einem weißen
   Schleier, die Schrift ist dunkel. Deckkraft gegen die dunkelste Stelle
   im Foto gerechnet (Grundwert 0,015: praktisch Schwarz).
   ========================================================================= */
.hero, .phero { background: var(--kalk); color: var(--schiefer); }
.hero h1, .phero h1, .hero h2, .phero h2 { color: var(--schiefer); }
.hero .lead, .phero .lead { color: #3a4149; }
.hero .eyebrow, .phero .eyebrow { color: #4b535b; }
.hero .eyebrow::before, .phero .eyebrow::before { background: var(--signal-tief); }
.hero h1 .hl { color: #b3121c; }

.hero__media::after {
  background: linear-gradient(180deg, rgba(255,255,255,.42) 0%, rgba(255,255,255,.12) 45%, rgba(255,255,255,.38) 100%);
}
.hero__veil { background: rgba(255,255,255,.78); }

.phero__bg::after {
  background: linear-gradient(92deg, rgba(255,255,255,.93) 12%, rgba(255,255,255,.74) 58%, rgba(255,255,255,.5) 100%);
}
.phero .crumbs, .phero .crumbs a { color: #4b535b; }
.phero .crumbs [aria-current] { color: var(--schiefer); }
.phero .crumbs li + li::before { color: #a7adb4; }

/* Buttons im hellen Kopfbereich */
.hero .btn--ghost, .phero .btn--ghost { box-shadow: inset 0 0 0 1px rgba(22,25,28,.3); }
.hero .btn--wa.btn--ghost:not(:hover) svg,
.phero .btn--wa.btn--ghost:not(:hover) svg { color: var(--wa-tief); }

/* ---------- Auftritt der Startseite ---------- */
@keyframes rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes media-in { from { opacity: 0; transform: scale(1.07); } to { opacity: 1; transform: none; } }
@keyframes edge-in  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes layer-in { from { opacity: 0; transform: translate(16px, 22px); } to { opacity: 1; transform: none; } }

.hero__type > * { animation: rise-in .8s var(--ease) both; }
.hero__type > *:nth-child(1) { animation-delay: .06s; }
.hero__type > *:nth-child(2) { animation-delay: .14s; }
.hero__type > *:nth-child(3) { animation-delay: .22s; }
.hero__type > *:nth-child(4) { animation-delay: .30s; }
.hero__type > *:nth-child(5) { animation-delay: .38s; }
.hero__media img { animation: media-in 1.2s var(--ease) both; }
.hero__edge { transform-origin: 0 100%; animation: edge-in .9s var(--ease) .5s both; }

/* Der Dachaufbau entsteht in der Reihenfolge, in der er gebaut wird:
   erst die Sparren, zuletzt der Ziegel. `backwards` sorgt dafür, dass die
   Hervorhebung per Hover danach wieder greift. */
.build.is-in .layer { animation: layer-in .55s var(--ease) backwards; animation-delay: calc(var(--o, 0) * 85ms); }

/* Referenzfotos laufen versetzt ein */
.gal button { opacity: 0; transform: translateY(14px); }
.gal.is-in button {
  opacity: 1;
  transform: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  transition-delay: calc(var(--i, 0) * 22ms);
}

/* ---------- Auftritt beim Scrollen ---------- */
.rise { opacity: 0; transform: translateY(18px); }
.rise.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rise[data-d='1'].is-in { transition-delay: .07s; }
.rise[data-d='2'].is-in { transition-delay: .14s; }
.rise[data-d='3'].is-in { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  .rise, .rise.is-in { opacity: 1; transform: none; transition: none; }
  .gal button, .gal.is-in button { opacity: 1; transform: none; transition: none; }
  .hero__type > *, .hero__media img, .hero__edge, .build.is-in .layer { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0ms !important;
    transition-duration: .001ms !important;
  }
}

/* ---------- Hilfsklassen ---------- */
.u-mt-l { margin-top: clamp(2rem, 4vw, 3rem); }
.u-mt-m { margin-top: 1.5rem; }
.u-center { text-align: center; }
.vh {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Regel 9: website4geo-Knopf */
.ftr__base { flex-wrap: wrap; gap: 10px 24px; }
.w4g-knopf{display:inline-block;padding:3px 12px;border:1px solid currentColor;border-color:color-mix(in srgb,currentColor 30%,transparent);border-radius:8px;background:none;color:inherit;font:inherit;font-size:.82rem;letter-spacing:.02em;line-height:1.6;cursor:pointer;opacity:.78;transition:opacity .2s,border-color .2s,color .2s}
.w4g-knopf:hover,.w4g-knopf:focus-visible{opacity:1;border-color:color-mix(in srgb,currentColor 60%,transparent)}
.w4g-knopf.is-copied{opacity:1;color:var(--w4g-akzent,inherit);border-color:currentColor}
