/* =========================================================
   Normtracker by CertVision — Website Stylesheet
   Kein Build-Tool: reines CSS, geladen via <link> in jeder Seite.
   ========================================================= */

/* ---------- Fonts (self-hosted Inter, DSGVO-konform) ---------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  /* Markenfarben aus dem Stilguide */
  --dark-teal: #04283a;
  --teal-cyan: #337288;
  --coral-light: #ffb19d;
  --pastel-green: #bfecac;
  --pastel-yellow: #ffe57c;
  --pastel-blue: #99ccfb;
  --coral-red: #ff584d;
  --coral-red-strong: #e2483f;
  --grey-green: #719554;

  /* Light Mode (Standard) */
  --color-bg: #ffffff;
  --color-bg-alt: #f4f7f8;
  --color-bg-raised: #ffffff;
  --color-border: rgba(4, 40, 58, 0.12);
  --color-text: var(--dark-teal);
  --color-text-muted: rgba(4, 40, 58, 0.68);
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: rgba(255, 255, 255, 0.72);

  /* Menüleiste: immer dunkel, unabhängig vom Modus. Leicht transparent (statt
     voll deckend), damit der wabbelnde Hintergrund (.dark-bg) durchscheint. */
  --nav-bg: rgba(4, 40, 58, 0.97);
  --nav-bg-secondary: var(--teal-cyan);
  --nav-text: #ffffff;
  --nav-text-muted: rgba(255, 255, 255, 0.75);

  --color-cta: var(--coral-red);
  --color-cta-hover: var(--coral-red-strong);
  --color-cta-text: var(--dark-teal);
  --color-link: var(--teal-cyan);
  /* Teal-Cyan hat auf Dark-Teal-Hintergrund zu wenig Kontrast (WCAG-Fail);
     im Dark Mode wird dieser Token auf Pastellblau umgeschaltet. */
  --color-accent-text: var(--teal-cyan);

  --shadow-soft: 0 12px 32px -12px rgba(4, 40, 58, 0.18);
  --shadow-card: 0 2px 10px rgba(4, 40, 58, 0.08);

  /* Hero-Illustrationen (Carousel): "Tinte" und Flächen innerhalb der SVGs,
     hell/dunkel-abhängig statt fest auf Weiß. */
  --hero-surface: rgba(4, 40, 58, 0.06);
  --hero-surface-border: rgba(4, 40, 58, 0.14);
  --hero-ink: var(--dark-teal);
  --hero-ink-soft: rgba(4, 40, 58, 0.35);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --container-width: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Dark Mode: explizit gesetzt ODER per Systemeinstellung, wenn kein expliziter Light-Wert gesetzt ist */
:root[data-theme="dark"] {
  /* Leicht transparent (statt voll deckend) statt reinem Hex, damit der
     wabbelnde Hintergrund (.dark-bg) hinter den Sektionen dezent durchscheint. */
  --color-bg: rgba(4, 40, 58, 0.97);
  --color-bg-alt: rgba(10, 53, 82, 0.97);
  --color-bg-raised: rgba(12, 61, 92, 0.97);
  --color-border: rgba(255, 255, 255, 0.14);
  --color-text: #ffffff;
  --color-text-muted: rgba(255, 255, 255, 0.72);
  --color-accent-text: var(--pastel-blue);
  --shadow-soft: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
  --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.3);
  --hero-surface: rgba(255, 255, 255, 0.08);
  --hero-surface-border: rgba(255, 255, 255, 0.18);
  --hero-ink: #ffffff;
  --hero-ink-soft: rgba(255, 255, 255, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --color-bg: rgba(4, 40, 58, 0.97);
    --color-bg-alt: rgba(10, 53, 82, 0.97);
    --color-bg-raised: rgba(12, 61, 92, 0.97);
    --color-border: rgba(255, 255, 255, 0.14);
    --color-text: #ffffff;
    --color-text-muted: rgba(255, 255, 255, 0.72);
    --color-accent-text: var(--pastel-blue);
    --shadow-soft: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
    --shadow-card: 0 2px 10px rgba(0, 0, 0, 0.3);
    --hero-surface: rgba(255, 255, 255, 0.08);
    --hero-surface-border: rgba(255, 255, 255, 0.18);
    --hero-ink: #ffffff;
    --hero-ink-soft: rgba(255, 255, 255, 0.35);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font-family: inherit; }

h1, h2, h3, h4 {
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.45rem); }
p { line-height: 1.65; color: var(--color-text-muted); margin: 0 0 1em; }
.lede { font-size: 1.2rem; line-height: 1.6; }

/* Teal-Cyan auf Dark-Teal-Hintergrund fällt unter 3:1 Kontrast (WCAG-Fail).
   Da der Seitenhintergrund jetzt immer dunkel ist, direkt helleres Pastellblau verwenden. */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: 0.75em;
}
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.breadcrumb {
  width: 100%;
  background: var(--nav-bg);
  padding: 12px max(24px, calc((100% - var(--container-width)) / 2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--nav-text-muted);
}
.breadcrumb a { color: var(--nav-text-muted); }
.breadcrumb a:hover { color: var(--nav-text); }
.breadcrumb span[aria-hidden="true"] { color: var(--nav-text-muted); opacity: 0.5; }
.breadcrumb span[aria-current="page"] { color: var(--nav-text); font-weight: 600; }

/* ---------- Cookie-Consent-Banner (unten links) ---------- */
.cookie-banner {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 250;
  max-width: 380px;
  background: var(--nav-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p { color: var(--nav-text-muted); margin: 0; font-size: 0.88rem; line-height: 1.5; }
.cookie-banner a { color: var(--nav-text); }
.cookie-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner-actions .btn { flex: 1; text-align: center; padding: 10px 16px; font-size: 0.88rem; white-space: nowrap; }
@media (max-width: 480px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--alt { background: var(--color-bg-alt); }

@media (max-width: 720px) {
  .section { padding: 56px 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--color-cta);
  color: var(--color-cta-text);
  box-shadow: 0 10px 24px -8px rgba(255, 88, 77, 0.55);
}
/* Dunkler Text auf Coral-Rot statt Weiß: weißer Text erreicht auf #ff584d nur ~3.1:1
   Kontrast (WCAG-Fail); Dark Teal auf Coral-Rot erreicht 4.93:1 (WCAG AA). Hover ändert
   bewusst nur Schatten/Position statt der Hintergrundfarbe, um den Kontrast zu erhalten. */
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(255, 88, 77, 0.7); }
.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--color-text);
}
:root[data-theme="dark"] .btn-outline { color: #fff; }
.btn-outline-on-dark {
  background: transparent;
  border-color: rgba(255,255,255,0.55);
  color: #fff;
}
.btn-outline-on-dark:hover { border-color: #fff; background: rgba(255,255,255,0.08); }
.btn-block { width: 100%; }

/* ---------- Header / Navigation (immer dunkel) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-brand img { height: 46px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  color: var(--nav-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
/* Suche/Anmelden stehen im Ausklapp-Menü nur auf dem Mobilgerät (siehe
   @media max-width:900px) – auf dem Desktop übernehmen weiterhin die
   Icon-Buttons in .nav-actions dieselbe Funktion. */
.nav-links-divider,
.nav-mobile-action { display: none; }

/* "Wissen und Infos"-Dropdown: weitere Unterpunkte einfach als <a> in
   .nav-dropdown-menu ergänzen. */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--nav-text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 8px;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-dropdown-toggle:hover,
.nav-dropdown-toggle[aria-expanded="true"],
.nav-dropdown-toggle[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav-dropdown-icon { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-dropdown-toggle[aria-expanded="true"] .nav-dropdown-icon { transform: rotate(180deg); }

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  background: var(--nav-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 50;
}
.nav-dropdown-menu.is-open { display: flex; }
.nav-dropdown-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--nav-text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-actions .btn { padding: 10px 20px; font-size: 0.92rem; }
@media (max-width: 480px) {
  .nav-actions .btn { padding: 8px 14px; font-size: 0.85rem; }
}

/* Icon-Buttons: Suche + Login, immer auf der dunklen Menüleiste */
.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.nav-icon-btn:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-1px); }
.nav-icon-btn svg { width: 18px; height: 18px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(320px, 85vw);
    height: 100vh;
    height: 100dvh;
    background: var(--nav-bg);
    flex-direction: column;
    align-items: stretch;
    padding: 96px 24px 24px;
    gap: 2px;
    border-bottom: none;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: -16px 0 32px -12px rgba(0, 0, 0, 0.4);
    overflow-y: auto;
    z-index: 150;
    display: flex;
    transform: translateX(100%);
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
    visibility: hidden;
  }
  .nav-links.is-open {
    transform: translateX(0);
    transition: transform 0.25s ease;
    visibility: visible;
  }
  .nav-links a { padding: 12px 8px; }
  .nav-dropdown-toggle { width: 100%; justify-content: space-between; padding: 12px 8px; }
  .nav-dropdown-menu {
    position: static;
    border: none;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: none;
    margin: 2px 0 4px 10px;
  }
  /* Suche + Anmelden: auf dem Mobilgerät aus der (zu engen) Headerleiste raus
     und stattdessen hier im Ausklapp-Menü, zusammen mit den übrigen Themen. */
  .nav-actions .nav-icon-btn { display: none; }
  .nav-links-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    margin: 10px 8px;
  }
  .nav-mobile-action {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 8px;
    border: none;
    background: transparent;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--nav-text-muted);
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
  }
  .nav-mobile-action svg { width: 18px; height: 18px; flex-shrink: 0; }
  .nav-mobile-action:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
  .nav-toggle { display: flex; z-index: 151; }
  .nav-toggle span { transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Theme Switch (schwebender Sonne/Mond-Regler, unten rechts) ---------- */
.theme-switch {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  width: 64px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  background: var(--dark-teal);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}
.theme-switch-track {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
}
.theme-switch-track svg {
  position: relative;
  z-index: 2;
  width: 16px;
  height: 16px;
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s ease;
}
.theme-switch[aria-pressed="false"] .icon-sun { color: #fff; }
.theme-switch[aria-pressed="true"] .icon-moon { color: #fff; }
.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}
.theme-switch[aria-pressed="true"] .theme-switch-thumb {
  transform: translateX(30px);
}

@media (max-width: 640px) {
  .theme-switch { right: 16px; bottom: 16px; }
}

/* ---------- Social Rail (LinkedIn / E-Mail, rechter Bildschirmrand) ---------- */
.social-rail {
  position: fixed;
  right: 22px;
  bottom: 74px;
  z-index: 190;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.social-rail a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark-teal);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.social-rail a:hover { transform: translateY(-2px) scale(1.05); background: var(--teal-cyan); }
.social-rail svg { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .social-rail { right: 14px; bottom: 62px; gap: 10px; }
  .social-rail a { width: 38px; height: 38px; }
  .social-rail svg { width: 17px; height: 17px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: rgba(4, 40, 58, 0.97);
  color: #fff;
  padding: 96px 0 120px;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, 0.78); }
.hero .eyebrow { color: var(--pastel-blue); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.hero-note { margin-top: 18px; font-size: 0.88rem; color: rgba(255,255,255,0.6); }

.hero-shapes {
  /* Einfarbiger Hintergrund: dekorative Farbflecken deaktiviert. */
  display: none;
}
.hero-shapes span {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
  will-change: transform;
}
.shape-1 { width: 340px; height: 340px; background: var(--teal-cyan); top: -120px; right: -60px; opacity: 0.5;}
.shape-2 { width: 180px; height: 180px; background: var(--coral-red); bottom: -40px; right: 22%; opacity: 0.35; }
.shape-3 { width: 120px; height: 120px; background: var(--pastel-yellow); top: 40%; left: -40px; opacity: 0.25; }

.hero-panel {
  position: relative;
  background: var(--hero-surface);
  border: 1px solid var(--hero-surface-border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.hero-panel-illustration { display: flex; align-items: center; justify-content: center; }
.hero-illustration { width: 100%; max-width: 300px; height: auto; }
/* Foto-Variante (statt Icon-Illustration): größer, ohne Rahmen/Hintergrund-Karte. */
.hero-panel-photo {
  background: none;
  border: none;
  padding: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.hero-panel-photo .hero-illustration { max-width: none; width: 100%; height: auto; display: block; }
.hero-panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 10px;
}
.hero-panel-row:last-child { margin-bottom: 0; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; margin-right: 10px; }
.status-dot.green { background: var(--pastel-green); }
.status-dot.yellow { background: var(--pastel-yellow); }
.status-dot.coral { background: var(--coral-light); }

@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 80px; text-align: left; }
}

/* ---------- Hero Carousel (drei Zielgruppen-Folien) ---------- */
/* Bewusst NICHT bildschirmfüllend: die Logo-/Branchen-Leiste direkt darunter
   soll ohne Scrollen sichtbar sein, wenn die Seite geöffnet wird.
   Video als vollflächiger Hintergrund (object-fit: cover, kein Verzerren auf
   Mobilgeräten) – Text bleibt deshalb bewusst immer weiß, unabhängig vom
   Theme-Toggle. */
.hero-carousel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 150px 0 120px;
  position: relative;
  color: #fff;
  /* Innerhalb des Carousels immer die "dunkle" Variante dieser Tokens nutzen
     (betrifft z.B. die Icon-Panels der Folien 1 & 3), egal welches Theme aktiv ist. */
  --hero-surface: rgba(255, 255, 255, 0.08);
  --hero-surface-border: rgba(255, 255, 255, 0.18);
  --hero-ink: #fff;
  --hero-ink-soft: rgba(255, 255, 255, 0.35);
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero-carousel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(4, 40, 58, 0.5);
}
.hero-carousel .eyebrow { position: relative; z-index: 1; color: var(--pastel-blue); font-size: 1rem; }
.hero-carousel p { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.82); }
.hero-carousel .lede { font-size: clamp(1.15rem, 1.6vw, 1.45rem); line-height: 1.6; }
.hero-carousel .hero-note { position: relative; z-index: 1; color: rgba(255, 255, 255, 0.65); }
.hero-carousel .hero-actions { position: relative; z-index: 1; justify-content: center; gap: 18px; margin-top: 40px; }
.hero-carousel .hero-actions .btn { padding: 18px 34px; font-size: 1.1rem; }
.hero-carousel .hero-title {
  position: relative;
  z-index: 1;
  font-size: clamp(3.2rem, 6.5vw, 5.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  color: #fff;
}
.carousel-viewport {
  position: relative;
  z-index: 2;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 0;
  display: flex;
  justify-content: center;
}
/* Inhalt bleibt innerhalb einer zentrierten, begrenzten Spalte statt über die
   gesamte (jetzt volle Bildschirmbreite gehende) Folie verteilt zu wirken. */
.carousel-slide-inner {
  width: 100%;
  max-width: 1180px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
  gap: 48px;
  align-items: center;
}
.carousel-slide-inner > div { max-width: 920px; }
.carousel-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 32px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
/* Pfeile sitzen an den Seitenrändern des Carousels, vertikal zentriert über den Folien. */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(4, 40, 58, 0.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.carousel-arrow.prev { left: 24px; }
.carousel-arrow.next { right: 24px; }
.carousel-arrow:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-50%) scale(1.06); }
.carousel-arrow svg { width: 24px; height: 24px; }
.carousel-dots { display: flex; align-items: center; gap: 14px; }

@media (max-width: 640px) {
  .carousel-arrow { width: 40px; height: 40px; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
}
.carousel-dot {
  width: 13px;
  height: 13px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #fff;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.carousel-dot[aria-selected="true"] { opacity: 1; transform: scale(1.3); }

/* ---------- Content-Carousel: wie der Hero-Carousel, aber für normale
   (helle) Sektionen statt des dunklen Hero-Bereichs. ---------- */
.content-carousel { position: relative; padding-bottom: 56px; }
.content-carousel .carousel-controls { position: absolute; bottom: 0; }
.content-carousel .carousel-dot { background: var(--color-text); }
.carousel-audience {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 6px;
}

@media (max-width: 900px) {
  .carousel-slide-inner { grid-template-columns: 1fr; }
  .hero-carousel { padding: 96px 0 72px; }
  .hero-carousel .hero-title { font-size: clamp(2.1rem, 7vw, 2.8rem); }
  .hero-carousel .hero-actions .btn { padding: 14px 22px; font-size: 0.95rem; white-space: normal; }
}

@media (max-width: 480px) {
  .nav-brand img { height: 36px; }
}

/* ---------- Logo strip (Branchen) ---------- */
/* Folgt jetzt Hell-/Dunkelmodus wie der Rest der Seite (schließt nahtlos an
   das ebenfalls theme-fähige Carousel darüber an). */
.logo-strip { background: var(--color-bg); padding: 40px 0; }
.logo-strip-label {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 32px;
}
.badge-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.badge {
  font-size: 0.85rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

/* ---------- Kundenlogos (Homepage, Logo-Strip) ---------- */
.customer-logos-marquee {
  overflow: hidden;
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.customer-logos-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: logo-marquee 28s linear infinite;
}
.customer-logos-marquee:hover .customer-logos-track { animation-play-state: paused; }
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .customer-logos-track { animation: none; }
}
.customer-logo-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
/* Keine Kacheln/Hintergründe: die Logos selbst werden per Filter einheitlich
   eingefärbt, unabhängig von ihren ursprünglichen Farben – dunkel im Light
   Mode, weiß im Dark Mode. Funktioniert nur zuverlässig bei Logos mit
   transparentem Hintergrund (alle 5 aktuell verwendeten Dateien). */
.customer-logo-tile img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  filter: brightness(0);
}
:root[data-theme="dark"] .customer-logo-tile img { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .customer-logo-tile img { filter: brightness(0) invert(1); }
}

/* ---------- Vollbild-Split (Homepage): Text links, Bild rechts über volle Höhe ---------- */
.fullscreen-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.fullscreen-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px clamp(24px, 6vw, 96px);
}
.fullscreen-split-text .hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.fullscreen-split-image {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-alt);
}
.fullscreen-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08) translateY(var(--parallax-y, 0px));
  will-change: transform;
}
/* Screenshots statt Fotos: kein Zoom/Crop, damit kein Dashboard-Inhalt
   abgeschnitten wird - stattdessen vollständig sichtbar, mit Luft am Rand. */
.fullscreen-split-image.is-screenshot { padding: 48px; box-sizing: border-box; }
.fullscreen-split-image.is-screenshot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
}
@media (max-width: 700px) {
  .fullscreen-split-image.is-screenshot { padding: 24px; }
}

/* Kompakte Variante: Höhe richtet sich nach dem Screenshot-Seitenverhältnis
   statt nach voller Bildschirmhöhe - kein leerer Rand über/unter dem Bild. */
.fullscreen-split.is-compact { min-height: 0; align-items: center; }
.fullscreen-split.is-compact .fullscreen-split-image.is-screenshot {
  padding: 0;
  min-height: 0;
}
.fullscreen-split.is-compact .fullscreen-split-image.is-screenshot img {
  object-fit: cover;
}

.fullscreen-split-placeholder-label {
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  padding: 12px 22px;
  color: var(--color-text-muted);
  font-weight: 700;
  font-size: 0.9rem;
}
@media (max-width: 900px) {
  .fullscreen-split { grid-template-columns: 1fr; min-height: auto; }
  .fullscreen-split-text { padding: 56px 24px; }
}

/* ---------- Problem / Solution Grid ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

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

/* ---------- Cluster-Grid (Normen und Lizenzen): immer 3 Spalten nebeneinander,
   auf schmalen Bildschirmen horizontal scrollbar statt untereinander gestapelt. ---------- */
@media (max-width: 900px), (max-width: 620px) {
  .cluster-grid {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
    overflow-x: auto;
    padding-bottom: 8px;
  }
}

/* ---------- Säulendiagramm (Kernfunktionen als "Haus": Dach, 4 Säulen, Fundament) ---------- */
.pillar-diagram { max-width: 1140px; margin: 0 auto; }
.pillar-roof {
  width: 100%;
  height: 84px;
  background: var(--color-text);
  clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}
.pillar-entablature {
  height: 48px;
  margin-top: -1px;
  background: var(--color-text);
  color: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pillar-row {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-top: 28px;
}
.pillar { flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; }
.pillar-shaft {
  width: 100%;
  max-width: 140px;
  height: 190px;
  margin-bottom: 26px;
  border-radius: 12px 12px 4px 4px;
  box-shadow: var(--shadow-card);
  display: flex;
  justify-content: center;
  padding-top: 22px;
}
.pillar-shaft.tone-blue { background: var(--pastel-blue); }
.pillar-shaft.tone-yellow { background: var(--pastel-yellow); }
.pillar-shaft.tone-green { background: var(--grey-green); }
.pillar-shaft.tone-coral { background: var(--coral-red); }
.pillar-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--dark-teal);
}
.pillar h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.pillar p { font-size: 0.95rem; color: var(--color-text-muted); margin: 0; }
.pillar-foundation {
  height: 54px;
  margin-top: 28px;
  background: var(--color-text);
  color: var(--color-bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
@media (max-width: 700px) {
  .pillar-row { flex-direction: column; gap: 24px; }
  .pillar-shaft { max-width: 72px; height: 90px; }
}

.card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-top: 3px solid transparent;
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

/* ---------- Weiterführende Links (Querverweise zwischen Seiten/Abschnitten) ---------- */
.related-links {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
a.related-link-card { display: block; color: inherit; }
a.related-link-card:hover { color: inherit; }
.related-link-card span.eyebrow { margin-bottom: 0.5em; }
.related-link-card h3 { margin-bottom: 0.4em; }
.related-link-card p { margin-bottom: 0; }
.related-link-card .read-more { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--color-accent-text); font-size: 0.9rem; }

/* ---------- LinkedIn-Post-Karten (Homepage) ---------- */
a.linkedin-post { display: flex; flex-direction: column; gap: 12px; color: inherit; height: 100%; }
a.linkedin-post:hover { color: inherit; }
.linkedin-post-header { display: flex; align-items: center; gap: 12px; }
.linkedin-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--dark-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.linkedin-post-name { display: block; font-weight: 700; }
.linkedin-post-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.linkedin-post-meta svg { width: 13px; height: 13px; flex-shrink: 0; }
.linkedin-post p { margin: 0; flex: 1; color: var(--color-text-muted); }
.linkedin-post .read-more { font-weight: 700; color: var(--color-accent-text); font-size: 0.9rem; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  margin-bottom: 18px;
  color: var(--dark-teal);
}
.card h3 { margin-bottom: 0.4em; }
.card p { margin-bottom: 0; }

/* Akzentfarbe je Karte: oben als Rand, im Icon-Quadrat als Fläche. */
.problem-card { border-top-color: var(--coral-light); }
.problem-card .card-icon { background: var(--coral-light); }
.solution-card { border-top-color: var(--pastel-green); }
.solution-card .card-icon { background: var(--pastel-green); }
.tone-blue { border-top-color: var(--pastel-blue); }
.tone-blue .card-icon { background: var(--pastel-blue); }
.tone-yellow { border-top-color: var(--pastel-yellow); }
.tone-yellow .card-icon { background: var(--pastel-yellow); }
/* Dark-Teal-Text statt Weiß: bessere WCAG-Kontrastwerte auf Grün-Grau/Coral-Rot */
.tone-green { border-top-color: var(--grey-green); }
.tone-green .card-icon { background: var(--grey-green); color: var(--dark-teal); }
.tone-coral { border-top-color: var(--coral-red); }
.tone-coral .card-icon { background: var(--coral-red); color: var(--dark-teal); }

/* ---------- Klickbare Schritt-Kacheln ("In drei Schritten zum Partner"):
   Hover färbt die ganze Kachel in ihrer Akzentfarbe statt nur Rand/Icon. ---------- */
a.step-card { display: block; color: inherit; transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease; }
a.step-card:hover { color: inherit; transform: translateY(-4px); box-shadow: var(--shadow-soft); }
a.step-card .read-more { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--color-accent-text); font-size: 0.9rem; }
a.step-card.tone-blue:hover { background: var(--pastel-blue); }
a.step-card.tone-yellow:hover { background: var(--pastel-yellow); }
a.step-card.tone-green:hover { background: var(--grey-green); }
a.step-card.tone-green:hover .read-more { color: var(--dark-teal); }

/* ---------- Normen-Kategorien (Normen und Lizenzen): kompakte Dropdown-Liste
   per <details>/<summary>, nach Kategorie geclustert statt langer Einzelliste. ---------- */
.norm-categories { max-width: 780px; margin: 16px 0 0; display: flex; flex-direction: column; gap: 12px; }
.norm-category-group {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-raised);
  overflow: hidden;
}
.norm-category-group summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  list-style: none;
}
.norm-category-group summary::-webkit-details-marker { display: none; }
.norm-category-title { flex: 1; }
.norm-category-count {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-text-muted);
  background: var(--color-bg-alt);
  padding: 2px 10px;
  border-radius: 999px;
}
.norm-category-group summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.norm-category-group[open] summary::after { transform: rotate(-135deg); }
.norm-category-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 18px;
}
@media (prefers-reduced-motion: reduce) {
  .norm-category-group summary::after { transition: none; }
}

/* ---------- Section headers ---------- */
/* Überschriften sind bewusst durchgängig linksbündig; die Modifier-Klasse
   ".center" bleibt im Markup erhalten, zentriert aber nichts mehr. */
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-head.center { text-align: left; }
/* Partner-Seite: Überschriften hier bewusst zentriert statt linksbündig. */
.page-partner .section-head.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Stat strip ---------- */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  background: rgba(4, 40, 58, 0.97);
  border-radius: var(--radius-lg);
  padding: 44px;
  color: #fff;
}
.stat { text-align: center; }
.stat strong { display: block; font-size: 2.4rem; font-weight: 800; }
.stat span { color: rgba(255,255,255,0.7); font-size: 0.92rem; }
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr; padding: 28px; }
}

/* ---------- CTA banner ---------- */
.cta-banner {
  background: rgba(4, 40, 58, 0.97);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: #fff; margin-bottom: 0.3em; }
.cta-banner p { color: rgba(255,255,255,0.78); margin-bottom: 0; max-width: 46ch; }

/* ---------- Partner teaser ---------- */
.partner-teaser {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  background: var(--color-bg-alt);
}
@media (max-width: 720px) {
  .partner-teaser { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- Footer (immer dunkel) ---------- */
.site-footer {
  background: rgba(4, 40, 58, 0.97);
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-grid img { height: 38px; width: auto; margin-bottom: 14px; }
.footer-grid p { color: rgba(255, 255, 255, 0.62); font-size: 0.92rem; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-legal-lines { display: flex; flex-direction: column; gap: 4px; }
.footer-trademark-note { font-size: 0.8rem; }
.footer-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 0.88rem; font-weight: 600; }
.form-field input,
.form-field textarea,
.form-field select {
  font-family: inherit;
  font-size: 0.98rem;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid var(--color-accent-text);
  outline-offset: 1px;
}
.form-note { font-size: 0.82rem; color: var(--color-text-muted); margin-top: 6px; }
.form-status {
  display: none;
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 600;
}
.form-status.is-visible { display: block; }
.form-status.success { background: var(--pastel-green); color: var(--dark-teal); }
.form-status.error { background: var(--coral-light); color: var(--dark-teal); }

@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full { grid-column: auto; }
}

/* ---------- App Mockup (Platzhalter für Produkt-Screenshots) ---------- */
.app-mock {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.app-mock-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background: var(--dark-teal);
}
.app-mock-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.app-mock-body { padding: 32px; }
.app-mock-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  margin-top: 14px;
}
.legal-note {
  max-width: 760px;
  margin: 28px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--color-text-muted);
}
.mock-settings {
  display: grid;
  gap: 14px;
  max-width: 420px;
  margin: 0 auto;
}
.mock-settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th, .mock-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}
.mock-table th { color: var(--color-text-muted); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: .04em; }
.mock-table-group td {
  background: var(--color-bg-alt);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-text-muted);
  padding-top: 18px;
  padding-bottom: 10px;
}
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 0.8rem; font-weight: 700; }
.pill.green { background: var(--pastel-green); color: var(--dark-teal); }
.pill.yellow { background: var(--pastel-yellow); color: var(--dark-teal); }
.pill.coral { background: var(--coral-light); color: var(--dark-teal); }
.pill.blue { background: var(--pastel-blue); color: var(--dark-teal); }

/* ---------- Mock-Stack: zwei gestapelte App-Mockups (Homepage) ---------- */
.mock-stack { position: relative; }
.mock-stack .app-mock {
  position: relative;
  z-index: 1;
  transform: translateY(var(--parallax-y, 0px));
  will-change: transform;
}
.mock-stack .app-mock-secondary {
  position: absolute;
  right: -28px;
  bottom: -28px;
  width: 58%;
  z-index: 2;
}
@media (max-width: 640px) {
  .mock-stack .app-mock-secondary { position: static; width: 100%; margin-top: 16px; }
}

/* ---------- Kundenstimmen (reiner Text, keine Bilder/Avatare) ---------- */
.testimonial-card { display: flex; flex-direction: column; gap: 16px; }
.testimonial-quote {
  margin: 0;
  flex: 1;
  color: var(--color-text);
  line-height: 1.6;
}
.testimonial-attr { display: block; font-weight: 700; font-size: 0.92rem; }
.testimonial-attr-company {
  display: block;
  margin-top: 2px;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* ---------- Pull-Quote ---------- */
.pull-quote {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text);
}
/* Teal-Cyan fällt auf dem jetzt immer dunklen Hintergrund unter 3:1 Kontrast (WCAG-Fail). */
.pull-quote span { color: var(--color-accent-text); }
.pull-quote-attr {
  display: block;
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

/* ---------- Page Hero (schmalere Variante für Unterseiten) ---------- */
.page-hero { padding: 76px 0 64px; }
.page-hero .container { grid-template-columns: 1fr; text-align: left; max-width: 780px; }
/* Partner-Seite: Hero-Zitat zentriert statt linksbündig. */
.page-partner .page-hero .container { text-align: center; margin: 0 auto; }
.page-partner .page-hero .hero-actions { justify-content: center; }
/* Lizenzmodell-Seite: nur große Überschrift + 2 Buttons, dann sofort die Preiskarten. */
.page-lizenzmodell .page-hero { padding: 48px 0 24px; }
.page-lizenzmodell .page-hero .container { max-width: 900px; text-align: center; margin: 0 auto; }
.page-lizenzmodell .page-hero h1 { white-space: nowrap; font-size: clamp(1.5rem, 5vw, 3.6rem); }
.page-lizenzmodell .page-hero .hero-actions { margin-top: 24px; justify-content: center; }

/* ---------- Legal / Prose pages ---------- */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 0.72rem;
  line-height: 1;
  font-weight: 800;
  flex-shrink: 0;
  background: #16a34a;
  color: #fff;
}
.check-icon.yellow,
.check-icon.red {
  background: #b9bcbe;
  color: #fff;
}
.check-item { display: flex; align-items: flex-start; gap: 8px; }
.prose li { margin-bottom: 0.4em; color: var(--color-text-muted); }

/* ---------- Blog: Übersicht ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .blog-grid { grid-template-columns: 1fr; } }

.blog-card {
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.blog-card-link { display: flex; flex-direction: column; height: 100%; }
.blog-card-thumb {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark-teal);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.blog-card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.blog-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.blog-card h3 { margin-bottom: 0.5em; }
.blog-card p { flex: 1; }
.blog-card .read-more { margin-top: 14px; font-weight: 700; color: var(--color-accent-text); font-size: 0.92rem; }

/* ---------- Blog: Artikelseite ---------- */
.article-hero { padding: 64px 0 8px; }
.article-hero .container { max-width: 760px; text-align: left; }
.article-body { max-width: 760px; margin: 0 auto; padding-top: 24px; }
.article-body p { color: var(--color-text); line-height: 1.75; }
.article-body h2 { margin-top: 1.7em; }
.article-body ul { list-style: disc; padding-left: 1.4em; margin-bottom: 1em; }
.article-body li { margin-bottom: 0.5em; color: var(--color-text); }
.article-body blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--teal-cyan);
  font-style: italic;
  color: var(--color-text-muted);
}
.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; max-width: 760px; margin-left: auto; margin-right: auto; }

/* ---------- Kommentare (Consent-Gate vor Disqus) ---------- */
.comments-section {
  max-width: 760px;
  margin: 56px auto 0;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}
.comments-consent {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
}
.comments-consent p { max-width: 52ch; margin: 0 auto 18px; }
.comments-consent.is-hidden { display: none; }
#disqus_thread.is-hidden { display: none; }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
/* 3D-Modell "materialisiert" beim ersten Erscheinen (Zoom + Unschärfe-Einblendung),
   da die glb-Datei selbst keine Bauanimation enthält. */
.reveal.model-build-in {
  transform: scale(0.55);
  filter: blur(14px);
  transition: opacity 1.1s ease, transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), filter 1.1s ease;
}
.reveal.model-build-in.is-visible { transform: scale(1); filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal.model-build-in { transition: opacity 0.6s ease; filter: none; transform: none; }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #fff;
  color: var(--dark-teal);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Such-Overlay ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 20px 20px;
  background: rgba(4, 40, 58, 0.72);
  backdrop-filter: blur(3px);
}
.search-overlay.is-open { display: flex; }
.search-panel {
  width: 100%;
  max-width: 560px;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 20px;
  max-height: 70vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
}
.search-input-row svg { width: 20px; height: 20px; color: var(--color-text-muted); flex-shrink: 0; }
.search-input-row input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1.05rem;
  font-family: inherit;
  color: var(--color-text);
}
.search-close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 4px;
  border-radius: 6px;
  display: flex;
}
.search-close:hover { background: var(--color-bg-alt); }
.search-close svg { width: 18px; height: 18px; }
.search-results { margin-top: 10px; overflow-y: auto; }
.search-result {
  display: block;
  padding: 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}
.search-result:hover { background: var(--color-bg-alt); }
.search-result strong { display: block; color: var(--color-text); font-size: 0.96rem; }
.search-result span { display: block; color: var(--color-text-muted); font-size: 0.85rem; margin-top: 2px; }
.search-empty { padding: 20px 12px; text-align: center; color: var(--color-text-muted); font-size: 0.92rem; }

/* ---------- Team: Foto als Hauptelement, Name/Rolle darunter,
   Vorstellungstext erscheint als Overlay beim Hover/Fokus auf dem Foto. ---------- */
.team-card { padding: 0; overflow: hidden; }
.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--dark-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-photo-initials {
  font-weight: 800;
  font-size: 3rem;
  color: #fff;
  letter-spacing: 0.02em;
}
.team-photo-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 40, 58, 0.92);
  display: flex;
  flex-direction: column;
  padding: 22px;
  opacity: 0;
  overflow-y: auto;
  transition: opacity 0.25s ease;
}
.team-photo-overlay-inner { margin: auto 0; }
.team-photo-overlay p { color: rgba(255, 255, 255, 0.9); margin: 0 0 10px; font-size: 0.92rem; line-height: 1.5; text-align: justify; }
.team-photo-overlay p:last-child { margin-bottom: 0; }
.team-card:hover .team-photo-overlay,
.team-card:focus-within .team-photo-overlay,
.team-card:focus .team-photo-overlay { opacity: 1; }
.team-card-body { padding: 20px 24px 24px; }
.team-card h3 { margin-bottom: 0.2em; }
.team-role {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-accent-text);
  margin-bottom: 10px;
}

/* ---------- Firmengeschichte: Zeitleiste ---------- */
.timeline {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 28px;
  border-left: 2px solid var(--color-border);
}
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: -34px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal-cyan);
  border: 3px solid var(--color-bg);
}
.timeline-year {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-accent-text);
  margin-bottom: 6px;
}
.timeline-item h3 { margin-bottom: 0.3em; }
.timeline-item p { margin-bottom: 0; }

/* ---------- Biografie / Inhaber ---------- */
.bio-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.bio-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  max-width: 780px;
  margin: 0 auto;
}
.bio-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--dark-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.6rem;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .bio-card { grid-template-columns: 1fr; text-align: center; }
  .bio-avatar { margin: 0 auto; }
}

/* ---------- Team-Bio-Modal: ausführliche Biografie öffnet sich beim Klick
   auf die jeweilige Team-Karte, statt dauerhaft weiter unten zu stehen. ---------- */
.team-card[data-bio-modal] { cursor: pointer; }
.bio-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 40, 58, 0.72);
  backdrop-filter: blur(3px);
}
.bio-modal-overlay.is-open { display: flex; }
.bio-modal-panel {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--color-bg-raised);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 40px;
}
.bio-modal-panel .bio-card { max-width: none; margin: 0; }
.bio-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 6px;
  border-radius: 6px;
  display: flex;
}
.bio-modal-close:hover { background: var(--color-bg-alt); }
.bio-modal-close svg { width: 20px; height: 20px; }
@media (max-width: 560px) {
  .bio-modal-panel { padding: 28px 20px 24px; }
}

/* ---------- Wabbelnder Hintergrund (nur Dark Mode) ----------
   Fest positionierte, weich verschwommene Blobs, die langsam wandern und ihre
   Form ändern (Border-Radius-Animation = "Wabbeln"). Liegt hinter dem gesamten
   Seiteninhalt; die Sektionsflächen sind im Dark Mode leicht transparent
   (siehe --color-bg/-alt/-raised), damit die Blobs dezent durchscheinen. */
/* Immer sichtbar (nicht mehr nur im Dark Mode): scheint jetzt auch durch die
   ohnehin immer-dunklen Bereiche (Header, Hero, Branchen-Leiste, CTA-Banner,
   Footer), die sich zwischen Light/Dark Mode nicht verändern. In hellen
   Inhalts-Sektionen bleibt es unsichtbar, da deren Hintergrund im Light Mode
   voll deckend ist. */
.dark-bg {
  display: block;
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.dark-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  will-change: transform, border-radius;
  animation: blob-wobble ease-in-out infinite;
}
.dark-bg-blob:nth-child(1) {
  width: 460px;
  height: 460px;
  top: -140px;
  left: -100px;
  background: var(--teal-cyan);
  opacity: 0.32;
  animation-duration: 26s;
}
.dark-bg-blob:nth-child(2) {
  width: 380px;
  height: 380px;
  top: 28%;
  right: -120px;
  background: var(--coral-red);
  opacity: 0.2;
  animation-duration: 20s;
  animation-delay: -6s;
}
.dark-bg-blob:nth-child(3) {
  width: 420px;
  height: 420px;
  bottom: -160px;
  left: 18%;
  background: var(--pastel-blue);
  opacity: 0.18;
  animation-duration: 30s;
  animation-delay: -12s;
}
.dark-bg-blob:nth-child(4) {
  width: 280px;
  height: 280px;
  bottom: 8%;
  right: 12%;
  background: var(--pastel-yellow);
  opacity: 0.14;
  animation-duration: 18s;
  animation-delay: -3s;
}

/* Im Dark Mode passen die Blob-Farben zum grünen Hügel-/Straßenbild im
   Vollbild-Split auf der Homepage: statt Mehrfarb-Mix nur noch Grün-/Teal-Töne. */
:root[data-theme="dark"] .dark-bg-blob:nth-child(1) { background: var(--grey-green); }
:root[data-theme="dark"] .dark-bg-blob:nth-child(2) { background: var(--pastel-green); }
:root[data-theme="dark"] .dark-bg-blob:nth-child(3) { background: var(--teal-cyan); }
:root[data-theme="dark"] .dark-bg-blob:nth-child(4) { background: var(--pastel-green); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .dark-bg-blob:nth-child(1) { background: var(--grey-green); }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .dark-bg-blob:nth-child(2) { background: var(--pastel-green); }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .dark-bg-blob:nth-child(3) { background: var(--teal-cyan); }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .dark-bg-blob:nth-child(4) { background: var(--pastel-green); }
}

@keyframes blob-wobble {
  0%   { transform: translate(0, 0) scale(1); border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
  25%  { transform: translate(4%, -3%) scale(1.08); border-radius: 60% 40% 55% 45% / 45% 55% 40% 60%; }
  50%  { transform: translate(-3%, 4%) scale(0.95); border-radius: 40% 60% 45% 55% / 55% 45% 60% 40%; }
  75%  { transform: translate(-4%, -3%) scale(1.05); border-radius: 55% 45% 60% 40% / 40% 60% 45% 55%; }
  100% { transform: translate(0, 0) scale(1); border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .dark-bg-blob { animation: none; }
}

/* ---------- Mouse-Trail ----------
   Rein dekorativer Kreis, der der Maus mit leichter Verzögerung folgt.
   pointer-events:none, damit er nie Klicks/Hover blockiert; nur auf Geräten
   mit echter Maus (nicht Touch) und nicht bei prefers-reduced-motion. */
.mouse-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--teal-cyan);
  background: rgba(51, 114, 136, 0.1);
  box-shadow: 0 0 16px rgba(51, 114, 136, 0.35);
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s ease, width 0.18s ease, height 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.mouse-trail.is-active { opacity: 1; }
.mouse-trail.is-clicking {
  width: 20px;
  height: 20px;
  border-color: var(--coral-red);
  background: rgba(255, 88, 77, 0.16);
  box-shadow: 0 0 16px rgba(255, 88, 77, 0.4);
}

@media (hover: none), (pointer: coarse) {
  .mouse-trail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mouse-trail { display: none; }
}

/* Ein/Aus-Schalter für den Mouse-Trail: unten links, spiegelbildlich zum
   Theme-Regler/Social-Rail auf der rechten Seite. */
.mouse-trail-toggle {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 190;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--dark-teal);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: background-color 0.15s ease, transform 0.15s ease, opacity 0.15s ease;
}
.mouse-trail-toggle:hover { transform: translateY(-2px); background: var(--teal-cyan); }
.mouse-trail-toggle svg { width: 20px; height: 20px; }
.mouse-trail-toggle .icon-off-slash { display: none; }
.mouse-trail-toggle[aria-pressed="false"] { opacity: 0.5; }
.mouse-trail-toggle[aria-pressed="false"] .icon-off-slash { display: block; }

@media (max-width: 640px) {
  .mouse-trail-toggle { left: 14px; bottom: 14px; width: 40px; height: 40px; }
}
