@charset "UTF-8";
/* ============================================================================
   refresh.css — Subtil-modern Design-Refresh
   WP International Trade GmbH
   ----------------------------------------------------------------------------
   Diese Datei wird NACH style.css geladen und enthält alle Modernisierungs-
   Schichten. Sie ist additiv aufgebaut — bei Entfernen aus inc_head.php
   verhält sich die Seite wieder exakt wie das Original.
   ============================================================================ */


/* ============================================================================
   1) Design-Tokens (CSS Custom Properties)
   ============================================================================ */
:root {
  /* Brand */
  --brand-primary: #13447a;
  --brand-primary-dark: #0e2f56;
  --brand-primary-light: color-mix(in oklab, var(--brand-primary) 70%, white);
  --brand-primary-soft: color-mix(in oklab, var(--brand-primary) 12%, white);
  --brand-accent: color-mix(in oklab, var(--brand-primary) 60%, #2aa6e0);
  /* Akzent-Goldton fuer CTAs und wichtige Highlights (Briefing 2026-04-27 §12) -
     Bernstein/Gold gibt deutlich besseren Kontrast gegen blaues Hero-Video als
     Cyan-Blau und passt zu seriosem Handelsunternehmen statt SaaS-Startup-Look. */
  --brand-amber: #d4a017;
  --brand-amber-dark: #b08410;
  --brand-amber-light: color-mix(in oklab, var(--brand-amber) 75%, white);

  /* Neutrals — feines Off-White, kein hartes #fff */
  --surface-base: oklch(99% 0.005 240);
  --surface-elevated: oklch(100% 0 0);
  --surface-muted: oklch(96.5% 0.008 240);
  --surface-glass: color-mix(in oklab, white 78%, transparent);
  --surface-glass-dark: color-mix(in oklab, var(--brand-primary) 8%, transparent);

  --text-primary: oklch(22% 0.02 240);
  --text-secondary: oklch(40% 0.015 240);
  --text-muted: oklch(58% 0.01 240);
  --border-subtle: oklch(90% 0.005 240);

  /* Spacing — 8px grid */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  /* Shadows — soft, layered */
  --shadow-soft: 0 1px 2px oklch(0% 0 0 / 0.04), 0 4px 12px oklch(0% 0 0 / 0.06);
  --shadow-medium: 0 2px 4px oklch(0% 0 0 / 0.05), 0 12px 28px oklch(0% 0 0 / 0.10);
  --shadow-glow: 0 0 0 1px var(--brand-primary-soft), 0 8px 32px color-mix(in oklab, var(--brand-primary) 25%, transparent);

  /* Typography — fluide Skalierung */
  --fs-body: clamp(1rem, 0.95rem + 0.2vw, 1.125rem);
  --fs-h6: clamp(1rem, 0.95rem + 0.3vw, 1.15rem);
  --fs-h5: clamp(1.125rem, 1rem + 0.5vw, 1.35rem);
  --fs-h4: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  --fs-h3: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  --leading-tight: 1.15;
  --leading-normal: 1.6;

  /* Easing & Timing */
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 180ms;
  --duration-base: 320ms;
  --duration-slow: 600ms;

  /* Layering */
  --z-nav: 100;
  --z-modal: 1000;
}


/* ============================================================================
   2) Reduced-Motion: alle Animationen deaktivieren
   ============================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ============================================================================
   3) Globale Verfeinerungen
   ============================================================================ */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--surface-base);
}

/* Selektion in Brand-Farbe */
::selection {
  background: var(--brand-primary);
  color: white;
}

/* Modern Focus-Ring statt outline:none */
:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Scrollbar in Brand-Tönen (WebKit/Blink) */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 12px; height: 12px; }
  ::-webkit-scrollbar-track { background: var(--surface-muted); }
  ::-webkit-scrollbar-thumb {
    background: color-mix(in oklab, var(--brand-primary) 35%, transparent);
    border-radius: var(--radius-pill);
    border: 3px solid var(--surface-muted);
  }
  ::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary);
  }
}


/* ============================================================================
   4) IE-Panel ausblenden (Sicherheitsnetz, falls noch irgendwo Markup steckt)
   ============================================================================ */
.ie-panel { display: none !important; }


/* ============================================================================
   5) Navigation — kontextsensitiv: transparent über Hero, Glass beim Scrollen
   ----------------------------------------------------------------------------
   Override für vorhandenes RD-Navbar-Markup. Wir verändern das Markup nicht,
   damit die jQuery-Bindings nicht brechen.

   - Startseite, oben (über Hero):     komplett transparent, Text weiß
   - Beim Scrollen (.rd-navbar--is-stuck): Glassmorphism weiß + blur, Text dunkel
   - Subpages (.subpage):              solides Brand-Blau (style.css mit !important)
   ============================================================================ */

/* Default: transparente Navi auf Hauptseiten — keine Hintergrundfarbe */
.rd-navbar.rd-navbar-static:not(.subpage),
.rd-navbar.rd-navbar-fixed:not(.subpage) {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--duration-base) var(--ease-smooth),
              backdrop-filter var(--duration-base) var(--ease-smooth),
              box-shadow var(--duration-base) var(--ease-smooth),
              border-color var(--duration-base) var(--ease-smooth);
}

/* Über Hero: Links weiß lesbar machen */
.rd-navbar.rd-navbar-static:not(.subpage):not(.rd-navbar--is-stuck) .rd-nav-link,
.rd-navbar.rd-navbar-fixed:not(.subpage):not(.rd-navbar--is-stuck) .rd-nav-link {
  color: #ffffff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

/* Beim Scrollen: Brand-Blau (wie im Original) — Logo bekommt Kontrast */
.rd-navbar.rd-navbar--is-stuck:not(.subpage) {
  background: var(--brand-primary);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-bottom-color: color-mix(in oklab, white 12%, transparent);
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.18);
}

/* Beim Scrollen: Text weiß und ohne Shadow */
.rd-navbar.rd-navbar--is-stuck:not(.subpage) .rd-nav-link {
  color: #ffffff;
  text-shadow: none;
}
.rd-navbar.rd-navbar--is-stuck:not(.subpage) .rd-nav-item.active .rd-nav-link {
  color: #ffffff !important;
}

/* Brand-Logo — sanftes Hover-Glow */
.rd-navbar-brand .brand img {
  transition: filter var(--duration-base) var(--ease-smooth),
              transform var(--duration-base) var(--ease-spring);
}
.rd-navbar-brand .brand:hover img {
  transform: translateY(-1px);
  filter: drop-shadow(0 4px 8px color-mix(in oklab, var(--brand-primary) 30%, transparent));
}

/* Nav-Links — animierter Underline-Indikator */
.rd-navbar .rd-nav-link {
  position: relative;
  transition: color var(--duration-fast) var(--ease-smooth);
}
.rd-navbar .rd-nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: currentColor;
  border-radius: var(--radius-pill);
  transform: translateX(-50%);
  transition: width var(--duration-base) var(--ease-spring),
              background-color var(--duration-fast);
}
.rd-navbar .rd-nav-item:hover .rd-nav-link::after,
.rd-navbar .rd-nav-item.active .rd-nav-link::after,
.rd-navbar .rd-nav-item.focus .rd-nav-link::after {
  width: 70%;
}

/* Aktiver Link kontext-sensitiv einfärben — weiß auf solider Subpage-Navi,
   Brand-Cyan-Hellblau auf transparenter Hauptseiten-Navi (gut sichtbar auf Hero-Video). */
.rd-navbar:not(.subpage):not(.rd-navbar--is-stuck) .rd-nav-item.active .rd-nav-link {
  color: #068ed6 !important;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.rd-navbar.subpage .rd-nav-item.active .rd-nav-link,
.rd-navbar-static.subpage .rd-nav-item.active .rd-nav-link {
  color: #ffffff !important;
  font-weight: 700;
}

/* Sprach-Flaggen-Dropdown — sanfte Hover-Effekte */
.rd-navbar-submenu .rd-dropdown-link img {
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-fast);
}
.rd-navbar-submenu .rd-dropdown-link:hover img {
  transform: scale(1.12);
  box-shadow: 0 4px 12px oklch(0% 0 0 / 0.15);
}


/* ============================================================================
   5b) Swiper-Fade Sicherung
   ----------------------------------------------------------------------------
   Bei Swiper-Fade-Slidern müssen alle nicht-aktiven Slides opacity:0 sein,
   sonst überlappen sie. Wenn das Swiper-JS verspätet (defer) lädt oder hängt,
   stellen wir das hier nochmal explizit per CSS sicher.
   ============================================================================ */
.swiper-container-fade .swiper-slide {
  opacity: 0 !important;
  transition: opacity var(--duration-base) var(--ease-smooth);
}
.swiper-container-fade .swiper-slide.swiper-slide-active,
.swiper-container-fade .swiper-slide:only-child {
  opacity: 1 !important;
}


/* ============================================================================
   6) Hero — Gradient-Mesh + fluide Typografie
   ----------------------------------------------------------------------------
   Wir lassen die bestehende Swiper-Struktur unangetastet und legen einen
   Mesh-Gradient als zusätzlichen Layer drüber sowie modernere Typo + Buttons.
   ============================================================================ */
.swiper-slider .swiper-slide {
  position: relative;
  isolation: isolate;
  /* Fix: das Inline-Style "background-size: cover" wird vom alten CSS-Default
     "background-repeat: repeat" begleitet, was bei manchen Browser-/Viewport-
     Verhältnissen zu einem sichtbaren Tile-Split im Hero führt. */
  background-repeat: no-repeat !important;
  background-position: center center !important;
}

/* Subtile Vignette für besseren Text-Kontrast — nur dezent unten dunkler,
   kein Mesh-Gradient mehr (der erzeugte sichtbare Kanten beim Bild) */
.swiper-slider .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 55%,
    color-mix(in oklab, var(--brand-primary-dark) 30%, transparent) 100%
  );
  pointer-events: none;
}

.swiper-slider .swiper-slide-caption {
  position: relative;
  z-index: 1;
}
/* .video-wrapper bleibt absolute (style.css:482) — sonst kollabiert die
   Hälfte des Hero-Containers. */

/* Dual-Video-Loop: zwei .hero-video Elemente uebereinander, eines aktiv,
   eines passiv. Der Switch passiert via JS (timeupdate kurz vor dem Ende
   des aktiven Videos) durch Toggle der is-passive Klasse. So gibt es keinen
   Decoder-Reset auf dem sichtbaren Stream und der Loop ist wirklich nahtlos.
   Crossfade-Dauer 1.0s = gleiche Laenge wie die internen Segment-Crossfades
   im Video, sodass der Loop-Wechsel optisch wie ein weiterer Segment-Wechsel
   aussieht (Handshake → Skyline-Anfang). Das Video selbst hat KEINEN xfade
   am Ende mehr (zurueck auf Pre-Loopfix-Version) — der Uebergang ist allein
   durch CSS-Opacity gemacht, sodass der User keine Doppel-Crossfades sieht. */
.video-wrapper > .hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 1s linear;
  will-change: opacity;
}
.video-wrapper > .hero-video.is-passive {
  opacity: 0;
}

/* Headline — fluide Typo, klarere Hierarchie */
.swiper-slider .jumbotron h2 {
  font-size: var(--fs-h1);
  line-height: var(--leading-tight);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 24px color-mix(in oklab, var(--brand-primary-dark) 50%, transparent);

  /* Scroll-driven entry */
  animation: hero-fade-up var(--duration-slow) var(--ease-smooth) both;
  animation-delay: 100ms;
}

.swiper-slider .jumbotron > p {
  font-size: var(--fs-h5);
  font-weight: 300;
  letter-spacing: 0.02em;
  opacity: 0.95;
  margin-bottom: var(--space-8);
  animation: hero-fade-up var(--duration-slow) var(--ease-smooth) both;
  animation-delay: 250ms;
}

@keyframes hero-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero-Buttons — modernisiert mit subtle Lift on Hover */
.swiper-slider .jumbotron .button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--brand-primary);
  color: white;
  border: 1px solid color-mix(in oklab, white 25%, transparent);
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-smooth),
              background var(--duration-fast);
  animation: hero-fade-up var(--duration-slow) var(--ease-smooth) both;
  animation-delay: 400ms;
}
.swiper-slider .jumbotron .button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: var(--brand-primary-light);
}
.swiper-slider .jumbotron .button:active {
  transform: translateY(0);
}

/* Play-Icon im Video-Button — leichtes Bouncing on Hover */
.swiper-slider .jumbotron .button .play {
  width: 14px;
  height: 14px;
  transition: transform var(--duration-fast) var(--ease-spring);
}
.swiper-slider .jumbotron .button:hover .play {
  transform: scale(1.15);
}

/* Floating-Akzente — animierter Glow-Pulse als dezenter Eyecatcher */
.swiper-slider .swiper-slide .swiper-slide-caption::before {
  content: "";
  position: absolute;
  top: 20%;
  right: 8%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, color-mix(in oklab, var(--brand-accent) 40%, transparent) 0%, transparent 70%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
  animation: hero-glow-pulse 8s var(--ease-smooth) infinite;
}

@keyframes hero-glow-pulse {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.6; }
  50% { transform: scale(1.15) translate(-20px, 30px); opacity: 0.9; }
}


/* ============================================================================
   7) WOW.js-Replacement: Page-Load + Scroll-driven Reveal-Animationen
   ----------------------------------------------------------------------------
   Strategie:
   - Above-the-fold (.wow-Markup oben auf der Seite): KLASSISCHE Page-Load-
     Animation mit kräftigem Translate, immer sichtbar beim Seitenwechsel
   - Below-the-fold (gleiche .wow-Klassen, aber bereits ausgelaufen): keine
     erneute Animation, statisch dargestellt
   - Cards / Embeds zusätzlich Scroll-Reveal (siehe §8c)
   ============================================================================ */

/* Reveal-Keyframes — wiederverwendbar, größere Distanzen für spürbaren Effekt */
@keyframes rf-fade-up {
  from { opacity: 0; transform: translateY(60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rf-fade-down {
  from { opacity: 0; transform: translateY(-60px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes rf-fade-left {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes rf-fade-right {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes rf-zoom-in {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

/* Klassische Page-Load Animation für ALLE Browser */
@media (prefers-reduced-motion: no-preference) {
  /* Inline-Style "visibility: hidden; animation-name: none;" überschreiben */
  .wow {
    visibility: visible !important;
    opacity: 0;
    animation-duration: 900ms;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    animation-fill-mode: both;
  }

  .wow.fadeIn,
  .wow.fadeInUp     { animation-name: rf-fade-up; }
  .wow.fadeInDown   { animation-name: rf-fade-down; }
  .wow.fadeInLeft   { animation-name: rf-fade-left; }
  .wow.fadeInRight  { animation-name: rf-fade-right; }
  .wow.zoomIn       { animation-name: rf-zoom-in; }

  /* Sequentieller Stagger nach Position in der Row — jedes Item kommt
     leicht nach dem vorherigen rein. Das wirkt wie das ursprüngliche
     WOW.js-Verhalten und ergibt ein "Storytelling": Headline → Bild →
     Über uns → Mission/Werte (von rechts) → Untertext → ... */
  .row > [class*="col-"].wow:nth-child(1)  { animation-delay: 0ms;  }
  .row > [class*="col-"].wow:nth-child(2)  { animation-delay: 90ms; }
  .row > [class*="col-"].wow:nth-child(3)  { animation-delay: 180ms; }
  .row > [class*="col-"].wow:nth-child(4)  { animation-delay: 270ms; }
  .row > [class*="col-"].wow:nth-child(5)  { animation-delay: 360ms; }
  .row > [class*="col-"].wow:nth-child(6)  { animation-delay: 450ms; }
  .row > [class*="col-"].wow:nth-child(7)  { animation-delay: 540ms; }
  .row > [class*="col-"].wow:nth-child(8)  { animation-delay: 630ms; }
  .row > [class*="col-"].wow:nth-child(9)  { animation-delay: 720ms; }
  .row > [class*="col-"].wow:nth-child(10) { animation-delay: 810ms; }
  .row > [class*="col-"].wow:nth-child(11) { animation-delay: 900ms; }
  .row > [class*="col-"].wow:nth-child(12) { animation-delay: 990ms; }
  .row > [class*="col-"].wow:nth-child(n+13) { animation-delay: 1080ms; }

  /* Service-Pakete Tab-Inhalte: Ziel / Leistungen / Vorteile bauen sich
     gestaffelt von oben nach unten auf — auch beim Tab-Wechsel.
     CSS-only Stagger (unabhaengig von WOW.js' data-wow-delay-Handling,
     das auf inaktive Tab-Panes nicht zuverlaessig greift). */
  #service-pakete .tab-pane .icon-list > li.wow.fadeInUp:nth-of-type(1) { animation-delay: 0ms; }
  #service-pakete .tab-pane .icon-list > li.wow.fadeInUp:nth-of-type(2) { animation-delay: 200ms; }
  #service-pakete .tab-pane .icon-list > li.wow.fadeInUp:nth-of-type(3) { animation-delay: 400ms; }
}


/* ============================================================================
   8) Section-Polish — sanftere Übergänge & größere Atmungsabstände
   ============================================================================ */
.section-xl,
.section-lg {
  position: relative;
  isolation: isolate;
}

/* Subtile Section-Trennung über Gradient-Border statt harter Kante */
.section-xl + .section-xl::before,
.bg-default + .bg-primary::before,
.bg-primary + .bg-default::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(80%, 600px);
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    color-mix(in oklab, var(--brand-primary) 25%, transparent) 50%,
    transparent 100%
  );
  pointer-events: none;
}

/* Background-Primary: hellblauer Brand-Cyan (#068ed6) — gibt der Service-Card-
   Sektion auf der Startseite einen freundlich-hellen Look, der den Kontrast
   zur darunterliegenden dunklen Ansprechpartner-Sektion erzeugt. */
.bg-primary {
  background:
    radial-gradient(circle at 8% 12%, color-mix(in oklab, white 18%, transparent) 0%, transparent 45%),
    radial-gradient(circle at 92% 88%, color-mix(in oklab, var(--brand-primary-dark) 22%, transparent) 0%, transparent 55%),
    linear-gradient(135deg, #068ed6 0%, #0a7ec0 100%);
}

/* Headline-Veredelung — ".text-decorate" Klasse
   Wir übernehmen das vorhandene ::before-Pseudoelement aus style.css und
   ersetzen den schwarzen 4-px-Balken durch einen Gradient-Underline.
   So entsteht KEIN doppelter Strich. */
.text-decorate {
  position: relative;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: var(--leading-tight);
}
.text-decorate::before {
  /* Override gegen style.css:828 */
  max-width: 96px !important;
  width: 96px !important;
  height: 3px !important;
  background: linear-gradient(
    90deg,
    var(--brand-primary) 0%,
    var(--brand-accent) 100%
  ) !important;
  border-radius: var(--radius-pill);
  transform-origin: left center;
}
.context-dark .text-decorate::before {
  background: linear-gradient(
    90deg,
    white 0%,
    color-mix(in oklab, white 70%, var(--brand-accent)) 100%
  ) !important;
}


/* ============================================================================
   8c) Page-Load- und Scroll-Reveal-Animationen ("Apple-Style")
   ----------------------------------------------------------------------------
   - Beim Seitenaufruf: Underline wächst von links rein, Headline fadet up
   - Beim Scrollen: nachfolgende Inhalte (Cards, Bilder, Sektionen) faden auf
   - prefers-reduced-motion: alles deaktiviert (oben in §2 global geregelt)
   ============================================================================ */

/* Keyframes — wiederverwendbar */
@keyframes rf-headline-reveal {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes rf-underline-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes rf-fade-rise {
  from { opacity: 0; transform: translateY(60px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes rf-fade-soft {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* PAGE-LOAD: alle Browser, alle .text-decorate Headlines bekommen Reveal
   Reihenfolge bei Page-Load:
   0ms:    Headline (nth-child 1) erscheint
   90ms:   Item 2 erscheint, dann +90ms pro weiterem Item
   ~900ms: Headline-Animation endet (duration 900ms, delay 0)
   1200ms: Underline wächst von links rein (bewusst nach Headline-Reveal)
   ~1900ms: Underline fertig */
@media (prefers-reduced-motion: no-preference) {
  .text-decorate {
    animation: rf-headline-reveal 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .text-decorate::before {
    animation: rf-underline-grow 700ms 1200ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}

/* SCROLL-REVEAL: nur moderne Browser mit View-Timeline-Support
   (Chrome 115+, Edge 115+, Firefox 124+. Safari fällt zurück auf Page-Load)
   Wenn ein Element beim Scrollen NEU in den Viewport kommt, läuft die
   Animation progressiv durch. */
@supports (animation-timeline: view()) {
  /* Cards, Bilder, Embeds — spürbarer Reveal */
  .thumbnail,
  .embed-responsive,
  .row > [class*="col-"] > .thumbnail {
    animation: rf-fade-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }

  /* Numbered List Items in Dienstleistungen — sanftes Stagger */
  ul.numbered-list li {
    animation: rf-fade-soft linear both;
    animation-timeline: view();
    animation-range: entry 10% cover 30%;
  }

  /* HubSpot-Formular-Felder (Produktanfrage, Kontakt) — von oben nach unten
     reveal'en wenn man im Formular runterscrollt. Greift auf die zur Laufzeit
     erzeugten Form-Field-Container. */
  .hs-form .hs-form-field,
  .hs-form .hs-richtext,
  .hs-form .hs-submit {
    animation: rf-fade-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }

  /* Listen-Items in Produktgruppen / Service-Paketen — bauen sich von
     oben nach unten auf wenn man die Sektion runterscrollt. Jedes <li>
     erscheint einzeln beim Eintreten ins Viewport. */
  ul.icon-list2 > li,
  ul.icon-list > li,
  ul.noicon-list > li {
    animation: rf-fade-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 35%;
  }

  /* Bilder direkt in einer wow-Spalte (z. B. Produktgruppen-Bild rechts,
     Service-Paket-Bilder links) — scroll-driven Reveal damit sie auch
     dann animieren, wenn der Container schon ausgeblendet ist (Page-Load
     bereits abgelaufen) */
  .row > [class*="col-"].wow > img,
  .row > [class*="col-"].wow > a > img {
    animation: rf-fade-rise linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 30%;
  }

  /* Service-Pakete Tab-Inhalte: scroll-driven Animation hier deaktivieren —
     die <li>-Items (Ziel/Leistungen/Vorteile) und das Bild bekommen ihre
     gestaffelte Reveal-Animation gebunden an .active.show des Tab-Panes.
     Bootstrap haelt inaktive Panes nur mit visibility:hidden/opacity:0 im
     DOM, daher wuerden CSS-Animationen sonst beim Page-Load in ALLEN Panes
     gleichzeitig durchlaufen — beim Tab-Klick waere dann nichts mehr zu
     sehen. Mit der :not(.show)-Regel laeuft die Animation erst beim
     Aktivieren des Panes neu. */
  #service-pakete .tab-pane ul.icon-list > li.wow.fadeInUp,
  #service-pakete .tab-pane .col-lg-5.wow > img {
    animation: none !important;
    visibility: visible !important;
    opacity: 0;
  }
  /* Animation laeuft nur, wenn die Sektion einmal in den Viewport gescrollt
     wurde (.is-revealed via js/script.js IntersectionObserver) UND der Tab
     aktiv+sichtbar ist. So sieht der User den staffelnden Aufbau auch beim
     ersten Hinscrollen — nicht nur beim Tab-Wechsel. */
  #service-pakete.is-revealed .tab-pane.active.show ul.icon-list > li.wow.fadeInUp {
    animation: rf-fade-up 900ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
    animation-timeline: auto !important;
    animation-range: normal !important;
    visibility: visible !important;
  }
  #service-pakete.is-revealed .tab-pane.active.show ul.icon-list > li.wow.fadeInUp:nth-of-type(1) { animation-delay: 0ms !important; }
  #service-pakete.is-revealed .tab-pane.active.show ul.icon-list > li.wow.fadeInUp:nth-of-type(2) { animation-delay: 200ms !important; }
  #service-pakete.is-revealed .tab-pane.active.show ul.icon-list > li.wow.fadeInUp:nth-of-type(3) { animation-delay: 400ms !important; }
  #service-pakete.is-revealed .tab-pane.active.show .col-lg-5.wow > img {
    animation: rf-fade-left 900ms cubic-bezier(0.22, 1, 0.36, 1) both !important;
    animation-timeline: auto !important;
    animation-range: normal !important;
    visibility: visible !important;
  }
}


/* ============================================================================
   8b) Container & Navigation — auf großen Monitoren mehr Platz nutzen
   ----------------------------------------------------------------------------
   Bootstrap-Default ist 1140px max, das Navi sogar 1200px hard. Auf 1920er-
   Monitoren wirkt das schmal. Wir gehen einheitlich auf 1700px hoch.
   ============================================================================ */
@media (min-width: 1280px) {
  .container {
    max-width: 1400px;
  }
  /* Navi-Inner mitziehen — sonst sitzt das Menü weiterhin in 1200px-Bereich */
  .rd-navbar-classic.rd-navbar-static .rd-navbar-aside,
  .rd-navbar-classic.rd-navbar-static .rd-navbar-main {
    max-width: 1400px !important;
  }
}


/* ============================================================================
   9) Service-Karten (.thumbnail.thumbnail4)
   ----------------------------------------------------------------------------
   Glassmorphism + 3D-Tilt + Hover-Lift
   - Alle Karten EINHEITLICH hoch (Flex-Stretch)
   - Bilder in fester Aspect-Ratio (kein vertikales Springen)
   - Title mit min-height (auch bei 2- vs. 3-zeilig identische Block-Höhe)
   ============================================================================ */

/* Row mit Flex-Stretch + reduzierter Gutter, damit Cards in der Höhe gleich
   werden UND zusammen die volle Container-Breite ausfüllen (von Logo-links
   bis Flagge-rechts in der Navi). */
.row:has(> [class*="col-"] .thumbnail.thumbnail4) {
  align-items: stretch;
  /* Standard-Bootstrap-Gutter (15px je Seite) auf 8px halbieren */
  margin-left: -8px !important;
  margin-right: -8px !important;
}
[class*="col-"]:has(> .thumbnail.thumbnail4) {
  display: flex;
  padding-left: 8px !important;
  padding-right: 8px !important;
}

.thumbnail.thumbnail4 {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  /* Override gegen style.css:3396 — max-width:370px begrenzt die Cards */
  max-width: none !important;
  /* Override gegen style.css:3340 — margin:auto zentriert die Card im Col */
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: var(--space-6);
  text-align: left;
  border-radius: var(--radius-lg);
  background: color-mix(in oklab, white 15%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid color-mix(in oklab, white 18%, transparent);
  box-shadow: var(--shadow-soft);

  transform-style: preserve-3d;
  perspective: 1200px;
  transition: transform var(--duration-base) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-smooth),
              background var(--duration-base) var(--ease-smooth);
  will-change: transform;
}

.context-dark .thumbnail.thumbnail4 {
  background: color-mix(in oklab, white 7%, transparent);
  border-color: color-mix(in oklab, white 18%, transparent);
}

.thumbnail.thumbnail4:hover {
  transform: translateY(-10px) rotateX(2deg) rotateY(-2deg);
  background: color-mix(in oklab, white 16%, transparent) !important;
  border-color: color-mix(in oklab, white 38%, transparent);
  box-shadow:
    0 18px 44px color-mix(in oklab, var(--brand-primary-dark) 40%, transparent),
    0 0 0 1px color-mix(in oklab, white 30%, transparent);
}

/* Karten-Titel — min-height für 2 Zeilen reserviert */
.thumbnail.thumbnail4 .thumbnail-title {
  font-size: var(--fs-h4);
  font-weight: 700;
  line-height: var(--leading-tight);
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: var(--space-4);
  /* Reserviert Platz für 2 Zeilen — verhindert Springen zwischen Karten */
  min-height: calc(var(--fs-h4) * var(--leading-tight) * 2);
  display: flex;
  align-items: flex-start;
}

/* Thumbnail-Bilder — feste Aspect-Ratio + sanfte Skalierung */
.thumbnail.thumbnail4 .thumbnail-img {
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-6);
  margin-top: 0;
  aspect-ratio: 16 / 10;
  background: color-mix(in oklab, var(--brand-primary-dark) 30%, transparent);
}
.thumbnail.thumbnail4 .thumbnail-img img,
.thumbnail.thumbnail4 .thumbnail-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
  display: block;
  position: static; /* override globalen `video { position: absolute }` aus style.css:473 */
  transition: transform var(--duration-slow) var(--ease-smooth);
}
.thumbnail.thumbnail4:hover .thumbnail-img img,
.thumbnail.thumbnail4:hover .thumbnail-img video {
  transform: scale(1.04);
}

/* Caption — füllt den restlichen Platz, damit alle Karten gleich hoch sind */
.thumbnail.thumbnail4 .caption {
  flex: 1 1 auto;
}
.thumbnail.thumbnail4 .caption p,
.thumbnail.thumbnail4 .caption p.blocksatz {
  font-size: var(--fs-body);
  line-height: var(--leading-normal);
  color: inherit;
  opacity: 0.95;
  /* Override gegen style.css:461 (text-align: justify !important) —
     Blocksatz erzeugt in schmalen Spalten "Rivers" und wirkt gestaucht. */
  text-align: left !important;
  hyphens: auto;
}

/* Team-Karten (Unternehmen-Seite + Ansprechpartner-Block) bewusst im
   Blocksatz lassen wie im Original — die langen Bio-Texte kommen damit
   besser zur Geltung. hyphens:auto trennt lange Wörter sauber, was die
   "Rivers" minimiert. */
.parallax-container .thumbnail .caption p,
.parallax-container .thumbnail .caption p.blocksatz {
  hyphens: auto;
  -webkit-hyphens: auto;
}


/* ============================================================================
   10) Buttons — generelle Modernisierung (zusätzlich zu Hero-Buttons)
   ============================================================================ */
.button.button-primary,
.button-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  background: var(--brand-primary);
  color: white;
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-smooth),
              background var(--duration-fast);
  text-decoration: none;
}
.button.button-primary:hover,
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
  background: var(--brand-primary-light);
  color: white;
}
.button.button-primary:active,
.button-primary:active {
  transform: translateY(0);
}


/* ============================================================================
   11) HubSpot-Formular (Kontakt) — Floating-Labels & Modern Inputs
   ----------------------------------------------------------------------------
   HubSpot generiert das Formular zur Laufzeit — wir stylen mit gezielten
   Selektoren auf die generierten Klassen.
   ============================================================================ */
.hbspt-form,
.hs-form {
  --hs-input-border: var(--border-subtle);
  --hs-input-focus: var(--brand-primary);
}

.hs-form .hs-form-field {
  position: relative;
  margin-bottom: var(--space-6);
}

.hs-form .hs-form-field label:not(.hs-error-msg) {
  display: block;
  font-size: 0.92em;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.01em;
}

.hs-form input[type="text"],
.hs-form input[type="email"],
.hs-form input[type="tel"],
.hs-form input[type="number"],
.hs-form input[type="url"],
.hs-form select,
.hs-form textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-size: var(--fs-body);
  font-family: inherit;
  transition: border-color var(--duration-fast),
              box-shadow var(--duration-fast),
              background var(--duration-fast);
}

.hs-form input:hover,
.hs-form select:hover,
.hs-form textarea:hover {
  border-color: color-mix(in oklab, var(--brand-primary) 35%, var(--border-subtle));
}

.hs-form input:focus,
.hs-form select:focus,
.hs-form textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand-primary) 15%, transparent);
  background: white;
}

.hs-form .hs-button.primary,
.hs-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-pill);
  background: var(--brand-primary);
  color: white !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-base),
              background var(--duration-fast);
}

.hs-form .hs-button.primary:hover,
.hs-form input[type="submit"]:hover {
  transform: translateY(-2px);
  background: var(--brand-primary-light);
  box-shadow: var(--shadow-medium);
}

.hs-form .hs-error-msg {
  color: oklch(55% 0.18 25);
  font-size: 0.85em;
  margin-top: var(--space-1);
}


/* ============================================================================
   12) Floating-Action-Buttons (Login, Kalender, Cookie) — fixed bottom-right
   ----------------------------------------------------------------------------
   Diese Buttons existieren bereits in index.php. Wir polishen sie auf:
   - Softere Schatten
   - Hover-Lift
   - Brand-konsistente Farben
   ============================================================================ */
a.login,
a.kalender,
a.cookie {
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-base);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-medium);
}
a.login:hover,
a.kalender:hover,
a.cookie:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: var(--shadow-glow);
}


/* ============================================================================
   13) Numbered List (Dienstleistungen) — modernisierte Zahlenmarker
   ----------------------------------------------------------------------------
   WICHTIG: Wir nutzen den "list-counter" wie im Original (style.css:287),
   damit die HTML-Inline `counter-reset: list-counter X` pro Liste greift.
   Sonst zeigen alle Listen "01".
   ============================================================================ */
ul.numbered-list {
  list-style: none;
  padding-left: 0;
  /* Kein eigenes counter-reset — das HTML setzt es inline pro <ul> */
}
ul.numbered-list li {
  position: relative;
  padding-left: var(--space-12);
  padding-bottom: var(--space-2);
  counter-increment: list-counter;
  font-weight: 500;
}
ul.numbered-list li::before {
  content: counter(list-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: -4px;
  font-size: var(--fs-h4);
  font-weight: 700;
  background: linear-gradient(
    135deg,
    var(--brand-primary),
    var(--brand-accent)
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.02em;
}


/* ============================================================================
   14) Embed-Video (Infografik) — Schöner Frame statt nackt
   ============================================================================ */
.embed-responsive.embed-responsive-16by9 {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  border: 1px solid var(--border-subtle);
  background: var(--surface-muted);
}


/* ============================================================================
   15) Phase D: View Transitions — sanfte Crossfades zwischen Seitenwechseln
   ----------------------------------------------------------------------------
   Browser, die View Transitions API unterstützen, bekommen automatisch einen
   sanften Übergang zwischen Seiten (statt hartem White-Flash).
   ============================================================================ */
@supports (view-transition-name: none) {
  @view-transition {
    navigation: auto;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: var(--duration-base);
    animation-timing-function: var(--ease-smooth);
  }
}


/* ============================================================================
   16) Print-Stylesheet — schlanker für PDF-Export der Seite
   ============================================================================ */
@media print {
  .rd-navbar,
  a.login,
  a.kalender,
  a.cookie,
  .ie-panel,
  .swiper-slider .video-wrapper {
    display: none !important;
  }
  body {
    background: white !important;
  }
}


/* ============================================================================
   12) HubSpot-Formular Skeleton-Loader
   ----------------------------------------------------------------------------
   Reserviert beim ersten Paint den Platz, den das HubSpot-Formular spaeter
   einnimmt. Verhindert Cumulative Layout Shift, blendet das echte Formular mit
   Cross-Fade ein, sobald onFormReady gefeuert hat.
   ============================================================================ */

.hs-form-shell {
  position: relative;
  width: 100%;
  contain: layout;
  transition: min-height 480ms var(--ease-smooth);
}

.hs-form-shell--contact { min-height: 880px; }
.hs-form-shell--inquiry { min-height: 1200px; }

@media (min-width: 768px) {
  .hs-form-shell--contact { min-height: 600px; }
  .hs-form-shell--inquiry { min-height: 900px; }
}

.hs-form-shell.is-ready {
  min-height: 0;
}

/* Skeleton-Inhalt -------------------------------------------------------- */
.hs-form-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding: var(--space-2) 0;
  pointer-events: none;
  transition: opacity 320ms var(--ease-smooth);
}

@media (min-width: 768px) {
  .hs-form-skeleton {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4) var(--space-6);
  }
}

.hs-form-skeleton > span {
  display: block;
  height: 56px;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--brand-primary) 8%, white);
  border: 1px solid color-mix(in oklab, var(--brand-primary) 12%, transparent);
  animation: hsSkeletonPulse 1600ms var(--ease-smooth) infinite;
}

.hs-form-skeleton > span:nth-child(2) { animation-delay: 120ms; }
.hs-form-skeleton > span:nth-child(3) { animation-delay: 240ms; }
.hs-form-skeleton > span:nth-child(4) { animation-delay: 360ms; }
.hs-form-skeleton > span:nth-child(5) { animation-delay: 480ms; }
.hs-form-skeleton > span:nth-child(6) { animation-delay: 600ms; }
.hs-form-skeleton > span:nth-child(7) { animation-delay: 720ms; }

.hs-form-skeleton .hs-form-skeleton__textarea {
  grid-column: 1 / -1;
  height: 140px;
  animation-delay: 840ms;
}

.hs-form-skeleton .hs-form-skeleton__button {
  grid-column: 1 / -1;
  justify-self: start;
  width: min(220px, 60%);
  height: 52px;
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--brand-primary) 22%, white);
  border-color: color-mix(in oklab, var(--brand-primary) 28%, transparent);
  animation-delay: 960ms;
  margin-top: var(--space-2);
}

@keyframes hsSkeletonPulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* Cross-Fade beim Form-Ready -------------------------------------------- */
.hs-form-shell .hs-form-target {
  opacity: 0;
  transition: opacity 400ms var(--ease-smooth) 80ms;
}

.hs-form-shell.is-ready .hs-form-target {
  opacity: 1;
}

.hs-form-shell.is-ready .hs-form-skeleton {
  opacity: 0;
  pointer-events: none;
}

/* Fallback bei Lade-Fehler ---------------------------------------------- */
.hs-form-fallback {
  position: relative;
  z-index: 2;
  padding: var(--space-6);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--brand-primary) 6%, white);
  border: 1px solid color-mix(in oklab, var(--brand-primary) 14%, transparent);
  color: var(--text-secondary);
  font-size: var(--fs-body);
  line-height: var(--leading-normal);
}

.hs-form-shell.is-failed .hs-form-skeleton {
  opacity: 0;
  pointer-events: none;
}

/* Reduced Motion: keine Pulsation, kein Cross-Fade ---------------------- */
@media (prefers-reduced-motion: reduce) {
  .hs-form-skeleton > span,
  .hs-form-skeleton .hs-form-skeleton__textarea,
  .hs-form-skeleton .hs-form-skeleton__button {
    animation: none !important;
    opacity: 0.7;
  }
  .hs-form-shell,
  .hs-form-shell .hs-form-target,
  .hs-form-shell .hs-form-skeleton {
    transition: none !important;
  }
}


/* ============================================================================
   13) Hauptnavigation — Akzent-Gewicht ueber Manrope-Weight statt eigener Font.
   ----------------------------------------------------------------------------
   Frueher: DM Sans als zweite Akzent-Schrift fuer Navigation, Hero-Eyebrow,
   Hero-CTA, Hero-Stat-Zahlen etc. Konsolidiert auf eine einzige Schrift
   (Manrope, geladen via Google Fonts mit font-display: swap). Hierarchie
   wird ausschliesslich ueber Weight (400/500/600/700/800), Letter-Spacing
   und Groesse erzeugt — keine zweite Font-Datei mehr.
   ============================================================================ */
.rd-nav-link {
  font-weight: 600;
  letter-spacing: 0.01em;
}


/* ============================================================================
   14) Ansprechpartner / Team — Animated Mesh Background
   ----------------------------------------------------------------------------
   Ersetzt das vorherige Hintergrund-Video (wp_team.mp4) durch einen reinen
   CSS-Effekt: drei weiche, langsam treibende Brand-Lichthoefe ueber einem
   tiefen Brand-Blau-Verlauf, ein dezentes Grid-Overlay aus Spider-Web-Linien.
   Wirkt edel, modern und ruhig — keinerlei Netzwerk-Last, GPU-billig.
   ============================================================================ */

.team-bg-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(ellipse at top, #14528f 0%, #0a2545 70%);
}

/* JS-generierter Parallax-Wrapper neutralisieren */
.team-bg-section > .material-parallax {
  display: none !important;
}

.team-bg-section .parallax-content {
  position: relative;
  z-index: 1;
}

.team-bg-mesh {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Drei weiche Brand-Lichthoefe — wandern dezent durch die Sektion (reine Translate-Bewegung, keine Pulsation). */
.team-bg-mesh__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

.team-bg-mesh__orb--1 {
  width: 55vw;
  height: 55vw;
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(42, 166, 224, 0.85) 0%, transparent 65%);
  animation: teamMeshDrift1 28s ease-in-out infinite;
}

.team-bg-mesh__orb--2 {
  width: 50vw;
  height: 50vw;
  bottom: -15%;
  right: -5%;
  background: radial-gradient(circle, rgba(98, 164, 255, 0.75) 0%, transparent 65%);
  animation: teamMeshDrift2 36s ease-in-out infinite;
}

.team-bg-mesh__orb--3 {
  width: 40vw;
  height: 40vw;
  top: 25%;
  left: 30%;
  background: radial-gradient(circle, rgba(180, 220, 255, 0.45) 0%, transparent 65%);
  animation: teamMeshDrift3 32s ease-in-out infinite;
}

@keyframes teamMeshDrift1 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(16vw, 5vh); }
  50%      { transform: translate(22vw, 14vh); }
  75%      { transform: translate(7vw, 8vh); }
}

@keyframes teamMeshDrift2 {
  0%, 100% { transform: translate(0, 0); }
  33%      { transform: translate(-18vw, -7vh); }
  66%      { transform: translate(-9vw, -16vh); }
}

@keyframes teamMeshDrift3 {
  0%, 100% { transform: translate(0, 0); }
  25%      { transform: translate(-13vw, 7vh); }
  50%      { transform: translate(9vw, 13vh); }
  75%      { transform: translate(-5vw, -5vh); }
}

@media (prefers-reduced-motion: reduce) {
  .team-bg-mesh__orb {
    animation: none !important;
  }
}


/* ============================================================================
   15) Ansprechpartner-Karten — dezenter Hover-Lift mit Foto-Zoom
   ----------------------------------------------------------------------------
   Mitarbeiter-Bilder auf der Team-Sektion bekommen beim Hover einen sanften
   Lift, leichten Foto-Zoom und einen weichen Brand-Glow — wirkt lebendiger.
   ============================================================================ */
.team-bg-section .thumbnail {
  transition: transform var(--duration-base) var(--ease-smooth);
}
.team-bg-section .thumbnail .thumbnail-img {
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
  transition: box-shadow var(--duration-base) var(--ease-smooth);
}
.team-bg-section .thumbnail .thumbnail-img img {
  transition: transform 600ms var(--ease-smooth), filter 400ms var(--ease-smooth);
}
.team-bg-section .thumbnail:hover {
  transform: translateY(-6px);
}
.team-bg-section .thumbnail:hover .thumbnail-img {
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.32),
    0 0 0 1px color-mix(in oklab, var(--brand-accent) 30%, transparent);
}
.team-bg-section .thumbnail:hover .thumbnail-img img {
  transform: scale(1.04);
  filter: brightness(1.06) saturate(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .team-bg-section .thumbnail,
  .team-bg-section .thumbnail .thumbnail-img,
  .team-bg-section .thumbnail .thumbnail-img img {
    transition: none !important;
  }
  .team-bg-section .thumbnail:hover {
    transform: none !important;
  }
  .team-bg-section .thumbnail:hover .thumbnail-img img {
    transform: none !important;
    filter: none !important;
  }
}


/* ============================================================================
   16) Floating-Buttons (Login / Termin / Cookie / Up-Arrow) — Farbe je nach Scroll-Sektion
   ----------------------------------------------------------------------------
   Jeder Button bekommt INDIVIDUELL die Klasse `.is-on-light` per scroll-toggles.js,
   sobald seine Mitte ueber einer hellblauen Sektion liegt. So faerben sich die
   Buttons nacheinander ein, je nachdem wie weit der hellblaue Bereich beim
   Scrollen jeden einzelnen Button erreicht hat.
   ============================================================================ */
a.login.is-on-light,
a.kalender.is-on-light,
a.cookie.is-on-light,
.ui-to-top.is-on-light {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
}
a.login.is-on-light:hover,
a.kalender.is-on-light:hover,
a.cookie.is-on-light:hover,
.ui-to-top.is-on-light:hover {
  background-color: var(--brand-primary-dark) !important;
  border-color: var(--brand-primary-dark) !important;
}

a.login,
a.kalender,
a.cookie,
.ui-to-top {
  transition:
    transform var(--duration-fast) var(--ease-spring),
    box-shadow var(--duration-base),
    background-color 350ms var(--ease-smooth),
    border-color 350ms var(--ease-smooth);
}


/* ============================================================================
   17) Hero-Statement — Repositionierung "kein Spediteur, sondern Einkaufsbüro"
   ----------------------------------------------------------------------------
   Asymmetrische, magazin-artige Anordnung: Statement-Block links, Stats-Bar
   als Streifen am Hero-Boden. Video bleibt Vollbild-Hintergrund. Linker
   Verdunkelungs-Gradient gibt dem Text seinen Kontrast, ohne das Video
   komplett zu schlucken.

   Greift nur wenn die Swiper-Section die Klasse `.hero-statement` trägt —
   andere Hero-Setups (z. B. Subpages) bleiben unangetastet.
   ============================================================================ */

/* Vertikales Zentrieren + linke Ausrichtung — überschreibt das alte
   .text-center / .text-right Layout aus dem Original-Markup */
.hero-statement.swiper-slider .swiper-wrapper {
  text-align: left;
}

.hero-statement.swiper-slider .swiper-slide-caption {
  display: flex;
  /* Content sitzt im oberen Drittel — verhindert Kollision mit dem
     fixed-positioned ProvenExpert-Badge in der linken unteren Ecke.
     padding-top deutlich groesser (vorher 96/14vh/220), damit Eyebrow +
     Headline genug Atmungsabstand zum Logo / Navigation oben haben und
     nicht "gequetscht" wirken. */
  align-items: flex-start;
  min-height: 100%;
  padding-top: clamp(150px, 19vh, 280px);
  padding-bottom: 200px; /* Platz für Stats-Bar am unteren Rand */
}

.hero-statement.swiper-slider .swiper-slide-caption .row {
  width: 100%;
  margin-left: 0;
  margin-right: 0;
}

/* Linker Verdunkelungs-Gradient für Text-Kontrast — überschreibt die
   globale Vignette aus §6 für diesen Hero-Typ */
.hero-statement.swiper-slider .swiper-slide::after {
  background: linear-gradient(
    100deg,
    color-mix(in oklab, var(--brand-primary-dark) 80%, transparent) 0%,
    color-mix(in oklab, var(--brand-primary-dark) 45%, transparent) 50%,
    transparent 80%
  );
}

.hero-statement__inner {
  position: relative;
  color: white;
  max-width: 760px;
}

/* Eyebrow — kleine Pill oben drüber, definiert die Kategorie */
.hero-eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: color-mix(in oklab, var(--brand-accent) 30%, white);
  margin: 0 0 var(--space-6);
  padding: var(--space-2) var(--space-4);
  border: 1px solid color-mix(in oklab, white 28%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in oklab, var(--brand-primary-dark) 40%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: hero-fade-up var(--duration-slow) var(--ease-smooth) both;
}

/* Headline — zwei Zeilen mit Kontrast-Pattern (durchgestrichen + positiv) */
.hero-headline {
  font-size: var(--fs-h1);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 0 0 var(--space-6);
  color: white;
  text-shadow: 0 2px 24px color-mix(in oklab, var(--brand-primary-dark) 70%, transparent);
}

/* Akzent auf "Einkaufsbüro in China": warmer Goldton statt Cyan-Blau,
   damit der Kontrast gegen das blaue Hero-Video tragfaehig ist und der
   Begriff visuell als Statement-Kern funktioniert. */
.hero-headline__accent {
  color: var(--brand-amber);
  font-style: normal;
  filter: drop-shadow(0 2px 18px color-mix(in oklab, var(--brand-amber) 55%, transparent));
}

/* Subline — die konkreten Leistungen aufgezählt */
.hero-subline {
  font-size: var(--fs-h5);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: color-mix(in oklab, white 95%, var(--brand-accent));
  margin: 0 0 var(--space-8);
  max-width: 660px;
  text-shadow: 0 1px 12px color-mix(in oklab, var(--brand-primary-dark) 60%, transparent);
  animation: hero-fade-up var(--duration-slow) var(--ease-smooth) 400ms both;
}

/* CTA-Reihe - primary + ghost nebeneinander, gleiche Hoehe.
   align-items: stretch sorgt dafuer dass der einzeilige primary auf die
   Hoehe des zweizeiligen stacked-buttons mitwaechst. */
.hero-cta-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: var(--space-3);
  max-width: 580px;
  animation: hero-fade-up var(--duration-slow) var(--ease-smooth) 550ms both;
}

.hero-cta {
  /* Beide Buttons gleich breit, gleich hoch. height:5rem (80px) explizit
     gesetzt damit der einzeilige primary nicht durch alte Theme-Regeln
     ungleich gross wird gegenueber dem zweizeiligen stacked.
     min-width:0 verhindert Subpixel-Wrap.
     margin:0 ueberschreibt den 30px-margin-top von style.css `* + .button`,
     der sonst den zweiten Button um 30px nach unten verschiebt. */
  flex: 1 1 0;
  min-width: 0;
  height: 5rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-pill);
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: var(--fs-body);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring),
              box-shadow var(--duration-base) var(--ease-smooth),
              background var(--duration-fast),
              border-color var(--duration-fast),
              color var(--duration-fast);
}
/* Primary - Bernstein/Gold mit dunklem Text, hoechstmoeglicher Kontrast
   gegen blauen Hero-Hintergrund (Briefing §12 Farbschema-Vorschlag).
   "Atmet" dezent: Scale + Glow gleichzeitig in einer kontinuierlichen
   Sinus-aehnlichen Kurve (3.6s Zyklus, ease-in-out). Wirkt wie Atemschlag,
   nicht wie Blinker. Kein abrupter Halo-Sprung mehr. */
.hero-cta--primary {
  background: var(--brand-amber);
  color: #1a1a1a;
  position: relative;
  isolation: isolate;
  box-shadow:
    0 6px 18px color-mix(in oklab, var(--brand-amber) 50%, transparent),
    0 0 0 0 color-mix(in oklab, var(--brand-amber) 0%, transparent),
    inset 0 0 0 1px color-mix(in oklab, white 22%, transparent);
  animation: hero-cta-breathe 3600ms ease-in-out infinite;
  will-change: transform, box-shadow;
}
.hero-cta--primary:hover,
.hero-cta--primary:focus-visible {
  background: var(--brand-amber-light);
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow:
    0 14px 32px color-mix(in oklab, var(--brand-amber) 70%, transparent),
    0 0 0 0 transparent,
    inset 0 0 0 1px color-mix(in oklab, white 35%, transparent);
  animation-play-state: paused;
}

/* Sinus-aehnliche Atmung NUR via Box-Shadow-Halo (kein scale).
   Der scale wuerde den Button kurz breiter machen und damit die
   max-width des CTA-Rows sprengen, sodass die Buttons in eine zweite
   Zeile umbrechen. Halo allein erzeugt visuell denselben Atem-Effekt. */
@keyframes hero-cta-breathe {
  0%, 100% {
    box-shadow:
      0 6px 18px color-mix(in oklab, var(--brand-amber) 45%, transparent),
      0 0 0 0 color-mix(in oklab, var(--brand-amber) 0%, transparent),
      inset 0 0 0 1px color-mix(in oklab, white 22%, transparent);
  }
  50% {
    box-shadow:
      0 12px 28px color-mix(in oklab, var(--brand-amber) 65%, transparent),
      0 0 0 14px color-mix(in oklab, var(--brand-amber) 16%, transparent),
      inset 0 0 0 1px color-mix(in oklab, white 35%, transparent);
  }
}

/* Reduced-Motion: keine Atmung, Button bleibt sichtbar gold */
@media (prefers-reduced-motion: reduce) {
  .hero-cta--primary {
    animation: none !important;
    transform: none !important;
  }
}
/* Ghost - durchsichtig mit weisser Outline, gleiche Groesse wie primary */
.hero-cta--ghost {
  background: color-mix(in oklab, var(--brand-primary-dark) 40%, transparent);
  color: white;
  border-color: color-mix(in oklab, white 45%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.hero-cta--ghost:hover,
.hero-cta--ghost:focus-visible {
  background: color-mix(in oklab, white 16%, transparent);
  color: white;
  border-color: color-mix(in oklab, white 70%, transparent);
  transform: translateY(-2px);
}
.hero-cta__arrow {
  display: inline-block;
  transition: transform var(--duration-base) var(--ease-spring);
}
.hero-cta--ghost:hover .hero-cta__arrow,
.hero-cta--ghost:focus-visible .hero-cta__arrow {
  transform: translateX(4px);
}

/* Zweizeilige Variante - "Unsere Service-Pakete" stapelt
   visuell hat der Button damit mehr Hoehe und passt besser neben den
   einzeiligen Primary-CTA, ohne dass der Text rechts/links am Rand klebt. */
.hero-cta--stacked .hero-cta__lines {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  line-height: 1.15;
}
.hero-cta--stacked .hero-cta__lines > span:first-child {
  font-weight: 500;
  font-size: 0.85em;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.hero-cta--stacked .hero-cta__lines > span:last-child {
  font-weight: 700;
}
.hero-cta--stacked {
  line-height: 1.15;
}

/* Stats-Bar — schmaler Streifen am unteren Hero-Rand */
.hero-statement .hero-stats {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: var(--space-6) 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    color-mix(in oklab, var(--brand-primary-dark) 70%, transparent) 30%,
    color-mix(in oklab, var(--brand-primary-dark) 92%, transparent) 100%
  );
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  backdrop-filter: blur(10px) saturate(120%);
  /* Kein border-top — Glas-Effekt fadet sauber per Gradient ins Video,
     keine sichtbare Trennlinie. */
  border-top: none;
  animation: hero-fade-up var(--duration-slow) var(--ease-smooth) 700ms both;
}

/* Stats verteilen sich über die volle Container-Breite:
   - erste Stat sitzt linksbündig zum Container-Rand (passt zum Logo darüber)
   - letzte Stat sitzt rechtsbündig zum Container-Rand (passt zur Sprachflagge)
   - die mittleren zwei verteilen sich gleichmäßig dazwischen
   Statt fester 1fr-Spalten nutzen wir Flex mit space-between - so wachsen
   die Abstände mit der Container-Breite mit. */
.hero-stats__grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  text-align: left;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding-left: var(--space-4);
  border-left: 2px solid color-mix(in oklab, var(--brand-accent) 75%, transparent);
  flex: 0 1 auto;
}

/* Letzte Stat: gespiegelt - Border, Padding und Inhalt rechts statt links,
   damit "300+" optisch am rechten Container-Rand klebt (wie die Sprachflagge). */
@media (min-width: 992px) {
  .hero-stat:last-child {
    text-align: right;
    padding-left: 0;
    padding-right: var(--space-4);
    border-left: none;
    border-right: 2px solid color-mix(in oklab, var(--brand-accent) 75%, transparent);
  }
  .hero-stat:last-child .hero-stat__number {
    justify-content: flex-end;
  }
}
.hero-stat__number {
  display: flex;
  align-items: baseline;
  margin: 0;
  font-size: clamp(1.85rem, 1.2rem + 1.6vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: white;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.hero-stat__suffix {
  margin-left: 0.05em;
  font-size: 0.6em;
  color: var(--brand-accent);
  font-weight: 700;
}
.hero-stat__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: color-mix(in oklab, white 85%, transparent);
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin: 0;
}

/* Tablet & Mobile — Layout-Anpassungen
   Auf Tablet/Mobile lösen wir die Stats-Bar aus dem absolute-Wrapper,
   damit sie nicht mit den fixed Floating-Buttons (Login/Kalender) und
   dem ProvenExpert-Badge im linken unteren Hero-Bereich kollidiert.

   Wichtig: .swiper-slide hat von Swiper aus display:flex / flex-direction:row.
   Damit die statische Stats-Bar UNTER dem Caption-Block landet (nicht daneben),
   zwingen wir das Slide hier auf flex-direction:column und lösen die starre
   Höhe. */
@media (max-width: 991.98px) {
  .hero-statement.swiper-slider .swiper-slide {
    flex-direction: column;
    height: auto !important;
    min-height: 100vh;
  }

  .hero-statement.swiper-slider .swiper-slide-caption {
    min-height: 0;
    padding-bottom: var(--space-16);
    flex: 1 1 auto;
  }

  .hero-statement .hero-stats {
    position: static;
    background: var(--brand-primary-dark);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-top: none;
    padding: var(--space-8) 0;
    animation: none;
    flex: 0 0 auto;
  }

  .hero-stats__grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .hero-stat {
    padding-left: var(--space-4);
    flex-direction: row;
    align-items: baseline;
    gap: var(--space-4);
  }
  .hero-stat__number {
    font-size: 1.85rem;
    flex: 0 0 auto;
    min-width: 100px;
  }
  .hero-stat__label {
    font-size: 0.85rem;
    flex: 1 1 auto;
  }
}

@media (max-width: 575.98px) {
  .hero-statement.swiper-slider .swiper-slide-caption {
    padding-top: clamp(80px, 10vh, 140px);
    padding-bottom: var(--space-12);
  }
  .hero-headline__line--negate {
    font-size: 0.65em;
  }
  /* CTAs an den fixed Floating-Buttons (Login/Kalender/Cookie) vorbeischieben:
     Diese sitzen left:40 + 50px breit = Bereich left:40-90. Auf Mobile stapeln
     wir die zwei Buttons untereinander und nutzen die volle verfuegbare Breite,
     damit der Text nicht abgeschnitten wird. padding-left:90 schiebt sie
     komplett rechts an den Floating-Icons vorbei. */
  .hero-cta-row {
    padding-left: 90px;
    flex-direction: column;
    gap: 10px;
    max-width: none;
  }
  .hero-cta {
    width: 100%;
    flex: 0 0 auto;
    height: auto;
    min-height: 56px;
    justify-content: center;
    padding: var(--space-3) var(--space-5);
    font-size: 0.95rem;
  }
  .hero-cta--stacked {
    flex-direction: column;
    line-height: 1.15;
  }
  .hero-cta--stacked .hero-cta-eyebrow {
    margin-bottom: 2px;
  }
  .hero-eyebrow {
    font-size: 0.7rem;
    padding: var(--space-1) var(--space-3);
  }
}


/* ============================================================================
   18) Trust-Bar — direkt unter dem Hero, vor den Content-Sektionen
   ----------------------------------------------------------------------------
   Verstärkt die Repositionierung: hier stehen die Mitgliedschaften &
   Kooperationen (AHK, BNI, SCOR, Grüner Punkt) — Vertrauenssignale, die
   einem reinen Spediteur fehlen.
   ============================================================================ */
.trust-bar {
  padding: var(--space-6) 0;
  background: linear-gradient(
    180deg,
    var(--surface-base) 0%,
    var(--surface-muted) 100%
  );
  border-bottom: 1px solid var(--border-subtle);
}

.trust-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.trust-bar__claim {
  margin: 0;
  font-size: var(--fs-body);
  line-height: 1.45;
  color: var(--text-secondary);
  flex: 1 1 480px;
}
.trust-bar__claim-strong {
  display: block;
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05em;
  letter-spacing: -0.005em;
  margin-bottom: var(--space-2);
}
/* Jede Aussage als eigene Zeile - klar lesbar, scanbar */
.trust-bar__claim-line {
  display: block;
}

.trust-bar__badges {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.trust-bar__badge {
  display: flex;
  align-items: center;
}
.trust-bar__badge img {
  max-height: 72px;
  width: auto;
  transition: opacity var(--duration-base) var(--ease-smooth),
              transform var(--duration-base) var(--ease-spring),
              filter var(--duration-base) var(--ease-smooth);
}
/* BNI-Logo: BNI-Mitgliedschaft, querformatige Wortmarke */
.trust-bar__badge--bni img {
  max-height: 64px;
  width: auto;
}
/* AHK-Logo: deutlich groesser anzeigen, weil das Logo querformatig ist */
.trust-bar__badge--ahk img {
  max-height: 64px;
  width: auto;
}
/* Drittlogos (z. B. Gruener Punkt): leichter Grayscale, beim Hover poppt es.
   Gruener Punkt ist quadratisch und wirkt bei gleicher max-height kleiner als
   die querformatigen BNI/AHK. Per transform: scale skalieren wir ihn visuell
   um ~35 %, ohne dass die Box-Hoehe der Trust-Bar dadurch waechst. */
.trust-bar__badge:not(.trust-bar__badge--ahk):not(.trust-bar__badge--bni) img {
  filter: grayscale(0.2);
  opacity: 0.9;
  transform: scale(1.35);
  transform-origin: center;
}
.trust-bar__badge:not(.trust-bar__badge--ahk):not(.trust-bar__badge--bni) a:hover img,
.trust-bar__badge:not(.trust-bar__badge--ahk):not(.trust-bar__badge--bni):hover img {
  transform: scale(1.35) translateY(-2px);
}
.trust-bar__badge a:hover img,
.trust-bar__badge:hover img {
  filter: grayscale(0);
  opacity: 1;
  transform: translateY(-2px);
}

@media (max-width: 767.98px) {
  .trust-bar__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    text-align: left;
  }
  .trust-bar__badges {
    gap: var(--space-6);
  }
  .trust-bar__badge img {
    max-height: 56px;
  }
}

/* Trust-Bar Reveal beim Hinscrollen — Claim-Zeilen gestaffelt von oben nach
   unten, Logos parallel von rechts. JS setzt .is-revealed via
   IntersectionObserver (siehe js/script.js). */
.trust-bar .trust-bar__claim > *,
.trust-bar .trust-bar__badge {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.trust-bar .trust-bar__badge {
  transform: translateX(30px);
}
.trust-bar.is-revealed .trust-bar__claim > * {
  opacity: 1;
  transform: none;
}
.trust-bar.is-revealed .trust-bar__claim > :nth-child(1) { transition-delay: 0ms; }
.trust-bar.is-revealed .trust-bar__claim > :nth-child(2) { transition-delay: 120ms; }
.trust-bar.is-revealed .trust-bar__claim > :nth-child(3) { transition-delay: 240ms; }
.trust-bar.is-revealed .trust-bar__claim > :nth-child(4) { transition-delay: 360ms; }
.trust-bar.is-revealed .trust-bar__badge {
  opacity: 1;
  transform: none;
}
.trust-bar.is-revealed .trust-bar__badge:nth-child(1) { transition-delay: 200ms; }
.trust-bar.is-revealed .trust-bar__badge:nth-child(2) { transition-delay: 350ms; }
.trust-bar.is-revealed .trust-bar__badge:nth-child(3) { transition-delay: 500ms; }
@media (prefers-reduced-motion: reduce) {
  .trust-bar .trust-bar__claim > *,
  .trust-bar .trust-bar__badge {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================================================
   19) Footer-Disclaimer + Compliance-Block - Trust durch konkrete Registrierungen
   ----------------------------------------------------------------------------
   Schmaler Streifen zwischen den Footer-Spalten und der Bottom-Bar.
   Raeumt das Missverstaendnis "Spedition" explizit aus und zeigt die echten
   Compliance-Registrierungen (Briefing §9, §10).
   ============================================================================ */

/* Footer-Container auf dieselbe Inhaltsbreite wie der Rest der Webseite —
   die Content-Sektionen (Hero-Stats, Kontaktformular, Service-Bloecke etc.)
   nutzen `.container { max-width: 1400px; padding: 0 15px }`. Das alte
   Bootstrap-Default 960px wirkte gegen diese 1400px sichtbar eingeklemmt;
   1320px war ebenfalls zu schmal; `none` zog den Footer auf volle Browser-
   Breite und passte nicht mehr zur Webseiten-Optik. 1400px matcht exakt. */
footer.bg-default > .container,
.footer-compliance .container,
.footer-disclaimer .container,
footer .bottom .container {
  max-width: 1400px;
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* Footer-Karten-Spalte: zwei kompakte, klickbare Karten-Thumbnails
   (Dresden + Guangzhou) als lokal gehostete OSM-PNGs. DSGVO-clean — kein
   externer Request, kein Consent-Banner. Der Klick oeffnet Google Maps in
   einem neuen Tab. Groesse so gewaehlt, dass beide Karten zusammen die Hoehe
   der Sitemap-Liste in Spalte 1 (Startseite -> Datenschutz) nicht ueberschreiten.
   Inhalt linksbuendig zur Spaltenkante — gleiche Logik wie Sitemap-Liste,
   Kontakt-Daten, Adressblocks: jede Spalte richtet ihren Inhalt links unter
   der Ueberschrift aus. */

/* Lage-Spalte auf Desktop nach rechts gesetzt, sodass die linke Kante des
   Inhalts (h3, Karten, Attribution) exakt auf der linken Kante der 5. Compliance-
   Spalte (REBAT) im Block darunter sitzt. Das Footer-Spalten-Raster (4er Bootstrap-
   Grid) und das Compliance-Raster (5 gleiche Spalten) haben unterschiedliche
   Breiten — der zusaetzliche padding-left holt die Lage-Spalte optisch auf
   die Achse von REBAT. Auf Tablet/Mobile bleibt Bootstrap-Default. */
@media (min-width: 992px) {
  .footer-maps-col {
    padding-left: 80px;
  }
}

.footer-maps-col .footer-map-cards {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  /* 50px = Gap zwischen h3-Decor-Linie und erstem Inhalt der anderen Spalten
     (Sitemap-Liste, Telefon-Eintrag, erste Adresszeile). Ohne diesen Abstand
     starten die Karten optisch hoeher als die "Startseite"/"Telefon:"-Zeile
     in den linken Spalten — die erste Karten-Oberkante muss exakt auf der
     Linie sitzen, auf der links der erste Listen-Eintrag beginnt. */
  margin-top: 50px;
}

.footer-map-card {
  display: block;
  /* Volle Spaltenbreite — die Karten dehnen sich exakt bis zur rechten Kante
     der virtuellen "REBAT-Spalte", da die Lage-Spalte per padding-left genau
     dort beginnt. Ergebnis: Karten linke + rechte Kante deckungsgleich mit
     REBAT. Hoehe ueber `aspect-ratio` am Bild gesteuert. */
  width: 100%;
  max-width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 4px;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 220ms ease;
}

.footer-map-card:hover,
.footer-map-card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--brand-amber) 45%, #e5e7eb);
  box-shadow: 0 6px 18px color-mix(in oklab, var(--brand-amber) 25%, transparent);
}

.footer-map-card:focus-visible {
  outline: 2px solid var(--brand-amber);
  outline-offset: 2px;
}

.footer-map-card img {
  display: block;
  width: 100%;
  height: auto;
  /* Rechteckiges 2:1-Format statt quadratisch — nutzt die ganze Spalten-
     Breite (255px = REBAT-Breite) und haelt beide Karten zusammen knapp
     unter der Hoehe der Sitemap-Liste in Spalte 1 (Datenschutz-Linie). */
  aspect-ratio: 2 / 1;
  border-radius: 4px;
  object-fit: cover;
  transition: filter 220ms ease;
}

.footer-map-card:hover img,
.footer-map-card:focus-visible img {
  filter: saturate(1.1) brightness(1.02);
}

/* OSM-Pflicht-Attribution unter der Karten-Spalte — bewusst dezent in
   max-width der Karten gehalten, damit die Optik der Karten-Spalte ruhig bleibt. */
.footer-map-attribution {
  max-width: 100%;
  margin: var(--space-2) 0 0;
  font-size: 0.65rem;
  line-height: 1.3;
  color: var(--text-muted);
}

.footer-map-attribution a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--text-muted) 50%, transparent);
}

.footer-map-attribution a:hover {
  color: var(--brand-amber);
  text-decoration-color: var(--brand-amber);
}

/* Compliance-Daten als Definition-List-Grid - klar lesbar, scanbar.
   Konkrete Nummern (EORI, USt-ID, WEEE etc.) wirken vertrauenstiftend, weil
   sie nachpruefbar sind. */
.footer-compliance {
  /* Weissraum (Footer-Hintergrund) ueber dem farbigen Block per margin-top:
     so entsteht eine klare 2-Zeilen-Pause unter "Datenschutz" bevor der
     beige Compliance-Bereich beginnt. Das innere padding-top kann dadurch
     wieder kleiner sein. */
  margin-top: var(--space-12);
  padding: var(--space-8) 0;
  background: color-mix(in oklab, var(--brand-primary) 5%, var(--surface-base));
  border-top: 1px solid var(--border-subtle);
}

.footer-compliance__title {
  margin: 0 0 var(--space-6);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-compliance__grid {
  /* Festes 5-Spalten-Raster auf Desktop, damit beide Zeilen exakt gleich
     ausgerichtet sind. Auf Tablet auf 3, auf Mobile auf 2 Spalten umbrechen,
     damit lange Werte (USCC, EORI) nicht abgeschnitten werden. */
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--space-4) var(--space-6);
  margin: 0;
  padding: 0;
}

@media (max-width: 991px) {
  .footer-compliance__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .footer-compliance__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.footer-compliance__item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-subtle);
}

.footer-compliance__item dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.footer-compliance__item dd {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  word-break: break-word;
}

/* Footer-Compliance Reveal beim Hinscrollen — Title fade-in, danach die
   10 Item-Kacheln gestaffelt von oben nach unten. JS setzt .is-revealed via
   IntersectionObserver (siehe js/script.js). */
.footer-compliance .footer-compliance__title,
.footer-compliance .footer-compliance__item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.footer-compliance.is-revealed .footer-compliance__title {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}
.footer-compliance.is-revealed .footer-compliance__item {
  opacity: 1;
  transform: none;
}
.footer-compliance.is-revealed .footer-compliance__item:nth-child(1)  { transition-delay: 150ms; }
.footer-compliance.is-revealed .footer-compliance__item:nth-child(2)  { transition-delay: 220ms; }
.footer-compliance.is-revealed .footer-compliance__item:nth-child(3)  { transition-delay: 290ms; }
.footer-compliance.is-revealed .footer-compliance__item:nth-child(4)  { transition-delay: 360ms; }
.footer-compliance.is-revealed .footer-compliance__item:nth-child(5)  { transition-delay: 430ms; }
.footer-compliance.is-revealed .footer-compliance__item:nth-child(6)  { transition-delay: 500ms; }
.footer-compliance.is-revealed .footer-compliance__item:nth-child(7)  { transition-delay: 570ms; }
.footer-compliance.is-revealed .footer-compliance__item:nth-child(8)  { transition-delay: 640ms; }
.footer-compliance.is-revealed .footer-compliance__item:nth-child(9)  { transition-delay: 710ms; }
.footer-compliance.is-revealed .footer-compliance__item:nth-child(10) { transition-delay: 780ms; }
@media (prefers-reduced-motion: reduce) {
  .footer-compliance .footer-compliance__title,
  .footer-compliance .footer-compliance__item {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================================
   19b) PDF-Modal — Inline-Anzeige des Grüner-Punkt-Beteiligungszertifikats
   ----------------------------------------------------------------------------
   Native <dialog>-Element fuer Accessibility (Focus-Trap, ESC, ARIA).
   Animation per @starting-style + transition (Chromium 117+, Firefox 129+),
   in alteren Browsern oeffnet das Modal ohne Animation aber funktional.
   ============================================================================ */
.pdf-modal {
  /* PDF passt A4 hoch — Modal nimmt das Aspect-Ratio mit. width wird aus
     aspect-ratio + height ausgerechnet. Glas-Effekt-Rim: layered Box-
     Shadow gibt einen halbtransparenten Brand-Rim mit innerem Highlight
     und weichem ausserem Glow — wirkt wie eine glaeserne Kante statt
     eines harten Borders. */
  width: auto;
  height: 95vh;
  aspect-ratio: 210 / 297;
  max-width: 95vw;
  max-height: 95vh;
  padding: 0;
  border: none;
  border-radius: var(--radius-lg, 12px);
  background: white;
  box-shadow:
    /* feine Top-Lichtkante (Glasreflex) */
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    /* schmaler, transparent-weisser Glas-Rim */
    0 0 0 1.5px rgba(255, 255, 255, 0.45),
    /* Tiefenschatten */
    0 30px 80px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  /* Animations-Endzustand */
  opacity: 1;
  transform: scale(1) translateY(0);
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 280ms cubic-bezier(0.22, 1, 0.36, 1),
    overlay 280ms allow-discrete,
    display 280ms allow-discrete;
}
.pdf-modal:not([open]) {
  opacity: 0;
  transform: scale(0.96) translateY(12px);
}
@starting-style {
  .pdf-modal[open] {
    opacity: 0;
    transform: scale(0.96) translateY(12px);
  }
}
.pdf-modal::backdrop {
  background: rgba(8, 16, 32, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  opacity: 1;
  transition:
    opacity 280ms cubic-bezier(0.22, 1, 0.36, 1),
    overlay 280ms allow-discrete,
    display 280ms allow-discrete;
}
.pdf-modal:not([open])::backdrop {
  opacity: 0;
}
@starting-style {
  .pdf-modal[open]::backdrop {
    opacity: 0;
  }
}
.pdf-modal__close {
  position: absolute;
  top: var(--space-3, 12px);
  right: var(--space-3, 12px);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  /* Dunkler Brand-Hintergrund mit weissem X — kontrastiert sicher gegen
     ein weisses PDF-Dokument dahinter. */
  background: var(--brand-primary, #13447a);
  color: white;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.32),
    0 0 0 2px rgba(255, 255, 255, 0.85);
  transition: transform 160ms var(--ease-spring, cubic-bezier(0.5, 1.5, 0.5, 1)),
              background 160ms,
              box-shadow 160ms;
}
.pdf-modal__close:hover,
.pdf-modal__close:focus-visible {
  background: var(--brand-primary-dark, #0a2545);
  transform: scale(1.06);
  outline: none;
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.95);
}
.pdf-modal__close:active {
  transform: scale(0.96);
}
.pdf-modal__viewer {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border: none;
  background: white;
  overflow: auto;
  scrollbar-width: thin;
}
.pdf-modal__viewer canvas {
  display: block;
  width: 100%;
  height: auto;
}
.pdf-modal__viewer canvas + canvas {
  /* trenner zwischen mehrseitigen PDFs */
  margin-top: 1px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
/* Loading-Overlay mit Spinner, waehrend PDF.js die Seiten rendert */
.pdf-modal__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  opacity: 1;
  transition: opacity 220ms ease-out;
  pointer-events: none;
  z-index: 1;
}
.pdf-modal__loading[data-hidden="true"] {
  opacity: 0;
}
.pdf-modal__spinner {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid color-mix(in oklab, var(--brand-primary, #13447a) 18%, transparent);
  border-top-color: var(--brand-primary, #13447a);
  animation: pdf-modal-spin 0.9s linear infinite;
}
@keyframes pdf-modal-spin {
  to { transform: rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .pdf-modal__spinner {
    animation: none;
  }
}
/* Body-Scroll-Lock waehrend Modal offen ist (Backup zum nativen <dialog>-
   Verhalten, das in alteren Browsern schwankt). */
body.is-modal-open {
  overflow: hidden;
}
@media (prefers-reduced-motion: reduce) {
  .pdf-modal,
  .pdf-modal::backdrop {
    transition-duration: 0ms;
    transform: none !important;
  }
}

/* Disclaimer - schmal und dezent, gleiche Hintergrundfarbe wie Compliance
   damit beide Blöcke optisch zu einem Bereich verschmelzen */
.footer-disclaimer {
  padding: var(--space-4) 0;
  background: color-mix(in oklab, var(--brand-primary) 5%, var(--surface-base));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.footer-disclaimer__text {
  margin: 0 auto;
  font-size: 0.85rem;
  line-height: var(--leading-normal);
  color: var(--text-muted);
  text-align: center;
  max-width: 1080px;
}
.footer-disclaimer__text strong {
  color: var(--text-secondary);
  font-weight: 600;
}


/* ============================================================================
   20) HubSpot Meetings - Skeleton-Loader (Terminvereinbarung-Seite)
   ----------------------------------------------------------------------------
   Reserviert per min-height die Hoehe des Meeting-iframes, damit die
   Ansprechpartner-Sektion darunter nicht hochspringt, sobald der Kalender
   spaeter rein-injiziert wird. Skeleton zeigt eine kalenderaehnliche
   Platzhaltergrafik an (Monatsraster + Time-Slot-Spalte) und blendet aus,
   sobald das iframe geladen ist (via hubspot-meeting-loader.js).
   ============================================================================ */
.hs-meeting-shell {
  position: relative;
  width: 100%;
  contain: layout;
  min-height: 1100px; /* Mobile - Kalender stapelt vertikal */
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: min-height 480ms var(--ease-smooth);
}
@media (min-width: 768px) {
  .hs-meeting-shell { min-height: 720px; }
}
@media (min-width: 1200px) {
  .hs-meeting-shell { min-height: 680px; }
}

.hs-meeting-shell.is-ready {
  min-height: 0;
}

/* Kalender-aehnliche Skeleton-Grafik */
.hs-meeting-skeleton {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--space-4);
  padding: var(--space-6);
  pointer-events: none;
  background: color-mix(in oklab, var(--brand-primary) 4%, white);
  border: 1px solid color-mix(in oklab, var(--brand-primary) 10%, transparent);
  border-radius: var(--radius-lg);
  transition: opacity 320ms var(--ease-smooth);
}

.hs-meeting-skeleton__title {
  height: 28px;
  width: min(60%, 320px);
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--brand-primary) 14%, white);
  animation: hsSkeletonPulse 1600ms var(--ease-smooth) infinite;
}

.hs-meeting-skeleton__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) {
  .hs-meeting-skeleton__body {
    grid-template-columns: minmax(0, 2fr) minmax(160px, 1fr);
    gap: var(--space-8);
  }
}

.hs-meeting-skeleton__cal {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: var(--space-3);
}

.hs-meeting-skeleton__nav {
  height: 36px;
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--brand-primary) 10%, white);
  animation: hsSkeletonPulse 1600ms var(--ease-smooth) infinite;
}

.hs-meeting-skeleton__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--space-2);
}
.hs-meeting-skeleton__weekdays > span {
  height: 18px;
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--brand-primary) 8%, white);
}

.hs-meeting-skeleton__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-auto-rows: minmax(40px, 1fr);
  gap: var(--space-2);
}
.hs-meeting-skeleton__days > span {
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--brand-primary) 8%, white);
  animation: hsSkeletonPulse 1600ms var(--ease-smooth) infinite;
}
.hs-meeting-skeleton__days > span:nth-child(7n+1) { animation-delay: 0ms; }
.hs-meeting-skeleton__days > span:nth-child(7n+2) { animation-delay: 80ms; }
.hs-meeting-skeleton__days > span:nth-child(7n+3) { animation-delay: 160ms; }
.hs-meeting-skeleton__days > span:nth-child(7n+4) { animation-delay: 240ms; }
.hs-meeting-skeleton__days > span:nth-child(7n+5) { animation-delay: 320ms; }
.hs-meeting-skeleton__days > span:nth-child(7n+6) { animation-delay: 400ms; }
.hs-meeting-skeleton__days > span:nth-child(7n+7) { animation-delay: 480ms; }

.hs-meeting-skeleton__times {
  display: grid;
  grid-template-rows: repeat(6, minmax(40px, 1fr));
  gap: var(--space-2);
}
.hs-meeting-skeleton__times > span {
  border-radius: var(--radius-md);
  background: color-mix(in oklab, var(--brand-primary) 12%, white);
  animation: hsSkeletonPulse 1600ms var(--ease-smooth) infinite;
}
.hs-meeting-skeleton__times > span:nth-child(2) { animation-delay: 120ms; }
.hs-meeting-skeleton__times > span:nth-child(3) { animation-delay: 240ms; }
.hs-meeting-skeleton__times > span:nth-child(4) { animation-delay: 360ms; }
.hs-meeting-skeleton__times > span:nth-child(5) { animation-delay: 480ms; }
.hs-meeting-skeleton__times > span:nth-child(6) { animation-delay: 600ms; }

/* Cross-Fade vom Skeleton zum geladenen iframe */
.hs-meeting-shell .meetings-iframe-container {
  position: relative;
  z-index: 2;
  opacity: 0;
  transition: opacity 400ms var(--ease-smooth) 80ms;
}
.hs-meeting-shell.is-ready .meetings-iframe-container {
  opacity: 1;
}
.hs-meeting-shell.is-ready .hs-meeting-skeleton {
  opacity: 0;
  pointer-events: none;
}

/* Reduced Motion: keine Pulsation */
@media (prefers-reduced-motion: reduce) {
  .hs-meeting-skeleton__title,
  .hs-meeting-skeleton__nav,
  .hs-meeting-skeleton__days > span,
  .hs-meeting-skeleton__times > span {
    animation: none !important;
    opacity: 0.7;
  }
}


/* ============================================================================
   21) Service-Pakete Tabs (page_Dienstleistungen) - Klick-Affordance
   ----------------------------------------------------------------------------
   User-Feedback: Tabs werden oft uebersehen, Nutzer wissen nicht dass sie
   klicken koennen. Wir geben den nav-tabs eine deutliche Button-Optik mit
   Border, Hover-Lift, Cursor-Hint und einem deutlichen Active-State in
   Brand-Blau.
   ============================================================================ */
#service-pakete .tabs-custom .nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  padding: 0;
  list-style: none;
  border-bottom: none;
  justify-content: flex-start;
  text-align: left;
}

#service-pakete .tabs-custom .nav-item {
  flex: 0 1 auto;
  margin: 0;
}

#service-pakete .tabs-custom .nav-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-8);
  border-radius: var(--radius-pill);
  border: 2px solid color-mix(in oklab, var(--brand-primary) 20%, transparent);
  background: white;
  color: var(--brand-primary);
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-spring),
              background var(--duration-fast),
              color var(--duration-fast),
              border-color var(--duration-fast),
              box-shadow var(--duration-base);
  box-shadow: var(--shadow-soft);
}

/* Subtiler "Klick-Hinweis" als Pfeil-Icon nach dem Text - optisch klar als CTA */
#service-pakete .tabs-custom .nav-link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  margin-left: var(--space-1);
  opacity: 0.6;
  transition: transform var(--duration-fast) var(--ease-spring), opacity var(--duration-fast);
}

#service-pakete .tabs-custom .nav-link:hover,
#service-pakete .tabs-custom .nav-link:focus-visible {
  background: var(--brand-primary);
  border-color: var(--brand-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow:
    0 6px 18px color-mix(in oklab, var(--brand-primary) 35%, transparent),
    inset 0 0 0 1px color-mix(in oklab, white 22%, transparent);
  outline: none;
}
#service-pakete .tabs-custom .nav-link:hover::after,
#service-pakete .tabs-custom .nav-link:focus-visible::after {
  opacity: 1;
  transform: rotate(-45deg) translate(2px, 2px);
}

/* Eckiges ::before-Rechteck aus style.css:6587 (alte tabs-corporate-Optik)
   ueberlagert die Pille hinter dem aktiven Button. Hier abschalten, sonst
   sieht der aktive Tab eckig aus statt rund. */
#service-pakete .tabs-custom .nav-link::before,
#service-pakete .tabs-custom .nav-link.active::before,
#service-pakete .tabs-custom .nav-link:hover::before {
  display: none !important;
  content: none !important;
}

#service-pakete .tabs-custom .nav-link.active {
  background: var(--brand-primary);
  color: white;
  border-color: var(--brand-primary);
  box-shadow:
    0 6px 18px color-mix(in oklab, var(--brand-primary) 35%, transparent),
    inset 0 0 0 1px color-mix(in oklab, white 22%, transparent);
  animation: service-tab-breathe 3.6s ease-in-out infinite;
}

/* Sanfter Pulsation als Klick-Affordance — aktiver Button atmet leicht.
   Scale 1 -> 1.025 plus mitwachsender Halo-Schatten. Kein Sprung am Ende
   (symmetrische Sinuskurve), pausiert bei Hover/Focus, deaktiviert bei
   prefers-reduced-motion. */
@keyframes service-tab-breathe {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 6px 18px color-mix(in oklab, var(--brand-primary) 35%, transparent),
      inset 0 0 0 1px color-mix(in oklab, white 22%, transparent);
  }
  50% {
    transform: scale(1.025);
    box-shadow:
      0 10px 26px color-mix(in oklab, var(--brand-primary) 45%, transparent),
      inset 0 0 0 1px color-mix(in oklab, white 30%, transparent);
  }
}
#service-pakete .tabs-custom .nav-link.active:hover,
#service-pakete .tabs-custom .nav-link.active:focus-visible {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  #service-pakete .tabs-custom .nav-link.active {
    animation: none;
  }
}
/* Active: Pfeil zeigt "ausgewaehlt" - dreht zu Haken-aehnlicher Form */
#service-pakete .tabs-custom .nav-link.active::after {
  opacity: 1;
  transform: rotate(45deg) translate(0, -1px);
}

#service-pakete .tabs-custom .nav-link.active:hover {
  background: var(--brand-primary);
  color: white;
}

@media (max-width: 575.98px) {
  #service-pakete .tabs-custom .nav-link {
    padding: var(--space-3) var(--space-5);
    font-size: 0.9rem;
  }
  #service-pakete .tabs-custom .nav-tabs {
    flex-direction: column;
  }
  #service-pakete .tabs-custom .nav-item {
    width: 100%;
  }
  #service-pakete .tabs-custom .nav-link {
    width: 100%;
    justify-content: center;
  }
}


/* ============================================================================
   20) ProvenExpert-Sektion — Live-Aggregate-Header + Brand-Slider mit
       kuratierten Kunden-Stimmen auf der Unternehmen-Seite.
   ----------------------------------------------------------------------------
   Loest den alten statischen Bootstrap-Carousel `#testimonial4` ab. Live-Score
   und Anzahl kommen aus der ProvenExpert-API (siehe inc_provenexpert_rating.php),
   die einzelnen Stimmen werden in `content/data/testimonials.php` gepflegt.
   Brand-Amber-Sterne (#d4a017) werden inline als SVG gerendert, damit wir die
   Farbe per CSS-Variable steuern und keine `stern.png`-Bitmaps mehr brauchen.
   ============================================================================ */
.provenexpert-section {
  --pe-star-color: var(--brand-amber);
  --pe-star-shadow: 0 1px 0 rgba(133, 100, 14, 0.18);
}

.provenexpert-section .pe-eyebrow {
  margin: 0 0 var(--space-3, 12px);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-primary, #13447a);
}

/* SVG-Stern - eine einzige Klasse, beide Stellen nutzen sie:
   .pe-aggregate__stars (gross, im Header) und .pe-quote__stars (kleiner, im Slider) */
.provenexpert-section .pe-star {
  display: inline-block;
  width: 22px;
  height: 22px;
  fill: var(--pe-star-color);
  filter: drop-shadow(var(--pe-star-shadow));
  vertical-align: middle;
}

/* ----- Aggregate-Header mit Live-Daten ----- */
.pe-aggregate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-6, 24px);
  padding: var(--space-6, 24px) var(--space-8, 32px);
  margin: 0 0 var(--space-8, 32px);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
  border: 1px solid var(--border-subtle, #e6ebf1);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
}

.pe-aggregate__stars {
  display: inline-flex;
  gap: 2px;
}
.pe-aggregate__stars .pe-star {
  width: 32px;
  height: 32px;
}

.pe-aggregate__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  font-size: 1rem;
  color: var(--text-secondary, #4b5b6b);
}
.pe-aggregate__score {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand-primary, #13447a);
  letter-spacing: -0.01em;
}
.pe-aggregate__score-of {
  font-size: 1rem;
  color: #6b7280;
  font-weight: 500;
}
.pe-aggregate__count {
  margin-top: 4px;
  font-size: 0.92rem;
  color: #6b7280;
}

.pe-aggregate__meta {
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  font-size: 0.82rem;
  color: var(--text-muted, #7a8694);
}
.pe-aggregate__updated::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-amber, #d4a017);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-amber) 20%, transparent);
  margin-right: 8px;
  vertical-align: middle;
  animation: pe-pulse 2.4s ease-in-out infinite;
}
@keyframes pe-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.pe-aggregate__source {
  color: var(--brand-primary, #13447a);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklab, var(--brand-primary) 35%, transparent);
  text-underline-offset: 3px;
}
.pe-aggregate__source:hover {
  text-decoration-color: var(--brand-primary, #13447a);
}

@media (max-width: 767.98px) {
  .pe-aggregate {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-5, 20px);
    gap: var(--space-4, 16px);
  }
  .pe-aggregate__meta {
    margin-left: 0;
    align-items: flex-start;
  }
  .pe-aggregate__stars .pe-star {
    width: 26px;
    height: 26px;
  }
}

/* ----- Source-Chip ueber dem Slider (Live vs. Auswahl) ----- */
.pe-source-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 var(--space-4, 16px);
  padding: 6px 12px 6px 10px;
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border-subtle, #e6ebf1);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary, #4b5b6b);
  letter-spacing: 0.005em;
}
.pe-source-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pe-source-chip--live .pe-source-chip__dot {
  background: #16a34a; /* gruen, "live" */
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.18);
  animation: pe-pulse 2.4s ease-in-out infinite;
}
.pe-source-chip--curated .pe-source-chip__dot {
  background: var(--brand-amber, #d4a017);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--brand-amber) 20%, transparent);
}

/* ----- Slider-Karten (Bootstrap-Carousel-basiert, neu gestylt) -----
   Karten-Hoehe ist DYNAMISCH (Inhalt bestimmt). Damit der CTA-Button und die
   Indicator-Striche unten beim Slide-Wechsel NICHT springen, setzt
   js/script.js zur Laufzeit die min-height des Carousel-Inner-Containers auf
   die Hoehe des hoechsten Slides — siehe Block "ProvenExpert-Slider Heights"
   in script.js. CSS gibt nur einen sehr kleinen Minimal-Fallback fuer den
   Fall, dass das JS nicht laeuft. */
.pe-slider {
  position: relative;
}
.pe-slider .carousel-inner {
  overflow: hidden;
}
.pe-slider .carousel-item {
  transition: transform 0.7s ease, opacity 0.5s ease;
}
.pe-slider .carousel-item .row {
  align-items: stretch; /* gepaarte Quotes nehmen gleiche Hoehe an */
}
.pe-slider .carousel-item .row > [class*="col-"] {
  display: flex;
}
.pe-quote {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: var(--space-6, 24px) var(--space-7, 28px);
  background: var(--surface-elevated, #fff);
  border: 1px solid var(--border-subtle, #e6ebf1);
  border-left: 3px solid var(--brand-amber, #d4a017);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  position: relative;
  cursor: default;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-left-width 0.3s ease;
}
.pe-quote:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  border-left-width: 5px;
}
@media (prefers-reduced-motion: reduce) {
  .pe-quote,
  .pe-quote:hover {
    transition: none;
    transform: none;
  }
}
.pe-quote__stars {
  display: inline-flex;
  gap: 1px;
  margin-bottom: var(--space-3, 12px);
}
.pe-quote__stars .pe-star {
  width: 16px;
  height: 16px;
}
.pe-quote__text {
  margin: 0 0 var(--space-4, 16px);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-primary, #1a232e);
  quotes: "„" """ "‚" "'";
  font-style: normal;
}
.pe-quote__text::before { content: open-quote; }
.pe-quote__text::after  { content: close-quote; }

.pe-quote__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3, 12px);
  margin-top: auto;
  padding-top: var(--space-3, 12px);
  border-top: 1px solid var(--border-subtle, #e6ebf1);
}
.pe-quote__person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.pe-quote__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand-amber, #d4a017);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0;
}
.pe-quote__person-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}
.pe-quote__name {
  font-weight: 700;
  color: var(--text-primary, #1a232e);
}
.pe-quote__role {
  font-size: 0.88rem;
  color: var(--text-secondary, #4b5b6b);
}
.pe-quote__date {
  margin-left: auto;
  font-size: 0.8rem;
  color: var(--text-muted, #7a8694);
}
@media (max-width: 575.98px) {
  .pe-quote__date {
    margin-left: 48px; /* unter Name ausgerichtet (Avatar 36 + Gap 12) */
    flex-basis: 100%;
  }
}

/* Indicators - Bootstrap-Standard ueberschrieben fuer Brand-Look */
.pe-slider__indicators {
  position: static;
  margin: var(--space-5, 20px) 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
}
.pe-slider__indicators li {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--brand-primary) 18%, transparent);
  border: none;
  text-indent: 0;
  cursor: pointer;
  transition: background 220ms ease, width 220ms ease;
}
.pe-slider__indicators li.active {
  background: var(--brand-amber, #d4a017);
  width: 44px;
}

/* ----- CTA-Reihe ----- */
.pe-cta-row {
  margin-top: var(--space-8, 32px);
  text-align: center;
}
.pe-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-primary, #13447a);
  color: #fff !important;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.005em;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 12px 24px -16px rgba(19, 68, 122, 0.45);
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
}
.pe-cta::after {
  content: "→";
  font-size: 1.1em;
  transition: transform 220ms ease;
}
.pe-cta:hover {
  transform: translateY(-1px);
  background: var(--brand-primary-dark, #0e2f56);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 16px 32px -16px rgba(19, 68, 122, 0.55);
}
.pe-cta:hover::after {
  transform: translateX(3px);
}
.pe-cta-note {
  margin: var(--space-3, 12px) auto 0;
  max-width: 720px;
  font-size: 0.85rem;
  color: var(--text-muted, #7a8694);
  line-height: 1.5;
}

/* ----- Reveal-Animation, gestaffelt analog .footer-compliance ----- */
.provenexpert-section .pe-eyebrow,
.provenexpert-section h2,
.provenexpert-section .pe-aggregate,
.provenexpert-section .pe-slider,
.provenexpert-section .pe-cta-row {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.provenexpert-section.is-revealed .pe-eyebrow,
.provenexpert-section.is-revealed h2 {
  opacity: 1;
  transform: none;
  transition-delay: 0ms;
}
.provenexpert-section.is-revealed .pe-aggregate {
  opacity: 1;
  transform: none;
  transition-delay: 150ms;
}
.provenexpert-section.is-revealed .pe-slider {
  opacity: 1;
  transform: none;
  transition-delay: 280ms;
}
.provenexpert-section.is-revealed .pe-cta-row {
  opacity: 1;
  transform: none;
  transition-delay: 420ms;
}
@media (prefers-reduced-motion: reduce) {
  .provenexpert-section .pe-eyebrow,
  .provenexpert-section h2,
  .provenexpert-section .pe-aggregate,
  .provenexpert-section .pe-slider,
  .provenexpert-section .pe-cta-row {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .pe-aggregate__updated::before {
    animation: none;
  }
}

/* ============================================================================
   21) "Unsere Kunden" — Bento-Grid mit asymmetrischer Logo-Verteilung +
       Stagger-Animation beim Scroll-In.
   ----------------------------------------------------------------------------
   Pflege:
     - Neuer Kunde   = neues <li class="logo-cell"> in page_Unternehmen.php.
     - Modifier      = .span-2-cols (2x1), .span-2-rows (1x2), .span-large (2x2).
     - Modifier wirken NUR auf Desktop (>=1024px); Tablet/Mobile fallen auf 1x1.
     - .logo-cell startet unsichtbar; js/script.js (Block "Kunden-Grid Stagger")
       hat den IntersectionObserver, der nach Eintritt ins Viewport gestaffelt
       .is-visible setzt (80ms pro Logo).
   ============================================================================ */
.kunden-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* Mobile */
  grid-auto-rows: 100px;                   /* Mobile-Cell-Hoehe */
  grid-auto-flow: dense;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 768px) {
  .kunden-grid {
    grid-template-columns: repeat(4, 1fr); /* Tablet */
    grid-auto-rows: 110px;
  }
}
@media (min-width: 1024px) {
  .kunden-grid {
    grid-template-columns: repeat(6, 1fr); /* Desktop */
    grid-auto-rows: 120px;
  }
}

/* Bento-Spans nur Desktop. Mobile/Tablet -> alle Boxen 1x1, Grid bleibt sauber. */
@media (min-width: 1024px) {
  .logo-cell.span-2-cols { grid-column: span 2; }
  .logo-cell.span-2-rows { grid-row:    span 2; }
  .logo-cell.span-large  { grid-column: span 2; grid-row: span 2; }
}

/* Cell-Container: Boxen-Optik + Stagger-Pre-State.
   Reihenfolge der :hover-Regel ist wichtig: sie wird nach .is-visible
   definiert UND als .is-visible:hover spezifiziert, damit (a) Hover erst nach
   Sichtbar-Werden greift und (b) :hover gegen .is-visible-Specificity gewinnt. */
.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #f8fafc;
  border-radius: 16px;

  /* Stagger-Pre-State (von JS via .is-visible aufgehoben) */
  opacity: 0;
  transform: translateY(15px);
  transition:
    opacity 400ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 400ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease;
  will-change: opacity, transform;
}
.logo-cell.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Groessere Innenabstaende fuer breite/grosse Boxen (Desktop). */
@media (min-width: 1024px) {
  .logo-cell.span-2-cols,
  .logo-cell.span-2-rows,
  .logo-cell.span-large {
    padding: 32px;
  }
}

.logo-cell__img {
  display: block;
  max-width: 100%;
  max-height: 70px;     /* 1x1 default */
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.55;
  transition: filter 0.3s ease, opacity 0.3s ease;
  cursor: default;
}
@media (min-width: 1024px) {
  .logo-cell.span-2-cols .logo-cell__img,
  .logo-cell.span-2-rows .logo-cell__img { max-height: 90px; }
  .logo-cell.span-large  .logo-cell__img { max-height: 110px; }
}

/* Mobile: Logos kompakter, Padding kleiner */
@media (max-width: 767.98px) {
  .logo-cell { padding: 16px; }
  .logo-cell__img { max-height: 56px; }
}

/* Hover (nur Maus / nur sichtbare Cells) */
@media (hover: hover) and (pointer: fine) {
  .logo-cell.is-visible:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
  }
  .logo-cell.is-visible:hover .logo-cell__img {
    filter: grayscale(0%);
    opacity: 1;
  }
}

/* Reduced-Motion: Stagger ueberspringen, Hover-Bewegung deaktivieren.
   JS setzt zusaetzlich .is-visible sofort, damit hover-Regeln greifen. */
@media (prefers-reduced-motion: reduce) {
  .logo-cell {
    opacity: 1;
    transform: none;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    will-change: auto;
  }
  .logo-cell.is-visible:hover {
    transform: none;
  }
}

/* ============================================================================
   22) Manrope-Feintuning — Headlines etwas straffer ziehen.
   ----------------------------------------------------------------------------
   Manrope wirkt von Haus aus etwas weiter als Trebuchet MS, daher kommt ein
   leicht negatives Letter-Spacing auf alle h1-h4. Der Effekt ist dezent
   (-0.01em); Body und sonstiger Fliesstext bleiben unveraendert.
   ============================================================================ */
h1, h2, h3, h4 {
  letter-spacing: -0.01em;
}

/* ============================================================================
   23) Icon-System — Lucide-Inline-SVGs (ersetzt FontAwesome + Material Design
       Icons). .icon ist die einheitliche Helper-Klasse fuer alle Inline-SVGs.
   ----------------------------------------------------------------------------
   Verwendung in HTML:
     <svg class="icon" viewBox="0 0 24 24" fill="none" stroke="currentColor"
          stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
          aria-hidden="true">…lucide path…</svg>
   - width/height = 1em laesst Icons mit der umgebenden Schriftgroesse skalieren
   - stroke="currentColor" laesst Icons die Textfarbe erben (auch bei :hover)
   - flex-shrink: 0 verhindert, dass Icons in Flex-Containern zusammengedrueckt
     werden
   ============================================================================ */
/* Hinweis: das Theme nutzt `.icon` schon als Wrapper-Klasse (z.B. Footer-
   Anchor `<a class="icon icon-sm">`). Wir scopen unsere Helper-Regel daher
   auf `svg.icon`, sodass nur die Inline-SVGs angesprochen werden. font-size
   wird explizit auf inherit gesetzt, weil das Theme-`.icon { font-size:16px }`
   sonst 1em-Skalierung der Wrapper-Schriftgroesse blockiert. */
svg.icon {
  width: 1em;
  height: 1em;
  font-size: inherit;
  vertical-align: -0.125em;
  stroke-width: 2;
  flex-shrink: 0;
}

/* Fix-Groessen-Varianten fuer Komponenten, die nicht ueber font-size skalieren
   (Footer-Social-Icons, Back-to-Top, Submenu-Toggle). */
svg.icon.icon--md { width: 22px; height: 22px; }
svg.icon.icon--lg { width: 28px; height: 28px; }

/* Brand-Icons (Social Media): Lucide-Brand-SVGs werden mit fill statt stroke
   gerendert, damit das Icon als Wortmarke liest. */
svg.icon-social {
  fill: currentColor;
  stroke: none;
}

/* ============================================================================
   24) Prozess-Infografik (Code-Animation auf der Startseite, ersetzt das
       frueher hier laufende wp_infografik.mp4 / .webm). Markup aus
       page_Startseite.php, Animation in js/prozess-infografik.js.
   ----------------------------------------------------------------------------
   Layout-Konzept:
     - Stage 620 px hoch, Track scrollt horizontal mit den Schritten
     - Schiene (.prozess-rail) sitzt auf 50 % der Stage-Hoehe
     - Schritte alternieren: ungerade (1,3,5,...) UNTER der Schiene mit Pointer
       am Header oben; gerade (2,4,6,...) UEBER der Schiene mit Pointer am
       Body unten
     - Gradient-Bar mit Nummern 01-15 sitzt am unteren Track-Rand und scrollt
       zusammen mit den Dots (Bar gehoert zum Track, nicht zur Stage)
     - .prozess-conn ist die gestrichelte Verbindung Box <-> Dot
   Phasen:
     - Phase 1 (~30 s): Schritte erscheinen einzeln, Track scrollt ab Schritt 7
     - Phase 2 (~6 s):  Stage-inner skaliert via transform: scale auf 0.4-1.0,
       sodass alle 15 Schritte gleichzeitig zu sehen sind
   Mobile (<= 767 px): Vertikales Layout, alle Schritte untereinander, Bar aus.
   ============================================================================ */
.prozess-infografik {
  position: relative;
  width: 100%;
  background: #ffffff;
  overflow: hidden;
  /* Reveal-Pre-State: Sektion ist initial verblasst und leicht abgesenkt;
     wird beim Scroll-In via .is-revealed eingeblendet. Gleicher Stil wie
     die anderen Reveal-Sektionen (.provenexpert-section etc.). */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.prozess-infografik.is-revealed {
  opacity: 1;
  transform: none;
}

/* Stage = sichtbarer Viewport */
.prozess-stage {
  position: relative;
  width: 100%;
  height: 620px;
  overflow: hidden;
}
.prozess-stage-inner {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: 50% 55%;
  will-change: transform;
  transition: transform 1100ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Track = horizontale Bahn aller Schritte (laenger als Stage; scrollt) */
.prozess-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  will-change: transform;
  transition: transform 1500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Schiene mit Pfeil-Spitze am linken Anfang */
.prozess-rail {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  background: #e6ebf1;
  border-radius: 2px;
  transform: translateY(-50%);
  z-index: 1;
}
.prozess-rail::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-right: 8px solid #c7d0db;
  transform: translateY(-50%);
}

/* Gradient-Bar mit Nummern 01-15, scrollt mit dem Track */
.prozess-timeline-bar {
  position: absolute;
  left: 0;
  bottom: 24px;
  height: 44px;
  background: linear-gradient(90deg,
              var(--brand-primary-dark, #0e2f56) 0%,
              var(--brand-primary, #13447a) 45%,
              #068ed6 100%);
  box-shadow: 0 4px 14px rgba(14, 47, 86, 0.20);
  z-index: 1;
  display: flex;
  align-items: center;
}
.prozess-tnum {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.05em;
}

/* Dots auf der Schiene */
.prozess-dot {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #1e4178;
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1),
              opacity 500ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}
.prozess-dot.active { transform: translate(-50%, -50%) scale(1); opacity: 1; }

/* Step-Boxen */
.prozess-step {
  position: absolute;
  width: 220px;
  background: #ffffff;
  border: 1px solid #e6ebf1;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
  overflow: visible;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 700ms cubic-bezier(0.4, 0, 0.2, 1),
              transform 700ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 4;
}
.prozess-step.visible { opacity: 1; transform: translateY(0); }

.prozess-step-header {
  background: var(--brand-primary, #13447a);
  color: #ffffff;
  padding: 9px 12px;
  border-radius: 7px 7px 0 0;
  position: relative;
}
.prozess-step-title {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #ffffff;
  letter-spacing: 0;
}

/* Pointer-Tail: ungerade Schritte (.below) Tail OBEN am Header (zeigt auf Schiene),
   gerade Schritte (.above) Tail UNTEN am Body. */
.prozess-step.below .prozess-step-header::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 22px;
  width: 14px;
  height: 14px;
  background: var(--brand-primary, #13447a);
  transform: rotate(45deg);
  z-index: -1;
}
.prozess-step.above::after {
  content: "";
  position: absolute;
  bottom: -7px;
  left: 22px;
  width: 14px;
  height: 14px;
  background: #ffffff;
  border-right: 1px solid #e6ebf1;
  border-bottom: 1px solid #e6ebf1;
  transform: rotate(45deg);
}

.prozess-step-body {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  padding: 10px 12px 12px;
  align-items: start;
}
.prozess-step-icon {
  width: 28px;
  height: 28px;
  color: var(--brand-primary, #13447a);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.prozess-step-icon svg { width: 22px; height: 22px; }
.prozess-step-desc {
  font-size: 11px;
  line-height: 1.45;
  color: #4b5b6b;
  margin: 0;
  text-align: left;
  hyphens: auto;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Gestrichelte Verbindungslinie Box <-> Dot */
.prozess-conn {
  position: absolute;
  width: 1.5px;
  background-image: linear-gradient(to bottom, #c7d0db 50%, transparent 0%);
  background-size: 1.5px 6px;
  background-repeat: repeat-y;
  transform: scaleY(0);
  transition: transform 600ms cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
  pointer-events: none;
}
.prozess-conn.below { transform-origin: top center; }
.prozess-conn.above { transform-origin: bottom center; }
.prozess-conn.active { transform: scaleY(1); }

/* Reduced Motion: alle Transitions aus, Reveal-Pre-State sofort aufloesen */
@media (prefers-reduced-motion: reduce) {
  .prozess-infografik {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .prozess-stage-inner,
  .prozess-track,
  .prozess-step,
  .prozess-dot,
  .prozess-conn {
    transition: none !important;
  }
}

/* Smartphone (<=575): Infografik komplett ausblenden — auf kleinen Screens
   nimmt sie zu viel Vertikalplatz und der Mehrwert vs. dem Kompromiss steht
   in keinem Verhaeltnis. iPad-Portrait (>=576) und groesser bleiben sichtbar. */
@media (max-width: 575.98px) {
  .prozess-infografik {
    display: none !important;
  }
}

/* Tablet (576-767): vertikales Layout, alle 15 Schritte untereinander mit
   kleinem Stagger beim Scroll-In. Bar wird ausgeblendet, Schiene wird vertikal. */
@media (max-width: 767px) {
  .prozess-stage {
    height: auto;
    min-height: 0;
  }
  .prozess-stage-inner {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    height: auto;
    padding: 8px 8px 8px 48px;
  }
  .prozess-track {
    position: relative;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }
  /* JS setzt inline width: <trackWidth>px (Desktop ~1108) auf rail/track/bar.
     Auf Mobile mit !important auf width zwingen, sonst bleibt die rail
     horizontal und sprengt den Viewport. */
  .prozess-rail {
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 22px;
    width: 4px !important;
    height: auto;
    transform: none !important;
    background: linear-gradient(180deg,
                var(--brand-primary-dark, #0e2f56) 0%,
                var(--brand-primary, #13447a) 50%,
                #068ed6 100%);
  }
  .prozess-rail::before { display: none; }
  .prozess-timeline-bar { display: none; }
  .prozess-dot {
    left: 22px !important;
    top: auto !important;
    transform: translate(-50%, -50%) scale(1) !important;
    opacity: 1 !important;
  }
  .prozess-step {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100%;
    max-width: 100%;
    margin: 0 0 12px 0;
    transform: translateY(20px);
  }
  .prozess-step.visible { transform: translateY(0); }
  .prozess-step.below::after,
  .prozess-step.above::after,
  .prozess-step.below .prozess-step-header::after { display: none; }
  .prozess-conn { display: none; }
}

/* ============================================================================
   Block 22: Navbar — Layout-Shift-Prävention + Home-Stagger
   ----------------------------------------------------------------------------
   (1) Das Sprach-Dropdown-`<li>` hat im Server-HTML nur die 30px Flagge.
       RDNavbar haengt nach Init `<span class="rd-navbar-submenu-toggle">` mit
       dem Lucide-Chevron-SVG dran (~16px breit). Das verursachte einen
       sichtbaren horizontalen Sprung der Navi-Leiste beim ersten Render.
       Fix: `min-width: 46px` auf dem `<li>` reserviert direkt im Server-Render
       die finale Breite, der Chevron schiebt sich dann lautlos in den schon
       reservierten Raum.
   (2) Auf der Startseite (PHP setzt `.home-stagger` auf `.rd-navbar`) faden
       die 6 Menue-Items von links nach rechts gestaffelt ein (80ms Versatz,
       350ms ease-out). Auf Subpages bleibt die Navbar stabil.
   ============================================================================ */
.rd-navbar-static .rd-navbar-nav > .rd-navbar-submenu {
  min-width: 46px;
}

.rd-navbar.home-stagger .rd-navbar-nav > .rd-nav-item {
  opacity: 0;
  transform: translateY(-6px);
  animation: navStaggerIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.rd-navbar.home-stagger .rd-navbar-nav > .rd-nav-item:nth-child(1) { animation-delay: 120ms; }
.rd-navbar.home-stagger .rd-navbar-nav > .rd-nav-item:nth-child(2) { animation-delay: 200ms; }
.rd-navbar.home-stagger .rd-navbar-nav > .rd-nav-item:nth-child(3) { animation-delay: 280ms; }
.rd-navbar.home-stagger .rd-navbar-nav > .rd-nav-item:nth-child(4) { animation-delay: 360ms; }
.rd-navbar.home-stagger .rd-navbar-nav > .rd-nav-item:nth-child(5) { animation-delay: 440ms; }
.rd-navbar.home-stagger .rd-navbar-nav > .rd-nav-item:nth-child(6) { animation-delay: 520ms; }

@keyframes navStaggerIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .rd-navbar.home-stagger .rd-navbar-nav > .rd-nav-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================================
   Block 23: Hero-Video-Trigger + Video-Modal (Erklärvideo, nur DE-Site)
   ----------------------------------------------------------------------------
   Sekundärer Trigger unter den Hero-CTAs öffnet ein Modal mit youtube-nocookie-
   Embed. Das iframe wird erst beim Klick injiziert (siehe js/video-modal.js),
   sodass vor User-Interaktion keine YouTube-Cookies geladen werden.
   ============================================================================ */

/* Wrapper-Row matcht die Breite der hero-cta-row (580px) und zentriert den
   Trigger horizontal. Eigene Zeile unter den beiden CTAs, sodass der Trigger
   nicht linksbuendig am Rand klebt. Reveal-Animation faded den Wrapper mit
   ein - mit hoeherem Delay (700ms) als die hero-cta-row (550ms), sodass der
   Stagger-Reveal weiterlaeuft (Eyebrow -> Headline -> Subline -> CTAs -> Trigger). */
.hero-video-trigger-row {
  max-width: 580px;
  margin-top: 18px;
  text-align: center;
  animation: hero-fade-up var(--duration-slow, 0.7s) var(--ease-smooth, cubic-bezier(0.16, 1, 0.3, 1)) 700ms both;
}

.hero-video-trigger {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.hero-video-trigger:hover,
.hero-video-trigger:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  outline: none;
}
.hero-video-trigger:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-amber, #d4a017);
}
.hero-video-trigger:active {
  transform: translateY(0);
}

.hero-video-trigger__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero-video-trigger__icon svg {
  display: block;
}

.hero-video-trigger__text {
  display: inline-flex;
  flex-direction: column;
  gap: 1px;
}
.hero-video-trigger__lead {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-amber, #d4a017);
}
.hero-video-trigger__main {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* ----------------------------------------------------------------------------
   Video-Modal — verwendet das native <dialog>-Element.
   ---------------------------------------------------------------------------- */
.video-modal {
  width: min(960px, 92vw);
  max-width: 960px;
  border: 0;
  padding: 0;
  background: transparent;
  color: #fff;
  overflow: visible;
}
.video-modal::backdrop {
  background: rgba(7, 26, 56, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.video-modal__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1.5px rgba(255, 255, 255, 0.18) inset;
}
.video-modal__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.video-modal__close {
  position: absolute;
  top: -52px;
  right: -4px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.video-modal__close:hover,
.video-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  outline: none;
}
.video-modal__close:focus-visible {
  box-shadow: 0 0 0 2px var(--brand-amber, #d4a017);
}

@media (max-width: 575px) {
  .video-modal {
    width: 94vw;
  }
  .video-modal__close {
    top: -48px;
    right: 0;
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .hero-video-trigger-row {
    margin-top: 14px;
  }
}

/* Body-Lock waehrend Modal offen ist (verhindert Background-Scroll) */
body.video-modal-open {
  overflow: hidden;
}

/* ============================================================================
   24b) Mobile horizontaler Overflow-Schutz
   ----------------------------------------------------------------------------
   Theme-Parallax-Container mit absolut positionierten 1500+px Background-Images
   loesen auf Mobile horizontalen Page-Scroll aus, weil deren overflow:hidden
   nicht ueberall greift. Globaler overflow-x:hidden auf html/body verhindert
   das ohne andere Layouts zu brechen — vertikales Scroll bleibt unberuehrt.
   ============================================================================ */
@media (max-width: 991px) {
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }
}

/* ============================================================================
   25) Mobile-Menue Lesbarkeit
   ----------------------------------------------------------------------------
   style.css 5029-5034 setzt color:#fff UND background:#fff auf dem
   .rd-navbar-nav-wrap im fixed-Mode (Mobile/Tablet) — weisse Schrift auf
   weissem Hintergrund, unlesbar. Hier override mit Brand-Blue-Drawer und
   weisser Schrift (analog zum Hero-Look). Gold-Akzent fuer aktiven/Hover.
   ============================================================================ */
.rd-navbar-fixed .rd-navbar-nav-wrap {
  background: #13447a !important;
  color: #ffffff !important;
  border: none !important;
}
.rd-navbar-fixed .rd-nav-item > a,
.rd-navbar-fixed .rd-navbar-nav > li > a,
.rd-navbar-fixed .rd-nav-link {
  color: #ffffff !important;
}
.rd-navbar-fixed .rd-nav-item.active > a,
.rd-navbar-fixed .rd-nav-item.active .rd-nav-link,
.rd-navbar-fixed .rd-nav-item:hover > a,
.rd-navbar-fixed .rd-nav-item:hover .rd-nav-link,
.rd-navbar-fixed .rd-nav-item:focus > a,
.rd-navbar-fixed .rd-nav-item.focus .rd-nav-link,
.rd-navbar-fixed .rd-nav-item.opened > a,
.rd-navbar-fixed .rd-nav-item.opened .rd-nav-link {
  background: #d4a017 !important;
  color: #13447a !important;
}
.rd-navbar-fixed .rd-navbar-submenu-toggle,
.rd-navbar-fixed .rd-navbar-submenu-toggle::after {
  color: #ffffff !important;
}
.rd-navbar-fixed .rd-navbar-dropdown,
.rd-navbar-fixed .rd-megamenu {
  background: rgba(0, 0, 0, 0.18);
}
.rd-navbar-fixed .rd-navbar-dropdown > li > a,
.rd-navbar-fixed .rd-megamenu-list > li > a {
  color: #ffffff !important;
}
