/* =========================================================
   hf kanal AG — Designsystem
   Abgeleitet aus Figma „Home V4 – Rot / Schwarz / Beige"
   Farben, Typo und Rhythmus 1:1 aus dem Entwurf.
   ========================================================= */

:root {
  --black:      #0E0F11;
  --anthracite: #1A1C1F;
  --red:        #EE372E;   /* echtes Logo-Rot */
  --red-dark:   #C82A21;   /* nur fuer kleinen Text auf Beige */
  --beige:      #F1E9DC;
  --beige-mid:  #CDBBA1;
  --grey:       #6A6D6F;   /* Logo-Grau, nur Detail */
  --ink-on-beige: #1A1C1F;

  --pad:   64px;   /* Seitenrand Desktop */
  --maxw: 1312px;  /* Inhaltsbreite (1440 - 2*64) */

  --f-display: "Archivo Black", "Arial Black", sans-serif;
  --f-body:    "Barlow", system-ui, -apple-system, sans-serif;
  --f-mono:    "IBM Plex Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--black);
  color: var(--beige);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: 104px 0; }
.section--tight { padding: 72px 0; }
.bg-beige { background: var(--beige); color: var(--ink-on-beige); }
.bg-black { background: var(--black); color: var(--beige); }
.bg-anthracite { background: var(--anthracite); color: var(--beige); }
.bg-red { background: var(--red); color: #fff; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; letter-spacing: -0.02em; }
h1 { font-size: clamp(38px, 6vw, 72px); line-height: 1.02; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.08; }
h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.55; max-width: 62ch; }
.muted { color: var(--beige-mid); }
.bg-beige .muted { color: #55595c; }

/* Eyebrow: rote 40x3-Linie + Mono-Label */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 40px; height: 3px; background: var(--red); flex: none; }

.mono {
  font-family: var(--f-mono);
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--beige-mid);
}
.bg-beige .mono { color: #55595c; }

/* Haarlinien-Gliederung */
.rule { height: 1px; background: rgba(241,233,220,.18); border: 0; margin: 0; }
.bg-beige .rule { background: rgba(26,28,31,.16); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--f-body); font-weight: 700;
  font-size: 19px; line-height: 1;            /* >=19px Bold: Kontrastregel auf Rot */
  padding: 21px 32px; border: 0; border-radius: 0;
  text-decoration: none; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: #d32c24; }
.btn--ghost { background: transparent; color: var(--beige); border: 2px solid rgba(241,233,220,.5); }
.btn--ghost:hover { border-color: var(--beige); }
.bg-beige .btn--ghost { color: var(--ink-on-beige); border-color: rgba(26,28,31,.4); }

.link-underline {
  text-decoration: none; font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--black);
  display: flex; align-items: stretch; justify-content: space-between;
  height: 88px;
}
.header__brand { display: flex; align-items: center; padding-left: var(--pad); }
/* Wortmarke ist das einzige Markenelement — entsprechend praesent gesetzt */
.header__name { font-family: var(--f-display); font-size: clamp(24px, 2.1vw, 32px); letter-spacing: -0.015em; }
.header__name a { text-decoration: none; }

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  text-decoration: none; font-size: 16px; color: var(--beige-mid);
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--beige); }
.nav a[aria-current="page"] { color: var(--beige); border-bottom-color: var(--red); }

.header__cta {
  background: var(--red); color: #fff; text-decoration: none;
  display: flex; align-items: center; padding: 0 40px;
  font-family: var(--f-body); font-weight: 700; font-size: 19px;
  letter-spacing: .02em; white-space: nowrap;
}
.header__cta:hover { background: #d32c24; }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 720px; display: flex; align-items: center; overflow: hidden; }
.hero__img { position: absolute; inset: 0; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(14,15,17,.35) 0%, rgba(14,15,17,.55) 45%, rgba(14,15,17,.92) 72%);
}
.hero__inner { position: relative; width: 100%; }
.hero__copy { max-width: 560px; margin-left: auto; }
.hero--page { min-height: 460px; }
.hero--page .hero__copy { margin-left: 0; max-width: 720px; }
.hero--page .hero__scrim {
  background: linear-gradient(90deg, rgba(14,15,17,.92) 0%, rgba(14,15,17,.6) 55%, rgba(14,15,17,.35) 100%);
}
.hero--strip { min-height: 400px; }

/* ohne Trennpunkte traegt allein der Abstand die Gliederung */
.hero__meta { display: flex; flex-wrap: wrap; gap: 10px 44px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(241,233,220,.25); }

/* ---------- Pikett-Band (roter Slab, ragt nach oben) ---------- */
.pikett { background: var(--black); position: relative; }
.pikett__slab {
  background: var(--red); color: #fff;
  margin-top: -70px; position: relative;
  padding: 22px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  max-width: 1012px;
}
.pikett__num {
  font-family: var(--f-display); font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1; text-decoration: none; letter-spacing: -0.01em;
}
.pikett__label { font-family: var(--f-mono); font-size: 19px; font-weight: 600; letter-spacing: .14em; }
.pikett__foot {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 34px 0 44px;
}

/* ---------- Redaktionelle Zeilenliste ---------- */
.rows { margin-top: 64px; }
.row {
  display: grid; grid-template-columns: 460px 1fr; gap: 96px;
  padding: 42px 0;
  border-top: 1px solid rgba(26,28,31,.16);
}
.bg-black .row, .bg-anthracite .row { border-top-color: rgba(241,233,220,.18); }
.row:last-child { border-bottom: 1px solid rgba(26,28,31,.16); }
.bg-black .row:last-child, .bg-anthracite .row:last-child { border-bottom-color: rgba(241,233,220,.18); }
.row__title { font-family: var(--f-display); font-size: clamp(24px,2.6vw,34px); line-height: 1.1; }
.row__body { max-width: 68ch; }
.row__detail { margin-top: 14px; }

/* kompakte Variante (Gruende, Nutzen) */
.list-lines { border-top: 1px solid rgba(241,233,220,.18); margin-top: 36px; }
.bg-beige .list-lines { border-top-color: rgba(26,28,31,.16); }
.list-lines li {
  list-style: none; padding: 13px 0;
  border-bottom: 1px solid rgba(241,233,220,.18);
  font-size: 18px; font-weight: 600;
}
.bg-beige .list-lines li { border-bottom-color: rgba(26,28,31,.16); }
.list-lines { padding-left: 0; margin-bottom: 0; }

/* ---------- Split: Bild + Text ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 0; }
.split__media { display: block; min-height: 100%; }
.split__media picture { display: block; height: 100%; }   /* sonst erbt <picture> keine Hoehe */
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy { padding: 96px var(--pad); }
.split--media-right .split__media { order: 2; }

/* Bild vollbreit mit ueberlappender Platte */
.overlap { position: relative; }
.overlap__img img { width: 100%; height: 660px; object-fit: cover; }
.overlap__plate {
  background: var(--anthracite); color: var(--beige);
  max-width: 720px; padding: 48px 56px;
  margin-top: -164px; position: relative;
}

/* Portraet randabfallend links, rote Kante */
.portrait-split { display: grid; grid-template-columns: 520px 1fr; }
.portrait-split__img { position: relative; }
.portrait-split__img img { width: 100%; height: 100%; object-fit: cover; }
.portrait-split__img::after { content: ""; position: absolute; top: 0; right: 0; width: 4px; height: 100%; background: var(--red); }
.portrait-split__copy { padding: 120px 64px 120px 100px; }

/* ---------- CTA ---------- */
.cta { background: var(--red); color: #fff; padding: 88px 0; }
.cta h2 { max-width: 20ch; }
.cta__row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.4);
}
.cta__num { font-family: var(--f-display); font-size: clamp(34px,4.4vw,58px); line-height: 1; text-decoration: none; }
.cta__foot { margin-top: 34px; font-family: var(--f-mono); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; }
.cta__foot a { color: #fff; }
.btn--on-red { background: #fff; color: var(--black); }
.btn--on-red:hover { background: var(--beige); }

/* ---------- Footer ---------- */
.footer { background: var(--black); padding: 80px 0 40px; }
/* fluid statt fix — feste 560/260/260 + 116 Gap ergaben 1312 px und liefen
   zwischen 1100 und 1440 px Viewport ueber den Rand hinaus */
.footer__cols { display: grid; grid-template-columns: minmax(260px, 1.7fr) 1fr 1fr; gap: clamp(40px, 6vw, 116px); }
.footer__brand { display: flex; align-items: center; }
.footer__claim { font-family: var(--f-display); font-size: 20px; margin-top: 20px; color: var(--beige-mid); }
.footer h4 { font-family: var(--f-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--beige-mid); margin: 0 0 20px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 11px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(241,233,220,.18);
  font-size: 14px; color: var(--beige-mid);
}
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; background: var(--red); margin-right: 10px; }
.footer__status { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Kontaktseite ---------- */
.contact-lines { border-top: 1px solid rgba(241,233,220,.18); }
.contact-line {
  display: grid; grid-template-columns: 540px 1fr; gap: 72px;
  padding: 34px 0; border-bottom: 1px solid rgba(241,233,220,.18);
  align-items: baseline;
}
.contact-line__val { font-family: var(--f-display); font-size: clamp(22px,2.4vw,30px); line-height: 1.1; }
.contact-line__val a { text-decoration: none; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 32px; margin-top: 40px; }
.field { display: flex; flex-direction: column; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #55595c; margin-bottom: 10px; }
.field input, .field select, .field textarea {
  font-family: var(--f-body); font-size: 17px; color: var(--ink-on-beige);
  background: transparent; border: 1px solid rgba(26,28,31,.35);
  border-radius: 0; padding: 16px 18px; width: 100%;
}
.field textarea { min-height: 168px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.consent { display: flex; gap: 14px; align-items: flex-start; grid-column: 1 / -1; }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; accent-color: var(--red); }
.consent label { font-family: var(--f-body); font-size: 15px; letter-spacing: 0; text-transform: none; color: #40454a; margin: 0; line-height: 1.5; }

.notfall {
  background: var(--red); color: #fff; padding: 44px 48px; max-width: 520px;
}
.notfall__num { font-family: var(--f-display); font-size: clamp(28px,3.4vw,42px); line-height: 1; text-decoration: none; display: inline-block; margin-top: 26px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,.45); }

/* offene Punkte sichtbar markieren (nur Vorschau) */
.todo {
  border: 2px dashed var(--red);
  padding: 22px 24px; margin: 20px 0;
  font-family: var(--f-mono); font-size: 13px; letter-spacing: .06em;
  color: var(--ink-on-beige); background: rgba(238,55,46,.05);
}
.bg-black .todo, .bg-anthracite .todo { color: var(--beige); background: rgba(238,55,46,.1); }

/* ---------- Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.mt-0 { margin-top: 0; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.stack > * + * { margin-top: 18px; }
.skip {
  position: absolute; left: -9999px; top: 0; background: var(--red); color: #fff;
  padding: 12px 20px; z-index: 100;
}
.skip:focus { left: 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .row { grid-template-columns: 1fr; gap: 14px; }
  .grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 56px; }
  .portrait-split { grid-template-columns: 380px 1fr; }
  .portrait-split__copy { padding: 72px 40px; }
  .contact-line { grid-template-columns: 1fr; gap: 8px; }
}

/* Navigation klappt frueh ein: zwischen ~900 und 1150 px kollidierte
   der letzte Nav-Punkt sonst mit dem roten 24h-Button. */
@media (max-width: 1150px) {
  .header { flex-wrap: wrap; height: auto; position: static; }
  .header__brand { padding: 14px var(--pad); flex: 1; }
  .nav-toggle {
    display: flex; align-items: center; gap: 10px;
    background: transparent; border: 1px solid rgba(241,233,220,.4);
    color: var(--beige); font-family: var(--f-mono); font-size: 12px;
    letter-spacing: .14em; text-transform: uppercase;
    padding: 10px 14px; margin: 0 12px; align-self: center; cursor: pointer;
  }
  .nav-toggle:hover { border-color: var(--beige); }
  .nav {
    display: none; order: 5; width: 100%;
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 6px var(--pad) 18px; border-top: 1px solid rgba(241,233,220,.15);
  }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid rgba(241,233,220,.12); }
  .nav a[aria-current="page"] { border-bottom-color: var(--red); }
}

@media (max-width: 860px) {
  :root { --pad: 22px; }
  body { font-size: 16px; }

  /* Notruf-Button ueber volle Breite: groesstes Tap-Ziel auf dem Handy */
  .header__cta {
    order: 4; width: 100%; justify-content: center;
    padding: 16px 20px; font-size: 17px;
  }
  .header__name { font-size: 22px; white-space: nowrap; }

  .section { padding: 64px 0; }
  .hero { min-height: 560px; }
  .hero--page { min-height: 360px; }
  .hero__copy { margin-left: 0; max-width: none; }
  .hero__scrim { background: linear-gradient(180deg, rgba(14,15,17,.55) 0%, rgba(14,15,17,.88) 100%); }

  .pikett__slab { margin-top: -40px; padding: 20px var(--pad); flex-direction: column; align-items: flex-start; gap: 10px; }
  .pikett__label { font-size: 19px; }

  .split { grid-template-columns: 1fr; }
  .split--media-right .split__media { order: 0; }
  .split__copy { padding: 56px var(--pad); }
  .split__media img { height: 300px; }

  .overlap__img img { height: 320px; }
  .overlap__plate { margin-top: -60px; padding: 36px var(--pad); max-width: none; margin-left: var(--pad); margin-right: var(--pad); }

  .portrait-split { grid-template-columns: 1fr; }
  .portrait-split__img img { height: 420px; }
  .portrait-split__img::after { top: auto; bottom: 0; right: 0; width: 100%; height: 4px; }
  .portrait-split__copy { padding: 56px var(--pad); }

  .cta { padding: 64px 0; }
  .cta__row { flex-direction: column; align-items: flex-start; }

  .footer__cols { grid-template-columns: 1fr; gap: 44px; }
  .form-grid { grid-template-columns: 1fr; }
  .notfall { max-width: none; padding: 32px var(--pad); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* =========================================================
   Nachtrag — Definitionszeilen (.def-lines)
   Begriff + kurze Erklaerung, gestapelt in einer Linienliste.
   Ergaenzt .list-lines fuer die Faelle, in denen die Zeile
   nicht nur ein Schlagwort, sondern auch einen Satz traegt.
   Genutzt auf: leistungen.html (Fuer wen),
   kanalinspektion.html (Wann sinnvoll),
   dichtheitspruefung.html (Verfahren).
   ========================================================= */
.def-lines {
  list-style: none; margin: 36px 0 0; padding-left: 0;
  border-top: 1px solid rgba(241,233,220,.18);
}
.bg-beige .def-lines { border-top-color: rgba(26,28,31,.16); }
.def-lines li {
  padding: 16px 0;
  border-bottom: 1px solid rgba(241,233,220,.18);
}
.bg-beige .def-lines li { border-bottom-color: rgba(26,28,31,.16); }
.def-lines b { display: block; font-size: 18px; font-weight: 700; }
.def-lines span { display: block; margin-top: 3px; color: var(--beige-mid); }
.bg-beige .def-lines span { color: #55595c; }

/* =========================================================
   Bewegung
   Zurueckhaltend und kantig — passend zu Swiss-Industrial.
   Kein Federn, kein Springen. Kurze Wege, scharfe Kurven.
   Inhalt ist IMMER lesbar, auch ohne JS (greift nur mit .js).
   ========================================================= */

:root {
  --ease-out: cubic-bezier(.16,.84,.36,1);   /* schnell raus, sanft aus */
  --ease-wipe: cubic-bezier(.7,0,.2,1);      /* harter Wisch */
}

/* ---------- Scroll-Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* Bildblöcke ziehen sich leicht zusammen statt zu rutschen */
.js .reveal--media { transform: none; clip-path: inset(0 0 14% 0); }
.js .reveal--media.is-in { clip-path: inset(0 0 0 0); transition: clip-path .9s var(--ease-out); }

/* ---------- Rote Slabs: Wisch von links ----------
   Greift das Logo-Prinzip auf — der rote Block schiebt sich ins Bild. */
.js .wipe { clip-path: inset(0 100% 0 0); }
.js .wipe.is-in { clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease-wipe); }

/* ---------- Haarlinien zeichnen sich ---------- */
.js .row, .js .list-lines li, .js .def-lines li, .js .contact-line { position: relative; }
.js .row::before,
.js .list-lines li::after,
.js .def-lines li::after,
.js .contact-line::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1px;
  background: currentColor; opacity: .001;
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease-out); transition-delay: var(--d, 0ms);
}
.js .row::before { top: -1px; }
.js .list-lines li::after, .js .def-lines li::after, .js .contact-line::after { bottom: -1px; }
.js .is-in.row::before,
.js .list-lines li.is-in::after,
.js .def-lines li.is-in::after,
.js .contact-line.is-in::after { transform: scaleX(1); }

/* ---------- Hero: ruhiger Zoom, laeuft einmal ---------- */
@keyframes heroSettle { from { transform: scale(1.07); } to { transform: scale(1); } }
.js .hero__img img { animation: heroSettle 16s var(--ease-out) both; }

/* ---------- Header ---------- */
.header { transition: box-shadow .25s ease, background .25s ease; }
.header.is-scrolled { box-shadow: 0 1px 0 rgba(241,233,220,.16), 0 10px 30px rgba(0,0,0,.45); }

/* Nav-Unterstrich waechst von links */
.nav a { position: relative; }
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease-out);
}
.nav a:hover::after { transform: scaleX(1); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { border-bottom-color: transparent; }

/* ---------- Buttons: Kante schiebt sich durch ---------- */
.btn, .header__cta { position: relative; overflow: hidden; isolation: isolate; }
.btn::before, .header__cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(0,0,0,.22);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-wipe);
}
.btn:hover::before, .header__cta:hover::before { transform: scaleX(1); }
.btn--on-red::before { background: rgba(0,0,0,.1); }
.btn:active, .header__cta:active { transform: translateY(1px); }

/* Notruf-Nummern: leichtes Anheben beim Hover */
.pikett__num, .cta__num, .notfall__num, .contact-line__val a {
  display: inline-block;
  transition: transform .25s var(--ease-out);
}
.pikett__num:hover, .cta__num:hover, .notfall__num:hover, .contact-line__val a:hover {
  transform: translateY(-2px);
}

/* ---------- 24h-Punkt im Footer: langsamer Puls ---------- */
@keyframes pulseDot {
  0%, 70%, 100% { opacity: 1; }
  85%           { opacity: .35; }
}
.js .dot { animation: pulseDot 3.4s ease-in-out infinite; }

/* ---------- Formularfelder ---------- */
.field input, .field select, .field textarea { transition: border-color .2s ease, background .2s ease; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(26,28,31,.6); }

/* ---------- Mobile-Menue: klappt auf ---------- */
@media (max-width: 1150px) {
  .nav.is-open { animation: navOpen .3s var(--ease-out) both; }
  @keyframes navOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
  .nav a::after { display: none; }
  .nav a[aria-current="page"] { border-bottom-color: var(--red); }
}

/* ---------- Bewegung aus: alles sofort sichtbar ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal--media { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js .wipe { clip-path: none !important; }
  .js .row::before,
  .js .list-lines li::after,
  .js .def-lines li::after,
  .js .contact-line::after { display: none; }
  .js .hero__img img { animation: none; }
  .js .dot { animation: none; }
}

/* =========================================================
   Marken-Intro beim Seitenaufruf
   Die Wortmarke wird von einem roten Balken aufgedeckt —
   dieselbe Mechanik wie im Logo (Block, aus dem Schrift entsteht).
   Kein Overlay, kein Preloader: der Inhalt ist sofort benutzbar.
   ========================================================= */

.js .header .header__name {
  display: inline-block;
  position: relative;
  clip-path: inset(0 100% 0 0);
  animation: brandReveal .72s var(--ease-wipe) .12s forwards;
}
@keyframes brandReveal { to { clip-path: inset(0 -6% 0 0); } }

/* roter Balken laeuft der Schrift voraus */
.js .header .header__name::after {
  content: "";
  position: absolute; top: -6px; bottom: -6px; left: -14px;
  width: 12px; background: var(--red);
  animation: brandBar .72s var(--ease-wipe) .12s forwards;
}
@keyframes brandBar {
  0%   { left: -14px; opacity: 1; }
  88%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* Ist das Intro durch, keine Reste im DOM-Verhalten lassen */
.js .header .header__name.brand-done { clip-path: none; animation: none; }
.js .header .header__name.brand-done::after { display: none; }

/* =========================================================
   Leistungs-Uebersicht: kompakte Zusatzliste
   Zeigt die Breite des Angebots, ohne die vier Hauptleistungen
   zu verwaessern. Zwei Spalten, Haarlinien, keine Icons.
   ========================================================= */

.svc-more { margin-top: 72px; }
.svc-more__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
  padding-bottom: 20px; border-bottom: 2px solid currentColor;
}
.svc-more__title { font-family: var(--f-display); font-size: clamp(22px,2.2vw,28px); line-height: 1.1; }
.svc-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 96px;
}
.svc-grid li {
  padding: 20px 0;
  border-bottom: 1px solid rgba(26,28,31,.16);
  display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: baseline;
}
.bg-black .svc-grid li, .bg-anthracite .svc-grid li { border-bottom-color: rgba(241,233,220,.18); }
.svc-grid b { font-size: 19px; font-weight: 700; }
.svc-grid span {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: #55595c; white-space: nowrap;
}
.bg-black .svc-grid span, .bg-anthracite .svc-grid span { color: var(--beige-mid); }

@media (max-width: 860px) {
  .svc-grid { grid-template-columns: 1fr; column-gap: 0; }
  .svc-grid li { grid-template-columns: 1fr; gap: 4px; }
  .svc-more { margin-top: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .header .header__name { clip-path: none !important; animation: none !important; }
  .js .header .header__name::after { display: none !important; }
}

/* Der Pikett-Slab ragt 70 px in den Hero hinein und verdeckte dort die
   Vertrauenszeile. Startseiten-Hero bekommt unten Luft, damit nichts kollidiert. */
.hero:not(.hero--page):not(.hero--strip) .hero__inner { padding-bottom: 104px; }

@media (max-width: 860px) {
  .hero:not(.hero--page):not(.hero--strip) .hero__inner { padding-bottom: 64px; }
}

/* Platzhalter in den Rechtstexten: Angaben, die nur der Kunde liefern kann
   (Anschrift, UID, Handelsregister, Formular-Versandweg).
   Bewusst dezent — kein Warnkasten, aber klar als Leerstelle erkennbar. */
.offen {
  color: #7a6f60;
  border-bottom: 1px dotted #a2937f;
  white-space: nowrap;
}
.bg-black .offen, .bg-anthracite .offen { color: var(--beige-mid); border-bottom-color: var(--beige-mid); }

/* ---------- Kontaktformular: Rueckmeldung und Spam-Falle ---------- */
.form-status {
  border-left: 4px solid var(--red);
  background: rgba(238,55,46,.07);
  padding: 18px 22px; margin: 0 0 28px;
  font-size: 17px; line-height: 1.55; max-width: 70ch;
}
.form-status.is-ok { border-left-color: #2f7a3f; background: rgba(47,122,63,.09); }

/* unsichtbares Feld gegen Spam-Roboter — fuer Menschen nicht erreichbar */
.honigtopf {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden;
}

/* =========================================================
   Footer-Wortmarke: gleiche Mechanik wie das Header-Intro,
   aber ausgeloest, wenn der Footer ins Bild kommt.
   Das Verstecken passiert erst, wenn JS die Klasse `brand-arm`
   setzt — ohne JS bleibt die Wortmarke normal sichtbar.
   ========================================================= */

.js .footer .header__name.brand-arm {
  display: inline-block;
  position: relative;
  clip-path: inset(0 100% 0 0);
}
.js .footer .header__name.brand-in {
  animation: brandReveal .72s var(--ease-wipe) .12s forwards;
}
.js .footer .header__name.brand-in::after {
  content: "";
  position: absolute; top: -6px; bottom: -6px; left: -14px;
  width: 12px; background: var(--red);
  animation: brandBar .72s var(--ease-wipe) .12s forwards;
}
.js .footer .header__name.brand-done { clip-path: none; animation: none; }
.js .footer .header__name.brand-done::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .js .footer .header__name.brand-arm { clip-path: none !important; animation: none !important; }
  .js .footer .header__name.brand-arm::after { display: none !important; }
}
