﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,400;0,7..72,600;0,7..72,700;1,7..72,400&display=swap');

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

  :root {
    --royal-blue: #1e40af;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --orange: #D4AF37;
    --dark: #111827;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-900: #111827;
    --white: #ffffff;
    --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  }

  html {
    scroll-behavior: smooth;
    /* Kein natives CSS-Snap — JS (kapitel-seite.js) übernimmt das gesamte Snapping.
       @media (hover:hover) and (pointer:fine) matched auch Laptops mit Trackpad,
       daher KEIN bedingter Snap-Fallback. */
    scroll-snap-type: none;
    scroll-padding-top: max(5.75rem, calc(env(safe-area-inset-top, 0px) + 5rem));
    scroll-padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }

  /* Anker-Ziele hinter fixer Navigation */
  #haus-explorer,
  #leistungen,
  #kontakt,
  #unsere-team,
  #familie-geschichte,
  #leistung-sanierung,
  #leistung-shk,
  #leistung-dach {
    /* Snap/Anker etwas höher im Viewport (~10 % weniger Abstand als zuvor 92px) */
    scroll-margin-top: max(2.25rem, calc(92px - 10vh));
  }
  /* Kontakt+Fuß: Anker muss klar unter fixer Navi landen (nicht abgeschnitten) */
  #kontakt.kontakt-landing {
    scroll-margin-top: max(0.5rem, calc(6.25rem + env(safe-area-inset-top, 0px)));
  }

  .person-contact-card {
    border-radius: 14px;
    transition: background 0.2s ease;
  }
  .person-contact-card:hover {
    background: rgba(37, 99, 235, 0.06);
  }

  /* Volle Viewport-Höhe + Snap-Ziele (Hauptseite) */
  .snap-section {
    /* Einheitlich „start" – verhindert Konflikt mit kapitel-seite.css und JS-Index-Mathematik. */
    scroll-snap-align: start;
    scroll-margin-top: 0;
    min-height: 100vh;
    min-height: 100dvh;
    box-sizing: border-box;
  }
  .snap-section.snap-section--kontakt {
    scroll-snap-align: start;
    padding-bottom: max(0.25rem, env(safe-area-inset-bottom, 0px));
  }

  /* Barrierefrei: Skip-Link, sichtbar bei Tastaturfokus */
  .skip-link {
    position: fixed;
    top: 0.75rem;
    left: max(0.75rem, env(safe-area-inset-left, 0px));
    z-index: 10050;
    padding: 0.5rem 0.9rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    text-decoration: none;
    background: #1e3a8a;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.2);
    transform: translateY(-200%);
    transition: transform 0.2s ease;
  }
  .skip-link:focus {
    transform: translateY(0);
    top: max(0.75rem, env(safe-area-inset-top, 0px));
  }
  .skip-link:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
  }

  /* Fokus vom Skip-Link: kein riesiger Ring ums volle Viewport-Scroll-Element */
  #kap-fullflip-scroller:focus {
    outline: none;
  }

  .nav-inner-safe {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
  }

  .mobile-menu-panel {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.1);
    max-height: min(70vh, calc(100vh - 3.5rem - env(safe-area-inset-top, 0px)));
    max-height: min(70vh, calc(100dvh - 3.5rem - env(safe-area-inset-top, 0px)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .mobile-menu-panel .mobile-nav-link,
  .mobile-menu-panel .mobile-nav-cta,
  .mobile-menu-panel .nav-call-row {
    display: flex;
    align-items: center;
  }
  .mobile-menu-panel .mobile-nav-list {
    gap: 0.15rem;
  }
  .mobile-menu-panel .mobile-nav-link {
    border-radius: 0.5rem;
    padding: 0.5rem 0.35rem;
  }
  .mobile-menu-panel .mobile-nav-link:focus-visible,
  .mobile-menu-panel .mobile-nav-cta:focus-visible,
  .mobile-menu-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
  }

/* Fallback: Mobile-Menü immer sichtbar, wenn Klasse gesetzt ist */
body.is-mobile-nav-open #mobile-menu,
body.is-mobile-nav-open #primary-menu-mobile {
  display: block !important;
  position: relative;
  z-index: 10060;
  pointer-events: auto !important;
}
body.is-mobile-nav-open #mobile-menu *,
body.is-mobile-nav-open #primary-menu-mobile * {
  pointer-events: auto !important;
}

  body {
    font-family: -apple-system, 'Inter', 'SF Pro Display', 'SF Pro Text', system-ui, BlinkMacSystemFont, sans-serif;
    background-color: #e2e8f0;
    background-image:
      linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.18) 22%, transparent 48%),
      radial-gradient(ellipse 110% 65% at 50% -12%, rgba(99, 102, 241, 0.11), transparent 54%),
      radial-gradient(ellipse 58% 48% at 100% 32%, rgba(59, 130, 246, 0.08), transparent 50%),
      radial-gradient(ellipse 52% 42% at 0% 72%, rgba(212, 175, 55, 0.055), transparent 46%),
      linear-gradient(185deg, #f1f4fb 0%, #eef2f8 32%, #e8ecf4 58%, #dfe6f0 82%, #d5dde8 100%);
    background-attachment: scroll;
    color: var(--dark);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }

  ::-webkit-scrollbar { width: 8px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background: rgba(30,64,175,0.15); border-radius: 4px; }
  ::-webkit-scrollbar-thumb:hover { background: rgba(30,64,175,0.3); }

  .gradient-text {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .gradient-text--on-dark {
    background: linear-gradient(135deg, #93c5fd 0%, #e0f2fe 45%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .premium-card {
    background: rgba(255, 255, 255, 0.55);
    border-radius: 28px;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.65) inset,
      0 1px 2px rgba(0, 0, 0, 0.04),
      0 12px 40px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(20px) saturate(1.6);
    -webkit-backdrop-filter: blur(20px) saturate(1.6);
    transition: all 0.5s var(--ease);
  }
  .premium-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.72);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 4px 12px rgba(0, 0, 0, 0.05),
      0 22px 50px rgba(30, 64, 175, 0.1);
    border-color: rgba(255, 255, 255, 0.65);
  }

  .btn-primary {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    color: white;
    border: none;
    border-radius: 980px;
    padding: 14px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-primary:hover {
    transform: scale(1.04);
    box-shadow: 0 12px 32px -4px rgba(30,64,175,0.35);
    filter: brightness(1.08);
  }
  .btn-primary:active { transform: scale(0.98); }
  .btn-primary span { position: relative; z-index: 1; }

  .btn-outline {
    background: transparent;
    color: var(--royal-blue);
    border: 1.5px solid rgba(30,64,175,0.2);
    border-radius: 980px;
    padding: 13px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .btn-outline:hover {
    background: rgba(30,64,175,0.04);
    border-color: rgba(30,64,175,0.4);
    transform: scale(1.04);
  }

  .btn-call {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    border-radius: 980px;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.01em;
  }
  .btn-call:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 24px -4px rgba(5,150,105,0.4);
    filter: brightness(1.08);
  }

  .nav-fixed {
    position: fixed;
    top: 0.25rem;
    left: 0;
    right: 0;
    z-index: 1200;
    overflow: visible;
    padding-top: max(0px, env(safe-area-inset-top, 0px));
    background: rgba(255,255,255,0.72);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    transition: background 0.2s ease-out, box-shadow 0.22s ease-out, border-color 0.2s ease;
  }
  .nav-fixed.scrolled {
    box-shadow: 0 0.5px 0 rgba(0,0,0,0.04), 0 4px 24px rgba(0,0,0,0.06);
  }
  .nav-fixed a:not(.btn-primary):not(.btn-call):not(.site-nav-pill) {
    transition: color 0.12s ease, opacity 0.12s ease;
  }

  /* Hauptnavigation: klar getrennte, prägnante Pillen */
  .site-nav-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.525rem 1rem;
    font-size: 0.853rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: #0f172a;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 23, 42, 0.11);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.95) inset,
      0 1px 2px rgba(15, 23, 42, 0.06),
      0 2px 10px rgba(15, 23, 42, 0.04);
    backdrop-filter: blur(12px) saturate(1.5);
    -webkit-backdrop-filter: blur(12px) saturate(1.5);
    transition:
      color 0.18s ease,
      background 0.18s ease,
      border-color 0.18s ease,
      box-shadow 0.2s ease,
      transform 0.15s ease;
  }
  .site-nav-pill:hover {
    color: #1e3a8a;
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow:
      0 1px 0 #fff inset,
      0 2px 12px rgba(37, 99, 235, 0.14),
      0 0 0 1px rgba(37, 99, 235, 0.06);
    transform: translateY(-1px);
  }
  .nav-fixed div.items-center.gap-2 > div.w-px.h-5 {
    margin-left: 0.45rem !important;
    margin-right: 0.45rem !important;
    align-self: stretch;
    min-height: 1.84rem;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.14), transparent) !important;
    border-radius: 2px;
  }
  .nav-fixed .btn-primary,
  .nav-fixed .btn-call {
    transition: transform 0.18s var(--ease-out), box-shadow 0.2s ease, filter 0.18s ease;
  }

  /* Jetzt anrufen: unter dem Button nach unten, gleiche Breite & Farbe wie btn-call */
  .nav-call-stack {
    position: relative;
    align-self: flex-start;
    min-width: 10.75rem;
    max-width: min(100vw - 2rem, 18rem);
    border-radius: 980px;
    overflow: visible;
    z-index: 1200;
  }
  .nav-call-stack .nav-call-trigger {
    width: 100%;
    justify-content: center;
    font: inherit;
    border-radius: 980px;
    margin: 0;
    box-shadow: 0 8px 22px -4px rgba(5, 150, 105, 0.45);
  }
  .nav-call-stack.is-open .nav-call-trigger {
    border-radius: 16px 16px 0 0;
    box-shadow: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
  /* Klappmenü: direkt unter dem Button, optisch eine Fläche mit „Jetzt anrufen“ */
  .nav-call-accordion {
    position: fixed;
    left: var(--nav-call-left, 0px);
    top: var(--nav-call-top, 4.5rem);
    width: var(--nav-call-width, 10.75rem);
    max-width: min(100vw - 1.25rem, 18rem);
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.12s ease-out, opacity 0.1s ease-out;
    opacity: 0;
    background: linear-gradient(180deg, #059669 0%, #0d9488 50%, #10b981 100%);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
    z-index: 1199;
    pointer-events: none;
    margin-top: -1px;
  }
  .nav-call-stack.is-open .nav-call-accordion {
    grid-template-rows: 1fr;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-call-accordion-inner {
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  .nav-call-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
    padding: 0.62rem 1rem;
    color: #fff;
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    border-top: 1px solid rgba(255, 255, 255, 0.32);
    transition: background 0.15s ease;
  }
  .nav-call-row--first,
  .nav-call-accordion-inner .nav-call-row:first-child {
    border-top: none;
    padding-top: 0.58rem;
  }
  .nav-call-row:hover {
    background: rgba(0, 0, 0, 0.14);
  }
  .nav-call-row .nav-call-num {
    font-size: 0.76rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
  }
  .nav-call-row:last-child {
    border-radius: 0 0 14px 14px;
    padding-bottom: 0.7rem;
  }

  .nav-call-mobile-details {
    margin-top: 0.35rem;
    border-radius: 980px;
    overflow: hidden;
    box-shadow: 0 6px 18px -4px rgba(5, 150, 105, 0.35);
  }
  .nav-call-mobile-details[open] {
    border-radius: 16px;
  }
  .nav-call-mobile-details > summary {
    list-style: none;
    cursor: pointer;
  }
  .nav-call-mobile-details > summary::-webkit-details-marker {
    display: none;
  }
  .nav-call-mobile-summary {
    width: 100%;
    border-radius: 980px;
    justify-content: center;
  }
  .nav-call-mobile-details[open] .nav-call-mobile-summary {
    border-radius: 16px 16px 0 0;
  }
  .nav-call-mobile-accordion {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    background: linear-gradient(180deg, #059669 0%, #0d9488 55%, #10b981 100%);
  }
  .nav-call-mobile-details[open] .nav-call-mobile-accordion {
    grid-template-rows: 1fr;
  }

  .fab-call-wrap {
    display: none;
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    flex-direction: column;
    align-items: flex-end;
  }
  .fab-call-stack {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    width: 12.75rem;
    max-width: calc(100vw - 3rem);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(5, 150, 105, 0.42);
  }
  .fab-call-accordion {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.32, 0.72, 0, 1);
    background: linear-gradient(180deg, #10b981 0%, #0d9488 45%, #059669 100%);
  }
  .fab-call-stack.is-open .fab-call-accordion {
    grid-template-rows: 1fr;
  }
  .fab-call-stack .fab-call {
    align-self: center;
    margin-top: 0;
    flex-shrink: 0;
  }
  .fab-call-stack .nav-call-row:first-child {
    border-top: none;
    padding-top: 0.55rem;
    border-radius: 14px 14px 0 0;
  }

  /* FAB „Jetzt anrufen“: auf Mobile per Navi (Menü) – kein zweiter Button unten rechts */

  /* Team */
  .team-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: linear-gradient(145deg, #1e40af, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 8px 24px -4px rgba(30,64,175,0.3);
    letter-spacing: -0.02em;
  }
  .team-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 980px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.02em;
  }

  /* Team-Karten: Farben pro Person */
  .team-card-damian .premium-card {
    background: linear-gradient(165deg, rgba(255, 247, 237, 0.55), rgba(255, 255, 255, 0.72));
    border-color: rgba(234, 88, 12, 0.22);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 10px 36px rgba(234, 88, 12, 0.08);
  }
  .team-card-damian .team-avatar {
    background: linear-gradient(145deg, #c2410c, #ea580c) !important;
  }
  .team-card-marcel .premium-card {
    background: linear-gradient(165deg, rgba(38, 38, 38, 0.06), rgba(255, 255, 255, 0.72));
    border-color: rgba(23, 23, 23, 0.12);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 10px 36px rgba(15, 23, 42, 0.08);
  }
  .team-card-marcel .team-avatar {
    background: linear-gradient(145deg, #0a0a0a, #3f3f46) !important;
  }
  .team-card-marcel .marcel-team-mp.team-avatar {
    width: 2.9rem;
    height: 2.9rem;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    border-radius: 50%;
    background: linear-gradient(145deg, #0a0a0a, #3f3f46) !important;
    color: #f4f4f5;
    box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.28);
    border: 1px solid rgba(63, 63, 70, 0.3);
  }
  .team-card-pascal .premium-card {
    background: linear-gradient(125deg, rgba(254, 215, 170, 0.28), rgba(186, 230, 253, 0.38), rgba(255, 255, 255, 0.68));
    border-color: rgba(14, 165, 233, 0.22);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.78) inset,
      0 10px 36px rgba(14, 165, 233, 0.07);
  }
  .team-card-pascal .team-avatar {
    background: linear-gradient(118deg, #c2410c, #f97316 42%, #0ea5e9 68%, #0369a1) !important;
  }

  .team-card-inner {
    position: relative;
    z-index: 2;
    overflow: hidden;
  }

  /* Team: stärkerer Hover, Licht folgt der Maus, Cursor-FX (s. script.js) */
  #unsere-team .team-member-link {
    position: relative;
    cursor: pointer;
    border-radius: 28px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #unsere-team .team-member-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(
      420px circle at var(--team-cx, 50%) var(--team-cy, 42%),
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.12) 32%,
      transparent 62%
    );
    mix-blend-mode: overlay;
  }
  #unsere-team .team-member-link:hover::before {
    opacity: 0.85;
  }
  #unsere-team .team-member-link:hover {
    transform: translateY(-4px);
  }
  #unsere-team .team-member-link:active {
    transform: translateY(-1px) scale(0.992);
  }
  #unsere-team .team-member-link .team-card-inner {
    transition:
      transform 0.5s cubic-bezier(0.22, 1, 0.36, 1),
      box-shadow 0.45s ease,
      border-color 0.35s ease;
  }
  #unsere-team .team-member-link:hover .team-card-inner {
    transform: translateY(-10px) scale(1.03);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.85) inset,
      0 26px 64px rgba(15, 23, 42, 0.12),
      0 0 0 1px rgba(59, 130, 246, 0.14),
      0 0 48px rgba(59, 130, 246, 0.08);
  }
  #unsere-team .team-portrait-frame,
  #unsere-team .marcel-team-mp,
  #unsere-team .team-avatar {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  }
  #unsere-team .team-member-link:hover .team-portrait-frame,
  #unsere-team .team-member-link:hover .marcel-team-mp,
  #unsere-team .team-member-link:hover .team-avatar {
    transform: scale(1.04);
  }
  #unsere-team .team-role-badge {
    transition: transform 0.4s ease;
  }
  #unsere-team .team-member-link:hover .team-role-badge {
    transform: translateY(-1px);
  }
  .team-theme-accent {
    display: block;
    height: 4px;
    width: calc(100% + 4rem);
    margin: -2rem -2rem 1.35rem -2rem;
    max-width: none;
    border-radius: 28px 28px 0 0;
  }
  @media (min-width: 768px) {
    .team-theme-accent {
      margin: -2rem -2rem 1.5rem -2rem;
    }
  }
  .team-theme-accent--slate {
    background: linear-gradient(90deg, #27272a, #64748b, #3f3f46);
  }
  .team-theme-accent--amber {
    background: linear-gradient(90deg, #c2410c, #fbbf24, #ea580c);
  }
  .team-theme-accent--shk {
    background: linear-gradient(90deg, #ea580c, #f97316 38%, #0ea5e9 62%, #0369a1);
  }
  #unsere-team .team-card-inner .team-theme-accent {
    width: calc(100% + 1.5rem);
    margin: -0.75rem -0.75rem 0.65rem -0.75rem;
  }
  @media (min-width: 640px) {
    #unsere-team .team-card-inner .team-theme-accent {
      width: calc(100% + 2rem);
      margin: -1rem -1rem 0.8rem -1rem;
    }
  }
  @media (min-width: 768px) {
    #unsere-team .team-card-inner .team-theme-accent {
      width: calc(100% + 2.5rem);
      margin: -1.25rem -1.25rem 0.9rem -1.25rem;
    }
  }
  #unsere-team .team-avatar {
    width: 2.9rem;
    height: 2.9rem;
    font-size: 0.85rem;
  }
  #unsere-team .team-card-marcel .marcel-team-mp.team-avatar {
    width: 2.9rem;
    height: 2.9rem;
    font-size: 0.8rem;
  }
  #unsere-team .team-portrait-frame {
    position: relative;
    width: 100%;
    max-width: 12.5rem;
    margin: 0 auto 0.5rem;
    aspect-ratio: 3 / 4;
    border-radius: 1.05rem;
    overflow: hidden;
    background: linear-gradient(160deg, #fafafa 0%, #e4e4e7 100%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.8) inset,
      0 10px 28px -6px rgba(15, 23, 42, 0.14);
  }
  #unsere-team .team-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 12%;
    display: block;
  }
  #unsere-team .team-portrait-initials-wrap {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
  }
  #unsere-team .team-portrait-initials-wrap.is-visible {
    display: flex;
  }
  #unsere-team .team-portrait-initials {
    font-size: 2.35rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    color: #fff;
  }
  #unsere-team .team-portrait-frame--slate .team-portrait-initials-wrap {
    background: linear-gradient(145deg, #18181b, #3f3f46);
  }
  #unsere-team .team-portrait-frame--amber .team-portrait-initials-wrap {
    background: linear-gradient(145deg, #9a3412, #ea580c);
  }
  #unsere-team .team-portrait-frame--shk .team-portrait-initials-wrap {
    background: linear-gradient(118deg, #b45309, #f97316 38%, #0ea5e9 75%, #0369a1);
  }

  /* Team-Unterseiten: Abschnittshintergrund + Kartenrand */
  .page-person-content--slate {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  }
  .page-person-content--amber {
    background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 12%, #f8fafc 100%);
  }
  .page-person-content--shk {
    background: linear-gradient(185deg, rgba(254, 243, 199, 0.35) 0%, rgba(224, 242, 254, 0.45) 42%, #f8fafc 100%);
  }
  .person-theme-card--slate {
    border-color: rgba(63, 63, 70, 0.18);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.65) inset,
      0 12px 40px rgba(15, 23, 42, 0.08);
  }
  .person-theme-card--amber {
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.65) inset,
      0 12px 40px rgba(234, 88, 12, 0.08);
  }
  .person-theme-card--shk {
    border-color: rgba(14, 165, 233, 0.22);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.7) inset,
      0 12px 40px rgba(14, 165, 233, 0.07);
  }
  .person-aside--slate {
    border-left: 3px solid #52525b;
  }
  .person-aside--amber {
    border-left: 3px solid #d97706;
  }
  .person-aside--shk {
    border-left: 3px solid #0284c7;
  }

  /* Personen-Seiten: UI nah an Subpages/Kapitel-Look */
  .page-person {
    background:
      radial-gradient(ellipse 120% 65% at 50% -12%, rgba(82, 82, 91, 0.18) 0%, transparent 55%),
      radial-gradient(ellipse 85% 55% at 100% 35%, rgba(63, 63, 70, 0.14) 0%, transparent 52%),
      linear-gradient(180deg, #040406 0%, #0a0a0f 38%, #06060a 100%);
    color: #f4f4f5;
  }
  .page-person .nav-fixed {
    background: rgba(10, 10, 12, 0.9) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(20px) saturate(1.3);
    -webkit-backdrop-filter: blur(20px) saturate(1.3);
  }
  .page-person .nav-fixed .site-nav-pill {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f4f4f5;
  }
  .page-person .nav-fixed .site-nav-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
  .page-person .nav-tagline {
    background: linear-gradient(135deg, #e4e4e7 0%, #fafafa 52%, #d4d4d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .page-person .nav-tagline-dot {
    -webkit-text-fill-color: #a1a1aa;
  }

  .page-person section.relative.overflow-hidden {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .page-person .page-person-content {
    background: linear-gradient(180deg, #0b0b10 0%, #111118 100%) !important;
  }
  .page-person .person-theme-card,
  .page-person .person-aside {
    background: linear-gradient(170deg, rgba(34, 34, 40, 0.86), rgba(16, 16, 20, 0.96)) !important;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.08) inset,
      0 18px 48px rgba(2, 6, 23, 0.42);
  }
  .page-person .person-theme-card h2,
  .page-person .person-aside h3 {
    color: #fafafa;
  }
  .page-person .person-theme-card p,
  .page-person .person-aside p {
    color: rgba(228, 228, 231, 0.78) !important;
  }
  .page-person .person-aside a:not(.btn-call):not(.btn-outline) {
    color: #7dd3fc !important;
  }

  .page-person .btn-outline {
    border-color: rgba(255, 255, 255, 0.2);
    color: #f4f4f5;
    background: rgba(255, 255, 255, 0.03);
  }
  .page-person .btn-outline:hover {
    background: rgba(255, 255, 255, 0.08);
  }

  .page-person .page-person-footnote {
    margin: 0 auto 1.1rem;
    width: min(74rem, calc(100% - 3rem));
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(161, 161, 170, 0.95) !important;
    padding-top: 1rem;
    padding-bottom: 1.15rem !important;
  }
  .page-person .page-person-footnote a {
    color: #cbd5e1 !important;
  }

  @media (max-width: 767px) {
    .page-person {
      background:
        linear-gradient(180deg, rgba(120, 68, 16, 0.86) 0%, rgba(84, 48, 12, 0.9) 54%, rgba(64, 36, 10, 0.94) 100%),
        #1a1208 !important;
    }
    .page-person .page-person-content,
    .page-person section.relative.overflow-hidden {
      background: transparent !important;
      border-color: rgba(255, 208, 124, 0.2) !important;
    }
  }

  /* Personen-Seiten: Hero und Profilkarte */
  .page-person .person-hero-wrap {
    max-width: min(78rem, 96vw) !important;
  }
  .page-person .person-hero-card {
    margin: 0;
    flex: 0 0 auto;
    width: min(52vw, 15rem);
    border-radius: 1.2rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(20, 20, 26, 0.92), rgba(8, 8, 12, 0.96));
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.12) inset,
      0 18px 48px rgba(2, 6, 23, 0.45);
  }
  .page-person .person-hero-card__img {
    width: 100%;
    height: 100%;
    min-height: 15.5rem;
    max-height: min(46vh, 24rem);
    aspect-ratio: 5 / 7;
    object-fit: cover;
    object-position: center 18%;
    display: block;
  }
  .page-person .person-hero-copy {
    max-width: min(56rem, 100%);
  }
  @media (min-width: 1024px) {
    .page-person .person-hero-wrap {
      gap: clamp(1.8rem, 3.4vw, 3.1rem) !important;
      align-items: flex-end !important;
    }
    .page-person .person-hero-card {
      width: clamp(15rem, 19vw, 17.5rem);
      border-radius: 1.35rem;
    }
    .page-person .person-hero-card__img {
      min-height: 18rem;
      max-height: min(50vh, 29rem);
    }
    .page-person .person-theme-card {
      border-radius: 1.5rem;
      box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.65) inset,
        0 18px 52px rgba(15, 23, 42, 0.1);
    }
  }

  /* Kontakt: professionelles Zwei-Spalten-Layout */
  .section-kontakt-professional .kontakt-aside-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 24px;
    padding: 1.5rem 1.35rem;
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 10px 36px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
  }
  .kontakt-landing.section-kontakt-professional .kontakt-aside-card.kontakt-glass-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.2);
  }
  .kontakt-landing .kontakt-aside-kicker {
    color: rgba(148, 163, 184, 0.95);
  }
  .kontakt-landing .kontakt-aside-title {
    color: #f8fafc;
  }
  .kontakt-landing .kontakt-aside-lead {
    color: rgba(203, 213, 225, 0.9);
  }
  .kontakt-landing .kontakt-aside-row {
    color: rgba(226, 232, 240, 0.92);
    border-top-color: rgba(255, 255, 255, 0.1);
  }
  .kontakt-landing .kontakt-aside-link {
    color: #7dd3fc;
  }
  .kontakt-landing .kontakt-aside-link:hover {
    color: #bae6fd;
  }
  .kontakt-aside-kicker {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #64748b;
    margin: 0 0 0.35rem;
  }
  .kontakt-aside-title {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #0f172a;
    margin: 0 0 0.65rem;
    line-height: 1.2;
  }
  .kontakt-aside-lead {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.15rem;
  }
  .kontakt-aside-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .kontakt-aside-row {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.45;
    padding: 0.55rem 0;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
  }
  .kontakt-aside-row:first-of-type {
    border-top: none;
    padding-top: 0;
  }
  .kontakt-aside-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.08), rgba(59, 130, 246, 0.12));
    color: #1d4ed8;
  }
  .kontakt-aside-link {
    color: #1d4ed8;
    font-weight: 600;
    word-break: break-word;
  }
  .kontakt-aside-link:hover {
    color: #1e3a8a;
  }
  .kontakt-trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .kontakt-trust-item {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(15, 23, 42, 0.06);
  }
  .kontakt-form-shell {
    border-radius: 24px;
  }

  .form-input {
    width: 100%;
    padding: 16px 20px;
    border: 1.5px solid rgba(0,0,0,0.08);
    border-radius: 16px;
    background: var(--gray-50);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s var(--ease);
    outline: none;
    color: var(--dark);
  }
  .form-input:focus {
    border-color: var(--blue-500);
    background: white;
    box-shadow: 0 0 0 4px rgba(59,130,246,0.08);
  }
  .form-input.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239,68,68,0.08);
  }
  .form-input.success {
    border-color: #10b981;
  }
  .form-label {
    display: block;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
  }
  textarea.form-input {
    resize: vertical;
    min-height: 140px;
  }
  select.form-input,
  select.form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.1rem;
    padding-right: 2.75rem;
  }

  .success-msg {
    display: none;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    animation: fadeInUp 0.5s var(--ease);
  }
  .success-msg.show { display: block; }
  @keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .reveal {
    opacity: 0;
  transform: translate3d(0, 32px, 0) translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
    transition: opacity 0.78s cubic-bezier(0.16, 1, 0.3, 1), transform 0.78s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.visible {
    opacity: 1;
  transform: translate3d(0, 0, 0) translateZ(0);
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal {
      transition-duration: 0.35s;
    }
  }
  #familie-geschichte .geschichte-bento-card.reveal {
    transition-delay: 0.12s;
  }

  /* Floating call (mobile): Button + Panel in .fab-call-wrap */
  .fab-call {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(5,150,105,0.4);
    transition: all 0.4s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .fab-call:hover { transform: scale(1.1); }
  .fab-call:active { transform: scale(0.95); }

  /* Section divider */
  .section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 980px;
    background: rgba(255, 255, 255, 0.45);
    color: var(--royal-blue);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.55);
    margin-bottom: 20px;
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 4px 18px rgba(15, 23, 42, 0.05);
  }


  /* Leistungen: Hintergrund füllt evtl. Spalten zwischen Panels */
  #leistungen {
    background: #0f172a;
  }

  /* Kein fixed background – sonst Ruckler mit Snap + ScrollTrigger */
  #leistungen > div,
  #leistungen > section {
    background-attachment: scroll;
  }

  /* Leistungs-Screens: einheitliche Viewport-Höhe, kein Streifen, Snap nacheinander */
  #leistungen > div.snap-section,
  #leistungen > section.snap-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    padding-top: 76px;
    box-sizing: border-box;
  }
  /* Kein Spalt zwischen zwei Leistungs-Vollbildern */
  #leistungen > div.snap-section + div.snap-section,
  #leistungen > section.snap-section + section.snap-section {
    margin-top: -1px;
  }

  #familie-geschichte.geschichte-home-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    margin-top: -1px;
    box-sizing: border-box;
    background:
      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%);
  }

  .geschichte-home-layout {
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    /* Symmetrisches Polster, Inhalt optisch mittig (Navi + Safe-Area) */
    padding-top: max(2.5rem, calc(env(safe-area-inset-top, 0px) + 2rem + 2vh)) !important;
    padding-bottom: max(2rem, 2.5vh) !important;
  }

  .geschichte-home-inner {
    margin-top: clamp(-0.5rem, -1vh, 0rem);
  }

  /* Team: warmer Verlauf, klar von Geschichte getrennt */
  #unsere-team.team-section {
    scroll-snap-align: start;
    scroll-snap-stop: normal;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: -1px;
    padding-top: max(1.5rem, calc(64px - 8vh)) !important;
    box-sizing: border-box;
    background:
      radial-gradient(ellipse 80% 50% at 80% 20%, rgba(251, 191, 36, 0.06), transparent 50%),
      linear-gradient(178deg, #fafcfe 0%, #f5f7fb 50%, #f0f3f9 100%);
  }
  #unsere-team.team-section > .max-w-5xl {
    margin-top: -3vh;
  }
  .team-swipe-hint {
    display: none;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #64748b;
    text-align: center;
  }
  @media (max-width: 767px) {
    #unsere-team.team-section {
      justify-content: center;
      padding-top: max(0.5rem, calc(52px - 9vh)) !important;
      padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
      overflow: hidden;
    }
    #unsere-team.team-section > .max-w-5xl {
      margin-top: 0;
      width: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    #unsere-team.team-section--bento .bento-glass-card.team-card-inner {
      padding: 0.62rem 0.58rem 0.68rem;
    }
    #unsere-team .max-w-5xl > .reveal.text-center {
      margin-bottom: 0.7rem !important;
    }
    #unsere-team .max-w-5xl > .grid.grid-cols-1 {
      display: flex;
      align-items: stretch;
      gap: 0.75rem;
      overflow-x: auto;
      overflow-y: hidden;
      scroll-snap-type: x mandatory;
      touch-action: pan-x;
      overscroll-behavior-x: contain;
      overscroll-behavior-y: none;
      -webkit-overflow-scrolling: touch;
      scrollbar-width: none;
      scroll-padding-left: 0.25rem;
      scroll-padding-right: 0.25rem;
      padding: 0 0.25rem 0.2rem;
    }
    #unsere-team .max-w-5xl > .grid.grid-cols-1::-webkit-scrollbar {
      display: none;
    }
    #unsere-team .max-w-5xl > .grid.grid-cols-1 .team-member-link {
      flex: 0 0 calc(100% - 0.5rem);
      max-width: calc(100% - 0.5rem);
      scroll-snap-align: start;
      scroll-snap-stop: always;
      touch-action: pan-x;
    }
    #unsere-team .team-portrait-frame {
      max-width: 8.6rem;
      margin-bottom: 0.38rem;
    }
    #unsere-team .team-card-inner h3 {
      font-size: 0.9rem !important;
      line-height: 1.2;
    }
    #unsere-team .team-card-inner .team-role-badge {
      font-size: 0.62rem;
      padding: 0.24rem 0.52rem;
      margin-bottom: 0.35rem !important;
    }
    #unsere-team .team-card-inner > p:last-child {
      font-size: 0.71rem !important;
      line-height: 1.25 !important;
      line-clamp: 2;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
      overflow: hidden;
    }
    .team-swipe-hint {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.45rem;
      margin: 0.1rem 0 0.6rem;
    }
  }

  .section-light-wash#kontakt,
  #kontakt.section-light-wash {
    background:
      radial-gradient(ellipse 85% 45% at 50% 0%, rgba(59, 130, 246, 0.07), transparent 55%),
      radial-gradient(ellipse 60% 40% at 0% 100%, rgba(16, 185, 129, 0.05), transparent 50%),
      linear-gradient(185deg, #f6f8fd 0%, #eef2fa 55%, #f8fafc 100%);
  }

  .service-photo-gallery {
    background: #f5f7ff;
  }

  /* Leistungs-Unterseiten: Bildergalerie im Seitenstil */
  .service-photo-gallery .service-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    border-radius: 20px;
    overflow: hidden;
  }
  .service-gallery-slot {
    min-height: 200px;
    background: #eef2ff;
    border-radius: 12px;
    border: 1px dashed rgba(30, 64, 175, 0.15);
  }
  @media (max-width: 768px) {
    .service-photo-gallery .service-gallery-grid {
      grid-template-columns: 1fr;
    }
    .service-gallery-slot {
      min-height: 220px;
    }
  }
  
  /* Section transition overlay */
  .section-fade {
    position: relative;
  }
  .section-fade::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, transparent, var(--white));
    pointer-events: none;
    z-index: 1;
  }

  /* Stagger reveal animations */
  .reveal-pop {
    opacity: 0;
    transform: translateY(30px) scale(0.85);
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  }
  .reveal-pop.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.8s var(--ease-out);
  }
  .reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
  }
  .reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.8s var(--ease-out);
  }
  .reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
  }

  /* Subcategory tiles */
  .sub-tile {
    cursor: pointer;
    transition: all 0.4s var(--ease);
  }
  .sub-tile:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255,255,255,0.12) !important;
    border-color: rgba(212,175,55,0.3) !important;
  }
  .sub-tile:active { transform: scale(0.97); }

  /* Modal overlay */
  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0);
    backdrop-filter: blur(0px);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transition: all 0.5s var(--ease);
  }
  .modal-overlay.open {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(12px);
    pointer-events: auto;
  }
  .modal-content {
    background: white;
    border-radius: 28px;
    max-width: 560px;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    transform: scale(0.85) translateY(40px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 32px 64px rgba(0,0,0,0.3);
  }
  .modal-overlay.open .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
  }

  /* Navbar shrink on scroll */
  .nav-fixed.compact { padding-top: 0; padding-bottom: 0; }
  .nav-fixed.compact .nav-inner { padding-top: 10px; padding-bottom: 10px; }

  .nav-brand-link {
    align-items: center;
  }
  .nav-brand-logo {
    height: 42px;
    width: auto;
    max-width: min(176px, 48vw);
    display: block;
    object-fit: contain;
    flex-shrink: 0;
  }
  @media (max-width: 640px) {
    .nav-brand-logo {
      height: 36px;
      max-width: min(158px, 64vw);
    }
  }

  .nav-tagline-link {
    flex-shrink: 0;
    min-width: 0;
    max-width: min(100%, 56vw);
  }
  .nav-tagline {
    display: block;
    font-size: clamp(0.945rem, 2.52vw, 1.071rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.1;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 45%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  .nav-tagline-strong {
    font-weight: 900;
  }
  .nav-tagline-dot {
    -webkit-text-fill-color: #1e3a5f;
  }

  .hero-main-logo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .hero-main-logo {
    width: min(100%, 26.62rem);
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  @media (min-width: 640px) {
    .hero-main-logo {
      width: min(100%, 33.88rem);
    }
  }
  @media (min-width: 1024px) {
    .hero-main-logo {
      width: min(100%, 38.72rem);
    }
  }

  /* Hero word animation */
  .hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: wordFadeIn 0.6s var(--ease-out) forwards;
  }
  @keyframes wordFadeIn {
    to { opacity: 1; transform: translateY(0); }
  }

  /* Startseite: Fußzeile wie Kapitel-Seiten (hell) */
  .home-site-footer {
    position: relative;
    isolation: isolate;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 45%, #e8edf4 100%);
    color: #1e293b;
    margin-top: -1px;
  }
  .kontakt-landing > .home-site-footer--kontakt-landing {
    margin-top: 0;
  }
  .home-footer-main {
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.25rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.75rem 2rem;
    align-items: start;
  }
  @media (min-width: 960px) {
    .home-footer-main {
      grid-template-columns: minmax(0, 11rem) minmax(0, 1fr) auto auto minmax(0, 14rem);
      align-items: center;
    }
  }
  @media (max-width: 959px) {
    .home-footer-main {
      justify-items: center;
      text-align: center;
      gap: 1.25rem 1.5rem;
    }
    .kontakt-landing .home-site-footer--kontakt-landing .home-footer-main {
      padding-top: 1.15rem;
      padding-bottom: 1rem;
    }
    .home-footer-mail-card {
      width: 100%;
      max-width: 22rem;
    }
    .home-footer-google {
      align-items: center;
    }
    .home-footer-address {
      text-align: center;
    }
    .home-footer-bar-inner {
      align-items: center;
      text-align: center;
    }
    .home-footer-legal {
      justify-content: center;
    }
  }
  .home-footer-logo-link {
    display: inline-flex;
    align-items: center;
  }
  .home-footer-logo-img {
    width: clamp(7.5rem, 18vw, 10.5rem);
    height: auto;
    display: block;
  }
  .home-footer-mail-card {
    border: 1px solid rgba(15, 23, 42, 0.1);
    border-radius: 0.45rem;
    padding: 1rem 1.15rem 1.05rem;
    background: rgba(255, 255, 255, 0.75);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    max-width: 22rem;
  }
  .home-footer-mail-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 0.55rem;
  }
  .home-footer-mail-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1d4ed8 !important;
    letter-spacing: -0.01em;
  }
  .home-footer-mail-link:hover {
    color: #1e3a8a !important;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .home-footer-mail-link i,
  .home-footer-mail-link svg {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    opacity: 0.9;
  }
  .home-footer-google {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }
  @media (min-width: 960px) {
    .home-footer-google {
      align-items: center;
    }
  }
  .home-footer-google-link {
    color: inherit !important;
    display: flex;
    flex-direction: column;
    align-items: inherit;
    gap: 0.35rem;
  }
  .home-footer-google-link:hover .home-footer-google-mark {
    color: #0f172a;
  }
  .home-footer-google-mark {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #334155;
  }
  .home-footer-google-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 0.72rem;
    font-weight: 800;
    color: #4285f4;
  }
  .home-footer-stars {
    display: flex;
    gap: 0.12rem;
    color: #f59e0b;
  }
  .home-footer-stars svg {
    width: 1rem;
    height: 1rem;
    fill: #fbbf24;
    color: #fbbf24;
  }
  .home-footer-ig {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    color: #0f172a !important;
    transition: background 0.2s ease, border-color 0.2s ease;
  }
  .home-footer-ig:hover {
    background: #f1f5f9;
    border-color: rgba(15, 23, 42, 0.2);
  }
  .home-footer-ig svg,
  .home-footer-ig .footer-instagram-icon {
    width: 1.35rem;
    height: 1.35rem;
    display: block;
  }
  .home-footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #475569;
  }
  .home-footer-address strong {
    font-weight: 700;
    color: #0f172a;
  }
  .home-footer-bar {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: rgba(255, 255, 255, 0.55);
    padding: 1rem 1.5rem 1.1rem;
    padding-bottom: max(1.05rem, calc(env(safe-area-inset-bottom, 0px) + 0.65rem));
  }
  .home-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: #64748b;
  }
  @media (min-width: 720px) {
    .home-footer-bar-inner {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
    }
  }
  .home-footer-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1.25rem;
  }
  .home-footer-legal a {
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #334155 !important;
    font-weight: 600;
  }
  .home-footer-legal a:hover {
    color: #0f172a !important;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  .home-footer-legal-chev {
    width: 0.65rem;
    height: 0.65rem;
    color: #94a3b8;
    flex-shrink: 0;
  }
  .home-footer-copy {
    margin: 0;
  }

  footer a {
    color: var(--blue-500);
    text-decoration: none;
    transition: color 0.3s var(--ease);
  }
  footer a:hover { color: var(--royal-blue); }

  .home-hero-section {
    background: transparent;
  }
  /* Inhalt startet unter fester Navi + Notch / Dynamic Island */
  .home-hero--safe-pad {
    padding-top: max(4.5rem, calc(4rem + env(safe-area-inset-top, 0px)));
    box-sizing: border-box;
  }
  /* Viewport: Kicker oben, Logo+Sublead in der Mitte, CTAs darunter, Entdecken unten bündig */
  @media (max-width: 1023px) {
    .home-hero--safe-pad {
      padding-top: max(4.35rem, calc(3.85rem + env(safe-area-inset-top, 0px)));
      padding-bottom: max(0.2rem, env(safe-area-inset-bottom, 0px));
    }
    .home-hero-section {
      display: flex !important;
      flex-direction: column !important;
      align-items: stretch !important;
      justify-content: space-between !important;
      min-height: 100vh;
      min-height: 100svh;
    }
    .home-hero-section > .max-w-5xl {
      flex: 1 1 auto;
      display: flex;
      flex-direction: column;
      min-height: 0;
      width: 100%;
      max-width: min(64rem, 100%) !important;
    }
    .home-hero-section .max-w-5xl {
      padding-left: 1.25rem;
      padding-right: 1.25rem;
    }
    .home-hero-section .hero-content-cluster {
      display: flex;
      flex-direction: column;
      flex: 1 1 auto;
      min-height: 0;
      padding-top: clamp(0.25rem, max(0.8vh, 0.15rem), 0.75rem);
    }
    .home-hero-section .home-hero-kicker,
    .home-hero-section .section-label.home-hero-kicker {
      flex: 0 0 auto;
      margin-top: min(0.75rem, max(0.35rem, 0.8vh));
      margin-bottom: 0.25rem;
    }
    .home-hero-section .hero-mid-block {
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      width: 100%;
      gap: clamp(0.65rem, max(1.2vh, 0.45rem), 1.1rem);
      margin: auto 0;
    }
    .home-hero-section .hero-mid-block .hero-sublead {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.3rem;
      margin-bottom: 0 !important;
      min-height: 0;
    }
    .home-hero-section .hero-mid-block .hero-main-logo-wrap {
      display: flex;
      justify-content: center;
      width: 100%;
      margin-bottom: 0 !important;
      min-height: 0;
    }
    .home-hero-section .hero-mid-block .hero-main-logo {
      display: block;
      width: min(92vw, 36rem);
      max-width: 100%;
      max-height: min(44svh, 17.5rem);
      min-height: 5rem;
      height: auto;
      object-fit: contain;
      margin-left: auto;
      margin-right: auto;
    }
    .home-hero-section .hero-sublead {
      margin-top: 0;
    }
    .hero-sublead__line1,
    .hero-sublead__line2 {
      font-size: clamp(0.82rem, 2.6vw, 1rem);
      line-height: 1.35;
    }
    .home-hero-section .hero-cta-row {
      flex: 0 0 auto;
      width: 100%;
      max-width: 32rem;
      margin-left: auto;
      margin-right: auto;
      margin-top: clamp(0.35rem, 1.2vh, 0.75rem);
      transform: none;
      min-height: 0;
    }
    .home-hero-section .hero-cta-glass {
      width: 100%;
      min-height: 2.875rem;
      max-width: 100%;
    }
    .home-hero-section .hero-discover-hint {
      flex: 0 0 auto;
      margin-top: auto;
      margin-bottom: 0;
      padding: 0.4rem 1rem;
      padding-bottom: max(0.45rem, env(safe-area-inset-bottom, 0px));
      gap: 0.28rem;
      color: #ffffff;
    }
    .home-hero-section .hero-discover-hint__label {
      font-size: 0.8rem;
      font-weight: 700;
      letter-spacing: 0.24em;
      color: #ffffff;
      text-shadow: 0 1px 6px rgba(2, 6, 23, 0.45);
    }
    .home-hero-section .hero-discover-hint__chev {
      width: 1.35rem !important;
      height: 1.35rem !important;
      color: #ffffff;
      filter: drop-shadow(0 1px 4px rgba(2, 6, 23, 0.45));
      opacity: 1;
    }
  }
  @media (max-width: 639px) {
    .home-hero-section .max-w-5xl {
      padding-left: 1.1rem;
      padding-right: 1.1rem;
    }
  }
  .home-hero-montage {
    position: absolute;
    inset: 0;
    z-index: 0;
  }
  .home-hero-montage__vid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.9s cubic-bezier(0.2, 0, 0.2, 1);
  }
  .home-hero-montage__vid.is-in {
    z-index: 2;
    opacity: 0.48;
  }
  .home-hero-blob-layer {
    z-index: 1;
  }
  .home-hero-light-scrim {
    z-index: 2;
  }
  [data-hero-montage-fail] {
    display: none;
  }
  @media (prefers-reduced-motion: reduce) {
    .home-hero-montage,
    [data-hero-montage] {
      display: none !important;
    }
  }
  @media (prefers-reduced-motion: no-preference) {
    .phx-hero-ambient-blob--a {
      animation: phx-ambient-drift-a 24s ease-in-out infinite alternate;
    }
    .phx-hero-ambient-blob--b {
      animation: phx-ambient-drift-b 28s ease-in-out infinite alternate;
    }
  }
  @keyframes phx-ambient-drift-a {
    0% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
      transform: translate3d(2.5%, 1.5%, 0) scale(1.03);
    }
  }
  @keyframes phx-ambient-drift-b {
    0% {
      transform: translate3d(0, 0, 0) scale(1);
    }
    100% {
      transform: translate3d(-2.2%, -1.2%, 0) scale(1.025);
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .phx-hero-ambient-blob--a,
    .phx-hero-ambient-blob--b {
      animation: none;
    }
  }

  /* Hero-CTAs: Glassmorphism (Kostenlose Beratung / Interaktives Haus) */
  .hero-cta-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.65rem;
    min-height: 2.85rem;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.02em;
    border-radius: 980px;
    overflow: hidden;
    border: 1.5px solid rgba(255, 255, 255, 0.58);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.75) inset,
      0 1px 2px rgba(15, 23, 42, 0.04),
      0 8px 28px rgba(30, 64, 175, 0.12),
      0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transition: transform 0.35s var(--ease), box-shadow 0.35s ease, border-color 0.3s ease, background 0.3s ease;
    --hx: 50%;
    --hy: 50%;
  }
  .hero-cta-glass::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.35) 0%, transparent 45%, rgba(59, 130, 246, 0.06) 100%);
    opacity: 0.85;
  }
  .hero-cta-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(240px circle at var(--hx) var(--hy), rgba(255, 255, 255, 0.55), transparent 58%);
    opacity: 0.65;
    pointer-events: none;
    z-index: 0;
  }
  .hero-cta-glass > span,
  .hero-cta-glass > i,
  .hero-cta-glass > svg {
    position: relative;
    z-index: 1;
  }
  .hero-cta-glass--primary {
    color: #0f172a;
    border-color: rgba(59, 130, 246, 0.5);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.55), rgba(219, 234, 254, 0.42) 50%, rgba(255, 255, 255, 0.35) 100%);
  }
  .hero-cta-glass--primary:hover {
    transform: scale(1.04);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.85) inset,
      0 14px 40px rgba(30, 64, 175, 0.2);
    border-color: rgba(37, 99, 235, 0.6);
  }
  .hero-cta-glass--secondary {
    color: #0f172a;
    background: linear-gradient(155deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.14) 100%);
  }
  .hero-cta-glass--secondary:hover {
    transform: scale(1.04);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.28) 100%);
    border-color: rgba(30, 64, 175, 0.42);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.6) inset,
      0 10px 32px rgba(15, 23, 42, 0.1);
  }
  @media (pointer: fine) {
    .hero-cta-glass {
      cursor: pointer;
    }
  }

  /* Kontakt-Block: mindestens Vollbild, Footer im Dokumentenfluss darunter */
  .kontakt-landing {
    position: relative;
    isolation: isolate;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    max-height: none;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    overflow: visible;
  }
  /* Heller Verlauf scrollt mit (kein schwarzer Scroller-Rand ab „Nachricht*“) */
  .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;
    background-repeat: no-repeat;
  }
  .kontakt-landing__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      url("https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1920&q=80") center / cover no-repeat;
  }
  /* Wie „Unsere Geschichte“: heller Verlauf statt Baustellen-Foto */
  .kontakt-landing--light .kontakt-landing__bg {
    display: none;
  }
  .kontakt-landing__scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      168deg,
      rgba(2, 6, 23, 0.78) 0%,
      rgba(15, 23, 42, 0.84) 42%,
      rgba(2, 6, 23, 0.9) 100%
    );
    pointer-events: none;
  }
  .kontakt-landing--light .kontakt-landing__scrim {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 45%);
  }
  .kontakt-landing__inner {
    position: relative;
    z-index: 2;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    min-height: auto;
    width: 100%;
  }
  .kontakt-landing__content {
    flex: 0 0 auto;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
    min-height: auto;
    /* Klar unter fixer Navi (Label „Kontakt“ / H2 nicht abgeschnitten) */
    padding-top: max(1.25rem, calc(6.75rem + env(safe-area-inset-top, 0px)));
    padding-bottom: 0;
  }
  .kontakt-landing__content > .grid {
    margin-bottom: 4rem;
  }
  .kontakt-landing .kontakt-trust-strip {
    margin-bottom: 0.75rem;
  }
  .kontakt-landing .kontakt-form-shell #contact-form .btn-primary,
  .kontakt-landing .kontakt-form-shell .btn-primary {
    margin-bottom: 0;
  }
  .kontakt-landing {
    padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  }
  @media (min-width: 1024px) and (max-width: 1440px) {
    .kontakt-landing__content {
      padding-top: max(1.35rem, calc(7rem + env(safe-area-inset-top, 0px)));
    }
  }
  .kontakt-landing__lead {
    color: rgba(203, 213, 225, 0.95);
  }
  .kontakt-landing__fineprint {
    color: rgba(148, 163, 184, 0.95);
  }
  .kontakt-landing--light .kontakt-landing__lead {
    color: #475569;
  }
  .kontakt-landing--light .kontakt-landing__fineprint {
    color: #64748b;
  }
  /* Helle Karten/Labels wie restlicher heller Auftritt */
  .kontakt-landing--light .kontakt-aside-kicker {
    color: #64748b;
  }
  .kontakt-landing--light .kontakt-aside-title {
    color: #0f172a;
  }
  .kontakt-landing--light .kontakt-aside-lead {
    color: #64748b;
  }
  .kontakt-landing--light .kontakt-aside-row {
    color: #334155;
    border-top-color: rgba(15, 23, 42, 0.06);
  }
  .kontakt-landing--light .kontakt-aside-link {
    color: #1d4ed8;
  }
  .kontakt-landing--light .kontakt-aside-link:hover {
    color: #1e3a8a;
  }
  .kontakt-landing--light .form-label--kontakt-dark {
    color: #64748b;
  }
  .kontakt-landing--light .kontakt-dsgvo-label {
    color: #475569;
  }
  .kontakt-landing--light .kontakt-dsgvo-link {
    color: #1d4ed8;
  }
  .kontakt-landing--light .kontakt-dsgvo-link:hover {
    color: #1e3a8a;
  }
  .kontakt-landing--light .success-msg.success-msg--kontakt-dark {
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1px solid #a7f3d0;
    color: #0f172a;
  }
  .kontakt-landing--light .success-msg.success-msg--kontakt-dark h3,
  .kontakt-landing--light .success-msg.success-msg--kontakt-dark p {
    color: inherit;
  }
  .kontakt-landing .kontakt-form--compact .form-label--kontakt-dark {
    margin-bottom: 0.35rem;
  }
  .kontakt-landing .kontakt-form-input,
  .kontakt-landing .kontakt-form--compact .form-input {
    padding: 0.6rem 0.9rem;
    font-size: 0.95rem;
    border-radius: 0.9rem;
  }
  .kontakt-landing .kontakt-textarea--compact,
  .kontakt-landing #c-message {
    min-height: 4.5rem;
    max-height: 8rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    line-height: 1.4;
  }
  .kontakt-landing .kontakt-dsgvo-text {
    font-size: 0.76rem;
    line-height: 1.4;
  }
  #unsere-team.team-section--bento {
    position: relative;
  }
  #unsere-team.team-section--bento::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(ellipse 90% 50% at 50% -10%, rgba(59, 130, 246, 0.07), transparent 55%),
      radial-gradient(ellipse 60% 40% at 100% 100%, rgba(99, 102, 241, 0.05), transparent 50%);
  }
  #unsere-team.team-section--bento > .max-w-5xl {
    position: relative;
    z-index: 1;
  }
  .geschichte-home--bento {
    position: relative;
  }
  .geschichte-home--bento::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
      radial-gradient(ellipse 80% 45% at 12% 0%, rgba(30, 64, 175, 0.06), transparent 52%),
      radial-gradient(ellipse 50% 35% at 88% 100%, rgba(59, 130, 246, 0.05), transparent 48%);
  }
  .geschichte-home--bento .geschichte-home-inner {
    position: relative;
    z-index: 1;
  }
  .section-label--on-hero {
    background: rgba(15, 23, 42, 0.35);
    color: #e0f2fe;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
  }
  .section-label--on-hero svg {
    color: #7dd3fc;
    opacity: 0.95;
  }
  .form-label--kontakt-dark {
    color: rgba(203, 213, 225, 0.95);
  }
  .kontakt-dsgvo-row {
    user-select: none;
  }
  .kontakt-dsgvo-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.9);
  }
  .kontakt-dsgvo-input {
    width: 1.05rem;
    height: 1.05rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: #2563eb;
    cursor: pointer;
  }
  .kontakt-dsgvo-link {
    color: #7dd3fc;
    font-weight: 600;
  }
  .kontakt-dsgvo-link:hover {
    color: #bae6fd;
    text-decoration: underline;
    text-underline-offset: 2px;
  }
  .kontakt-dsgvo-label--error {
    color: #fecaca;
  }
  .kontakt-dsgvo-label--error .kontakt-dsgvo-link {
    color: #7dd3fc;
  }
  .success-msg.success-msg--kontakt-dark {
    background: linear-gradient(135deg, rgba(6, 78, 59, 0.55), rgba(4, 47, 46, 0.5));
    border: 1px solid rgba(52, 211, 153, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .home-site-footer--kontakt-landing {
    margin-top: 0;
    flex-shrink: 0;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(2, 6, 23, 0.75) 100%);
    color: #e2e8f0;
    position: relative;
    z-index: 1;
  }
  .kontakt-landing .home-site-footer.home-site-footer--kontakt-landing {
    margin-top: 0;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing {
    margin-top: 0;
  }
  .kontakt-landing .home-site-footer--kontakt-landing a {
    color: #7dd3fc;
  }
  .kontakt-landing .home-site-footer--kontakt-landing a:hover {
    color: #bae6fd;
  }
  .home-site-footer--kontakt-landing .home-footer-mail-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  }
  .home-site-footer--kontakt-landing .home-footer-mail-label {
    color: #94a3b8;
  }
  .home-site-footer--kontakt-landing .home-footer-mail-link {
    color: #7dd3fc !important;
  }
  .home-site-footer--kontakt-landing .home-footer-google-link {
    color: #cbd5e1 !important;
  }
  .home-site-footer--kontakt-landing .home-footer-address {
    color: #cbd5e1;
  }
  .home-site-footer--kontakt-landing .home-footer-address strong {
    color: #f1f5f9;
  }
  .home-site-footer--kontakt-landing .home-footer-ig {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.12);
    color: #e2e8f0 !important;
  }
  .home-site-footer--kontakt-landing .home-footer-bar {
    background: rgba(2, 6, 23, 0.5);
    border-top-color: rgba(255, 255, 255, 0.1);
    padding-top: 1.15rem;
    padding-bottom: max(1.65rem, calc(env(safe-area-inset-bottom, 0px) + 1.15rem));
    margin-bottom: 0.65rem;
  }
  .kontakt-landing .home-site-footer--kontakt-landing .home-footer-main {
    padding-bottom: 0.35rem;
  }
  .home-site-footer--kontakt-landing .home-footer-legal a {
    color: #e2e8f0 !important;
  }
  .home-site-footer--kontakt-landing .home-footer-legal-chev {
    color: #64748b;
  }
  .home-site-footer--kontakt-landing .home-footer-google-mark {
    color: #e2e8f0;
  }
  .home-site-footer--kontakt-landing .home-footer-stars {
    color: #fbbf24;
  }
  .home-site-footer--kontakt-landing .home-footer-stars svg {
    fill: #fbbf24;
    color: #fbbf24;
  }
  .home-site-footer--kontakt-landing .home-footer-copy {
    color: #94a3b8;
  }
  .kontakt-landing .kontakt-trust-strip .kontakt-glass-chip {
    border-color: rgba(255, 255, 255, 0.12);
  }
  /* Heller Auftritt: Fuß wie Startseite, Rechtsleiste kompakter (sichtbar bis Impressum) */
  .kontakt-landing--light .home-site-footer--kontakt-landing {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 50%, #e8edf4 100%);
    color: #1e293b;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing a {
    color: #1d4ed8;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing a:hover {
    color: #1e3a8a;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-mail-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(15, 23, 42, 0.1);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-mail-label {
    color: #64748b;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-mail-link {
    color: #1d4ed8 !important;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-google-link {
    color: #334155 !important;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-address {
    color: #475569;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-address strong {
    color: #0f172a;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-ig {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.12);
    color: #0f172a !important;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-bar {
    background: rgba(255, 255, 255, 0.8);
    border-top-color: rgba(15, 23, 42, 0.08);
    padding-top: 0.65rem;
    padding-bottom: max(0.4rem, calc(env(safe-area-inset-bottom, 0px) + 0.2rem));
    margin-bottom: 0;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-legal a {
    color: #334155 !important;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-legal a:hover {
    color: #0f172a !important;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-legal-chev {
    color: #94a3b8;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-google-mark {
    color: #334155;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-stars {
    color: #f59e0b;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-stars svg {
    fill: #fbbf24;
    color: #fbbf24;
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-copy {
    color: #64748b;
  }
  .kontakt-landing--light .kontakt-trust-strip .kontakt-glass-chip {
    border-color: rgba(15, 23, 42, 0.1);
  }
  .kontakt-landing--light .home-site-footer--kontakt-landing .home-footer-main {
    padding-top: 1.35rem;
    padding-bottom: 0.75rem;
  }

  /* Ab Desktop: klassisches zentriertes Hero (ohne volle Viewport-Säule) */
  @media (min-width: 1024px) {
    .home-hero-section .hero-content-cluster {
      padding-top: 5vh;
    }
    .home-hero-section .hero-discover-hint {
      margin-top: max(1.25rem, calc(6rem - 5vh));
    }
  }

  .hero-sublead {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-align: center;
    line-height: 1.38;
  }
  .hero-sublead__line1,
  .hero-sublead__line2 {
    font-size: clamp(0.875rem, 1.9vw, 1.118rem);
    font-weight: 500;
    font-family: inherit;
    letter-spacing: -0.024em;
    color: #3f4a5c;
    max-width: 100%;
  }
  .hero-sublead__line1 {
    white-space: nowrap;
  }
  @media (max-width: 519px) {
    .hero-sublead__line1 {
      white-space: normal;
    }
  }
  .hero-sublead__line2 {
    color: #4b5568;
  }

  .hero-discover-hint {
    color: #94a3b8;
  }
  .hero-discover-hint__label {
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
  }
  .hero-discover-hint__chev {
    animation: hero-chevron-bob 2.2s ease-in-out infinite;
  }
  @keyframes hero-chevron-bob {
    0%,
    100% {
      transform: translateY(0);
      opacity: 0.65;
    }
    50% {
      transform: translateY(7px);
      opacity: 1;
    }
  }

  .geschichte-home-lead {
    font-size: 1.125rem;
    line-height: 1.75;
    color: #374151;
    font-weight: 500;
  }
  .geschichte-home-body {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: #3d4a5c;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
  }

  /* Seite „Unsere Geschichte“ + Video: Typo & Hero */
  .page-geschichte {
    font-family: 'Literata', 'Georgia', 'Times New Roman', serif;
  }
  .page-geschichte .nav-fixed,
  .page-geschichte .nav-fixed a,
  .page-geschichte button {
    font-family: -apple-system, 'Inter', system-ui, sans-serif;
  }
  .service-hero--story {
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 38%, #0c4a6e 100%);
  }
  .page-geschichte .service-hero--story h1 {
    font-family: 'Literata', Georgia, serif;
    font-weight: 700;
    letter-spacing: -0.03em;
  }
  .page-geschichte .service-hero--story p {
    font-family: 'Literata', Georgia, serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.72) !important;
    line-height: 1.65;
  }
  .page-geschichte .premium-card h2,
  .page-geschichte .premium-card h3,
  .page-geschichte .premium-card p {
    font-family: 'Literata', Georgia, serif;
  }
  .page-geschichte .premium-card p {
    color: #4b5563;
    font-size: 1.02rem;
    line-height: 1.7;
  }
  .page-geschichte #firmenfilm .text-sm,
  .page-geschichte #firmenfilm-caption {
    font-family: -apple-system, 'Inter', system-ui, sans-serif;
    font-size: 0.82rem;
    color: #64748b;
  }

  /* „Unsere Geschichte“: unterer Bereich ~5 % knapper (Viewportbezug) */
  .page-geschichte .page-geschichte-main {
    padding-bottom: max(1.25rem, calc(3.5rem - 5vh));
  }
  @media (min-width: 768px) {
    .page-geschichte .page-geschichte-main {
      padding-bottom: max(1.5rem, calc(4.25rem - 5vh));
    }
  }
  .page-geschichte .page-geschichte-foot {
    padding-bottom: max(0.5rem, calc(1.75rem - 5vh));
    margin-top: -0.25rem;
  }

/* —— Mobile ≤1023px: 100svh, knappere vh-Abstände, Safe-Area —— */
@media (max-width: 1023px) {
  html {
    scroll-padding-bottom: max(0.85rem, env(safe-area-inset-bottom, 0px));
  }

  .snap-section {
    min-height: 100vh;
    min-height: 100svh;
  }

  #leistungen > div.snap-section,
  #leistungen > section.snap-section {
    min-height: 100vh !important;
    min-height: 100svh !important;
    padding-top: max(3.25rem, calc(env(safe-area-inset-top, 0px) + 2.5rem));
  }

  .geschichte-home-layout {
    min-height: 100vh;
    min-height: 100svh;
    padding-top: max(1.75rem, calc(env(safe-area-inset-top, 0px) + 1.35rem + max(1vh, 0.5rem))) !important;
    padding-bottom: max(1rem, calc(env(safe-area-inset-bottom, 0px) + 0.85rem)) !important;
  }

  .geschichte-home-inner {
    margin-top: clamp(-0.35rem, -0.55vh, 0rem);
  }

  #unsere-team.team-section {
    padding-top: max(0.65rem, calc(52px - 4.25vh)) !important;
    padding-bottom: max(0.5rem, calc(env(safe-area-inset-bottom, 0px) + 0.35rem)) !important;
  }

  #unsere-team.team-section > .max-w-5xl {
    margin-top: min(-0.75rem, -1.25vh);
    min-height: 0;
  }

  .mobile-menu-panel {
    max-height: min(62vh, calc(100vh - 3.25rem - env(safe-area-inset-top, 0px)));
    max-height: min(62vh, calc(100svh - 3.25rem - env(safe-area-inset-top, 0px)));
  }

  .page-geschichte .page-geschichte-main {
    padding-bottom: max(1rem, calc(2.5rem - 2.5vh));
  }

  .page-geschichte .page-geschichte-foot {
    padding-bottom: max(0.45rem, calc(env(safe-area-inset-bottom, 0px) + 0.65rem));
  }
}

/* Mobile: homepage hero/nav overlap hardening */
@media (max-width: 767px) {
  .home-hero--safe-pad {
    padding-top: max(4.95rem, calc(4.35rem + env(safe-area-inset-top, 0px))) !important;
  }

  .home-hero-section .hero-content-cluster {
    padding-top: clamp(0.1rem, 0.7vh, 0.45rem);
  }

  .home-hero-section .hero-discover-hint {
    padding-bottom: max(0.65rem, env(safe-area-inset-bottom, 0px));
  }
}

/* Einsatzgebiet (Startseite) */
.einsatzgebiet-section {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.einsatzgebiet-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: #334155;
  margin: 0 0 1.5rem;
  text-align: center;
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

.einsatzgebiet-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
  text-align: center;
  margin: 0 0 1rem;
}

.einsatzgebiet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.25rem;
  list-style: none;
  padding: 0;
  margin: 0 auto 1.25rem;
  max-width: 28rem;
}

@media (min-width: 640px) {
  .einsatzgebiet-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: 36rem;
  }
}

.einsatzgebiet-grid li {
  text-align: center;
  padding: 0.55rem 0.75rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 0.9rem;
  font-weight: 500;
  color: #1e293b;
}

.einsatzgebiet-note {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #64748b;
  text-align: center;
  margin: 0;
}

/* Leistungs-Headlines: Ortszusatz auf Wunsch unsichtbar */
.leistung-loc-hide {
  display: none !important;
}
