/* ==========================================================================
   Thüringer SHK GmbH & Co. KG — Stylesheet
   Richtung: "Werkstatt-Editorial" — warmes Papier, Graphit, Kobalt (Wasser)
   und Signalrot (Wärme), wie im Logo.
   Struktur: Fonts -> Tokens -> Reset -> Typografie -> Layout -> Buttons ->
             Header -> Hero -> Sections -> Footer -> Utilities -> Responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. LOKALE SCHRIFTARTEN
   Beide Dateien liegen in /fonts (Fontshare, frei für kommerzielle Nutzung).
   Bewusst kein externes Font-CDN (DSGVO).
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/Satoshi-Variable.woff2') format('woff2-variations'),
       url('../fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cabinet Grotesk';
  src: url('../fonts/CabinetGrotesk-Extrabold.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------------------
   1. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Flächen — eine warme Grau-Familie */
  --c-paper: #f5f3ee;
  --c-paper-2: #ece9e2;
  --c-card: #fbfaf7;
  --c-white: #ffffff;
  --c-line: rgba(28, 26, 22, 0.12);
  --c-line-strong: rgba(28, 26, 22, 0.22);

  /* Text */
  --c-ink: #17181c;
  --c-ink-soft: #4b4c52;
  --c-ink-faint: #67676d;

  /* Dunkle Flächen: Graphit, nicht Navy */
  --c-graphite: #16171b;
  --c-graphite-2: #202227;
  --c-on-dark: #f2f0eb;
  --c-on-dark-soft: rgba(242, 240, 235, 0.66);
  --c-on-dark-line: rgba(242, 240, 235, 0.12);

  /* Marke: Wasser & Wärme */
  --c-blue: #1f52c6;
  --c-blue-dark: #173f9c;
  --c-blue-tint: #e3e9f7;
  --c-red: #d23a2a;
  --c-red-dark: #ad2c1f;
  --c-red-tint: #f8e4df;

  /* Typografie */
  --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-display: 'Cabinet Grotesk', 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Radien: innen enger, Container weicher */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 32px;
  --radius-full: 999px;

  /* Schatten im warmen Grundton */
  --shadow-sm: 0 1px 2px rgba(40, 32, 20, 0.06);
  --shadow-md: 0 12px 30px -12px rgba(40, 32, 20, 0.18), 0 2px 6px rgba(40, 32, 20, 0.05);
  --shadow-lg: 0 30px 70px -24px rgba(40, 32, 20, 0.32), 0 8px 18px rgba(40, 32, 20, 0.06);

  /* Bewegung */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 380ms;
  --dur-4: 700ms;

  /* Abstände */
  --space-section: clamp(5rem, 3.5rem + 6vw, 9rem);
  --space-lg: clamp(2.5rem, 2rem + 2.5vw, 4.5rem);
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);

  --container: 1320px;
  --container-narrow: 760px;
  --header-h: 84px;

  /* Ebenen */
  --z-grain: 1;
  --z-fab: 40;
  --z-mobile-nav: 50;
  --z-header: 60;
  --z-skip: 70;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  color: var(--c-ink);
  background: var(--c-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, picture, video, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
address { font-style: normal; }

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

::selection { background: var(--c-ink); color: var(--c-paper); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  background: var(--c-ink);
  color: var(--c-paper);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  z-index: var(--z-skip);
  transition: transform var(--dur-2) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

/* Feines Korn über der ganzen Seite: bricht die digitale Glätte */
.grain {
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0 0.33 0 0 0 0.09 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   3. TYPOGRAFIE
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--c-ink);
  text-wrap: balance;
}

.display,
.h2 {
  font-family: var(--font-display);
  font-weight: 800;
}
.display {
  font-size: clamp(3rem, 1.4rem + 5.2vw, 6.2rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.h2 {
  font-size: clamp(2.3rem, 1.6rem + 3vw, 4.4rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
}
.h3 { font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.7rem); }
.h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }

.muted { color: var(--c-ink-faint); }

.lede {
  font-size: clamp(1.08rem, 1rem + 0.4vw, 1.28rem);
  color: var(--c-ink-soft);
  line-height: 1.55;
  font-weight: 450;
  max-width: 52ch;
  text-wrap: pretty;
}

p { color: var(--c-ink-soft); text-wrap: pretty; }

.tabular { font-variant-numeric: tabular-nums; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--c-ink);
}
.kicker span {
  display: inline-grid;
  place-items: center;
  min-width: 2.4rem;
  height: 1.7rem;
  padding-inline: 0.5rem;
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-ink-soft);
}
.kicker--light { color: var(--c-on-dark); }
.kicker--light span { border-color: var(--c-on-dark-line); color: var(--c-on-dark-soft); }

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 650;
  color: var(--c-ink);
  padding-block: 0.3rem;
}
.text-link::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform-origin: right;
  transition: transform var(--dur-3) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover::after { transform: scaleX(0); transform-origin: left; }
}
.text-link--sm { font-size: 0.9rem; margin-top: 0.4rem; }

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

.section {
  position: relative;
  z-index: 2;
  padding-top: var(--space-section);
  padding-bottom: calc(var(--space-section) * 1.08);
}
.section--ruled { border-top: 1px solid var(--c-line); }

.section-head { margin-bottom: var(--space-lg); }
.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: end;
}
.section-head--split .lede { padding-bottom: 0.5rem; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  font-weight: 650;
  font-size: 1rem;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--dur-2) var(--ease-spring), background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.btn-sm { padding: 0.7rem 1.2rem; font-size: 0.93rem; }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.04rem; }
.btn-block { width: 100%; }

/* Pfeil im eigenen Kreis — fährt beim Hover nach rechts */
.btn__arrow {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: -0.45rem -1.1rem -0.45rem 0.1rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.btn__arrow svg { width: 1rem; height: 1rem; transition: transform var(--dur-3) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .btn__arrow svg { animation: arrow-through 520ms var(--ease-out); }
}
@keyframes arrow-through {
  0% { transform: translateX(0); }
  45% { transform: translateX(140%); }
  46% { transform: translateX(-140%); }
  100% { transform: translateX(0); }
}

.btn-primary {
  background: var(--c-ink);
  color: var(--c-paper);
  box-shadow: 0 10px 24px -12px rgba(23, 24, 28, 0.55);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--c-blue); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(31, 82, 198, 0.55); }
}

.btn-outline {
  background: transparent;
  border-color: var(--c-line-strong);
  color: var(--c-ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover { border-color: var(--c-ink); background: var(--c-card); transform: translateY(-2px); }
}

.btn-red {
  background: var(--c-red);
  color: var(--c-white);
  box-shadow: 0 14px 30px -14px rgba(210, 58, 42, 0.7);
}
@media (hover: hover) and (pointer: fine) {
  .btn-red:hover { background: var(--c-red-dark); transform: translateY(-2px); }
}

.btn-light {
  background: var(--c-paper);
  color: var(--c-ink);
}
@media (hover: hover) and (pointer: fine) {
  .btn-light:hover { background: var(--c-white); transform: translateY(-2px); }
}

/* Live-Indikator für erreichbare Telefonnummern */
.live-dot {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #2e9b58;
}
.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  color: #2e9b58;
  animation: live-pulse 2.2s var(--ease-out) infinite;
}
.live-dot--red, .live-dot--red::after { background: var(--c-red); color: var(--c-red); }
.live-dot--red::after { background: none; }
@keyframes live-pulse {
  0% { transform: scale(0.6); opacity: 0.9; }
  80%, 100% { transform: scale(1.8); opacity: 0; }
}

/* --------------------------------------------------------------------------
   6. HEADER — schwebende Leiste
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-header);
  padding: 0.75rem var(--gutter) 0;
  pointer-events: none;
}
.header__bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: calc(var(--container) - 2 * var(--gutter) + 2rem);
  height: calc(var(--header-h) - 0.75rem);
  margin-inline: auto;
  padding: 0 0.6rem 0 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background-color var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.header.is-scrolled .header__bar {
  background: rgba(251, 250, 247, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-color: var(--c-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--shadow-md);
}

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 56px; width: auto; }

.nav__list { display: flex; align-items: center; gap: 0.25rem; }
.nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 550;
  font-size: 0.98rem;
  color: var(--c-ink-soft);
  transition: color var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--c-ink); background: rgba(28, 26, 22, 0.05); }
}
.nav__link.is-active { color: var(--c-ink); background: rgba(28, 26, 22, 0.07); }

.header__actions { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-full);
  font-weight: 650;
  font-size: 0.93rem;
  transition: background-color var(--dur-2) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .phone-link:hover { background: rgba(28, 26, 22, 0.05); }
}

.nav-toggle {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--c-ink);
  flex-shrink: 0;
  transition: transform var(--dur-2) var(--ease-spring);
}
.nav-toggle:active { transform: scale(0.92); }
.nav-toggle__line {
  position: absolute;
  left: 14px; right: 14px;
  height: 1.8px;
  border-radius: 2px;
  background: var(--c-paper);
  transition: transform var(--dur-3) var(--ease-out);
}
.nav-toggle__line:nth-child(1) { transform: translateY(-4px); }
.nav-toggle__line:nth-child(2) { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(1) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__line:nth-child(2) { transform: rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. MOBILE NAVIGATION
   -------------------------------------------------------------------------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: var(--z-mobile-nav);
  display: flex;
  flex-direction: column;
  padding: calc(var(--header-h) + 2rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px));
  background: var(--c-paper);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path var(--dur-4) var(--ease-drawer), visibility 0s linear var(--dur-4);
}
.mobile-nav.is-open {
  clip-path: inset(0 0 0 0);
  visibility: visible;
  transition: clip-path var(--dur-4) var(--ease-drawer), visibility 0s;
}
.mobile-nav__list { margin-bottom: 2rem; }
.mobile-nav__link {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--c-line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out);
}
.mobile-nav__link span { min-width: 1.4rem; font-variant-numeric: tabular-nums; font-family: var(--font-sans); font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: var(--c-ink-faint); }
.mobile-nav.is-open .mobile-nav__link { opacity: 1; transform: none; }
.mobile-nav.is-open li:nth-child(1) .mobile-nav__link { transition-delay: 120ms; }
.mobile-nav.is-open li:nth-child(2) .mobile-nav__link { transition-delay: 160ms; }
.mobile-nav.is-open li:nth-child(3) .mobile-nav__link { transition-delay: 200ms; }
.mobile-nav.is-open li:nth-child(4) .mobile-nav__link { transition-delay: 240ms; }
.mobile-nav.is-open li:nth-child(5) .mobile-nav__link { transition-delay: 280ms; }
.mobile-nav__ctas { display: flex; flex-direction: column; gap: 0.75rem; margin-top: auto; }

body.nav-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem));
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: center;
  min-height: calc(100dvh - var(--header-h) - 11rem);
}

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  padding: 0.4rem 0.95rem 0.4rem 0.4rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-full);
  background: var(--c-card);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-ink);
}
.hero__seal {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--c-blue);
}
.hero__seal svg { width: 14px; height: 14px; fill: var(--c-white); }

.hero__title { margin-bottom: clamp(1.5rem, 2.5vw, 2rem); text-wrap: wrap; }
.hero__title-accent { color: var(--c-blue); }

/* Curtain-Reveal: jede Headline-Zeile fährt einzeln hoch */
.reveal-line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.reveal-line__inner {
  display: block;
  transform: translateY(105%);
  animation: line-up 1000ms var(--ease-out) forwards;
}
.reveal-line:nth-child(1) .reveal-line__inner { animation-delay: 100ms; }
.reveal-line:nth-child(2) .reveal-line__inner { animation-delay: 190ms; }
.reveal-line:nth-child(3) .reveal-line__inner { animation-delay: 280ms; }
@keyframes line-up { to { transform: translateY(0); } }

.hero__lede { margin-bottom: clamp(2rem, 3vw, 2.75rem); max-width: 44ch; }

.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

.hero__kicker, .hero__lede, .hero__ctas {
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in var(--dur-4) var(--ease-out) forwards;
}
.hero__kicker { animation-delay: 40ms; }
.hero__lede { animation-delay: 460ms; }
.hero__ctas { animation-delay: 560ms; }
@keyframes hero-in { to { opacity: 1; transform: translateY(0); } }

/* Bildseite: hoher Rahmen, überlappende Notdienst-Karte */
.hero__visual {
  position: relative;
  padding-bottom: 2.5rem;
}
.hero__media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 72dvh;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--c-paper-2);
  box-shadow: var(--shadow-lg);
  clip-path: inset(100% 0 0 0 round var(--radius-lg));
  animation: media-in 1200ms var(--ease-out) 200ms forwards;
}
@keyframes media-in { to { clip-path: inset(0 0 0 0 round var(--radius-lg)); } }
.hero__media video,
.hero__media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  object-position: 42% 50%;
  transform: translate3d(0, calc(-10% + var(--parallax, 0px)), 0);
  will-change: transform;
}

.hero__emergency {
  position: absolute;
  left: clamp(-3rem, -3vw, -1rem);
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  width: min(300px, 80%);
  padding: 1.15rem 1.3rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--c-graphite);
  color: var(--c-on-dark);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(20px);
  animation: hero-in var(--dur-4) var(--ease-out) 900ms forwards;
  transition: transform var(--dur-3) var(--ease-spring);
}
.hero__emergency-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-on-dark-soft);
}
.hero__emergency strong { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; }
.hero__emergency-phone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.55rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--c-on-dark-line);
  font-size: 1.05rem;
  font-weight: 650;
}
.hero__emergency-phone svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--c-red);
  transition: transform var(--dur-3) var(--ease-spring);
}
@media (hover: hover) and (pointer: fine) {
  .hero__emergency:hover .hero__emergency-phone svg { transform: rotate(45deg); }
}

.hero__chip {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), var(--shadow-md);
  font-size: 0.84rem;
  font-weight: 650;
  opacity: 0;
  animation: hero-in var(--dur-4) var(--ease-out) 1050ms forwards;
}
.hero__chip svg { width: 15px; height: 15px; color: var(--c-blue); }

/* Versprechen-Leiste unter dem Hero */
.promises {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--c-line-strong);
}
.promise {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.6rem clamp(1rem, 2vw, 1.75rem) 0.25rem;
  border-left: 1px solid var(--c-line);
}
.promise:first-child { border-left: 0; padding-left: 0; }
.promise__num { margin-bottom: 0.6rem; font-size: 0.8rem; font-weight: 700; color: var(--c-blue); }
.promise strong { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; }
.promise span:last-child { font-size: 0.93rem; color: var(--c-ink-soft); max-width: 30ch; }

/* --------------------------------------------------------------------------
   9. CREDENTIALS
   -------------------------------------------------------------------------- */
.credentials { position: relative; z-index: 2; margin-top: clamp(3rem, 6vw, 5rem); }
.credentials__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}
.credentials__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--c-ink-faint);
}
.credentials__list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.credentials__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-full);
  background: var(--c-card);
  font-size: 0.9rem;
  font-weight: 600;
}
.credentials__list svg { width: 18px; height: 18px; color: var(--c-blue); }
.credentials__list li:nth-child(2) svg { color: var(--c-red); }

/* --------------------------------------------------------------------------
   10. LEISTUNGEN — "Vier Elemente": sticky Bühne + Typo-Kapitel
   Beim Scrollen wird das Kapitel in der Lesemitte aktiv (JS setzt
   .is-active), die Bühne blendet die passende Szene per Clip-Path ein.
   -------------------------------------------------------------------------- */
.elements__head {
  max-width: 46rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.elements__head .h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2.6rem, 1.6rem + 4.2vw, 5.6rem);
}

.elements__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}

/* Bühne */
.stage {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  height: min(78dvh, 640px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  isolation: isolate;
  background: var(--c-graphite);
  box-shadow: var(--shadow-lg);
}

.scene {
  --scene-bg: var(--c-graphite);
  --scene-ink: var(--c-on-dark);
  --scene-soft: var(--c-on-dark-soft);
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: var(--scene-bg);
  color: var(--scene-ink);
  clip-path: inset(100% 0 0 0);
  transition: clip-path 900ms var(--ease-out);
  z-index: 0;
}
.scene.is-active {
  clip-path: inset(0 0 0 0);
  z-index: 1;
}
/* Die vorherige Szene bleibt darunter stehen, bis die neue sie überdeckt */
.scene.was-active { clip-path: inset(0 0 0 0); z-index: 0; transition: none; }

.scene svg {
  flex: 1;
  width: 100%;
  min-height: 0;
  overflow: visible;
  transform: scale(1.06) translateY(3%);
  opacity: 0;
  transition: transform 1100ms var(--ease-out), opacity 700ms var(--ease-out) 120ms;
}
.scene.is-active svg { transform: none; opacity: 1; }

.scene__caption {
  max-width: 24ch;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--scene-ink);
  text-wrap: balance;
  transform: translateY(1.25rem);
  opacity: 0;
  transition: transform 800ms var(--ease-out) 250ms, opacity 600ms var(--ease-out) 250ms;
}
.scene.is-active .scene__caption { transform: none; opacity: 1; }

.scene__label {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  fill: var(--scene-soft);
  stroke: none;
}

/* Loops laufen nur in der sichtbaren Szene */
.scene * { animation-play-state: paused; }
.scene.is-active * { animation-play-state: running; }

/* Szene: Wärme */
.scene--heat {
  background:
    radial-gradient(70% 55% at 85% 70%, rgba(210, 58, 42, 0.32), transparent 70%),
    var(--c-graphite);
}
.heat__ground { stroke: var(--c-on-dark-line); stroke-width: 2; }
.heat__unit { stroke: rgba(242, 240, 235, 0.5); stroke-width: 2.5; fill: rgba(255, 255, 255, 0.03); }
.heat__fan-ring { stroke: rgba(242, 240, 235, 0.3); stroke-width: 2; }
.heat__fan {
  fill: rgba(242, 240, 235, 0.55);
  transform-box: view-box;
  transform-origin: 95px 306px;
  animation: spin 2.4s linear infinite;
}
.heat__hub { fill: var(--c-on-dark); }
.heat__house { stroke: rgba(242, 240, 235, 0.5); stroke-width: 2.5; }
.heat__radiator { stroke: var(--c-red); stroke-width: 2.5; fill: rgba(210, 58, 42, 0.12); animation: radiator-glow 2.8s ease-in-out infinite; }
.heat__radiator-rib { stroke: var(--c-red); stroke-width: 2; opacity: 0.7; }
.heat__rise { stroke: rgba(255, 143, 128, 0.8); stroke-width: 2; animation: heat-rise 2.4s var(--ease-out) infinite; }
.heat__rise--2 { animation-delay: 0.5s; }
.heat__rise--3 { animation-delay: 1s; }
.heat__pipe { stroke-width: 4; stroke-dasharray: 10 9; }
.heat__pipe--warm { stroke: var(--c-red); animation: flow-move 1.2s linear infinite; }
.heat__pipe--cool { stroke: #6f93ea; animation: flow-move 1.2s linear infinite; }
.heat__particle { offset-rotate: 0deg; animation: particle-move 2.4s linear infinite; }
.heat__particle--warm { fill: #ffb3a8; offset-path: path('M156 272 C 200 240, 236 250, 276 312'); }
.heat__particle--cool { fill: #b9ccf6; offset-path: path('M276 336 C 236 372, 196 360, 156 340'); animation-delay: 1.2s; }

@keyframes radiator-glow { 50% { fill: rgba(210, 58, 42, 0.4); } }
@keyframes heat-rise {
  0% { transform: translateY(6px); opacity: 0; }
  40% { opacity: 1; }
  100% { transform: translateY(-14px); opacity: 0; }
}
@keyframes flow-move { to { stroke-dashoffset: -38; } }
@keyframes particle-move { from { offset-distance: 0%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }

/* Szene: Wasser */
.scene--water {
  --scene-bg: var(--c-blue);
  --scene-soft: rgba(255, 255, 255, 0.7);
  background:
    radial-gradient(80% 60% at 20% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
    var(--c-blue);
}
.water__drop { stroke: rgba(255, 255, 255, 0.9); stroke-width: 3; }
.water__shine { fill: rgba(255, 255, 255, 0.85); }
.water__level {
  transform: translateY(420px);
  transition: transform 1600ms var(--ease-out) 300ms;
}
.scene--water.is-active .water__level { transform: translateY(196px); }
.water__wave { animation: wave-drift 5s linear infinite; }
.water__wave--back { fill: rgba(255, 255, 255, 0.3); animation-duration: 7s; animation-direction: reverse; }
.water__wave--front { fill: rgba(255, 255, 255, 0.92); }
@keyframes wave-drift { to { transform: translateX(200px); } }
.water__bubble { fill: rgba(31, 82, 198, 0.35); animation: bubble-up 3.2s ease-in infinite; }
.water__bubble--2 { animation-delay: 1.1s; animation-duration: 2.6s; }
.water__bubble--3 { animation-delay: 2s; }
@keyframes bubble-up {
  0% { transform: translateY(0); opacity: 0; }
  20% { opacity: 1; }
  100% { transform: translateY(-150px); opacity: 0; }
}

/* Szene: Luft */
.scene--air {
  --scene-bg: var(--c-paper-2);
  --scene-ink: var(--c-ink);
  --scene-soft: var(--c-ink-soft);
}
.air__unit { fill: var(--c-card); stroke: var(--c-line-strong); stroke-width: 2; }
.air__louver { stroke: var(--c-ink-faint); stroke-width: 3; }
.air__led { fill: #2e9b58; }
.air__stream {
  stroke: var(--c-blue);
  stroke-width: 3;
  stroke-dasharray: 26 18;
  opacity: 0.85;
  animation: air-flow 1.8s linear infinite;
}
.air__stream--2 { opacity: 0.55; animation-duration: 2.2s; }
.air__stream--3 { opacity: 0.9; animation-duration: 1.6s; }
.air__stream--4 { opacity: 0.55; animation-duration: 2.1s; }
.air__stream--5 { opacity: 0.8; animation-duration: 1.9s; }
@keyframes air-flow { to { stroke-dashoffset: -88; } }

/* Szene: Wartung & Smart Home */
.scene--care {
  --scene-bg: var(--c-graphite-2);
  background:
    radial-gradient(60% 50% at 50% 45%, rgba(31, 82, 198, 0.35), transparent 70%),
    var(--c-graphite-2);
}
.care__ticks { stroke: rgba(242, 240, 235, 0.22); stroke-width: 10; stroke-dasharray: 1.5 6.35; }
.care__track { stroke: var(--c-on-dark-line); stroke-width: 16; stroke-dasharray: 75 100; }
.care__arc {
  stroke: #5f86e6;
  stroke-width: 16;
  stroke-dasharray: 0 100;
  transition: stroke-dasharray 1400ms var(--ease-out) 300ms;
}
.scene--care.is-active .care__arc { stroke-dasharray: 52 100; }
.care__knob {
  fill: var(--c-on-dark);
  transform-box: view-box;
  transform-origin: 200px 222px;
  transform: rotate(135deg);
  transition: transform 1400ms var(--ease-out) 300ms;
}
.scene--care.is-active .care__knob { transform: rotate(322deg); }
.care__temp {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 84px;
  letter-spacing: -0.04em;
  fill: var(--c-on-dark);
}

/* Kapitel */
.chapters { counter-reset: none; }
.chapter {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: min(70dvh, 620px);
  padding-block: 2rem;
  opacity: 0.22;
  transition: opacity 600ms var(--ease-out);
}
.chapter:first-child { min-height: min(56dvh, 520px); justify-content: flex-start; padding-top: 0; }
.chapter.is-active { opacity: 1; }

.chapter__media { display: none; }

.chapter__title {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 1.3rem + 2.8vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  max-width: 12ch;
  transform: translateX(-0.75rem);
  transition: transform 700ms var(--ease-out);
}
.chapter.is-active .chapter__title { transform: none; }
.chapter > p { max-width: 44ch; margin-bottom: 1.75rem; font-size: 1.08rem; }

.chapter__facts {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 2rem;
}
.chapter__facts li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--c-ink);
}
.chapter__facts li::before {
  content: '';
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--c-blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f52c6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}
.chapter[data-chapter="heat"] .chapter__facts li::before {
  background-color: var(--c-red-tint);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ad2c1f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E");
}
.chapter .text-link { align-self: flex-start; }

@media (prefers-reduced-motion: reduce) {
  .scene, .scene svg, .scene__caption, .chapter__title, .water__level, .care__arc, .care__knob { transition: none; }
  .scene * { animation: none !important; }
  .scene--water .water__level { transform: translateY(196px); }
  .care__arc { stroke-dasharray: 52 100; }
  .care__knob { transform: rotate(322deg); }
}

/* --------------------------------------------------------------------------
   11. ABLAUF
   -------------------------------------------------------------------------- */
.process {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  align-items: start;
}
.process__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.process__intro .h2 { margin-bottom: 1.5rem; max-width: 12ch; }
.process__intro .lede { margin-bottom: 1.75rem; max-width: 40ch; }

.process__steps {
  --progress: 0;
  position: relative;
  padding-left: clamp(3.5rem, 6vw, 5rem);
}
/* Fortschrittslinie, die sich beim Scrollen füllt */
.process__steps::before,
.process__steps::after {
  content: '';
  position: absolute;
  left: 1.2rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  border-radius: 2px;
  background: var(--c-line);
}
.process__steps::after {
  background: var(--c-blue);
  transform-origin: top;
  transform: scaleY(var(--progress));
}
.process__step {
  position: relative;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.process__step:last-child { padding-bottom: 0; }
.process__num {
  position: absolute;
  left: calc(clamp(3.5rem, 6vw, 5rem) * -1);
  top: 0;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: var(--c-paper);
  border: 1.5px solid var(--c-line-strong);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--c-ink-soft);
  transition: background-color var(--dur-3) var(--ease-out), color var(--dur-3) var(--ease-out), border-color var(--dur-3) var(--ease-out);
}
.process__step.is-reached .process__num { background: var(--c-blue); border-color: var(--c-blue); color: var(--c-white); }
.process__step h3 {
  margin: 0.35rem 0 0.6rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
  letter-spacing: -0.03em;
}
.process__step p { max-width: 46ch; }

/* --------------------------------------------------------------------------
   12. KARRIERE — eingesetztes dunkles Panel
   -------------------------------------------------------------------------- */
.career-wrap {
  position: relative;
  z-index: 2;
  padding-inline: clamp(0.5rem, 1.5vw, 1.25rem);
}
.career {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding-block: var(--space-section);
  border-radius: var(--radius-lg);
  background: var(--c-graphite);
  color: var(--c-on-dark);
}
.career__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50rem 30rem at 0% 100%, rgba(31, 82, 198, 0.28), transparent 60%),
    radial-gradient(36rem 24rem at 100% 0%, rgba(210, 58, 42, 0.16), transparent 60%);
}
.career__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.career .h2 { color: var(--c-on-dark); margin-bottom: 1.4rem; max-width: 13ch; }
.career .lede { color: var(--c-on-dark-soft); margin-bottom: 2.5rem; }

.benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-on-dark-line);
}
.benefits li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.4rem 1.5rem 1.4rem 0;
  border-bottom: 1px solid var(--c-on-dark-line);
}
.benefits li:nth-child(even) { padding-left: 1.5rem; border-left: 1px solid var(--c-on-dark-line); }
.benefits strong { font-size: 1.05rem; color: var(--c-on-dark); }
.benefits span { font-size: 0.92rem; color: var(--c-on-dark-soft); }

.jobs {
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--c-on-dark-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.jobs__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--c-on-dark);
}
.jobs__count {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--c-red);
  font-size: 0.8rem;
  color: var(--c-white);
}
.jobs__list { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.5rem; }
.job {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-on-dark-line);
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out);
}
.job strong { display: block; font-size: 0.98rem; color: var(--c-on-dark); }
.job small { font-size: 0.82rem; color: var(--c-on-dark-soft); }
.job svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--c-on-dark-soft); transition: transform var(--dur-3) var(--ease-spring), color var(--dur-2) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .job:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(242, 240, 235, 0.24); }
  .job:hover svg { transform: translate(2px, -2px); color: var(--c-on-dark); }
}
.jobs__note { margin-bottom: 1.5rem; font-size: 0.9rem; color: var(--c-on-dark-soft); }

/* --------------------------------------------------------------------------
   13. REFERENZEN — Zitat-Wand
   -------------------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}
.quote {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  margin: 0;
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  border-radius: var(--radius-md);
  background: var(--c-card);
  border: 1px solid var(--c-line);
}
.quote--feature { grid-column: span 7; grid-row: span 2; background: var(--c-paper-2); border-color: transparent; }
.quote:nth-child(2) { grid-column: span 5; }
.quote:nth-child(3) { grid-column: span 5; }
.quote:nth-child(4) { grid-column: 3 / span 8; }

.quote blockquote {
  font-size: clamp(1.1rem, 1rem + 0.35vw, 1.3rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--c-ink);
  text-wrap: pretty;
}
.quote blockquote::before { content: '„'; }
.quote blockquote::after { content: '“'; }
.quote--feature blockquote {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.quote--feature blockquote::before { color: var(--c-blue); }

.quote__author { display: flex; align-items: center; gap: 0.85rem; }
.quote__author strong { display: block; font-size: 0.97rem; }
.quote__author small { font-size: 0.85rem; color: var(--c-ink-faint); }
.quote__avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--c-blue);
  color: var(--c-white);
  font-size: 0.88rem;
  font-weight: 700;
}
.quote__avatar--red { background: var(--c-red); }
.quote__avatar--ink { background: var(--c-ink); }

/* --------------------------------------------------------------------------
   14. KONTAKT
   -------------------------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact__info .h2 { margin-bottom: 1.25rem; }
.contact__info .lede { margin-bottom: 2.5rem; max-width: 40ch; }

.contact__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--c-line-strong);
}
.contact__list > div { padding: 1.25rem 1rem 1.25rem 0; border-bottom: 1px solid var(--c-line); }
.contact__list dt { margin-bottom: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--c-ink-faint); }
.contact__list dd { font-size: 1rem; font-weight: 550; color: var(--c-ink); }
.contact__list dd a:not(.text-link) { transition: color var(--dur-2) var(--ease-out); }
.contact__list dd a:not(.text-link):hover { color: var(--c-blue); }

.emergency-note {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-md);
  background: var(--c-red-tint);
  transition: transform var(--dur-3) var(--ease-spring);
}
.emergency-note .live-dot { margin-top: 0.45rem; }
.emergency-note strong { display: block; margin-bottom: 0.15rem; font-size: 1rem; color: var(--c-ink); }
.emergency-note span span { font-size: 0.93rem; color: var(--c-ink-soft); }
.emergency-note b { color: var(--c-red-dark); }
@media (hover: hover) and (pointer: fine) {
  .emergency-note:hover { transform: translateY(-2px); }
}

/* Formular */
.form-card {
  padding: clamp(1.5rem, 3vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
.form-field label,
.form-field legend { font-size: 0.9rem; font-weight: 650; color: var(--c-ink); }
.form-field legend { margin-bottom: 0.75rem; }
.form-field .optional {
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-xs);
  background: var(--c-paper-2);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--c-ink-faint);
}
.form-field input,
.form-field textarea {
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--c-line);
  background: var(--c-paper);
  font-size: 1rem;
  color: var(--c-ink);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.form-field textarea { resize: vertical; min-height: 140px; }
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--c-ink-faint); }
@media (hover: hover) and (pointer: fine) {
  .form-field input:hover,
  .form-field textarea:hover { border-color: var(--c-line-strong); }
}
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  background: var(--c-white);
  box-shadow: 0 0 0 4px rgba(31, 82, 198, 0.14);
}
.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--c-red); background: #fdf6f4; }
.form-field.has-error .field-error { display: block; }
.field-error { display: none; font-size: 0.84rem; font-weight: 600; color: var(--c-red-dark); }

/* Themen als Chips statt Select */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--c-line);
  background: var(--c-paper);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-ink-soft);
  transition: background-color var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out), color var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-spring);
}
.chip:active span { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .chip:hover span { border-color: var(--c-line-strong); color: var(--c-ink); }
}
.chip input:checked + span { background: var(--c-ink); border-color: var(--c-ink); color: var(--c-paper); }
.chip input:focus-visible + span { outline: 2px solid var(--c-blue); outline-offset: 2px; }

.form-submit { margin-top: 0.5rem; }
.form-submit:disabled { opacity: 0.7; cursor: progress; }
.form-submit.is-loading .btn__arrow svg { animation: none; opacity: 0; }
.form-submit.is-loading .btn__arrow::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--c-white);
  animation: spin 700ms linear infinite;
}
.btn__arrow { position: relative; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-note { margin-top: 1rem; font-size: 0.84rem; color: var(--c-ink-faint); text-align: center; }
.form-note a { color: var(--c-ink-soft); text-decoration: underline; text-underline-offset: 3px; }

.form-status {
  display: none;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 600;
}
.form-status.is-visible { display: flex; animation: hero-in var(--dur-3) var(--ease-out); }
.form-status.is-success { background: var(--c-blue-tint); color: var(--c-blue-dark); }
.form-status.is-error { background: var(--c-red-tint); color: var(--c-red-dark); }
.form-status svg { width: 20px; height: 20px; flex-shrink: 0; }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  margin-top: clamp(0.5rem, 1.5vw, 1.25rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  background: var(--c-graphite);
  color: var(--c-on-dark-soft);
}
.footer a { transition: color var(--dur-2) var(--ease-out); }
.footer a:hover { color: var(--c-on-dark); }

.footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: clamp(3rem, 6vw, 5rem);
  border-bottom: 1px solid var(--c-on-dark-line);
}
.footer__claim {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.2rem, 1.4rem + 3.5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--c-on-dark);
}
.footer__claim span { color: rgba(242, 240, 235, 0.4); }

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 2.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
}
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; align-content: start; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--c-on-dark-line);
  font-size: 0.84rem;
}
.footer-legal { color: rgba(242, 240, 235, 0.45); }
.footer-bottom-links { display: flex; gap: 1.5rem; }

/* Riesige Wortmarke, angeschnitten am unteren Rand */
.footer__wordmark {
  margin-top: 1rem;
  margin-bottom: -0.2em;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 22vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  background: linear-gradient(180deg, rgba(242, 240, 235, 0.1), rgba(242, 240, 235, 0.02));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}

/* --------------------------------------------------------------------------
   16. STICKY NOTDIENST BUTTON
   -------------------------------------------------------------------------- */
.emergency-fab {
  position: fixed;
  right: clamp(0.9rem, 2vw, 1.75rem);
  bottom: calc(clamp(0.9rem, 2vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-fab);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1.2rem 0.5rem 0.5rem;
  border-radius: var(--radius-full);
  background: var(--c-red);
  color: var(--c-white);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 16px 34px -12px rgba(210, 58, 42, 0.65), 0 4px 10px rgba(40, 20, 10, 0.12);
  transform: translateY(0);
  transition: transform var(--dur-3) var(--ease-spring), opacity var(--dur-3) var(--ease-out), background-color var(--dur-2) var(--ease-out);
}
.emergency-fab.is-hidden { transform: translateY(150%); opacity: 0; pointer-events: none; }
.emergency-fab:active { transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .emergency-fab:hover { background: var(--c-red-dark); transform: translateY(-2px); }
}
.emergency-fab__ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}
.emergency-fab__ring svg { width: 18px; height: 18px; }
.emergency-fab__ring::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  animation: live-pulse 2.4s var(--ease-out) infinite;
}
.emergency-fab__text { display: flex; flex-direction: column; line-height: 1.15; }
.emergency-fab__text small { font-size: 0.72rem; font-weight: 600; opacity: 0.85; }

/* --------------------------------------------------------------------------
   17. SCROLL-REVEAL
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .reveal-line__inner { transform: none; animation: none; }
  .hero__kicker, .hero__lede, .hero__ctas, .hero__emergency, .hero__chip { opacity: 1; transform: none; animation: none; }
  .hero__media { clip-path: none; animation: none; }
  .flow-path-warm, .flow-path-cool, .flow-particle--warm, .flow-particle--cool,
  .live-dot::after, .emergency-fab__ring::before { animation: none; }
}

/* --------------------------------------------------------------------------
   18. UNTERSEITEN (Impressum, Datenschutz, 404)
   -------------------------------------------------------------------------- */
.page-header .header__bar {
  background: rgba(251, 250, 247, 0.78);
  border-color: var(--c-line);
  box-shadow: var(--shadow-sm);
}
.legal { padding-top: calc(var(--header-h) + clamp(3rem, 6vw, 5rem)); }
.legal h1 { margin-bottom: clamp(2rem, 4vw, 3rem); }
.legal h2 { margin: 2.25rem 0 0.5rem; font-size: 1.15rem; font-weight: 700; }
.legal p { max-width: 68ch; }
.legal a { color: var(--c-blue); text-decoration: underline; text-underline-offset: 3px; }
.legal__hint {
  margin-top: 3rem;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: var(--c-paper-2);
  font-size: 0.9rem;
}
.page-footer { padding-top: 0; }
.page-footer .footer-bottom { border-top: 0; }

.not-found {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--header-h) + 2rem) 4rem;
}
.not-found__code {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(6rem, 20vw, 14rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: var(--c-blue);
}
.not-found .lede { margin: 1.25rem 0 2.25rem; }
.not-found__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }

/* --------------------------------------------------------------------------
   19. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .phone-link { display: none; }
}

@media (max-width: 999px) {
  :root { --header-h: 76px; }
  .nav { display: none; }
  .nav-toggle { display: block; }
  .header__actions .btn-sm { display: none; }
  .brand__logo { height: 50px; }
  .header__bar {
    background: rgba(251, 250, 247, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-color: var(--c-line);
  }

  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__visual { padding-bottom: 0; }
  .hero__media { aspect-ratio: 4 / 3; max-height: none; }
  .hero__emergency { position: relative; left: auto; width: auto; margin: -3rem 1rem 0; }

  .promises { grid-template-columns: 1fr 1fr; }
  .promise:nth-child(3) { border-left: 0; padding-left: 0; }
  .promise:nth-child(-n+2) { padding-bottom: 1.6rem; border-bottom: 1px solid var(--c-line); }

  .section-head--split { grid-template-columns: 1fr; align-items: start; }

  .elements__body { grid-template-columns: 1fr; gap: 0; }
  .stage { display: none; }
  .chapter,
  .chapter:first-child { min-height: 0; opacity: 1; padding-block: 0 clamp(3.5rem, 8vw, 5rem); }
  .chapter__title { transform: none; }
  .chapter__media {
    position: relative;
    display: block;
    aspect-ratio: 5 / 4;
    margin-bottom: 1.75rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    background: var(--c-graphite);
  }
  .chapter__media:empty { display: none; }

  .process { grid-template-columns: 1fr; }
  .process__intro { position: static; }

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

  .quote--feature { grid-column: span 12; grid-row: auto; }
  .quote:nth-child(2), .quote:nth-child(3) { grid-column: span 6; }
  .quote:nth-child(4) { grid-column: span 12; }

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

@media (max-width: 639px) {
  body { font-size: 1rem; }
  .display { font-size: clamp(2.4rem, 11.4vw, 3.4rem); }
  .hero__ctas .btn { width: 100%; }
  .hero__ctas .text-link { margin-inline: auto; }
  .hero__chip { top: 0.75rem; right: 0.75rem; font-size: 0.78rem; }

  .promises { grid-template-columns: 1fr; }
  .promise { border-left: 0 !important; padding-left: 0; padding-bottom: 1.4rem; border-bottom: 1px solid var(--c-line); }
  .promise:last-child { border-bottom: 0; }

  .credentials__row { gap: 0.75rem; }


  .benefits { grid-template-columns: 1fr; }
  .benefits li:nth-child(even) { padding-left: 0; border-left: 0; }

  .quote:nth-child(n) { grid-column: span 12; }

  .contact__list { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }

  .footer__top .btn { width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .emergency-fab { padding: 0.45rem; }
  .emergency-fab__text { display: none; }
}
