/* ==========================================================================
   LESA Wasserschadenmanagement — Stylesheet
   Markenfarben aus Positionierung horst design 04/2026
   ========================================================================== */

/* Inter — self-hosted (DSGVO-compliant, no Google Fonts CDN call) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Primärfarben */
  --petrol:        #2D6064;
  --petrol-dark:   #1c4448;
  --petrol-darker: #133135;
  --petrol-light:  #6a9498;
  --petrol-pale:   #e3eced;
  --orange:        #E36F2D;
  --orange-soft:   #f3a874;

  /* Neutral */
  --offwhite:      #F5F5F3;
  --paper:         #ffffff;
  --ink:           #1a1a1a;
  --ink-soft:      #4a4a4a;
  --ink-muted:     #6e6e6e;
  --line:          rgba(45, 96, 100, 0.14);
  --line-strong:   rgba(45, 96, 100, 0.32);

  /* Layout */
  --max:           1240px;
  --gutter:        clamp(20px, 4vw, 56px);
  --section-y:     clamp(80px, 10vw, 140px);
  --radius-sm:     6px;
  --radius:        12px;
  --radius-lg:     20px;

  /* Type scale (fluid) */
  --fs-display:    clamp(2.6rem, 6.4vw, 5.6rem);
  --fs-h1:         clamp(2.1rem, 4.6vw, 3.6rem);
  --fs-h2:         clamp(1.65rem, 3.2vw, 2.4rem);
  --fs-h3:         clamp(1.2rem, 2vw, 1.45rem);
  --fs-lead:       clamp(1.05rem, 1.4vw, 1.2rem);
  --fs-body:       1rem;
  --fs-small:      0.875rem;
  --fs-micro:      0.75rem;

  --shadow-sm:     0 1px 2px rgba(19, 49, 53, 0.05), 0 4px 12px rgba(19, 49, 53, 0.04);
  --shadow:        0 4px 18px rgba(19, 49, 53, 0.08), 0 16px 40px rgba(19, 49, 53, 0.06);
  --shadow-lg:     0 12px 36px rgba(19, 49, 53, 0.14), 0 32px 80px rgba(19, 49, 53, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: hidden;
}

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

img, svg, picture { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; line-height: 1.25; }
h4 { font-size: 1.1rem; letter-spacing: -0.005em; line-height: 1.3; }

p { color: var(--ink-soft); }
p + p { margin-top: 0.85em; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 1.25rem;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--ink-soft);
}

.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.text-petrol { color: var(--petrol); }
.text-orange { color: var(--orange); }
.text-white  { color: #fff; }
.text-muted  { color: var(--ink-muted); }

/* ==========================================================================
   Layout primitives
   ========================================================================== */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1440px; }

section { padding-block: var(--section-y); position: relative; }
section.compact { padding-block: clamp(56px, 7vw, 96px); }

.grid { display: grid; gap: clamp(24px, 3vw, 40px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 580px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.surface-petrol { background: var(--petrol); color: #fff; }
.surface-petrol h1, .surface-petrol h2, .surface-petrol h3, .surface-petrol h4 { color: #fff; }
.surface-petrol p { color: rgba(255, 255, 255, 0.82); }
.surface-petrol .eyebrow { color: var(--orange); }

.surface-dark { background: var(--ink); color: #fff; }
.surface-dark h1, .surface-dark h2, .surface-dark h3, .surface-dark h4 { color: #fff; }
.surface-dark p { color: rgba(255, 255, 255, 0.74); }

.surface-offwhite { background: var(--offwhite); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95em 1.6em;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 4px 14px rgba(227, 111, 45, 0.35); }
.btn-primary:hover { background: #d8631e; box-shadow: 0 8px 22px rgba(227, 111, 45, 0.42); }

.btn-petrol { background: var(--petrol); color: #fff; }
.btn-petrol:hover { background: var(--petrol-dark); }

.btn-outline { background: transparent; color: var(--petrol); border-color: var(--petrol); }
.btn-outline:hover { background: var(--petrol); color: #fff; }

.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { background: #fff; color: var(--petrol); border-color: #fff; }

.btn-ghost { background: transparent; color: var(--petrol); }
.btn-ghost:hover { color: var(--orange); }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 18px 0;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease, transform 0.3s ease, border-color 0.25s ease;
  background:
    linear-gradient(to bottom,
      rgba(19, 49, 53, 0.98) 0%,
      rgba(19, 49, 53, 0.94) 100%),
    var(--petrol-darker);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.20), 0 6px 18px rgba(19, 49, 53, 0.18);
}
.nav.is-transparent {
  background:
    linear-gradient(to bottom,
      rgba(19, 49, 53, 0.78) 0%,
      rgba(19, 49, 53, 0.42) 100%);
  border-bottom-color: rgba(255, 255, 255, 0.10);
  box-shadow: none;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 4px 20px rgba(0,0,0,0.04);
  border-bottom-color: var(--line);
  padding: 12px 0;
}
.nav.is-hidden { transform: translateY(-110%); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo { display: inline-flex; align-items: center; height: 56px; }
.nav-logo img { height: 56px; width: auto; transition: height 0.2s ease; }
.nav.is-scrolled .nav-logo img { height: 46px; }
.nav.is-scrolled .nav-logo { height: 46px; }

.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links > a,
.nav-links .nav-item-link {
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav.is-scrolled .nav-links > a,
.nav.is-scrolled .nav-links .nav-item-link { color: var(--ink); }
.nav-links > a,
.nav-links .nav-item-link {
  position: relative;
}
.nav-links > a::after,
.nav-links .nav-item-link::after {
  content: '';
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.65, 0, 0.35, 1);
}
.nav-links > a:hover,
.nav-links .nav-item-link:hover { color: var(--orange); }
.nav-links > a:hover::after,
.nav-links .nav-item-link:hover::after,
.nav-links > a[aria-current="page"]::after,
.nav-links .nav-item-link[aria-current="page"]::after {
  transform: scaleX(1);
}
.nav-links > a[aria-current="page"],
.nav-links .nav-item-link[aria-current="page"] { color: var(--orange); }

/* Submenu (Leistungen dropdown) */
.nav-item { position: relative; }

/* Hover-bridge: invisible buffer between link bottom and submenu top so the
   cursor can travel across the nav padding without losing :hover state.
   Only activates when menu is already open — avoids blocking sibling nav items. */
.nav-item-has-submenu::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 0;
  pointer-events: none;
}
.nav-item-has-submenu:hover::after,
.nav-item-has-submenu:focus-within::after,
.nav-item-has-submenu.is-open::after {
  height: 32px;
  pointer-events: auto;
}
.nav-item-link { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.nav-item-link .caret { font-size: 0.62em; transition: transform 0.25s ease; line-height: 1; opacity: 0.72; }
.nav-item-has-submenu:hover .caret,
.nav-item-has-submenu:focus-within .caret { transform: rotate(180deg); }

/* Mega-menu: full-width bar drops below header */
.nav-submenu {
  position: fixed;
  top: var(--nav-h, 92px);
  left: 0;
  right: 0;
  width: 100vw;
  margin: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--orange);
  box-shadow: 0 16px 40px rgba(19, 49, 53, 0.14);
  padding: clamp(20px, 2.5vw, 32px) clamp(24px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(5, 1fr) auto;
  gap: 10px;
  align-items: stretch;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1),
              visibility 0.28s ease;
  z-index: 90;
}
.nav.is-scrolled .nav-submenu { box-shadow: 0 24px 60px rgba(19, 49, 53, 0.18); }
.nav-item-has-submenu:hover .nav-submenu,
.nav-item-has-submenu:focus-within .nav-submenu,
.nav-item-has-submenu.is-open .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.nav-submenu a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 18px 18px 16px;
  border-radius: 12px;
  background: var(--offwhite);
  border: 1px solid var(--line);
  color: var(--petrol) !important;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: -0.005em;
  white-space: normal;
  line-height: 1.3;
  text-transform: none;
  text-align: left;
  min-height: 78px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.nav-submenu a::before {
  content: '';
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--orange);
  text-transform: uppercase;
  opacity: 0.85;
}
.nav-submenu-services a:nth-child(1)::before { content: 'L · Schritt 1'; }
.nav-submenu-services a:nth-child(2)::before { content: 'E · Schritt 2'; }
.nav-submenu-services a:nth-child(3)::before { content: 'S · Schritt 3'; }
.nav-submenu-services a:nth-child(4)::before { content: 'A · Schritt 4'; }
.nav-submenu-services a:nth-child(5)::before { content: 'Spezial'; }

/* Für-wen submenu: 3 audience cards + overview pill, icon-left layout */
.nav-submenu-audience { grid-template-columns: repeat(3, 1fr) auto; }
.nav-submenu-audience a {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  min-height: 78px;
  text-align: left;
}
.nav-submenu-audience a::before { content: none; display: none; }
.nav-submenu-audience .submenu-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(45, 96, 100, 0.08);
  color: var(--petrol);
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-submenu-audience .submenu-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.nav-submenu-audience .submenu-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--petrol);
  line-height: 1.2;
  transition: color 0.2s ease;
}
.nav-submenu-audience small {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  transition: color 0.2s ease;
}
.nav-submenu-audience a:hover {
  background: var(--petrol);
  border-color: var(--petrol);
}
.nav-submenu-audience a:hover .submenu-icon { background: rgba(255, 255, 255, 0.18); color: #fff; }
.nav-submenu-audience a:hover .submenu-title { color: #fff; }
.nav-submenu-audience a:hover small { color: rgba(255, 255, 255, 0.78); }
.nav-submenu a:hover {
  background: var(--petrol);
  border-color: var(--petrol);
  color: #fff !important;
  transform: translateY(-2px);
}
.nav-submenu a:hover::before { color: var(--orange); }
.nav-submenu .submenu-divider { display: none; }
.nav-submenu .submenu-overview {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff !important;
  font-weight: 700;
  align-items: flex-end;
  text-align: right;
  min-width: 180px;
  padding: 18px 22px 16px;
}
.nav-submenu .submenu-overview::before { content: 'Übersicht'; color: rgba(255,255,255,0.78) !important; }
.nav-submenu .submenu-overview:hover {
  background: #d8631e;
  border-color: #d8631e;
  color: #fff !important;
  transform: translateY(-2px);
}
.nav-submenu .submenu-overview:hover::before { color: rgba(255,255,255,0.85) !important; }

/* Backdrop overlay when mega-menu is open */
body.megamenu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(19, 49, 53, 0.25);
  z-index: 89;
  pointer-events: none;
  animation: fadeBackdrop 0.28s ease forwards;
}
@keyframes fadeBackdrop { from { opacity: 0; } to { opacity: 1; } }

.nav-cta {
  display: inline-flex; align-items: center; gap: 0.55em;
  padding: 0.75em 1.4em;
  background: var(--orange); color: #fff;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(227, 111, 45, 0.40);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.nav-cta:hover { background: #d8631e; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(227, 111, 45, 0.50); }
.nav-cta:active { transform: translateY(0); }
.nav-cta .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.8); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.8);} 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0);} 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0);} }

.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; width: 40px; height: 40px; position: relative; }
.nav-toggle span { display: block; position: absolute; left: 8px; right: 8px; height: 2px; background: #fff; transition: transform 0.25s ease, opacity 0.25s ease, top 0.25s ease, background 0.18s ease; }
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 24px; }
.nav.is-scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle:hover span,
.nav-toggle:focus-visible span { background: var(--orange); }
body.nav-open .nav-toggle span:nth-child(1) { top: 19px; transform: rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 0; right: 0;
    width: min(86vw, 380px); height: 100dvh;
    flex-direction: column; align-items: stretch;
    background: var(--paper);
    padding: 88px 0 24px;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
    box-shadow: -8px 0 40px rgba(0,0,0,0.12);
    overflow-y: auto;
  }
  /* Top-level standalone links (LESA-Prozess, Über uns, Kontakt) */
  .nav-links > a {
    color: var(--ink) !important;
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    width: 100%;
    justify-content: flex-start;
  }
  .nav-links > a::after { display: none; }
  .nav-item { width: 100%; }
  /* Submenu parents = main items: dark, full weight, clickable */
  .nav-item-has-submenu .nav-item-link {
    color: var(--ink) !important;
    padding: 18px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    width: 100%;
    justify-content: flex-start;
    opacity: 1;
    cursor: pointer;
    pointer-events: auto;
  }
  .nav-item-has-submenu .nav-item-link::after { display: none; }
  .nav-item-link .caret { display: none; }
  /* Submenu children become normal-rank menu items */
  .nav-submenu {
    position: static;
    transform: none;
    box-shadow: none;
    border: 0;
    background: transparent;
    padding: 0 0 8px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    min-width: 0;
    border-radius: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .nav-submenu a {
    display: block;
    padding: 12px 24px 12px 40px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted) !important;
    background: transparent !important;
    border: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0;
    min-height: 0;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.4;
    white-space: normal;
    transform: none !important;
  }
  .nav-submenu a::before { display: none; }
  .nav-submenu a:hover { background: transparent !important; color: var(--orange) !important; transform: none !important; }
  .nav-submenu .submenu-divider { display: none; }
  .nav-submenu .submenu-overview {
    color: var(--orange) !important;
    background: transparent !important;
    border-color: var(--line) !important;
    font-weight: 700;
  }
  body.nav-open .nav-links { transform: translateX(0); }
  body.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
  .nav-cta { display: none; }
  .nav-cta-mobile { display: inline-flex; margin: 20px 24px 0; align-self: flex-start; }
}
@media (min-width: 981px) {
  .nav-cta-mobile { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: sticky;
  top: 0;
  height: 100vh; height: 100dvh;
  background: var(--petrol);
  color: #fff;
  overflow: hidden;
  padding-block: 140px 90px;
  display: flex; align-items: center;
  z-index: 0;
}
.hero-spacer { display: none; }
/* Sections after the hero stack visually on top of it */
body > section:not(.hero),
body > footer {
  position: relative;
  z-index: 2;
  background-color: var(--paper);
}
body > section.surface-petrol { background-color: var(--petrol) !important; }
body > section.surface-offwhite { background-color: var(--offwhite) !important; }
body > footer.footer { background-color: var(--ink) !important; }
/* html/body must allow sticky to work */
html, body { overflow: visible; overflow-x: clip; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    radial-gradient(at 20% 0%, rgba(255,255,255,0.07) 0%, transparent 50%),
    radial-gradient(at 90% 100%, rgba(0,0,0,0.25) 0%, transparent 60%);
  pointer-events: none;
}
.hero-noise {
  position: absolute; inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.hero-signet { display: none; }
.hero-noise { display: none; }

/* Hero layering: image → gradient → content */
.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 12% 35%;
  z-index: 1;
  pointer-events: none;
  transform-origin: 30% 40%;
  animation: heroDrift 22s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  will-change: transform;
}
@keyframes heroDrift {
  0%   { transform: scale(1) translate3d(0, 0, 0); }
  50%  { transform: scale(1.045) translate3d(-1.2%, -0.6%, 0); }
  100% { transform: scale(1.025) translate3d(0.8%, 0.4%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-portrait { animation: none; }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to right,
    var(--petrol-darker) 0%,
    var(--petrol) 22%,
    rgba(45, 96, 100, 0.85) 35%,
    rgba(45, 96, 100, 0.40) 52%,
    rgba(45, 96, 100, 0.10) 72%,
    rgba(45, 96, 100, 0.00) 88%
  );
}
.hero-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 0%,
    transparent 55%,
    rgba(19, 49, 53, 0.45) 100%
  );
}
.hero-inner {
  position: relative;
  z-index: 10;
  width: 100%;
}
.hero-inner > * { max-width: 60ch; }
.hero-inner h1 { max-width: 14ch; }
.hero-inner .hero-stats { max-width: 100%; }

@media (max-width: 800px) {
  .hero {
    padding-block: 110px 60px;
    height: auto;
    min-height: 580px;
  }
  .hero-portrait { object-position: 60% 30%; }
  .hero-overlay {
    background: linear-gradient(to bottom,
      rgba(45, 96, 100, 0.55) 0%,
      rgba(45, 96, 100, 0.85) 45%,
      var(--petrol) 80%,
      var(--petrol) 100%
    );
  }
  .hero-inner > *, .hero-inner h1 { max-width: 100%; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.1; }
  .hero-eyebrow { font-size: 0.7rem; margin-bottom: 18px; }
  .hero-eyebrow::before { width: 22px; }
  .hero-claim { font-size: clamp(1rem, 4vw, 1.15rem); }
  .hero-sub { font-size: clamp(0.95rem, 3.6vw, 1.05rem); line-height: 1.5; }
  .hero-actions { gap: 10px; flex-wrap: wrap; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
}

/* Failsafe: ensure hero text is visible even if word animations don't run */
.hero h1 .word { opacity: 1; transform: none; animation: none; }
.hero h1 .word { animation: heroWord 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards; }
.hero-claim, .hero-sub, .hero-actions, .hero-stats, .hero-eyebrow { opacity: 1 !important; }

.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-eyebrow { color: rgba(255,255,255,0.7); font-size: var(--fs-micro); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 28px; display: inline-flex; align-items: center; gap: 14px; }
.hero-eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--orange); }

.hero h1 { color: #fff; max-width: 18ch; }
.hero h1 .accent { color: var(--orange); display: block; }
.hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px);
  animation: heroWord 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.hero h1 .word.delay-1 { animation-delay: 0.05s; }
.hero h1 .word.delay-2 { animation-delay: 0.18s; }
.hero h1 .word.delay-3 { animation-delay: 0.28s; }
.hero h1 .word.delay-4 { animation-delay: 0.38s; }
.hero h1 .word.delay-5 { animation-delay: 0.48s; }
@keyframes heroWord { to { opacity: 1; transform: translateY(0); } }

.hero-claim {
  display: inline-block;
  margin-top: 32px;
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 500;
  color: var(--orange);
  letter-spacing: -0.01em;
  opacity: 0;
  animation: heroFade 0.7s ease-out 0.7s forwards;
}
@keyframes heroFade { to { opacity: 1; } }

.hero-sub { max-width: 620px; margin-top: 24px; color: rgba(255,255,255,0.78); font-size: var(--fs-lead); opacity: 0; animation: heroFade 0.7s ease-out 0.9s forwards; }

.hero-actions { margin-top: 44px; display: flex; gap: 14px; flex-wrap: wrap; opacity: 0; animation: heroFade 0.7s ease-out 1.05s forwards; }

.hero-stats {
  margin-top: 64px;
  display: flex; gap: clamp(28px, 5vw, 64px);
  flex-wrap: wrap;
  opacity: 0;
  animation: heroFade 0.7s ease-out 1.25s forwards;
}
.hero-stat { display: flex; flex-direction: column; }
.hero-stat-value { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.hero-stat-label { font-size: 0.85rem; color: rgba(255,255,255,0.62); margin-top: 4px; }

.hero-scroll {
  position: absolute; bottom: 56px; right: clamp(20px, 4vw, 56px);
  font-size: var(--fs-micro); letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  opacity: 0;
  animation: heroFade 0.7s ease-out 1.5s forwards;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.hero-scroll span { transform: rotate(0deg); }
.hero-scroll-line { width: 1px; height: 44px; background: rgba(255,255,255,0.4); position: relative; overflow: hidden; }
.hero-scroll-line::after { content: ''; position: absolute; top: -44px; left: 0; width: 100%; height: 44px; background: var(--orange); animation: scrollLine 1.8s ease-in-out infinite; }
@keyframes scrollLine { 0% { top: -44px;} 100% { top: 44px;} }

/* ==========================================================================
   Emergency Drawer (Slide-out Notfall-Panel)
   ========================================================================== */
.emergency-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.emergency-drawer.is-open { visibility: visible; pointer-events: auto; }
.emergency-drawer-backdrop {
  position: absolute; inset: 0;
  background: rgba(19, 49, 53, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.32s ease;
}
.emergency-drawer.is-open .emergency-drawer-backdrop { opacity: 1; }

.emergency-drawer-panel {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: min(440px, 92vw);
  background: var(--paper);
  box-shadow: 16px 0 48px rgba(19, 49, 53, 0.20);
  overflow-y: auto;
  padding: clamp(28px, 4vw, 40px);
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  display: flex; flex-direction: column;
  gap: 28px;
}
.emergency-drawer.is-open .emergency-drawer-panel { transform: translateX(0); }

.emergency-drawer-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 38px; height: 38px;
  border: 0;
  border-radius: 999px;
  background: var(--offwhite);
  color: var(--ink);
  cursor: pointer;
  display: grid; place-items: center;
  font-size: 1.4rem;
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease;
}
.emergency-drawer-close:hover { background: var(--petrol-pale); transform: rotate(90deg); }

.emergency-drawer-header { padding-right: 40px; }
.emergency-drawer-header .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--orange); margin-bottom: 16px;
}
.emergency-drawer-header .eyebrow .live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgba(227, 111, 45, 0.7);
  animation: pulse 2s infinite;
}
.emergency-drawer-header h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.7rem);
  margin-bottom: 12px;
  color: var(--ink);
}
.emergency-drawer-header p {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.ea-actions { display: flex; flex-direction: column; gap: 10px; }
.ea-card {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  text-decoration: none;
  color: var(--ink);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
.ea-card:hover {
  border-color: var(--petrol);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(19, 49, 53, 0.08);
}
.ea-card .ea-icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--petrol-pale);
  color: var(--petrol);
  display: grid; place-items: center;
}
.ea-card .ea-icon svg { width: 22px; height: 22px; }
.ea-card strong { display: block; font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.ea-card span { display: block; font-size: 0.85rem; color: var(--ink-muted); }
.ea-card.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 6px 20px rgba(227, 111, 45, 0.30);
}
.ea-card.primary:hover { background: #d8631e; border-color: #d8631e; box-shadow: 0 10px 28px rgba(227, 111, 45, 0.40); }
.ea-card.primary .ea-icon { background: rgba(255,255,255,0.22); color: #fff; }
.ea-card.primary strong, .ea-card.primary span { color: #fff; }
.ea-card.primary span { color: rgba(255,255,255,0.85); }
.ea-card.primary strong { font-size: 1.2rem; letter-spacing: -0.01em; }

.emergency-drawer-info {
  background: var(--offwhite);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.emergency-drawer-info h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--petrol);
  margin-bottom: 14px;
  font-weight: 700;
}
.emergency-drawer-info ol {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.emergency-drawer-info li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.45;
}
.emergency-drawer-info li::before {
  content: counter(step);
  counter-increment: step;
  width: 24px; height: 24px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.emergency-drawer-info ol { counter-reset: step; }
.emergency-drawer-info li strong { color: var(--ink); font-weight: 700; }

.emergency-drawer-footer {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  font-size: 0.82rem;
  color: var(--ink-muted);
  text-align: center;
}

/* Side tab (deaktiviert — wird nicht mehr angezeigt) */
.side-tab { display: none !important; }
.side-tab--unused {
  position: fixed;
  top: clamp(90px, 11vh, 130px);
  right: 0;
  z-index: 80;
  background: var(--orange);
  color: #fff;
  border: 0;
  padding: 12px 18px 12px 20px;
  border-radius: 14px 0 0 14px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: -4px 6px 18px rgba(227, 111, 45, 0.40), 0 1px 4px rgba(19, 49, 53, 0.10);
  transition: padding-right 0.22s ease, background 0.18s ease, transform 0.22s ease;
}
.side-tab:hover { background: #d8631e; padding-right: 22px; transform: translateX(-2px); }
.side-tab .side-arrow { transform: rotate(180deg); }
.side-tab .side-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.8);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
.side-tab svg { width: 14px; height: 14px; stroke: #fff; }
@media (max-width: 800px) {
  .side-tab {
    top: auto;
    bottom: clamp(16px, 3vw, 28px);
    right: clamp(16px, 3vw, 28px);
    border-radius: 999px;
    padding: 0;
    width: 60px; height: 60px;
    justify-content: center;
    gap: 0;
  }
  .side-tab .side-text, .side-tab .side-arrow { display: none; }
  .side-tab .side-dot { display: none; }
  .side-tab .side-icon-mobile { display: grid; place-items: center; }
  .side-tab .side-icon-mobile svg { width: 26px; height: 26px; }
}
@media (min-width: 801px) {
  .side-tab .side-icon-mobile { display: none; }
}
body.drawer-open .side-tab { opacity: 0; transform: translateX(20px); pointer-events: none; transition: opacity 0.25s ease, transform 0.25s ease; }

/* ==========================================================================
   Emergency FAB (Notfall, immer sichtbar)
   ========================================================================== */
.emergency-fab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 95;
  background: var(--orange);
  color: #fff;
  padding: 16px 22px 16px 26px;
  border-radius: 14px 0 0 14px;
  box-shadow: -6px 4px 18px rgba(227, 111, 45, 0.45), 0 2px 6px rgba(19, 49, 53, 0.10);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: padding-right 0.22s ease, background 0.18s ease, transform 0.22s ease;
  white-space: nowrap;
}
.emergency-fab:hover { background: #d8631e; padding-right: 28px; }
.emergency-fab:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.emergency-fab .fab-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  display: grid; place-items: center;
  flex-shrink: 0;
  position: relative;
}
.emergency-fab .fab-icon-wrap::before {
  content: ''; position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  animation: fabPulse 2s ease-out infinite;
}
@keyframes fabPulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  80%  { transform: scale(1.55); opacity: 0;   }
  100% { transform: scale(1.55); opacity: 0;   }
}
.emergency-fab svg { width: 22px; height: 22px; stroke: #fff; }
.emergency-fab .fab-text {
  display: flex; flex-direction: column;
  line-height: 1.2;
}
.emergency-fab .fab-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  text-transform: uppercase;
  opacity: 0.92;
}
.emergency-fab .fab-num {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 2px;
}

/* Mobile: collapse to circular FAB at bottom-right */
@media (max-width: 800px) {
  .emergency-fab {
    top: auto;
    bottom: clamp(16px, 3vw, 28px);
    right: clamp(16px, 3vw, 28px);
    transform: none;
    border-radius: 999px;
    padding: 0;
    width: 60px; height: 60px;
    justify-content: center;
    gap: 0;
  }
  .emergency-fab .fab-icon-wrap { background: transparent; width: auto; height: auto; }
  .emergency-fab .fab-icon-wrap::before { border-color: rgba(255,255,255,0.7); }
  .emergency-fab svg { width: 26px; height: 26px; }
  .emergency-fab .fab-text { display: none; }
  .emergency-fab:hover { padding: 0; }
}

/* ==========================================================================
   Scroll-to-top button (fixed)
   ========================================================================== */
.scroll-top {
  position: fixed;
  right: clamp(16px, 2.4vw, 28px);
  bottom: clamp(16px, 2.4vw, 28px);
  z-index: 95;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--petrol);
  color: #fff;
  border: 2px solid #fff;
  cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 10px 28px rgba(19, 49, 53, 0.35), 0 2px 6px rgba(19, 49, 53, 0.15);
  opacity: 0.55;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.scroll-top.is-visible {
  opacity: 1;
}
.scroll-top:hover { background: var(--petrol-darker, #133135); transform: translateY(-2px) scale(1); }
.scroll-top svg { width: 22px; height: 22px; stroke: #fff; }
.scroll-top:focus-visible { outline: 2px solid var(--petrol); outline-offset: 4px; }

@media (max-width: 720px) {
  .hero-scroll { display: none; }
  .hero { padding-block: 120px 60px; }
}

/* ==========================================================================
   Trust bar
   ========================================================================== */
.trust { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 40px; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; }
.trust-item .check {
  flex-shrink: 0; width: 28px; height: 28px;
  background: var(--orange); border-radius: 50%;
  display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 0.85rem;
}
.trust-item h4 { margin-bottom: 4px; }
.trust-item p { font-size: 0.93rem; color: var(--ink-muted); }
@media (max-width: 800px) { .trust-grid { grid-template-columns: 1fr; gap: 22px; } }

/* ==========================================================================
   Section header
   ========================================================================== */
.section-head { max-width: 760px; margin-bottom: clamp(48px, 6vw, 72px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 18px; }
.section-head p { font-size: var(--fs-lead); }

/* ==========================================================================
   LESA Prozess (L-E-S-A)
   ========================================================================== */
.prozess { position: relative; }
.prozess-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
}
.prozess-step {
  padding: clamp(28px, 3.5vw, 44px) clamp(22px, 2.6vw, 32px);
  border-right: 1px solid var(--line);
  position: relative;
  background: var(--paper);
  transition: background 0.25s ease;
}
.prozess-step:last-child { border-right: 0; }
.prozess-step:hover { background: #fafaf8; }

.prozess-letter {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 1.7rem; font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.04em;
  position: relative;
  font-family: 'Inter', sans-serif;
}
.prozess-step:nth-child(odd) .prozess-letter { background: var(--petrol); }
.prozess-step:nth-child(even) .prozess-letter { background: var(--orange); }

.prozess-step h3 { margin-bottom: 12px; }
.prozess-step p { font-size: 0.95rem; }
.prozess-step .step-num { position: absolute; top: 22px; right: 24px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em; color: var(--ink-muted); }

@media (max-width: 980px) {
  .prozess-grid { grid-template-columns: 1fr 1fr; }
  .prozess-step:nth-child(2) { border-right: 0; }
  .prozess-step:nth-child(1), .prozess-step:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 580px) {
  .prozess-grid { grid-template-columns: 1fr; }
  .prozess-step { border-right: 0; border-bottom: 1px solid var(--line); }
  .prozess-step:last-child { border-bottom: 0; }
}

.prozess-claim {
  margin-top: 56px;
  text-align: center;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--petrol);
  line-height: 1.2;
}
.prozess-claim .accent { color: var(--orange); }

/* ==========================================================================
   Cards (Leistungen)
   ========================================================================== */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 3vw, 40px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.32s cubic-bezier(0.65, 0, 0.35, 1);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--petrol-pale);
  color: var(--petrol);
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.card-icon svg { width: 26px; height: 26px; }

.card h3 { margin-bottom: 12px; }
.card p { margin-bottom: 20px; }

.card-list { list-style: none; padding: 0; margin: 0; }
.card-list li { padding: 8px 0; font-size: 0.93rem; color: var(--ink-soft); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.card-list li:first-child { border-top: 0; }
.card-list li::before { content: '→'; color: var(--orange); font-weight: 700; flex-shrink: 0; }

.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 20px;
  color: var(--petrol); font-weight: 600; font-size: 0.92rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
  transition: color 0.18s ease, gap 0.2s ease;
}
.card-link:hover { color: var(--orange); gap: 12px; }

.card-wide { grid-column: 1 / -1; }
.card-wide .quote { font-style: italic; color: var(--ink-muted); margin-top: 16px; font-size: 1.05rem; }

/* ==========================================================================
   Warum LESA — values on petrol
   ========================================================================== */
.values-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .values-grid { grid-template-columns: 1fr; gap: 48px; } }

.value-list { list-style: none; padding: 0; margin: 0; }
.value-list li {
  padding: 22px 0;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.value-list li:first-child { padding-top: 0; }
.value-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.value-list .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); margin-top: 10px; flex-shrink: 0; }
.value-list h4 { color: #fff; margin-bottom: 6px; font-size: 1.15rem; }
.value-list p { color: rgba(255,255,255,0.75); font-size: 0.95rem; line-height: 1.5; }

.values-quote {
  position: sticky; top: 120px;
  border-left: 2px solid var(--orange);
  padding: 8px 0 8px 28px;
}
.values-quote .q {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: #fff;
}
.values-quote .attr { margin-top: 22px; color: rgba(255,255,255,0.6); font-size: 0.92rem; letter-spacing: 0.05em; text-transform: uppercase; }
@media (max-width: 900px) { .values-quote { position: static; } }

/* ==========================================================================
   Für wen — audience cards
   ========================================================================== */
.audience-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: clamp(32px, 3.4vw, 44px) clamp(28px, 3vw, 36px);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.audience-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--petrol);
  color: #fff;
  display: grid; place-items: center;
  margin-bottom: 24px;
}
.audience-icon svg { width: 28px; height: 28px; }
.audience-card h3 { margin-bottom: 14px; }
.audience-card p { font-size: 0.95rem; line-height: 1.55; }

/* ==========================================================================
   Über uns
   ========================================================================== */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(48px, 6vw, 96px); align-items: stretch; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.about-text h2 { margin-bottom: 24px; }
.about-text p + p { margin-top: 1.1em; }
.about-quote {
  background: var(--petrol);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(36px, 4vw, 56px);
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
  overflow: hidden;
}
.about-quote::before {
  content: '"';
  position: absolute; top: -32px; right: 32px;
  font-size: 12rem; line-height: 1;
  color: rgba(255,255,255,0.08);
  font-family: Georgia, serif;
}
.about-quote .q {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: #fff;
  position: relative;
  z-index: 2;
}
.about-quote .who { margin-top: 28px; color: rgba(255,255,255,0.7); font-size: 0.95rem; position: relative; z-index: 2; }

.founders { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 580px) { .founders { grid-template-columns: 1fr; } }
.founder { padding-top: 20px; border-top: 1px solid var(--line); }
.founder h4 { color: var(--petrol); margin-bottom: 4px; font-size: 1rem; }
.founder p { font-size: 0.88rem; color: var(--ink-muted); margin: 0; }

/* ==========================================================================
   Notfall checklist
   ========================================================================== */
.notfall-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 48px; }
@media (max-width: 900px) { .notfall-grid { grid-template-columns: 1fr; } }

.notfall-step {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 32px 28px;
  border: 1px solid var(--line);
  position: relative;
}
.notfall-num {
  position: absolute; top: -22px; left: 24px;
  width: 44px; height: 44px;
  background: var(--orange); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-weight: 700; font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(227, 111, 45, 0.35);
}
.notfall-step h4 { margin: 12px 0 8px; }
.notfall-step p { font-size: 0.93rem; }

.notfall-cta { text-align: center; padding-top: 16px; }
.notfall-cta .phone { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; color: var(--petrol); letter-spacing: -0.02em; margin-bottom: 16px; }

/* ==========================================================================
   Kontakt
   ========================================================================== */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(48px, 6vw, 96px); align-items: start; }
@media (max-width: 900px) { .kontakt-grid { grid-template-columns: 1fr; } }

.kontakt-info h2 { margin-bottom: 18px; color: #fff; }
.kontakt-info .lead { color: rgba(255,255,255,0.78); margin-bottom: 36px; }
.kontakt-phone {
  display: block;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--orange);
  margin-bottom: 8px;
}
.kontakt-247 { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 36px; display: flex; align-items: center; gap: 10px; }
.kontakt-247 .live { width: 8px; height: 8px; background: #6dd06d; border-radius: 50%; box-shadow: 0 0 0 0 rgba(109, 208, 109, 0.7); animation: pulse-green 2s infinite; }
@keyframes pulse-green { 0% { box-shadow: 0 0 0 0 rgba(109, 208, 109, 0.6);} 70% { box-shadow: 0 0 0 10px rgba(109, 208, 109, 0);} 100% { box-shadow: 0 0 0 0 rgba(109, 208, 109, 0);} }

.kontakt-meta { display: grid; gap: 14px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.18); }
.kontakt-meta-item { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; color: rgba(255,255,255,0.82); font-size: 0.95rem; }
.kontakt-meta-item svg { width: 20px; height: 20px; color: var(--orange); margin-top: 2px; }

.form { background: #fff; border-radius: var(--radius); padding: clamp(32px, 3.4vw, 44px); }
.form h3 { margin-bottom: 24px; color: var(--ink); font-size: 1.4rem; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px rgba(45, 96, 100, 0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 580px) { .field-row { grid-template-columns: 1fr; } }
.form .btn { width: 100%; justify-content: center; margin-top: 8px; }
.form-note { font-size: 0.8rem; color: var(--ink-muted); margin-top: 14px; text-align: center; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--ink); color: rgba(255,255,255,0.75); padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; gap: 36px; } }
.footer-brand img { height: 42px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: rgba(255,255,255,0.55); font-size: 0.95rem; max-width: 36ch; }
.footer h5 { color: #fff; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 6px 0; font-size: 0.93rem; }
.footer a { color: rgba(255,255,255,0.7); transition: color 0.15s; }
.footer a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.6); }

/* ==========================================================================
   Scroll-reveal animations
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s,
    transform 1.1s cubic-bezier(0.22, 0.61, 0.36, 1) 0.05s;
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Auto-applied to article body items (per-item scroll reveal across all pages) */
.reveal-auto {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-auto.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal-auto, .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Case Studies
   ============================================================ */
.case-study {
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 56px;
}
.case-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.case-tag {
  background: var(--orange);
  color: #fff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.case-loc {
  font-size: 0.88rem;
  color: var(--muted);
}
.case-study h2 {
  margin-bottom: 28px;
  max-width: 22ch;
}
.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--offwhite);
  border-radius: 14px;
  margin-bottom: 36px;
}
.case-stat { text-align: center; }
.case-stat strong {
  display: block;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  color: var(--petrol);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 4px;
}
.case-stat span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}
.case-section { margin-bottom: 36px; }
.case-section h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--petrol);
}
.case-section p, .case-section ul li { line-height: 1.7; color: var(--muted); }
.case-section ul li strong, .case-timeline li strong { color: var(--ink); }
.case-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}
.case-timeline li {
  padding: 14px 0 14px 24px;
  border-left: 2px solid var(--orange);
  margin-left: 8px;
  position: relative;
  line-height: 1.6;
  color: var(--muted);
}
.case-timeline li::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--orange);
}
.case-quote-meta {
  display: block;
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  font-style: normal;
}

@media (max-width: 700px) {
  .case-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   FAQ items (<details>/<summary>)
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-item summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  font-weight: 700;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--ink);
  list-style: none;
  position: relative;
  transition: color 0.15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--offwhite);
  color: var(--orange);
  font-weight: 600;
  font-size: 1.2rem;
  transition: transform 0.25s ease, background 0.15s ease;
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--orange);
  color: #fff;
}
.faq-item summary:hover { color: var(--orange); }
/* Native <details>-based FAQ — override the legacy JS-accordion CSS that
   collapses .faq-answer to max-height: 0 (used on leistungen sub-pages) */
details.faq-item .faq-answer {
  max-height: none !important;
  overflow: visible !important;
  transition: none;
  padding: 0 0 24px;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
  max-width: 65ch;
}
details.faq-item .faq-answer p { margin-bottom: 12px; color: var(--muted); }
details.faq-item .faq-answer ul,
details.faq-item .faq-answer ol { margin: 8px 0 12px 20px; }
details.faq-item .faq-answer li { margin-bottom: 6px; }
details.faq-item .faq-answer strong { color: var(--ink); font-weight: 700; }

/* ============================================================
   Contact rail — collapsed at the side, pulses, expands on hover
   ============================================================ */
.contact-rail {
  position: fixed;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 60px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(19, 49, 53, 0.16);
  padding: 10px 6px;
  z-index: 80;
  display: none;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  transition:
    width 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-radius 0.32s ease,
    padding 0.32s ease,
    box-shadow 0.32s ease;
}
.contact-rail:hover,
.contact-rail:focus-within {
  width: 240px;
  border-radius: 20px;
  padding: 14px 12px;
  box-shadow: 0 18px 50px rgba(19, 49, 53, 0.22);
}
.contact-rail-head {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--petrol);
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
  white-space: nowrap;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease 0.1s, height 0.25s ease;
}
.contact-rail:hover .contact-rail-head,
.contact-rail:focus-within .contact-rail-head { opacity: 1; height: auto; }

.contact-rail-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 6px;
  border-radius: 12px;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  width: 100%;
  transition: background 0.15s ease, transform 0.15s ease;
}
.contact-rail-item:hover { background: var(--offwhite); transform: translateX(2px); }
.contact-rail-icon {
  flex-shrink: 0;
  position: relative;
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--offwhite);
  color: var(--petrol);
  margin: 0 auto;
}
.contact-rail:hover .contact-rail-icon,
.contact-rail:focus-within .contact-rail-icon { margin: 0; }
.contact-rail-icon svg { width: 18px; height: 18px; }
.contact-rail-text {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
  white-space: nowrap;
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  transition: opacity 0.18s ease, max-width 0.3s ease;
}
.contact-rail:hover .contact-rail-text,
.contact-rail:focus-within .contact-rail-text {
  opacity: 1;
  max-width: 200px;
  transition: opacity 0.2s ease 0.12s, max-width 0.3s ease;
}
.contact-rail-label {
  font-size: 0.92rem; font-weight: 700; color: var(--ink); line-height: 1.2;
}
.contact-rail-value {
  font-size: 0.78rem; font-weight: 500; color: var(--muted); line-height: 1.2;
}
.contact-rail-item.rail-primary .contact-rail-icon { background: var(--orange); color: #fff; }
.contact-rail-item.rail-primary .contact-rail-value { color: var(--orange); font-weight: 700; }
.contact-rail-item.rail-emergency .contact-rail-icon { background: rgba(227, 111, 45, 0.10); color: var(--orange); }

/* Pulse on the phone icon — draws attention to the rail in collapsed state */
.contact-rail-item.rail-primary .contact-rail-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 0 rgba(227, 111, 45, 0.55);
  animation: railPulse 2.2s ease-out infinite;
}
@keyframes railPulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 111, 45, 0.55); }
  70%  { box-shadow: 0 0 0 14px rgba(227, 111, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 111, 45, 0); }
}
/* Stop pulsing once expanded so it doesn't compete with content */
.contact-rail:hover .contact-rail-item.rail-primary .contact-rail-icon::after,
.contact-rail:focus-within .contact-rail-item.rail-primary .contact-rail-icon::after {
  animation: none; box-shadow: none;
}

.contact-rail-foot {
  font-size: 0.74rem; color: var(--muted); line-height: 1.4;
  text-align: center; margin: 6px 4px 0;
  padding-top: 8px; border-top: 1px solid var(--line);
  white-space: nowrap;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s ease, max-height 0.25s ease;
}
.contact-rail:hover .contact-rail-foot,
.contact-rail:focus-within .contact-rail-foot {
  opacity: 1; max-height: 60px;
  transition: opacity 0.2s ease 0.15s, max-height 0.25s ease;
}

@media (prefers-reduced-motion: reduce) {
  .contact-rail-item.rail-primary .contact-rail-icon::after { animation: none; }
}

/* Show on tablet+ — replaces the side-tab on those widths */
@media (min-width: 768px) {
  .contact-rail { display: flex; }
  .side-tab { display: none; }
}

/* ============================================================
   Mobile contact bar (fixed bottom, replaces side-tab on mobile)
   ============================================================ */
.mobile-contact-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(19, 49, 53, 0.10);
  padding: 6px 4px;
  padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
}
.mcb-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px;
  padding: 8px 4px;
  min-height: 56px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  text-decoration: none;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.mcb-item svg { width: 22px; height: 22px; color: var(--petrol); transition: color 0.15s ease; }
.mcb-item span { line-height: 1; }
.mcb-item:active { background: var(--offwhite); }
.mcb-primary { color: var(--orange); }
.mcb-primary svg { color: var(--orange); }
.mcb-primary span { font-weight: 700; }
.mcb-emergency svg { color: var(--orange); }
.mcb-emergency::before {
  content: '';
  position: absolute;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange);
  margin-top: -22px; margin-left: 22px;
  box-shadow: 0 0 0 0 rgba(227, 111, 45, 0.6);
  animation: mcbPulse 2s ease-out infinite;
}
.mcb-emergency { position: relative; }
@keyframes mcbPulse {
  0%   { box-shadow: 0 0 0 0 rgba(227, 111, 45, 0.6); }
  70%  { box-shadow: 0 0 0 8px rgba(227, 111, 45, 0); }
  100% { box-shadow: 0 0 0 0 rgba(227, 111, 45, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .mcb-emergency::before { animation: none; }
}

/* Show only on mobile, hide side-tab to avoid duplicate */
@media (max-width: 767px) {
  .mobile-contact-bar { display: flex; }
  .side-tab { display: none; }
  /* Lift scroll-top above the bar so it stays tappable */
  .scroll-top { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  /* Add bottom padding to body content so it doesn't get hidden under the bar */
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
}

/* ============================================================
   LESA-Prozess animated graphic
   ============================================================ */
.lp-section { padding: clamp(48px, 7vw, 96px) 0; background: var(--paper); }
.lp-stage {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 770 / 423;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lp-stage svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Initial states (hidden until reveal) */
.lp-stage .lp-title,
.lp-stage .lp-labels { opacity: 0; }
.lp-stage .lp-arrow polygon { opacity: 0; }
.lp-stage .lp-shapes path {
  stroke-dashoffset: 9999;
  stroke-dasharray: 9999;
}
/* Arrow strokes start invisible — JS sets dasharray/offset per path length */
.lp-stage .lp-arrow path,
.lp-stage .lp-arrow line,
.lp-stage .lp-arrow polyline { /* JS sets initial state */ }

/* Animated reveal sequence */
.lp-section.is-visible .lp-stage .lp-shapes path {
  animation: lp-draw 2.0s cubic-bezier(0.22, 0.61, 0.36, 1) 0.1s forwards;
}
.lp-section.is-visible .lp-stage .lp-title {
  animation: lp-fade-up 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 0.2s forwards;
}
.lp-section.is-visible .lp-stage .lp-labels {
  animation: lp-fade-up 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) 1.0s forwards;
}

/* Arrow line tracing — strokes chain into one continuous flowing line per arrow,
   then arrowhead pops in. Per-element delay & duration set in JS based on path length. */
.lp-section.is-visible .lp-stage .lp-arrow path,
.lp-section.is-visible .lp-stage .lp-arrow line,
.lp-section.is-visible .lp-stage .lp-arrow polyline {
  animation-name: lp-draw;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
.lp-section.is-visible .lp-stage .lp-arrow polygon {
  animation-name: lp-pop;
  animation-duration: 0.3s;
  animation-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
  animation-fill-mode: forwards;
}

@keyframes lp-draw {
  to { stroke-dashoffset: 0; }
}
@keyframes lp-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lp-pop {
  from { opacity: 0; transform: scale(0.6); transform-origin: center; }
  to   { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .lp-stage .lp-title,
  .lp-stage .lp-labels { opacity: 1; }
  .lp-stage .lp-arrow polygon { opacity: 1; }
  .lp-stage .lp-shapes path { stroke-dashoffset: 0 !important; }
  .lp-stage .lp-arrow path,
  .lp-stage .lp-arrow line,
  .lp-stage .lp-arrow polyline { stroke-dashoffset: 0 !important; }
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-stagger.is-visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.20s; }
.reveal-stagger.is-visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.reveal-stagger.is-visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.50s; }
.reveal-stagger.is-visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
.reveal-stagger.is-visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.80s; }
.reveal-stagger.is-visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.95s; }
.reveal-stagger.is-visible > *:nth-child(8) { opacity: 1; transform: translateY(0); transition-delay: 1.10s; }

/* ==========================================================================
   Subpage hero
   ========================================================================== */
.sub-hero {
  color: #fff;
  padding: clamp(140px, 13vw, 180px) 0 clamp(80px, 7vw, 110px);
  height: 660px;                    /* fixed height — all sub-heroes identical */
  min-height: 660px;
  max-height: 660px;
  position: relative;
  overflow: hidden;
  background-color: var(--petrol);  /* fallback when no image set */
  background-repeat: no-repeat;     /* failsafe: prevent any tiling */
  display: flex;
  align-items: center;
  box-sizing: border-box;           /* padding included in height */
}
/* Image is now an <img> element sized to fit slot height with auto width.
   Its left edge fades via mask — fade is image-relative, not viewport-relative,
   so it always blends seamlessly into petrol regardless of monitor width. */
.sub-hero-image {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: right center;
  z-index: 1;
  display: none;
  pointer-events: none;
  /* Mask: left 30% of image fades to transparent (image-relative) */
  -webkit-mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.50) 22%,
    rgba(0, 0, 0, 0.85) 32%,
    black 42%);
  mask-image: linear-gradient(to right,
    transparent 0%,
    rgba(0, 0, 0, 0.15) 10%,
    rgba(0, 0, 0, 0.50) 22%,
    rgba(0, 0, 0, 0.85) 32%,
    black 42%);
}
@media (min-width: 768px) {
  .sub-hero-image { display: block; }
}
/* Petrol gradient overlay: solid left for headline, gentle tint over
   the image area so everything reads as one unified composition */
.sub-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right,
    var(--petrol-darker) 0%,
    var(--petrol) 48%,
    rgba(45, 96, 100, 0.92) 60%,
    rgba(45, 96, 100, 0.70) 72%,
    rgba(45, 96, 100, 0.45) 84%,
    rgba(45, 96, 100, 0.22) 100%
  );
  pointer-events: none;
  z-index: 2;
}
.sub-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    transparent 0%,
    transparent 60%,
    rgba(19, 49, 53, 0.40) 100%);
  pointer-events: none;
  z-index: 3;
}
/* Mobile: image fills the sub-hero as a top band, petrol gradient fades downward over it */
@media (max-width: 767px) {
  .sub-hero {
    height: auto;
    min-height: 480px;
    max-height: none;
    padding: clamp(110px, 22vw, 140px) 0 clamp(50px, 10vw, 70px);
    display: block;
  }
  .sub-hero .container {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  /* H1 a touch smaller on mobile so long titles don't blow up the layout */
  .sub-hero h1 {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.15;
    max-width: 100%;
  }
  .sub-hero .lead {
    font-size: clamp(0.95rem, 3.6vw, 1.05rem);
    line-height: 1.5;
  }
  .sub-hero-actions {
    margin-top: 24px;
    gap: 10px;
  }
  .sub-hero-actions .btn {
    width: 100%;          /* full-width buttons on mobile, easier to tap */
    justify-content: center;
  }
  /* Mobile: img fills sub-hero as full-width cover, vertical petrol gradient over it */
  .sub-hero-image {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    -webkit-mask-image: none;
    mask-image: none;
    transform: none;
  }
  .sub-hero[data-img]::before {
    background: linear-gradient(to bottom,
      rgba(45, 96, 100, 0.45) 0%,
      rgba(45, 96, 100, 0.82) 55%,
      var(--petrol-darker) 100%);
  }
  /* Reset leistungen sub-pages overrides on mobile */
  .sub-hero[data-img="leckageortung"]::before,
  .sub-hero[data-img="trocknung"]::before,
  .sub-hero[data-img="sanierung"]::before,
  .sub-hero[data-img="schimmel"]::before,
  .sub-hero[data-img="abwicklung"]::before {
    background: linear-gradient(to bottom,
      rgba(45, 96, 100, 0.45) 0%,
      rgba(45, 96, 100, 0.82) 55%,
      var(--petrol-darker) 100%);
  }
}

/* Per-page background image bindings */
/* No per-page positioning override needed: src is now in HTML, image displays
   at its natural aspect ratio fitted to slot height — full motif visible. */
/* Photo sub-pages: extend petrol gradient further right to cover the image's
   left edge cleanly (photos are shifted right, so their left edge sits in the
   middle of the viewport — gradient must cover that to avoid a visible seam) */
.sub-hero[data-img="leckageortung"]::before,
.sub-hero[data-img="trocknung"]::before,
.sub-hero[data-img="sanierung"]::before,
.sub-hero[data-img="schimmel"]::before,
.sub-hero[data-img="abwicklung"]::before {
  background: linear-gradient(to right,
    var(--petrol-darker) 0%,
    var(--petrol) 56%,
    rgba(45, 96, 100, 0.82) 68%,
    rgba(45, 96, 100, 0.50) 80%,
    rgba(45, 96, 100, 0.25) 92%,
    rgba(45, 96, 100, 0.10) 100%
  );
}

/* Sub-hero image src is now declared inline in HTML (img element).
   Old background-image bindings removed since they were obsolete. */

/* Photo sub-pages: subjects are centered in source canvas — push image right
   via translateX so subject lands in right golden-ratio area. Section's
   overflow:hidden clips the off-screen right portion (mostly background). */
.sub-hero[data-img="leckageortung"] .sub-hero-image,
.sub-hero[data-img="trocknung"] .sub-hero-image,
.sub-hero[data-img="sanierung"] .sub-hero-image,
.sub-hero[data-img="schimmel"] .sub-hero-image,
.sub-hero[data-img="abwicklung"] .sub-hero-image,
.sub-hero[data-img="privat"] .sub-hero-image,
.sub-hero[data-img="hausverwaltungen"] .sub-hero-image,
.sub-hero[data-img="versicherungen"] .sub-hero-image {
  transform: translateX(22%);
}

.sub-hero .container { position: relative; z-index: 3; }

@keyframes auroraDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  33%  { transform: translate3d(48px, -24px, 0) scale(1.05); }
  66%  { transform: translate3d(-32px, 28px, 0) scale(1.02); }
  100% { transform: translate3d(24px, 12px, 0) scale(1); }
}
@keyframes auroraDriftSlow {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-44px, 30px, 0) scale(1.08); }
  100% { transform: translate3d(36px, -18px, 0) scale(1.02); }
}

@media (prefers-reduced-motion: reduce) {
  .sub-hero::before, .sub-hero::after { animation: none; }
}

/* Hide variant label / variant classes (kept for backwards compat, no-op) */
.variant-label { display: none; }
.sub-hero .breadcrumb { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 18px; }
.sub-hero .breadcrumb a { color: rgba(255,255,255,0.7); transition: color 0.15s; }
.sub-hero .breadcrumb a:hover { color: var(--orange); }
.sub-hero .breadcrumb .sep { margin: 0 8px; opacity: 0.5; }
.sub-hero h1 { color: #fff; max-width: 18ch; margin-bottom: 22px; }
.sub-hero .lead { color: rgba(255,255,255,0.8); max-width: 60ch; }
.sub-hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Article (subpage long-form)
   ========================================================================== */
.article { padding-block: clamp(64px, 8vw, 100px); }
.article-grid { display: grid; grid-template-columns: 1fr 280px; gap: clamp(48px, 6vw, 88px); }
@media (max-width: 900px) { .article-grid { grid-template-columns: 1fr; } }

.article-body { max-width: 70ch; }
.article-body h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 1.6em 0 0.6em; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { font-size: 1.25rem; margin: 1.6em 0 0.5em; color: var(--petrol); }
.article-body p { font-size: 1.05rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 1.1em; }
.article-body ul, .article-body ol { margin: 0 0 1.4em 0; padding-left: 0; list-style: none; }
.article-body li { padding: 8px 0 8px 28px; position: relative; color: var(--ink-soft); line-height: 1.55; }
.article-body li::before {
  content: '';
  position: absolute; left: 0; top: 17px;
  width: 14px; height: 2px;
  background: var(--orange);
}
.article-body strong { color: var(--ink); font-weight: 600; }
.article-body .pullquote {
  margin: 2.2em 0;
  padding: 28px 32px;
  border-left: 4px solid var(--orange);
  background: var(--offwhite);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--petrol);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.article-aside { position: sticky; top: 110px; align-self: start; }
.article-aside-card {
  background: var(--petrol);
  color: #fff;
  padding: 28px;
  border-radius: var(--radius);
}
.article-aside-card h4 { color: #fff; margin-bottom: 14px; font-size: 1.05rem; }
.article-aside-card p { color: rgba(255,255,255,0.75); font-size: 0.92rem; margin-bottom: 18px; line-height: 1.5; }
.article-aside-card .phone-link { display: block; color: var(--orange); font-size: 1.4rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.article-aside-card .btn { width: 100%; justify-content: center; }

/* ==========================================================================
   FAQ accordion
   ========================================================================== */
.faq { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 24px 0;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  letter-spacing: -0.01em;
  transition: color 0.18s ease;
}
.faq-question:hover { color: var(--petrol); }
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s ease;
  position: relative;
}
.faq-toggle::before, .faq-toggle::after {
  content: ''; position: absolute;
  background: var(--petrol);
  transition: transform 0.25s ease;
}
.faq-toggle::before { width: 12px; height: 2px; }
.faq-toggle::after { width: 2px; height: 12px; }
.faq-item.is-open .faq-toggle { background: var(--orange); border-color: var(--orange); }
.faq-item.is-open .faq-toggle::before, .faq-item.is-open .faq-toggle::after { background: #fff; }
.faq-item.is-open .faq-toggle::after { transform: scaleY(0); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.faq-answer-inner { padding: 0 0 28px 0; max-width: 70ch; }
.faq-answer p { color: var(--ink-soft); font-size: 1rem; line-height: 1.65; }
.faq-answer p + p { margin-top: 0.8em; }

/* ==========================================================================
   Related links (bottom of subpage)
   ========================================================================== */
.related { background: var(--offwhite); padding-block: clamp(64px, 8vw, 96px); }
.related h3 { margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 800px) { .related-grid { grid-template-columns: 1fr; } }
.related-item {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 140px;
  border: 1px solid var(--line);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.related-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.related-item h4 { color: var(--petrol); font-size: 1.05rem; margin-bottom: 8px; }
.related-item p { font-size: 0.88rem; color: var(--ink-muted); margin-bottom: 12px; flex: 1; }
.related-item .arrow { color: var(--orange); font-weight: 700; font-size: 0.88rem; }

/* ==========================================================================
   Inline CTA block (subpages)
   ========================================================================== */
.cta-band {
  background: var(--petrol);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(40px, 5vw, 64px);
  display: flex; gap: 32px; justify-content: space-between; align-items: center; flex-wrap: wrap;
  margin: clamp(48px, 6vw, 80px) 0;
}
.cta-band h3 { color: #fff; margin-bottom: 6px; font-size: clamp(1.3rem, 2vw, 1.7rem); }
.cta-band p { color: rgba(255,255,255,0.72); margin: 0; }

/* ==========================================================================
   Image placeholders (orange dashed frames where photos will go)
   ========================================================================== */
.img-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(227, 111, 45, 0.05) 0 12px, rgba(227, 111, 45, 0.10) 12px 24px),
    rgba(227, 111, 45, 0.06);
  border: 2px dashed rgba(227, 111, 45, 0.55);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: clamp(36px, 5vw, 56px) 24px;
  text-align: center;
  position: relative;
  min-height: 200px;
  overflow: hidden;
  color: var(--ink);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.img-placeholder:hover {
  border-color: var(--orange);
  background:
    repeating-linear-gradient(135deg, rgba(227, 111, 45, 0.07) 0 12px, rgba(227, 111, 45, 0.14) 12px 24px),
    rgba(227, 111, 45, 0.10);
}
.img-placeholder::before {
  content: 'BILDPLATZHALTER';
  position: absolute;
  top: 14px; left: 18px;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--orange);
}
.img-placeholder svg.icon {
  width: clamp(36px, 5vw, 52px);
  height: clamp(36px, 5vw, 52px);
  color: var(--orange);
  opacity: 0.55;
  margin-bottom: 16px;
  stroke-width: 1.5;
}
.img-placeholder strong {
  display: block;
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 700;
  color: var(--petrol);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.img-placeholder em {
  display: block;
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.5;
  max-width: 38ch;
  margin: 0 auto;
}
.img-placeholder.wide { aspect-ratio: 16 / 9; min-height: 280px; }
.img-placeholder.portrait { aspect-ratio: 4 / 5; min-height: 280px; }
.img-placeholder.square { aspect-ratio: 1 / 1; min-height: 240px; }

.img-placeholder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .img-placeholder-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Structure elements (animated SVG accents echoing the LESA signet)
   ========================================================================== */
.draw-on-scroll path,
.draw-on-scroll line,
.draw-on-scroll polyline,
.draw-on-scroll circle,
.draw-on-scroll rect { opacity: 0; }
.draw-on-scroll.is-drawn path,
.draw-on-scroll.is-drawn line,
.draw-on-scroll.is-drawn polyline,
.draw-on-scroll.is-drawn circle,
.draw-on-scroll.is-drawn rect { opacity: 1; }

.structure-drop, .structure-arrow, .structure-check {
  display: block;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.structure-drop { width: clamp(48px, 6vw, 88px); height: auto; color: var(--petrol-light); }
.structure-arrow { width: 100%; max-width: 280px; height: auto; color: var(--orange); }
.structure-arrow.wide { max-width: 100%; }
.structure-check { width: clamp(40px, 5vw, 64px); height: auto; color: var(--orange); }

/* Placement helpers */
.structure-divider {
  display: flex; align-items: center; gap: 24px;
  padding-block: clamp(40px, 5vw, 72px);
  color: var(--line-strong);
}
.structure-divider::before,
.structure-divider::after {
  content: ''; flex: 1; height: 1px; background: currentColor;
}
.structure-divider svg { color: var(--orange); }

.structure-corner {
  position: absolute;
  pointer-events: none;
  z-index: 2;
}
.structure-corner.tl { top: clamp(80px, 12vh, 140px); left: clamp(16px, 4vw, 56px); }
.structure-corner.br { bottom: clamp(80px, 8vh, 120px); right: clamp(16px, 4vw, 56px); }

@media (prefers-reduced-motion: reduce) {
  .draw-on-scroll path,
  .draw-on-scroll line,
  .draw-on-scroll polyline,
  .draw-on-scroll circle,
  .draw-on-scroll rect { opacity: 1 !important; stroke-dashoffset: 0 !important; }
}

/* ==========================================================================
   Utility
   ========================================================================== */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.text-center { text-align: center; }
.no-wrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
