:root {
  /* marketing-seminare.com — Tailwind theme.extend.colors.brand */
  --brand-50: #f4f6f8;
  --brand-100: #e8ecf1;
  --brand-200: #cfd8e6;
  --brand-300: #9fafc4;
  --brand-400: #5a6d8c;
  --brand-500: #2f4a66;
  --brand-600: #0f1d2f;
  --brand-700: #0c1828;
  --brand-800: #1e3a5f;
  --brand-900: #0f1d2f;

  /* Bestehende --blue-* bleiben als Alias erhalten (Komponenten unverändert nutzbar) */
  --blue-50: var(--brand-50);
  --blue-100: var(--brand-100);
  --blue-200: var(--brand-200);
  --blue-300: var(--brand-300);
  --blue-400: var(--brand-400);
  --blue-500: var(--brand-500);
  --blue-600: var(--brand-500);
  --blue-700: var(--brand-800);
  --blue-800: var(--brand-800);
  --blue-900: var(--brand-600);

  --grey-900: #111827;
  --grey-800: #1f2937;
  --grey-700: #374151;
  --grey-600: #4b5563;
  --grey-500: #6b7280;
  --grey-400: #9ca3af;
  --grey-300: #d1d5db;
  --grey-200: #e5e7eb;
  --grey-100: #f3f4f6;
  --grey-50: #f9fafb;

  /* Akzent: Amber wie marketing-seminare (accent-500/600) */
  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --accent-orange: #f59e0b;
  --accent-orange-hover: #d97706;
  --accent-green: #10b981;
  --accent-green-hover: #059669;

  --white: #ffffff;
  --black: #000000;

  --text-primary: var(--brand-600);
  --text-secondary: var(--grey-600);
  --text-light: var(--grey-400);
  --text-on-dark: var(--white);
  --text-on-dark-muted: rgba(255, 255, 255, 0.7);

  --bg-primary: var(--white);
  --bg-secondary: var(--brand-50);
  --bg-dark: var(--brand-600);
  --bg-darker: #080f18;

  --cta-bg: var(--accent-amber);
  --cta-hover: var(--accent-amber-hover);
  --cta-text: #0f1d2f;

  /* Wie marketing-seminare: Helvetica-Stack Fließtext, Montserrat Überschriften */
  --font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-heading: "Montserrat", system-ui, sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --fs-sm: clamp(0.8125rem, 0.75rem + 0.3vw, 0.9375rem);
  --fs-base: clamp(0.9375rem, 0.875rem + 0.3vw, 1.0625rem);
  --fs-lg: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-xl: clamp(1.125rem, 1.05rem + 0.4vw, 1.25rem);   /* 18–20px */
  --fs-2xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);    /* 20–24px */
  --fs-3xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);      /* 24–30px */
  --fs-4xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.25rem);   /* 28–36px */
  --fs-5xl: clamp(2.25rem, 1.8rem + 2vw, 3.5rem);       /* 36–56px */

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-normal: 1.6;
  --lh-relaxed: 1.75;

  --ls-tight: -0.03em;
  --ls-normal: -0.01em;
  --ls-wide: 0.05em;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 10rem;

  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 16px 50px rgba(0, 0, 0, 0.12);

  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  --header-height: 80px;
  /* Top-Bar = Tailwind py-2 + text-sm (line-height 1.25rem) + Icons w-5 h-5
     bei marketing-seminare.com → ~36px effektive Höhe. */
  --top-bar-height: 36px;
  /* Eigener Container für Top-Bar & Header, parallel zu marketing-seminare.com
     (Tailwind max-w-7xl = 80rem = 1280px). Bewusst getrennt von --container-2xl,
     damit die wenigen .container--wide-Inhalte unverändert bleiben. */
  --container-header: 1280px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-height) + var(--top-bar-height));
}

/* ============================================
   TOP BAR
   ============================================ */

.top-bar {
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.875rem; /* 14px – analog Tailwind text-sm bei marketing-seminare.com */
  padding: 0;
  height: var(--top-bar-height);
  display: flex;
  align-items: center;
}

.top-bar__inner {
  width: 100%;
  max-width: var(--container-header);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar__tagline {
  font-weight: var(--fw-medium);
}

.top-bar__contact {
  display: flex;
  align-items: center;
  gap: var(--space-lg); /* 24px – analog Tailwind gap-6 bei marketing-seminare.com */
}

.top-bar a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.top-bar__link {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem; /* 10px – analog Tailwind gap-2.5 */
  line-height: 1;
}

.top-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.95);
  flex: none;
}

.top-bar__icon svg {
  width: 18px;
  height: 18px;
}

.top-bar__link:hover .top-bar__icon {
  color: var(--white);
}

.top-bar a:hover {
  color: var(--white);
}

@media (max-width: 767px) {
  .top-bar {
    display: none;
  }
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-normal);
  color: var(--text-primary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: inherit; /* Erbt vom Container (z. B. weiß bei .am-gradient-hero/.text-white). */
}

h1 { font-size: var(--fs-5xl); font-weight: var(--fw-extrabold); }
h2 { font-size: var(--fs-4xl); font-weight: var(--fw-extrabold); }
h3 { font-size: var(--fs-2xl); font-weight: var(--fw-bold); }
h4 { font-size: var(--fs-xl); font-weight: var(--fw-bold); }

p {
  letter-spacing: var(--ls-normal);
}

/* Visually hidden – aus WP-Core übernommen, da das Theme die Block-Library-CSS dequeued. */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container--narrow {
  max-width: var(--container-lg);
}

.container--wide {
  max-width: var(--container-2xl);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */

.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-100);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.header--scrolled {
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container-header);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--blue-900);
  letter-spacing: var(--ls-tight);
  z-index: 1001;
  flex-shrink: 0;
  max-width: min(220px, 42vw);
}

/* Custom-Logo (Mediathek): ohne max-* skaliert das Bild auf die volle Pixelbreite */
.header__logo .custom-logo-link {
  display: flex;
  align-items: center;
  max-width: 100%;
  line-height: 0;
}

.header__logo .custom-logo-link img,
.header__logo img.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 44px;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .header__logo .custom-logo-link img,
  .header__logo img.custom-logo {
    max-height: 48px;
  }

  .header__logo {
    max-width: 260px;
  }
}

.header__logo-icon {
  width: 36px;
  height: 36px;
  background: var(--blue-600);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: var(--fw-extrabold);
  font-size: var(--fs-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  letter-spacing: var(--ls-tight);
}

.nav__item {
  position: relative;
}

.nav__link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--grey-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav__link:hover,
.nav__link--active {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav__link svg {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav__item:hover .nav__link svg {
  transform: rotate(180deg);
}

.nav__dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 220px;
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
}

.nav__item:hover .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--grey-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav__dropdown-link:hover {
  color: var(--blue-600);
  background: var(--blue-50);
}

.nav__dropdown-link span {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-regular);
  color: var(--grey-500);
  margin-top: 2px;
}

.header__cta {
  display: none;
}

@media (min-width: 1024px) {
  .header__cta {
    display: inline-flex;
  }
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  background: var(--grey-800);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.mobile-toggle--active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle--active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle--active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
  .mobile-toggle {
    display: none;
  }
}

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--white);
  z-index: 999;
  padding: calc(var(--header-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
}

.mobile-nav--open {
  transform: translateX(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-family: var(--font-heading);
  letter-spacing: var(--ls-tight);
}

.mobile-nav__item {
  list-style: none;
}

.mobile-nav__row {
  display: flex;
  align-items: stretch;
  gap: var(--space-2xs, 0.25rem);
}

.mobile-nav__row .mobile-nav__link {
  flex: 1 1 auto;
}

.mobile-nav__link {
  display: block;
  padding: var(--space-md);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--grey-800);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mobile-nav__link:hover,
.mobile-nav__link:focus-visible {
  background: var(--blue-50);
  color: var(--blue-600);
}

.mobile-nav__toggle {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  border: none;
  background: transparent;
  color: var(--grey-600);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.mobile-nav__toggle svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform var(--transition-fast);
}

.mobile-nav__toggle:hover,
.mobile-nav__toggle:focus-visible {
  background: var(--blue-50);
  color: var(--blue-600);
}

.mobile-nav__toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.mobile-nav__sub {
  display: none;
  padding-left: var(--space-lg);
  margin: 0;
  list-style: none;
}

.mobile-nav__sub--open {
  display: block;
}

.mobile-nav__sub .mobile-nav__link {
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--grey-600);
  padding: var(--space-sm) var(--space-md);
}

.mobile-nav__cta {
  margin-top: var(--space-xl);
}

/* Body-Lock, wenn Mobile-Menü offen ist – verhindert Scrollen auf iOS Safari. */
body.mobile-nav-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

@media (min-width: 1024px) {
  .mobile-nav {
    display: none;
  }

  .nav {
    display: flex;
  }
}

@media (max-width: 1023px) {
  .nav {
    display: none;
  }
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 14px 28px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-normal);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  white-space: nowrap;
  line-height: 1;
}

.btn--primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  font-weight: var(--fw-bold);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

.btn--primary:hover {
  background: var(--cta-hover);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.5);
  transform: translateY(-1px);
}

.btn--secondary {
  background: var(--brand-500);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(15, 29, 47, 0.25);
}

.btn--secondary:hover {
  background: var(--brand-800);
  box-shadow: 0 8px 24px rgba(15, 29, 47, 0.35);
  transform: translateY(-1px);
}

.btn--outline {
  background: transparent;
  color: var(--blue-600);
  border: 2px solid var(--blue-200);
}

.btn--outline:hover {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn--outline-white:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn--ghost {
  background: transparent;
  color: var(--grey-700);
}

.btn--ghost:hover {
  background: var(--grey-100);
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--fs-base);
  border-radius: var(--radius-xl);
}

.btn--white {
  background: var(--white);
  color: var(--blue-900);
  font-weight: var(--fw-bold);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.btn--white:hover {
  background: var(--grey-100);
  transform: translateY(-1px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
}

.btn--sm {
  padding: 10px 20px;
  font-size: var(--fs-xs);
}

.btn--full {
  width: 100%;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   SECTION UTILITIES
   ============================================ */

.section {
  padding: var(--space-5xl) 0;
}

.section--sm {
  padding: var(--space-4xl) 0;
}

.section--lg {
  padding: var(--space-6xl) 0;
}

.section--dark {
  background: var(--bg-dark);
  color: var(--text-on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section--dark p {
  color: var(--text-on-dark-muted);
}

.section--grey {
  background: var(--bg-secondary);
}

.section--blue-gradient {
  background: linear-gradient(135deg, #0f1d2f 0%, #1e3a5f 48%, #2a4a6e 100%);
  color: var(--text-on-dark);
}

.section--blue-gradient h1,
.section--blue-gradient h2,
.section--blue-gradient h3,
.section--blue-gradient h4 {
  color: var(--white);
}

.section--blue-gradient p {
  color: var(--text-on-dark-muted);
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-4xl);
}

.section__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--blue-500);
  margin-bottom: var(--space-md);
}

.section--dark .section__label,
.section--blue-gradient .section__label {
  color: var(--blue-300);
}

/* Sektionstitel bewusst auf Subseiten-Größe angehoben (30/36px Stufen),
   damit die Startseite im Look mit den Subpages konsistent wirkt. */
.section__title {
  margin-bottom: var(--space-lg);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .section__title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .section__title { font-size: 2.5rem; }
}

.section__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section__desc { font-size: 1.125rem; }
}

.section--dark .section__desc,
.section--blue-gradient .section__desc {
  color: var(--text-on-dark-muted);
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  padding: var(--space-2xl) 0;
  background: linear-gradient(135deg, #0f1d2f 0%, #1e3a5f 48%, #2a4a6e 100%);
  overflow: hidden;
}

/* Hero füllt zusammen mit Top-Bar + Header genau eine Viewport-Höhe (100dvh).
   Auf Desktop steht die CTA-Karte rechts neben dem Text – beide Spalten passen
   in die verfügbare Höhe (vertikal zentriert via align-items: center). */
@media (min-width: 768px) {
  .hero {
    height: calc(100dvh - var(--top-bar-height) - var(--header-height));
    min-height: 620px; /* Sicherheitsnetz auf sehr flachen Fenstern */
  }
}

@media (min-width: 783px) {
  body.admin-bar .hero {
    height: calc(100dvh - var(--top-bar-height) - var(--header-height) - 32px);
  }
}

/* ============================================
   AM HERO – Tailwind-Hero auf Unterseiten
   (template-parts/am/hero.php)
   – Vereinheitlicht die Höhe aller Subpage-Heros, damit Seiten mit
     2-zeiligem und 3-zeiligem Titel optisch gleich wirken. Längere
     Titel bekommen mehr horizontale Breite (max-w-4xl), kürzere Heros
     füllen die min-height und behalten die gleiche Anmutung.
   ============================================ */

.am-hero {
  display: flex;
  align-items: center;
}

.am-hero .am-hero__inner {
  width: 100%;
}

/* Lange deutsche Kompositum-Wörter dürfen auf schmalen Mobile-Viewports
   weich brechen, statt über den Bildschirmrand zu laufen.
   Nutzt das html[lang="de"]-Attribut für saubere Silbentrennung. */
.am-hero__title {
  hyphens: auto;
  overflow-wrap: break-word;
}

@media (min-width: 768px) {
  .am-hero__title {
    hyphens: manual;
    overflow-wrap: normal;
  }
}

@media (min-width: 768px) {
  .am-hero {
    min-height: 460px;
  }
}

@media (min-width: 1024px) {
  .am-hero {
    min-height: 520px;
  }
}

/* ============================================
   AM HERO VH – Vollbild-Hero auf Landingpages
   (z. B. /ki-sichtbarkeit-pruefen/)
   – Hero füllt zusammen mit Top-Bar + Header genau eine Viewport-Höhe
     (100dvh), schließt also visuell mit dem unteren Bildschirmrand ab.
     Inhalt wird mittig zentriert. Auf kleinen Höhen gibt es ein
     min-height-Fallback, damit nichts kollabiert.
   ============================================ */

.am-hero-vh {
  display: flex;
  align-items: center;
}

.am-hero-vh .am-hero-vh__inner {
  width: 100%;
}

@media (min-width: 1024px) {
  .am-hero-vh {
    height: calc(100dvh - var(--top-bar-height) - var(--header-height));
    min-height: 640px;
  }
}

/* WP-Adminbar einrechnen, sobald sie eingeblendet ist (≥783px) */
@media (min-width: 1024px) {
  body.admin-bar .am-hero-vh {
    height: calc(100dvh - var(--top-bar-height) - var(--header-height) - 32px);
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}

.hero__bg::before {
  content: '';
  position: absolute;
  top: 5rem;
  right: 5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  filter: blur(80px);
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  width: 18rem;
  height: 18rem;
  background: rgba(47, 74, 102, 0.45);
  border-radius: 50%;
  filter: blur(80px);
}

.hero__grid-pattern {
  display: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

/* Zweispaltiges Hero-Layout: Text links, CTA-Karte rechts (ab lg).
   Auf kleineren Viewports stapelt alles übereinander. */
.hero__layout {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  width: 100%;
}

@media (min-width: 1024px) {
  .hero__layout {
    flex-direction: row;
    align-items: center;
    /* CTA-Karte am rechten Container-Rand andocken: Text-Spalte bleibt links,
       die SEO-CTA-Karte schließt rechtsbündig mit dem Content-Container ab.
       gap ist nur das Mindest-Mindestabstand; space-between verteilt Restraum. */
    justify-content: space-between;
    gap: var(--space-3xl);
  }
  .hero__layout .hero__content {
    flex: 1 1 auto;
    min-width: 0;
    /* Mehr Breite für Headline und Description, weil die CTA-Karte rechts
       jetzt am Container-Rand andockt (justify-content: space-between). */
    max-width: 720px;
  }
  .hero__layout .hero__cta {
    flex: 0 0 380px;
    width: 380px;
  }
}

@media (min-width: 1280px) {
  .hero__layout .hero__cta {
    flex-basis: 420px;
    width: 420px;
  }
}

.hero__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-full);
  color: var(--blue-300);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

.hero__label-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Hero-Headline an die Subseiten angeglichen: 36/48/56px feste Stufen
   (entspricht text-4xl / md:text-5xl / lg:text-[3.5rem] der Subseiten). */
.hero__title {
  font-size: 2.25rem;
  color: var(--white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .hero__title { font-size: 3rem; }
}

@media (min-width: 1024px) {
  .hero__title { font-size: 3.5rem; }
}

.hero__title-highlight {
  color: var(--blue-300);
  -webkit-text-fill-color: var(--blue-300);
}

/* Hero-Beschreibung auf Subseiten-Niveau (16/18px). */
.hero__desc {
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
  max-width: 620px;
}

@media (min-width: 768px) {
  .hero__desc { font-size: 1.125rem; }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  /* Kompakterer Abstand, damit die drei Vertrauens-Stats auch bei
     1024–1279 px Viewport in einer Zeile bleiben (Content-Spalte
     ist dort am schmalsten, weil die CTA-Karte rechts 380 px belegt). */
  gap: var(--space-lg);
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
}

@media (min-width: 1024px) {
  .hero__proof {
    flex-wrap: nowrap;
  }
}

.hero__proof-item {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.hero__proof-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hero__proof-number {
  font-weight: var(--fw-bold);
  color: var(--white);
}

.hero__proof-label {
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   HERO CTA CARD (Domain-Analyse + Strategiegespräch)
   Glas-Optik wie marketing-seminare.com Hero-Card.
   ============================================ */

.hero__cta {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-2xl, 1.5rem);
  padding: var(--space-xl);
  box-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.45);
  color: var(--white);
}

@media (min-width: 1024px) {
  .hero__cta {
    margin: 0;
    padding: var(--space-2xl);
  }
}

.hero__cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.18);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-full);
  color: #6ee7b7;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}

.hero__cta-title {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 1.25rem;
  line-height: 1.25;
  font-weight: var(--fw-extrabold);
  color: var(--white);
  margin: 0 0 var(--space-xs);
  letter-spacing: -0.01em;
}

.hero__cta-title svg {
  width: 22px;
  height: 22px;
  color: var(--blue-300);
  flex-shrink: 0;
}

.hero__cta-sub {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
  margin: 0 0 var(--space-lg);
}

/* Eingabefelder im Hero-CTA – Domain & E-Mail untereinander.
   Nutzt Klassen des SEO-Analyse-Plugins (.alber-seo-step1-form, .aseo-field, …),
   damit das vorhandene AJAX-/Popup-JavaScript greift. */
.hero__cta .alber-seo-step1-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero__cta .aseo-field {
  width: 100%;
}

.hero__cta .aseo-field input[type="url"],
.hero__cta .aseo-field input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg, 12px);
  color: var(--white);
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.4;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.hero__cta .aseo-field input[type="url"]::placeholder,
.hero__cta .aseo-field input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.hero__cta .aseo-field input[type="url"]:focus,
.hero__cta .aseo-field input[type="email"]:focus {
  border-color: var(--blue-300);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.hero__cta .aseo-field input.is-invalid {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.18);
}

.hero__cta .aseo-field-btn {
  margin-top: var(--space-xs);
}

.hero__cta .aseo-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 13px 18px;
  background: var(--white);
  color: #0f1d2f;
  border: none;
  border-radius: var(--radius-lg, 12px);
  font-size: 0.9375rem;
  font-weight: var(--fw-bold);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.35);
}

.hero__cta .aseo-submit-btn:hover {
  background: #f3f4f6;
  transform: translateY(-1px);
}

.hero__cta .aseo-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.hero__cta .alber-seo-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(15, 29, 47, 0.2);
  border-top-color: #0f1d2f;
  border-radius: 50%;
  animation: hero-cta-spin 0.7s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes hero-cta-spin {
  to { transform: rotate(360deg); }
}

.hero__cta .alber-seo-trust {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-top: var(--space-sm);
  line-height: 1.5;
}

.hero__cta .alber-seo-error {
  margin-top: var(--space-sm);
  padding: 10px 12px;
  background: rgba(248, 113, 113, 0.12);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: var(--radius-md, 8px);
  color: #fecaca;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.hero__cta-divider {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: var(--space-lg) 0 var(--space-md);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  font-weight: var(--fw-semibold);
}

.hero__cta-divider::before,
.hero__cta-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hero__cta-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-lg, 12px);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hero__cta-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.hero__cta-secondary svg {
  width: 16px;
  height: 16px;
}

/* ============================================
   CARDS
   ============================================ */

.card {
  background: var(--white);
  border: 1px solid var(--grey-100);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: var(--blue-200);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.card--dark:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--blue-600);
}

.card--dark .card__icon {
  background: rgba(47, 74, 102, 0.2);
  color: var(--blue-400);
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-lg);
}

.card--dark .card__desc {
  color: var(--text-on-dark-muted);
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--blue-500);
  transition: gap var(--transition-fast), color var(--transition-fast);
}

.card__link:hover {
  gap: var(--space-sm);
}

.card__link svg {
  width: 16px;
  height: 16px;
}

/* Auf dunklen Karten: weißer „Mehr erfahren"-Link für lesbaren Kontrast */
.card--dark .card__link {
  color: #ffffff;
}

.card--dark .card__link:hover {
  color: #ffffff;
  opacity: 0.85;
}

/* ============================================
   LEISTUNGEN-INTRO – 4-Bereiche-Kacheln direkt unter dem Hero.
   Vollflächig klickbare Karten mit Icon, kurzer Beschreibung und CTA.
   Visuell etwas „lauter" als die normalen .card-Komponenten, damit der
   Bereichseinstieg sofort als primärer Wegweiser erkennbar ist.
   ============================================ */

.leistungen-intro__card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.leistungen-intro__card:hover {
  border-color: var(--accent-300, #fcd34d);
  box-shadow: 0 24px 48px rgba(15, 29, 47, 0.12);
  transform: translateY(-6px);
}

.leistungen-intro__card:focus-visible {
  outline: 2px solid var(--accent-500, #f59e0b);
  outline-offset: 4px;
}

.leistungen-intro__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.18) 0%, rgba(251, 191, 36, 0.08) 100%);
  color: var(--accent-600, #d97706);
  margin-bottom: var(--space-lg);
  transition: background 0.2s ease, transform 0.2s ease;
}

.leistungen-intro__card:hover .leistungen-intro__icon {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.32) 0%, rgba(251, 191, 36, 0.16) 100%);
  transform: scale(1.05);
}

.leistungen-intro__icon svg {
  width: 28px;
  height: 28px;
}

.leistungen-intro__card .card__title {
  font-size: var(--fs-xl);
  letter-spacing: -0.01em;
}

.leistungen-intro__cta {
  margin-top: auto;
  color: var(--blue-600, #1d4ed8);
}

.leistungen-intro__card:hover .leistungen-intro__cta {
  gap: var(--space-sm);
  color: var(--blue-700, #1e40af);
}

/* ============================================
   GRID LAYOUTS
   ============================================ */

.grid {
  display: grid;
  gap: var(--space-xl);
}

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 640px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================
   STATS BAR
   ============================================ */

.stats-bar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  padding: var(--space-2xl) 0;
}

@media (min-width: 768px) {
  .stats-bar {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat {
  text-align: center;
}

.stat__number {
  font-size: clamp(1.75rem, 1.4rem + 1.25vw, 2.25rem);
  font-weight: var(--fw-extrabold);
  color: var(--blue-600);
  line-height: 1;
}

.section--dark .stat__number,
.section--blue-gradient .stat__number {
  color: var(--white);
}

.stat__label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.section--dark .stat__label,
.section--blue-gradient .stat__label {
  color: var(--text-on-dark-muted);
}

/* ============================================
   SPLIT LAYOUT (TEXT + VISUAL)
   ============================================ */

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (min-width: 768px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4xl);
  }
}

.split--reverse .split__visual {
  order: -1;
}

@media (max-width: 767px) {
  .split--reverse .split__visual {
    order: 0;
  }
}

.split__content {
  max-width: 540px;
}

.split__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--blue-500);
  margin-bottom: var(--space-md);
}

/* Split-Titel auf Subseiten-Größe angeglichen (30/36/40px Stufen). */
.split__title {
  margin-bottom: var(--space-lg);
  font-size: 1.875rem;
  line-height: 1.2;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .split__title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .split__title { font-size: 2.5rem; }
}

.split__desc {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
}

@media (min-width: 768px) {
  .split__desc { font-size: 1.125rem; }
}

.split__visual {
  position: relative;
}

.visual-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  border-radius: var(--radius-lg);
  border: 1px solid var(--blue-200);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.visual-placeholder--dark {
  background: linear-gradient(135deg, rgba(47, 74, 102, 0.12), rgba(15, 29, 47, 0.08));
  border-color: rgba(255, 255, 255, 0.1);
}

.visual-placeholder__inner {
  text-align: center;
  color: var(--blue-400);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

/* ============================================
   FEATURE LIST
   ============================================ */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-list__item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.feature-list__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--blue-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.feature-list__icon svg {
  width: 14px;
  height: 14px;
  color: var(--blue-600);
}

.section--dark .feature-list__icon {
  background: rgba(47, 74, 102, 0.25);
}

.section--dark .feature-list__icon svg {
  color: var(--blue-300);
}

/* ============================================
   PROCESS / STEPS
   ============================================ */

.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  counter-reset: step;
}

@media (min-width: 768px) {
  .process {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .process {
    grid-template-columns: repeat(4, 1fr);
  }
}

.process__step {
  position: relative;
  counter-increment: step;
}

.process__number {
  font-size: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
  font-weight: var(--fw-extrabold);
  color: var(--blue-100);
  line-height: 1;
  margin-bottom: var(--space-md);
}

.section--dark .process__number {
  color: rgba(47, 74, 102, 0.25);
}

.process__title {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--space-sm);
}

.process__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
}

.section--dark .process__desc {
  color: var(--text-on-dark-muted);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
  text-align: center;
  padding: var(--space-5xl) 0;
}

.cta-section__title {
  margin-bottom: var(--space-lg);
  font-size: 1.875rem;
  line-height: 1.15;
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.01em;
}

@media (min-width: 768px) {
  .cta-section__title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .cta-section__title { font-size: 3rem; }
}

.cta-section__desc {
  font-size: var(--fs-lg);
  color: var(--text-on-dark-muted);
  max-width: 600px;
  margin: 0 auto var(--space-2xl);
}

/* ============================================
   AM CTA (Tailwind-Variante template-parts/am/cta.php)
   – Größenmäßig parallel zu .cta-section__title gehalten,
   damit Subpages mit altem und neuem CTA einheitlich wirken.
   ============================================ */

.am-cta__title {
  font-size: 1.875rem;
  line-height: 1.15;
}

@media (min-width: 768px) {
  .am-cta__title { font-size: 2.5rem; }
}

@media (min-width: 1024px) {
  .am-cta__title { font-size: 3rem; }
}

.am-cta__desc {
  font-size: 1rem;
}

@media (min-width: 768px) {
  .am-cta__desc { font-size: 1.125rem; }
}

.cta-section__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
}

/* ============================================
   CASE STUDY CARDS
   ============================================ */

.case-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.case-card__image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-card__body {
  padding: var(--space-xl);
}

.case-card__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--blue-500);
  margin-bottom: var(--space-sm);
}

.case-card__title {
  font-size: var(--fs-xl);
  margin-bottom: var(--space-sm);
}

.case-card__desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

.case-card__metrics {
  display: flex;
  gap: var(--space-xl);
}

.case-card__metric-value {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--accent-green);
}

.case-card__metric-label {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

/* ============================================
   TESTIMONIAL
   ============================================ */

.testimonial {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

.testimonial__quote {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
  color: var(--grey-700);
  margin-bottom: var(--space-xl);
  font-style: italic;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  color: var(--blue-600);
  font-size: var(--fs-sm);
}

.testimonial__name {
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

.testimonial__role {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

/* ============================================
   PRICING / COMPARISON TABLE
   ============================================ */

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}

.comparison-table th,
.comparison-table td {
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  border-bottom: 1px solid var(--grey-200);
}

.comparison-table th {
  font-weight: var(--fw-semibold);
  color: var(--grey-700);
  background: var(--grey-50);
}

.comparison-table td:first-child {
  font-weight: var(--fw-medium);
}

/* ============================================
   FORM STYLES
   ============================================ */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.form__group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 640px) {
  .form__row {
    grid-template-columns: 1fr 1fr;
  }
}

.form__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--grey-700);
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  outline: none;
}

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(47, 74, 102, 0.12);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.form__hint {
  font-size: var(--fs-xs);
  color: var(--grey-500);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--bg-darker);
  color: var(--text-on-dark);
  padding: var(--space-5xl) 0 var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-4xl);
}

@media (min-width: 640px) {
  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer__brand-desc {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  margin-top: var(--space-lg);
  max-width: 320px;
  line-height: var(--lh-relaxed);
}

.footer__heading {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--grey-400);
  margin-bottom: var(--space-lg);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer__link {
  font-size: var(--fs-sm);
  color: var(--text-on-dark-muted);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--white);
}

.footer__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-xl);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  font-size: var(--fs-xs);
  color: var(--grey-500);
}

.footer__legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer__legal-links a {
  color: var(--grey-500);
}

.footer__legal-links a:hover {
  color: var(--grey-300);
}

/* ============================================
   SERVICE PAGE HERO
   ============================================ */

.page-hero {
  padding: var(--space-5xl) 0 var(--space-4xl);
  background: linear-gradient(135deg, #0f1d2f 0%, #1e3a5f 48%, #2a4a6e 100%);
  position: relative;
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
  background:
    radial-gradient(ellipse 50% 50% at 60% 40%, #2f4a66, transparent);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.page-hero__label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--blue-300);
  margin-bottom: var(--space-md);
}

.page-hero__title {
  font-size: var(--fs-4xl);
  color: var(--white);
  margin-bottom: var(--space-lg);
}

.page-hero__desc {
  font-size: var(--fs-xl);
  color: var(--text-on-dark-muted);
  line-height: var(--lh-normal);
  margin-bottom: var(--space-2xl);
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ============================================
   BADGE / TAG
   ============================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-full);
  background: var(--blue-50);
  color: var(--blue-600);
}

.badge--dark {
  background: rgba(47, 74, 102, 0.2);
  color: var(--blue-300);
}

.badge--green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
}

/* ============================================
   ACCORDION
   ============================================ */

.accordion {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.accordion__item {
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  text-align: left;
  color: var(--text-primary);
  background: var(--white);
  transition: background var(--transition-fast);
}

.accordion__trigger:hover {
  background: var(--grey-50);
}

.accordion__trigger svg {
  width: 20px;
  height: 20px;
  color: var(--grey-500);
  transition: transform var(--transition-base);
  flex-shrink: 0;
}

.accordion__item--open .accordion__trigger svg {
  transform: rotate(180deg);
}

.accordion__content {
  display: none;
  padding: 0 var(--space-xl) var(--space-lg);
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-relaxed);
}

.accordion__item--open .accordion__content {
  display: block;
}

/* ============================================
   METRIC HIGHLIGHT
   ============================================ */

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .metric-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.metric-card--dark {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.metric-card__value {
  font-size: clamp(1.75rem, 1.4rem + 1.25vw, 2.25rem);
  font-weight: var(--fw-extrabold);
  color: var(--accent-green);
  line-height: 1;
}

.metric-card__label {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
}

.metric-card--dark .metric-card__label {
  color: var(--text-on-dark-muted);
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-xs);
  color: var(--grey-400);
  margin-bottom: var(--space-xl);
}

.breadcrumb a {
  color: var(--grey-400);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb__separator {
  opacity: 0.5;
}

/* ============================================
   ANIMATION UTILITIES
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in--visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center { text-align: center; }
.text-left { text-align: left; }

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mt-3xl { margin-top: var(--space-3xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.hidden { display: none; }

@media (max-width: 767px) {
  .hide-mobile { display: none !important; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ============================================
   FOOTER BRAND LOGO
   ============================================ */

.footer__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.footer__logo-img {
  width: auto;
  height: auto;
  max-width: 180px;
  max-height: 64px;
  display: block;
}

@media (min-width: 768px) {
  .footer__logo-img {
    max-width: 200px;
    max-height: 72px;
  }
}

/* ============================================
   ANIMATED PERFORMANCE DASHBOARD (Split-Visual)
   ============================================ */

.dashboard-anim {
  position: relative;
  width: 100%;
  background: linear-gradient(160deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid rgba(15, 29, 47, 0.08);
  border-radius: var(--radius-xl, 18px);
  box-shadow:
    0 24px 48px -16px rgba(15, 29, 47, 0.18),
    0 6px 14px -6px rgba(15, 29, 47, 0.08);
  overflow: hidden;
  font-family: inherit;
  color: var(--text-primary, #0f1d2f);
}

.dashboard-anim__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #eef3fb;
  border-bottom: 1px solid rgba(15, 29, 47, 0.06);
}

.dashboard-anim__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #cbd5e1;
}

.dashboard-anim__dot:nth-child(1) { background: #ef4444; }
.dashboard-anim__dot:nth-child(2) { background: #f59e0b; }
.dashboard-anim__dot:nth-child(3) { background: #10b981; }

.dashboard-anim__url {
  flex: 1;
  font-size: 0.75rem;
  color: #64748b;
  text-align: center;
  padding: 3px 10px;
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid rgba(15, 29, 47, 0.06);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-anim__live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ef4444;
}

.dashboard-anim__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  animation: da-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
}

.dashboard-anim__body {
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.dashboard-anim__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.dashboard-anim__kpi {
  background: #ffffff;
  border: 1px solid rgba(15, 29, 47, 0.06);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.dashboard-anim__kpi-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.dashboard-anim__kpi-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary, #0f1d2f);
  letter-spacing: -0.02em;
  line-height: 1.1;
  animation: da-kpi-pulse 4s ease-in-out infinite;
}

.dashboard-anim__kpi:nth-child(2) .dashboard-anim__kpi-value { animation-delay: 0.6s; color: #10b981; }
.dashboard-anim__kpi:nth-child(3) .dashboard-anim__kpi-value { animation-delay: 1.2s; }

.dashboard-anim__kpi-trend {
  font-size: 0.6875rem;
  font-weight: 600;
  margin-top: 2px;
}

.dashboard-anim__kpi-trend.trend-up   { color: #10b981; }
.dashboard-anim__kpi-trend.trend-down { color: #10b981; }

.dashboard-anim__chart-wrap {
  background: #ffffff;
  border: 1px solid rgba(15, 29, 47, 0.06);
  border-radius: 12px;
  padding: 12px 12px 6px;
}

.dashboard-anim__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.dashboard-anim__chart-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.dashboard-anim__legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.dashboard-anim__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.625rem;
  color: #64748b;
}

.dashboard-anim__legend-item .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dashboard-anim__legend-item .dot--blue { background: #3b82f6; }
.dashboard-anim__legend-item .dot--grey { background: #cbd5e1; }

.dashboard-anim__chart {
  width: 100%;
  height: 110px;
  display: block;
}

.dashboard-anim__grid line {
  stroke: rgba(15, 29, 47, 0.06);
  stroke-dasharray: 3 4;
}

.dashboard-anim__line {
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-anim__line--prev {
  stroke: #cbd5e1;
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
}

.dashboard-anim__line--curr {
  stroke: #3b82f6;
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: da-redraw 12s ease-in-out infinite;
}

.dashboard-anim__area {
  opacity: 0;
  animation: da-area-loop 12s ease-in-out infinite;
}

.dashboard-anim__points circle {
  fill: #3b82f6;
  opacity: 0;
  animation: da-point-show 12s ease-in-out infinite;
}

.dashboard-anim__points circle:nth-child(1) { animation-delay: 0.3s; }
.dashboard-anim__points circle:nth-child(2) { animation-delay: 1.0s; }
.dashboard-anim__points circle:nth-child(3) { animation-delay: 1.7s; }
.dashboard-anim__points circle:nth-child(4) { animation-delay: 2.4s; }
.dashboard-anim__points circle:nth-child(5) { animation-delay: 3.0s; }

.dashboard-anim__point--pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: da-point-show 12s ease-in-out 3s infinite, da-point-pulse 1.8s ease-in-out 3.5s infinite;
}

.dashboard-anim__bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 70px;
  padding: 8px 4px 0;
}

.dashboard-anim__bar {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
}

.dashboard-anim__bar > span {
  width: 100%;
  height: 0;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #60a5fa 0%, #3b82f6 100%);
  animation: da-bar-grow 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  transform-origin: bottom;
}

.dashboard-anim__bar:nth-child(1) > span { animation-delay: 0.30s; }
.dashboard-anim__bar:nth-child(2) > span { animation-delay: 0.45s; }
.dashboard-anim__bar:nth-child(3) > span { animation-delay: 0.60s; }
.dashboard-anim__bar:nth-child(4) > span { animation-delay: 0.75s; }
.dashboard-anim__bar:nth-child(5) > span { animation-delay: 0.90s; }
.dashboard-anim__bar:nth-child(6) > span { animation-delay: 1.05s; background: linear-gradient(180deg, #34d399 0%, #10b981 100%); }
.dashboard-anim__bar:nth-child(7) > span { animation-delay: 1.20s; background: linear-gradient(180deg, #34d399 0%, #10b981 100%); }

.dashboard-anim__bar > em {
  font-style: normal;
  font-size: 0.625rem;
  font-weight: 600;
  color: #94a3b8;
  letter-spacing: 0.03em;
}

@keyframes da-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

@keyframes da-redraw {
  0%   { stroke-dashoffset: 800; }
  30%  { stroke-dashoffset: 0; }
  92%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 800; }
}

@keyframes da-area-loop {
  0%, 8%   { opacity: 0; }
  22%      { opacity: 1; }
  92%      { opacity: 1; }
  100%     { opacity: 0; }
}

@keyframes da-point-show {
  0%, 5%   { opacity: 0; }
  10%      { opacity: 1; }
  92%      { opacity: 1; }
  100%     { opacity: 0; }
}

@keyframes da-point-pulse {
  0%, 100% { r: 4; opacity: 1; }
  50%      { r: 7; opacity: 0.55; }
}

@keyframes da-kpi-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}

@keyframes da-bar-grow {
  from { height: 0; }
  to   { height: var(--h, 50%); }
}

/* ============================================
   ANIMATED AI CHAT (GEO Section)
   ============================================ */

.ai-chat {
  position: relative;
  width: 100%;
  background: rgba(15, 29, 47, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl, 18px);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  color: #ffffff;
}

.ai-chat__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat__avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.ai-chat__avatar svg {
  width: 18px;
  height: 18px;
}

.ai-chat__title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.ai-chat__name {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}

.ai-chat__status {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.55);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ai-chat__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  animation: ai-blink 1.4s ease-in-out infinite;
}

.ai-chat__model {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
}

.ai-chat__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
}

.ai-chat__msg {
  display: flex;
  opacity: 0;
  transform: translateY(8px);
}

.ai-chat__msg--user   { justify-content: flex-end; animation: ai-loop-user   14s ease 0s infinite; }
.ai-chat__msg--typing {                            animation: ai-loop-typing 14s ease 0s infinite; }
.ai-chat__msg--reveal {                            animation: ai-loop-reveal 14s ease 0s infinite; }

.ai-chat__bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.45;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-chat__msg--user .ai-chat__bubble {
  background: linear-gradient(135deg, #2563eb, #3b82f6);
  border-color: transparent;
  border-bottom-right-radius: 4px;
}

.ai-chat__msg--bot .ai-chat__bubble {
  border-bottom-left-radius: 4px;
}

.ai-chat__typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ai-chat__typing > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  animation: ai-dot 1.2s ease-in-out infinite;
}

.ai-chat__typing > span:nth-child(2) { animation-delay: 0.18s; }
.ai-chat__typing > span:nth-child(3) { animation-delay: 0.36s; }

.ai-chat__brand {
  display: inline-block;
  padding: 1px 6px;
  margin: 0 1px;
  border-radius: 5px;
  background: rgba(96, 165, 250, 0.22);
  color: #93c5fd;
  font-weight: 700;
  font-style: normal;
  border: 1px solid rgba(96, 165, 250, 0.3);
  animation: ai-brand-glow 14s ease-in-out infinite;
}

.ai-chat__brand--alt {
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
  border-color: rgba(52, 211, 153, 0.3);
  animation-delay: 0.4s;
}

.ai-chat__sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ai-chat__source {
  font-size: 0.6875rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
}

@keyframes ai-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

/* User-Frage erscheint zuerst, bleibt bis kurz vor Loop-Ende stehen */
@keyframes ai-loop-user {
  0%, 1%   { opacity: 0; transform: translateY(8px); }
  4%       { opacity: 1; transform: translateY(0); }
  92%      { opacity: 1; transform: translateY(0); }
  96%      { opacity: 0; transform: translateY(-4px); }
  100%     { opacity: 0; transform: translateY(-4px); }
}

/* Tipp-Indikator: nur kurz sichtbar zwischen Frage und Antwort */
@keyframes ai-loop-typing {
  0%, 14%  { opacity: 0; transform: translateY(8px); }
  17%      { opacity: 1; transform: translateY(0); }
  26%      { opacity: 1; transform: translateY(0); }
  29%      { opacity: 0; transform: translateY(-4px); }
  100%     { opacity: 0; transform: translateY(-4px); }
}

/* Bot-Antwort fadet ein nachdem Tipp-Indikator verschwindet */
@keyframes ai-loop-reveal {
  0%, 29%  { opacity: 0; transform: translateY(8px); }
  33%      { opacity: 1; transform: translateY(0); }
  92%      { opacity: 1; transform: translateY(0); }
  96%      { opacity: 0; transform: translateY(-4px); }
  100%     { opacity: 0; transform: translateY(-4px); }
}

@keyframes ai-dot {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40%           { transform: translateY(-3px); opacity: 1; }
}

@keyframes ai-brand-glow {
  0%, 32%, 60%, 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0); }
  38%, 50%           { box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18); }
}

/* ============================================
   CASE-CARD VISUALS (3 animierte Mini-Charts)
   ============================================ */

.case-card__image--vis {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #f0f7ff 0%, #e6efff 100%);
  display: block;
  padding: 0;
  overflow: hidden;
}

.case-card__image--vis-1 {
  background: linear-gradient(135deg, #eef9f3 0%, #dff5e7 100%);
}

.case-card__image--vis-2 {
  background: linear-gradient(135deg, #f3f0ff 0%, #e9e3ff 100%);
}

.case-vis {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
}

.case-vis svg {
  width: 100%;
  height: 100%;
  display: block;
}

.case-vis__grid line {
  stroke: rgba(15, 29, 47, 0.05);
  stroke-dasharray: 3 4;
}

.case-vis__chip {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}

.case-vis__chip--green {
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.case-vis__chip--blue {
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.case-vis__chip--linkedin {
  background: rgba(2, 132, 199, 0.14);
  color: #075985;
  border: 1px solid rgba(2, 132, 199, 0.3);
}

/* Case 0: Down-trending CPL */
.case-vis--down .case-vis__line {
  stroke: #10b981;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: cv-draw 2.6s ease-out 0.2s forwards, cv-redraw 9s ease-in-out 3s infinite;
}

.case-vis--down .case-vis__area {
  opacity: 0;
  animation: cv-fade 0.6s ease-out 1.6s forwards;
}

/* Case 1: ROAS bars */
.case-vis--bars {
  align-items: flex-end;
  gap: 5px;
  padding: 16px 18px;
}

.case-vis__bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.case-vis__bar > span {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, #818cf8 0%, #6366f1 100%);
  animation: cv-bar 1s cubic-bezier(0.22, 1, 0.36, 1) forwards, cv-bar-loop 9s ease-in-out infinite;
  transform-origin: bottom;
}

.case-vis__bar:nth-child(1) > span { animation-delay: 0.20s, 0s; }
.case-vis__bar:nth-child(2) > span { animation-delay: 0.32s, 0s; }
.case-vis__bar:nth-child(3) > span { animation-delay: 0.44s, 0s; }
.case-vis__bar:nth-child(4) > span { animation-delay: 0.56s, 0s; }
.case-vis__bar:nth-child(5) > span { animation-delay: 0.68s, 0s; }
.case-vis__bar:nth-child(6) > span { animation-delay: 0.80s, 0s; background: linear-gradient(180deg, #c084fc 0%, #a855f7 100%); }
.case-vis__bar:nth-child(7) > span { animation-delay: 0.92s, 0s; background: linear-gradient(180deg, #c084fc 0%, #a855f7 100%); }
.case-vis__bar:nth-child(8) > span { animation-delay: 1.04s, 0s; background: linear-gradient(180deg, #f472b6 0%, #ec4899 100%); }

/* Case 2: LinkedIn-Leads */
.case-vis--leads {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px 16px 16px;
}

.case-vis__lead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 29, 47, 0.06);
  border-radius: 10px;
  opacity: 0;
  transform: translateX(-12px);
  animation: cv-lead-in 0.55s ease-out forwards, cv-lead-loop 9s ease-in-out infinite;
}

.case-vis__lead:nth-child(1) { animation-delay: 0.20s, 0s; }
.case-vis__lead:nth-child(2) { animation-delay: 0.55s, 0s; }
.case-vis__lead:nth-child(3) { animation-delay: 0.90s, 0s; }

.case-vis__avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
}

.case-vis__lead-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.case-vis__lead-line > span {
  display: block;
  height: 5px;
  border-radius: 3px;
  background: rgba(15, 29, 47, 0.12);
}

.case-vis__lead-line > span:first-child { width: 65%; }
.case-vis__lead-line > span:last-child  { width: 90%; background: rgba(15, 29, 47, 0.07); }

.case-vis__plus {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #075985;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
  flex-shrink: 0;
}

@keyframes cv-draw  { to { stroke-dashoffset: 0; } }
@keyframes cv-redraw {
  0%, 100% { stroke-dashoffset: 0; }
  92%      { stroke-dashoffset: 0; }
  96%      { stroke-dashoffset: 600; }
}
@keyframes cv-fade  { to { opacity: 1; } }
@keyframes cv-bar   { to { height: var(--h, 50%); } }
@keyframes cv-bar-loop {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.92); }
}
@keyframes cv-lead-in { to { opacity: 1; transform: translateX(0); } }
@keyframes cv-lead-loop {
  0%, 100% { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
  10%      { box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15); }
  20%      { box-shadow: 0 0 0 0 rgba(2, 132, 199, 0); }
}

/* Bevorzugte Bewegungs-Reduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  .dashboard-anim *,
  .ai-chat *,
  .case-vis * {
    animation: none !important;
    transition: none !important;
  }
  .dashboard-anim__line--curr { stroke-dashoffset: 0; }
  .dashboard-anim__area,
  .dashboard-anim__points circle,
  .ai-chat__msg,
  .case-vis__lead { opacity: 1; transform: none; }
  .dashboard-anim__bar > span,
  .case-vis__bar > span { height: var(--h, 50%); }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--grey-100);
}

::-webkit-scrollbar-thumb {
  background: var(--grey-300);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--grey-400);
}

/* ============================================
   SELECTION
   ============================================ */

::selection {
  background: var(--brand-200);
  color: var(--brand-600);
}

/* ============================================
   PRINT
   ============================================ */

@media print {
  .header,
  .mobile-nav,
  .footer {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: var(--space-xl) 0;
  }

  body {
    color: #000;
    background: #fff;
  }
}
