/* Leistungs-Kapitelseiten · dunkles Theme */

.theme-subpage-dunkel {
  --subpage-bg-deep: #040408;
  --subpage-bg: #0b0b10;
  --subpage-surface: #111118;
  --subpage-surface-2: #16161e;
  --subpage-border: rgba(255, 255, 255, 0.09);
  --subpage-text: #f4f4f5;
  --subpage-muted: #a1a1aa;
  --subpage-glow-a: rgba(255, 255, 255, 0.055);
  --subpage-glow-b: rgba(255, 255, 255, 0.035);
}

.page-kapitel.theme-subpage-dunkel {
  background:
    radial-gradient(ellipse 130% 70% at 50% -15%, rgba(82, 82, 91, 0.2) 0%, transparent 58%),
    radial-gradient(ellipse 90% 55% at 100% 35%, rgba(55, 55, 58, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse 80% 50% at 0% 75%, rgba(48, 48, 52, 0.14) 0%, transparent 48%),
    linear-gradient(180deg, #020203 0%, var(--subpage-bg-deep) 38%, #06060a 100%);
  color: var(--subpage-text);
}

/* Subpages als relativer Vollhöhen-Container */
.page-kapitel {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}


/* Kapitel-Unterseiten: html-Snap aus (Klasse setzt kapitel-seite.js), Sektionen mindestens Viewport */
html.kapitel-scroll-managed {
  scroll-snap-type: none;
  scroll-behavior: auto;
}
body.page-kapitel > section.snap-section {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Full-Page-Flip (alle Seiten mit #kap-fullflip-scroller): eine Sektion = ein Viewport */
html.kapitel-fullflip-root {
  height: 100%;
  overflow: hidden;
  margin: 0;
  scroll-snap-type: none;
}

html.kapitel-fullflip-root body {
  height: 100%;
  overflow: hidden;
  margin: 0;
}

html.kapitel-fullflip-root .kap-fullflip-scroller {
  /* Legacy zuerst, 100dvh zuletzt (sonst überschreibt 100vh die dynamische Höhe – iOS-Glitch) */
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  overscroll-behavior-x: none;
  backface-visibility: hidden;
  touch-action: pan-y;
  /* Kein natives CSS-Snap — JS (kapitel-seite.js) übernimmt das gesamte Snapping.
     Ein CSS-Fallback per (hover:hover) and (pointer:fine) ist NICHT möglich,
     weil Laptop-Trackpads diese Query ebenfalls matchen → Deadlock mit JS-Snap. */
  scroll-snap-type: none;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scroll-padding-top: max(5.75rem, calc(env(safe-area-inset-top, 0px) + 5rem));
  /* Leichter Puffer: letzte Zeile (Impressum) nicht hinter iOS-Home-Indicator */
  scroll-padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
}

/* transform nur auf der Startseite: bei .page-kapitel sitzt .nav-fixed im Scroller — sonst wäre fixed relativ zum Scroller */
html.kapitel-fullflip-root body:not(.page-kapitel) #kap-fullflip-scroller {
  transform: translate3d(0, 0, 0);
}

html.kapitel-fullflip-root .kap-fullflip-scroller > .snap-section {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  flex-shrink: 0;
  overflow: hidden;
}

/* Startseite: längere Sektionen sind intern scrollbar – aber Section-Höhe bleibt exakt 1 Viewport (svh,
   damit iOS-Toolbar-Slide die Snap-Ziele nicht verschiebt → keine Doppelsprünge, keine Höhen-Glitches). */
html.kapitel-fullflip-root body:not(.page-kapitel) .kap-fullflip-scroller > .snap-section {
  overflow-y: auto;
  overflow-x: hidden;
  scroll-snap-stop: normal;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

html.kapitel-fullflip-root body:not(.page-kapitel) .kap-fullflip-scroller > .snap-section.snap-section--kontakt {
  overflow-y: visible;
  overscroll-behavior: auto;
}

/* Haus-Explorer: exakt 1 Viewport hoch, Inhalt darunter scrollt innerhalb der Sektion. */
html.kapitel-fullflip-root body:not(.page-kapitel) .kap-fullflip-scroller > #haus-explorer.snap-section {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: none;
  overscroll-behavior-x: none;
}

/* Kontakt inkl. Fuß: mindestens 1 Viewport, darf nach unten wachsen – Footer im normalen Fluss. */
html.kapitel-fullflip-root body:not(.page-kapitel) .kap-fullflip-scroller > #kontakt.snap-section {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  max-height: none;
  overflow-x: hidden;
  overflow-y: visible;
  overscroll-behavior: auto;
  scroll-padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}
html.kapitel-fullflip-root body:not(.page-kapitel) #kontakt.kontakt-landing {
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  max-height: none;
}
html.kapitel-fullflip-root body:not(.page-kapitel) #kontakt .kontakt-landing__inner {
  flex: 0 0 auto;
  min-height: auto;
}
html.kapitel-fullflip-root body:not(.page-kapitel) #kontakt .kontakt-landing__content {
  flex: 0 0 auto !important;
  min-height: auto !important;
}
html.kapitel-fullflip-root body:not(.page-kapitel) #kontakt .kontakt-landing__content > .grid {
  margin-bottom: 4rem;
}
html.kapitel-fullflip-root body:not(.page-kapitel) #kontakt .home-site-footer--kontakt-landing {
  margin-top: 0 !important;
  flex-shrink: 0;
  position: relative;
}

/* Unsere Geschichte: 1 Viewport, interner Scroll falls Inhalt länger ist. */
html.kapitel-fullflip-root body:not(.page-kapitel) .kap-fullflip-scroller > #familie-geschichte.snap-section {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Kein sichtbarer Spalt/heller Rand vor dem dunklen Kontakt-Block */
html.kapitel-fullflip-root body:not(.page-kapitel) .kap-fullflip-scroller > #familie-geschichte + #kontakt {
  margin-top: 0;
}
html.kapitel-fullflip-root body:not(.page-kapitel) #kap-fullflip-scroller {
  background: #020617;
  padding-bottom: 0;
}

/* Leistungen-Block: #leistungen nur für Theming/JS, Kinder sind Snap-Ziele im Scroller */
html.kapitel-fullflip-root #leistungen.leistungen-display-contents {
  display: contents;
}

/* Leistungs-Panels: Sanierung oben; Dach/SHK-Zentrierung in leistungen-future.css */
html.kapitel-fullflip-root body:not(.page-kapitel) #leistungen .snap-section.leistung-panel {
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  max-height: 100vh;
  max-height: 100svh;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  overflow-y: hidden;
  touch-action: pan-y;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

@media (min-width: 1024px) {
  html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-dach.snap-section.leistung-panel,
  html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-shk.snap-section.leistung-panel {
    align-items: center;
    justify-content: center;
    overflow-y: auto;
  }
}

@media (max-width: 1023px) {
  html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-dach.snap-section.leistung-panel,
  html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-shk.snap-section.leistung-panel {
    align-items: flex-start;
    justify-content: flex-start;
  }
}

/* —— Mobile: weniger hartes Snapping, kein Scrollen unter dem offenen Navi-Menü —— */
html.kapitel-fullflip-root body.is-mobile-nav-open {
  overflow: hidden;
}
/* Keine Treffer ins Hero/Sections (Kinder wären sonst weiterhin tappable) */
html.kapitel-fullflip-root body.is-mobile-nav-open #kap-fullflip-scroller,
html.kapitel-fullflip-root body.is-mobile-nav-open #kap-fullflip-scroller * {
  pointer-events: none !important;
  touch-action: none;
}
/* Menü muss trotz Scroller-Sperre klickbar bleiben */
html.kapitel-fullflip-root body.is-mobile-nav-open #kap-fullflip-scroller .nav-fixed,
html.kapitel-fullflip-root body.is-mobile-nav-open #kap-fullflip-scroller .nav-fixed * {
  pointer-events: auto !important;
  touch-action: manipulation !important;
}
html.kapitel-fullflip-root body.is-mobile-nav-open #kap-fullflip-scroller {
  overflow: hidden !important;
  overscroll-behavior: none;
  -webkit-overflow-scrolling: auto;
}
html.kapitel-fullflip-root body.is-mobile-nav-open .nav-fixed,
html.kapitel-fullflip-root body.is-mobile-nav-open .nav-fixed * {
  pointer-events: auto;
}
html.kapitel-fullflip-root body.is-mobile-nav-open .nav-fixed {
  z-index: 10040;
}
html.kapitel-fullflip-root body.is-mobile-nav-open .skip-link {
  pointer-events: auto;
  z-index: 10050;
}

@media (max-width: 1023px) {
  html.kapitel-fullflip-root {
    -webkit-text-size-adjust: 100%;
  }

  /* Kleines Viewport (sichtbar mit Browser-Leisten): weniger Abschneiden unten als mit 100dvh */
  html.kapitel-fullflip-root .kap-fullflip-scroller {
    height: 100vh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    /* Touch/Trackpad: JS-Snap übernimmt, kein natives Proximity-Snap mehr (verursacht Doppelsprung). */
    scroll-snap-type: none;
    scroll-behavior: auto;
    scroll-padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  }

  html.kapitel-fullflip-root .kap-fullflip-scroller > .snap-section:not(#haus-explorer):not(#kontakt):not(#familie-geschichte) {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
  }

  html.kapitel-fullflip-root body:not(.page-kapitel) .kap-fullflip-scroller > #haus-explorer.snap-section,
  html.kapitel-fullflip-root body:not(.page-kapitel) .kap-fullflip-scroller > #familie-geschichte.snap-section {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    overflow-y: hidden;
    overscroll-behavior: none;
  }
  /* Kontakt: wächst mit Inhalt, kein festes Viewport-Clipping. */
  html.kapitel-fullflip-root body:not(.page-kapitel) .kap-fullflip-scroller > #kontakt.snap-section {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    max-height: none;
    overflow-y: visible;
    overscroll-behavior: auto;
  }

  html.kapitel-fullflip-root body:not(.page-kapitel) #leistungen .snap-section.leistung-panel {
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
  }

  html.kapitel-fullflip-root body.page-kapitel {
    min-height: 100vh;
    min-height: 100svh;
  }

  html.kapitel-fullflip-root .kap-fullflip-scroller > .snap-section,
  html.kapitel-fullflip-root body:not(.page-kapitel) #leistungen .snap-section.leistung-panel {
    scroll-snap-align: start;
  }
  html.kapitel-fullflip-root .nav-fixed,
  html.kapitel-fullflip-root .mobile-menu-btn,
  html.kapitel-fullflip-root .fab-call,
  html.kapitel-fullflip-root a.nav-call-row,
  html.kapitel-fullflip-root .nav-call-row {
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
  }
  html.kapitel-fullflip-root a,
  html.kapitel-fullflip-root button,
  html.kapitel-fullflip-root summary {
    touch-action: manipulation;
  }
}

@media (max-width: 767px) {
  /* Subpages: keine harten 100dvh-Crops je Abschnitt */
  html.kapitel-fullflip-root body.page-kapitel .kap-fullflip-scroller > .snap-section {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-stop: normal;
  }

  /* Hero auf Subpages kompakter, damit unten nichts abgeschnitten wirkt */
  .page-kapitel .kap-hero-main {
    padding-top: max(4.15rem, calc(env(safe-area-inset-top, 0px) + 3.15rem));
  }
  .page-kapitel .kap-hero-stack {
    padding-top: 0.2rem;
    padding-bottom: 0.2rem;
  }
  .page-kapitel .kap-hero-intro-grid {
    gap: 0.9rem;
  }
  .page-kapitel .kap-hero-title {
    font-size: clamp(1.85rem, 7.2vw, 2.45rem) !important;
    line-height: 1.06 !important;
    margin-bottom: 0.75rem !important;
  }
  .page-kapitel .kap-hero-lead {
    font-size: 0.9rem !important;
    line-height: 1.52 !important;
    margin-top: 0.55rem !important;
  }
  .page-kapitel .kap-subnav.kap-subnav--hero.kap-subnav--chips {
    gap: 0.48rem 0.52rem;
    padding: 0.1rem 0;
  }
  .page-kapitel .kap-chip {
    min-height: 2.1rem;
    padding: 0.38rem 0.78rem;
    font-size: 0.74rem;
    border-radius: 999px;
  }
  /* Auf Mobile keine Profil-Hero-Karte (Platzgewinn, weniger Glitches) */
  .page-kapitel .kap-marcel-hero-card {
    display: none !important;
  }
  .page-kapitel .kap-hero-intro-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

/* Grobe Eingabegeräte: weiches Snap, kein "always" Stop */
@media (hover: none) and (pointer: coarse) and (max-width: 1023px) {
  html.kapitel-fullflip-root .kap-fullflip-scroller > .snap-section {
    scroll-snap-stop: normal;
  }
}

/* —— Startseite: Größen & Abstände auf schmalen Viewports (Lesbarkeit, gleicher Aufbau) —— */
@media (max-width: 1023px) {
  html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-panel .leistung-panel-inner {
    min-width: 0;
    padding-top: 1rem;
    padding-bottom: 1.15rem;
    padding-left: max(0.85rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.85rem, env(safe-area-inset-right, 0px)) !important;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-panel .leistung-panel-inner .grid {
    gap: 1.25rem;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-headline {
    font-size: clamp(1.45rem, 8vw, 2.35rem) !important;
    line-height: 1.08;
    margin-bottom: 0.5rem;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-lead {
    font-size: 0.9375rem !important;
    line-height: 1.6 !important;
    margin-bottom: 1.15rem;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-badge {
    margin-bottom: 0.6rem;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-cta {
    min-height: 2.75rem;
    display: inline-flex;
    align-items: center;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-glass-card.sub-tile {
    padding: 0.8rem 0.65rem;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-glass-card.sub-tile p {
    font-size: 0.78rem;
    line-height: 1.3;
  }
  /* Sanierung-Icons kompakter, damit die Kacheln auf einer Viewport-Seite bleiben. */
  html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-card-grid {
    gap: 0.42rem !important;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-glass-card.sub-tile {
    padding: 0.52rem 0.46rem !important;
    border-radius: 0.85rem;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-glass-card.sub-tile i,
  html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-glass-card.sub-tile svg {
    width: 0.88rem !important;
    height: 0.88rem !important;
    margin-bottom: 0.28rem !important;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-glass-card.sub-tile p {
    font-size: 0.68rem !important;
    line-height: 1.22 !important;
  }

  /* Laptop: Sanierung komplett im Viewport, kleinere Icons */
  @media (min-width: 1024px) and (max-width: 1440px) {
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-panel-inner {
      padding-top: 0.75rem !important;
      padding-bottom: 0.8rem !important;
    }
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-headline {
      font-size: clamp(1.55rem, 2.8vw, 2rem) !important;
      margin-bottom: 0.4rem !important;
    }
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-lead {
      font-size: 0.86rem !important;
      line-height: 1.45 !important;
      margin-bottom: 0.6rem !important;
    }
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-badge {
      margin-bottom: 0.4rem !important;
      font-size: 0.75rem;
      padding: 0.32rem 0.62rem;
    }
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-panel-inner .grid {
      gap: 0.75rem !important;
    }
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-card-grid {
      gap: 0.36rem !important;
    }
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-glass-card.sub-tile {
      padding: 0.46rem 0.4rem !important;
    }
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-glass-card.sub-tile i,
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-glass-card.sub-tile svg {
      width: 0.72rem !important;
      height: 0.72rem !important;
      margin-bottom: 0.16rem !important;
    }
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-glass-card.sub-tile p {
      font-size: 0.64rem !important;
      line-height: 1.18 !important;
    }
    html.kapitel-fullflip-root body:not(.page-kapitel) #leistung-sanierung .leistung-cta {
      min-height: 2.45rem;
      font-size: 0.88rem;
    }
  }

  html.kapitel-fullflip-root #unsere-team {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
    padding-bottom: 1.5rem;
    padding-top: 0.5rem;
  }
  html.kapitel-fullflip-root #unsere-team .bento-glass-card {
    padding: 0.7rem 0.8rem 0.85rem;
    border-radius: 22px;
  }
  html.kapitel-fullflip-root #unsere-team .team-theme-accent {
    width: calc(100% + 1.6rem);
    margin: -0.8rem -0.8rem 0.5rem -0.8rem;
    height: 3px;
  }
  html.kapitel-fullflip-root #unsere-team .marcel-team-mp.team-avatar {
    width: 3.15rem;
    height: 3.15rem;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
  }
  html.kapitel-fullflip-root #unsere-team .team-avatar {
    width: 3.15rem;
    height: 3.15rem;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
  }
  html.kapitel-fullflip-root #unsere-team .team-card-inner h3 {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
  }
  html.kapitel-fullflip-root #unsere-team .team-role-badge {
    font-size: 0.58rem;
    padding: 0.22rem 0.45rem;
    gap: 0.2rem;
  }
  html.kapitel-fullflip-root #unsere-team .team-role-badge i,
  html.kapitel-fullflip-root #unsere-team .team-role-badge svg {
    width: 0.65rem;
    height: 0.65rem;
  }
  html.kapitel-fullflip-root #unsere-team .team-card-inner p.uppercase {
    font-size: 0.55rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.06em;
  }
  html.kapitel-fullflip-root #unsere-team .team-card-inner p.leading-relaxed {
    font-size: 0.72rem;
    line-height: 1.42;
  }
  html.kapitel-fullflip-root #unsere-team .max-w-5xl > .text-center {
    margin-bottom: 0.9rem;
  }
  html.kapitel-fullflip-root #unsere-team h2 {
    font-size: clamp(1.3rem, 3.8vw, 1.65rem) !important;
  }
  html.kapitel-fullflip-root #unsere-team .grid {
    gap: 0.55rem;
  }
  html.kapitel-fullflip-root #unsere-team .section-label,
  html.kapitel-fullflip-root #familie-geschichte .section-label,
  html.kapitel-fullflip-root #kontakt .section-label {
    margin-bottom: 0.5rem;
    font-size: 0.7rem;
    padding: 0.35rem 0.75rem;
  }
  html.kapitel-fullflip-root #unsere-team .text-lg,
  html.kapitel-fullflip-root #unsere-team p.text-lg {
    font-size: 0.95rem;
  }
  html.kapitel-fullflip-root #familie-geschichte {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }
  html.kapitel-fullflip-root #familie-geschichte .text-center {
    margin-bottom: 1.25rem;
  }
  html.kapitel-fullflip-root .geschichte-home-lead {
    font-size: 0.95rem;
    line-height: 1.58;
  }
  html.kapitel-fullflip-root #familie-geschichte h2,
  html.kapitel-fullflip-root #kontakt .kontakt-landing__content h2 {
    font-size: clamp(1.5rem, 4.2vw, 1.9rem) !important;
  }
  html.kapitel-fullflip-root #familie-geschichte .geschichte-bento-card {
    padding: 1.1rem 1.15rem 1.2rem;
  }
  html.kapitel-fullflip-root #kontakt .kontakt-landing__content {
    padding-left: max(0.9rem, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(0.9rem, env(safe-area-inset-right, 0px)) !important;
    justify-content: flex-start !important;
    padding-top: max(1.15rem, calc(6.75rem + env(safe-area-inset-top, 0px))) !important;
    padding-bottom: max(1.25rem, calc(env(safe-area-inset-bottom, 0px) + 0.85rem)) !important;
  }
  html.kapitel-fullflip-root #kontakt .kontakt-landing__content > .grid {
    margin-bottom: 3rem;
  }
  html.kapitel-fullflip-root #kontakt .kontakt-trust-strip {
    margin-bottom: 0.5rem;
  }
  html.kapitel-fullflip-root #kontakt .home-site-footer--kontakt-landing {
    margin-top: 0 !important;
    flex-shrink: 0;
    position: relative;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) .kap-fullflip-scroller > #kontakt.snap-section {
    scroll-padding-top: max(6.5rem, calc(env(safe-area-inset-top, 0px) + 5.75rem));
  }
  html.kapitel-fullflip-root #kontakt.kontakt-landing--light {
    background-color: #e8edf6;
    background-image:
      radial-gradient(ellipse 90% 55% at 15% 25%, rgba(59, 130, 246, 0.1), transparent 58%),
      radial-gradient(ellipse 70% 50% at 92% 70%, rgba(212, 175, 55, 0.08), transparent 52%),
      linear-gradient(195deg, #eef2f9 0%, #e8edf6 45%, #e2e8f0 100%);
    background-attachment: local;
  }
  html.kapitel-fullflip-root #kontakt .kontakt-landing__inner {
    flex: 1 1 auto;
    min-height: 0;
  }
  html.kapitel-fullflip-root #kontakt .kontakt-anim-form,
  html.kapitel-fullflip-root #kontakt .kontakt-anim-aside {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }
  html.kapitel-fullflip-root #kontakt .kontakt-landing__content > .text-center {
    margin-bottom: 0.85rem;
  }
  html.kapitel-fullflip-root #kontakt .kontakt-form-shell {
    padding: 0.92rem 0.9rem 0.95rem !important;
  }
  html.kapitel-fullflip-root #kontakt #contact-form .grid {
    gap: 0.55rem !important;
  }
  html.kapitel-fullflip-root #kontakt .kontakt-textarea--compact,
  html.kapitel-fullflip-root #kontakt #c-message {
    min-height: 4rem !important;
    max-height: 6rem !important;
  }
  html.kapitel-fullflip-root #kontakt .kontakt-landing__lead,
  html.kapitel-fullflip-root #kontakt .kontakt-landing--light .kontakt-landing__lead {
    font-size: 0.95rem !important;
    line-height: 1.5;
  }
  html.kapitel-fullflip-root #kontakt .form-input,
  html.kapitel-fullflip-root #kontakt .kontakt-form-input {
    font-size: 1rem; /* leichtes Zoom-Vermeid auf iOS, lesbarer */
  }
  html.kapitel-fullflip-root #kontakt .btn-primary {
    min-height: 2.75rem;
  }
  html.kapitel-fullflip-root .home-site-footer .home-footer-main,
  html.kapitel-fullflip-root #kontakt .home-site-footer .home-footer-main {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  html.kapitel-fullflip-root body.page-kapitel .kap-fullflip-scroller > .snap-section {
    padding-bottom: max(0.25rem, env(safe-area-inset-bottom, 0px));
  }

  html.kapitel-fullflip-root body.page-kapitel .kap-marcel-hero-card img,
  html.kapitel-fullflip-root body.page-kapitel .kap-hero-intro-grid img {
    max-height: min(30svh, 11rem);
    width: auto;
    object-fit: contain;
  }

  html.kapitel-fullflip-root body.page-kapitel h1.kap-hero-title,
  html.kapitel-fullflip-root body.page-kapitel .kap-hero-title {
    font-size: clamp(1.5rem, 8vw, 2.45rem) !important;
    line-height: 1.06 !important;
  }

  html.kapitel-fullflip-root body.page-kapitel .kap-hero-stack {
    padding-bottom: max(0.35rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 380px) {
  html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-glass-card.sub-tile p {
    font-size: 0.72rem;
  }
  html.kapitel-fullflip-root body:not(.page-kapitel) .leistung-panel .leistung-lead,
  html.kapitel-fullflip-root .geschichte-home-lead {
    font-size: 0.9rem !important;
  }
}

.page-kapitel #kap-top,
.page-kapitel #kontakt-kapitel,
.page-kapitel section[id^='kap-'] {
  scroll-margin-top: max(2.25rem, calc(96px - 10vh));
}

.page-kapitel .kap-hero-shell {
  padding-top: 0;
  background: linear-gradient(
    162deg,
    #08080a 0%,
    #0c0c0e 30%,
    #141416 56%,
    #101012 78%,
    #0a0a0c 100%
  );
  box-shadow:
    inset 0 0 min(120vw, 200px) rgba(0, 0, 0, 0.62),
    inset 0 -100px 140px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.page-kapitel .kap-hero-photo {
  opacity: 1;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, rgba(55, 55, 60, 0.35) 0%, transparent 55%),
    linear-gradient(165deg, #0a0a0c 0%, #121214 50%, #08080a 100%);
}

.page-kapitel .kap-hero-overlay {
  background:
    linear-gradient(
      188deg,
      rgba(6, 6, 8, 0.94) 0%,
      rgba(18, 18, 20, 0.55) 32%,
      rgba(22, 22, 24, 0.72) 68%,
      rgba(5, 5, 7, 0.95) 100%
    ),
    radial-gradient(ellipse 95% 60% at 78% 12%, rgba(255, 255, 255, 0.07) 0%, transparent 52%),
    radial-gradient(ellipse 75% 55% at 8% 88%, rgba(255, 255, 255, 0.045) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(255, 255, 255, 0.025) 0%, transparent 70%);
}

.page-kapitel .kap-hero-main {
  padding-top: max(4.85rem, calc(env(safe-area-inset-top, 0px) + 3.6rem));
}

.page-kapitel .kap-hero-stack {
  max-width: min(96vw, 72rem);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.page-kapitel .kap-hero-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(220px, 28vw, 320px);
  gap: clamp(1.25rem, 4vw, 3rem);
  align-items: start;
}

/* Geschichte: Hero nur Text, kein Porträt-Kart */
.page-kapitel .kap-hero-intro-grid--solo {
  grid-template-columns: 1fr;
  max-width: min(48rem, 100%);
  margin: 0 auto 0 0;
}

.page-kapitel .kap-hero-col-left {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.page-kapitel .kap-marcel-hero-card {
  display: flex;
  flex-direction: column;
  align-self: start;
  border-radius: 1.1rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(32, 32, 38, 0.95) 0%, rgba(14, 14, 18, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 22px 50px rgba(0, 0, 0, 0.5);
  color: #fafafa;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.25s ease;
}

.page-kapitel .kap-marcel-hero-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 212, 216, 0.35);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 28px rgba(255, 255, 255, 0.06),
    0 26px 56px rgba(0, 0, 0, 0.55);
}

.page-kapitel .kap-marcel-hero-card__photo {
  width: 100%;
  aspect-ratio: 3 / 4.25;
  max-height: min(68vh, 560px);
  min-height: 17rem;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.page-kapitel .kap-marcel-hero-card__footer {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.35);
}

.page-kapitel .kap-marcel-hero-card__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.page-kapitel .kap-marcel-hero-card__hint {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(212, 212, 216, 0.95);
}

@media (max-width: 900px) {
  .page-kapitel .kap-hero-intro-grid {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }
  .page-kapitel .kap-marcel-hero-card {
    max-width: min(300px, 90vw);
    margin-left: auto;
    margin-right: auto;
  }
  .page-kapitel .kap-marcel-hero-card__photo {
    max-height: min(58vh, 480px);
    min-height: 15rem;
  }
  .page-kapitel .kap-subnav.kap-subnav--hero.kap-subnav--chips {
    justify-content: center;
  }
}

.page-kapitel .kap-nav-integrated {
  width: 100%;
}

.page-kapitel .nav-fixed {
  background: rgba(10, 10, 12, 0.88) !important;
  border-bottom: 1px solid var(--subpage-border) !important;
  backdrop-filter: blur(22px) saturate(1.35);
  -webkit-backdrop-filter: blur(22px) saturate(1.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
}

.page-kapitel .nav-fixed.scrolled {
  background: rgba(8, 8, 10, 0.94) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.page-kapitel .nav-fixed .nav-tagline {
  background: linear-gradient(135deg, #e4e4e7 0%, #fafafa 48%, #d4d4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-kapitel .nav-fixed .nav-tagline-dot {
  -webkit-text-fill-color: #a1a1aa;
}

.page-kapitel .nav-fixed .kap-nav-desktop-cluster {
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.page-kapitel .nav-fixed .site-nav-pill {
  padding: 0.58rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5 !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.page-kapitel .nav-fixed .site-nav-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff !important;
}

.page-kapitel .nav-fixed .kap-nav-divider--rail {
  align-self: stretch;
  min-height: 1.75rem;
  margin: 0 0.35rem 0 0.5rem;
  background-color: rgba(255, 255, 255, 0.16) !important;
  border-radius: 2px;
}

.page-kapitel .nav-fixed .nav-call-stack {
  min-width: 11.75rem;
  max-width: min(100vw - 2rem, 19rem);
}

.page-kapitel .nav-fixed .nav-call-trigger {
  padding-top: 0.58rem;
  padding-bottom: 0.58rem;
  font-size: 0.9rem;
}

.page-kapitel .nav-fixed .btn-primary span {
  font-size: 0.9rem;
}

.page-kapitel .nav-fixed .btn-primary {
  padding: 0.58rem 1.25rem;
}

.page-kapitel .nav-fixed #mobile-menu-btn {
  color: #e4e4e7;
}

.page-kapitel .nav-fixed #mobile-menu-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.page-kapitel #primary-menu-mobile,
.page-kapitel #mobile-menu {
  background: rgba(12, 12, 15, 0.97);
  border-top: 1px solid var(--subpage-border);
}

.page-kapitel #primary-menu-mobile .flex.flex-col > a,
.page-kapitel #mobile-menu .flex.flex-col > a {
  color: #e4e4e7 !important;
}

.page-kapitel .kap-hero-lead {
  color: rgba(228, 228, 231, 0.78);
  line-height: 1.72;
}

.page-kapitel .kap-hero-title {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 20px rgba(0, 0, 0, 0.45),
    0 14px 56px rgba(0, 0, 0, 0.55);
}

.page-kapitel .kap-hero-back {
  border-color: rgba(255, 255, 255, 0.28) !important;
  color: rgba(255, 255, 255, 0.95) !important;
  background: rgba(255, 255, 255, 0.05);
}

.page-kapitel .kap-hero-back:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page-kapitel .kap-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 980px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(165deg, rgba(48, 48, 56, 0.55) 0%, rgba(22, 22, 28, 0.75) 100%);
  color: rgba(244, 244, 245, 0.88);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.07) inset,
    0 12px 36px rgba(0, 0, 0, 0.38);
}

.page-kapitel .kap-subnav.kap-subnav--hero.kap-subnav--chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.72rem 0.95rem;
  justify-content: flex-start;
  align-items: center;
  padding: 0.35rem 0;
  max-width: 100%;
  margin: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
}

.page-kapitel .kap-chip {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  border-radius: 999px;
  text-decoration: none;
  color: #f4f4f5 !important;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(165deg, rgba(42, 42, 48, 0.95), rgba(22, 22, 28, 0.98));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 10px 28px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.2s ease;
  overflow: hidden;
}

.page-kapitel .kap-chip::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--cx, 50%) var(--cy, 50%),
    rgba(255, 255, 255, 0.14),
    transparent 42%
  );
  transition: opacity 0.2s ease;
}

.page-kapitel .kap-chip:hover::before,
.page-kapitel .kap-chip:focus-visible::before {
  opacity: 1;
}

.page-kapitel .kap-chip:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(228, 228, 231, 0.32);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 22px rgba(255, 255, 255, 0.06),
    0 14px 36px rgba(0, 0, 0, 0.45);
}

.page-kapitel .kap-chip:focus-visible {
  outline: 2px solid rgba(212, 212, 216, 0.65);
  outline-offset: 3px;
}

.page-kapitel .kap-slice {
  position: relative;
  isolation: isolate;
  border-top: 1px solid var(--subpage-border);
  background: linear-gradient(180deg, var(--subpage-bg-deep) 0%, var(--subpage-bg) 100%);
}

.page-kapitel .kap-slice > * {
  position: relative;
  z-index: 1;
}

.page-kapitel .kap-slice::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 88% 52% at 92% 6%, var(--subpage-glow-a) 0%, transparent 54%),
    radial-gradient(ellipse 72% 48% at 4% 94%, var(--subpage-glow-b) 0%, transparent 52%),
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
  opacity: 0.92;
}

.page-kapitel .kap-slice--b::before {
  transform: scaleX(-1);
}

.page-kapitel .kap-slice--a {
  background: linear-gradient(
    168deg,
    #020208 0%,
    var(--subpage-bg-deep) 14%,
    var(--subpage-bg) 48%,
    #0e0e16 78%,
    var(--subpage-bg-deep) 100%
  );
}

.page-kapitel .kap-slice--b {
  background: linear-gradient(
    172deg,
    var(--subpage-bg) 0%,
    #12121a 35%,
    var(--subpage-surface) 62%,
    #0a0a10 100%
  );
}

/* Projekt mittig, Fußbereich unten, eine Leiste als sauberer Seitenabschluss */
.page-kapitel .kap-page-close.snap-section {
  /* Finale Sektion snappt bis ans Seitenende */
  scroll-snap-align: end;
  scroll-snap-stop: always;
  scroll-margin-top: max(2.25rem, calc(96px - 10vh));
  --kap-page-close-footer-space: clamp(210px, 26vh, 320px);
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  padding-top: 0;
  padding-bottom: var(--kap-page-close-footer-space);
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
}

.page-kapitel .kap-page-close__middle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: clamp(0.75rem, 3vh, 1.75rem) 0;
  box-sizing: border-box;
  overflow: hidden;
}

.page-kapitel .kap-page-close__projekt {
  flex: 0 0 auto;
}

/* Pilch-inspirierter Seitenfuß (Kapitelseiten) */
.page-kapitel .kap-site-footer {
  position: relative;
  isolation: isolate;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, #0e0e10 0%, #050506 42%, #020203 100%);
  color: #e4e4e7;
  padding: 2.75rem 0 0;
}

.page-kapitel .kap-site-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 45% at 15% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 92% 100%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  opacity: 0.9;
}

.page-kapitel .kap-site-footer > * {
  position: relative;
  z-index: 1;
}

.page-kapitel .kap-site-footer.kap-site-footer--page-end {
  margin-top: 0;
  flex-shrink: 0;
  width: 100%;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: auto;
  scroll-snap-align: none !important;
  padding: 0;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(12, 12, 14, 0.98) 0%, #08080a 55%, #050506 100%);
}

/* Mobile-Override neutralisieren: finale Sektion bleibt exakt ein Viewport */
@media (max-width: 767px) {
  html.kapitel-fullflip-root body.page-kapitel .kap-fullflip-scroller > .kap-page-close.snap-section {
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
}

.page-kapitel .kap-site-footer.kap-site-footer--page-end::before {
  opacity: 0.4;
}

.page-kapitel .kap-site-footer.kap-site-footer--page-end .kap-footer-main {
  padding-bottom: 1.65rem;
}

.page-kapitel .kap-site-footer.kap-site-footer--page-end .kap-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: #010102;
  padding: 1rem 1.5rem 1.1rem;
  padding-bottom: max(1.05rem, calc(env(safe-area-inset-bottom, 0px) + 0.7rem));
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.page-kapitel .kap-site-footer.kap-site-footer--page-end .kap-footer-bar-inner {
  font-size: 0.76rem;
  color: rgba(161, 161, 170, 0.93);
}

.page-kapitel .kap-footer-main {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem 2.25rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .page-kapitel .kap-footer-main {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto auto minmax(0, 14rem);
    align-items: center;
  }
}

@media (max-width: 959px) {
  .page-kapitel .kap-footer-main {
    justify-items: center;
    text-align: center;
  }
  .page-kapitel .kap-footer-mail-card {
    width: 100%;
    max-width: 22rem;
  }
  .page-kapitel .kap-footer-google {
    align-items: center;
  }
  .page-kapitel .kap-footer-address {
    text-align: center;
  }
  .page-kapitel .kap-footer-bar-inner {
    align-items: center;
    text-align: center;
  }
  .page-kapitel .kap-footer-legal {
    justify-content: center;
  }
}

.page-kapitel .kap-footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.page-kapitel .kap-footer-logo-img {
  width: clamp(7.5rem, 18vw, 10.5rem);
  height: auto;
  display: block;
  filter: brightness(0) invert(1) opacity(0.92);
}

.page-kapitel .kap-footer-mail-card {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.45rem;
  padding: 1rem 1.15rem 1.05rem;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  max-width: 22rem;
}

.page-kapitel .kap-footer-mail-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(228, 228, 231, 0.75);
  margin-bottom: 0.55rem;
}

.page-kapitel .kap-footer-mail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #f4f4f5 !important;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.page-kapitel .kap-footer-mail-link:hover {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-kapitel .kap-footer-mail-link i,
.page-kapitel .kap-footer-mail-link svg {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0.85;
  flex-shrink: 0;
}

.page-kapitel .kap-footer-google {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

@media (min-width: 960px) {
  .page-kapitel .kap-footer-google {
    align-items: center;
  }
}

.page-kapitel .kap-footer-google-mark {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(244, 244, 245, 0.88);
}

.page-kapitel .kap-footer-google-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  color: #fafafa;
}

.page-kapitel .kap-footer-stars {
  display: flex;
  gap: 0.12rem;
  color: #fbbf24;
}

.page-kapitel .kap-footer-stars svg {
  width: 1rem;
  height: 1rem;
  fill: #fbbf24;
  color: #fbbf24;
}

.page-kapitel .kap-footer-ig {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #f4f4f5 !important;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-kapitel .kap-footer-ig:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}

.page-kapitel .kap-footer-ig svg,
.page-kapitel .kap-footer-ig .footer-instagram-icon {
  width: 1.35rem;
  height: 1.35rem;
}

.page-kapitel .kap-footer-address {
  font-style: normal;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(228, 228, 231, 0.82);
}

.page-kapitel .kap-footer-address strong {
  font-weight: 700;
  color: #fafafa;
}

.page-kapitel .kap-footer-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.35);
  padding: 1rem 1.5rem 1.35rem;
}

.page-kapitel .kap-footer-bar-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
  font-size: 0.78rem;
  color: rgba(161, 161, 170, 0.95);
}

@media (min-width: 720px) {
  .page-kapitel .kap-footer-bar-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.page-kapitel .kap-footer-legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.25rem;
}

.page-kapitel .kap-footer-legal a {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  color: rgba(228, 228, 231, 0.88) !important;
  text-decoration: none;
  font-weight: 600;
}

.page-kapitel .kap-footer-legal a:hover {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-kapitel .kap-footer-legal-chev {
  width: 0.65rem;
  height: 0.65rem;
  color: rgba(212, 212, 216, 0.55);
  flex-shrink: 0;
}

.page-kapitel .kap-footer-copy {
  margin: 0;
  line-height: 1.5;
}

.page-kapitel .kap-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .page-kapitel .kap-split {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .page-kapitel .kap-split--flip {
    direction: rtl;
  }
  .page-kapitel .kap-split--flip > * {
    direction: ltr;
  }
}

/* Unsere Geschichte: zwei Fotos pro Kapitel */
.page-kapitel.kapitel-theme-geschichte .kap-geschichte-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 640px) {
  .page-kapitel.kapitel-theme-geschichte .kap-geschichte-pair {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}
.page-kapitel.kapitel-theme-geschichte .kap-geschichte-photo {
  margin: 0;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--subpage-border, rgba(255, 255, 255, 0.12));
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  background: rgba(0, 0, 0, 0.25);
}
.page-kapitel.kapitel-theme-geschichte .kap-geschichte-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  vertical-align: bottom;
}

.page-kapitel .kap-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.page-kapitel .kap-reveal.is-inview {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.page-kapitel .kap-visual-figure {
  margin: 0;
  max-width: 100%;
}

.page-kapitel .kap-visual-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}

.page-kapitel .kap-visual-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(244, 244, 245, 0.88);
}

.page-kapitel .kap-visual-pill--hint {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(228, 228, 231, 0.72);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Keine Foto-Assets nötig: dezentes Symbolfeld (Lucide) */
.page-kapitel .kap-visual-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1rem;
  border: 1px solid var(--subpage-border);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  aspect-ratio: 4 / 3;
  max-height: min(52vh, 380px);
  background: linear-gradient(165deg, rgba(38, 38, 44, 0.88) 0%, rgba(14, 14, 18, 0.96) 100%);
}

.page-kapitel .kap-visual-panel svg,
.page-kapitel .kap-visual-panel i {
  width: clamp(3.25rem, 11vw, 4.75rem);
  height: clamp(3.25rem, 11vw, 4.75rem);
  color: rgba(212, 212, 216, 0.32);
  stroke-width: 1.15;
}

.page-kapitel .kap-visual-dual {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--subpage-border);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  aspect-ratio: 4 / 3;
  max-height: min(70vh, 420px);
  cursor: pointer;
  outline: none;
}

.page-kapitel .kap-visual-dual:focus-visible {
  box-shadow:
    0 0 0 2px rgba(3, 3, 5, 0.95),
    0 0 0 4px rgba(212, 212, 216, 0.45),
    0 20px 50px rgba(0, 0, 0, 0.4);
}

.page-kapitel .kap-visual-dual .kap-muster,
.page-kapitel .kap-visual-dual .kap-roof-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-kapitel .kap-visual-dual .kap-roof-layer {
  opacity: 0;
  transition: opacity 0.45s ease;
}

.page-kapitel .kap-visual-dual:hover .kap-roof-layer,
.page-kapitel .kap-visual-dual:focus-within .kap-roof-layer {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .page-kapitel .kap-visual-dual .kap-roof-layer {
    transition-duration: 0.01ms;
  }
}

.page-kapitel .kap-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(161, 161, 170, 0.95);
  margin-bottom: 0.75rem;
}

.page-kapitel .kap-slice h2 {
  color: #fafafa;
  letter-spacing: -0.03em;
}

.page-kapitel .kap-slice p {
  color: rgba(228, 228, 231, 0.78);
  line-height: 1.75;
}

.page-kapitel .hero-discover-hint__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.page-kapitel .fab-call {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.page-kapitel .btn-primary {
  background: linear-gradient(135deg, #3f3f46, #52525b) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 10px 28px rgba(0, 0, 0, 0.35) !important;
}

.page-kapitel .btn-primary:hover {
  filter: brightness(1.08);
}

/* ─── Sanierung-Unterseiten (Orange, etwas knalliger / heller als Dach) ─── */
.page-kapitel.kapitel-theme-sanierung.theme-subpage-dunkel {
  --subpage-glow-a: rgba(251, 191, 36, 0.26);
  --subpage-glow-b: rgba(249, 115, 22, 0.2);
  background:
    radial-gradient(ellipse 125% 75% at 50% -5%, rgba(251, 146, 60, 0.38) 0%, transparent 55%),
    radial-gradient(ellipse 95% 60% at 100% 40%, rgba(234, 88, 12, 0.22) 0%, transparent 50%),
    radial-gradient(ellipse 85% 55% at 0% 70%, rgba(180, 83, 9, 0.2) 0%, transparent 48%),
    linear-gradient(180deg, #3d2e24 0%, #2a221c 32%, #1f1814 68%, #181210 100%);
}

.page-kapitel.kapitel-theme-sanierung .kap-hero-shell {
  background: linear-gradient(135deg, #3a2f26 0%, #4a3d32 28%, #352a22 58%, #2a211a 100%);
  box-shadow:
    inset 0 0 min(120vw, 200px) rgba(120, 53, 15, 0.18),
    inset 0 -100px 140px rgba(41, 37, 36, 0.35),
    inset 0 1px 0 rgba(255, 247, 237, 0.06);
}

.page-kapitel.kapitel-theme-sanierung .kap-hero-photo {
  background:
    radial-gradient(ellipse 90% 72% at 45% 32%, rgba(253, 186, 116, 0.55) 0%, transparent 52%),
    radial-gradient(ellipse 70% 55% at 85% 65%, rgba(249, 115, 22, 0.35) 0%, transparent 45%),
    linear-gradient(165deg, #4a3728 0%, #3d2e22 38%, #2a2118 100%);
}

.page-kapitel.kapitel-theme-sanierung .kap-hero-overlay {
  background:
    linear-gradient(
      188deg,
      rgba(42, 32, 26, 0.45) 0%,
      rgba(55, 42, 32, 0.32) 38%,
      rgba(45, 36, 28, 0.42) 72%,
      rgba(30, 22, 18, 0.55) 100%
    ),
    radial-gradient(ellipse 95% 60% at 78% 12%, rgba(255, 237, 213, 0.12) 0%, transparent 52%),
    radial-gradient(ellipse 75% 55% at 8% 88%, rgba(251, 146, 60, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 50% 50%, rgba(253, 186, 116, 0.08) 0%, transparent 68%);
}

.page-kapitel.kapitel-theme-sanierung .kap-hero-label {
  border-color: rgba(251, 146, 60, 0.28);
  background: linear-gradient(165deg, rgba(120, 53, 15, 0.45) 0%, rgba(41, 37, 36, 0.72) 100%);
  color: rgba(255, 247, 237, 0.92);
}

.page-kapitel.kapitel-theme-sanierung .kap-chip {
  border-color: rgba(253, 186, 116, 0.22);
  background: linear-gradient(165deg, rgba(63, 46, 32, 0.95), rgba(28, 22, 18, 0.98));
}

.page-kapitel.kapitel-theme-sanierung .kap-chip:hover {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 237, 213, 0.12) inset,
    0 0 22px rgba(251, 146, 60, 0.12),
    0 14px 36px rgba(0, 0, 0, 0.45);
}

.page-kapitel.kapitel-theme-sanierung .kap-chip:focus-visible {
  outline-color: rgba(251, 191, 36, 0.55);
}

.page-kapitel.kapitel-theme-sanierung .kap-marcel-hero-card {
  border-color: rgba(251, 146, 60, 0.22);
  background: linear-gradient(180deg, rgba(48, 32, 22, 0.95) 0%, rgba(18, 12, 10, 0.98) 100%);
}

.page-kapitel.kapitel-theme-sanierung .kap-marcel-hero-card:hover {
  border-color: rgba(251, 191, 36, 0.38);
  box-shadow:
    0 1px 0 rgba(255, 237, 213, 0.1) inset,
    0 0 28px rgba(251, 146, 60, 0.1),
    0 26px 56px rgba(0, 0, 0, 0.55);
}

.page-kapitel.kapitel-theme-sanierung .kap-slice--a {
  background: linear-gradient(168deg, #2f261f 0%, #3a3028 45%, #262018 100%);
}

.page-kapitel.kapitel-theme-sanierung .kap-slice--b {
  background: linear-gradient(172deg, #352c24 0%, #40342c 52%, #282018 100%);
}

.page-kapitel.kapitel-theme-sanierung .kap-visual-panel {
  border-color: rgba(251, 146, 60, 0.35);
  background: linear-gradient(165deg, rgba(120, 72, 48, 0.55) 0%, rgba(45, 36, 28, 0.88) 100%);
}

.page-kapitel.kapitel-theme-sanierung .kap-visual-panel svg,
.page-kapitel.kapitel-theme-sanierung .kap-visual-panel i {
  color: rgba(251, 191, 36, 0.38);
}

.page-kapitel.kapitel-theme-sanierung .btn-primary {
  background: linear-gradient(135deg, #b45309, #ea580c 48%, #f97316) !important;
  border: 1px solid rgba(251, 191, 36, 0.28) !important;
  box-shadow: 0 1px 0 rgba(255, 247, 237, 0.1) inset, 0 10px 28px rgba(0, 0, 0, 0.38) !important;
}

/* ─── SHK-Unterseiten (Wasser + Feuer, näher am knalligen #leistung-shk-Panel) ─── */
.page-kapitel.kapitel-theme-shk.theme-subpage-dunkel {
  --subpage-glow-a: rgba(56, 189, 248, 0.28);
  --subpage-glow-b: rgba(251, 146, 60, 0.24);
  background:
    radial-gradient(ellipse 120% 70% at 15% 20%, rgba(14, 165, 233, 0.35) 0%, transparent 45%),
    radial-gradient(ellipse 110% 65% at 88% 25%, rgba(249, 115, 22, 0.38) 0%, transparent 48%),
    radial-gradient(ellipse 100% 55% at 50% 100%, rgba(3, 105, 161, 0.25) 0%, transparent 50%),
    linear-gradient(118deg, #1a3a52 0%, #7c2d12 22%, #c2410c 38%, #0e7490 58%, #164e63 78%, #0f1729 100%);
}

.page-kapitel.kapitel-theme-shk .kap-hero-shell {
  background: linear-gradient(
    118deg,
    #5c2010 0%,
    #b45309 18%,
    #ea580c 32%,
    #f97316 42%,
    #0e7490 52%,
    #0369a1 68%,
    #0c4a6e 88%,
    #0f172a 100%
  );
  box-shadow:
    inset 0 0 min(100vw, 180px) rgba(15, 23, 42, 0.2),
    inset 0 -90px 120px rgba(12, 74, 110, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.page-kapitel.kapitel-theme-shk .kap-hero-photo {
  background:
    radial-gradient(ellipse 75% 58% at 22% 28%, rgba(255, 180, 100, 0.5) 0%, transparent 46%),
    radial-gradient(ellipse 80% 62% at 82% 30%, rgba(125, 211, 252, 0.45) 0%, transparent 48%),
    radial-gradient(ellipse 90% 70% at 50% 85%, rgba(14, 116, 144, 0.35) 0%, transparent 42%),
    linear-gradient(118deg, #4a1c0c 0%, #9a3412 26%, #0c4a6e 55%, #082f49 100%);
}

.page-kapitel.kapitel-theme-shk .kap-hero-overlay {
  background:
    linear-gradient(
      188deg,
      rgba(15, 23, 42, 0.35) 0%,
      rgba(124, 45, 18, 0.22) 28%,
      rgba(8, 47, 73, 0.28) 62%,
      rgba(15, 23, 42, 0.42) 100%
    ),
    radial-gradient(ellipse 90% 55% at 75% 10%, rgba(186, 230, 253, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 12% 88%, rgba(254, 215, 170, 0.12) 0%, transparent 48%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(56, 189, 248, 0.1) 0%, transparent 68%);
}

.page-kapitel.kapitel-theme-shk .kap-hero-label {
  border-color: rgba(56, 189, 248, 0.35);
  background: linear-gradient(120deg, rgba(124, 45, 18, 0.35), rgba(12, 74, 110, 0.38));
  color: rgba(224, 242, 254, 0.92);
}

.page-kapitel.kapitel-theme-shk .kap-chip {
  border-color: rgba(14, 165, 233, 0.22);
  background: linear-gradient(165deg, rgba(30, 42, 58, 0.92), rgba(18, 16, 20, 0.96));
}

.page-kapitel.kapitel-theme-shk .kap-chip:hover {
  border-color: rgba(251, 146, 60, 0.38);
  box-shadow:
    0 1px 0 rgba(224, 242, 254, 0.08) inset,
    0 0 22px rgba(14, 165, 233, 0.1),
    0 14px 36px rgba(0, 0, 0, 0.45);
}

.page-kapitel.kapitel-theme-shk .kap-chip:focus-visible {
  outline-color: rgba(56, 189, 248, 0.55);
}

.page-kapitel.kapitel-theme-shk .kap-marcel-hero-card {
  border-color: rgba(56, 189, 248, 0.22);
  background: linear-gradient(180deg, rgba(24, 36, 48, 0.92) 0%, rgba(14, 12, 14, 0.98) 100%);
}

.page-kapitel.kapitel-theme-shk .kap-marcel-hero-card:hover {
  border-color: rgba(251, 146, 60, 0.35);
  box-shadow:
    0 1px 0 rgba(224, 242, 254, 0.08) inset,
    0 0 28px rgba(14, 165, 233, 0.08),
    0 26px 56px rgba(0, 0, 0, 0.55);
}

.page-kapitel.kapitel-theme-shk .kap-slice--a {
  background: linear-gradient(168deg, #1e3a5f 0%, #3a1810 42%, #0c4a6e 100%);
}

.page-kapitel.kapitel-theme-shk .kap-slice--b {
  background: linear-gradient(172deg, #0c2d42 0%, #5c1f0a 40%, #164e63 100%);
}

.page-kapitel.kapitel-theme-shk .kap-visual-panel {
  border-color: rgba(125, 211, 252, 0.35);
  background: linear-gradient(118deg, rgba(180, 83, 9, 0.45) 0%, rgba(14, 116, 144, 0.5) 50%, rgba(30, 58, 95, 0.75) 100%);
}

.page-kapitel.kapitel-theme-shk .kap-visual-panel svg,
.page-kapitel.kapitel-theme-shk .kap-visual-panel i {
  color: rgba(56, 189, 248, 0.32);
}

.page-kapitel.kapitel-theme-shk .btn-primary {
  background: linear-gradient(118deg, #c2410c, #f97316 38%, #0ea5e9 62%, #0369a1) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 10px 28px rgba(0, 0, 0, 0.38) !important;
}

/* ─── Seite Unsere Geschichte: eisig-blau, helle Slices (nur kapitel-theme-geschichte) ─── */
.page-kapitel.kapitel-theme-geschichte.theme-subpage-dunkel {
  --subpage-glow-a: rgba(125, 211, 252, 0.35);
  --subpage-glow-b: rgba(224, 242, 254, 0.2);
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(56, 189, 248, 0.2) 0%, transparent 55%),
    radial-gradient(ellipse 100% 70% at 100% 30%, rgba(147, 197, 253, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #0a1628 0%, #0f1e35 12%, #e2e8f0 32%, #f1f5f9 100%);
}

.page-kapitel.kapitel-theme-geschichte .kap-hero-shell {
  background: linear-gradient(155deg, #0a1628 0%, #0f2344 32%, #1a3a5c 58%, #0c1929 100%);
  box-shadow:
    inset 0 0 min(100vw, 200px) rgba(56, 189, 248, 0.1),
    inset 0 -90px 120px rgba(15, 23, 42, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-kapitel.kapitel-theme-geschichte .kap-hero-photo {
  background:
    radial-gradient(ellipse 85% 60% at 30% 25%, rgba(125, 211, 252, 0.35) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 80% 70%, rgba(56, 189, 248, 0.2) 0%, transparent 48%),
    linear-gradient(160deg, #0f1e3d 0%, #1a3652 40%, #0a1628 100%);
}

.page-kapitel.kapitel-theme-geschichte .kap-hero-overlay {
  background:
    linear-gradient(185deg, rgba(8, 20, 40, 0.5) 0%, rgba(15, 30, 55, 0.32) 45%, rgba(10, 24, 48, 0.5) 100%),
    radial-gradient(ellipse 100% 55% at 70% 10%, rgba(224, 242, 254, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(14, 165, 233, 0.12) 0%, transparent 50%);
}

.page-kapitel.kapitel-theme-geschichte .kap-hero-label {
  border-color: rgba(125, 211, 252, 0.35);
  background: linear-gradient(165deg, rgba(12, 74, 110, 0.55) 0%, rgba(15, 23, 42, 0.75) 100%);
  color: rgba(224, 242, 254, 0.95);
}

.page-kapitel.kapitel-theme-geschichte .kap-chip {
  border-color: rgba(125, 211, 252, 0.28);
  background: linear-gradient(165deg, rgba(20, 45, 80, 0.92) 0%, rgba(8, 20, 40, 0.96) 100%);
  color: rgba(241, 245, 249, 0.95);
}

.page-kapitel.kapitel-theme-geschichte .kap-chip:hover,
.page-kapitel.kapitel-theme-geschichte .kap-chip:focus-visible {
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.15);
}

.page-kapitel.kapitel-theme-geschichte .kap-slice--a {
  background: linear-gradient(180deg, #e8f0f8 0%, #f1f5f9 48%, #e2e8f0 100%);
}

.page-kapitel.kapitel-theme-geschichte .kap-slice--b {
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f6 50%, #e2e8f0 100%);
}

.page-kapitel.kapitel-theme-geschichte .kap-slice::before {
  opacity: 0.4;
  background: radial-gradient(ellipse 70% 45% at 20% 30%, rgba(14, 165, 233, 0.06) 0%, transparent 50%);
}

.page-kapitel.kapitel-theme-geschichte .kap-slice h2,
.page-kapitel.kapitel-theme-geschichte .kap-slice#firmenfilm h2 {
  color: #0f172a;
}

.page-kapitel.kapitel-theme-geschichte .kap-slice p,
.page-kapitel.kapitel-theme-geschichte .kap-slice#firmenfilm p,
.page-kapitel.kapitel-theme-geschichte .kap-slice#firmenfilm .kap-kicker {
  color: #334155;
}

.page-kapitel.kapitel-theme-geschichte .kap-kicker {
  color: #475569;
}

.page-kapitel.kapitel-theme-geschichte .kap-visual-pill,
.page-kapitel.kapitel-theme-geschichte .kap-visual-pill--hint {
  color: #334155;
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(15, 23, 42, 0.12);
}

.page-kapitel.kapitel-theme-geschichte .kap-visual-panel {
  border-color: rgba(14, 165, 233, 0.25);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.85) 0%, rgba(226, 232, 240, 0.9) 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.page-kapitel.kapitel-theme-geschichte .kap-visual-panel i,
.page-kapitel.kapitel-theme-geschichte .kap-visual-panel svg {
  color: rgba(3, 105, 161, 0.35) !important;
  stroke: currentColor;
}

.page-kapitel.kapitel-theme-geschichte .btn-primary {
  background: linear-gradient(135deg, #0369a1, #0ea5e9 50%, #38bdf8) !important;
  border: 1px solid rgba(14, 165, 233, 0.35) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 24px rgba(2, 132, 199, 0.25) !important;
  color: #f8fafc !important;
}

/* Unsere Geschichte: klare blaue CTA-Hierarchie im Abschlussbereich */
.page-kapitel.kapitel-theme-geschichte #kontakt-kapitel .btn-primary,
.page-kapitel.kapitel-theme-geschichte #kontakt-kapitel .btn-outline {
  background: linear-gradient(135deg, #0369a1, #0ea5e9 50%, #38bdf8) !important;
  color: #ffffff !important;
}

.page-kapitel.kapitel-theme-geschichte #kontakt-kapitel .btn-primary {
  border: 1px solid rgba(14, 165, 233, 0.35) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.2) inset, 0 10px 24px rgba(2, 132, 199, 0.25) !important;
}

.page-kapitel.kapitel-theme-geschichte #kontakt-kapitel .btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  box-shadow: none !important;
}

.page-kapitel.kapitel-theme-geschichte #kontakt-kapitel .btn-primary:hover,
.page-kapitel.kapitel-theme-geschichte #kontakt-kapitel .btn-outline:hover {
  filter: brightness(0.93);
}

@media (max-width: 767px) {
  /* Nur der lange Fließtext in "Unsere Geschichte" etwas kleiner */
  .page-kapitel.kapitel-theme-geschichte #kap-geschichte-gruendung .kap-reveal--text > p.mb-4,
  .page-kapitel.kapitel-theme-geschichte #kap-geschichte-gruendung .kap-reveal--text > p.mb-0,
  .page-kapitel.kapitel-theme-geschichte #kap-geschichte-heute .kap-reveal--text > p.mb-4,
  .page-kapitel.kapitel-theme-geschichte #kap-geschichte-heute .kap-reveal--text > p.mb-0 {
    font-size: 0.82rem !important;
    line-height: 1.5 !important;
  }
}

/* --- Premium-Handwerk-Look auf allen Unterseiten, je Theme eingefärbt --- */
.page-kapitel {
  --kap-premium-glow: rgba(125, 211, 252, 0.22);
  --kap-premium-glow-soft: rgba(56, 189, 248, 0.14);
  --kap-premium-line: rgba(148, 163, 184, 0.28);
  --kap-premium-badge-a: rgba(2, 132, 199, 0.24);
  --kap-premium-badge-b: rgba(56, 189, 248, 0.14);
  --kap-visual-closeup-image: url("https://images.unsplash.com/photo-1590698933947-a202b069a861?auto=format&fit=crop&w=1400&q=80");
  --kap-visual-hover-image: url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?auto=format&fit=crop&w=1400&q=80");
}

.page-kapitel.kapitel-theme-sanierung {
  --kap-premium-glow: rgba(251, 146, 60, 0.2);
  --kap-premium-glow-soft: rgba(251, 191, 36, 0.14);
  --kap-premium-line: rgba(253, 186, 116, 0.3);
  --kap-premium-badge-a: rgba(180, 83, 9, 0.26);
  --kap-premium-badge-b: rgba(251, 146, 60, 0.14);
  --kap-visual-closeup-image: url("https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1400&q=80");
  --kap-visual-hover-image: url("https://images.unsplash.com/photo-1489515217757-5fd1be406fef?auto=format&fit=crop&w=1400&q=80");
}

.page-kapitel.kapitel-theme-shk {
  --kap-premium-glow: rgba(56, 189, 248, 0.22);
  --kap-premium-glow-soft: rgba(14, 165, 233, 0.14);
  --kap-premium-line: rgba(125, 211, 252, 0.32);
  --kap-premium-badge-a: rgba(14, 116, 144, 0.26);
  --kap-premium-badge-b: rgba(249, 115, 22, 0.14);
  --kap-visual-closeup-image: url("https://images.unsplash.com/photo-1585704032915-c3400ca199e7?auto=format&fit=crop&w=1400&q=80");
  --kap-visual-hover-image: url("https://images.unsplash.com/photo-1621905252507-b35492cc74b4?auto=format&fit=crop&w=1400&q=80");
}

.page-kapitel.kapitel-theme-geschichte {
  --kap-premium-glow: rgba(56, 189, 248, 0.16);
  --kap-premium-glow-soft: rgba(125, 211, 252, 0.1);
  --kap-premium-line: rgba(71, 85, 105, 0.24);
  --kap-premium-badge-a: rgba(2, 132, 199, 0.18);
  --kap-premium-badge-b: rgba(125, 211, 252, 0.12);
  --kap-visual-closeup-image: url("https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=1400&q=80");
  --kap-visual-hover-image: url("https://images.unsplash.com/photo-1600880292203-757bb62b4baf?auto=format&fit=crop&w=1400&q=80");
}

/* Subpage-specific visual pairs (closeup + hover view) */
.page-kapitel.service-page-abbruch-entruempelung {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/abbruch-entruempelung-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/abbruch-entruempelung-hover/1600/1200");
}
.page-kapitel.service-page-abdichtungsarbeiten {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/abdichtungsarbeiten-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/abdichtungsarbeiten-hover/1600/1200");
}
.page-kapitel.service-page-abdichtungen {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/abdichtungen-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/abdichtungen-hover/1600/1200");
}
.page-kapitel.service-page-badsanierung-komplett {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/badsanierung-komplett-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/badsanierung-komplett-hover/1600/1200");
}
.page-kapitel.service-page-dachfenster-einbau {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/dachfenster-einbau-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/dachfenster-einbau-hover/1600/1200");
}
.page-kapitel.service-page-fenster-tuerenmontage {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/fenster-tuerenmontage-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/fenster-tuerenmontage-hover/1600/1200");
}
.page-kapitel.service-page-flachdacharbeiten {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/flachdacharbeiten-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/flachdacharbeiten-hover/1600/1200");
}
.page-kapitel.service-page-fliesen-vinyl-laminat {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/fliesen-vinyl-laminat-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/fliesen-vinyl-laminat-hover/1600/1200");
}
.page-kapitel.service-page-fundamentarbeiten {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/fundamentarbeiten-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/fundamentarbeiten-hover/1600/1200");
}
.page-kapitel.service-page-garten-landschaftsbau {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/garten-landschaftsbau-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/garten-landschaftsbau-hover/1600/1200");
}
.page-kapitel.service-page-heizungsbau-modernisierung {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/heizungsbau-modernisierung-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/heizungsbau-modernisierung-hover/1600/1200");
}
.page-kapitel.service-page-holzarbeiten {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/holzarbeiten-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/holzarbeiten-hover/1600/1200");
}
.page-kapitel.service-page-kanalbau-entwaesserung {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/kanalbau-entwaesserung-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/kanalbau-entwaesserung-hover/1600/1200");
}
.page-kapitel.service-page-kernbohrungen {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/kernbohrungen-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/kernbohrungen-hover/1600/1200");
}
.page-kapitel.service-page-lueftungsanlagen {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/lueftungsanlagen-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/lueftungsanlagen-hover/1600/1200");
}
.page-kapitel.service-page-pflaster-baggerarbeiten {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/pflaster-baggerarbeiten-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/pflaster-baggerarbeiten-hover/1600/1200");
}
.page-kapitel.service-page-raumausstattung {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/raumausstattung-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/raumausstattung-hover/1600/1200");
}
.page-kapitel.service-page-schieferarbeiten {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/schieferarbeiten-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/schieferarbeiten-hover/1600/1200");
}
.page-kapitel.service-page-solar-erneuerbare-energien {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/solar-erneuerbare-energien-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/solar-erneuerbare-energien-hover/1600/1200");
}
.page-kapitel.service-page-spenglerarbeiten {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/spenglerarbeiten-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/spenglerarbeiten-hover/1600/1200");
}
.page-kapitel.service-page-steildacharbeiten {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/steildacharbeiten-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/steildacharbeiten-hover/1600/1200");
}
.page-kapitel.service-page-trockenbau {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/trockenbau-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/trockenbau-hover/1600/1200");
}
.page-kapitel.service-page-unsere-geschichte {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/unsere-geschichte-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/unsere-geschichte-hover/1600/1200");
}
.page-kapitel.service-page-wartung-instandhaltung {
  --kap-visual-closeup-image: url("https://picsum.photos/seed/wartung-instandhaltung-closeup/1600/1200");
  --kap-visual-hover-image: url("https://picsum.photos/seed/wartung-instandhaltung-hover/1600/1200");
}

.page-kapitel .kap-hero-title,
.page-kapitel .kap-slice h2 {
  text-shadow: 0 2px 12px rgba(2, 6, 23, 0.28), 0 0 22px var(--kap-premium-glow-soft);
}

.page-kapitel .kap-hero-label {
  background: linear-gradient(145deg, var(--kap-premium-badge-a), var(--kap-premium-badge-b)) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.13) inset, 0 10px 26px color-mix(in srgb, var(--kap-premium-glow) 55%, transparent);
}

.page-kapitel .kap-chip {
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  border: 1px solid var(--kap-premium-line);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-kapitel .kap-chip:hover,
.page-kapitel .kap-chip:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--kap-premium-line) 55%, #fff 45%);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--kap-premium-glow) 40%, transparent) inset, 0 10px 22px var(--kap-premium-glow-soft);
}

.page-kapitel .kap-marcel-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--kap-premium-line) 45%, transparent) inset,
    0 24px 52px rgba(2, 6, 23, 0.55),
    0 0 38px var(--kap-premium-glow-soft);
}

.page-kapitel .kap-marcel-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 18%, var(--kap-premium-glow) 0%, transparent 38%),
    radial-gradient(circle at 78% 74%, var(--kap-premium-glow-soft) 0%, transparent 42%);
}

.page-kapitel .kap-marcel-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.1;
  background-image: radial-gradient(rgba(224, 242, 254, 0.85) 0.8px, transparent 0.8px);
  background-size: 12px 12px;
}

.page-kapitel .kap-marcel-hero-card__hint,
.page-kapitel .kap-marcel-hero-card__cta {
  margin-top: 0.42rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: center;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid color-mix(in srgb, var(--kap-premium-line) 70%, #fff 30%);
  background: linear-gradient(135deg, color-mix(in srgb, var(--kap-premium-badge-a) 85%, transparent), rgba(30, 41, 59, 0.62));
  color: #e2e8f0;
}

.page-kapitel .kap-marcel-hero-card__hint::after {
  content: "→";
  font-size: 0.9em;
  opacity: 0.92;
}

.page-kapitel .kap-marcel-hero-card__cta i,
.page-kapitel .kap-marcel-hero-card__cta svg {
  width: 0.85rem;
  height: 0.85rem;
}

.page-kapitel .kap-visual-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  box-shadow: 0 18px 44px rgba(2, 6, 23, 0.5), 0 0 28px var(--kap-premium-glow-soft);
}
.page-kapitel .kap-visual-panel::before,
.page-kapitel .kap-visual-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: opacity 0.45s ease;
}
.page-kapitel .kap-visual-panel::before {
  background-image:
    linear-gradient(165deg, rgba(0, 0, 0, 0.14), rgba(2, 6, 23, 0.42)),
    var(--kap-visual-closeup-image);
  opacity: 1;
}
.page-kapitel .kap-visual-panel::after {
  background-image:
    linear-gradient(165deg, rgba(2, 6, 23, 0.15), rgba(0, 0, 0, 0.44)),
    var(--kap-visual-hover-image);
  opacity: 0;
}
.page-kapitel .kap-visual-figure:hover .kap-visual-panel::after,
.page-kapitel .kap-visual-figure:focus-within .kap-visual-panel::after {
  opacity: 1;
}
.page-kapitel .kap-visual-figure:hover .kap-visual-panel::before,
.page-kapitel .kap-visual-figure:focus-within .kap-visual-panel::before {
  opacity: 0;
}
.page-kapitel .kap-visual-panel svg,
.page-kapitel .kap-visual-panel i {
  position: relative;
  z-index: 2;
  opacity: 0.14;
}

.page-kapitel .kap-slice {
  padding-top: clamp(5rem, 11vh, 7.5rem) !important;
  padding-bottom: clamp(5rem, 11vh, 7.5rem) !important;
}

/* Subpages entschlacken: Mobile kompakter, Hero-Karte ausblenden */
@media (max-width: 767px) {
  .page-kapitel .kap-hero-intro-grid {
    grid-template-columns: 1fr !important;
  }
  .page-kapitel .kap-marcel-hero-card {
    display: none !important;
  }
}
.page-kapitel .kap-hero-title {
  font-size: clamp(1.7rem, 4.1vw, 3.15rem) !important;
  line-height: 1.04 !important;
}
.page-kapitel .kap-hero-lead {
  font-size: clamp(0.84rem, 1.5vw, 1.02rem) !important;
  line-height: 1.5 !important;
}
.page-kapitel .kap-chip {
  font-size: clamp(0.66rem, 1.2vw, 0.8rem) !important;
  padding: 0.34rem 0.74rem !important;
}

/* Geschichte: Dual-Image Hover (wie Dachziegel-Seite) */
.geschichte-visual-figure {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.geschichte-visual-legend {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.geschichte-visual-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(244, 244, 245, 0.88);
}
.geschichte-visual-pill--hint {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: rgba(161, 161, 170, 0.8);
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}
.geschichte-visual-dual {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  aspect-ratio: 4 / 3;
  max-height: min(70vh, 420px);
  cursor: pointer;
  outline: none;
}
.geschichte-visual-dual:focus-visible {
  box-shadow:
    0 0 0 2px rgba(3, 3, 5, 0.95),
    0 0 0 4px rgba(212, 212, 216, 0.45),
    0 20px 50px rgba(0, 0, 0, 0.4);
}
.geschichte-visual-dual .geschichte-muster,
.geschichte-visual-dual .geschichte-roof-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.geschichte-visual-dual .geschichte-roof-layer {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.geschichte-visual-dual:hover .geschichte-roof-layer,
.geschichte-visual-dual:focus-within .geschichte-roof-layer {
  opacity: 1;
}
@media (prefers-reduced-motion: reduce) {
  .geschichte-visual-dual .geschichte-roof-layer {
    transition-duration: 0.01ms;
  }
}
