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

/* Anchor offset so in-page targets land below the 60px navbar.
   NOTE: scroll-behavior: smooth is NOT set globally — while the page is still
   loading (lazy media, layout settling) a global smooth-scroll can turn the
   browser's own scroll-anchoring corrections into a visible "jump to top".
   Smooth scrolling for anchor clicks is handled per-click in JS instead. */
html {
  scroll-padding-top: 76px;
}

/* ─── Design tokens (shadcn/zinc defaults) ───────────────── */
:root {
  --font:              'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --background:        #ffffff;
  --foreground:        #09090b;
  --muted:             #f4f4f5;
  --muted-foreground:  #71717a;
  --accent:            #f4f4f5;
  --accent-foreground: #18181b;
  --border:            #e4e4e7;
  --popover:           #ffffff;
  --radius:            6px;
}

/* ─── Base ───────────────────────────────────────────────── */
body {
  font-family: var(--font);
  background-color: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Keep the browser's scroll-anchoring active so content loading ABOVE the
     viewport doesn't jump the page (default is auto, but state it explicitly
     and make sure nothing disables it). */
  overflow-anchor: auto;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 60px;
  border-bottom: 1px solid var(--border);
  background: var(--background);
  /* sticky so it can slide back in on scroll-up without shifting layout */
  position: sticky;
  top: 0;
  z-index: 100;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 320ms ease;
}

/* hidden: slid up out of view (set by JS on scroll-down) */
.navbar.is-hidden {
  transform: translateY(-100%);
}

/* once scrolled past the top, add a subtle shadow when visible */
.navbar.is-stuck {
  box-shadow: 0 4px 20px -8px rgba(2, 13, 124, 0.18);
}

/* Logo anchored left, nav centered absolutely inside the bar */
.navbar-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;   /* centers the nav-menu */
  width: 100%;
  max-width: 1280px;
  padding: 0 24px;
}

/* ─── Logo, absolute left so nav stays truly centered ───── */
.navbar-logo {
  position: absolute;
  left: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
  z-index: 1;
}

/* ─── NavigationMenu, remains centered in the flex bar ──── */
.nav-menu {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─── NavigationMenuList, flex list-none items-center gap-1 */
.nav-list {
  display: flex;
  list-style: none;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ─── Nav item ───────────────────────────────────────────── */
.nav-item {
  position: relative;
}

/* ─── NavigationMenuTrigger ──────────────────────────────── */
.nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;               /* h-9 */
  padding: 0 16px;            /* px-4 */
  font-family: var(--font);
  font-size: 14px;            /* text-sm */
  font-weight: 500;
  color: var(--foreground);
  background: var(--background);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
  line-height: 1;
}

/* hover:bg-accent / data-[state=open]:bg-accent/50 */
.nav-trigger:hover,
.nav-item.is-open > .nav-trigger {
  background-color: color-mix(in srgb, var(--accent) 50%, transparent);
  color: var(--accent-foreground);
}

.nav-trigger--link {
  text-decoration: none;
}

/* ─── Chevron, transition duration-300 rotate-180 when open */
.chevron {
  position: relative;
  top: 1px;
  opacity: 0.6;
  transition: transform 300ms ease;
  flex-shrink: 0;
}

.nav-item.is-open .chevron {
  transform: rotate(180deg);
}

/* ═══════════════════════════════════════════════════════════
   Keyframe animations, matches Radix motion data attributes
   ════════════════════════════════════════════════════════ */

/* Enter from right  (data-[motion=from-end]:slide-in-from-right-52) */
@keyframes enter-from-right {
  from { opacity: 0; transform: translateX(13rem); }
  to   { opacity: 1; transform: translateX(0);     }
}

/* Enter from left   (data-[motion=from-start]:slide-in-from-left-52) */
@keyframes enter-from-left {
  from { opacity: 0; transform: translateX(-13rem); }
  to   { opacity: 1; transform: translateX(0);      }
}

/* Exit to left      (data-[motion=to-start]:slide-out-to-left-52) */
@keyframes exit-to-left {
  from { opacity: 1; transform: translateX(0);      }
  to   { opacity: 0; transform: translateX(-13rem); }
}

/* Exit to right     (data-[motion=to-end]:slide-out-to-right-52) */
@keyframes exit-to-right {
  from { opacity: 1; transform: translateX(0);     }
  to   { opacity: 0; transform: translateX(13rem); }
}

/* First open / last close, zoom-in-95/zoom-out-95 + fade */
@keyframes zoom-in {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1);    }
}

@keyframes zoom-out {
  from { opacity: 1; transform: scale(1);    }
  to   { opacity: 0; transform: scale(0.95); }
}

/* ─── NavigationMenuContent ──────────────────────────────── */
/* Default: hidden. Visibility toggled entirely by JS via .is-open / .is-exiting */
.nav-content {
  position: absolute;
  top: calc(100% + 6px);     /* mt-1.5 */
  left: 0;
  padding: 8px 10px 8px 8px; /* p-2 pr-2.5 */
  background: var(--popover);
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px 0 rgba(0,0,0,.1), 0 1px 2px -1px rgba(0,0,0,.1);
  overflow: hidden;
  z-index: 50;

  /* Hidden by default */
  visibility: hidden;
  pointer-events: none;
  animation: none;
}

/* Bridge, keeps hover alive while mouse moves to dropdown */
.nav-content::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* Visible state, JS adds .is-open on the nav-item */
.nav-item.is-open > .nav-content {
  visibility: visible;
  pointer-events: auto;
}

/* Exiting, JS adds .is-exiting directly on the content */
.nav-content.is-exiting {
  visibility: visible;
  pointer-events: none;
}

/* Duration class mirrors Radix's duration-200 */
.nav-content.anim-enter-right  { animation: enter-from-right 200ms ease forwards; }
.nav-content.anim-enter-left   { animation: enter-from-left  200ms ease forwards; }
.nav-content.anim-exit-left    { animation: exit-to-left     200ms ease forwards; }
.nav-content.anim-exit-right   { animation: exit-to-right    200ms ease forwards; }
.nav-content.anim-zoom-in      { animation: zoom-in          200ms ease forwards; }
.nav-content.anim-zoom-out     { animation: zoom-out         200ms ease forwards; }

/* ─── Grid layouts ───────────────────────────────────────── */

/* Home: grid gap-2 lg:w-[500px] lg:grid-cols-[.75fr_1fr] */
.home-grid {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 8px;
  width: 500px;
  list-style: none;
}

.home-featured-li {
  grid-row: span 4;
}

/* Markenfeld: tiefes Navy mit sanft schwebendem Cyan-Glow */
.home-featured-link {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  min-height: 160px;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #020d7c 0%, #050a30 58%, #05071a 100%);
  text-decoration: none;
  user-select: none;
  color: #ffffff;
  outline: none;
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 220ms ease;
}
.home-featured-link > * { position: relative; z-index: 1; }

/* weiche, langsam schwebende Lichtpunkte */
.featured-glow {
  position: absolute;
  z-index: 0;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(57,206,255,.5), rgba(57,206,255,0) 70%);
  top: -32%;
  right: -28%;
  animation: featured-float 7s ease-in-out infinite alternate;
}
.featured-glow--2 {
  width: 180px;
  height: 180px;
  top: auto;
  right: auto;
  bottom: -24%;
  left: -20%;
  background: radial-gradient(circle, rgba(2,13,124,.65), rgba(2,13,124,0) 70%);
  animation-duration: 9s;
  animation-delay: -2s;
}
@keyframes featured-float {
  from { transform: translate(0, 0) scale(1); opacity: .75; }
  to   { transform: translate(-22px, 24px) scale(1.18); opacity: 1; }
}

.home-featured-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px -22px rgba(2, 13, 124, 0.65);
}

.featured-logo {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.featured-name {
  margin-top: 16px;
  margin-bottom: 8px;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: #ffffff;
}

.featured-desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.4;
}

.featured-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: #39ceff;
}
.featured-cta svg { transition: transform 200ms ease; }
.home-featured-link:hover .featured-cta svg { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .featured-glow { animation: none; }
}

/* Components: grid w-[600px] gap-2 md:grid-cols-2 */
.components-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 600px;
  list-style: none;
}

/* List: grid w-[300px] */
.list-grid {
  width: 300px;
  list-style: none;
}

/* Simple: grid w-[200px] */
.simple-grid {
  width: 200px;
  list-style: none;
}

/* Icon: grid w-[200px] */
.icon-grid {
  width: 200px;
  list-style: none;
}

/* ─── NavigationMenuLink ─────────────────────────────────── */
/* flex flex-col gap-1 rounded-md p-2 text-sm hover:bg-accent */
.nav-link-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border-radius: var(--radius);
  font-size: 14px;
  text-decoration: none;
  color: var(--foreground);
  transition: background-color 150ms ease, color 150ms ease;
}

.nav-link-item:hover {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

/* flex-row items-center gap-2 (With Icon variant) */
.nav-link-item--row {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

/* text-sm leading-none font-medium */
.link-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

/* text-muted-foreground line-clamp-2 text-sm leading-snug */
.link-desc {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── Status icons ───────────────────────────────────────── */
.status-icon { flex-shrink: 0; }
.icon-backlog { color: #a1a1aa; }
.icon-todo    { color: #3b82f6; }
.icon-done    { color: #22c55e; }

/* ═══════════════════════════════════════════════════════════
   Navbar, logo image
   ════════════════════════════════════════════════════════ */
.navbar-logo-img {
  height: 30px;
  width: auto;
  display: block;
}

/* ═══════════════════════════════════════════════════════════
   LandingHero  (LandingHero component)
   Accent colors from styleguide: #39ceff (cyan) · #020d7c (navy)
   ════════════════════════════════════════════════════════ */

/* w-full h-screen overflow-hidden flex flex-col items-center justify-center relative */
.lhero {
  position: relative;
  width: 100%;
  height: calc(100vh - 60px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

/* ── Background video loop, fills the hero ── */
.lhero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  /* hidden until it actually plays; the poster (= exact frame 0) shows meanwhile,
     so the swap to live video is seamless */
  opacity: 0;
  transition: opacity 400ms ease;
}
.lhero-video.is-playing {
  opacity: 1;
}

/* keep the poster frame visible behind the video as the instant-load backdrop */
.lhero-video-poster {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: center / cover no-repeat url('material/hero_wall_poster.webp');
  pointer-events: none;
}

/* Soft scrim so the dark text stays readable on top of the video */
.lhero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  /* Washed-out circle behind the text; fully transparent at the edges so the video shows */
  background:
    radial-gradient(closest-side at 50% 48%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0.70) 30%,
      rgba(255, 255, 255, 0.40) 60%,
      rgba(255, 255, 255, 0) 100%);
}

/* ── Central content, z-50 pointer-events-auto ── */
.lhero-center {
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: min(700px, 90vw);
  pointer-events: auto;
}

/* ── Title, text-3xl → text-8xl font-bold tracking-tight ── */
.lhero-title {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--foreground);
  margin-bottom: 0;
  /* fade+slide in via JS */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.lhero-title.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.lhero-title-line {
  display: block;
  white-space: pre;
}

/* Second line holds "wird " + rotating span, must never wrap */
.lhero-title-line--flex {
  display: flex;
  align-items: baseline;
  justify-content: center;
  flex-wrap: nowrap;       /* prevent the two spans from stacking */
  white-space: nowrap;
}

/* "wird " never shrinks or wraps */
.lhero-title-line--flex > span:first-child {
  flex-shrink: 0;
  white-space: nowrap;
}

/* ── Rotating word container ── */
/* overflow-hidden clips the chars sliding in/out vertically */
.lhero-rotate {
  display: inline-flex;
  flex-wrap: nowrap;       /* chars never wrap onto a second line */
  flex-shrink: 0;          /* container itself never shrinks */
  white-space: nowrap;
  overflow: hidden;
  /* extra bottom room so descenders (g, j, p, y) aren't clipped by overflow:hidden;
     negative margin cancels it so layout/baseline stays unchanged.
     stays below the char height (~1.1em) so sliding chars remain hidden */
  padding: 0.06em 6px 0.55em 6px;
  margin-bottom: -0.55em;
  border-radius: 8px;
  line-height: inherit;
}

/* Individual animated character */
.tr-char {
  display: inline-block;
  /* descenders (g, j, p, y) need the gradient background box to extend below
     the baseline, bottom padding grows the box without moving the baseline */
  padding-bottom: 0.18em;
  /* gradient: #39ceff → #020d7c (both styleguide accents) */
  background: linear-gradient(135deg, #39ceff, #020d7c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ── Subtitle ── */
.lhero-sub {
  font-size: clamp(1.1rem, 2.3vw, 1.5rem);
  font-weight: 500;
  color: #52525b;
  line-height: 1.5;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  margin-top: clamp(1rem, 2.5vw, 3rem);
  /* fade+slide in via JS */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 200ms ease 0.1s, transform 200ms ease 0.1s;
}
.lhero-sub.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Hervorhebung "mehr Kunden": blau + animierte Unterstreichung */
.lhero-highlight {
  position: relative;
  color: #020d7c;
  font-weight: 700;
  white-space: nowrap;
}
.lhero-highlight::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #39ceff, #020d7c, #39ceff);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left center;
  animation: hl-underline 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.7s forwards,
             hl-shimmer 4s linear 1.5s infinite;
}
@keyframes hl-underline { to { transform: scaleX(1); } }
@keyframes hl-shimmer   { to { background-position: -200% 0; } }

@media (prefers-reduced-motion: reduce) {
  .lhero-highlight::after { animation: none; transform: scaleX(1); }
}

/* ── Buttons ── */
.lhero-buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: clamp(2rem, 4vw, 5rem);
  /* fade+slide in via JS */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 200ms ease 0.2s, transform 200ms ease 0.2s;
}
.lhero-buttons.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Shared button base, rounded-full font-semibold tracking-tight */
/* Prominent hero buttons, same style as the CTA button */
.lhero-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  z-index: 20;
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.lhero-btn > span:not(.lhero-shine) { position: relative; z-index: 1; }

/* Primary, rich blue gradient + glow */
.lhero-btn--primary {
  background: linear-gradient(135deg, #1230d6, #020d7c);
  color: #ffffff;
  box-shadow: 0 14px 30px -10px rgba(2, 13, 124, 0.55);
}
.lhero-btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 48px -14px rgba(18, 48, 214, 0.6);
}

/* Secondary, white in the same shape/feel */
.lhero-btn--secondary {
  background: #ffffff;
  color: #020d7c;
  box-shadow: 0 14px 30px -12px rgba(2, 13, 124, 0.3);
}
.lhero-btn--secondary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 48px -16px rgba(2, 13, 124, 0.4);
}

.lhero-btn-arrow {
  display: inline-block;
  transition: transform 240ms ease;
}
.lhero-btn--primary:hover .lhero-btn-arrow { transform: translateX(4px); }

/* Shine sweep */
.lhero-shine {
  position: absolute;
  inset: 0;
  transform: translateX(-200%);
  transition: transform 700ms ease;
}
.lhero-btn--primary .lhero-shine {
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
}
.lhero-btn--secondary .lhero-shine {
  background: linear-gradient(to right, transparent, rgba(2, 13, 124, 0.1), transparent);
}
.lhero-btn:hover .lhero-shine {
  transform: translateX(200%);
}

/* ═══════════════════════════════════════════════════════════
   LandingHero, Responsive
   ════════════════════════════════════════════════════════ */

/* XL-only images: hidden below 1921 px */
.lhero-float--xl {
  display: none;
}

/* ── Mobile (< 768 px), no floating images ── */
@media (max-width: 767px) {
  .lhero-float {
    display: none;
  }

  /* Give the hero full viewport height so text has breathing room */
  .lhero {
    height: 100svh;          /* svh = small viewport height, avoids mobile bar jank */
    padding: 0 16px;
  }

  /* Stack buttons vertically on small screens */
  .lhero-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 320px;
  }

  .lhero-btn {
    justify-content: center;
  }
}

/* ── Large screens (> 1920 px), show extra images ── */
@media (min-width: 1921px) {
  .lhero-float--xl {
    display: block;
  }
}

/* ═══════════════════════════════════════════════════════════
   Reviews Section, statische Karten (keine Animation)
   ════════════════════════════════════════════════════════ */

/* ── Section wrapper ── */
.reviews {
  background: var(--muted);
  padding: 80px 0;
  overflow: hidden;
}

/* ── Two-column layout: header left, cards right ── */
.reviews-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ── Left: header ── */
.reviews-header {
  flex: 0 0 420px;
  text-align: left;
  padding-right: 48px;
}

/* Google badge pill */
.reviews-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 9999px;
  padding: 7px 16px;
  margin-bottom: 20px;
  font-size: 13px;
}

.badge-stars {
  color: #FBBC04;
  letter-spacing: 1px;
  line-height: 1;
}

.badge-score {
  font-weight: 600;
  color: var(--foreground);
}

.badge-sep,
.badge-count {
  color: var(--muted-foreground);
}

.reviews-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--foreground);
  margin-bottom: 10px;
}

.reviews-sub {
  font-size: 14px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ── Right: 3 static review cards ── */
.reviews-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* ── Review card ── */
.rev-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  /* opacity+transform included so the .reveal fade-in animates (no pop) */
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
              opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms ease;
}

/* gentle grow on hover */
.rev-card:hover {
  transform: scale(1.04);
  box-shadow: 0 18px 40px -18px rgba(2, 13, 124, 0.28);
}

/* Top row: stars left, Google G right */
.rev-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.rev-stars {
  color: #FBBC04;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
}

/* Review text, feste Höhe, damit alle Autorzeilen auf gleicher Linie sitzen */
.rev-text {
  font-size: 14px;
  color: var(--foreground);
  line-height: 1.6;
  font-style: normal;
  margin-bottom: 18px;
  flex: none;
  height: 160px;
  overflow: hidden;
}

/* Lange Bewertung: Text scrollt langsam auf und ab, pausiert bei Hover */
.rev-text--scroll {
  position: relative;
}
/* sanftes Aus-/Einblenden an den Rändern, nur wenn wirklich gescrollt wird */
.rev-text--scroll.is-scrolling {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.rev-scroll-track {
  display: block;
  will-change: transform;
}
.rev-text--scroll.is-scrolling .rev-scroll-track {
  animation: rev-vscroll var(--rev-dur, 16s) ease-in-out infinite alternate;
}
.rev-card:hover .rev-scroll-track { animation-play-state: paused; }
@keyframes rev-vscroll {
  from { transform: translateY(0); }
  to   { transform: translateY(var(--rev-shift, 0)); }
}
@media (prefers-reduced-motion: reduce) {
  .rev-text--scroll { max-height: none; -webkit-mask-image: none; mask-image: none; }
  .rev-text--scroll.is-scrolling .rev-scroll-track { animation: none; }
}

/* Author row */
.rev-author {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
}

/* Initials avatar, colored circle (no external images needed) */
.rev-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  font-family: var(--font);
}

.rev-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--foreground);
  line-height: 1.3;
}

.rev-service {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 1px;
}

/* ── Tablet: header stacks above the cards ── */
@media (max-width: 1023px) {
  .reviews-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 36px;
    padding: 0 40px;
  }
  .reviews-header {
    flex: none;
    padding-right: 0;
  }
}

/* ── Mobile: single column of cards ── */
@media (max-width: 767px) {
  .reviews {
    padding: 64px 0;
  }
  .reviews-inner {
    padding: 0 24px;
  }
  .reviews-list {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   Gallery4, Leistungen
   ════════════════════════════════════════════════════════ */

.g4 {
  padding: 128px 0;         /* py-32 */
  background: var(--background);
  overflow: hidden;
}

/* ── Header ── */
.g4-head-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.g4-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 56px;      /* md:mb-14 */
}

.g4-head-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
}

/* text-3xl font-medium md:text-4xl lg:text-5xl */
.g4-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--foreground);
}

/* max-w-lg text-muted-foreground */
.g4-desc {
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.65;
  max-width: 480px;
}

/* Arrow buttons, size="icon" variant="ghost" */
.g4-arrows {
  display: none;           /* hidden on mobile, shown md+ */
  gap: 8px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .g4-arrows { display: flex; }
}

.g4-arrow {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--foreground);
  transition: background-color 150ms ease, opacity 150ms ease;
}

.g4-arrow:hover:not(:disabled) {
  background-color: var(--accent);
}

.g4-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: auto;   /* disabled:pointer-events-auto from demo */
}

/* ── Carousel ── */
.g4-carousel {
  width: 100%;
}

/* Track slides via JS translateX */
.g4-track {
  display: flex;
  gap: 20px;              /* pl-[20px] between items */
  /* align first card with container content edge */
  padding-left: max(24px, calc((100vw - 1280px) / 2 + 80px));
  transition: transform 420ms cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* ── Item, max-w-[320px] pl-[20px] lg:max-w-[360px] ── */
.g4-item {
  flex-shrink: 0;
  width: 320px;
}

@media (min-width: 1024px) {
  .g4-item { width: 360px; }
}

@media (min-width: 1921px) {
  .g4-item { width: 480px; }
}

/* ── Card ── */
/* group rounded-xl, inner div: relative h-full min-h-[27rem] overflow-hidden */
.g4-card {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  position: relative;
  min-height: 432px;       /* min-h-[27rem] */
  /* own stacking/compositing context so video + blend-mode survive the
     track's translateX during swiping (otherwise they vanish/flicker) */
  isolation: isolate;
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* image: absolute h-full w-full object-cover transition-transform duration-300 group-hover:scale-105 */
.g4-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 300ms ease;
  /* keep the video painted on its own layer while the track translates */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.g4-card:hover .g4-img {
  transform: scale(1.05) translateZ(0);
}

/* Gradient overlay — Solventa navy (#020d7c) instead of demo's --primary */
.g4-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 13, 124, 0)    0%,
    rgba(2, 13, 124, 0.18) 60%,
    rgba(2, 13, 124, 0.55) 100%
  );
  /* multiply over a <video> drops out during compositing on some browsers;
     plain alpha gradient is stable and looks nearly identical here */
  transform: translateZ(0);
}

/* Card body, absolute inset-x-0 bottom-0 p-6 text-primary-foreground md:p-8 */
.g4-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  /* keep the text on its own layer so it doesn't flicker while the
     track translates during swiping */
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

@media (min-width: 768px) {
  .g4-body { padding: 32px; }
}

/* mb-2 pt-4 text-xl font-semibold md:mb-3 */
.g4-card-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  padding-top: 16px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .g4-card-title { margin-bottom: 12px; }
}

/* mb-8 line-clamp-2 md:mb-12 */
.g4-card-desc {
  font-size: 14px;
  line-height: 1.55;
  opacity: 0.9;
  margin-bottom: 32px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (min-width: 768px) {
  .g4-card-desc { margin-bottom: 48px; }
}

/* flex items-center text-sm */
.g4-card-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #ffffff;
}

.g4-card-link svg {
  transition: transform 300ms ease;
  flex-shrink: 0;
}

.g4-card:hover .g4-card-link svg {
  transform: translateX(4px);   /* group-hover:translate-x-1 */
}

/* ── Dot indicators ── */
.g4-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
}

.g4-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(9, 9, 11, 0.2);   /* bg-primary/20 */
  transition: background-color 200ms ease;
}

.g4-dot.is-active {
  background: var(--foreground);     /* bg-primary */
}

/* ── Mobile adjustments ── */
@media (max-width: 767px) {
  .g4 { padding: 72px 0; }
  .g4-head-wrap { padding: 0 24px; }
  .g4-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .g4-arrows { display: flex; }
  .g4-track { padding-left: 24px; }
}

/* ═══════════════════════════════════════════════════════════
   Projekte / Erfolge, Features-7 (tailark / 21st.dev)
   ════════════════════════════════════════════════════════ */
.feat7 {
  background: var(--muted);
  padding: 128px 0;
  overflow: hidden;
}

.feat7-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

.feat7-head {
  position: relative;
  z-index: 10;
  max-width: 640px;            /* max-w-2xl */
  margin-bottom: 48px;
}

.feat7-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--foreground);
}

.feat7-sub {
  margin-top: 22px;
  font-size: 18px;             /* text-lg */
  color: var(--muted-foreground);
  line-height: 1.6;
  max-width: 560px;
}

/* ── Tilted 3D image showcase ── */
.feat7-showcase {
  position: relative;
  margin: 0 auto 56px;
  max-width: 860px;            /* smaller, centered video */
  padding: 0;
  border-radius: 24px;         /* rounded-3xl */
}

.feat7-perspective {
  perspective: 800px;
}

.feat7-tilt {
  /* flat, no skew/tilt */
}

.feat7-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 40px 90px -40px rgba(2, 13, 124, 0.45),
    0 0 0 1px rgba(2, 13, 124, 0.06);
}

/* media wrapper vanishes from layout so img/video position against the frame */
.feat7-media { display: contents; }

.feat7-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* Radial vignette, fades the screenshot edges into the background */
.feat7-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(130% 130% at 75% 25%, transparent 60%, var(--background) 96%);
}

/* ── Feature / result grid — KPI cards ── */
.feat7-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

/* Each KPI in its own highlighted box */
.feat7-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 28px 20px;
  border-radius: 16px;
  background: var(--muted);
  border: 1px solid var(--border);
  /* longer transform/opacity so the .reveal fade-in isn't overridden here */
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 220ms ease, border-color 220ms ease,
              opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feat7-feature:hover {
  transform: translateY(-4px);
  border-color: #39ceff;
  box-shadow: 0 18px 40px -22px rgba(2, 13, 124, 0.4);
}

/* Big, bold, gradient key figure — first so it leads visually */
.feat7-fval {
  font-size: clamp(2.1rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #39ceff, #020d7c);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Short heading below each key figure */
.feat7-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* Stagger reveal across the grid */
.feat7-grid .feat7-feature:nth-child(2) { transition-delay: 80ms; }
.feat7-grid .feat7-feature:nth-child(3) { transition-delay: 160ms; }

/* ── Reference navigation bar ── */
.feat7-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.feat7-project {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
}

.feat7-arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.feat7-arrow {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--background);
  color: var(--foreground);
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.feat7-arrow:hover {
  background: var(--muted);
  border-color: #39ceff;
  transform: translateY(-1px);
}

/* ── Swappable content, directional slide driven by JS (inline transforms) ── */
.feat7-swap {
  will-change: transform, opacity;
}

/* ── Dots ── */
.feat7-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}

.feat7-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: none;
  padding: 0;
  cursor: pointer;
  background: rgba(2, 13, 124, 0.18);
  transition: background-color 220ms ease, width 220ms ease;
}

.feat7-dot.is-active {
  width: 24px;
  background: linear-gradient(90deg, #39ceff, #020d7c);
}

@media (max-width: 1023px) {
  .feat7-inner { padding: 0 40px; }     /* match the other sections */
}

@media (max-width: 767px) {
  .feat7 { padding: 80px 0; }
  .feat7-inner { padding: 0 24px; }     /* match the other sections */
  .feat7-head { margin-bottom: 28px; }
  .feat7-sub { font-size: 16px; }
  .feat7-tilt { transform: none; }      /* drop the tilt on mobile for clarity */
  .feat7-showcase { margin: 0 auto 40px; }
  .feat7-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .feat7-feature { padding: 14px 8px; text-align: center; }
  .feat7-fval { font-size: 1.45rem; }
  .feat7-label { font-size: 10.5px; letter-spacing: .02em; }
}

/* ═══════════════════════════════════════════════════════════
   Scroll reveal, shared utility
   ════════════════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  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;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════════════════════
   So arbeiten wir, animated timeline
   ════════════════════════════════════════════════════════ */
.proc {
  background: var(--background);
  padding: 128px 0;
  overflow: hidden;
}

.proc-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
}

/* ── Heading ── */
.proc-head {
  max-width: 640px;
  margin: 0 auto 72px;
  text-align: center;
}

.proc-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #39ceff;
  margin-bottom: 14px;
}

.proc-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--foreground);
  margin-bottom: 16px;
}

.proc-sub {
  font-size: 16px;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ── Steps row ── */
.proc-steps {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* Connecting line behind the nodes (horizontal on desktop) */
.proc-line {
  position: absolute;
  top: 34px;                 /* center of the 68px node */
  left: 12.5%;               /* from center of first node … */
  right: 12.5%;              /* … to center of last node (1/(2*4)=12.5%) */
  height: 3px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  z-index: 0;
}

.proc-line-fill {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #39ceff, #020d7c);
  border-radius: 999px;
  transition: width 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Single step ── */
.proc-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;            /* hidden until the section animates in */
}

/* Keyframe entrance (smoother than transition+delay for the SVG icons, no per-frame re-raster, no visible compositing box). */
@keyframes procStepIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

.proc.is-animated .proc-step {
  animation: procStepIn 620ms cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--i) * 140ms + 150ms);
}

/* ── Node wrapper (holds the round node + the number badge) ── */
.proc-node-wrap {
  position: relative;
  margin-bottom: 24px;
}

/* ── Node (icon circle), gradient from the start, no white flash ── */
.proc-node {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #39ceff, #020d7c);
  color: #ffffff;
  box-shadow: 0 14px 30px -12px rgba(2, 13, 124, 0.45);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.proc-node svg {
  width: 26px;
  height: 26px;
}

.proc-step:hover .proc-node {
  transform: translateY(-4px);
  box-shadow: 0 20px 38px -14px rgba(2, 13, 124, 0.55);
}

/* Number badge, sits on the wrapper, never clipped by the circle */
.proc-num {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--foreground);
  color: var(--background);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ── Card ── */
.proc-card {
  max-width: 240px;
}

.proc-step-title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--foreground);
  margin-bottom: 8px;
}

.proc-step-desc {
  font-size: 14.5px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* ── Tablet ── */
@media (max-width: 1023px) {
  .proc-inner { padding: 0 40px; }
  .proc-steps { grid-template-columns: 1fr 1fr; gap: 48px 28px; }
  .proc-line { display: none; }   /* line only makes sense in a single row */
}

/* ── Mobile: vertical timeline ── */
@media (max-width: 767px) {
  .proc { padding: 80px 0; }
  .proc-inner { padding: 0 24px; }
  .proc-head { margin-bottom: 48px; }

  .proc-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* vertical line down the left, behind the nodes */
  .proc-line {
    display: block;
    top: 34px;
    bottom: 34px;
    left: 33px;                /* center of the 68px node */
    right: auto;
    width: 3px;
    height: auto;
  }
  .proc-line-fill {
    width: 100% !important;    /* vertical fill uses height */
    height: 0;
    transition: height 1200ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .proc-step {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 22px;
    padding-bottom: 40px;
  }
  .proc-step:last-child { padding-bottom: 0; }
  .proc-node { margin-bottom: 0; flex-shrink: 0; }
  .proc-card { max-width: none; padding-top: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   CTA, Text Marquee (uimix / 21st.dev)
   ════════════════════════════════════════════════════════ */
.mcta {
  background: var(--background);
  padding: 64px 0 112px;
  overflow: hidden;
}

.mcta-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}

/* ── Left content ── */
.mcta-left {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.mcta-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--foreground);
}

.mcta-text {
  font-size: 16px;
  color: var(--muted-foreground);
  line-height: 1.65;
}

.mcta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* staggered fade-in: title → text → button */
.mcta-text.reveal { transition-delay: 90ms; }
.mcta-btn.reveal  { transition-delay: 180ms; }

/* Prominent CTA button with sweeping shine on hover */
.mcta-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 34px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease, background 240ms ease,
              opacity 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mcta-btn > span:not(.mcta-shine) { position: relative; z-index: 1; }

.mcta-btn--primary {
  /* richer, brighter blue with a subtle gradient + glow so it pops */
  background: linear-gradient(135deg, #1230d6, #020d7c);
  color: #ffffff;
  box-shadow: 0 14px 30px -10px rgba(2, 13, 124, 0.55);
}

.mcta-btn--primary:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 22px 48px -14px rgba(18, 48, 214, 0.6);
}

/* Arrow nudges on hover */
.mcta-btn-arrow {
  transition: transform 240ms ease;
}
.mcta-btn--primary:hover .mcta-btn-arrow {
  transform: translateX(4px);
}

/* Shine sweep */
.mcta-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-200%);
  transition: transform 700ms ease;
}
.mcta-btn:hover .mcta-shine {
  transform: translateX(200%);
}

/* ── Right: vertical text marquee ── */
.mcta-marquee {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mcta-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mcta-track {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  animation: mctaScroll 20s linear infinite;
  will-change: transform;
}

@keyframes mctaScroll {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }   /* exactly one full list = seamless */
}

.mcta-item {
  display: block;
  text-align: center;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  padding: 28px 0;
  color: var(--foreground);
  white-space: nowrap;
  /* JS sets opacity per frame based on distance from center */
}

/* Edge vignettes, dissolve into the background */
.mcta-fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  height: 230px;
  z-index: 2;
}
.mcta-fade--top {
  top: 0;
  background: linear-gradient(to bottom, var(--background), rgba(255, 255, 255, 0.5) 45%, transparent);
}
.mcta-fade--bottom {
  bottom: 0;
  background: linear-gradient(to top, var(--background), rgba(255, 255, 255, 0.5) 45%, transparent);
}

/* ═══════════════════════════════════════════════════════════
   FAQ
   ════════════════════════════════════════════════════════ */
.faq {
  background: var(--background);
  padding: 0 0 128px;
}

.faq-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-head {
  text-align: center;
  margin-bottom: 48px;
}

.faq-title {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--foreground);
  margin-bottom: 14px;
}

.faq-sub {
  font-size: 16px;
  color: var(--muted-foreground);
  line-height: 1.6;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  /* include opacity+transform so the .reveal fade-in isn't overridden here */
  transition: border-color 200ms ease, box-shadow 200ms ease,
              opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
              transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item.is-open {
  border-color: #39ceff;
  box-shadow: 0 16px 36px -24px rgba(2, 13, 124, 0.35);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: var(--background);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  color: var(--foreground);
  text-align: left;
  line-height: 1.4;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--muted-foreground);
  transition: transform 300ms ease, color 200ms ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
  color: #39ceff;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-a p {
  padding: 0 22px 22px;
  font-size: 15px;
  color: var(--muted-foreground);
  line-height: 1.65;
}

/* ═══════════════════════════════════════════════════════════
   Navbar, CTA button (right-anchored)
   ════════════════════════════════════════════════════════ */
.navbar-cta {
  position: absolute;
  right: 24px;
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 18px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  background: #020d7c;
  border-radius: 9999px;
  text-decoration: none;
  white-space: nowrap;
  z-index: 1;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.navbar-cta:hover {
  background: #0a1a9e;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(2,13,124,.5);
}

/* ═══════════════════════════════════════════════════════════
   Leistungen dropdown grid (2-col with icons)
   ════════════════════════════════════════════════════════ */
.leistungen-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 520px;
  list-style: none;
}

.leist-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--foreground);
  transition: background-color 150ms ease;
}
.leist-link:hover {
  background-color: var(--accent);
}

.leist-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(57,206,255,.15), rgba(2,13,124,.08));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #020d7c;
  transition: background 200ms ease;
}
.leist-link:hover .leist-icon {
  background: linear-gradient(135deg, rgba(57,206,255,.3), rgba(2,13,124,.18));
}

.leist-body { flex: 1; min-width: 0; }

.leist-title {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--foreground);
}

.leist-desc {
  font-size: 12px;
  color: var(--muted-foreground);
  line-height: 1.45;
}

/* ═══════════════════════════════════════════════════════════
   CTA / FAQ, responsive
   ════════════════════════════════════════════════════════ */
@media (max-width: 1023px) {
  /* CTA marquee, stack, shrink the scroller */
  .mcta-inner { grid-template-columns: 1fr; gap: 48px; padding: 0 40px; }
  .mcta-marquee { height: 420px; }
}

@media (max-width: 767px) {
  /* CTA marquee, mobile */
  .mcta { padding: 48px 0 80px; }
  .mcta-inner { padding: 0 24px; gap: 36px; }
  .mcta-buttons { flex-direction: column; }
  .mcta-btn { width: 100%; }
  .mcta-marquee { height: 320px; }
  .mcta-fade { height: 130px; }

  .faq { padding: 0 0 80px; }
}

/* ═══════════════════════════════════════════════════════════
   Kleine türkise Eyebrow-Labels über den Überschriften ausblenden
   (Mockup-interne / Wizard-Labels bleiben erhalten)
   ════════════════════════════════════════════════════════ */
.proc-eyebrow,
.wd-hero-eyebrow,
.wd-section-eyebrow,
.wd-story-intro-eyebrow,
.gd-hero-eyebrow,
.gd-section-eyebrow,
.dg-hero-eyebrow,
.dgx-eyebrow,
.dg-builder-section-eyebrow,
.ws-section-eyebrow,
.wd-story-tag {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   Footer (nevsky118 / 21st.dev) — schwarz
   ════════════════════════════════════════════════════════ */
.ft {
  background: #000000;
  color: #ffffff;
  padding: 64px 0 24px;
}

@media (min-width: 1024px) {
  .ft { padding: 96px 0 32px; }
}

.ft-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Top: brand + socials ── */
.ft-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

@media (min-width: 768px) {
  .ft-top { flex-direction: row; align-items: center; justify-content: space-between; }
}

.ft-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #ffffff;
}

.ft-logo {
  height: 56px;
  width: auto;
  display: block;
}

.ft-socials {
  display: flex;
  list-style: none;
  gap: 12px;
}

.ft-social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transition: background-color 180ms ease, transform 180ms ease;
}

.ft-social:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

/* ── Bottom grid ── */
.ft-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 28px;
  padding-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media (min-width: 1024px) {
  .ft-bottom {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    align-items: start;
    margin-top: 24px;
    padding-top: 32px;
    gap: 16px 24px;
  }
  /* copyright left (cols 1–4, both rows), nav + legal right (cols 4–11) */
  .ft-copy  { grid-column: 1 / 4; grid-row: 1 / 3; }
  .ft-nav   { grid-column: 4 / 11; }
  .ft-legal { grid-column: 4 / 11; }
}

.ft-copy {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

.ft-nav { margin: 0; }

.ft-links,
.ft-legal {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

@media (min-width: 1024px) {
  .ft-links,
  .ft-legal { justify-content: flex-end; }
}

.ft-links a {
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.ft-links a:hover { text-decoration: underline; }

.ft-legal a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  text-underline-offset: 4px;
  transition: color 160ms ease;
}

.ft-legal a:hover { color: #ffffff; text-decoration: underline; }

@media (max-width: 767px) {
  .ft-inner { padding: 0 24px; }
}

/* ═══════════════════════════════════════════════════════════
   Responsive — Mobile Navbar (Burger) + globale Anpassungen
   ════════════════════════════════════════════════════════ */

/* Burger-Button: nur mobil sichtbar (per JS eingefügt) */
.nav-toggle { display: none; }

@media (max-width: 860px) {
  /* kein horizontales Scrollen auf kleinen Geräten.
     overflow-x: clip statt hidden → erzeugt KEINEN Scroll-Container,
     damit position: sticky der Navbar weiter funktioniert */
  html, body { overflow-x: clip; }

  .navbar-inner { justify-content: flex-start; }
  .navbar-logo { position: static; left: auto; }

  /* Burger rechts */
  .nav-toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    width: 42px; height: 42px; padding: 9px; border: none; background: transparent;
    cursor: pointer; z-index: 70;
  }
  .nav-toggle span {
    display: block; height: 2px; width: 100%; background: var(--foreground);
    border-radius: 2px; transition: transform .3s ease, opacity .2s ease;
  }
  .navbar.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .navbar.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .navbar.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* Menü als einschiebendes Panel */
  .nav-menu {
    position: fixed; top: 60px; left: 0; right: 0;
    height: calc(100vh - 60px); height: calc(100dvh - 60px);
    background: var(--background);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 12px 18px 48px; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%) translateZ(0);
    transition: transform .26s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -12px 0 40px -22px rgba(0,0,0,.35);
    z-index: 65;
    will-change: transform;
    backface-visibility: hidden;
  }
  .navbar.nav-open .nav-menu { transform: translateX(0) translateZ(0); }
  /* lock scroll while the menu panel is open (body fixed via JS-set top) */
  body.nav-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
  }

  /* the body is fixed/offset while open, so sticky no longer pins the bar —
     fix it to the viewport top so the logo + close (X) stay visible */
  body.nav-open .navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;   /* cancel any hide-on-scroll transform */
  }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-item { width: 100%; border-bottom: 1px solid var(--border); }

  .nav-trigger {
    width: 100%; height: 54px; justify-content: space-between;
    font-size: 16px; font-weight: 600; padding: 0 6px; border-radius: 0;
  }
  .nav-trigger:hover,
  .nav-item.is-open > .nav-trigger { background: transparent; color: var(--foreground); }

  /* Pfeil als größerer, gut tappbarer Bereich (Home: Pfeil klappt auf, Text → Startseite) */
  .nav-trigger .chevron { padding: 14px; margin: -14px -8px -14px 0; box-sizing: content-box; opacity: .55; }

  /* Dropdown-Inhalt als Inline-Accordion (grid-template-rows = flüssig, kein Layout-Thrash) */
  .nav-content {
    position: static; visibility: visible; pointer-events: auto;
    border: none; box-shadow: none; border-radius: 0; padding: 0;
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: none !important;
  }
  .nav-content::before { display: none; }
  .nav-item.is-open > .nav-content { grid-template-rows: 1fr; }
  /* einziges Kind (die Liste) wird durch die Grid-Zeile sauber abgeschnitten */
  .nav-content > ul { overflow: hidden; min-height: 0; }

  .home-grid, .leistungen-grid { display: flex; flex-direction: column; width: 100%; gap: 2px; padding-bottom: 8px; }
  .home-featured-li { display: none; }   /* große Kachel mobil ausblenden */
  .nav-link-item, .leist-link { padding: 12px 10px; border-radius: 8px; }
  .leist-link { gap: 12px; }
}

/* Bilder/Videos nie über den Rand */
img, video { max-width: 100%; }

/* ═══════════════════════════════════════════════════════════
   Cookie-Consent (Banner + Einstellungen)
   ═══════════════════════════════════════════════════════════ */
.cc-banner {
  position: fixed; left: 18px; right: 18px; bottom: 18px; z-index: 4000;
  max-width: 460px; margin-left: auto;
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(2,13,124,.45);
  padding: 24px 24px 20px;
  font-family: var(--font);
  transform: translateY(140%); opacity: 0;
  transition: transform .5s cubic-bezier(0.22,1,0.36,1), opacity .4s ease;
  will-change: transform;
}
.cc-banner.is-in { transform: none; opacity: 1; }
.cc-banner[hidden] { display: none; }
.cc-ico {
  width: 40px; height: 40px; border-radius: 11px; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(57,206,255,.18), rgba(2,13,124,.1));
  color: #020d7c; display: flex; align-items: center; justify-content: center;
}
.cc-title { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; color: var(--foreground); margin-bottom: 6px; }
.cc-text { font-size: 13.5px; line-height: 1.6; color: var(--muted-foreground); margin-bottom: 18px; }
.cc-text a { color: #020d7c; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cc-btn {
  flex: 1 1 auto; min-width: 120px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 12px 18px; border-radius: 99px; font-size: 13.5px; font-weight: 600;
  font-family: var(--font); cursor: pointer; border: 1.5px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.cc-btn--accept { background: #020d7c; color: #fff; border-color: #020d7c; }
.cc-btn--accept:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(2,13,124,.55); }
.cc-btn--ghost { background: #fff; color: var(--foreground); }
.cc-btn--ghost:hover { border-color: rgba(2,13,124,.4); }
.cc-btn--text {
  flex: 1 1 100%; background: none; border: none; color: var(--muted-foreground);
  font-size: 12.5px; font-weight: 600; padding: 4px; min-width: 0;
}
.cc-btn--text:hover { color: var(--foreground); }
@media (max-width: 520px) {
  .cc-banner { left: 12px; right: 12px; bottom: 12px; padding: 20px 18px 16px; }
  .cc-btn { min-width: 0; }
}

/* Einstellungen-Modal */
.cc-modal {
  position: fixed; inset: 0; z-index: 4100; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(5,7,26,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s ease;
}
.cc-modal[hidden] { display: none; }
.cc-modal.is-in { opacity: 1; }
.cc-modal-card {
  width: 100%; max-width: 520px; max-height: 88vh; overflow-y: auto;
  background: #fff; border-radius: 20px; padding: 30px 30px 26px;
  box-shadow: 0 50px 110px -35px rgba(2,13,124,.55);
  transform: translateY(16px) scale(.98); transition: transform .35s cubic-bezier(0.22,1,0.36,1);
}
.cc-modal.is-in .cc-modal-card { transform: none; }
.cc-modal-title { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--foreground); margin-bottom: 6px; }
.cc-modal-sub { font-size: 13.5px; line-height: 1.6; color: var(--muted-foreground); margin-bottom: 22px; }
.cc-cat {
  display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid var(--border); border-radius: 14px; padding: 16px; margin-bottom: 12px;
}
.cc-cat-body { flex: 1; }
.cc-cat-t { font-size: 14px; font-weight: 700; color: var(--foreground); }
.cc-cat-d { font-size: 12.5px; line-height: 1.5; color: var(--muted-foreground); margin-top: 3px; }
/* Toggle */
.cc-switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.cc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc-switch-track {
  position: absolute; inset: 0; border-radius: 99px; background: var(--border);
  transition: background .25s ease; pointer-events: none;
}
.cc-switch-track::after {
  content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .25s cubic-bezier(0.34,1.56,0.64,1);
}
.cc-switch input:checked + .cc-switch-track { background: #020d7c; }
.cc-switch input:checked + .cc-switch-track::after { transform: translateX(18px); }
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + .cc-switch-track { background: #39ceff; opacity: .65; }
.cc-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.cc-modal-actions .cc-btn { flex: 1 1 0; }
@media (max-width: 520px) {
  .cc-modal-card { padding: 24px 20px 20px; }
}

/* Cookie-Einstellungen-Link im Footer (per JS eingefügt) */
.ft-legal .cc-reopen {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: var(--font); font-size: 14px; color: rgba(255,255,255,.55);
  text-underline-offset: 4px; transition: color 160ms ease;
}
.ft-legal .cc-reopen:hover { color: #fff; text-decoration: underline; }
