/* ================================================================
   GBLorg Landingpage – style.css (v2)
   Originalgetreue Reproduktion von gblorg.com

   INHALTSVERZEICHNIS:
   1.  CSS Custom Properties (Farben, Typografie)
   2.  Reset & Base
   3.  Top Bar
   4.  Header / Navigation (Boxed Layout)
   5.  Hero Slider
   6.  Allgemeine Section-Styles & Utilities
   7.  Section: Was ist GBLorg (Two-Column)
   8.  Section: Services
   9.  Section: Schritte (Step Cards)
   10. Section: Dunkel (Dark Background)
   11. Section: FAQ (Accordion)
   12. Section: Kontakt
   13. Footer
   14. Animationen
   15. Responsive
   ================================================================ */


/* ================================================================
   1. CSS CUSTOM PROPERTIES
   ✏️ Zentrale Stelle für alle Farbanpassungen
   ================================================================ */
@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Geist';
  src: url('../assets/fonts/geist-latin-wght-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/nunito-sans-latin-wght-normal.woff2') format('woff2');
  font-style: normal;
  font-weight: 200 900;
  font-display: swap;
}

@font-face {
  font-family: 'Nunito Sans';
  src: url('../assets/fonts/nunito-sans-latin-wght-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 200 900;
  font-display: swap;
}

:root {
  /* ------- FARBEN (von gblorg.com Logo abgeleitet) ------- */
  --navy:          #0d2b6e;    /* Dunkel-Navy – Logo-Hintergrundfarbe */
  --navy-dark:     #08194a;    /* Noch dunkler für Hover/Footer */
  --navy-light:    #1a3f8f;    /* Etwas heller */
  --blue:          #1565c0;    /* Mittelblau für Buttons, Links */
  --blue-hover:    #1976d2;    /* Hover-Zustand */
  --blue-light:    #e8f0fb;    /* Sehr helles Blau für Hintergründe */
  --gold:          #f4a700;    /* Warmer Markenakzent */

  --white:         #ffffff;
  --bg:            #ffffff;
  --bg-light:      #f4f7fb;
  --bg-dark:       #0d2b6e;

  --text:          #1c2233;    /* Primärtext */
  --text-muted:    #5c687d;    /* Sekundärtext */
  --text-light:    #8899b0;    /* Sehr heller Text */

  --border:        #dce4ef;
  --border-light:  #edf1f8;

  --shadow-sm:  0 1px 4px rgba(13,43,110,.07), 0 1px 2px rgba(13,43,110,.04);
  --shadow:     0 4px 18px rgba(13,43,110,.11), 0 2px 6px rgba(13,43,110,.06);
  --shadow-lg:  0 12px 40px rgba(13,43,110,.15), 0 4px 16px rgba(13,43,110,.08);

  /* ------- TYPOGRAFIE ------- */
  --font-head:  'Geist', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --font-body:  'Nunito Sans', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;

  /* ------- SPACING GRID (8px base) ------- */
  --sp-xs:      4px;        /* 0.5 units */
  --sp-sm:      8px;        /* 1 unit */
  --sp-md:      16px;       /* 2 units */
  --sp-lg:      24px;       /* 3 units */
  --sp-xl:      32px;       /* 4 units */
  --sp-2xl:     40px;       /* 5 units */
  --sp-3xl:     48px;       /* 6 units */
  --sp-4xl:     56px;       /* 7 units */
  --sp-5xl:     64px;       /* 8 units */
  --sp-6xl:     80px;       /* 10 units */
  --sp-7xl:     96px;       /* 12 units */

  /* ------- LAYOUT ------- */
  --max-w:      1400px;     /* Max-Breite Container */
  --max-w-sm:   760px;      /* Enger Container für zentrierte Sections */
  --page-gutter: var(--sp-lg); /* Gemeinsame Außenkante für Header und Seiteninhalte */
  --layout-scrollbar-width: 0px; /* Wird vom Shared Header gegen die Dokumentbreite synchronisiert */
  --nav-h:      75px;       /* Höhe der Navigation */
  --section-v:  var(--sp-6xl);  /* Vertikales Padding für Sections = 80px */
  --radius:     6px;
  --radius-lg:  12px;
  --radius-card: 25px;
  --tr:         0.2s cubic-bezier(.4,0,.2,1);
}


/* ================================================================
   2. RESET & BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  overflow-x: hidden;
  scrollbar-gutter: stable;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.18; color: var(--navy); }
h1 { font-size: clamp(2rem, 5.5vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1rem, 2vw, 1.2rem); }
address { font-style: normal; }
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }

/* Enhanced focus states for accessibility */
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ================================================================
   CONTAINER & UTILITIES
   ================================================================ */
.container {
  max-width: calc(var(--max-w) + var(--page-gutter) + var(--page-gutter));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
}
.container--narrow {
  max-width: var(--max-w-sm);
  margin: 0 auto;
}
.text-center { text-align: center; }

/* ================================================================
   BUTTONS
   ✏️ Farben über --blue und --navy anpassen
   ================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
  line-height: 1;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.1);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn:active::before {
  opacity: 1;
}
.btn--lg { padding: 12px 24px; font-size: 0.95rem; }
/* display:inline-flex hat dieselbe Spezifität wie die UA-Regel [hidden]{display:none}
   und würde sie sonst überstimmen, sobald ein Button bedingt ausgeblendet wird. */
.btn[hidden] { display: none; }

/* Primär */
.btn--primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(21,101,192,.28); }

/* Outline */
.btn--outline {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}
.btn--outline:hover { background: var(--blue-light); }

/* Weiß (auf dunklem Hintergrund) */
.btn--white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--white:hover { background: var(--blue-light); border-color: var(--blue-light); }

/* Ghost-White */
.btn--ghost-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn--ghost-white:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

/* Nav-Buttons */
.btn--primary-nav {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius);
}
.btn--primary-nav:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(21,101,192,.24); }
.btn--outline-nav {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: var(--radius);
}
.btn--outline-nav:hover { border-color: var(--navy); background: var(--blue-light); transform: translateY(-1px); }

/* Hero-Buttons */
.btn--hero-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
  padding: 12px 28px;
  font-size: 1rem;
}
.btn--hero-primary:hover { background: var(--blue-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(21,101,192,.35); }
.btn--hero-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.55);
  padding: 12px 28px;
  font-size: 1rem;
}
.btn--hero-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); transform: translateY(-2px); }

/* Full-width (Mobile) */
.btn--outline-full { background: transparent; color: var(--navy); border: 2px solid var(--border); padding: 10px 16px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; display: block; text-align: center; width: 100%; transition: all var(--tr); }
.btn--outline-full:hover { border-color: var(--navy); background: var(--blue-light); }
.btn--primary-full { background: var(--blue); color: var(--white); border: 2px solid var(--blue); padding: 10px 16px; border-radius: var(--radius); font-family: var(--font-head); font-weight: 700; font-size: 0.9rem; display: block; text-align: center; width: 100%; transition: all var(--tr); }
.btn--primary-full:hover { background: var(--blue-hover); border-color: var(--blue-hover); }


/* ================================================================
   3. TOP BAR
   ================================================================ */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  font-size: 0.78rem;
  padding: var(--sp-xs) 0;
}
.topbar__inner {
  max-width: calc(var(--max-w) + var(--page-gutter) + var(--page-gutter));
  margin: 0 auto;
  padding: 0 var(--page-gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
}
.topbar__links {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.topbar__links a { color: rgba(255,255,255,.75); transition: color var(--tr); }
.topbar__links a:hover { color: var(--white); }
.topbar__sep { opacity: .35; }


/* ================================================================
   4. HEADER / NAVIGATION – BOXED & ROUNDED
   Der Header selbst ist transparent; die eigentliche Nav
   ist eine abgerundete, schwebende Box (wie eine Pill-Card).
   ================================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: none;
  padding: var(--sp-md) var(--page-gutter);
  transition: transform var(--tr);
}

.header.scrolled { padding: var(--sp-sm) var(--page-gutter); }

.header-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 940;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(21,101,192,.16) 0%, transparent 62%),
    radial-gradient(700px 420px at 88% 90%, rgba(13,43,110,.16) 0%, transparent 62%),
    rgba(8, 25, 74, .62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity var(--tr), visibility var(--tr);
}
body.has-header-dropdown-open .header-dropdown-backdrop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Die Box: immer weiß, abgerundet, mit Schatten */
.header__box {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-md) 0 var(--sp-sm);
  height: 58px;
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(13,43,110,.10), 0 1px 4px rgba(13,43,110,.06);
  transition: box-shadow var(--tr);
}
.header.scrolled .header__box {
  box-shadow: 0 6px 28px rgba(13,43,110,.14), 0 2px 8px rgba(13,43,110,.08);
}

/* Logo */
.header__logo { flex-shrink: 0; display: flex; align-items: center; }
.header__logo-img { height: 40px; width: auto; }

/* Logo-Fallback (wenn Bild nicht lädt) */
.header__logo-fallback {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-head);
  font-weight: 800;
}
.logo-box {
  background: var(--navy);
  color: var(--white);
  padding: .25rem .55rem;
  font-size: 1.25rem;
  letter-spacing: .01em;
}
.logo-text {
  color: #9aa5b4;
  font-size: 1.25rem;
  font-weight: 400;
  padding-left: .2rem;
  letter-spacing: .05em;
}

/* Nav */
.header__nav {
  display: flex;
  align-items: center;
  gap: .1rem;
  margin-left: auto;
}

.nav-link {
  font-family: var(--font-head);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--tr), background var(--tr);
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
  white-space: nowrap;
}
.nav-link:hover { color: var(--blue); background: var(--blue-light); }
.nav-item--dropdown:hover > button { color: var(--blue); background: var(--blue-light); }

.nav-item { position: relative; }

.nav-chevron { transition: transform var(--tr); flex-shrink: 0; }
button.nav-link[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }

/* Dropdown-Menü */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 0;
  min-width: 190px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  padding: var(--sp-xs);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: all var(--tr);
  z-index: 200;
}
.nav-item--dropdown:hover .dropdown-menu,
.nav-item--dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-item--dropdown > button[aria-expanded="true"] + .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: block;
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-lg);
  transition: all var(--tr);
}
.dropdown-item:hover { color: var(--blue); background: var(--blue-light); }

/* Mega Menü: Tools */
.dropdown-menu--mega {
  min-width: 560px;
  padding: var(--sp-md);
  border-radius: 14px;
}

.mega-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mega-menu-btn {
  display: block;
  text-decoration: none;
  color: inherit;
}

.mega-menu-grid .contact-topic {
  margin: 0;
  border-radius: var(--radius-lg);
}

@media (max-width: 1280px) {
  .dropdown-menu--mega { min-width: 500px; }
}

@media (max-width: 1140px) {
  .dropdown-menu--mega {
    min-width: 380px;
    padding: 10px;
  }
  .mega-menu-grid { grid-template-columns: 1fr; }
}

/* Header Actions */
.header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   MITGLIEDERBEREICH-BUTTON
   Schwebt rechts neben der Box – außerhalb des max-width Containers.
   Normal: Pill mit Icon + Label
   Scrolled: Kreis mit nur Icon
   ---------------------------------------------------------------- */
/* Gemeinsamer Wrapper für member-btn + plus-btn */
.header__floating {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: .5rem;
  cursor: pointer;
  transition: opacity var(--tr), transform var(--tr);
}

.member-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  overflow: hidden;
  height: 40px;
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 700;
  white-space: nowrap;
  border: 2px solid var(--border);
  box-shadow: 0 4px 16px rgba(13,43,110,.15), 0 1px 4px rgba(13,43,110,.1);
  transition:
    max-width .4s cubic-bezier(.4,0,.2,1),
    padding   .4s cubic-bezier(.4,0,.2,1),
    border-radius .35s ease,
    background .2s ease,
    box-shadow .2s ease,
    border-color .2s ease;

  /* Standard: Kreis */
  max-width: 40px;
  width: 40px;
  padding: 0;
  gap: 0;
  border-radius: 50%;
}
.member-btn:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: 0 6px 22px rgba(13,43,110,.2);
}

.member-btn__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s ease;
}
.member-btn:hover .member-btn__icon {
  transform: scale(1.12);
}

.member-btn__label {
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  margin: 0;
  transition:
    max-width .4s cubic-bezier(.4,0,.2,1),
    opacity   .25s ease,
    margin    .4s ease;
}

/* Ab 1900px: Pill mit Label */
@media (min-width: 1900px) {
  .member-btn {
    max-width: 200px;
    width: auto;
    padding: 0 1rem 0 .75rem;
    gap: .5rem;
    border-radius: 999px;
  }
  .member-btn__label {
    max-width: 160px;
    opacity: 1;
    margin: 0;
  }
}

/* Unter 1900px: Kreis bleibt Kreis, Label komplett versteckt */
@media (max-width: 1899px) {
  .member-btn,
  .header.scrolled .member-btn,
  .member-btn:hover,
  .header.scrolled .member-btn:hover {
    max-width: 40px;
    width: 40px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }
  .member-btn .member-btn__label,
  .header.scrolled .member-btn .member-btn__label,
  .member-btn:hover .member-btn__label,
  .header.scrolled .member-btn:hover .member-btn__label {
    display: none;
  }
}

/* Scrolled ab 1900px: Kreis + Hover öffnet Pill */
@media (min-width: 1900px) {
  .header.scrolled .member-btn {
    max-width: 40px;
    width: 40px;
    padding: 0;
    gap: 0;
    border-radius: 50%;
  }
  .header.scrolled .member-btn__label {
    max-width: 0;
    opacity: 0;
    margin: 0;
  }
  .header.scrolled .member-btn:hover {
    max-width: 200px;
    width: auto;
    padding: 0 1rem 0 .75rem;
    gap: .5rem;
    border-radius: 999px;
  }
  .header.scrolled .member-btn:hover .member-btn__label {
    max-width: 160px;
    opacity: 1;
  }
}
.header.scrolled .member-btn:hover .member-btn__label {
  max-width: 160px;
  opacity: 1;
}

/* ----------------------------------------------------------------
   PLUS-BUTTON
   Runder weißer Button mit Rand + Plus-Icon, rechts neben member-btn
   ---------------------------------------------------------------- */
.plus-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;

  background: var(--navy);
  color: var(--white);
  border: 2px solid rgba(255,255,255,.25);
  box-shadow: 0 4px 16px rgba(13,43,110,.35), 0 1px 4px rgba(13,43,110,.2);
  text-decoration: none;

  transition: background var(--tr), border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.plus-btn:hover {
  background: var(--navy-light);
  border-color: rgba(255,255,255,.45);
  box-shadow: 0 6px 22px rgba(13,43,110,.45);
  transform: scale(1.08);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px;
  margin-left: auto;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius);
  touch-action: manipulation;
}
.hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all var(--tr);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
body.mobile-menu-open { overflow: hidden; }

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: oklch(13% .055 258 / .82);
  cursor: default;
}
.mobile-menu-backdrop[hidden] { display: none !important; }

.mobile-menu {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-x: hidden;
  overflow-y: auto;
  padding: .9rem;
  border: 1px solid oklch(88% .018 258);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 28px 80px oklch(10% .04 258 / .42), 0 8px 24px oklch(10% .04 258 / .2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -47%) scale(.97);
  transition: transform 220ms cubic-bezier(.16,1,.3,1), opacity 180ms ease-out, visibility 0s linear 220ms;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mobile-menu::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s;
}
.mobile-menu__head {
  position: sticky;
  top: -.9rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  margin: -.9rem -.9rem .85rem;
  padding: .55rem .8rem .55rem 1.1rem;
  border-bottom: 1px solid var(--border-light);
  border-radius: 20px 20px 0 0;
  background: var(--white);
  color: var(--navy);
  font-family: var(--font-head);
}
.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9px;
  background: var(--bg-light);
  color: var(--navy);
}
.mobile-menu__nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .4rem;
}
.mobile-menu__nav--public {
  align-items: start;
  gap: .85rem 1rem;
}
.mobile-menu__group { min-width: 0; }
.mobile-menu__group--wide { grid-column: 1 / -1; }
.mobile-menu__section-label {
  display: block;
  margin: 0 0 .35rem;
  padding: 0 .35rem;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.mobile-menu__links {
  display: grid;
  gap: .3rem;
}
.mobile-menu__links--direct {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.mobile-menu__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: .68rem .78rem;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  background: oklch(97.5% .008 258);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: .94rem;
  font-weight: 700;
  transition: background 180ms cubic-bezier(.16,1,.3,1), border-color 180ms cubic-bezier(.16,1,.3,1), color 180ms cubic-bezier(.16,1,.3,1);
}
.mobile-menu__link--sub {
  min-height: 44px;
  padding-block: .58rem;
  font-size: .86rem;
}
.mobile-menu__link:hover,
.mobile-menu__link:focus-visible,
.mobile-menu__link.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}
.mobile-menu__floating {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-top: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
}
.member-btn--menu {
  max-width: none;
  width: auto;
  padding: 0 1rem;
  border-radius: 999px;
  gap: .5rem;
}
.member-btn--menu .member-btn__label {
  display: block;
  opacity: 1;
  max-width: none;
  padding: 0;
}
.plus-btn--menu {
  background: var(--navy);
  color: var(--white);
}
.mobile-menu__btns {
  display: flex; flex-direction: column; gap: var(--sp-sm);
  margin-top: .65rem; padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.mobile-menu__btns .btn {
  min-height: 48px;
  border-radius: 12px;
}

.mobile-menu__nav--member {
  grid-template-columns: minmax(0, 1fr);
  margin-top: .65rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

[data-member-access].is-checking {
  cursor: progress;
  opacity: .62;
  pointer-events: none;
}

@media (max-width: 640px) {
  .mobile-menu {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: .75rem;
    border-radius: 18px;
  }
  .mobile-menu__head {
    top: -.75rem;
    margin: -.75rem -.75rem .7rem;
    border-radius: 18px 18px 0 0;
  }
  .mobile-menu__nav {
    grid-template-columns: minmax(0, 1fr);
    gap: .3rem;
  }
  .mobile-menu__nav--public { gap: .75rem; }
  .mobile-menu__group--wide { grid-column: auto; }
  .mobile-menu__links--direct { grid-template-columns: minmax(0, 1fr); }
  .mobile-menu__link { font-size: .96rem; }
  .mobile-menu__link--sub { font-size: .91rem; }
}

/* ----------------------------------------------------------------
   MEMBERS LOGIN MODAL (Public Bereich)
   ---------------------------------------------------------------- */
body.member-login-open {
  overflow: hidden;
}

.member-login-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
}
.member-login-modal.is-open {
  display: flex;
}

.member-login-modal [hidden] {
  display: none !important;
}

.member-login-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 15, 46, .62);
  backdrop-filter: blur(5px);
}

.member-login-modal__dialog {
  position: relative;
  width: min(100%, 460px);
  padding: clamp(1.2rem, 2vw, 1.75rem);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,.45);
  box-shadow: 0 30px 70px rgba(6,15,46,.34);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(233,244,255,.75) 0%, rgba(255,255,255,.98) 62%),
    var(--white);
  z-index: 1;
}

.member-login-modal__dialog.gast-modal__dialog {
  width: min(100%, 640px);
  max-height: calc(100dvh - 2.4rem);
  overflow-y: auto;
}

@media (max-width: 600px) {
  .gast-modal__dialog .gw-row:not(.gw-row--single) { grid-template-columns: 1fr !important; }
}

.member-login-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--navy);
  font-size: 1.2rem;
  line-height: 1;
}

.member-login-modal__eyebrow {
  margin: 0 0 .3rem;
  font-size: .74rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  font-family: var(--font-head);
  font-weight: 700;
}

.member-login-modal__title {
  margin: 0;
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.2;
  color: var(--navy);
}

.member-login-modal__sub {
  margin: .55rem 0 1rem;
  color: var(--text-light);
  font-size: .95rem;
}

.member-login-form {
  display: grid;
  gap: .55rem;
}

.member-login-form__label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .84rem;
  color: var(--text);
}

.member-login-form__input {
  width: 100%;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  padding: 0 .8rem;
  font-size: .95rem;
  color: var(--text);
  transition: border-color var(--tr), box-shadow var(--tr);
}

.member-login-form__input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(31,113,205,.15);
  outline: none;
}

.member-login-autofill {
  position: relative;
}

.member-login-autofill__list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 4;
  display: grid;
  gap: 4px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(13,43,110,.18);
  max-height: 210px;
  overflow: auto;
}

.member-login-autofill__option {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 9px;
  padding: .52rem .58rem;
  font-family: var(--font-body);
  font-size: .9rem;
}

.member-login-autofill__option:hover,
.member-login-autofill__option.is-active,
.member-login-autofill__option:focus {
  background: var(--blue-light);
  color: var(--navy);
  outline: none;
}

.member-login-autofill__option span {
  color: var(--text-light);
}

.member-login-form__submit {
  margin-top: .5rem;
  border: none;
  border-radius: 12px;
  height: 46px;
  background: linear-gradient(135deg, var(--blue) 0%, #0f4ea7 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  box-shadow: 0 12px 24px rgba(13,67,139,.26);
}

.member-login-form__status {
  margin: .35rem 0 0;
  padding: .65rem .75rem;
  border-radius: 10px;
  font-size: .84rem;
  color: #0f5f2a;
  background: #e8faef;
  border: 1px solid #b8e8c7;
}

.member-login-form__hint {
  margin: .95rem 0 0;
  color: var(--text-light);
  font-size: .84rem;
}

.member-login-form__hint a {
  color: var(--blue);
  text-decoration: underline;
}


/* ================================================================
   5. HERO SECTION (Neu)
   Fullscreen -> Container-Transition beim Scrollen
   ================================================================ */
.hero-feature {
  position: relative;
  height: 160svh; /* 60svh extra für Scroll-Animation */
  background: transparent;
  z-index: 1; /* liegt UNTER den nachfolgenden Sections */
}

/* Static hero variant (used on Buchhaltungsservice): always a centered 1400px card */
.hero-feature--contained {
  height: auto;
  padding: clamp(88px, 10vh, 124px) 0 clamp(42px, 6vh, 72px);
}

.hero-feature--contained .hero-feature__bg {
  background-image: url('../assets/images/Buchhaltungsservice Hero.webp');
}

.hero-feature__sticky {
  /* struktureller Anker – Card ist position:fixed */
  position: relative;
  height: 0;
}

.hero-feature__card {
  position: fixed;   /* bleibt im Viewport, Sections schieben sich darüber */
  inset: 0;
  z-index: 2;        /* unter .section (z-index 5), über hero-section */
  overflow: hidden;
  background: var(--navy-dark);
  isolation: isolate;
  /* inset / border-radius / box-shadow werden per JS interpoliert */
}

.hero-feature__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../assets/images/GBLorg Netzworking Hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroFeatureBgZoom 20s ease-in-out infinite alternate;
}

@keyframes heroFeatureBgZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.08); }
}

.hero-feature__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 70% 100% at 12% 50%, rgba(6,15,46,.62) 0%, rgba(13,43,110,.38) 55%, transparent 80%),
    linear-gradient(135deg, rgba(6,15,46,.56) 0%, rgba(13,43,110,.44) 45%, rgba(21,101,192,.3) 100%);
}

.hero-feature__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding-top: clamp(68px, 9vh, 120px);
}

/* Beim vollflächigen (nicht "--contained") Hero bleibt der Hintergrund
   randlos, aber der Inhalt folgt weiterhin der normalen 1400px-Container-
   Breite mit kleinem Außenabstand - wie überall sonst auf der Seite.
   Die "--contained"-Variante hat dafür weiter unten ihre eigene, bewusst
   randlose Content-Breite (Card selbst ist schon auf 1400px begrenzt). */

.hero-feature__inner {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-feature__label {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}

.hero-feature__headline {
  font-family: var(--font-head);
  font-size: clamp(2rem, 5.5vw, 3.9rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -.025em;
}

.hero-feature__sub {
  font-size: clamp(.95rem, 1.8vw, 1.1rem);
  color: rgba(255,255,255,.78);
  line-height: 1.65;
  max-width: 520px;
}

.hero-feature__actions {
  display: flex;
  gap: .875rem;
  flex-wrap: wrap;
  margin-top: .4rem;
}

.hero-feature__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.9rem;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  transition: color var(--tr);
}

.hero-feature__scroll:hover {
  color: rgba(255,255,255,.95);
}

.hero-feature__scroll-label {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-feature__scroll-icon {
  display: inline-flex;
  animation: heroScrollBounce 1.8s ease-in-out infinite;
}

.hero-feature__headline--typing {
  min-height: 2.35em;
}

.hero-type-line {
  display: block;
}

.hero-type-caret {
  display: inline-block;
  width: 2px;
  height: .94em;
  margin-left: .16em;
  border-radius: 2px;
  background: currentColor;
  vertical-align: -.08em;
  animation: heroTypeCaretBlink .95s steps(1, end) infinite;
}

.hero-type-caret.is-done {
  opacity: 0;
  animation: none;
}

@keyframes heroTypeCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes heroScrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

.hero-feature--contained .hero-feature__sticky {
  height: auto;
}

.hero-feature--contained .hero-feature__card {
  position: relative;
  inset: auto;
  width: min(var(--max-w), calc(100% - var(--page-gutter) - var(--page-gutter)));
  margin: 0 auto;
  min-height: clamp(500px, 72vh, 660px);
  border-radius: 24px;
  box-shadow: 0 28px 52px rgba(8,25,74,.24), 0 10px 22px rgba(8,25,74,.16);
}

.hero-feature--contained .hero-feature__content {
  position: relative;
  height: 100%;
  min-height: clamp(500px, 72vh, 660px);
  padding-top: clamp(72px, 9vh, 110px);
  padding-bottom: clamp(72px, 12vh, 100px);
}

.hero-feature--contained .hero-feature__content.container {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding-right: var(--page-gutter);
  padding-left: var(--page-gutter);
}

.hero-feature--contained .hero-feature__sub {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  filter: blur(5px);
  transition:
    opacity .56s ease,
    transform .72s cubic-bezier(.2,.7,.2,1),
    filter .56s ease;
}

.hero-feature--contained.hero-feature--ready .hero-feature__sub {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  transition-delay: .12s;
}

.hero-feature--contained .hero-feature__actions .btn {
  opacity: 0;
  transform: translate3d(0, 16px, 0) scale(.98);
  filter: blur(4px);
  transition:
    opacity .5s ease,
    transform .64s cubic-bezier(.2,.75,.24,1),
    filter .5s ease;
}

.hero-feature--contained.hero-feature--ready .hero-feature__actions .btn {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.hero-feature--contained.hero-feature--ready .hero-feature__actions .btn:nth-child(1) {
  transition-delay: .28s;
}

.hero-feature--contained.hero-feature--ready .hero-feature__actions .btn:nth-child(2) {
  transition-delay: .4s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-feature--contained .hero-feature__sub,
  .hero-feature--contained .hero-feature__actions .btn,
  .hero-type-caret {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
    transition: none !important;
  }
}

/* #netzwerk margin wird per JS gesetzt (abhängig von Viewport-Höhe) */


/* Kontaktseite-Hero: gleiche Struktur wie Buchhaltungsservice-Hero,
   aber Text rechtsbündig und eigenes Background-Bild. */
.hero-feature--kontakt-page {
  padding-bottom: clamp(.5rem, 1vw, 1rem);
}

.hero-feature--kontakt-page .hero-feature__card {
  min-height: clamp(340px, 46vh, 440px);
}

.hero-feature--kontakt-page .hero-feature__content {
  min-height: clamp(340px, 46vh, 440px);
  padding-top: clamp(32px, 4vh, 56px);
  justify-content: flex-end;
  text-align: right;
}

.hero-feature--kontakt-page + .hero-feature--contact {
  padding-top: 0;
}

.hero-feature--kontakt-page + .hero-feature--contact .hero-feature__bg--contact {
  background-color: transparent;
  padding-top: clamp(.5rem, 1vw, 1rem);
}

.hero-feature--kontakt-page .hero-feature__bg {
  background-image: url('../assets/images/Kontakt-Hero.webp');
  background-position: center 25%;
}

/* mitgliedschaft-bewerben.html nutzt denselben Hero-Aufbau wie die
   Kontaktseite, aber ein anderes Bild. */
body[data-page="mitgliedschaft-bewerben"] .hero-feature--kontakt-page .hero-feature__bg {
  background-image: url('../assets/images/stammtisch Hintergrund.webp');
  background-position: center;
}

.hero-feature--kontakt-page .hero-feature__overlay {
  background:
    radial-gradient(ellipse 70% 100% at 88% 50%, rgba(6,15,46,.62) 0%, rgba(13,43,110,.38) 55%, transparent 80%),
    linear-gradient(225deg, rgba(6,15,46,.56) 0%, rgba(13,43,110,.44) 45%, rgba(21,101,192,.3) 100%);
}

.hero-feature--kontakt-page .hero-feature__inner {
  margin-left: auto;
  align-items: flex-end;
}

.hero-feature--kontakt-page .hero-feature__label {
  margin-bottom: 1.8rem;
}

.hero-feature--kontakt-page .hero-feature__sub {
  margin-top: 1.8rem;
  margin-left: auto;
}

.hero-feature--kontakt-page .hero-feature__actions {
  justify-content: flex-end;
}

/* Foerderungscheck-Hero: analog Kontaktseite, aber linksbuendig mit eigener Bildstimmung. */
.hero-feature--foerder-page {
  padding-bottom: 0;
}

.hero-feature--foerder-page .hero-feature__card {
  min-height: clamp(360px, 50vh, 470px);
}

.hero-feature--foerder-page .hero-feature__content {
  min-height: clamp(360px, 50vh, 470px);
  padding-top: clamp(34px, 4.8vh, 62px);
  justify-content: center;
  text-align: right;
}

.hero-feature--foerder-page .hero-feature__bg {
  background-image: url('../assets/images/Foerdermittel-Check-Start-Card.webp');
  background-position: center 34%;
}

.hero-feature--foerder-page .hero-feature__overlay {
  background:
    radial-gradient(ellipse 84% 120% at 12% 48%, rgba(9,26,74,.72) 0%, rgba(13,43,110,.5) 56%, transparent 82%),
    linear-gradient(210deg, rgba(4,20,62,.58) 2%, rgba(13,43,110,.42) 47%, rgba(10,132,98,.24) 100%);
}

.hero-feature--foerder-page .hero-feature__inner {
  max-width: min(720px, 100%);
  margin-left: auto;
  align-items: flex-end;
}

.hero-feature--foerder-page .hero-feature__label {
  margin-bottom: 1.25rem;
}

.hero-feature--foerder-page .hero-feature__sub {
  margin-top: 1.35rem;
  margin-left: auto;
}

.hero-feature--foerder-page .hero-feature__actions {
  justify-content: flex-end;
}

.hero-feature--foerder-page + .hero-feature--foerder-check-page {
  padding-top: 0;
}

.hero-feature--foerder-check-page {
  padding-top: 0 !important;
  margin-top: 0;
}

.hero-feature--foerder-check-page .hero-feature__bg {
  background-color: transparent;
  padding: 0;
}

.hero-feature--foerder-check-page .wizard-container {
  box-shadow: 0 20px 44px rgba(13,43,110,.14), 0 8px 18px rgba(13,43,110,.08);
}

.hero-feature--foerder-check-page .foerder-check {
  display: grid;
  grid-template-columns: minmax(240px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(1.25rem, 2.2vw, 2rem);
  align-items: start;
}

.hero-feature--foerder-check-page .foerder-check__intro {
  border-right: 1px solid var(--border-light);
  padding-right: clamp(.75rem, 1.8vw, 1.45rem);
}

.hero-feature--foerder-check-page .foerder-check__form {
  align-self: start;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

.foerder-check__facts {
  margin-top: var(--sp-sm);
  display: grid;
  gap: .65rem;
}

.foerder-check__fact {
  background: linear-gradient(135deg, rgba(13,43,110,.05), rgba(21,101,192,.09));
  border: 1px solid rgba(21,101,192,.16);
  border-radius: 12px;
  padding: .72rem .9rem;
}

.foerder-check__fact strong {
  display: block;
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.2;
}

.foerder-check__fact span {
  font-size: .85rem;
  color: var(--text-muted);
}

@media (max-width: 720px) {
  .hero-feature--kontakt-page .hero-feature__content,
  .hero-feature--kontakt-page .hero-feature__inner,
  .hero-feature--kontakt-page .hero-feature__actions {
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .hero-feature--kontakt-page .hero-feature__inner,
  .hero-feature--kontakt-page .hero-feature__sub {
    margin-left: 0;
  }
  .hero-feature--kontakt-page .hero-feature__overlay {
    background:
      linear-gradient(180deg, rgba(6,15,46,.55) 0%, rgba(13,43,110,.45) 60%, rgba(21,101,192,.32) 100%);
  }

  .hero-feature--foerder-page .hero-feature__overlay {
    background:
      linear-gradient(180deg, rgba(6,15,46,.56) 0%, rgba(13,43,110,.46) 55%, rgba(10,132,98,.3) 100%);
  }

  .hero-feature--foerder-page .hero-feature__content,
  .hero-feature--foerder-page .hero-feature__inner,
  .hero-feature--foerder-page .hero-feature__actions {
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .hero-feature--foerder-page .hero-feature__inner,
  .hero-feature--foerder-page .hero-feature__sub {
    margin-left: 0;
  }

  .hero-feature--foerder-check-page .foerder-check {
    grid-template-columns: 1fr;
  }

  .hero-feature--foerder-check-page .foerder-check__intro {
    border-right: 0;
    border-bottom: 1px solid var(--border-light);
    padding-right: 0;
    padding-bottom: 1rem;
  }

  .hero-feature--foerder-check-page .foerder-check__form {
    margin: 0;
  }
}


/* Stammtisch-finden-Hero: Text linksbündig (Standard), eigenes Bild, Such-Bar im Hero. */
.hero-feature--stammtisch-page {
  padding-bottom: clamp(.5rem, 1vw, 1rem);
}

.hero-feature--stammtisch-page .hero-feature__card {
  min-height: clamp(340px, 46vh, 440px);
}

.hero-feature--stammtisch-page .hero-feature__content {
  min-height: clamp(340px, 46vh, 440px);
  padding-top: clamp(32px, 4vh, 56px);
}

.hero-feature--stammtisch-page .hero-feature__bg {
  background-image: url('../assets/images/Stammtisch-finden-hero.webp');
  background-position: center 25%;
}

/* Headline hat nur 1 Typing-Zeile – kein min-height-Reserve für 2. Zeile.
   Inner-Gap zwischen Headline und Subtitle entfernt. */
.hero-feature--stammtisch-page .hero-feature__headline--typing {
  min-height: 0;
}

.hero-feature--stammtisch-page .hero-feature__inner {
  gap: 0;
}

.hero-feature--stammtisch-page .hero-feature__label {
  margin-bottom: .6rem;
}

.hero-feature--stammtisch-page .hero-feature__sub {
  margin-top: 4rem;
}

.hero-feature--stammtisch-page .hero-feature__search {
  margin-top: 1.1rem;
}

.hero-feature--stammtisch-page .hero-feature__overlay {
  background:
    radial-gradient(ellipse 70% 100% at 12% 50%, rgba(6,15,46,.62) 0%, rgba(13,43,110,.38) 55%, transparent 80%),
    linear-gradient(135deg, rgba(6,15,46,.56) 0%, rgba(13,43,110,.44) 45%, rgba(21,101,192,.3) 100%);
}

/* Search-Bar im Hero: größer, klar lesbar auf dunklem Bild */
.hero-feature--stammtisch-page .hero-feature__search {
  margin-top: .9rem;
  width: 100%;
  max-width: 480px;
  height: 54px;
  padding: 8px 8px 8px 14px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.6);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(6,15,46,.28), 0 4px 10px rgba(6,15,46,.18);
  backdrop-filter: blur(4px);
}

.hero-feature--stammtisch-page .hero-feature__search .st-search-bar__input {
  font-size: 0.95rem;
}

.hero-feature--stammtisch-page .hero-feature__search .st-search-bar__btn {
  width: 38px;
  height: 38px;
}

@media (max-width: 720px) {
  .hero-feature--stammtisch-page .hero-feature__search {
    height: 48px;
  }
}


/* ================================================================
   6. ALLGEMEINE SECTION-STYLES & UTILITIES
   ================================================================ */
.section {
  padding: var(--section-v) 0;
  position: relative;
  z-index: 5; /* schiebt sich von unten ÜBER die fixed Hero-Card (z-index 2) */
}

.section--white  { background: var(--white); }
.section--light  { background: var(--bg-light); }
.section--dark   { background: var(--bg-dark); position: relative; }
.section--dark::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3CfeColorMatrix in='noise' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}
.section--dark > * {
  position: relative;
  z-index: 1;
}

/* Mitgliedschafts-Section: Netzwerkbild mit blauem Overlay */
#beitreten.section--dark {
  background-image:
    linear-gradient(135deg, rgba(4,11,34,.97) 0%, rgba(10,34,90,.96) 45%, rgba(18,86,176,.93) 100%),
    url('../assets/images/stammtisch Hintergrund.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.section--dotmap .two-col__text {
  position: relative;
}
.section--dotmap .two-col__text::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('../assets/images/dott-map-1.webp');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 90% auto;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}
.section--dotmap .two-col__text > * {
  position: relative;
  z-index: 1;
}

/* Dekorativer Kreis in dunkler Section */
.section--dark::before {
  content: '';
  position: absolute;
  top: -180px; right: -180px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,101,192,.25) 0%, transparent 70%);
  pointer-events: none;
}

/* Preisgrafik in der dunklen Mitgliedschafts-Section */
.membership-pricing {
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-sm);
  padding: var(--sp-lg);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 16px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
}
.membership-pricing__top {
  margin-bottom: 1rem;
}
.membership-pricing__heading {
  margin-bottom: .4rem;
}
.membership-pricing__hint {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
  line-height: 1.55;
}
.membership-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.membership-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--sp-lg);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,255,255,.17);
  background: rgba(4,16,52,.35);
  text-align: left;
  transition: all 0.2s ease-out;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  overflow: hidden;
}

.membership-price-card::before {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(21,101,192,0.15) 0%, transparent 70%);
  pointer-events: none;
  left: var(--glow-x, 50%);
  top: var(--glow-y, 50%);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.membership-price-card:hover::before {
  opacity: 1;
}

.membership-price-card__btn {
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
}

.membership-price-card:nth-child(1) { animation-delay: 0.1s; }
.membership-price-card:nth-child(2) { animation-delay: 0.2s; }
.membership-price-card:nth-child(3) { animation-delay: 0.3s; }

.membership-price-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 16px 40px rgba(21,101,192,.2);
}

.membership-price-card--best {
  border-color: rgba(255,255,255,.45);
  background: linear-gradient(150deg, rgba(21,101,192,.42) 0%, rgba(8,25,74,.48) 100%);
  box-shadow: 0 10px 24px rgba(4,12,36,.28);
  animation: fadeInUp 0.6s ease-out forwards, pulseBest 3s ease-in-out infinite;
}

.membership-price-card--best:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(21,101,192,.35);
}

.membership-price-card__badge {
  position: absolute;
  top: .8rem;
  right: .8rem;
  display: inline-block;
  padding: .28rem .85rem;
  border-radius: 999px;
  background: #dff6e8;
  color: #1f8f56;
  border: 1px solid rgba(31,143,86,.28);
  box-shadow: 0 0 0 rgba(59,177,103,0);
  animation: bestChoiceGlow 2.2s ease-in-out infinite;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
@keyframes bestChoiceGlow {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(59,177,103,0),
      0 0 0 0 rgba(59,177,103,0);
  }
  50% {
    box-shadow:
      0 0 0 2px rgba(59,177,103,.2),
      0 0 16px rgba(59,177,103,.45);
  }
}
.membership-price-card__label {
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 700;
  color: rgba(255,255,255,.94);
  margin-bottom: .4rem;
  line-height: 1.35;
}
.membership-price-card__value {
  font-family: var(--font-head);
  font-size: clamp(1.55rem, 2.6vw, 2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.05;
  margin-bottom: .2rem;
}
.membership-price-card__monthly {
  color: rgba(255,255,255,.82);
  font-size: .78rem;
  line-height: 1.35;
  margin-bottom: .4rem;
}
.membership-price-card__meta {
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  line-height: 1.45;
  margin-bottom: .55rem;
}
.membership-price-card__total {
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  line-height: 1.4;
  padding-top: .45rem;
  border-top: 1px solid rgba(255,255,255,.16);
  margin-bottom: .45rem;
}
.membership-price-card__saving {
  color: rgba(255,255,255,.75);
  font-size: .78rem;
  line-height: 1.4;
  margin-bottom: .65rem;
}
.membership-price-card__saving-chip {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(34,197,94,.2);
  border: 1px solid rgba(34,197,94,.35);
  color: rgba(212,255,229,.95);
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
}
.membership-price-card__saving-chip--neutral {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.24);
  color: rgba(255,255,255,.86);
}
.membership-price-card__features {
  margin: 0 0 .9rem;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}
.membership-price-card__features li {
  position: relative;
  padding-left: 1rem;
  color: rgba(255,255,255,.86);
  font-size: .78rem;
  line-height: 1.38;
}
.membership-price-card__features li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: .02rem;
  color: #8ff0bf;
  font-size: .72rem;
  font-weight: 700;
}
.membership-price-card__btn {
  margin-top: auto;
  justify-content: center;
  width: 100%;
}
.membership-price-card__btn:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(21,101,192,.28);
}
.membership-guest-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xl);
  padding: var(--sp-md) var(--sp-lg);
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-card);
  max-width: 900px;
  margin: var(--sp-lg) auto 0;
  backdrop-filter: blur(10px);
}
.membership-guest-cta__icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: rgba(255,255,255,.7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.membership-guest-cta__text {
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  line-height: 1.5;
  flex: 1;
  text-align: left;
}
.membership-guest-cta__btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: .65rem 1.4rem;
  font-size: .9rem;
}

/* Section-Badge (kleines Label-Element über H2) */
.section-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid rgba(21,101,192,.18);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: var(--sp-md);
}
.section-badge--light {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.2);
}

/* Section Titles */
.section-title {
  margin-bottom: var(--sp-md);
}
.section-title--left { text-align: left; }
.section-title--white { color: var(--white); }

.section-lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}
.section-lead--left { text-align: left; }
.section-lead--light { color: rgba(255,255,255,.75); }

.section-text {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--sp-md);
}
.section-text--light { color: rgba(255,255,255,.65); }

.section-btns {
  display: flex;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-top: var(--sp-xl);
}
.section-btns--center {
  justify-content: center;
  margin-top: var(--sp-2xl);
}

.section--boxed {
  background: var(--white);
}
.section-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: clamp(1.5rem, 3vw, 3rem);
}


/* ================================================================
   7. SECTION: WAS IST GBLORG – Two Column Layout
   ================================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5xl);
  align-items: center;
}
.two-col__text { display: flex; flex-direction: column; }
.two-col__aside { padding-top: 1rem; }

.two-col__img-wrap {
  border-radius: 12px;
  overflow: hidden;
  align-self: stretch;
  min-height: 420px;
}
.two-col__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Empfehlungsmarketing Section */
.section--referral-advantage {
  padding-top: clamp(4.8rem, 8vw, 7.2rem);
  padding-bottom: clamp(4.8rem, 8vw, 7.2rem);
}

.section--referral-advantage .container {
  max-width: calc(var(--max-w) + var(--page-gutter) + var(--page-gutter));
}

.referral-cinema {
  position: relative;
}

.referral-cinema__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "visual intro";
  gap: clamp(2rem, 3.3vw, 3.4rem);
  align-items: center;
}

.referral-cinema__intro {
  grid-area: intro;
  max-width: 56ch;
  padding-left: clamp(.2rem, .9vw, .9rem);
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  transition:
    opacity 620ms ease,
    transform 820ms cubic-bezier(.2,.74,.22,1),
    filter 420ms ease;
}

.section--referral-advantage.motion-ready .referral-cinema__intro {
  opacity: 0;
  transform: translate3d(-20px, 18px, 0) scale(.985);
  filter: none;
}

.section--referral-advantage.motion-ready.is-active .referral-cinema__intro {
  opacity: 1;
  filter: none;
  transform: translate3d(0, 0, 0) scale(1);
}

.referral-cinema__lead {
  margin-bottom: .9rem;
  max-width: 52ch;
}

.referral-cinema__closing {
  margin-bottom: 0;
  max-width: 50ch;
}

.referral-cinema__visual {
  grid-area: visual;
  min-height: 560px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-right: 0;
}

.referral-visual-card {
  width: min(420px, 80%);
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(13,43,110,.1);
  box-shadow: 0 26px 44px rgba(13,43,110,.2), 0 8px 20px rgba(13,43,110,.12);
  margin: 0;
}

.referral-visual-image {
  display: block;
  width: 100%;
  height: clamp(500px, 65vh, 620px);
  object-fit: cover;
  object-position: center;
}

.referral-cinema__runway {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  transform: none;
  overflow: visible;
  z-index: 3;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: flex-end;
  padding: clamp(.35rem, 1vw, .9rem) clamp(1.1rem, 2.2vw, 2rem) clamp(.35rem, 1vw, .9rem) 0;
}

.referral-ribbon {
  --reveal-order: 0;
  --r-local-x: 0px;
  --r-local-y: 0px;
  --zig-x: 0px;
  --r-tilt: 0;
  --icon-color: var(--blue);
  position: relative;
  width: clamp(258px, 28vw, 324px);
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  align-items: center;
  gap: var(--sp-md);
  border-radius: var(--radius-card);
  padding: var(--sp-md) var(--sp-md);
  border: 1px solid rgba(21,101,192,.34);
  background:
    linear-gradient(138deg, rgba(255,255,255,.9) 0%, rgba(255,255,255,.78) 100%);
  box-shadow:
    0 10px 22px rgba(13,43,110,.14),
    0 3px 8px rgba(13,43,110,.08),
    inset 0 1px 0 rgba(255,255,255,.92);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  opacity: 1;
  filter: blur(0);
  transform: translate3d(var(--zig-x), 0, 0);
  transition:
    opacity 460ms ease,
    transform 760ms cubic-bezier(.2,.74,.22,1),
    filter 420ms ease,
    border-color var(--tr),
    box-shadow var(--tr);
  transition-delay: calc(80ms + (var(--reveal-order) * 90ms));
  pointer-events: auto;
}

.referral-ribbon::before {
  content: none;
}

.referral-cinema__runway .referral-ribbon:nth-child(odd) {
  --zig-x: 0px;
  --r-tilt: -1.2;
}

.referral-cinema__runway .referral-ribbon:nth-child(even) {
  --zig-x: -34px;
  --r-tilt: 1.2;
}

.referral-ribbon--top-right {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

.referral-ribbon--mid-left {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

.referral-ribbon--center-right {
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}

.referral-ribbon--bottom-left {
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
}

.referral-ribbon--bottom-right {
  top: auto;
  right: auto;
  left: auto;
  bottom: auto;
}

.section--referral-advantage.motion-ready .referral-ribbon {
  opacity: 0;
  filter: none;
  transform: translate3d(calc(var(--zig-x) + var(--r-local-x)), calc(var(--r-local-y) + 22px), 0) scale(.96) rotate(calc(var(--r-tilt) * 1deg));
}

.section--referral-advantage.motion-ready.is-active .referral-ribbon {
  opacity: 1;
  filter: none;
  transform: translate3d(var(--zig-x), 0, 0) scale(1) rotate(0deg);
}

.referral-ribbon:hover {
  border-color: rgba(21,101,192,.55);
  box-shadow:
    0 12px 24px rgba(13,43,110,.16),
    0 4px 10px rgba(13,43,110,.1),
    inset 0 1px 0 rgba(255,255,255,.95);
}

.referral-ribbon__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  color: var(--icon-color);
  border: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  flex-shrink: 0;
}

.referral-cinema__runway .referral-ribbon:nth-child(1) { --icon-color: #2563eb; }
.referral-cinema__runway .referral-ribbon:nth-child(2) { --icon-color: #f59e0b; }
.referral-cinema__runway .referral-ribbon:nth-child(3) { --icon-color: #10b981; }
.referral-cinema__runway .referral-ribbon:nth-child(4) { --icon-color: #8b5cf6; }
.referral-cinema__runway .referral-ribbon:nth-child(5) { --icon-color: #ef476f; }

.referral-ribbon__index svg {
  width: 1.62rem;
  height: 1.62rem;
}

.referral-ribbon__index * {
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.referral-ribbon__title {
  margin: 0 0 .08rem;
  color: #263b62;
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.22;
}

.referral-ribbon__text {
  margin: 0;
  color: #3f5377;
  font-size: .9rem;
  line-height: 1.38;
}

@media (prefers-reduced-motion: reduce) {
  .section--referral-advantage *,
  .section--referral-advantage::before,
  .section--referral-advantage::after {
    animation: none !important;
    transition: none !important;
  }
  .section--referral-advantage .referral-cinema__intro,
  .section--referral-advantage .referral-ribbon {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
  }
}

/* Info-Box (rechte Spalte) */
.info-box {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 0;
}
.info-box__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}
.info-box__item:first-child { padding-top: 0; }
.info-box__item:last-child  { padding-bottom: 0; border-bottom: none; }
.info-box__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue);
  box-shadow: var(--shadow-sm);
}
.info-box__item strong {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
  display: block;
  margin-bottom: .2rem;
}
.info-box__item p {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
}


/* ================================================================
   8. SECTION: SERVICES
   ================================================================ */
.section--services {
  background: linear-gradient(160deg, #0a1f5c 0%, #0d2b6e 45%, #07173f 100%);
  padding-top: clamp(90px, 11vw, 150px);
  padding-bottom: clamp(90px, 11vw, 150px);
  overflow-x: hidden;
  position: relative;
}
.section--services::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3CfeColorMatrix in='noise' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 0;
}
.section--services > * {
  position: relative;
  z-index: 1;
}
.section--services::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(800px 600px at 67% 50%, rgba(255,255,255,.55) 0%, rgba(160,200,255,.32) 35%, transparent 65%),
    radial-gradient(900px 600px at 10% 110%, rgba(30,120,255,.22) 0%, transparent 65%),
    radial-gradient(700px 500px at 90% -10%, rgba(80,160,255,.16) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
.section--services .section-badge {
  color: rgba(255,255,255,.9);
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
}
.section--services .section-title {
  color: var(--white);
}
.section--services .section-lead {
  color: rgba(255,255,255,.72);
}

.services-intro {
  max-width: none;
  width: 100%;
  align-self: center;
  z-index: 2;
}

.services-intro__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-2xl);
  margin-top: var(--sp-xl);
}

.services-titles-nav {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  border-left: 1px solid rgba(255,255,255,.15);
  padding-left: 1.25rem;
}

.services-title-btn {
  display: block;
  overflow: hidden;
  background: none;
  border: none;
  cursor: pointer;
  padding: .2rem 0;
  color: rgba(255,255,255,.38);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: .82rem;
  text-align: left;
  transition: color .35s ease, font-size .35s ease, font-family .35s ease;
  line-height: 1.4;
  white-space: normal;
}
.services-title-btn:hover {
  color: rgba(255,255,255,.7);
}
.services-title-btn.is-active {
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(.92rem, 1.2vw, 1.05rem);
}
.services-title-btn.is-active .title-inner {
  animation: titleWheelDown .4s cubic-bezier(.4,0,.2,1) forwards;
}
.services-title-btn.is-active.dir-up .title-inner {
  animation: titleWheelUp .4s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes titleWheelDown {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
@keyframes titleWheelUp {
  from { transform: translateY(100%);  opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseBest {
  0%, 100% {
    box-shadow: 0 10px 24px rgba(4,12,36,.28);
  }
  50% {
    box-shadow: 0 10px 40px rgba(21,101,192,.4);
  }
}

.services-track {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 0 auto;
  padding-left: max(var(--page-gutter), calc((100% - var(--max-w)) / 2));
  padding-right: 0;
  --services-content-w: min(var(--max-w), calc(100% - var(--page-gutter) - var(--page-gutter)));
  min-height: auto;
}

.services-sticky {
  position: relative;
  top: auto;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(280px, calc((var(--max-w) - 5rem) / 2)) minmax(0, 1fr);
  align-items: center;
  gap: 5rem;
  width: 100%;
  overflow: visible;
  padding: 0;
}

.services-runner {
  grid-column: 2;
  align-self: start;
  position: relative;
  width: 100%;
  height: clamp(320px, 50vh, 480px);
  overflow: hidden;
  padding-bottom: 0;
}

.services-stack--scroll {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: max-content;
  height: 100%;
  transform: translate3d(0, 0, 0);
  transition: transform .58s cubic-bezier(.22,.61,.36,1);
}

.services-stack--scroll .stack-card {
  position: relative;
  width: 650px;
  height: 70%;
  flex: 0 0 650px;
  opacity: .4;
  transition: opacity .45s ease, transform .5s cubic-bezier(.22,.61,.36,1);
  box-shadow: 0 18px 38px rgba(13,43,110,.13), 0 3px 10px rgba(13,43,110,.08);
}
.services-stack--scroll .stack-card.is-active {
  opacity: 1;
  height: 100%;
}

.services-controls {
  grid-column: 2;
  margin-top: .8rem;
  display: flex;
  align-items: center;
  gap: .8rem;
}
.services-arrow {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--navy);
  font-size: 1.3rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.services-arrow:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}
.services-arrow:disabled {
  opacity: .45;
  cursor: not-allowed;
}
.services-dots {
  display: flex;
  align-items: center;
  gap: .35rem;
}
.services-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 0;
  background: rgba(13,43,110,.24);
}
.services-dot.is-active {
  width: 20px;
  background: var(--blue);
}

.service-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  display: flex;
  flex-direction: row;
  transition: all var(--tr);
  color: var(--text);
}
.service-card__image {
  width: 50%;
  flex-shrink: 0;
  overflow: hidden;
}
.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.service-card__body {
  flex: 1;
  align-self: stretch;
  padding: var(--sp-lg) var(--sp-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-md);
}
.service-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.service-card__icon svg {
  color: var(--blue);
}
.service-card__title {
  color: var(--navy);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
}
.service-card__text {
  color: var(--text-muted);
  max-width: 48ch;
}
.service-card__link {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px 20px;
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  transition: all var(--tr);
}
.service-card__link:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(21,101,192,.28);
}
.service-card__link::after {
  content: '\2192';
  font-size: 1rem;
  line-height: 1;
}
.service-card__badge {
  margin-top: auto;
  display: inline-flex;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-light);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.service-card--coming {
  border-style: dashed;
}
.service-card--coming:hover {
  transform: none;
}


/* ================================================================
   9. SECTION: SCHRITTE (Step Cards)
   ================================================================ */
/* ================================================================
   SECTION: JOURNEY / SCHRITT FÜR SCHRITT
   ================================================================ */
.section--journey {
  background: var(--bg-light);
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(40px, 5vw, 64px);
  overflow: hidden;
}
.section--journey .container {
  max-width: calc(var(--max-w) + var(--page-gutter) + var(--page-gutter));
  margin: 0 auto;
}

.journey-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: var(--sp-lg);
  border: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(13,43,110,.10), 0 1px 4px rgba(13,43,110,.06);
  max-width: 1400px;
  margin: 0 auto;
}

.journey-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: end;
  margin-bottom: var(--sp-2xl);
}

/* Buchhaltungsservice: Ablauf-Sektion in Navy */
#ablauf.section--light {
  background: linear-gradient(165deg, #07173f 0%, #0d2b6e 50%, #08194a 100%);
  position: relative;
  overflow: hidden;
}
#ablauf.section--light::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 500px at 80% 20%, rgba(96,165,250,.18) 0%, transparent 60%),
    radial-gradient(600px 400px at 10% 100%, rgba(239,68,68,.15) 0%, transparent 60%);
  pointer-events: none;
}
#ablauf.section--light::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='nf'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3CfeColorMatrix in='noise' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23nf)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}
#ablauf.section--light > .container {
  position: relative;
  z-index: 1;
}
#ablauf .section-badge {
  color: rgba(255,255,255,.94);
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.28);
}
#ablauf .section-title {
  color: var(--white);
}
#ablauf .section-text {
  color: rgba(233,242,255,.82);
}

/* ---- Track ---- */
.journey-track {
  position: relative;
  overflow: visible;
}
.journey-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.journey-plane {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 38px;
  height: 38px;
  animation: flyAlongTrack 8s ease-in-out infinite;
  transform-origin: center;
}

.journey-plane svg {
  color: var(--blue);
  filter: drop-shadow(0 0 12px rgba(21, 101, 192, 0.8)) drop-shadow(0 0 24px rgba(21, 101, 192, 0.5));
}

@keyframes flyAlongTrack {
  0% {
    left: -1.2%;
    top: 45px;
  }
  12.5% {
    left: 12.5%;
    top: 45px;
  }
  37.5% {
    left: 37.5%;
    top: 155px;
  }
  62.5% {
    left: 62.5%;
    top: 45px;
  }
  87.5% {
    left: 87.5%;
    top: 155px;
  }
  100% {
    left: calc(100% - 50px);
    top: 155px;
  }
}

/* ---- Steps Grid ---- */
.journey-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.journey-step--high { padding-top: 0; }
.journey-step--low  { padding-top: 110px; }

/* Badge mit Dreieck */
.journey-step__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: var(--blue);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: var(--sp-md);
  position: relative;
}
.journey-step__badge::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--blue);
  border-bottom: none;
}

/* Kreis mit Icon */
.journey-step__circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid rgba(255,255,255,.2);
  box-shadow:
    0 0 0 10px rgba(30,90,255,.12),
    0 0 24px 4px rgba(30,90,255,.45),
    0 0 48px 8px rgba(30,90,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  flex-shrink: 0;
  transition: background .25s ease, box-shadow .25s ease;
}
.journey-step:hover .journey-step__circle,
.journey-step.is-glowing .journey-step__circle {
  background: #2563ff;
  box-shadow:
    0 0 0 12px rgba(30,90,255,.18),
    0 0 32px 8px rgba(30,90,255,.65),
    0 0 64px 16px rgba(30,90,255,.3);
}

.journey-step__title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .6rem;
}
.journey-step__text {
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

/* ---- Buchhaltungsservice: Ablauf als heller Graph ---- */
.bh-flowmap {
  position: relative;
  overflow: hidden;
  margin-top: var(--sp-lg);
  padding: var(--sp-xl);
  border-radius: var(--radius-card);
  border: 1px solid rgba(13,43,110,.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  background-position: center;
  box-shadow: 0 18px 42px rgba(13,43,110,.11), 0 4px 12px rgba(13,43,110,.05);
}

#ablauf .bh-flowmap {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 20px 50px rgba(4,12,36,.35);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.bh-flowmap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(13,43,110,.12) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(13,43,110,.12) 0 1px, transparent 1px 26px);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.24) 52%, rgba(0,0,0,0) 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.24) 52%, rgba(0,0,0,0) 100%);
}

#ablauf .bh-flowmap::before {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.08) 0 1px, transparent 1px 26px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 1px, transparent 1px 26px);
  -webkit-mask-image: none;
  mask-image: none;
}

#ablauf .bh-flowmap::after {
  content: none;
}

.bh-flowmap > * {
  position: relative;
  z-index: 1;
}

/* Visual Track – SVG-Welle als Hero mit schwebenden Step-Cards */
.bh-track {
  position: relative;
  width: 100%;
  margin: var(--sp-xl) 0 var(--sp-2xl);
  aspect-ratio: 1200 / 360;
  isolation: isolate;
}

@media (min-width: 1025px) {
  .bh-track.is-drawn {
    aspect-ratio: 1200 / 320;
  }
}

.bh-track__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  z-index: 0;
}

.bh-track__area {
  fill: url(#bhTrackArea);
  opacity: 0;
  transition: opacity .8s ease .9s;
}
.bh-track.is-drawn .bh-track__area { opacity: 1; }

.bh-track__line {
  fill: none;
  stroke: url(#bhTrackLine);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 14px rgba(21,101,192,.22));
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.6s cubic-bezier(.4,0,.2,1);
}
.bh-track.is-drawn .bh-track__line { stroke-dashoffset: 0; }

.bh-track__dot {
  fill: var(--white);
  stroke: var(--blue);
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(.4);
  transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
  filter: drop-shadow(0 4px 10px rgba(21,101,192,.3));
}
.bh-track.is-drawn .bh-track__dot {
  opacity: 1;
  transform: scale(1);
}
.bh-track.is-drawn .bh-track__dot:nth-of-type(1) { transition-delay: .25s; }
.bh-track.is-drawn .bh-track__dot:nth-of-type(2) { transition-delay: .65s; }
.bh-track.is-drawn .bh-track__dot:nth-of-type(3) { transition-delay: 1.05s; }
.bh-track.is-drawn .bh-track__dot:nth-of-type(4) { transition-delay: 1.4s; }

/* Schwebende Step-Cards */
.bh-track__card {
  position: absolute;
  width: clamp(160px, 15vw, 200px);
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 14px 28px rgba(13,43,110,.13), 0 4px 10px rgba(13,43,110,.06);
  transform: translate(-50%, 12px);
  z-index: 2;
  opacity: 0;
  transition: opacity .55s ease, transform .55s cubic-bezier(.4,0,.2,1);
}
.bh-track.is-drawn .bh-track__card {
  opacity: 1;
  transform: translate(-50%, 0);
}
.bh-track.is-drawn .bh-track__card--1 { transition-delay: .35s; }
.bh-track.is-drawn .bh-track__card--2 { transition-delay: .75s; }
.bh-track.is-drawn .bh-track__card--3 { transition-delay: 1.15s; }
.bh-track.is-drawn .bh-track__card--4 { transition-delay: 1.5s; }

/* Anker (1200x480): (120,260)=10%/54.2%, (440,180)=36.7%/37.5%,
   (760,300)=63.3%/62.5%, (1080,180)=90%/37.5% – Cards mit ~6% Gap */
.bh-track__card--1 { left: 10%;   top: 60%; }
.bh-track__card--2 { left: 36.7%; bottom: 68.3%; }
.bh-track__card--3 { left: 63.3%; top: 68.3%; }
.bh-track__card--4 { left: 90%;   bottom: 68.3%; }

/* Connector-Tail vom Card zum Anker */
.bh-track__card::after {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 21px;
  background: linear-gradient(var(--tail-dir, 180deg), rgba(21,101,192,.55), rgba(21,101,192,0));
  transform: translateX(-50%);
}
.bh-track__card--1::after,
.bh-track__card--3::after {
  bottom: 100%;
  --tail-dir: 0deg;
}
.bh-track__card--2::after,
.bh-track__card--4::after {
  top: 100%;
  --tail-dir: 180deg;
}

.bh-track__card-num {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .35rem;
}
.bh-track__card-title {
  font-family: var(--font-head);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .25rem;
  line-height: 1.25;
}
.bh-track__card-text {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Outcome-Karten als horizontaler Karussell-Strip */
.bh-flowmap__insights {
  display: flex;
  gap: var(--sp-md);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--sp-xl);
  padding: 6px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: rgba(21,101,192,.3) transparent;
}
.bh-flowmap__insights::-webkit-scrollbar { height: 6px; }
.bh-flowmap__insights::-webkit-scrollbar-thumb {
  background: rgba(21,101,192,.25);
  border-radius: 999px;
}
.bh-flowmap__insights .bh-solution-card {
  flex: 0 0 calc((100% - var(--sp-md) * 2) / 3);
  min-width: 280px;
  scroll-snap-align: start;
}

@media (prefers-reduced-motion: reduce) {
  .bh-track__line,
  .bh-track__dot,
  .bh-track__card,
  .bh-track__area { transition: none !important; }
  .bh-track__line { stroke-dashoffset: 0; }
  .bh-track__dot, .bh-track__card, .bh-track__area { opacity: 1; transform: translate(-50%, 0); }
}



/* ================================================================
   10. SECTION: DUNKEL
   (wird via .section--dark gehandhabt, s. oben)
   ================================================================ */


/* ================================================================
   11. SECTION: FAQ – Bildkarte
   ================================================================ */
.faq-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-card);
  isolation: isolate;
}

.faq-card__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.faq-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,43,110,.05) 0%, rgba(13,43,110,.4) 60%, rgba(6,13,36,.94) 100%);
  z-index: -1;
}

.faq-card__logo {
  position: absolute;
  top: var(--sp-xl); left: var(--sp-xl);
  height: 26px; width: auto;
  filter: brightness(0) invert(1);
}

.faq-card__content {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  min-height: 420px;
  padding: var(--sp-xl);
}

.faq-card__text { max-width: 560px; }

.faq-card__eyebrow {
  margin: 0 0 .5rem;
  color: #a9c9f2;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.faq-card__button { flex-shrink: 0; }

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.faq-item__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.97rem;
  color: var(--navy);
  user-select: none;
  transition: color var(--tr), border-color var(--tr), box-shadow var(--tr);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
}
.faq-item__q:hover { color: var(--blue); }
.faq-item[open] .faq-item__q {
  color: var(--blue);
  border-color: rgba(21,101,192,.3);
  box-shadow: var(--shadow-sm);
}

.faq-chevron { flex-shrink: 0; transition: transform var(--tr); }
.faq-item[open] .faq-chevron { transform: rotate(180deg); }

.faq-item__a {
  position: relative;
  align-self: flex-end;
  width: calc(100% - clamp(14px, 3vw, 28px));
  margin-left: clamp(14px, 3vw, 28px);
  margin-bottom: 14px;
  padding: var(--sp-lg) var(--sp-lg);
  font-size: 0.9rem;
  color: var(--white);
  line-height: 1.7;
  background: var(--navy);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(13,43,110,.16);
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.faq-item__a::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: -14px;
  width: 0;
  height: 0;
  border-top: 15px solid var(--navy);
  border-right: 13px solid transparent;
  border-left: 13px solid transparent;
}

.faq-item[open] .faq-item__a {
  opacity: 1;
  pointer-events: auto;
}

.faq-item__a p { margin: 0 0 .7rem; }
.faq-item__a p:last-child { margin-bottom: 0; }
.faq-item__a ul,
.faq-item__a ol { padding-left: 1.1rem; margin: .45rem 0; }
.faq-item__a a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.faq-item__a img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: .55rem 0;
  display: block;
}
.faq-rich-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: .6rem 0;
}
.faq-item__a table {
  width: 100%;
  min-width: 520px;
  table-layout: fixed;
  border-collapse: collapse;
  background: rgba(255,255,255,.08);
}
.faq-item__a th,
.faq-item__a td {
  border: 1px solid rgba(255,255,255,.45);
  padding: .42rem .5rem;
  vertical-align: top;
  font-size: .86rem;
  word-break: break-word;
}
.faq-item__a th {
  background: rgba(255,255,255,.14);
  font-weight: 700;
}
.faq-search-results {
  width: 100%;
  max-width: none;
  margin-top: .75rem;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(13,43,110,.08);
  padding: .7rem .7rem .5rem;
}

.faq-search-results__label {
  font-size: .83rem;
  color: var(--text-muted);
  padding: 0 .3rem .4rem;
}

.faq-search-results__list {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.faq-search-result {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  padding: .55rem .7rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
  transition: border-color var(--tr), background var(--tr), transform var(--tr);
}

.faq-search-result:hover {
  border-color: rgba(21,101,192,.38);
  background: #f2f7ff;
  transform: translateY(-1px);
}

.faq-search-result__topic {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue);
}

.faq-search-result__q {
  font-size: .87rem;
  line-height: 1.4;
  color: var(--navy);
}

.faq-search-result__a {
  font-size: .8rem;
  line-height: 1.4;
  color: var(--text-muted);
}

.faq-search-meta {
  margin-top: .7rem;
  font-size: .9rem;
  color: var(--text-muted);
}

.faq-empty {
  max-width: 820px;
  margin: 0 auto 1rem;
  padding: .85rem 1rem;
  border: 1px solid rgba(154, 78, 8, .26);
  border-radius: 10px;
  background: #fff6ea;
  color: #7a3e06;
  font-size: .9rem;
}

#faq-themen .contact-topic[hidden] {
  display: none;
}


/* ================================================================
   13. FOOTER
   ================================================================ */
.footer { background: #060d24; color: rgba(255,255,255,.55); position: relative; z-index: 5; }

.footer__top { padding: var(--sp-2xl) 0 var(--sp-xl); border-bottom: 1px solid rgba(255,255,255,.07); }

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: var(--sp-xl);
  justify-content: space-between;
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer__logo {
  display: block;
  max-width: 180px;
  height: auto;
  filter: brightness(0) invert(1); /* Logo komplett in Weiß */
  margin-bottom: var(--sp-md);
}

.footer__col-title {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-lg);
}

.footer__links { display: flex; flex-direction: column; gap: var(--sp-sm); }
.footer__links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.5);
  transition: color var(--tr);
}
.footer__links a:hover { color: var(--white); }

.footer__address {
  font-size: 0.88rem;
  line-height: 1.85;
  color: rgba(255,255,255,.5);
}
.footer__address strong { color: rgba(255,255,255,.8); }
.footer__address a { color: rgba(255,255,255,.5); transition: color var(--tr); }
.footer__address a:hover { color: var(--white); }

/* Footer Bottom */
.footer__bottom { padding: var(--sp-md) 0; }
.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: var(--max-w); /* gleiche Breite wie .footer__grid */
  margin: 0 auto;
  gap: var(--sp-md);
  font-size: 0.78rem;
  color: rgba(255,255,255,.28);
}
.footer__bottom-inner strong { color: rgba(255,255,255,.5); }
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-xl); }
.footer__legal a,
.footer__legal-button {
  color: rgba(255,255,255,.42);
  transition: color var(--tr);
  font: inherit;
  line-height: inherit;
}
.footer__legal a:hover,
.footer__legal-button:hover { color: rgba(255,255,255,.82); }

/* ================================================================
   14. ANIMATIONEN – Scroll-Reveal
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s cubic-bezier(.4,0,.2,1), transform .6s cubic-bezier(.4,0,.2,1);
}
.reveal.visible { opacity: 1; transform: none; }

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1), transform .5s cubic-bezier(.4,0,.2,1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: .00s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .07s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .14s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .21s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .28s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: .35s; opacity: 1; transform: none; }
.reveal-stagger.visible > * { opacity: 1; transform: none; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   GRAIN TEXTURE OVERLAY – Adds subtle texture to dark sections
   ================================================================ */
@keyframes grain {
  0% { background-position: 0 0; }
  10% { background-position: -5px -10px; }
  20% { background-position: -15px 5px; }
  100% { background-position: 0 0; }
}

.grain {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3CfeColorMatrix in='noise' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
}


/* ================================================================
   15. RESPONSIVE
   ================================================================ */

/* Services: Marquee-Laufband bei ≤ 1440px */
@keyframes services-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (max-width: 1440px) {
  .services-track {
    min-height: auto !important;
    padding-left: 0;
    padding-right: 0;
  }
  .services-sticky {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
  }
  .services-intro {
    padding: 0 max(var(--page-gutter), calc((100% - var(--max-w)) / 2));
    text-align: center;
    align-items: center;
  }
  .services-intro .section-title--left,
  .services-intro .section-lead--left {
    text-align: center;
  }
  .services-intro__actions {
    justify-content: center;
  }
  .services-titles-nav { display: none; }
  .services-runner {
    width: 100%;
    height: auto;
    overflow: hidden;
    padding: 0 max(var(--page-gutter), calc((100% - var(--max-w)) / 2));
  }
  .services-stack--scroll {
    display: flex;
    align-items: stretch;
    height: auto;
    width: max-content;
    gap: 1rem;
    animation: services-marquee 32s linear infinite;
    transform: none;
    transition: none;
  }
  .services-stack--scroll:hover {
    animation-play-state: paused;
  }
  .services-stack--scroll .stack-card {
    width: clamp(300px, 31vw, 340px);
    max-width: calc(100% - var(--page-gutter) - var(--page-gutter));
    flex: 0 0 clamp(300px, 31vw, 340px);
    height: auto;
    opacity: 1 !important;
    transform: none !important;
    transition: box-shadow var(--tr);
  }
  .services-stack--scroll .stack-card.is-before,
  .services-stack--scroll .stack-card.is-after,
  .services-stack--scroll .stack-card.is-after.is-far,
  .services-stack--scroll .stack-card.is-active {
    opacity: 1;
    height: auto;
    transform: none;
  }
  .service-card { flex-direction: column; }
  .service-card__image { width: 100%; height: 160px; }
  .service-card__body {
    padding: 1.2rem 1.4rem;
    justify-content: flex-start;
  }
}

/* Tablet ≤ 1024px */
@media (max-width: 1024px) {
  :root { --section-v: 60px; --sp-4xl: 48px; }

  .section--services::before { opacity: .6; }

  .header__nav, .header__actions { display: none; }
  .hamburger { display: flex; }

  /* Der Mitgliederzugang liegt im mobilen Menü, nicht als schwebende Header-Zeile. */
  .header__floating {
    display: none;
  }

  .two-col { grid-template-columns: 1fr; gap: var(--sp-2xl); }
  .two-col__aside { padding-top: 0; }
  .two-col__img-wrap { min-height: 280px; }

  .referral-cinema__layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "visual";
    gap: 2.2rem;
  }
  .referral-cinema__intro {
    max-width: none;
    margin: 0 auto;
    text-align: center;
  }
  .referral-cinema__intro .section-title--left {
    text-align: center;
  }
  .referral-cinema__lead,
  .referral-cinema__closing {
    max-width: none;
    margin-left: auto;
    margin-right: auto;
  }
  .referral-cinema__intro .section-btns {
    justify-content: center;
  }
  .referral-cinema__visual {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    padding-top: .8rem;
  }
  .referral-visual-card {
    margin-bottom: 1rem;
    width: 100%;
  }
  .referral-visual-image {
    max-height: 420px;
  }
  .referral-cinema__runway {
    position: relative;
    inset: auto;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    transform: none;
    overflow: visible;
    z-index: auto;
    pointer-events: auto;
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    align-items: stretch;
    gap: .85rem;
    margin-top: 1rem;
  }
  .referral-ribbon,
  .referral-ribbon--top-right,
  .referral-ribbon--mid-left,
  .referral-ribbon--center-right,
  .referral-ribbon--bottom-left,
  .referral-ribbon--bottom-right {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    min-height: clamp(74px, 9vw, 90px);
    --zig-x: 0px;
    transform: none;
  }
  .section--referral-advantage.motion-ready .referral-ribbon {
    transform: translate3d(0, 16px, 0) scale(.985);
  }
  .section--referral-advantage.motion-ready.is-active .referral-ribbon {
    transform: translate3d(0, 0, 0) scale(1);
  }

  .services-controls { margin-top: .45rem; }

  .journey-header { grid-template-columns: 1fr; gap: var(--sp-lg); }

  /* Visual Track auf Tablet: Cards aus dem SVG raus in 2x2-Grid */
  .bh-track {
    aspect-ratio: auto;
    margin: var(--sp-lg) 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }
  .bh-track__svg { display: none; }
  .bh-track__card {
    position: static;
    width: auto;
    transform: none;
    opacity: 1;
    transition: opacity .35s ease;
  }
  .bh-track.is-drawn .bh-track__card { transform: none; }
  .bh-track__card::after { display: none; }

  .journey-steps { grid-template-columns: repeat(2, 1fr); }
  .journey-step--low { padding-top: 0; }
  .journey-svg, .journey-plane, .journey-end { display: none; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer .container { padding-left: calc(var(--page-gutter) + 1.5rem); padding-right: calc(var(--page-gutter) + 1.5rem); }

  .membership-pricing__grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile ≤ 767px – Hero bleibt statisch Fullscreen, keine Scroll-Animation */
@media (max-width: 767px) {
  .hero-feature {
    height: 100svh;
  }
  .hero-feature__sticky {
    position: relative;
    height: 100%;
  }
  .hero-feature__card {
    position: absolute !important; /* kein fixed auf Mobile */
    inset: 0 !important;
    z-index: auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    visibility: visible !important;
  }

  .hero-feature--contained {
    height: auto;
    padding: calc(var(--nav-h) + 1.2rem) 0 2rem;
  }
  .hero-feature--contained .hero-feature__sticky {
    height: auto;
  }
  .hero-feature--contained .hero-feature__card {
    position: relative !important;
    inset: auto !important;
    width: calc(100% - var(--page-gutter) - var(--page-gutter));
    margin: 0 auto;
    min-height: 520px;
    border-radius: 16px !important;
    box-shadow: 0 16px 30px rgba(8,25,74,.18);
  }
  .hero-feature--contained .hero-feature__content {
    min-height: 520px;
    padding-top: 4.7rem;
    padding-bottom: 4rem;
  }
  .hero-feature--contained .hero-feature__scroll {
    bottom: 1rem;
  }

  /* Services: Simplified card grid on mobile instead of carousel */
  .services-runner {
    width: min(calc(100% - var(--page-gutter) - var(--page-gutter)), 720px);
    margin-inline: auto;
    height: auto;
    padding: 0 0 var(--sp-lg);
  }
  .services-stack--scroll {
    flex-direction: column;
    animation: none !important;
    gap: var(--sp-md);
    width: 100%;
  }
  .services-stack--scroll .stack-card {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    height: auto;
    opacity: 1 !important;
    transform: none !important;
  }
  .services-stack--scroll .stack-card--clone {
    display: none;
  }
  .service-card {
    flex-direction: column;
    height: auto;
  }
  .service-card__image {
    width: 100%;
    height: clamp(170px, 35vw, 220px);
  }
  .services-dots { display: none; }
}

/* Mobile ≤ 640px */
@media (max-width: 640px) {
  :root {
    --section-v: 50px;
    --page-gutter: .75rem;
  }
  .container { padding: 0 var(--page-gutter); }

  .services-runner {
    width: calc(100% - var(--page-gutter) - var(--page-gutter));
  }

  .service-card__body {
    gap: .9rem;
    padding: 1.1rem;
  }

  .service-card__title {
    font-size: clamp(1.08rem, 5.2vw, 1.3rem);
    overflow-wrap: anywhere;
  }

  .service-card__link {
    width: 100%;
    justify-content: center;
  }

  .header,
  .header.scrolled {
    padding-inline: var(--page-gutter);
  }

  body[data-page="mitglieder"] .header,
  body[data-page="mitglieder"] .header.scrolled {
    padding-inline: var(--page-gutter);
  }

  .topbar { display: none; }

  .hero-feature__actions { flex-direction: column; align-items: flex-start; }
  .btn--hero-primary, .btn--hero-ghost { padding: .75rem 1.75rem; font-size: .92rem; }

  .journey-steps { grid-template-columns: 1fr; }
  .bh-flowmap {
    padding: var(--sp-lg) var(--sp-md);
    border-radius: var(--radius-card);
  }
  /* Visual Track auf Mobile: SVG ausblenden, Cards in 2x2-Raster ohne Tails */
  .bh-track {
    aspect-ratio: auto;
    margin: var(--sp-lg) 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-md);
  }
  .bh-track__svg { display: none; }
  .bh-track__card {
    position: static;
    width: auto;
    transform: none;
    opacity: 1;
    transition: none;
  }
  .bh-track.is-drawn .bh-track__card { transform: none; }
  .bh-track__card::after { display: none; }

  /* Strip bleibt scrollbar */
  .bh-flowmap__insights .bh-solution-card {
    flex: 0 0 85%;
    min-width: 0;
  }

  .referral-visual-card {
    border-radius: var(--radius-card);
    box-shadow: 0 18px 30px rgba(13,43,110,.17), 0 6px 14px rgba(13,43,110,.1);
  }
  .referral-visual-image {
    max-height: 340px;
  }
  .referral-ribbon {
    gap: .62rem;
    padding: .78rem .78rem;
    border-radius: var(--radius-card);
  }
  .referral-ribbon__index {
    width: auto;
    height: auto;
  }
  .referral-ribbon__title { font-size: .89rem; }
  .referral-ribbon__text { font-size: .82rem; }


  .section-btns { flex-direction: column; }
  .section-btns .btn { justify-content: center; }
  .membership-guest-cta__text { text-align: center; }
  .section-box { border-radius: var(--radius-card); }

  .footer__grid { grid-template-columns: 1fr; gap: var(--sp-lg); justify-items: center; text-align: center; }
  .footer__logo { margin-left: auto; margin-right: auto; }
  .footer__links { align-items: center; }
  .footer__bottom-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer__legal { justify-content: center; }
}


/* ================================================================
   16. BUCHHALTUNGSSERVICE – PAGE-SPECIFIC COMPONENTS
   Inspiriert vom Index-Design (Cinema, Journey, Pricing, Stack)
   ================================================================ */

/* --- Intro: 1400px Video-Stage mit scrollgesteuerter Textfolge --- */
body[data-page="buchhaltungsservice"] {
  overflow-x: visible;
}

#intro.bh-intro {
  position: relative;
  z-index: 6;
  overflow: visible;
  padding: clamp(2rem, 4vw, 4.5rem) 0 calc((100svh - min(78svh, 780px)) / 2);
  background: var(--navy);
}

.bh-intro__track {
  position: relative;
  height: 390vh;
  min-height: 0;
}

.bh-intro__sticky {
  position: sticky;
  z-index: 1;
  top: calc((100svh - min(78svh, 780px)) / 2);
  height: min(78svh, 780px);
}

.bh-intro__visual {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  border: 1px solid oklch(91% .014 258 / .18);
  border-radius: var(--radius-card);
  background: oklch(22% .07 258);
  box-shadow: 0 30px 80px oklch(8% .025 258 / .34);
}

.bh-intro__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.bh-intro__media::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, oklch(15% .055 258 / .9) 0%, oklch(17% .06 258 / .72) 46%, oklch(17% .05 258 / .3) 100%),
    linear-gradient(180deg, oklch(12% .04 258 / .28), transparent 42%, oklch(11% .04 258 / .48));
}

.bh-intro__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.015);
}

.bh-intro__chrome {
  position: absolute;
  z-index: 3;
  top: clamp(1.15rem, 2.4vw, 2rem);
  right: clamp(1.15rem, 2.4vw, 2rem);
  left: clamp(1.15rem, 2.4vw, 2rem);
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: clamp(.8rem, 2vw, 1.6rem);
  color: oklch(96% .008 258 / .76);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1;
  text-transform: uppercase;
}

.bh-intro__progress {
  position: relative;
  height: 1px;
  overflow: hidden;
  background: oklch(96% .008 258 / .24);
}

.bh-intro__progress-fill {
  position: absolute;
  inset: 0;
  background: #1565c0;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.bh-intro__scenes {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  padding: clamp(4.5rem, 8vw, 7rem);
  pointer-events: none;
}

.bh-intro__scene {
  position: absolute;
  width: min(760px, calc(100% - clamp(4rem, 16vw, 14rem)));
  color: oklch(97% .008 258);
  opacity: 0;
  transform: translate3d(0, 148px, 0) scale(.88);
  transform-origin: left center;
  will-change: opacity, transform;
  backface-visibility: hidden;
  pointer-events: none;
}

.bh-intro__scene:first-child {
  opacity: 1;
  transform: none;
}

.bh-intro__scene.is-current {
  pointer-events: auto;
}

.bh-intro__eyebrow {
  display: block;
  margin-bottom: clamp(1.1rem, 2vw, 1.7rem);
  color: #1565c0;
  font-family: var(--font-head);
  font-size: clamp(.74rem, 1.05vw, .9rem);
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bh-intro__title,
.bh-intro__scene h3 {
  max-width: 12ch;
  margin: 0;
  color: oklch(97% .008 258);
  font-family: var(--font-head);
  font-size: clamp(3.3rem, 6.2vw, 6rem);
  font-weight: 700;
  letter-spacing: -.055em;
  line-height: .96;
  text-wrap: balance;
}

.bh-intro__scene h3 {
  max-width: 13ch;
  font-size: clamp(3rem, 5.5vw, 5.4rem);
}

.bh-intro__scene p {
  max-width: 48ch;
  margin: clamp(1.25rem, 2.2vw, 1.8rem) 0 0;
  color: oklch(94% .012 258 / .82);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  font-weight: 400;
  line-height: 1.5;
  text-wrap: balance;
}

.bh-intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(1.5rem, 2.8vw, 2.25rem);
}

.bh-intro__actions .btn {
  min-height: 46px;
}

@media (max-width: 900px) {
  .bh-intro__scenes {
    padding-right: clamp(2rem, 7vw, 4.5rem);
    padding-left: clamp(2rem, 7vw, 4.5rem);
  }

  .bh-intro__scene {
    width: min(680px, calc(100% - clamp(4rem, 14vw, 9rem)));
  }
}

@media (max-width: 720px) {
  #intro.bh-intro {
    padding: .9rem 0 3.5rem;
  }

  #intro.bh-intro > .container {
    padding-right: .9rem;
    padding-left: .9rem;
  }

  .bh-intro__track {
    height: auto;
    min-height: 0;
  }

  .bh-intro__sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .bh-intro__visual {
    height: auto;
    border-radius: 14px;
  }

  .bh-intro__media {
    position: relative;
    aspect-ratio: 4 / 3;
  }

  .bh-intro__media::after {
    background: linear-gradient(180deg, oklch(13% .045 258 / .16), oklch(13% .045 258 / .52));
  }

  .bh-intro__chrome {
    grid-template-columns: auto minmax(50px, 1fr) auto;
    gap: .7rem;
    font-size: .61rem;
    letter-spacing: .09em;
  }

  .bh-intro__scenes {
    position: relative;
    display: block;
    padding: 0 clamp(1.25rem, 6vw, 2rem);
    background: oklch(20% .06 258);
    pointer-events: auto;
  }

  .bh-intro__scene,
  .bh-intro__scene:first-child {
    position: relative;
    width: 100%;
    padding: 2.2rem 0 2.4rem;
    border-top: 1px solid oklch(92% .012 258 / .15);
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }

  .bh-intro__scene:first-child {
    border-top: 0;
  }

  .bh-intro__title,
  .bh-intro__scene h3 {
    max-width: 14ch;
    font-size: clamp(2.35rem, 11vw, 3.8rem);
    line-height: 1;
  }

  .bh-intro__scene p {
    max-width: 34ch;
    font-size: 1rem;
  }

  .bh-intro__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .bh-intro__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-intro__track {
    height: auto;
    min-height: 0;
  }

  .bh-intro__sticky {
    position: relative;
    top: auto;
    height: auto;
    min-height: 0;
    max-height: none;
  }

  .bh-intro__visual {
    height: auto;
  }

  .bh-intro__media {
    position: relative;
    aspect-ratio: 16 / 9;
  }

  .bh-intro__scenes {
    position: relative;
    display: block;
    padding-top: 0;
    padding-bottom: 0;
    background: oklch(20% .06 258);
    pointer-events: auto;
  }

  .bh-intro__scene,
  .bh-intro__scene:first-child {
    position: relative;
    width: 100%;
    padding: clamp(2rem, 5vw, 3.5rem) 0;
    border-top: 1px solid oklch(92% .012 258 / .15);
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto;
  }

  .bh-intro__scene:first-child {
    border-top: 0;
  }
}


/* --- Probleme: 4-Card Grid mit X-Badge (Rot-Akzent) --- */
/* ---- BH-PROBLEMS: Synced Slide-Pair (Mix Coverflow + Services-Sticky) ---- */
.bh-problems-stage {
  position: relative;
  margin-top: var(--sp-2xl);
}
.bh-problems-stage::before {
  content: '';
  position: absolute;
  inset: 5% -3% 15% -3%;
  background:
    radial-gradient(50% 50% at 25% 50%, rgba(239,68,68,.07), transparent 70%),
    radial-gradient(50% 50% at 75% 50%, rgba(13,43,110,.06), transparent 70%);
  filter: blur(20px);
  z-index: 0;
  pointer-events: none;
}
.bh-problems-pair {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: var(--sp-lg);
  height: clamp(380px, 40vw, 460px);
  z-index: 1;
}
.bh-problems-frame {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--white);
  border: 1px solid rgba(232,236,241,.9);
  box-shadow:
    0 26px 50px rgba(13,43,110,.10),
    0 8px 18px rgba(13,43,110,.06),
    inset 0 1px 0 rgba(255,255,255,.9);
}
.bh-problems-frame__strip {
  display: flex;
  width: 400%;
  height: 100%;
  transform: translateX(0);
  transition: transform 1s cubic-bezier(.65,.05,.36,1);
  will-change: transform;
}
.bh-problems-frame--text .bh-problems-frame__strip > * {
  flex: 0 0 25%;
}
.bh-problems-frame--image .bh-problems-frame__strip > * {
  flex: 0 0 25%;
}

/* TEXT-CARD --------------------------------------------------------- */
.bh-problems-frame--text {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(239,68,68,.06), transparent 55%),
    radial-gradient(120% 80% at 100% 100%, rgba(249,115,22,.05), transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #fafbfd 100%);
}
.bh-problems-frame--text::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #ef4444 0%, #f97316 50%, #ef4444 100%);
  background-size: 200% 100%;
  animation: bhProblemScan 4s linear infinite;
  z-index: 5;
}
.bh-problem-slide {
  position: relative;
  padding: clamp(2rem, 4vw, 3.25rem) clamp(1.75rem, 3.5vw, 2.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--sp-md);
  height: 100%;
  box-sizing: border-box;
}
.bh-problem-slide__num {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -.02em;
  color: rgba(13,43,110,.18);
  line-height: 1;
  margin-bottom: .5rem;
  display: flex;
  align-items: baseline;
  gap: .25rem;
}
.bh-problem-slide__num strong {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
  font-weight: 800;
  background: linear-gradient(135deg, #ef4444, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.bh-problem-slide__num em {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: normal;
  font-weight: 600;
  color: rgba(13,43,110,.32);
}
.bh-problem-slide__icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #fff 0%, #fee2e2 60%, #ffedd5 100%);
  border: 1px solid rgba(239,68,68,.28);
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 8px 18px rgba(220,38,38,.18),
    0 2px 4px rgba(13,43,110,.08),
    inset 0 1px 0 rgba(255,255,255,.95);
}
.bh-problem-slide__title {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  line-height: 1.18;
  letter-spacing: -0.015em;
  position: relative;
  padding-bottom: .85rem;
}
.bh-problem-slide__title::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 64px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}
.bh-problem-slide__list {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin: 0;
  padding: 0;
}
.bh-problem-slide__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: clamp(.92rem, 1.05vw, 1rem);
  line-height: 1.55;
  color: var(--text-muted);
}
.bh-problem-slide__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ef4444, #f97316);
  box-shadow: 0 0 0 4px rgba(239,68,68,.08);
}

/* IMAGE-CARD (Cartoon-Illustrationen) ------------------------------ */
.bh-problems-frame--image {
  background: #ffffff;
}
.bh-problem-img {
  position: relative;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 2vw, 1.5rem);
  box-sizing: border-box;
}
.bh-problem-img img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  transform: scale(.94);
  opacity: .85;
  transition: transform 1.2s cubic-bezier(.22,.61,.36,1), opacity 1s ease;
}
.bh-problem-img.is-current img {
  transform: scale(1);
  opacity: 1;
}

/* Caption nicht mehr nötig – Nummer steht prominent in der Text-Card */
.bh-problems-frame__caption { display: none; }

/* CONTROLS --------------------------------------------------------- */
.bh-problems-controls {
  position: relative;
  z-index: 1;
  margin-top: var(--sp-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
}
.bh-problems-arrow {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(21,101,192,.18);
  background: var(--blue-light);
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(13,43,110,.08);
  transition: transform .35s ease, background .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.bh-problems-arrow:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
  transform: scale(1.06);
  box-shadow: 0 10px 24px rgba(21,101,192,.28);
}
.bh-problems-arrow:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}
.bh-problems-dots {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--blue-light);
  border: 1px solid rgba(21,101,192,.18);
}
.bh-problems-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background: rgba(21,101,192,.32);
  transition: width .45s cubic-bezier(.22,.61,.36,1), background .35s ease;
}
.bh-problems-dot.is-active {
  width: 32px;
  background: linear-gradient(90deg, var(--blue), var(--navy));
}
.bh-problems-dot:hover:not(.is-active) {
  background: rgba(21,101,192,.55);
}

@keyframes bhProblemScan {
  0%   { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bh-problems-frame__strip,
  .bh-problem-img img { transition: none !important; }
  .bh-problems-frame--text::before { animation: none !important; }
}

/* ---- BH-PROBLEMS: ruhiger Katalog im Stil der Leistungen ---- */
#probleme.bh-problems {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 8% 14%, rgba(21, 101, 192, .065), transparent 27rem),
    var(--bg-light);
}

#probleme.bh-problems::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image: url("../assets/images/dott-map-1.webp");
  background-repeat: no-repeat;
  background-position: 106% 16%;
  background-size: min(42rem, 54vw) auto;
  opacity: .045;
  pointer-events: none;
}

.bh-problems__layout {
  display: grid;
  grid-template-columns: minmax(17rem, .66fr) minmax(0, 1.34fr);
  gap: clamp(2.8rem, 6vw, 6rem);
  align-items: start;
}

.bh-problems__intro {
  position: sticky;
  top: calc(var(--nav-h) + 2rem);
  max-width: 34rem;
}

.bh-problems__eyebrow {
  margin: 0 0 .8rem;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bh-problems__intro .section-title {
  max-width: 16ch;
}

.bh-problems__intro .section-lead,
.bh-problems__intro .section-text {
  max-width: 52ch;
}

.bh-problems__promise {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-top: var(--sp-lg);
  padding: 1rem;
  border: 1px solid rgba(21, 101, 192, .18);
  border-radius: 12px;
  background: var(--white);
}

.bh-problems__promise > span {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--blue-light);
  color: var(--blue);
}

.bh-problems__promise p {
  margin: 0;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.bh-problems__promise strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .91rem;
}

.bh-problems__intro .section-btns {
  margin-top: var(--sp-lg);
}

.bh-problems__catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 44px rgba(13, 43, 110, .1), 0 6px 16px rgba(13, 43, 110, .06);
}

.bh-problems__item {
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr) 6.75rem;
  gap: .9rem;
  align-items: center;
  min-height: 182px;
  padding: 1.2rem;
  transition:
    background .35s cubic-bezier(.16, 1, .3, 1),
    box-shadow .35s cubic-bezier(.16, 1, .3, 1);
}

.bh-problems__item:nth-child(odd) {
  border-right: 1px solid var(--border);
}

.bh-problems__item:nth-child(-n + 2) {
  border-bottom: 1px solid var(--border);
}

.bh-problems__item:hover {
  position: relative;
  z-index: 1;
  background: var(--blue-light);
  box-shadow: inset 0 0 0 1px rgba(21, 101, 192, .08);
}

.bh-problems__number {
  align-self: start;
  padding-top: .22rem;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.bh-problems__item-copy {
  min-width: 0;
}

.bh-problems__item h3 {
  margin: 0 0 .35rem;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.3;
}

.bh-problems__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: .81rem;
  line-height: 1.48;
}

.bh-problems__item img {
  width: 6.75rem;
  height: 7.25rem;
  object-fit: cover;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  filter: saturate(.86);
  transition:
    transform .55s cubic-bezier(.16, 1, .3, 1),
    filter .55s cubic-bezier(.16, 1, .3, 1);
}

.bh-problems__item:hover img {
  filter: saturate(1);
  transform: scale(1.04);
}

@media (max-width: 1100px) {
  .bh-problems__layout {
    grid-template-columns: 1fr;
    gap: var(--sp-3xl);
  }

  .bh-problems__intro {
    position: static;
    max-width: 760px;
  }

  .bh-problems__intro .section-title {
    max-width: 20ch;
  }
}

@media (max-width: 700px) {
  #probleme.bh-problems::before {
    background-position: center top;
    background-size: 38rem auto;
  }

  .bh-problems__catalog {
    grid-template-columns: 1fr;
    border-radius: 14px;
  }

  .bh-problems__item,
  .bh-problems__item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border);
  }

  .bh-problems__item:nth-child(odd) {
    border-right: 0;
  }

  .bh-problems__item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 480px) {
  .bh-problems__item {
    grid-template-columns: 1.5rem minmax(0, 1fr) 5.25rem;
    gap: .65rem;
    min-height: 142px;
    padding: 1rem .85rem;
  }

  .bh-problems__item img {
    width: 5.25rem;
    height: 5.75rem;
  }

  .bh-problems__intro .section-btns {
    flex-direction: column;
  }

  .bh-problems__intro .section-btns .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-problems__item,
  .bh-problems__item img {
    transition: none;
  }
}


/* --- Lösungen: Cinema mit Bild + 3 stylische Ribbons --- */
.bh-solutions {
  position: relative;
}
.bh-solutions__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "intro visual";
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.bh-solutions__intro { grid-area: intro; }
.bh-solutions__visual {
  grid-area: visual;
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bh-solutions__poster {
  position: relative;
  width: min(420px, 90%);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: linear-gradient(160deg, #1e3a8a 0%, #0d2b6e 50%, #0a1f5c 100%);
  aspect-ratio: 3 / 4;
  box-shadow: 0 30px 60px rgba(13,43,110,.25), 0 12px 24px rgba(13,43,110,.15);
  isolation: isolate;
}
.bh-solutions__poster::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 400px at 70% 20%, rgba(96,165,250,.45) 0%, transparent 60%),
    radial-gradient(500px 400px at 20% 90%, rgba(34,197,94,.3) 0%, transparent 65%);
  z-index: 0;
}
.bh-solutions__poster::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' result='noise' /%3E%3CfeColorMatrix in='noise' type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  pointer-events: none;
  z-index: 1;
}
.bh-solutions__poster-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--sp-2xl);
  color: var(--white);
}
.bh-solutions__poster-badge {
  align-self: flex-start;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.bh-solutions__poster-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  margin: 1rem auto;
  color: rgba(255,255,255,.95);
  animation: bhPulse 3s ease-in-out infinite;
}
@keyframes bhPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.3), 0 0 0 0 rgba(255,255,255,.12); }
  50%      { box-shadow: 0 0 0 14px rgba(255,255,255,0), 0 0 0 28px rgba(255,255,255,0); }
}
.bh-solutions__poster-headline {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 .4rem;
}
.bh-solutions__poster-sub {
  font-size: .92rem;
  color: rgba(255,255,255,.78);
  line-height: 1.5;
  margin: 0;
}

.bh-solutions__cards {
  margin-top: var(--sp-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}
.bh-solution-card {
  --accent: var(--blue);
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: var(--sp-md);
  align-items: flex-start;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-card);
  padding: var(--sp-lg) var(--sp-xl);
  box-shadow: 0 14px 32px rgba(4,12,36,.26), inset 0 1px 0 rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  backdrop-filter: blur(10px) saturate(130%);
}
.bh-solution-card:nth-child(1) { --accent: #2563eb; }
.bh-solution-card:nth-child(2) { --accent: #10b981; }
.bh-solution-card:nth-child(3) { --accent: #f59e0b; }

.bh-solution-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.bh-solution-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  margin: 0 0 .35rem;
}
.bh-solution-card__list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.bh-solution-card__list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: .87rem;
  color: rgba(227,236,255,.84);
  line-height: 1.5;
}
.bh-solution-card__list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 800;
  font-size: .92rem;
}


/* --- Ersparnis-Chart Section --- */
.bh-savings {
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.bh-savings__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  background: var(--navy);
  border-radius: 24px;
  padding: clamp(1.5rem, 4vw, 3rem);
}

.bh-savings__intro .section-badge {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: rgba(255,255,255,.88);
}

.bh-savings__intro .section-title {
  color: var(--white);
}

.bh-savings__intro .section-text {
  color: rgba(255,255,255,.78);
}

.bh-savings-percent {
  display: inline-flex;
  align-items: baseline;
  gap: .6rem;
  margin-top: var(--sp-lg);
  padding: var(--sp-lg) var(--sp-xl);
  background: linear-gradient(135deg, rgba(34,197,94,.18), rgba(16,185,129,.1));
  border: 1px solid rgba(16,185,129,.36);
  border-radius: 18px;
}
.bh-savings-percent__num {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 3.6rem);
  font-weight: 800;
  color: #34d399;
  line-height: 1;
}
.bh-savings-percent__label {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: #bbf7d0;
  letter-spacing: .02em;
}

.bh-savings .btn--primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

.bh-savings .btn--primary:hover {
  background: var(--blue-light);
  border-color: var(--blue-light);
}

.bh-savings .btn--outline {
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}

.bh-savings .btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.78);
}

.bh-chart {
  position: relative;
  background: rgba(8,25,74,.32);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  padding: var(--sp-xl);
  box-shadow: none;
}
.bh-chart__legend {
  display: flex;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
  align-items: center;
}
.bh-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-head);
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}
.bh-chart__dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 12px currentColor;
}
.bh-chart__dot--red    { background: #ef4444; color: rgba(239,68,68,.6); }
.bh-chart__dot--blue   { background: #38bdf8; color: rgba(56,189,248,.6); }
.bh-chart__hint {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}

.bh-chart__svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

.bh-chart-grid line { stroke: rgba(255,255,255,.08); stroke-width: 1; }
.bh-chart-axis-label {
  fill: rgba(255,255,255,.5);
  font-family: var(--font-body);
  font-size: 11px;
}
.bh-chart-tick {
  fill: rgba(255,255,255,.45);
  font-family: var(--font-body);
  font-size: 10.5px;
}

/* Animated paths */
.bh-chart-line {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  filter: drop-shadow(0 4px 12px currentColor);
}
.bh-chart.is-active .bh-chart-line { animation: bhDrawLine 2.2s cubic-bezier(.5,.05,.2,1) forwards; }
.bh-chart-line--red  { stroke: #ef4444; color: rgba(239,68,68,.5); animation-delay: .15s; }
.bh-chart-line--blue { stroke: #38bdf8; color: rgba(56,189,248,.55); animation-delay: .35s; }

.bh-chart-area {
  opacity: 0;
  transition: opacity .6s ease;
  transition-delay: 1.4s;
}
.bh-chart.is-active .bh-chart-area { opacity: 1; }
.bh-chart-area--red  { fill: url(#bhAreaRed); }
.bh-chart-area--blue { fill: url(#bhAreaBlue); }

.bh-chart-point {
  opacity: 0;
  transform-origin: center;
  transition: opacity .35s ease, transform .35s cubic-bezier(.34,1.56,.64,1);
}
.bh-chart.is-active .bh-chart-point {
  opacity: 1;
  animation: bhPointPop .5s cubic-bezier(.34,1.56,.64,1) forwards;
}
.bh-chart-point--red  { fill: #ef4444; filter: drop-shadow(0 0 8px rgba(239,68,68,.6)); }
.bh-chart-point--blue { fill: #38bdf8; filter: drop-shadow(0 0 8px rgba(56,189,248,.6)); }
.bh-chart-point[data-i="1"] { animation-delay: 1.6s; }
.bh-chart-point[data-i="2"] { animation-delay: 1.85s; }
.bh-chart-point[data-i="3"] { animation-delay: 2.1s; }
.bh-chart-point[data-i="4"] { animation-delay: 2.35s; }

@keyframes bhDrawLine {
  to { stroke-dashoffset: 0; }
}
@keyframes bhPointPop {
  0%   { opacity: 0; transform: scale(0); }
  60%  { opacity: 1; transform: scale(1.4); }
  100% { opacity: 1; transform: scale(1); }
}

.bh-chart__pointer {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-bottom: var(--sp-md);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  color: #bbf7d0;
  background: rgba(34,197,94,.16);
  border: 1px solid rgba(16,185,129,.36);
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* --- Leistungen: gruppierte Service-Karten im Stil der Startseite --- */
#leistungen.bh-services {
  position: relative;
  /* `hidden` creates a scroll container and prevents the cards from
     sticking to the viewport. `clip` keeps the decoration contained
     without breaking position: sticky. */
  overflow: clip;
  background:
    radial-gradient(circle at 88% 10%, rgba(21,101,192,.18), transparent 28%),
    var(--navy);
}

@supports not (overflow: clip) {
  #leistungen.bh-services {
    overflow: visible;
  }
}

.bh-services__header {
  width: min(760px, 100%);
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.bh-services__header .section-lead {
  margin-right: auto;
  margin-left: auto;
  max-width: 62ch;
}

.bh-services__groups {
  --bh-services-sticky-top: 13vh;
  width: min(1400px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  row-gap: clamp(1.25rem, 2.5vw, 1.75rem);
  position: relative;
  isolation: isolate;
}

.bh-service-group {
  min-height: 380px;
  border: none;
  border-radius: var(--radius-card);
  box-shadow: 0 16px 36px rgba(13,43,110,.09), 0 4px 12px rgba(13,43,110,.05);
  position: sticky;
  top: var(--bh-services-sticky-top);
  z-index: 1;
}

.bh-service-group:nth-child(1) {
  z-index: 1;
}

.bh-service-group:nth-child(2) {
  z-index: 2;
}

.bh-service-group:nth-child(3) {
  z-index: 3;
}

.bh-service-group--reverse {
  flex-direction: row-reverse;
}

.bh-service-group__image {
  position: relative;
  width: 38%;
  min-height: 380px;
}

.bh-service-group__image::after {
  content: '';
  position: absolute;
  inset: 50% 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(8,25,74,.46));
}

.bh-service-group__image img {
  transition: transform .8s cubic-bezier(.16,1,.3,1);
}

.bh-service-group__range {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  padding: .65rem .8rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 9px;
  background: rgba(8,25,74,.9);
  color: rgba(255,255,255,.9);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bh-service-group__body {
  gap: .65rem;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
}

.bh-service-group__eyebrow {
  color: var(--blue);
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.bh-service-group__body .service-card__title {
  margin: 0;
  max-width: 22ch;
}

.bh-service-group__body .service-card__text {
  margin: 0;
  max-width: 58ch;
  font-size: .93rem;
  line-height: 1.6;
}

.bh-service-group__list {
  margin-top: .45rem;
  border-top: 1px solid var(--border-light);
}

.bh-service-group__list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: .75rem;
  align-items: start;
  padding: .72rem 0;
  border-bottom: 1px solid var(--border-light);
}

.bh-service-group__list li:last-child {
  border-bottom: 0;
}

.bh-service-group__check {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(21,101,192,.16);
  border-radius: 7px;
  background: var(--blue-light);
  color: var(--blue);
}

.bh-service-group__list strong {
  display: block;
  margin-bottom: .08rem;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .88rem;
  line-height: 1.35;
}

.bh-service-group__list p {
  margin: 0;
  color: var(--text-muted);
  font-size: .79rem;
  line-height: 1.45;
}

.bh-services__footer {
  width: min(1160px, 100%);
  margin: var(--sp-2xl) auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xl);
  padding: 1.25rem 1.4rem;
  border: 1px solid rgba(21,101,192,.18);
  border-radius: 12px;
  background: var(--blue-light);
}

.bh-services__footer strong {
  display: block;
  margin-bottom: .15rem;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .98rem;
}

.bh-services__footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.5;
}

.bh-services__footer .btn {
  flex: 0 0 auto;
}

@media (max-width: 900px) {
  .bh-service-group,
  .bh-service-group--reverse {
    flex-direction: column;
  }

  .bh-service-group__image {
    width: 100%;
    min-height: 280px;
    height: 280px;
  }
}

@media (max-width: 640px) {
  .bh-services__header {
    margin-bottom: var(--sp-2xl);
    text-align: left;
  }

  .bh-services__header .section-lead {
    margin-left: 0;
  }

  .bh-services__groups {
    row-gap: 1rem;
  }

  .bh-service-group {
    min-height: 0;
    border-radius: 14px;
  }

  .bh-service-group__image {
    min-height: 220px;
    height: 220px;
  }

  .bh-service-group__body {
    padding: 1.35rem 1.2rem;
  }

  .bh-services__footer {
    align-items: stretch;
    flex-direction: column;
    gap: var(--sp-md);
  }

  .bh-services__footer .btn {
    width: 100%;
  }
}

/* A tall mobile card must remain fully reachable on short viewports. */
@media (max-width: 640px) and (max-height: 720px) {
  .bh-services__groups {
    grid-auto-rows: auto;
    row-gap: var(--sp-md);
  }

  .bh-services__groups .bh-service-group {
    position: relative;
    top: auto;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bh-service-group__image img {
    transition: none;
  }
}


/* --- Geeignet: Two-Card --- */
.bh-target-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
}
.bh-target {
  position: relative;
  background: var(--white);
  border: 0;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.bh-target__media {
  position: relative;
  aspect-ratio: 7 / 6;
  overflow: hidden;
  background: var(--blue-light);
}
.bh-target__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bh-target__media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 50%;
  background: linear-gradient(180deg, rgba(13,43,110,0) 0%, rgba(13,43,110,.18) 100%);
  pointer-events: none;
}
.bh-target__body {
  flex: 1;
  padding: var(--sp-xl) var(--sp-2xl) var(--sp-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  text-align: center;
  align-items: center;
}
.bh-target__title {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  position: relative;
  padding-bottom: .65rem;
}
.bh-target__title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), rgba(21,101,192,.35));
}
.bh-target__text {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 42ch;
}
.bh-target__cta {
  margin-top: auto;
  padding: .85rem 1.5rem;
  align-self: center;
}


/* --- Buchhaltungs-Pricing: ruhig und im Stil der Serviceseite --- */
.home-membership-pricing {
  margin-top: 0;
  text-align: left;
}

.home-membership-pricing [hidden] {
  display: none !important;
}

.home-price-lock {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.1rem, 2vw, 1.45rem);
  border: 1px solid rgba(245, 190, 78, .42);
  border-radius: 18px;
  background:
    linear-gradient(110deg, rgba(245, 190, 78, .16), rgba(255, 255, 255, .08)),
    rgba(255, 255, 255, .04);
  box-shadow: 0 18px 45px rgba(2, 12, 40, .2);
  color: var(--white);
}

.home-price-lock__icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(245, 190, 78, .48);
  border-radius: 50%;
  background: rgba(245, 190, 78, .14);
  color: #f7cd76;
}

.home-price-lock__copy p {
  margin: 0 0 .22rem;
  color: #f7cd76;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-price-lock__copy strong,
.home-price-lock__copy span {
  display: block;
}

.home-price-lock__copy strong {
  margin-bottom: .16rem;
  font-family: var(--font-head);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.35;
}

.home-price-lock__copy span {
  color: rgba(255, 255, 255, .72);
  font-size: .84rem;
  line-height: 1.45;
}

.home-price-lock__cta {
  min-height: 44px;
  padding-inline: 1.25rem;
  border-color: #f7cd76;
  background: #f7cd76;
  color: var(--navy-dark);
  white-space: nowrap;
}

.home-price-lock__cta:hover {
  border-color: #ffe1a1;
  background: #ffe1a1;
  color: var(--navy-dark);
}

.home-price-lock__terms {
  max-width: 900px;
  margin: 1.15rem auto 0;
  color: rgba(255, 255, 255, .68);
  font-size: .76rem;
  line-height: 1.55;
  text-align: center;
}

.home-membership-pricing.is-price-lock-active .bh-price-card--featured {
  border-color: #e3aa36;
  box-shadow: 0 18px 42px rgba(2, 12, 40, .2), 0 0 0 1px rgba(247, 205, 118, .18);
}

.home-membership-pricing.is-price-lock-active .bh-price-card--featured .bh-price-card__badge {
  background: #fff3d6;
  color: #835b0a;
}

#preise.bh-pricing {
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

#preise.bh-pricing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 50% 15%, rgba(255, 255, 255, .1), transparent 32rem);
}

.bh-pricing .container {
  position: relative;
  z-index: 1;
}

.bh-pricing__intro {
  max-width: 780px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.75rem);
}

.bh-pricing__intro .section-title {
  margin-bottom: 1rem;
  color: var(--white);
}

.bh-pricing__intro .section-lead {
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
  color: rgba(255, 255, 255, .84);
}

.bh-pricing__tax-note {
  margin: .85rem 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
  font-weight: 600;
}

.bh-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
  align-items: stretch;
}

.bh-price-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.bh-price-card--featured {
  border: 2px solid #1565c0;
  box-shadow: 0 14px 34px rgba(13, 43, 110, .13);
}

.bh-price-card__badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  padding: .28rem .72rem;
  border-radius: 999px;
  background: var(--blue-light);
  color: #1565c0;
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 750;
  letter-spacing: .08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bh-price-card__head {
  min-height: 10.25rem;
  padding-bottom: 1.5rem;
}

.bh-price-card__overline {
  max-width: calc(100% - 5.75rem);
  min-height: 1.2rem;
  margin: 0 0 .45rem;
  color: #1565c0;
  font-family: var(--font-head);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
}

.bh-price-card:not(.bh-price-card--featured) .bh-price-card__overline {
  max-width: none;
}

.bh-price-card__head h3 {
  margin: 0 0 1.25rem;
  color: var(--navy);
  font-size: clamp(1.45rem, 2.2vw, 1.8rem);
  letter-spacing: -.02em;
}

.bh-price-card__price {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: 0;
}

.bh-price-card__price strong {
  color: var(--navy);
  font-family: var(--font-head);
  font-size: clamp(2.75rem, 4vw, 3.6rem);
  font-weight: 760;
  letter-spacing: -.045em;
  line-height: 1;
}

.bh-price-card__price span {
  color: var(--text-muted);
  font-size: .82rem;
}

.bh-price-card__future-price {
  display: flex;
  align-items: baseline;
  gap: .4rem;
  margin: .72rem 0 0;
  color: var(--text-light);
  font-family: var(--font-head);
  font-size: .76rem;
  line-height: 1.4;
}

.bh-price-card__future-price s {
  color: var(--text-muted);
  font-size: .88rem;
  font-weight: 700;
  text-decoration-color: #b78117;
  text-decoration-thickness: 1.5px;
}

.bh-price-card__threshold {
  min-height: 8.7rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.bh-price-card__threshold > span {
  display: block;
  margin-bottom: .35rem;
  color: var(--text-light);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.bh-price-card__threshold strong {
  display: block;
  margin-bottom: .45rem;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .98rem;
  line-height: 1.45;
}

.bh-price-card__threshold small {
  display: block;
  color: var(--text-muted);
  font-size: .78rem;
  line-height: 1.5;
}

.bh-price-card__features {
  display: grid;
  gap: .7rem;
  margin: 1.5rem 0 1.75rem;
  padding: 0;
}

.bh-price-card__features li {
  position: relative;
  padding-left: 1.55rem;
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.45;
}

.bh-price-card__features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: .04rem;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--blue-light);
  color: #1565c0;
  font-size: .64rem;
  font-weight: 800;
}

.bh-price-card__cta {
  justify-content: center;
  width: 100%;
  min-height: 46px;
  margin-top: auto;
}

.bh-pricing__help {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-light);
}

.bh-pricing__help-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--white);
  color: #1565c0;
  box-shadow: var(--shadow-sm);
}

.bh-pricing__help p {
  margin: 0;
  color: var(--text-muted);
  font-size: .9rem;
  line-height: 1.55;
}

.bh-pricing__help strong {
  margin-right: .25rem;
  color: var(--navy);
}

.bh-pricing__help .btn {
  flex: 0 0 auto;
  min-height: 44px;
}

@media (max-width: 960px) {
  .home-price-lock {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-price-lock__cta {
    grid-column: 1 / -1;
    width: 100%;
  }

  .bh-pricing__grid {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }

  .bh-price-card__head,
  .bh-price-card__threshold {
    min-height: 0;
  }

  .bh-pricing__help {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .home-price-lock {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-price-lock__icon {
    margin-inline: auto;
  }

  .faq-card__content {
    min-height: 460px;
    padding: var(--sp-lg);
  }

  .faq-card__logo { display: none; }

  .faq-card__text { max-width: none; }

  .faq-card__button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .bh-pricing__intro {
    margin-bottom: 2.25rem;
  }

  .bh-price-card {
    padding: 1.4rem;
    border-radius: var(--radius-card);
  }

  .bh-price-card__badge {
    top: 1.1rem;
    right: 1.1rem;
  }

  .bh-price-card__price strong {
    font-size: 2.8rem;
  }

  .bh-pricing__help {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    padding: 1.15rem;
  }

  .bh-pricing__help .btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}


/* --- Responsive for new components --- */
@media (max-width: 1024px) {
  .bh-problems-pair { grid-template-columns: 1fr; gap: var(--sp-md); height: auto; }
  .bh-problems-frame--text,
  .bh-problems-frame--image { height: clamp(320px, 50vw, 380px); }
  .bh-solutions__layout {
    grid-template-columns: 1fr;
    grid-template-areas: "visual" "intro";
    gap: 2.5rem;
  }
  .bh-solutions__visual { min-height: auto; }
  .bh-savings__layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .bh-problems-arrow { width: 40px; height: 40px; }
  .bh-problems-frame--text,
  .bh-problems-frame--image { height: clamp(280px, 70vw, 340px); }
  .bh-problem-slide { padding: 1.4rem 1.4rem; gap: .65rem; }
  .bh-target-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .bh-solution-card {
    grid-template-columns: 1fr;
    padding: var(--sp-lg);
  }
  .bh-solution-card__icon { margin-bottom: .25rem; }
  .bh-chart { padding: var(--sp-lg) var(--sp-md); }
  .bh-chart__legend { gap: var(--sp-md); font-size: .78rem; }
  .bh-chart__hint { display: none; }
}


/* ================================================================
   16. KONTAKT-WIZARD (kontakt.html)
   Step 1: Karten-Grid – Step 2: Formular mit kontextuellen Extras
   ================================================================ */
.wizard {
  max-width: 1080px;
  margin: 0 auto;
}

/* Kontaktseite: Wizard direkt im Hero statt Bild + Text */
.hero-feature--contact .hero-feature__card {
  min-height: auto;
  overflow: visible;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.hero-feature--contact .hero-feature__bg {
  position: relative;
  animation: none;
  background-image: none;
  background-color: var(--white);
  padding: clamp(1.25rem, 2.2vw, 2rem) 0 clamp(1.75rem, 3vw, 2.5rem);
}

.hero-feature--contact .hero-feature__wizard-wrap {
  padding-left: 0;
  padding-right: 0;
}

.hero-feature--contact .wizard-container {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 20px 44px rgba(13,43,110,.14), 0 8px 18px rgba(13,43,110,.08);
  padding: clamp(1.1rem, 2vw, 1.8rem);
}

.hero-feature--contact .wizard-container .wizard {
  max-width: none;
}

.hero-feature--contact .wizard-container.reveal {
  transition:
    opacity .55s ease,
    transform .75s cubic-bezier(.2,.7,.2,1),
    filter .55s ease;
}

.hero-feature--contact .wizard-container.reveal-up {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(4px);
}

.hero-feature--contact .wizard-container.reveal-up.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
}

.contact-split {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
  min-height: auto;
}

.contact-split__left {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.contact-split__title {
  font-family: var(--font-head);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  line-height: 1.15;
  color: var(--navy);
}

.contact-split__lead {
  font-size: .9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.contact-topic-list {
  margin-top: var(--sp-xs);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

#faqTopicList {
  grid-template-columns: 1fr;
}

#faq-themen .contact-split {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: clamp(1rem, 2.4vw, 2rem);
}

#faq-themen .contact-split__left {
  padding-right: .35rem;
}

.faq-topic-pane {
  border-left: 0;
  padding-left: clamp(.85rem, 2vw, 1.45rem);
  display: flex;
  flex-direction: column;
  gap: var(--sp-md);
}

.faq-topic-pane__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-sm);
}

.faq-topic-pane__back {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  padding: .38rem .82rem;
  transition: all var(--tr);
}

.faq-topic-pane__back:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-light);
}

.faq-list--topic {
  max-width: none;
  margin: 0;
}

.faq-list--topic .faq-item__q > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.faq-list--topic .faq-search-result__topic {
  font-size: .72rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}

#faq-themen .wizard-container {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body[data-page="faq"] .hero-feature.hero-feature--contained.hero-feature--contact {
  padding-top: clamp(26px, 4vh, 46px);
}

body[data-page="faq"] .hero-feature.hero-feature--contained.hero-feature--contact .hero-feature__bg {
  padding-top: clamp(.4rem, .8vw, .8rem);
}

body[data-page="faq"] .hero-feature--stammtisch-page .hero-feature__overlay {
  background:
    radial-gradient(ellipse 70% 100% at 12% 50%, rgba(6,15,46,.6) 0%, rgba(13,43,110,.36) 55%, transparent 80%),
    linear-gradient(135deg, rgba(6,15,46,.5) 0%, rgba(13,43,110,.4) 45%, rgba(21,101,192,.28) 100%);
}

body[data-page="faq"] .hero-feature__bg.hero-feature__bg--contact {
  background-color: transparent;
}

.contact-topic {
  --topic-accent: var(--blue);
  --topic-soft: #e8f0fb;
  --topic-soft-active: #e6f0ff;
  width: 100%;
  text-align: left;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  padding: 10px 12px;
  transition: all var(--tr);
}

.contact-topic__icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--topic-soft);
  color: var(--topic-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-topic__icon svg {
  width: 18px;
  height: 18px;
}

.contact-topic__copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.contact-topic__title {
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.28;
}

.contact-topic__desc {
  font-size: .76rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.contact-topic:hover {
  border-color: var(--topic-accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(13,43,110,.12);
}

.contact-topic.is-active {
  border-color: var(--topic-accent);
  background: var(--topic-soft-active);
  box-shadow: inset 0 0 0 1px rgba(13,43,110,.08);
}

.contact-topic.is-active .contact-topic__icon {
  background: var(--topic-accent);
  color: var(--white);
}

.contact-topic[data-category="mitgliedschaft"],
.contact-topic[data-category="tools"],
.contact-topic[data-category="passwort"] {
  --topic-accent: #1565c0;
  --topic-soft: #e8f0fb;
  --topic-soft-active: #e8f2ff;
}

.contact-topic[data-category="empfehlung"],
.contact-topic[data-category="gast"],
.contact-topic[data-category="gruenden"] {
  --topic-accent: #0d7a63;
  --topic-soft: #e8f7f2;
  --topic-soft-active: #e6f6f0;
}

.contact-topic[data-category="kooperation"],
.contact-topic[data-category="presse"] {
  --topic-accent: #6d4cc9;
  --topic-soft: #f1edff;
  --topic-soft-active: #efebff;
}

.contact-topic[data-category="rechnung"],
.contact-topic[data-category="beschwerde"],
.contact-topic[data-category="kuendigung"],
.contact-topic[data-category="sonstiges"] {
  --topic-accent: #b25a08;
  --topic-soft: #fff2e6;
  --topic-soft-active: #fff0e2;
}

.contact-split__right {
  padding: 0;
}

.contact-split__right .contact-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

body.contact-popup-open {
  overflow: hidden;
}

.contact-popup {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.contact-popup.is-open {
  display: flex;
}

.contact-popup__backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(21,101,192,.18) 0%, transparent 62%),
    radial-gradient(700px 420px at 88% 90%, rgba(13,43,110,.18) 0%, transparent 62%),
    rgba(8, 25, 74, .62);
  backdrop-filter: blur(4px);
}

.contact-popup__dialog {
  position: relative;
  width: min(var(--max-w), calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: #f8faff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: 0 24px 58px rgba(8,25,74,.32);
  padding: clamp(1rem, 2vw, 1.5rem);
}

.contact-popup__dialog::before {
  content: '';
  position: sticky;
  top: 0;
  display: block;
  height: 4px;
  margin: calc(-1rem) calc(-1rem) 1rem;
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, #0d2b6e 0%, #1565c0 52%, #4da3ff 100%);
  z-index: 2;
}

.contact-popup .contact-form {
  background: #ffffff;
  border: 1px solid #d7e2f0;
  box-shadow: 0 12px 26px rgba(13,43,110,.08);
}

.contact-popup[data-category="mitgliedschaft"] .section-badge,
.contact-popup[data-category="tools"] .section-badge,
.contact-popup[data-category="passwort"] .section-badge {
  color: #0f5ab0;
  border-color: rgba(15,90,176,.25);
  background: #eaf3ff;
}

.contact-popup[data-category="empfehlung"] .section-badge,
.contact-popup[data-category="gast"] .section-badge,
.contact-popup[data-category="gruenden"] .section-badge {
  color: #0f6a55;
  border-color: rgba(15,106,85,.28);
  background: #e8f8f2;
}

.contact-popup[data-category="kooperation"] .section-badge,
.contact-popup[data-category="presse"] .section-badge {
  color: #5f3fb9;
  border-color: rgba(95,63,185,.28);
  background: #f1ecff;
}

.contact-popup[data-category="rechnung"] .section-badge,
.contact-popup[data-category="beschwerde"] .section-badge,
.contact-popup[data-category="kuendigung"] .section-badge,
.contact-popup[data-category="sonstiges"] .section-badge {
  color: #9a4e08;
  border-color: rgba(154,78,8,.3);
  background: #fff3e8;
}

.contact-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--tr);
}

.contact-popup__close:hover {
  color: var(--navy);
  border-color: var(--blue);
  background: var(--blue-light);
}

@media (max-width: 1024px) {
  .contact-topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-split__left { border-bottom: 0; border-radius: 0; }
  .contact-topic-list {
    max-height: none;
  }
  .contact-split__right {
    padding: 0;
  }
  #faq-themen .contact-split {
    grid-template-columns: 1fr;
  }
  .faq-topic-pane {
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border-light);
    padding-top: var(--sp-md);
  }
  #faqTopicList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .contact-topic-list { grid-template-columns: 1fr; }
  .contact-popup {
    padding: .5rem;
  }
  .contact-popup__dialog {
    width: calc(100vw - 1rem);
    max-height: calc(100vh - 1rem);
    border-radius: 12px;
    padding: .9rem;
  }
  .contact-popup__dialog::before {
    margin: -.9rem -.9rem .9rem;
    border-radius: 12px 12px 0 0;
  }
}

.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-2xl);
}
.wizard-progress__step {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  transition: color var(--tr);
}
.wizard-progress__step.is-active { color: var(--navy); }
.wizard-progress__step.is-done   { color: var(--blue); }
.wizard-progress__dot {
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1.5px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 0.82rem;
  font-weight: 700;
  color: inherit;
  transition: all var(--tr);
}
.wizard-progress__step.is-active .wizard-progress__dot {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(21,101,192,.25);
}
.wizard-progress__step.is-done .wizard-progress__dot {
  background: var(--white);
  border-color: var(--blue);
  color: var(--blue);
}
.wizard-progress__sep {
  width: 56px;
  height: 2px;
  background: var(--border);
  border-radius: 2px;
}

.wizard-step {
  animation: wizardFadeIn .35s cubic-bezier(.4,0,.2,1);
}
.wizard-step[hidden] { display: none; }
@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Step 1: Karten ---- */
.wizard-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-2xl);
}
.wizard-card {
  text-align: left;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  cursor: pointer;
  transition: all var(--tr);
  font-family: var(--font-body);
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.wizard-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(21,101,192,.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--tr);
  pointer-events: none;
}
.wizard-card:hover {
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.wizard-card:hover::after { opacity: 1; }
.wizard-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.wizard-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-light);
  color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: all var(--tr);
}
.wizard-card:hover .wizard-card__icon {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.05);
}
.wizard-card__title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
  line-height: 1.25;
}
.wizard-card__desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}
.wizard-card__arrow {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .04em;
  opacity: 0;
  transform: translateX(-4px);
  transition: all var(--tr);
}
.wizard-card:hover .wizard-card__arrow {
  opacity: 1;
  transform: translateX(0);
}
.wizard-card__arrow svg { transition: transform var(--tr); }
.wizard-card:hover .wizard-card__arrow svg { transform: translateX(2px); }

/* ---- Step 2: Formular ---- */
.wizard-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-muted);
  padding: 8px 14px;
  border-radius: var(--radius);
  background: transparent;
  border: 1px solid var(--border);
  margin-bottom: var(--sp-lg);
  transition: all var(--tr);
}
.wizard-back:hover {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-light);
  transform: translateX(-2px);
}

.wizard-step2-head {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-2xl);
}
.wizard-step2-icon {
  width: 64px; height: 64px;
  border-radius: 14px;
  background: var(--blue-light);
  color: var(--blue);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.wizard-step2-icon svg { width: 32px; height: 32px; }

/* ---- Form ---- */
.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--sp-2xl);
  box-shadow: 0 4px 24px rgba(13,43,110,.06);
}
.contact-form__section + .contact-form__section {
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-xl);
  border-top: 1px solid var(--border-light);
}
.contact-form__section-title {
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-lg);
}
.contact-form__extras:empty { display: none; }
.contact-form__extras:not(:empty) {
  margin-bottom: var(--sp-2xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--border-light);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
}
.form-row + .form-row { margin-top: var(--sp-lg); }
.form-row--2 { grid-template-columns: 1fr 1fr; }
.form-row--3 { grid-template-columns: 1fr 1fr 1fr; }

.form-group { display: flex; flex-direction: column; gap: var(--sp-sm); }

.form-label {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.form-req {
  color: #d32f2f;
  font-weight: 700;
}
.form-hint {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-light);
}

.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  transition: all var(--tr);
}
.form-input::placeholder { color: var(--text-light); }
.form-input:hover { border-color: var(--text-light); }
.form-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(21,101,192,.12);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235c687d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* Radio-/Checkbox-Pills für Tool-Auswahl o. Ä. */
.form-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}
.form-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
  cursor: pointer;
  transition: all var(--tr);
}
.form-pill:hover { border-color: var(--blue); color: var(--blue); }
.form-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.form-pill:has(input:checked) {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(21,101,192,.22);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-md);
}
.form-check input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.form-check label {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
  cursor: pointer;
}
.form-check label a { color: var(--blue); text-decoration: underline; }

/* Hinweis-Box (z. B. für Passwort-Reset) */
.contact-form__notice {
  display: flex;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--blue-light);
  border: 1px solid rgba(21,101,192,.18);
  border-radius: 10px;
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.55;
}
.contact-form__notice strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.contact-form__notice svg { flex-shrink: 0; color: var(--blue); }
/* display:flex hat dieselbe Spezifität wie die UA-Regel [hidden]{display:none}
   und würde sie sonst überstimmen, sobald die Notiz bedingt ausgeblendet wird. */
.contact-form__notice[hidden] { display: none; }

/* Warnfarbige Variante (z. B. Reservierungsgebühr bei geplanten Stammtischen) */
.contact-form__notice--amber {
  background: #fef3c7;
  border-color: rgba(180,83,9,.28);
  color: #7a4a06;
}
.contact-form__notice--amber svg { color: #b45309; }

/* Mitgliedschaft-bewerben.html: Formular sitzt bereits in der Wizard-Card
   (.hero-feature--contact .wizard-container) – hier keine zweite Card
   und Hinweise als schlichte Akzent-Leiste statt eigener Box. */
#bewForm.contact-form {
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
#bewForm .contact-form__notice {
  background: transparent;
  border: 0;
  border-left: 3px solid var(--blue);
  border-radius: 0;
  padding: 2px 0 2px var(--sp-lg);
  margin: var(--sp-xl) 0 var(--sp-2xl);
}
#bewForm .contact-form__notice--amber { border-left-color: #b45309; }

/* Ausgewählter Stammtisch: schlichte Textzeile statt Card (kein
   foerder-check__fact). Kopfzeile mit Titel + „Stammtisch wechseln"-Button,
   darunter die Details in zwei Spalten. */
.bew-stammtisch-info {
  padding: var(--sp-lg) 0;
  margin: var(--sp-lg) 0 var(--sp-xl);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.bew-stammtisch-info__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  margin-bottom: var(--sp-md);
}
.bew-stammtisch-info__head .contact-form__section-title { margin-bottom: 0; }
.bew-stammtisch-info__rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-md) var(--sp-lg);
}
.bew-stammtisch-info__col { display: flex; flex-direction: column; gap: 12px; }
.bew-stammtisch-info__row { display: flex; flex-direction: column; gap: 2px; }
.bew-stammtisch-info__label {
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-light);
}
.bew-stammtisch-info__value {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
}
.bew-change-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  font-size: .78rem;
}
@media (max-width: 640px) {
  .bew-stammtisch-info__rows { grid-template-columns: 1fr; }
}

/* Abrechnungspaket als kompakte Mini-Pricing-Cards (analog index.html,
   nur kleiner) – Auswahl wird blau umrandet. */
.paket-cards__hint {
  font-size: .82rem;
  color: var(--text-muted);
  margin: 2px 0 var(--sp-sm);
}
.paket-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin-top: 4px;
}
.paket-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 26px 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  cursor: pointer;
  transition: all var(--tr);
}
.paket-card:hover { border-color: var(--blue); }
.paket-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.paket-card:has(input:checked) {
  border-color: var(--blue);
  border-width: 2px;
  background: linear-gradient(180deg, var(--blue-light) 0%, #eef5fd 100%);
  box-shadow: 0 6px 18px rgba(21,101,192,.20), 0 0 0 3px rgba(21,101,192,.14);
}
/* Checkmark oben rechts, nur sichtbar wenn ausgewählt – macht den
   Auswahlstatus eindeutig erkennbar (nicht nur der Rahmen). */
.paket-card__check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.4);
  transition: all var(--tr);
}
.paket-card:has(input:checked) .paket-card__check {
  opacity: 1;
  transform: scale(1);
}
.paket-card__badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-head);
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: #d97706;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(217,119,6,.35);
}
.paket-card__title {
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2px;
}
.paket-card:has(input:checked) .paket-card__title { color: var(--blue); }
.paket-card__hint {
  font-size: .72rem;
  color: var(--text-muted);
}
.paket-card__overline {
  font-family: var(--font-head);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--text-light);
}
.paket-card__price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.paket-card__price strong {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy);
}
.paket-card__price span {
  font-size: .68rem;
  color: var(--text-muted);
}
.paket-card__future {
  font-size: .68rem;
  color: var(--text-light);
}
.paket-card__future s { color: var(--text-muted); }
.paket-card__equiv {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-muted);
  width: 100%;
}
.paket-cards__tax-note {
  margin: var(--sp-md) 0 var(--sp-lg);
  font-size: .76rem;
  color: var(--text-light);
  line-height: 1.5;
}
/* Eigene Zeile für „Nachricht" statt der generischen .form-row + .form-row
   Regel, da davor wahlweise die Reservierungs-Notiz (ein- oder ausgeblendet)
   oder direkt der Steuerhinweis steht. */
#bewNachrichtRow { margin-top: var(--sp-xl); }
@media (max-width: 640px) {
  .paket-cards { grid-template-columns: 1fr; }
}

.contact-form__captcha {
  margin-top: var(--sp-lg);
  min-height: 66px;
}

.contact-form__status {
  margin-top: var(--sp-md);
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.contact-form__status--ok {
  color: #0f5f2a;
  background: #e8faef;
  border: 1px solid #b8e8c7;
}
.contact-form__status--error {
  color: #7b1f1f;
  background: #fdecec;
  border: 1px solid #f5c2c7;
}

.contact-form__actions {
  margin-top: var(--sp-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}
.contact-form__actions .btn { min-width: 240px; }
.contact-form__hint {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
}

.foerder-result {
  margin-bottom: var(--sp-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: .95rem 1rem;
  background: #f7faff;
}

.foerder-result__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-light);
}

.foerder-result__score {
  display: block;
  margin-top: .1rem;
  font-family: var(--font-head);
  font-size: 1.02rem;
  color: var(--navy);
}

.foerder-result__text {
  margin-top: .3rem;
  font-size: .88rem;
  line-height: 1.48;
  color: var(--text);
}

.foerder-result.is-hoch {
  border-color: rgba(16,118,76,.35);
  background: #ecfaf4;
}

.foerder-result.is-mittel {
  border-color: rgba(21,101,192,.25);
  background: #eef5ff;
}

.foerder-result.is-basis {
  border-color: rgba(178,90,8,.26);
  background: #fff6ea;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .wizard-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .wizard-cards { grid-template-columns: repeat(2, 1fr); gap: var(--sp-sm); }
  .wizard-card { padding: var(--sp-md); }
  .wizard-card__title { font-size: 0.95rem; }
  .wizard-card__desc { display: none; }
  .wizard-step2-head { flex-direction: column; gap: var(--sp-md); }
  .wizard-step2-icon { width: 52px; height: 52px; }
  .wizard-step2-icon svg { width: 26px; height: 26px; }
  .contact-form { padding: var(--sp-lg); }
  .form-row--2, .form-row--3 { grid-template-columns: 1fr; }
  .wizard-progress__sep { width: 32px; }
  .wizard-progress__label { display: none; }
}
@media (max-width: 480px) {
  .wizard-cards { grid-template-columns: 1fr; }
  .wizard-card__desc { display: block; }
}

/* Foerderungscheck: remove residual top strip above the rounded container */
.hero-feature--contact.hero-feature--foerder-check-page {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.hero-feature--contact.hero-feature--foerder-check-page .hero-feature__bg {
  background-color: transparent !important;
  padding: 0 !important;
}

.hero-feature--contact.hero-feature--foerder-check-page .hero-feature__wizard-wrap {
  padding-top: clamp(1.25rem, 2.2vw, 2rem) !important;
  padding-bottom: clamp(1.75rem, 3vw, 2.5rem) !important;
}

.hero-feature--contact.hero-feature--foerder-check-page .wizard-container {
  margin-top: clamp(.55rem, 1vw, .95rem) !important;
}



/* ================================================================
   REGELN & KODEX – Seite
   ================================================================ */
.hero-feature--regeln-page {
  padding-bottom: clamp(.5rem, 1vw, 1rem);
}

.hero-feature--regeln-page .hero-feature__card {
  min-height: clamp(360px, 50vh, 470px);
}

.hero-feature--regeln-page .hero-feature__content {
  min-height: clamp(360px, 50vh, 470px);
  padding-top: clamp(34px, 4.8vh, 62px);
}

.hero-feature--regeln-page .hero-feature__bg {
  background-position: center 30%;
}

.hero-feature--regeln-page .hero-feature__overlay {
  background:
    radial-gradient(ellipse 74% 110% at 14% 48%, rgba(6,15,46,.66) 0%, rgba(13,43,110,.44) 56%, transparent 82%),
    linear-gradient(135deg, rgba(6,15,46,.58) 0%, rgba(13,43,110,.44) 45%, rgba(21,101,192,.3) 100%);
}

.kodex-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.kodex-row {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border-light);
}

.kodex-row:last-child {
  border-bottom: none;
}

.kodex-row__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(13,43,110,.22);
}

.kodex-row__text {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.55;
  padding-top: .45rem;
}

.kodex-note {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  margin: 0;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
}

.kodex-note__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--blue);
}

.kodex-note__body strong {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
  margin-bottom: .35rem;
}

.kodex-note__body p {
  margin: 0;
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.6;
}

@media (max-width: 560px) {
  .kodex-card-wrap { padding: .5rem 1.1rem; }
  .kodex-row { gap: .85rem; padding: 1.1rem 0; }
  .kodex-row__num { width: 34px; height: 34px; font-size: .95rem; }
  .kodex-note { flex-direction: column; gap: .85rem; padding: 1.35rem 1.4rem; }
}

/* ================================================================
   MITGLIEDERBEREICH (mitglieder.html + passwort-setzen.html)
   ================================================================ */
.ma-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.ma-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: clamp(1.4rem, 2.5vw, 2rem);
}

.ma-head__title {
  font-family: var(--font-head);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-top: .6rem;
}

.ma-head__sub {
  color: var(--text-muted);
  font-size: .95rem;
  margin-top: .3rem;
}

.ma-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: start;
}

.ma-grid--50 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch; /* beide Spalten gleich hoch (Kalender gibt die Höhe vor) */
}

/* Dashboard: rechte Spalte (Nächster Termin + Meine Werte) */
.db-col {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vw, 1.5rem);
  min-width: 0;
}

/* Letzte Card der Spalte füllt die Resthöhe, damit sie bündig mit dem Kalender abschließt */
.db-col > .ma-card:last-child { flex: 1 1 auto; }

.ma-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
}

.ma-card__title {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.ma-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .9rem 1.25rem;
}

.ma-field__label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .15rem;
}

.ma-field__value {
  font-size: .98rem;
  color: var(--text);
  word-break: break-word;
}

.ma-field--wide { grid-column: 1 / -1; }

.ma-stats {
  display: flex;
  gap: .75rem;
  margin-top: 1.1rem;
}

.ma-stat {
  flex: 1;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: .8rem 1rem;
  text-align: center;
}

.ma-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
}

.ma-stat span {
  font-size: .78rem;
  color: var(--text-muted);
}

.ma-table-wrap {
  overflow-x: visible;
}

.ma-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}

.ma-table th {
  text-align: left;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-light);
  padding: .5rem .75rem;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.ma-table td {
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
  vertical-align: top;
}

.ma-table tr:last-child td { border-bottom: none; }

.ma-table tr.is-self td { background: var(--blue-light); }

.ma-table a { color: var(--blue); text-decoration: none; }
.ma-table a:hover { text-decoration: underline; }

.ma-status {
  margin-top: .8rem;
  padding: .65rem .9rem;
  border-radius: var(--radius);
  font-size: .9rem;
}
.ma-status--ok    { color: #0f5f2a; background: #e8faef; border: 1px solid #b8e8c7; }
.ma-status--error { color: #7b1f1f; background: #fdecec; border: 1px solid #f5c2c7; }

.ma-loading {
  color: var(--text-muted);
  font-size: .95rem;
  padding: 2rem 0;
  text-align: center;
}

/* Passwort festlegen: zentrierte Aufgabenansicht mit Sticky Footer */
body[data-page="passwort-setzen"] {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body[data-page="passwort-setzen"] .ps-main {
  display: flex;
  flex: 1 0 auto;
  width: 100%;
}

body[data-page="passwort-setzen"] .ps-section {
  display: grid;
  place-items: center;
  flex: 1 0 auto;
  width: 100%;
  padding-top: clamp(7rem, 12vh, 9rem);
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
}

body[data-page="passwort-setzen"] .ps-section > .container {
  width: 100%;
}

body[data-page="passwort-setzen"] .ps-shell {
  max-width: 560px;
}

body[data-page="passwort-setzen"] .ps-card {
  width: 100%;
}

.ps-intro {
  margin: .6rem 0 1.25rem;
}

.ps-form-group {
  margin-bottom: 1rem;
}

.ps-rules {
  margin: .25rem 0 1.25rem;
  padding: 1rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  background: var(--bg-light);
}

.ps-rules__title {
  margin-bottom: .65rem;
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 700;
  color: var(--navy);
}

.ps-rules__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .45rem 1rem;
}

.ps-rule {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  min-width: 0;
  color: #8b2e2e;
  font-size: .84rem;
  line-height: 1.4;
}

.ps-rule__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.15rem;
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .02rem;
  border-radius: 50%;
  background: #fdecec;
  color: #a03030;
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 800;
  line-height: 1;
}

.ps-rule.is-valid {
  color: #0f5f2a;
}

.ps-rule.is-valid .ps-rule__icon {
  background: #e8faef;
  color: #0f5f2a;
}

.ps-rule__state {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body[data-page="passwort-setzen"] #psSubmit:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width: 860px) {
  .ma-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .ma-fields { grid-template-columns: 1fr; }
  .ma-stats { flex-direction: column; }

  body[data-page="passwort-setzen"] .ps-section {
    align-items: start;
    padding-top: 6.5rem;
    padding-bottom: 2rem;
  }

  body[data-page="passwort-setzen"] .ps-card {
    padding: 1.25rem;
  }

  .ps-rules__list {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   MITGLIEDER-DASHBOARD (Sidebar-Layout)
   ================================================================ */
.mb-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: clamp(1rem, 1.4vw, 1.25rem);
  align-items: start;
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
}

.mb-layout[hidden] {
  display: none !important;
}

.mb-sidebar__mobile-head,
.mb-sidebar-backdrop {
  display: none;
}

.mb-content {
  min-width: 0;
}

body[data-page="mitglieder"] #mitgliederbereich {
  min-height: 100vh;
  padding-top: calc(var(--nav-h) + 1.5rem);
}

body[data-page="mitglieder"] .member-btn {
  display: none !important;
}

body[data-page="mitglieder"] .header__floating {
  display: none !important;
}

body[data-page="mitglieder"] #mitgliederbereich > .container {
  width: 100%;
  max-width: calc(var(--max-w) + var(--page-gutter) + var(--page-gutter));
}

.mb-sidebar {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  display: flex;
  flex-direction: column;
  padding: .75rem;
  background: var(--white);
  border: 0;
  border-radius: var(--radius-card);
  box-shadow: none;
}

.mb-sidebar__user {
  flex: 0 0 auto;
  padding: .45rem .35rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
}

.mb-sidebar__logo {
  width: 100%;
  min-height: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  margin-bottom: 1rem;
  background: oklch(99.4% .004 258);
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  transition: background 180ms cubic-bezier(.16,1,.3,1);
}

.mb-sidebar__logo:hover {
  background: oklch(96% .025 258);
}

.mb-sidebar__logo:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.mb-sidebar__logo.has-logo {
  min-height: 132px;
  background: oklch(99.5% .003 258);
}

.mb-sidebar__logo [hidden] { display: none !important; }

.mb-sidebar__logo img {
  width: 100%;
  height: 132px;
  object-fit: contain;
  display: block;
}

.mb-sidebar__logo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-muted);
  text-align: center;
}

.mb-sidebar__logo-text svg { color: var(--blue); }

.mb-sidebar__identity { padding: 0 .15rem; }

.mb-sidebar__name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--navy);
  line-height: 1.3;
}

.mb-sidebar__firma {
  font-family: var(--font-head);
  font-size: .94rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: .2rem;
  line-height: 1.4;
}

.mb-sidebar__stammtisch {
  margin-top: .4rem;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.4;
}

.mb-sidebar__details {
  display: grid;
  gap: 0;
  margin-top: .9rem;
}

.mb-sidebar__detail {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: baseline;
  gap: .65rem;
  min-width: 0;
  padding: .62rem .15rem;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--border-light);
  border-radius: 0;
}

.mb-sidebar__detail-label {
  color: var(--text-light);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mb-sidebar__meta {
  min-width: 0;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .79rem;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.mb-nav {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  padding: 1.25rem .15rem .75rem;
  overflow: visible;
}

.mb-nav__section {
  display: flex;
  flex-direction: column;
  gap: .18rem;
}

.mb-nav__section[hidden] { display: none; }

.mb-nav__section-label {
  padding: 0 .75rem .3rem;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.mb-nav__item {
  display: flex;
  align-items: center;
  gap: .8rem;
  width: 100%;
  min-height: 48px;
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  padding: .68rem .78rem;
  font-family: var(--font-head);
  font-size: .94rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 180ms cubic-bezier(.16,1,.3,1), border-color 180ms cubic-bezier(.16,1,.3,1), color 180ms cubic-bezier(.16,1,.3,1);
}

.mb-nav__item svg {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
}

/* display:flex oben wuerde das hidden-Attribut ueberstimmen */
.mb-nav__item[hidden] { display: none; }

.mb-nav__item:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.mb-nav__item.is-active {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-color: var(--navy);
  color: var(--white);
  box-shadow: none;
}

.mb-sidebar__footer {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: .35rem;
  padding: .8rem .15rem .15rem;
  border-top: 1px solid oklch(90% .018 258);
}

.mb-nav__item--logout {
  color: oklch(45% .12 25);
}
.mb-nav__item--logout:hover {
  background: oklch(96% .025 25);
  border-color: oklch(88% .045 25);
  color: oklch(37% .13 25);
}

.mb-nav__item--install,
.mb-nav__item--website {
  color: var(--navy);
  text-decoration: none;
}

/* Backend-Zugang: nur für freigeschaltete Kundennummern sichtbar */
.mb-nav__item--backend {
  color: var(--blue);
  text-decoration: none;
}
.mb-nav__item--backend:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.mb-nav__item--backend .mb-nav__ext { margin-left: auto; opacity: .55; }

.mb-view { display: none; }
/* Titel beginnt auf gleicher Höhe wie der Text in der Sidebar (.75rem Sidebar-Padding + .85rem User-Block-Padding) */
.mb-view.is-active { display: block; padding-top: 1.6rem; }

.mb-view__title {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .35rem;
}

#dbGreeting {
  margin-bottom: .75rem;
}

/* Dashboard-Kacheln */
.mb-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.8rem, 1.5vw, 1.25rem);
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.mb-tile {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-sm);
  padding: 1.1rem 1.25rem;
}

.mb-tile--accent {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  border-color: var(--navy);
}
.mb-tile--accent .mb-tile__label { color: rgba(255,255,255,.75); }
.mb-tile--accent .mb-tile__value { color: var(--white); }
.mb-tile--accent .mb-tile__sub   { color: rgba(255,255,255,.75); }

.mb-tile__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: .3rem;
}

.mb-tile__value {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.mb-tile__time {
  display: block;
  margin-top: .15rem;
  font-size: 1rem;
  line-height: 1.15;
}

.mb-tile__sub {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

/* Kennzahlen-Tabellen */
.mb-stat-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.mb-stat-table th, .mb-stat-table td { padding: .6rem .75rem; text-align: right; border-bottom: 1px solid var(--border-light); }
.mb-stat-table th:first-child, .mb-stat-table td:first-child { text-align: left; }
.mb-stat-table thead th {
  font-family: var(--font-head);
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-light); border-bottom: 2px solid var(--border);
}
.mb-stat-table tbody tr:last-child td { border-bottom: none; }
.mb-stat-table td strong { font-family: var(--font-head); color: var(--navy); }
.db-team-stats__head { display: none; }
#dbTeamStatsTable tbody:not(:last-child) tr:last-child td { border-bottom: 1px solid var(--border-light); }

.mb-note {
  font-size: .8rem;
  color: var(--text-light);
  margin-top: .6rem;
}

/* Status-Badges für Meldungen */
.mb-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  font-family: var(--font-head);
}
.mb-status--offen      { background: #fff4e0; color: #925e10; border: 1px solid #f0d9a8; }
.mb-status--bestaetigt { background: #e8faef; color: #0f5f2a; border: 1px solid #b8e8c7; }
.mb-status--abgelehnt  { background: #fdecec; color: #7b1f1f; border: 1px solid #f5c2c7; }
.mb-status--nicht_erschienen { background: #f2f3f5; color: #5a6470; border: 1px solid #d8dde3; }
.mb-status--ausstehend { background: #eaf2fd; color: #1d4f91; border: 1px solid #c3d9f5; }
.mb-status--wartend    { background: #eaf2fd; color: #1d4f91; border: 1px solid #c3d9f5; }

/* Punkte-Chip (Aktivitäten/Meldungslisten) */
.mb-punkte {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 800;
  font-family: var(--font-head);
  background: #e8faef; color: #0f5f2a; border: 1px solid #b8e8c7;
  white-space: nowrap;
}
.mb-punkte--null { background: #f2f3f5; color: #5a6470; border-color: #d8dde3; }
.mb-punkte--reserviert { background: #fff4e0; color: #925e10; border-color: #f0d9a8; }

/* Ungelesen-Badge in der Sidebar-Navigation */
.mb-nav__badge {
  margin-left: auto;
  min-width: 18px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  border-radius: 50%;
  background: #c0392b;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  font-family: var(--font-head);
  line-height: 1;
}
.mb-nav__badge[hidden] { display: none !important; }

/* Klickbare Dashboard-Kachel (Mitteilungen) */
.mb-tile--click {
  cursor: pointer;
  text-align: left;
  width: 100%;
  font: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.mb-tile--click:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Info-Banner (allgemeine GBLorg-Infos) im Dashboard */
.mb-info-banner {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  border: 1px solid #c3d9f5;
  background: #eaf2fd;
  border-left: 4px solid var(--blue, #1d4f91);
  border-radius: var(--radius-card);
  padding: .8rem 1.1rem;
  margin-bottom: .6rem;
}
.mb-info-banner__titel { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: .95rem; }
.mb-info-banner__text  { font-size: .85rem; color: var(--text); margin-top: .15rem; }

/* Mitteilungs-Liste */
.mit-item {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  cursor: pointer;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: .9rem 1.1rem;
  margin-bottom: .6rem;
  transition: box-shadow .15s ease;
}
.mit-item:hover { box-shadow: var(--shadow-sm); }
.mit-item--neu { border-left: 4px solid #c0392b; background: #fffdf7; }
.mit-item__head { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.mit-item__dot { width: 8px; height: 8px; border-radius: 50%; background: #c0392b; flex: 0 0 auto; }
.mit-item__titel { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: .95rem; }
.mit-item__typ {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-light); margin-left: auto; white-space: nowrap;
}
.mit-item__text { font-size: .87rem; color: var(--text); margin-top: .35rem; }
.mit-item__datum { font-size: .76rem; color: var(--text-light); margin-top: .3rem; }

/* F2F-Absolviert-Matrix */
.f2f-stack {
  grid-template-columns: 1fr;
}

.f2f-check    { color: #0f5f2a; font-weight: 800; font-size: 1.05rem; }
.f2f-uncheck  { color: var(--text-light); }

/* Kündigungs-Box */
.mb-kuendigung-status {
  border: 1px solid #f0d9a8;
  background: #fff9ec;
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  margin-top: 1rem;
}

@media (max-width: 1080px) {
  body.mb-menu-open { overflow: hidden; }
  body.mb-menu-open #mitgliederbereich { z-index: 1800; }

  body[data-page="mitglieder"] .header__nav,
  body[data-page="mitglieder"] .header__actions {
    display: none;
  }

  body[data-page="mitglieder"] .hamburger {
    display: flex;
  }

  .mb-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .mb-sidebar {
    position: fixed;
    top: 50%;
    right: auto;
    bottom: auto;
    left: 50%;
    z-index: 1500;
    width: min(560px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    overflow-x: hidden;
    overflow-y: auto;
    padding: .9rem;
    border: 0;
    border-radius: 20px;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -47%) scale(.97);
    transition: transform 220ms cubic-bezier(.16,1,.3,1), opacity 180ms ease-out, visibility 0s linear 220ms;
    overscroll-behavior: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mb-sidebar::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
  }

  .mb-sidebar.is-open {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0s;
  }

  .mb-sidebar__mobile-head {
    position: sticky;
    top: -.9rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    margin: -.9rem -.9rem .85rem;
    padding: .55rem .8rem .55rem 1.1rem;
    background: var(--white);
    border-bottom: 1px solid var(--border-light);
    border-radius: 20px 20px 0 0;
    color: var(--navy);
    font-family: var(--font-head);
  }

  .mb-sidebar__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 9px;
    color: var(--navy);
    background: var(--bg-light);
  }

  .mb-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1490;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: oklch(13% .055 258 / .82);
    cursor: default;
  }

  .mb-sidebar-backdrop[hidden] {
    display: none !important;
  }

  .mb-sidebar__user {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas:
      "logo identity"
      "details details";
    align-items: center;
    gap: .75rem 1rem;
  }
  .mb-sidebar__logo {
    grid-area: logo;
    min-height: 88px;
    height: 88px;
    padding: .5rem;
    margin-bottom: 0;
  }
  .mb-sidebar__logo.has-logo { min-height: 88px; }
  .mb-sidebar__logo img { height: 76px; }
  .mb-sidebar__logo-text { gap: .25rem; font-size: .7rem; }
  .mb-sidebar__logo-text svg { width: 20px; height: 20px; }
  .mb-sidebar__identity { grid-area: identity; padding: 0; }
  .mb-sidebar__details {
    grid-area: details;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 0;
  }
  .mb-sidebar__detail { grid-template-columns: 112px minmax(0, 1fr); gap: .65rem; }
  .mb-nav {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
    gap: .4rem;
    padding: 1rem .1rem .8rem;
    overflow: visible;
  }

  .mb-nav__section:not([hidden]) { display: contents; }

  .mb-nav__section-label { display: none; }

  .mb-nav__item {
    border-radius: var(--radius-lg);
    background: oklch(97.5% .008 258);
  }

  .mb-sidebar__footer {
    flex: 0 0 auto;
    flex-direction: column;
    margin-top: .65rem;
    padding-top: 1rem;
    position: static;
  }
  .mb-view.is-active { padding-top: 0; }

  body[data-page="mitglieder"] .form-input,
  body[data-page="mitglieder"] .btn {
    min-height: 44px;
    touch-action: manipulation;
  }

  body[data-page="mitglieder"] .form-input {
    font-size: 1rem;
  }

  .cal-nav__btn,
  .cal-series-btn,
  .mv-toggle__btn,
  .mm-close {
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
  }

  .ma-table-wrap {
    max-width: 100%;
    overflow-x: visible;
  }

  body[data-page="mitglieder"] .ma-table {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  body[data-page="mitglieder"] #mitgliederbereich {
    padding-top: calc(var(--nav-h) + 1rem);
    padding-bottom: 2.5rem;
  }
  body[data-page="mitglieder"] #mitgliederbereich > .container {
    padding-inline: var(--page-gutter);
  }

  .mb-layout { gap: .8rem; }

  .mb-sidebar {
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    padding: .75rem;
    border-radius: 18px;
  }

  .mb-sidebar__mobile-head {
    top: -.75rem;
    margin: -.75rem -.75rem .7rem;
    border-radius: 18px 18px 0 0;
  }

  .mb-nav {
    grid-template-columns: minmax(0, 1fr);
    gap: .3rem;
    padding-top: .85rem;
  }

  .mb-nav__item { min-height: 48px; font-size: .96rem; }

  .mb-view__title {
    margin-bottom: .8rem;
    font-size: 1.35rem;
  }

  .ma-card {
    padding: 1rem;
    border-radius: var(--radius-card);
  }

  .ma-card__title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .ma-fields {
    grid-template-columns: 1fr;
  }

  .ma-stats {
    flex-direction: column;
  }

  #dbTopTiles {
    grid-template-columns: 1fr !important;
  }

  .mb-tiles {
    grid-template-columns: 1fr;
  }

  .mb-tile {
    padding: 1rem;
  }

  .ma-table-wrap {
    margin-inline: -1rem;
    padding-inline: 1rem;
  }

  .db-col .mb-stat-table {
    min-width: 0;
  }

  .mv-cardhead {
    align-items: stretch;
  }

  .mv-toggle {
    display: flex;
    width: 100%;
  }

  .mv-toggle__btn {
    flex: 1 1 0;
  }

  .mv-cards {
    grid-template-columns: 1fr;
  }

  .am-filter__actions .btn,
  .mb-view form > .btn {
    width: 100%;
  }

  #msConfirm > div,
  #msStornoConfirm > div {
    flex-direction: column;
  }

  #msConfirm > div .btn,
  #msStornoConfirm > div .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.25;
  }
}

/* ================================================================
   GAST-ANMELDUNG: Multistep-Formular (Mitgliederbereich)
   ================================================================ */
.gw-steps {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.gw-steps__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  border-radius: 6px;
  border: 2px solid var(--border);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  color: var(--text-light);
  background: var(--white);
  transition: all var(--tr);
}

.gw-steps__num.is-active {
  border-color: var(--blue);
  color: var(--blue);
}

.gw-steps__num.is-done {
  border-color: #2e9e5b;
  background: #2e9e5b;
  color: var(--white);
}

.gw-steps__line {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.gw-step { display: none; }
.gw-step.is-active { display: block; }

.gw-radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  margin-top: .35rem;
}

.gw-radio {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .95rem;
  color: var(--text);
  cursor: pointer;
}

.gw-radio input[type="radio"] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.gw-label {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .92rem;
  color: var(--navy);
  margin-bottom: .2rem;
}

.gw-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
  align-items: end;
}

.gw-row--single { grid-template-columns: 1fr; }

.gw-row[hidden] { display: none !important; }

/* Stammtisch-Combobox: Freitext-Suche mit Vorschlagsliste */
.gw-combobox {
  position: relative;
}

.gw-combobox__list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  margin: 0;
  padding: .35rem;
  list-style: none;
  max-height: 240px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.gw-combobox__option {
  padding: .55rem .7rem;
  border-radius: 8px;
  font-size: .92rem;
  color: var(--text);
  cursor: pointer;
}

.gw-combobox__option.is-active,
.gw-combobox__option:hover {
  background: var(--blue-light);
  color: var(--navy);
}

.gw-combobox__empty {
  padding: .55rem .7rem;
  color: var(--text-light);
  font-size: .88rem;
}

.gw-find-link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: .45rem 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.gw-find-link:hover { text-decoration: underline; }

/* Gastanmeldung: große Erfolgsanzeige statt erneuter Maske */
.gw-success {
  padding: 1.5rem 0 .5rem;
  text-align: center;
}

.gw-success__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: #e3f7ea;
  color: #1f9e56;
}

.gw-success__title {
  margin: 0 0 .7rem;
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  color: var(--navy);
}

.gw-success__text {
  max-width: 42ch;
  margin: 0 auto 1.75rem;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

/* Profilbild / Firmenlogo-Upload (Mein Profil) */
.pf-logo-row {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.pf-logo-preview {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-light);
}

.pf-logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pf-logo-row [hidden] { display: none !important; }

.pf-logo-placeholder {
  font-size: .78rem;
  color: var(--text-light);
  text-align: center;
  padding: 0 .5rem;
}

/* Dashboard-Kalender */
.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
}

.cal-series-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  padding: .42rem .65rem;
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr), transform .15s ease;
}

.cal-series-btn:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  transform: translateY(-1px);
}
.cal-series-btn[hidden] { display: none !important; }

.cal-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.cal-nav__btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--tr), border-color var(--tr);
}
.cal-nav__btn:hover { background: var(--blue-light); border-color: var(--blue); }

.cal-nav__label {
  min-width: 10.5rem;
  text-align: center;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .95rem;
  color: var(--navy);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.cal-wd {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-muted);
  text-align: center;
  padding: .25rem 0;
}

.cal-cell {
  min-height: 84px;
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: .3rem .35rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.cal-cell--empty { border: 0; background: transparent; }
.cal-cell--heute { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.cal-cell--hat { cursor: pointer; }
.cal-cell--hat:hover { background: var(--bg-light); }

.cal-cell__num {
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.cal-cell--heute .cal-cell__num { color: var(--blue); }

.cal-chip {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  line-height: 1.35;
  padding: 1px 5px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-chip--own   { background: var(--blue); color: var(--white); }
.cal-chip--st    { background: var(--blue-light); color: var(--navy); }
.cal-chip--event { background: #e8faef; color: #0f5f2a; border: 1px solid #b8e8c7; }
.cal-chip--more  { background: transparent; color: var(--text-muted); padding-left: 2px; }

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  margin-top: .8rem;
}

.cal-legend__item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-muted);
}

.cal-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.cal-dot--own   { background: var(--blue); }
.cal-dot--st    { background: var(--blue-light); border: 1px solid var(--blue); }
.cal-dot--event { background: #e8faef; border: 1px solid #b8e8c7; }

.cal-day-detail {
  margin-top: .9rem;
  border-top: 1px solid var(--border-light);
  padding-top: .8rem;
}

.cal-day-detail__title {
  font-family: var(--font-head);
  font-size: .9rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 .5rem;
}

.cal-day-detail__item {
  padding: .45rem .6rem;
  border-left: 3px solid var(--blue-light);
  background: var(--bg-light);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .85rem;
  margin-bottom: .4rem;
}
.cal-day-detail__item--own   { border-left-color: var(--blue); }
.cal-day-detail__item--event { border-left-color: #2e9e5b; }

.cal-day-detail__typ {
  display: inline-block;
  margin-left: .35rem;
  padding: .05rem .45rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: .66rem;
  font-weight: 700;
  color: var(--text-muted);
  vertical-align: middle;
}

.cal-day-detail__sub {
  color: var(--text-muted);
  font-size: .78rem;
  margin-top: .15rem;
}

@media (max-width: 640px) {
  .cal-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .65rem;
  }
  .cal-series-btn { align-self: center; }
  .cal-nav {
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }
  .cal-nav__label {
    flex: 1 1 auto;
    min-width: 0;
  }
  .cal-cell { min-height: 48px; padding: .2rem; }
  .cal-chip { font-size: 0; padding: 0; width: 8px; height: 8px; border-radius: 50%; }
  .cal-chip--own   { background: var(--blue); }
  .cal-chip--st    { background: var(--blue); opacity: .35; }
  .cal-chip--event { background: #2e9e5b; border: 0; }
  .cal-chip--more  { display: none; }
}

/* Mitglieder: Karten-/Listen-Umschalter + Karten-Ansicht */
.mv-cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.mv-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.mv-toggle__btn {
  border: 0;
  background: var(--white);
  color: var(--text-muted);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 700;
  padding: .35rem .8rem;
  cursor: pointer;
  transition: background var(--tr), color var(--tr);
}
.mv-toggle__btn + .mv-toggle__btn { border-left: 1px solid var(--border); }
.mv-toggle__btn:hover { background: var(--bg-light); }
.mv-toggle__btn.is-active { background: var(--navy); color: var(--white); }

.mv-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .8rem;
  margin-top: .35rem;
}

.mv-cards[hidden] { display: none !important; }

.mv-card {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0;
  height: 340px;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--tr), box-shadow var(--tr), background var(--tr);
}

.mv-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.mv-card.is-self { background: var(--blue-light); }

.mv-card__logo {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: var(--white);
}

img.mv-card__logo {
  display: block;
  padding: clamp(1rem, 2vw, 1.5rem);
  object-fit: contain;
  object-position: center;
}

.mv-card__logo--ph {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: .04em;
  color: var(--white);
  background: var(--navy);
}

.mv-card__body {
  min-width: 0;
  min-height: 0;
  padding: 1rem 1.1rem 1.15rem;
  background: var(--white);
  overflow: hidden;
}

.mv-card__name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .9rem;
  color: var(--navy);
  line-height: 1.3;
}

.mv-card__firma {
  font-size: .8rem;
  color: var(--text);
  margin-top: .1rem;
}

.mv-card__meta {
  font-size: .74rem;
  color: var(--text-muted);
  margin-top: .15rem;
}

.mv-card__st {
  display: inline-block;
  margin-top: .35rem;
  padding: .1rem .5rem;
  border-radius: 999px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  font-size: .68rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Alle Mitglieder: Filterleiste */
.am-filter {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem 1.1rem;
  align-items: end;
}

.am-filter__search { grid-column: 1 / -1; }

.am-filter__actions { justify-content: flex-end; }

.am-count {
  font-weight: 600;
  font-size: .85rem;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .am-filter { grid-template-columns: 1fr; }
}

/* Ranking: eigener Stammtisch hervorgehoben */
.rk-platz {
  font-family: var(--font-head);
  font-weight: 800;
  white-space: nowrap;
}

.rk-row--own td {
  background: var(--blue-light);
  font-weight: 700;
}

.rk-own-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.9rem;
  margin: 0 0 .2rem;
  padding: .06rem .34rem;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: .61rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
}

.rk-own-badge--wide { padding-inline: .45rem; }

.rk-place-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-self: end;
  line-height: 1.35;
}

.rk-place-stack.is-own { align-items: center; }

/* Mitglieder-Tabelle: Logo-Spalte + klickbare Zeilen (Mein Stammtisch) */
.mm-row { cursor: pointer; }
.mm-row:hover td { background: var(--blue-light); }

.mm-row-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
  background: var(--bg-light);
  object-fit: contain;
  vertical-align: middle;
}

.mm-row-logo--ph {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  color: var(--text-light);
}

/* Mitglied-Detail-Modal */
.mm-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(10, 22, 44, .55);
}

.mm-overlay[hidden] { display: none !important; }

.mm-dialog {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 64px rgba(10, 22, 44, .35);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.mm-close {
  position: absolute;
  top: .65rem;
  right: .75rem;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--tr);
}
.mm-close:hover { color: var(--navy); }

.mm-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.mm-logo {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background: var(--bg-light);
}

.mm-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mm-logo [hidden], .mm-logo img[hidden] { display: none !important; }

.mm-logo-placeholder {
  font-size: .72rem;
  color: var(--text-light);
  text-align: center;
  padding: 0 .4rem;
}

.mm-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 .15rem;
}

.mm-firma {
  font-size: .9rem;
  color: var(--text-muted);
  margin: 0;
}

.mm-fields { margin-bottom: 1.1rem; }

.mm-desc__title {
  font-family: var(--font-head);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 .4rem;
}

.mm-desc__text {
  font-size: .92rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  white-space: pre-line; /* Zeilenumbrüche aus der Beschreibung erhalten */
}

.mm-desc__text--empty {
  color: var(--text-light);
  font-style: italic;
}

.gw-block { margin-bottom: 1.25rem; }

.form-input[readonly] {
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: not-allowed;
}

.gw-privacy {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 1.1rem 0;
}

.gw-privacy input[type="checkbox"] {
  margin-top: .25rem;
  accent-color: var(--blue);
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  cursor: pointer;
}

.gw-privacy a { color: var(--blue); }

.gw-actions {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .gw-row { grid-template-columns: 1fr !important; }
  .gw-radio-group { flex-direction: column; gap: .4rem; }
  .gw-radio {
    width: 100%;
    min-height: 44px;
    padding: .45rem .15rem;
  }
  .gw-radio input[type="radio"] {
    width: 20px;
    height: 20px;
  }
  .gw-privacy input[type="checkbox"] {
    width: 20px;
    height: 20px;
  }
  .gw-actions { flex-direction: column; }
  .gw-actions .btn {
    width: 100%;
    white-space: normal;
    line-height: 1.25;
  }
  .pf-logo-row { align-items: stretch; }
  .pf-logo-row > div:last-child { flex: 1 1 100%; }
  .mv-cardhead { align-items: stretch; }
  .mv-toggle { display: flex; width: 100%; }
  .mv-toggle__btn { flex: 1 1 0; }
  .mv-cards { grid-template-columns: 1fr; }
  .mit-item__typ { margin-left: 0; }
  .mm-overlay {
    align-items: flex-end;
    padding: .5rem;
  }
  .mm-dialog {
    max-height: calc(100dvh - 1rem);
    padding: 1.15rem;
    border-radius: var(--radius-lg) var(--radius-lg) 8px 8px;
  }
  .mm-head {
    align-items: flex-start;
    padding-right: 2rem;
  }
  .mm-logo {
    width: 68px;
    height: 68px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mb-sidebar {
    transition: none;
  }
}

/* ================================================================
   PWA-Installation: dauerhafter Menüzugang, Installationshinweis und
   plattformspezifische Anleitung für den Mitgliederbereich.
   ================================================================ */
body.pwa-guide-open { overflow: hidden; }

.pwa-install-banner {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 3000;
  display: flex;
  justify-content: center;
  padding: 0 var(--sp-md) max(var(--sp-md), env(safe-area-inset-bottom));
  pointer-events: none;
}

.pwa-install-banner__inner {
  position: relative;
  width: min(100%, 500px);
  padding: 1.25rem;
  border: 1px solid oklch(89% .016 258);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 24px 70px oklch(15% .05 258 / .24), 0 8px 24px oklch(15% .05 258 / .1);
  opacity: 0;
  pointer-events: auto;
  transform: translateY(24px) scale(.985);
  transition: transform 240ms cubic-bezier(.16,1,.3,1), opacity 180ms ease-out;
}

.pwa-install-banner.is-visible .pwa-install-banner__inner {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.pwa-install-banner__head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding-right: 2.25rem;
}

.pwa-install-banner__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 3px 10px oklch(27% .08 258 / .22);
}

.pwa-install-banner__body {
  flex: 1;
  min-width: 0;
}

.pwa-install-banner__platform,
.pwa-install-guide__platform {
  display: block;
  margin-bottom: .2rem;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pwa-install-banner__title {
  display: block;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.3;
}

.pwa-install-banner__lead {
  margin-top: .3rem;
  color: var(--text-muted);
  font-size: .86rem;
  line-height: 1.5;
}

.pwa-install-banner__actions {
  display: flex;
  margin-top: 1rem;
}

.pwa-install-banner__actions .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
}

.pwa-install-banner__close,
.pwa-install-guide__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--bg-light);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 180ms cubic-bezier(.16,1,.3,1), border-color 180ms cubic-bezier(.16,1,.3,1), color 180ms cubic-bezier(.16,1,.3,1);
}

.pwa-install-banner__close {
  position: absolute;
  top: .8rem;
  right: .8rem;
}

.pwa-install-banner__close:hover,
.pwa-install-banner__close:focus-visible,
.pwa-install-guide__close:hover,
.pwa-install-guide__close:focus-visible {
  border-color: var(--border);
  background: var(--blue-light);
  color: var(--navy);
}

.pwa-install-guide[hidden] { display: none !important; }

.pwa-install-guide {
  position: fixed;
  inset: 0;
  z-index: 3300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pwa-install-guide__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: oklch(13% .055 258 / .84);
  opacity: 0;
  cursor: default;
  transition: opacity 180ms ease-out;
}

.pwa-install-guide__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.35rem;
  border: 1px solid oklch(88% .018 258);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: 0 30px 90px oklch(10% .04 258 / .45);
  opacity: 0;
  scrollbar-width: none;
  transform: translateY(18px) scale(.98);
  transition: transform 220ms cubic-bezier(.16,1,.3,1), opacity 180ms ease-out;
}

.pwa-install-guide__panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pwa-install-guide.is-visible .pwa-install-guide__backdrop,
.pwa-install-guide.is-visible .pwa-install-guide__panel {
  opacity: 1;
}

.pwa-install-guide.is-visible .pwa-install-guide__panel {
  transform: translateY(0) scale(1);
}

.pwa-install-guide__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.pwa-install-guide__identity {
  display: flex;
  align-items: center;
  gap: .9rem;
  min-width: 0;
}

.pwa-install-guide__identity img {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 3px 10px oklch(27% .08 258 / .2);
}

.pwa-install-guide__identity h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-head);
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.3;
}

.pwa-install-guide__intro {
  margin: 1.1rem 0 0;
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
}

.pwa-install-guide__direct[hidden] { display: none !important; }

.pwa-install-guide__direct {
  margin-top: 1.1rem;
}

.pwa-install-guide__direct .btn {
  width: 100%;
  min-height: 50px;
  border-radius: 12px;
}

.pwa-install-guide__direct:not([hidden]) + .pwa-install-guide__intro {
  margin-top: .85rem;
}

.pwa-install-guide__steps {
  display: grid;
  gap: .75rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.pwa-install-guide__steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: .75rem;
  min-height: 54px;
  padding: .65rem .75rem;
  border: 1px solid oklch(91% .014 258);
  border-radius: 14px;
  background: oklch(98% .006 258);
  color: var(--text);
  font-size: .88rem;
  line-height: 1.5;
}

.pwa-install-guide__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
}

.pwa-install-guide__note {
  margin: 1rem 0 0;
  padding: .8rem .9rem;
  border: 1px solid oklch(88% .035 258);
  border-radius: 12px;
  background: var(--blue-light);
  color: var(--navy);
  font-size: .82rem;
  line-height: 1.55;
}

.pwa-install-guide__actions {
  display: flex;
  margin-top: 1rem;
}

.pwa-install-guide__actions .btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
}

@media (max-width: 640px) {
  .pwa-install-banner {
    padding: 0 .75rem max(.75rem, env(safe-area-inset-bottom));
  }

  .pwa-install-banner__inner {
    padding: 1rem;
    border-radius: 18px;
  }

  .pwa-install-guide {
    align-items: flex-end;
    padding: 0;
  }

  .pwa-install-guide__panel {
    width: 100%;
    max-height: calc(100vh - .75rem);
    max-height: calc(100dvh - .75rem);
    padding: 1.1rem 1rem max(1rem, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    transform: translateY(28px);
  }

  .pwa-install-guide__identity {
    align-items: flex-start;
  }

  .pwa-install-guide__identity h2 {
    font-size: 1.05rem;
  }

  .pwa-install-guide__steps li {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pwa-install-banner__inner,
  .pwa-install-guide__backdrop,
  .pwa-install-guide__panel {
    transition: none;
  }
}

/* ================================================================
   MITGLIEDERBEREICH: responsive Daten-Cards ohne horizontales Scrollen
   ================================================================ */
@media (max-width: 1080px) {
  body[data-page="mitglieder"] .ma-table-wrap {
    max-width: 100%;
    margin-inline: 0;
    padding-inline: 0;
    overflow: visible;
    overscroll-behavior: auto;
  }

  body[data-page="mitglieder"] .ma-table,
  body[data-page="mitglieder"] .mb-stat-table {
    width: 100%;
    min-width: 0 !important;
    table-layout: auto;
  }

  body[data-page="mitglieder"] .ma-table:not(.mb-responsive-table) {
    table-layout: fixed;
  }

  body[data-page="mitglieder"] .ma-table:not(.mb-responsive-table) td {
    min-width: 0;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body[data-page="mitglieder"] .mb-responsive-table {
    display: block;
    border-collapse: separate;
    border-spacing: 0;
  }

  body[data-page="mitglieder"] .mb-responsive-table[hidden],
  body[data-page="mitglieder"] .mb-responsive-table td[hidden] {
    display: none !important;
  }

  body[data-page="mitglieder"] .mb-responsive-table thead {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  body[data-page="mitglieder"] .mb-responsive-table tbody {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
    width: 100%;
  }

  body[data-page="mitglieder"] .mb-responsive-table tbody tr {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    padding: .75rem .85rem;
    border: 1px solid oklch(90% .016 258);
    border-radius: 14px;
    background: oklch(98.5% .006 258);
    box-shadow: 0 3px 12px oklch(20% .03 258 / .06);
  }

  body[data-page="mitglieder"] .mb-responsive-table tbody tr.is-self,
  body[data-page="mitglieder"] .mb-responsive-table tbody tr.rk-row--own {
    border-color: oklch(79% .09 251);
    background: var(--blue-light);
  }

  body[data-page="mitglieder"] .mb-responsive-table tbody tr.mm-row:hover {
    border-color: oklch(72% .11 251);
    background: var(--blue-light);
  }

  body[data-page="mitglieder"] .mb-responsive-table td {
    display: grid;
    grid-template-columns: minmax(7.5rem, .85fr) minmax(0, 1.15fr);
    align-items: start;
    gap: .75rem;
    width: 100%;
    min-width: 0;
    padding: .42rem 0;
    border: 0;
    border-bottom: 1px solid oklch(92.5% .012 258);
    background: transparent !important;
    color: var(--text);
    text-align: right !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  body[data-page="mitglieder"] .mb-responsive-table td:last-child {
    border-bottom: 0;
  }

  body[data-page="mitglieder"] .mb-responsive-table td::before {
    content: attr(data-label);
    color: var(--navy);
    font-family: var(--font-head);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .055em;
    line-height: 1.4;
    text-align: left;
    text-transform: uppercase;
  }

  body[data-page="mitglieder"] .mb-responsive-table td[colspan] {
    display: block;
    text-align: left !important;
  }

  body[data-page="mitglieder"] .mb-responsive-table td[colspan]::before {
    content: none;
  }

  body[data-page="mitglieder"] .mb-responsive-table td > *,
  body[data-page="mitglieder"] .mb-responsive-table td a {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  body[data-page="mitglieder"] .ma-card:has(.mb-responsive-table) {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="mitglieder"] .ma-card:has(.mb-responsive-table) > .ma-card__title {
    margin-bottom: .85rem;
  }
}

@media (max-width: 700px) {
  body[data-page="mitglieder"] .mb-responsive-table tbody {
    grid-template-columns: minmax(0, 1fr);
  }

  body[data-page="mitglieder"] .mb-responsive-table td {
    grid-template-columns: minmax(6.6rem, .8fr) minmax(0, 1.2fr);
    gap: .65rem;
  }
}

/* Dashboard: Stammtisch-Kennzahlen als zwei Gruppen auf Tablets */
@media (max-width: 1080px) {
  body[data-page="mitglieder"] #dbTeamStatsTable {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
  }

  body[data-page="mitglieder"] #dbTeamStatsTable .db-team-stats__group {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: .75rem .85rem;
    border: 1px solid oklch(90% .016 258);
    border-radius: 14px;
    background: oklch(98.5% .006 258);
    box-shadow: 0 3px 12px oklch(20% .03 258 / .06);
  }

  body[data-page="mitglieder"] #dbTeamStatsTable tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .75rem;
    padding: .58rem 0;
    border: 0;
    border-bottom: 1px solid oklch(92.5% .012 258);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="mitglieder"] #dbTeamStatsTable tbody tr:last-child {
    border-bottom: 0;
  }

  body[data-page="mitglieder"] #dbTeamStatsTable .db-team-stats__head {
    display: grid;
    padding-top: .15rem;
    padding-bottom: .48rem;
    border-bottom: 2px solid var(--border);
  }

  body[data-page="mitglieder"] #dbTeamStatsTable .db-team-stats__head th {
    padding: 0;
    border: 0;
    color: var(--text-light);
    font-family: var(--font-head);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .075em;
    text-align: right;
    text-transform: uppercase;
  }

  body[data-page="mitglieder"] #dbTeamStatsTable .db-team-stats__head th:first-child {
    text-align: left;
  }

  body[data-page="mitglieder"] #dbTeamStatsTable td {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
  }

  body[data-page="mitglieder"] #dbTeamStatsTable td:first-child {
    text-align: left !important;
  }

  body[data-page="mitglieder"] #dbTeamStatsTable td::before {
    content: none;
  }
}

/* Smartphone: alle Stammtisch-Kennzahlen in einer gemeinsamen Card */
@media (max-width: 700px) {
  body[data-page="mitglieder"] #dbTeamStatsTable {
    display: block;
    padding: .75rem .85rem;
    border: 1px solid oklch(90% .016 258);
    border-radius: 14px;
    background: oklch(98.5% .006 258);
    box-shadow: 0 3px 12px oklch(20% .03 258 / .06);
  }

  body[data-page="mitglieder"] #dbTeamStatsTable .db-team-stats__group {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body[data-page="mitglieder"] #dbTeamStatsTable .db-team-stats__group + .db-team-stats__group .db-team-stats__head {
    display: none;
  }

  body[data-page="mitglieder"] #dbTeamStatsTable .db-team-stats__group:first-of-type .db-team-stats__head {
    display: grid;
  }

  body[data-page="mitglieder"] #dbTeamStatsTable .db-team-stats__group:not(:last-child) tr:last-child {
    border-bottom: 1px solid oklch(92.5% .012 258);
  }
}

/* ================================================================
   CONSENT MANAGER
   ================================================================ */
body.consent-open { overflow: hidden; }

.consent-layer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: end center;
  padding: clamp(1rem, 3vw, 2rem);
}

.consent-layer[hidden] { display: none; }

.consent-layer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 12, 34, .72);
  backdrop-filter: blur(5px);
}

.consent-card {
  position: relative;
  width: min(100%, 780px);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  scrollbar-width: none;
  border: 1px solid rgba(255, 255, 255, .74);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 80px rgba(2, 12, 38, .34);
  color: var(--text);
}

.consent-card::-webkit-scrollbar { display: none; }

.consent-panel { padding: clamp(1.35rem, 4vw, 2.35rem); }
.consent-panel[hidden] { display: none; }

.consent-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  margin-bottom: .65rem;
  padding: .22rem .72rem;
  border-radius: 999px;
  background: var(--blue-light);
  color: var(--navy);
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.consent-card__logo {
  display: block;
  height: 32px;
  width: auto;
  margin-bottom: .9rem;
}

.consent-card__title {
  max-width: 680px;
  margin: 0 0 .8rem;
  color: var(--navy);
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -.025em;
}

.consent-card__text {
  max-width: 690px;
  margin: 0;
  color: var(--text-muted);
  font-size: .96rem;
  line-height: 1.65;
}

.consent-card__links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.25rem;
  margin-top: 1rem;
}

.consent-card__links a,
.consent-settings-link {
  color: var(--navy);
  font-size: .85rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(13, 43, 110, .28);
  text-underline-offset: 3px;
}

.consent-actions {
  display: grid;
  gap: .75rem;
  margin-top: 1.3rem;
}

.consent-actions--primary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.consent-actions--settings { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.consent-btn {
  min-height: 48px;
  padding: .72rem 1rem;
  border: 1.5px solid var(--navy);
  border-radius: 12px;
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.25;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr);
}

.consent-btn:hover { transform: translateY(-1px); }

.consent-btn--reject,
.consent-btn--save {
  background: var(--white);
  color: var(--navy);
}

.consent-btn--accept {
  background: var(--navy);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(13, 43, 110, .17);
}

.consent-settings-link {
  display: block;
  margin: .9rem auto 0;
  padding: .25rem;
}

.consent-settings__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.consent-close {
  flex: 0 0 auto;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--navy);
  font-size: 1.6rem;
  line-height: 1;
}

.consent-options {
  display: grid;
  gap: .75rem;
  margin-top: 1.2rem;
}

.consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-light);
}

label.consent-option { cursor: pointer; }

.consent-option__copy { display: grid; gap: .2rem; }
.consent-option__copy strong { color: var(--navy); font-family: var(--font-head); font-size: .94rem; }
.consent-option__copy span { color: var(--text-muted); font-size: .81rem; line-height: 1.45; }

.consent-option__fixed {
  flex: 0 0 auto;
  padding: .3rem .65rem;
  border-radius: 999px;
  background: rgba(13, 43, 110, .09);
  color: var(--navy);
  font-size: .7rem;
  font-weight: 800;
  white-space: nowrap;
}

.consent-switch { position: relative; flex: 0 0 48px; width: 48px; height: 28px; }
.consent-switch input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.consent-switch span {
  position: absolute;
  inset: 0;
  border: 1px solid #aab5c7;
  border-radius: 999px;
  background: #cbd3df;
  transition: background var(--tr), border-color var(--tr);
}
.consent-switch span::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 5px rgba(8, 25, 74, .22);
  transition: transform var(--tr);
}
.consent-switch input:checked + span { border-color: var(--navy); background: var(--navy); }
.consent-switch input:checked + span::after { transform: translateX(20px); }
.consent-switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 3px; }

.consent-card__fineprint {
  margin: 1rem 0 0;
  color: var(--text-light);
  font-size: .74rem;
  line-height: 1.45;
}

/* ================================================================
   LEGAL PAGES
   ================================================================ */
.legal-page { padding: calc(var(--nav-h) + 3rem) 0 5rem; background: var(--bg-light); }

.legal-hero { margin-bottom: 2rem; }
.legal-hero__eyebrow {
  display: inline-block;
  margin-bottom: .7rem;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.legal-hero h1 { margin-bottom: .8rem; font-size: clamp(2.2rem, 6vw, 4.4rem); letter-spacing: -.045em; }
.legal-hero p { max-width: 720px; color: var(--text-muted); font-size: clamp(1rem, 2vw, 1.15rem); }

.legal-layout {
  display: grid;
  grid-template-columns: minmax(210px, 270px) minmax(0, 860px);
  align-items: start;
  justify-content: center;
  gap: clamp(1.25rem, 4vw, 3rem);
}

.legal-toc {
  position: sticky;
  top: calc(var(--nav-h) + 1.5rem);
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.legal-toc strong { display: block; margin-bottom: .55rem; color: var(--navy); font-family: var(--font-head); font-size: .82rem; }
.legal-toc nav { display: grid; gap: .15rem; }
.legal-toc a { padding: .38rem .25rem; color: var(--text-muted); font-size: .78rem; line-height: 1.3; }
.legal-toc a:hover { color: var(--navy); }

.legal-content {
  min-width: 0;
  padding: clamp(1.35rem, 4vw, 3.2rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.legal-section { scroll-margin-top: calc(var(--nav-h) + 1.5rem); }
.legal-section + .legal-section { margin-top: 2.3rem; padding-top: 2.3rem; border-top: 1px solid var(--border-light); }
.legal-section h2 { margin-bottom: .8rem; font-size: clamp(1.25rem, 3vw, 1.65rem); letter-spacing: -.02em; }
.legal-section h3 { margin: 1.2rem 0 .45rem; font-size: 1rem; }
.legal-section p + p { margin-top: .7rem; }
.legal-section p,
.legal-section li { color: #435067; font-size: .94rem; line-height: 1.72; }
.legal-section ul { display: grid; gap: .45rem; margin: .7rem 0 0; padding-left: 1.25rem; list-style: disc; }
.legal-section a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.legal-section address { color: #435067; line-height: 1.72; }
.legal-section code { padding: .12rem .35rem; border-radius: 5px; background: var(--bg-light); color: var(--navy); font-size: .84em; }

.legal-note {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #dfbf71;
  border-radius: 14px;
  background: #fff9e9;
  color: #594519;
  font-size: .86rem;
  line-height: 1.55;
}

.legal-data-table { display: grid; gap: .65rem; margin-top: .85rem; }
.legal-data-row {
  display: grid;
  grid-template-columns: minmax(145px, .7fr) minmax(0, 1.3fr);
  gap: .8rem 1rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border-light);
}
.legal-data-row:last-child { border-bottom: 0; }
.legal-data-row dt { color: var(--navy); font-family: var(--font-head); font-size: .82rem; font-weight: 800; }
.legal-data-row dd { color: #435067; font-size: .88rem; line-height: 1.55; }

.st-map-consent {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 420px;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at 20% 20%, rgba(21, 101, 192, .12), transparent 34%),
    linear-gradient(145deg, #eef3fb 0%, #dfe8f5 100%);
  text-align: center;
}
.st-map-consent__card {
  width: min(100%, 470px);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius-card);
  background: rgba(255,255,255,.92);
  box-shadow: 0 18px 45px rgba(13,43,110,.14);
}
.st-map-consent__icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto .85rem;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--navy);
}
.st-map-consent h3 { margin-bottom: .5rem; font-size: 1.2rem; }
.st-map-consent p { margin-bottom: 1rem; color: var(--text-muted); font-size: .88rem; line-height: 1.55; }

@media (max-width: 860px) {
  .legal-page { padding-top: calc(var(--nav-h) + 2rem); }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .legal-toc nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .consent-actions--settings { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .consent-layer { padding: .65rem; place-items: end center; }
  .consent-card { max-height: calc(100dvh - 1.3rem); border-radius: var(--radius-card); }
  .consent-panel { padding: 1.2rem; }
  .consent-actions--primary { grid-template-columns: 1fr; }
  .consent-option { align-items: flex-start; gap: .8rem; padding: .85rem; }
  .consent-option__fixed { margin-top: .1rem; }
  .legal-page { padding-bottom: 3rem; }
  .legal-toc nav { grid-template-columns: 1fr; }
  .legal-content { padding: 1.2rem; border-radius: var(--radius-card); }
  .legal-section + .legal-section { margin-top: 1.7rem; padding-top: 1.7rem; }
  .legal-data-row { grid-template-columns: 1fr; gap: .25rem; }
  .footer__legal { gap: .9rem 1.2rem; }
}

@media (prefers-reduced-motion: reduce) {
  .consent-btn,
  .consent-switch span,
  .consent-switch span::after { transition: none; }
}

/* ================================================================
   BACK TO TOP
   ================================================================ */
.back-to-top {
  position: fixed;
  right: clamp(1rem, 3vw, 1.75rem);
  bottom: clamp(1rem, 3vw, 1.75rem);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  background: rgba(13, 43, 110, .5);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(8, 25, 74, .32), inset 0 1px 0 rgba(255, 255, 255, .2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 420ms ease, transform 420ms ease, background 160ms ease, visibility 0s linear 420ms;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 420ms ease, transform 420ms ease, background 160ms ease, visibility 0s linear 0s;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(13, 43, 110, .72);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .back-to-top {
    width: 42px;
    height: 42px;
    bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top { transition: opacity 120ms ease, visibility 0s linear 120ms; }
  .back-to-top.is-visible { transition: opacity 120ms ease, visibility 0s linear 0s; }
}

/* ================================================================
   BALD VERFÜGBAR: vollflächige Statusseite
   ================================================================ */
body[data-page="bald-verfuegbar"] {
  background: var(--bg-light);
}

.bv-page {
  background: var(--bg-light);
}

.bv-hero {
  padding: calc(var(--nav-h) + clamp(.75rem, 2vw, 1.5rem)) 0 clamp(1rem, 2.5vw, 2rem);
}

.bv-hero__container {
  width: 100%;
  max-width: calc(var(--max-w) + var(--page-gutter) + var(--page-gutter));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.bv-hero__surface {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - var(--nav-h) - clamp(1.5rem, 4vw, 3rem));
  overflow: hidden;
  border-radius: 24px;
  background: var(--navy);
  isolation: isolate;
}

.bv-hero__image,
.bv-hero__veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.bv-hero__image {
  z-index: -2;
  object-fit: cover;
}

.bv-hero__veil {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 25, 74, .98) 0%, rgba(8, 25, 74, .94) 42%, rgba(8, 25, 74, .76) 68%, rgba(8, 25, 74, .4) 100%),
    linear-gradient(0deg, rgba(8, 25, 74, .38), rgba(8, 25, 74, .08));
}

.bv-hero__content {
  width: min(760px, 70%);
  padding: clamp(3rem, 7vw, 6.5rem);
  color: var(--white);
}

.bv-hero__meta {
  display: flex;
  align-items: center;
  gap: .75rem 1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.bv-hero__timing {
  color: rgba(255, 255, 255, .7);
  font-size: .82rem;
  font-weight: 700;
}

.bv-hero__eyebrow {
  margin: 0 0 .65rem;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.bv-hero__title {
  max-width: 14ch;
  margin: 0;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5.8rem);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: .96;
}

.bv-hero__lead {
  max-width: 66ch;
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
  color: rgba(255, 255, 255, .84);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.65;
}

.bv-hero__status {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: .9rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, .08);
}

.bv-hero__status > svg {
  margin-top: .1rem;
  color: var(--gold);
}

.bv-hero__status strong {
  display: block;
  margin-bottom: .2rem;
  color: var(--white);
  font-family: var(--font-head);
  font-size: .92rem;
}

.bv-hero__status p {
  margin: 0;
  color: rgba(255, 255, 255, .76);
  font-size: .9rem;
  line-height: 1.55;
}

.bv-hero__scope {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
}

.bv-hero__scope h2 {
  margin: 0 0 .75rem;
  color: var(--white);
  font-size: 1rem;
}

.bv-hero__scope ul {
  display: grid;
  gap: .55rem;
  margin: 0;
}

.bv-hero__scope li {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: .65rem;
  color: rgba(255, 255, 255, .8);
  font-size: .92rem;
  line-height: 1.5;
}

.bv-hero__scope li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 800;
}

.bv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

.bv-available {
  padding-top: clamp(4.5rem, 8vw, 7.5rem);
  padding-bottom: clamp(4.5rem, 8vw, 7.5rem);
}

.bv-available__intro {
  max-width: 760px;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.bv-options {
  border-top: 1px solid var(--border);
}

.bv-option {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  min-height: 132px;
  padding: 1.4rem clamp(.25rem, 1vw, .75rem);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: color 180ms cubic-bezier(.16, 1, .3, 1), background 180ms cubic-bezier(.16, 1, .3, 1);
}

.bv-option:hover,
.bv-option:focus-visible {
  background: var(--bg-light);
  color: var(--navy);
}

.bv-option:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.bv-option__number {
  color: var(--blue);
  font-family: var(--font-head);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.bv-option__copy {
  display: grid;
  gap: .28rem;
}

.bv-option__copy strong {
  color: var(--navy);
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.bv-option__copy > span {
  max-width: 68ch;
  color: var(--text-muted);
  line-height: 1.55;
}

.bv-option__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--blue);
  font-family: var(--font-head);
  font-size: .86rem;
  font-weight: 800;
  white-space: nowrap;
}

.bv-option__link > span {
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}

.bv-option:hover .bv-option__link > span,
.bv-option:focus-visible .bv-option__link > span {
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .bv-hero__container {
    padding-inline: var(--page-gutter);
  }

  .bv-hero__content {
    width: min(680px, 84%);
    padding: clamp(2.5rem, 7vw, 4.5rem);
  }

  .bv-hero__veil {
    background: linear-gradient(90deg, rgba(8, 25, 74, .98) 0%, rgba(8, 25, 74, .91) 68%, rgba(8, 25, 74, .62) 100%);
  }

  .bv-option {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .bv-option__link {
    grid-column: 2;
  }
}

@media (max-width: 640px) {
  .bv-hero {
    padding-top: calc(var(--nav-h) + .75rem);
    padding-bottom: .75rem;
  }

  .bv-hero__container {
    padding-inline: var(--page-gutter);
  }

  .bv-hero__surface {
    min-height: calc(100svh - var(--nav-h) - 1.5rem);
    border-radius: 18px;
  }

  .bv-hero__veil {
    background: linear-gradient(180deg, rgba(8, 25, 74, .78) 0%, rgba(8, 25, 74, .96) 32%, rgba(8, 25, 74, .99) 100%);
  }

  .bv-hero__image {
    object-position: center top !important;
  }

  .bv-hero__content {
    width: 100%;
    padding: clamp(2.4rem, 10vw, 3.5rem) 1.2rem;
  }

  .bv-hero__meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .bv-hero__title {
    font-size: clamp(2.35rem, 12vw, 3.5rem);
    line-height: 1;
  }

  .bv-hero__status {
    grid-template-columns: 24px minmax(0, 1fr);
    padding: .9rem;
  }

  .bv-hero__actions {
    flex-direction: column;
  }

  .bv-hero__actions .btn {
    width: 100%;
  }

  .bv-available {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }

  .bv-option {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: .75rem;
    min-height: 0;
    padding-block: 1.35rem;
  }

  .bv-option__link {
    align-items: flex-start;
    white-space: normal;
  }
}

/* ================================================================
   FLAT CARD POLICY
   Cards are separated by surface and spacing, never by elevation,
   glow, colored outlines or decorative edge treatments.
   ================================================================ */
.hero-feature__card,
.member-login-modal__dialog,
.referral-visual-card,
.referral-ribbon,
.info-box,
.section-box,
.service-card,
.journey-card,
.bh-flowmap,
.bh-track__card,
.bh-intro__visual,
.bh-problems-frame,
.bh-problems__stage,
.bh-solution-card,
.bh-service-group,
.wizard-container,
.wizard-card,
.contact-form,
.paket-card,
.ma-card,
.mb-tile,
.mit-item,
.mv-card,
.legal-toc,
.legal-content,
.st-map-consent__card {
  border-color: transparent !important;
  box-shadow: none !important;
}

.wizard-card,
.paket-card,
.mv-card {
  background-color: var(--bg-light);
}

#mbSidebar {
  border: 0 !important;
  box-shadow: none !important;
}

.wizard-card::after,
.bh-problems-frame--text::before {
  display: none !important;
}

@media (max-width: 1024px) {
  body[data-page="mitglieder"] .mb-responsive-table tbody tr,
  body[data-page="mitglieder"] #dbTeamStatsTable .db-team-stats__group {
    border-color: transparent !important;
    box-shadow: none !important;
  }
}

