/* ==========================================================================
   customwebdesigner.de — Design System
   ========================================================================== */

:root {
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-accent: #a855f7;
  --color-ink: #0f172a;
  --color-ink-soft: #1e293b;
  --color-body: #475569;
  --color-muted: #64748b;
  --color-bg: #ffffff;
  --color-bg-soft: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-surface: #ffffff;
  --color-header-bg: rgba(255, 255, 255, 0.85);
  --color-border: #e2e8f0;
  --color-success: #16a34a;
  --color-danger: #dc2626;
  --color-warning: #d97706;

  --gradient-brand: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
  --gradient-dark: linear-gradient(160deg, #0f172a 0%, #1e1b4b 100%);

  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 45px rgba(79, 70, 229, 0.15);

  --container: 1160px;
  --transition: 200ms cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --nav-pill-bg: rgba(99, 102, 241, 0.04);
  --nav-pill-border: rgba(99, 102, 241, 0.16);
}

/* Dark mode palette — applied via explicit toggle ([data-theme="dark"])
   or automatically from the OS setting when the user hasn't chosen manually. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --color-primary: #818cf8;
    --color-primary-dark: #a5b4fc;
    --color-accent: #c084fc;
    --color-ink: #f8fafc;
    --color-ink-soft: #e2e8f0;
    --color-body: #cbd5e1;
    --color-muted: #94a3b8;
    --color-bg: #0b1120;
    --color-bg-soft: #10192c;
    --color-bg-alt: #1a2338;
    --color-surface: #141d31;
    --color-header-bg: rgba(11, 17, 32, 0.85);
    --color-border: #27324a;
    --color-success: #4ade80;
    --color-danger: #f87171;
    --color-warning: #fbbf24;
    --nav-pill-bg: rgba(255, 255, 255, 0.04);
    --nav-pill-border: rgba(255, 255, 255, 0.1);
  }
}
:root[data-theme="dark"] {
  --color-primary: #818cf8;
  --color-primary-dark: #a5b4fc;
  --color-accent: #c084fc;
  --color-ink: #f8fafc;
  --color-ink-soft: #e2e8f0;
  --color-body: #cbd5e1;
  --color-muted: #94a3b8;
  --color-bg: #0b1120;
  --color-bg-soft: #10192c;
  --color-bg-alt: #1a2338;
  --color-surface: #141d31;
  --color-header-bg: rgba(11, 17, 32, 0.85);
  --color-border: #27324a;
  --color-success: #4ade80;
  --color-danger: #f87171;
  --color-warning: #fbbf24;
  --nav-pill-bg: rgba(255, 255, 255, 0.04);
  --nav-pill-border: rgba(255, 255, 255, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-body);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
  /* Long German compounds and e-mail addresses must never widen the page on phones. */
  overflow-wrap: break-word;
  /* Safety net against horizontal scrolling; `clip` (unlike `hidden`) keeps the sticky header working. */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  color: var(--color-ink);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 16px; }

a { color: var(--color-primary-dark); text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
.section-soft { background: var(--color-bg-soft); }
.section-dark { background: var(--gradient-dark); color: #cbd5e1; }

/* Hero, page-hero, contact-panel and section-dark always sit on the fixed
   dark gradient regardless of the site-wide light/dark theme, so their
   headings must always stay white for contrast. */
.hero h1, .hero h2, .hero h3,
.page-hero h1, .page-hero h2, .page-hero h3,
.contact-panel h1, .contact-panel h2, .contact-panel h3,
.section-dark h1, .section-dark h2, .section-dark h3 {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(99, 102, 241, 0.1);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 18px;
}
.hero .eyebrow, .page-hero .eyebrow, .contact-panel .eyebrow, .section-dark .eyebrow {
  color: #c4b5fd; background: rgba(168, 85, 247, 0.15);
}

.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head p { color: var(--color-muted); font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 50px rgba(79,70,229,0.28); }
.btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); }
.btn-outline {
  background: transparent;
  color: var(--color-ink);
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-primary); color: var(--color-primary-dark); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; max-width: 100%; }
  h2, h3, h4, .legal-content { hyphens: auto; -webkit-hyphens: auto; }
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: transform .55s var(--ease-out), background var(--transition), border-color var(--transition);
}
/* Beim Scrollen wird die Leiste zur schwebenden Pille, beim Runterscrollen fährt sie weg */
.site-header.is-scrolled { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.is-hidden { transform: translateY(-120%); }
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1340px;
  padding-top: 13px;
  padding-bottom: 13px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  transition: transform .5s var(--ease-out), max-width .5s var(--ease-out), padding .5s var(--ease-out), background .35s, border-color .35s, box-shadow .35s;
}
.site-header.is-scrolled .nav {
  max-width: 1300px;
  width: calc(100% - 24px);
  padding: 7px 8px 7px 18px;
  transform: translateY(8px);
  background: var(--color-header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--color-border);
  box-shadow: 0 14px 40px -14px rgba(15, 23, 42, 0.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-right: auto;
  white-space: nowrap;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-ink);
}
.brand img { transition: transform .7s var(--ease-out); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand-accent { color: var(--color-primary-dark); }

.nav-main { position: relative; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  position: relative;
  z-index: 1;
  display: block;
  padding: 8px 15px;
  border-radius: var(--radius-full);
  border: 1px solid var(--nav-pill-border);
  background: var(--nav-pill-bg);
  color: var(--color-ink-soft);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.3;
  white-space: nowrap;
  transition: color .3s, border-color .3s, background-color .3s;
}
.nav-links a:hover, .nav-links a:focus-visible { border-color: var(--color-primary); }
.nav-links a.is-active { color: var(--color-primary-dark); border-color: var(--color-primary); }
.nav-links a.is-lit { color: #fff; border-color: transparent; background-color: transparent; }
/* Gleitende Verlaufs-Pille unter dem aktiven / gehoverten Link */
.nav-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: var(--radius-full);
  background: var(--gradient-brand);
  box-shadow: 0 8px 22px -6px rgba(99, 102, 241, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out), opacity .3s;
}
.nav-indicator.is-on { opacity: 1; }

.nav-cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; margin-left: auto; }
.btn-nav { padding: 11px 22px; }
.nav-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition);
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-ink);
  transition: transform .5s var(--ease-out), opacity .3s, background .3s;
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-border);
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: border-color var(--transition), transform .6s var(--ease-out);
}
.theme-toggle:hover { border-color: var(--color-primary); transform: rotate(25deg); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: inline; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mittlere Breiten: "Kontakt" steckt schon im Button "Anfrage senden" */
@media (max-width: 1279px) {
  .nav-item-contact { display: none; }
  .nav { gap: 14px; }
  .nav-links { gap: 4px; }
  .nav-links a { padding: 8px 12px; font-size: 0.88rem; }
}

/* Vollbild-Menü (Tablet & Handy) */
.mobile-menu { display: none; }
@media (max-width: 1119px) {
  .nav-main { display: none; }
  .nav-toggle { display: block; }
  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 95;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    padding: 100px 28px 40px;
    overflow-y: auto;
    background: var(--gradient-dark);
    clip-path: circle(0px at var(--mx, calc(100% - 40px)) var(--my, 34px));
    visibility: hidden;
    transition: clip-path .8s var(--ease-in-out), visibility 0s .8s;
  }
  .mobile-menu::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
      radial-gradient(circle at 85% 15%, rgba(168, 85, 247, 0.35), transparent 45%),
      radial-gradient(circle at 10% 90%, rgba(99, 102, 241, 0.35), transparent 45%);
    pointer-events: none;
  }
  .menu-open .mobile-menu {
    clip-path: circle(150vmax at var(--mx, calc(100% - 40px)) var(--my, 34px));
    visibility: visible;
    transition: clip-path .8s var(--ease-in-out), visibility 0s;
  }
  .mobile-menu-links { display: grid; gap: 2px; }
  .mobile-menu-links a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    width: fit-content;
    color: #fff;
    font-weight: 800;
    font-size: clamp(1.8rem, 8vw, 2.8rem);
    letter-spacing: -0.02em;
    line-height: 1.3;
    opacity: 0;
    transform: translateY(36px);
    transition: opacity .5s, transform .7s var(--ease-out), color .3s;
  }
  .mobile-menu-links a small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; color: #a5b4fc; }
  .mobile-menu-links a:hover, .mobile-menu-links a.is-active { color: #c4b5fd; }
  .mobile-menu-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 22px;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .5s, transform .7s var(--ease-out);
  }
  .mobile-menu-foot > a:not(.btn) { color: #cbd5e1; font-size: 0.95rem; }
  .menu-open .mobile-menu-links a,
  .menu-open .mobile-menu-foot { opacity: 1; transform: none; transition-delay: calc(0.22s + var(--i) * 45ms); }

  /* Header liegt über dem offenen Menü und wird dafür hell */
  html.menu-open { overflow: hidden; }
  .menu-open .site-header { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transform: none; }
  .menu-open .site-header .nav { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-open .brand { color: #fff; }
  .menu-open .brand-accent { color: #a5b4fc; }
  .menu-open .nav-toggle, .menu-open .theme-toggle { border-color: rgba(255, 255, 255, 0.3); }
  .menu-open .nav-toggle span { background: #fff; }
}
@media (max-width: 860px) {
  .nav-cta .btn-nav { display: none; }
}

/* Small phones: tighter gutters and a smaller brand so logo, theme toggle and menu fit in one row */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .brand { font-size: 0.98rem; gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .nav-cta { gap: 8px; }
  .site-header.is-scrolled .nav { width: calc(100% - 16px); padding: 6px 6px 6px 14px; }
  .mobile-menu { padding: 92px 22px 32px; }
}
@media (max-width: 360px) {
  .brand { font-size: 0.88rem; }
  .brand img { width: 26px; height: 26px; }
  .theme-toggle, .nav-toggle { width: 38px; height: 38px; font-size: 1rem; }
  .nav-toggle span { left: 10px; right: 10px; }
  .nav-toggle span:nth-child(1) { top: 12px; }
  .nav-toggle span:nth-child(2) { top: 17px; }
  .nav-toggle span:nth-child(3) { top: 22px; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: calc(100vh - 70px);
  min-height: calc(100svh - 70px);
  padding: 96px 0 110px;
  color: #fff;
  background: var(--gradient-dark);
}
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--c), transparent);
  will-change: transform;
  translate: calc(var(--px, 0) * 40px) calc(var(--py, 0) * 40px);
  transition: translate 1.4s var(--ease-out);
  animation: auroraFloat 26s ease-in-out infinite alternate;
}
.aurora-1 { --c: rgba(99, 102, 241, 0.55); width: 62vmax; height: 62vmax; top: -28vmax; left: -18vmax; }
.aurora-2 { --c: rgba(168, 85, 247, 0.5); width: 56vmax; height: 56vmax; bottom: -30vmax; right: -16vmax; animation-delay: -9s; animation-duration: 32s; }
.aurora-3 { --c: rgba(236, 72, 153, 0.22); width: 34vmax; height: 34vmax; top: 28%; left: 42%; animation-delay: -16s; translate: calc(var(--px, 0) * -60px) calc(var(--py, 0) * -60px); }
@keyframes auroraFloat {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vw, 6vh) scale(1.12); }
  100% { transform: translate(-5vw, 12vh) scale(.94); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: .7;
  -webkit-mask-image: radial-gradient(ellipse 65% 60% at 70% 45%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 60% at 70% 45%, #000 10%, transparent 75%);
}
.hero-grid::before {
  content: "";
  position: absolute;
  inset: -56px;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  will-change: transform;
  animation: gridPan 10s linear infinite;
}
@keyframes gridPan { to { transform: translate(56px, 56px); } }

.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 64px; align-items: center; }
.hero-title { font-size: clamp(2.2rem, 4.3vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em; }
.hero p.lead { font-size: 1.15rem; color: #cbd5e1; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.7rem; color: #fff; font-variant-numeric: tabular-nums; }
.hero-stats .stat > span { font-size: 0.85rem; color: #94a3b8; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74, 222, 128, .7); animation: pulseDot 2s infinite; }
@keyframes pulseDot { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); } }

/* Live-Demo: ein Browserfenster, in dem nacheinander Websites für verschiedene Branchen entstehen */
.hero-visual { position: relative; width: 100%; max-width: 500px; justify-self: center; perspective: 1400px; }
.hv-stage {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 5deg));
  transition: transform 1s var(--ease-out);
}
.hv-browser {
  container-type: inline-size;
  border-radius: 18px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 50px 100px -30px rgba(79, 70, 229, .6), 0 0 0 1px rgba(255,255,255,.04) inset;
  animation: hvBob 8s ease-in-out infinite;
}
@keyframes hvBob { 50% { translate: 0 -10px; } }
.hv-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #1e293b; border-bottom: 1px solid rgba(255,255,255,.06); }
.hv-dots { display: flex; gap: 6px; flex-shrink: 0; }
.hv-dots i { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.hv-dots i:nth-child(2) { background: #fbbf24; }
.hv-dots i:nth-child(3) { background: #4ade80; }
.hv-url {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.07);
  color: #cbd5e1;
  font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  overflow: hidden;
}
.hv-url svg { color: #4ade80; flex-shrink: 0; }
.hv-caret { width: 1.5px; height: 13px; background: #cbd5e1; animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }

.hv-page {
  --p: #818cf8; --p2: #c084fc; --pbg: #ffffff; --pink: #0f172a; --psoft: #eef2ff; --pmuted: #e0e7ff;
  position: relative;
  font-size: 3.1cqw;
  padding: 1.3em 1.4em 1.5em;
  background-color: var(--pbg);
  color: var(--pink);
  transition: background-color .7s, color .7s;
}
/* Wireframe-Phase: Millimeterpapier */
.hv-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #f8fafc;
  background-image: linear-gradient(rgba(99,102,241,.1) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,.1) 1px, transparent 1px);
  background-size: 1.2em 1.2em;
  opacity: 1;
  transition: opacity .8s;
}
.hv-page.is-built::before { opacity: 0; transition-delay: .2s; }
.hv-page > * { position: relative; }
.hv-nav { display: flex; align-items: center; gap: .6em; margin-bottom: 1.5em; padding: .2em; border-radius: .7em; }
.hv-logo { display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: .55em; background: linear-gradient(135deg, var(--p), var(--p2)); color: #fff; font-size: 1em; line-height: 1; }
.hv-brandname { font-weight: 800; font-size: .85em; white-space: nowrap; }
.hv-links { display: flex; gap: .5em; margin-left: auto; }
.hv-links i { width: 2.3em; height: .42em; border-radius: 99px; background: var(--pmuted); }
.hv-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 1em; align-items: center; margin-bottom: 1.4em; }
.hv-copy { min-width: 0; }
.hv-kicker { display: inline-block; margin-bottom: .7em; padding: .35em .85em; border-radius: 99px; background: var(--psoft); color: var(--p); font-size: .62em; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hv-title { display: block; min-height: 2.25em; margin-bottom: .5em; font-size: 1.45em; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.hv-line { display: block; width: 94%; height: .48em; margin-bottom: .45em; border-radius: 99px; background: var(--pmuted); }
.hv-line-short { width: 66%; }
.hv-cta {
  display: inline-block;
  margin-top: .75em;
  padding: .65em 1.15em;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--p), var(--p2));
  color: #fff;
  font-size: .7em;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 .8em 1.6em -.6em var(--p);
}
.hv-cta::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 var(--p); opacity: 0; }
.hv-cta.is-clicked { animation: hvPress .45s var(--ease-out); }
.hv-cta.is-clicked::after { animation: hvRipple .7s ease-out; }
@keyframes hvPress { 40% { transform: scale(.92); } }
@keyframes hvRipple { 0% { opacity: .9; box-shadow: 0 0 0 0 var(--p); } 100% { opacity: 0; box-shadow: 0 0 0 1.4em var(--p); } }
.hv-img {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 1em;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.55), transparent 45%), linear-gradient(135deg, var(--p), var(--p2));
  font-size: 2.9em;
  line-height: 1;
  overflow: hidden;
}
.hv-img span { filter: drop-shadow(0 .1em .15em rgba(0,0,0,.25)); }
.hv-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7em; }
.hv-card { display: block; padding: .8em; border-radius: .8em; background: var(--psoft); }
.hv-card i { display: block; width: 1.5em; height: 1.5em; margin-bottom: .6em; border-radius: .45em; background: linear-gradient(135deg, var(--p), var(--p2)); }
.hv-card b { display: block; height: .42em; margin-bottom: .35em; border-radius: 99px; background: var(--pmuted); }
.hv-card b:last-child { width: 60%; margin-bottom: 0; }

/* Bauphasen: leer -> Wireframe (gestrichelt) -> fertiges Design */
.hv-b {
  opacity: 0;
  transform: translateY(.8em) scale(.96);
  transition: opacity .5s var(--ease-out), transform .7s var(--ease-out), background-color .6s, color .6s, outline-color .4s, box-shadow .6s;
  transition-delay: calc(var(--i) * 80ms);
  outline: 1.5px dashed transparent;
  outline-offset: -1px;
}
.hv-b > * { transition: opacity .5s; transition-delay: calc(var(--i) * 80ms + 120ms); }
.hv-page.is-wire .hv-b { opacity: 1; transform: none; }
.hv-page.is-wire:not(.is-built) .hv-b { background: transparent; color: transparent; box-shadow: none; outline-color: rgba(100,116,139,.6); }
.hv-page.is-wire:not(.is-built) .hv-b > * { opacity: 0; }
.hv-page.is-clearing .hv-b { opacity: 0; transform: translateY(-.5em) scale(.98); transition-duration: .3s; transition-delay: calc((8 - var(--i)) * 30ms); }

.hv-pointer {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 1.7em;
  height: 1.7em;
  opacity: 0;
  transform: translate(var(--x, 0), var(--y, 0));
  transition: transform 1s var(--ease-in-out), opacity .35s;
  filter: drop-shadow(0 .2em .3em rgba(0,0,0,.35));
  pointer-events: none;
}
.hv-pointer.is-on { opacity: 1; }
.hv-pointer.is-click { transition: transform .15s, opacity .35s; transform: translate(var(--x, 0), var(--y, 0)) scale(.82); }

.hv-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 10px;
  border-radius: 16px;
  background: rgba(15, 23, 42, .88);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 40px -14px rgba(0,0,0,.55);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: translate3d(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -16px), 60px);
  transition: transform 1.2s var(--ease-out);
  animation: chipFloat 6s ease-in-out infinite;
}
.hv-chip b { display: block; font-size: 1.05rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hv-chip small { display: block; font-size: .68rem; color: #94a3b8; letter-spacing: .04em; }
.hv-chip-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: rgba(255,255,255,.08); font-size: 1.1rem; }
.hv-chip-speed { top: -24px; right: -26px; }
.hv-chip-mobile { bottom: 16%; left: -40px; animation-delay: -2.2s; }
.hv-ring { transition: stroke-dashoffset 1.8s var(--ease-out); }
@keyframes chipFloat { 50% { translate: 0 -10px; } }
.hv-code {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: -36px;
  display: grid;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(15, 23, 42, .92);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 24px 40px -14px rgba(0,0,0,.55);
  color: #94a3b8;
  font: 12px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: nowrap;
  transform: translate3d(calc(var(--px, 0) * -24px), calc(var(--py, 0) * -24px), 80px);
  transition: transform 1.2s var(--ease-out);
  animation: chipFloat 7s ease-in-out infinite;
  animation-delay: -4s;
}
.hv-code em { font-style: normal; color: #c084fc; }
.hv-code strong { color: #fff; font-weight: 600; }
.hv-swatch { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 3px; background: var(--hv-color, #818cf8); vertical-align: -1px; transition: background .5s; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 26px;
  height: 42px;
  margin-left: -13px;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.35);
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: scrollDot 1.8s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(-4px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

@media (max-width: 900px) {
  .hero { min-height: 0; padding: 72px 0 96px; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { max-width: 460px; --ry: 0deg; --rx: 0deg; }
  .hv-stage { --ry: 0deg; --rx: 0deg; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .hero { padding: 56px 0 84px; }
  .hero-visual { max-width: 100%; }
  .hv-chip { padding: 7px 12px 7px 8px; gap: 8px; border-radius: 13px; }
  .hv-chip svg { width: 30px; height: 30px; }
  .hv-chip-icon { width: 30px; height: 30px; font-size: .95rem; }
  .hv-chip b { font-size: .92rem; }
  .hv-chip-speed { top: -20px; right: -6px; }
  .hv-chip-mobile { left: -6px; bottom: 14%; }
  .hv-code { right: 8px; bottom: -30px; padding: 9px 14px; font-size: 11px; }
  .hv-bar { padding: 8px 10px; gap: 8px; }
  .hv-dots i { width: 8px; height: 8px; }
}

/* Cards / Grids */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
  color: #fff; margin-bottom: 20px; font-size: 1.4rem;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--color-muted); margin-bottom: 0; font-size: 0.95rem; }

/* Pricing */
.price-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border: 2px solid var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.price-card .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-brand); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 6px 16px; border-radius: var(--radius-full); white-space: nowrap;
}
.price-card .amount { font-size: 2.4rem; font-weight: 800; color: var(--color-ink); margin: 12px 0 4px; }
.price-card .amount small { font-size: 0.95rem; font-weight: 600; color: var(--color-muted); }
.price-card ul { list-style: none; padding: 0; margin: 24px 0 28px; flex-grow: 1; }
.price-card ul li { padding: 9px 0; border-top: 1px solid var(--color-border); font-size: 0.92rem; color: var(--color-ink-soft); }
.price-card ul li:first-child { border-top: none; }
.price-card ul li::before { content: "✓ "; color: var(--color-success); font-weight: 800; }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 4px 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.faq-item[open] { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 32px 18px 0;
  font-weight: 700;
  color: var(--color-ink);
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-primary);
  transition: transform var(--transition);
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { color: var(--color-muted); margin: 0 0 20px; font-size: 0.95rem; line-height: 1.6; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-left: 4px; }
.step .num {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff; font-weight: 800;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}

/* Testimonials */
.testimonial {
  background: var(--color-bg-soft);
  border-radius: var(--radius-md);
  padding: 28px;
  border: 1px solid var(--color-border);
}
.testimonial p { font-style: italic; color: var(--color-ink-soft); }
.testimonial .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testimonial .avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gradient-brand); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}
.testimonial .who b { display: block; font-size: 0.9rem; color: var(--color-ink); }
.testimonial .who span { font-size: 0.8rem; color: var(--color-muted); }

/* Contact panel (footer CTA form on every page) */
.contact-panel {
  background: var(--gradient-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 52px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  position: relative;
  overflow: hidden;
}
.contact-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(168,85,247,0.35), transparent 50%);
}
.contact-panel-info { position: relative; }
.contact-panel-info ul { list-style: none; padding: 0; margin: 24px 0 0; }
.contact-panel-info li { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; color: #cbd5e1; font-size: 0.95rem; }
.contact-panel-info li b { color: #fff; }
.contact-panel-info li > * { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .contact-panel { grid-template-columns: 1fr; padding: 32px 22px; }
}

.form-grid { position: relative; display: grid; gap: 16px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row-2 { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #e2e8f0;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.1);
}
.field select option { color: #0f172a; }
/* Natives Select (Handy, ohne JS): eigener Pfeil statt Browser-Standard */
.field select, .field select:focus {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a5b4fc' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}

/* Eigenes Dropdown (Desktop) — das echte <select> bleibt versteckt für den Formularversand */
.cselect { position: relative; }
.cselect-native { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.cselect-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.07);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .3s;
}
.cselect-trigger:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.09); }
.cselect-trigger:focus-visible, .cselect.is-open .cselect-trigger {
  outline: none;
  border-color: var(--color-primary);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.18);
}
.cselect-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cselect-trigger.is-placeholder .cselect-value { color: #94a3b8; }
.cselect-chevron { flex-shrink: 0; width: 18px; height: 18px; color: #a5b4fc; transition: transform .45s var(--ease-out); }
.cselect.is-open .cselect-chevron { transform: rotate(180deg); }
.cselect-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  max-height: 290px;
  margin: 0;
  padding: 6px;
  list-style: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(129,140,248,.4) transparent;
  border-radius: 14px;
  background: rgba(17, 22, 44, 0.97);
  border: 1px solid rgba(129, 140, 248, 0.3);
  box-shadow: 0 28px 60px -14px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255,255,255,0.03) inset;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(.97);
  transform-origin: top center;
  transition: opacity .2s, transform .35s var(--ease-out), visibility 0s .35s;
}
.cselect.is-up .cselect-list { top: auto; bottom: calc(100% + 8px); transform: translateY(8px) scale(.97); transform-origin: bottom center; }
.cselect.is-open .cselect-list { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .35s var(--ease-out), visibility 0s; }
.cselect-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 9px;
  color: #cbd5e1;
  font-size: 0.93rem;
  cursor: pointer;
  user-select: none;
  transition: background-color .15s, color .15s;
}
.cselect.is-open .cselect-option { animation: cselectIn .4s var(--ease-out) both; animation-delay: calc(var(--i) * 28ms); }
@keyframes cselectIn { from { opacity: 0; transform: translateY(-6px); } }
.cselect-option.is-active { background-color: rgba(129, 140, 248, 0.14); color: #fff; }
.cselect-option[aria-selected="true"] { color: #fff; font-weight: 600; background-color: transparent; background-image: linear-gradient(90deg, rgba(99,102,241,.38), rgba(168,85,247,.22)); }
.cselect-option[aria-selected="true"].is-active { background-image: linear-gradient(90deg, rgba(99,102,241,.5), rgba(168,85,247,.32)); }
.cselect-option svg { flex-shrink: 0; width: 16px; height: 16px; color: #c4b5fd; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .35s var(--ease-out); }
.cselect-option[aria-selected="true"] svg { opacity: 1; transform: none; }
.field small.err { color: #fca5a5; font-size: 0.78rem; margin-top: 4px; display: none; }
.honeypot { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-msg { padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; margin-bottom: 6px; display: none; }
.form-msg.show { display: block; }
.form-msg.success { background: rgba(22,163,74,0.15); border: 1px solid rgba(22,163,74,0.4); color: #86efac; }
.form-msg.error { background: rgba(220,38,38,0.15); border: 1px solid rgba(220,38,38,0.4); color: #fca5a5; }

/* Page hero (subpages) */
.page-hero { padding: 72px 0 56px; background: var(--gradient-dark); color: #fff; text-align: center; }
.page-hero p { color: #cbd5e1; max-width: 620px; margin: 0 auto; }
.breadcrumb { font-size: 0.85rem; color: #94a3b8; margin-bottom: 14px; }
.breadcrumb a { color: #c4b5fd; }

/* Footer */
.site-footer { background: #0b1120; color: #94a3b8; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-grid > div { min-width: 0; }
.footer-grid a { overflow-wrap: break-word; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.footer-grid h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: #94a3b8; font-size: 0.9rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
}
.footer-bottom a { color: #94a3b8; }
.footer-bottom a:hover { color: #fff; }

/* Utility */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--color-bg-alt);
  color: var(--color-ink-soft);
  margin-right: 8px;
  margin-bottom: 8px;
}
.legal-content h2 { margin-top: 36px; }
.legal-content h3 { margin-top: 24px; }
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content ul { padding-left: 20px; }

.fade-up {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(6px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out), filter .9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.fade-up.in { opacity: 1; transform: none; filter: none; }

/* Star ratings (read-only display, e.g. on testimonial cards) */
.stars { color: #f59e0b; letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 6px; }

/* Star rating input (review form) */
.star-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-input label {
  font-size: 1.9rem; line-height: 1; color: var(--color-border); cursor: pointer;
  transition: color var(--transition);
}
.star-input label:hover,
.star-input label:hover ~ label,
.star-input input:checked ~ label { color: #f59e0b; }
.star-input input:focus-visible + label { outline: 2px solid var(--color-primary); outline-offset: 2px; border-radius: 4px; }

/* Light form variant — for forms placed on regular (non-dark) page backgrounds */
.light-form .field label { color: var(--color-ink-soft); }
.light-form .field input,
.light-form .field select,
.light-form .field textarea {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  color: var(--color-ink);
}
.light-form .field input::placeholder,
.light-form .field textarea::placeholder { color: var(--color-muted); }
.light-form .field input:focus,
.light-form .field select:focus,
.light-form .field textarea:focus { background: var(--color-bg); }
.light-form .form-msg.success { background: rgba(22,163,74,0.12); border: 1px solid rgba(22,163,74,0.35); color: var(--color-success); }
.light-form .form-msg.error { background: rgba(220,38,38,0.12); border: 1px solid rgba(220,38,38,0.35); color: var(--color-danger); }

/* WhatsApp floating action button */
.whatsapp-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 60;
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover { transform: scale(1.08); }

/* Ratgeber / Blog */
.article-meta { color: var(--color-muted); font-size: 0.85rem; margin-bottom: 8px; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 1.02rem; line-height: 1.75; color: var(--color-body); }
.article-body h2 { font-size: 1.4rem; margin: 40px 0 14px; color: var(--color-ink); }
.article-body h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--color-ink); }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 18px; padding-left: 22px; }
.article-body li { margin-bottom: 8px; }
.article-body a { text-decoration: underline; }

/* ==========================================================================
   Motion & Effekte
   ========================================================================== */

/* Scroll-Fortschritt */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 150;
  height: 3px;
  background: var(--gradient-brand);
  box-shadow: 0 0 12px rgba(168, 85, 247, .6);
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* Seitenübergang: Intro beim ersten Besuch, Vorhang bei jedem internen Seitenwechsel */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: var(--gradient-dark);
  visibility: hidden;
  transform: translateY(100%);
  pointer-events: none;
}
.page-curtain::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(99,102,241,.35), transparent 45%), radial-gradient(circle at 80% 85%, rgba(168,85,247,.3), transparent 45%);
}
.page-curtain-inner { position: relative; display: grid; justify-items: center; gap: 18px; transition: opacity .4s, transform .6s var(--ease-out); }
.page-curtain-inner img { width: 56px; height: 56px; }
.page-curtain-word { color: #fff; font-weight: 800; font-size: clamp(1.3rem, 4vw, 1.9rem); letter-spacing: -.02em; }
.page-curtain-word span { color: #a5b4fc; }
.page-curtain-bar { display: block; width: min(240px, 60vw); height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); overflow: hidden; }
.page-curtain-bar i { display: block; height: 100%; background: var(--gradient-brand); box-shadow: 0 0 12px #a855f7; transform-origin: left; transform: scaleX(0); }

html.pt-intro .page-curtain,
html.pt-enter .page-curtain,
html.pt-leave .page-curtain { visibility: visible; transform: none; pointer-events: auto; }
html.pt-leave .page-curtain { transition: transform .5s var(--ease-in-out); }
html.pt-intro .page-curtain-inner img { animation: ptLogo 1s var(--ease-out) both; }
html.pt-intro .page-curtain-word { animation: ptWord .9s .15s var(--ease-out) both; }
html.pt-intro .page-curtain-bar i { animation: ptBar 1s .1s var(--ease-in-out) forwards; }
html.pt-enter .page-curtain-word, html.pt-enter .page-curtain-bar,
html.pt-leave .page-curtain-word, html.pt-leave .page-curtain-bar { display: none; }
html.pt-enter .page-curtain-inner img, html.pt-leave .page-curtain-inner img { animation: ptLogoPulse .9s ease-in-out infinite; }
html.pt-go .page-curtain { transform: translateY(-100%); transition: transform .8s var(--ease-in-out); pointer-events: none; }
html.pt-intro.pt-go .page-curtain { transition-duration: 1s; }
html.pt-go .page-curtain-inner { opacity: 0; transform: translateY(-40px); }
/* Notbremse, falls main.js nicht lädt: Vorhang verschwindet trotzdem */
html.pt-intro .page-curtain, html.pt-enter .page-curtain { animation: ptFailsafe 0s 4s forwards; }
@keyframes ptFailsafe { to { visibility: hidden; } }
@keyframes ptLogo { from { opacity: 0; transform: scale(.6) rotate(-25deg); } }
@keyframes ptWord { from { opacity: 0; transform: translateY(16px); letter-spacing: .1em; } }
@keyframes ptBar { to { transform: scaleX(1); } }
@keyframes ptLogoPulse { 50% { transform: scale(.88); opacity: .7; } }

/* Eigener Cursor (nur Maus) */
.cursor { display: none; }
html.has-cursor .cursor { display: block; }
html.has-cursor body, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor label { cursor: none; }
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2100;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--color-primary); box-shadow: 0 0 10px var(--color-primary); transition: opacity .2s; }
.cursor-ring {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1.5px solid rgba(129, 140, 248, .55);
  transition: width .4s var(--ease-out), height .4s var(--ease-out), margin .4s var(--ease-out), background .3s, border-color .3s, opacity .2s;
}
.cursor-label { color: #fff; font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.cursor.is-link .cursor-ring { width: 58px; height: 58px; margin: -29px 0 0 -29px; background: rgba(129, 140, 248, .14); border-color: var(--color-primary); }
.cursor.is-label .cursor-ring { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--gradient-brand); border-color: transparent; }
.cursor.is-label .cursor-label { opacity: 1; }
.cursor.is-label .cursor-dot { opacity: 0; }
.cursor.is-down .cursor-ring { width: 30px; height: 30px; margin: -15px 0 0 -15px; }
.cursor.is-hidden .cursor-dot, .cursor.is-hidden .cursor-ring,
.cursor:not(.is-moved) .cursor-dot, .cursor:not(.is-moved) .cursor-ring,
.cursor.is-text .cursor-dot, .cursor.is-text .cursor-ring { opacity: 0; }

/* Buttons: Lichtreflex, Füll-Effekt, Pfeil */
.btn { position: relative; isolation: isolate; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s var(--ease-out);
}
.btn-primary:hover::after { transform: translateX(120%); }
.btn-outline::before, .btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease-out);
}
.btn-outline::before { background: var(--gradient-brand); }
.btn-outline:hover { color: #fff; border-color: transparent; }
.btn-ghost::before { background: #fff; }
.btn-ghost:hover { color: #0f172a; background: rgba(255,255,255,0.08); }
.btn-outline:hover::before, .btn-ghost:hover::before { transform: scaleY(1); }
.btn-arrow { display: inline-block; transition: transform .4s var(--ease-out); }
.btn:hover .btn-arrow { transform: translateX(5px); }

/* Karten: 3D-Neigung + Lichtkegel, der der Maus folgt */
.card, .price-card, .testimonial { position: relative; isolation: isolate; }
.card::before, .price-card::before, .testimonial::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(129, 140, 248, .16), transparent 45%);
  opacity: 0;
  transition: opacity .4s;
  pointer-events: none;
}
.card:hover::before, .price-card:hover::before, .testimonial:hover::before { opacity: 1; }
.card:hover, .testimonial:hover { border-color: rgba(129, 140, 248, .45); }
.card:hover .icon { animation: iconPop .6s var(--ease-out); }
@keyframes iconPop { 40% { transform: scale(1.18) rotate(-8deg); } }
.price-card.featured.fade-up.in { transform: scale(1.03); }

/* Überschriften: Wörter gleiten aus einer Maske */
.sw { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.sw > span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease-out); transition-delay: calc(var(--wi) * 55ms + 120ms); }
.fade-up.in .sw > span, html.is-ready .page-hero .sw > span { transform: none; }

/* Hero-Headline: Buchstabe für Buchstabe */
.split-word { display: inline-block; white-space: nowrap; }
.char { display: inline-block; }
html.js .hero-title .char {
  opacity: 0;
  transform: translateY(.5em) rotate(8deg);
  transition: opacity .6s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--i) * 22ms + 60ms);
}
html.is-ready .hero-title .char { opacity: 1; transform: none; }

/* Hero-Elemente nacheinander einblenden */
html.js .hero-eyebrow, html.js .hero .lead, html.js .hero-actions, html.js .hero-stats, html.js .hero-visual,
html.js .page-hero .breadcrumb, html.js .page-hero .eyebrow, html.js .page-hero p {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out);
  animation: revealFailsafe 0s 4s forwards;
}
html.js .hero-visual { transform: translateY(50px) scale(.94); }
html.is-ready .hero-eyebrow, html.is-ready .hero .lead, html.is-ready .hero-actions, html.is-ready .hero-stats, html.is-ready .hero-visual,
html.is-ready .page-hero .breadcrumb, html.is-ready .page-hero .eyebrow, html.is-ready .page-hero p { opacity: 1; transform: none; }
html.is-ready .hero .lead { transition-delay: .55s; }
html.is-ready .hero-actions { transition-delay: .7s; }
html.is-ready .hero-stats { transition-delay: .85s; }
html.is-ready .hero-visual { transition-delay: .35s; transition-duration: 1.2s, 1.5s; }
html.is-ready .page-hero .eyebrow { transition-delay: .1s; }
html.is-ready .page-hero p { transition-delay: .4s; }
@keyframes revealFailsafe { to { opacity: 1; transform: none; } }

/* Laufband unter dem Hero (reagiert auf Scroll-Tempo) */
.marquee { overflow: hidden; padding: 28px 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.marquee-track { display: flex; width: max-content; will-change: transform; }
.marquee-group { display: flex; align-items: center; gap: 36px; padding-right: 36px; }
.marquee span { color: var(--color-ink); font-size: clamp(2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.marquee span.outline { color: transparent; -webkit-text-stroke: 1.5px var(--color-muted); }
.marquee i { display: inline-block; color: var(--color-primary); font-size: 1.6rem; font-style: normal; animation: spin 8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .marquee { padding: 18px 0; } .marquee-group { gap: 24px; padding-right: 24px; } }

/* Ablauf: Linie füllt sich beim Scrollen und schaltet die Schritte frei */
.steps { position: relative; }
.steps-line { position: absolute; top: 20px; left: 25px; right: calc(25% - 43px); height: 2px; border-radius: 2px; background: var(--color-border); overflow: hidden; }
.steps-line i { display: block; height: 100%; background: var(--gradient-brand); transform-origin: left; transform: scaleX(0); }
.step { z-index: 1; }
.step .num { box-shadow: 0 0 0 6px var(--color-bg-soft); transition: box-shadow .5s, transform .5s var(--ease-out); }
.step.is-lit .num { box-shadow: 0 0 0 6px var(--color-bg-soft), 0 0 0 10px rgba(129, 140, 248, .3), 0 10px 25px rgba(99, 102, 241, .45); transform: scale(1.08); }
@media (max-width: 900px) { .steps-line { display: none; } }

/* Unterseiten-Hero: wanderndes Raster + Farbnebel */
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before {
  content: "";
  position: absolute;
  inset: -56px;
  z-index: -1;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 50% 40%, #000 10%, transparent 75%);
  animation: gridPan 10s linear infinite;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -2;
  background: radial-gradient(circle at 30% 40%, rgba(99,102,241,.35), transparent 30%), radial-gradient(circle at 70% 60%, rgba(168,85,247,.3), transparent 30%);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift { to { transform: translate(6%, -4%) rotate(8deg); } }

/* Footer: großer Schriftzug fährt beim Erreichen hoch */
.site-footer { overflow: hidden; }
.footer-mega { margin: 0 0 28px; overflow: hidden; text-align: center; line-height: .9; user-select: none; }
.footer-mega span {
  display: inline-block;
  font-size: clamp(1.8rem, 8.9vw, 7.1rem);
  font-weight: 900;
  letter-spacing: -.05em;
  white-space: nowrap;
  background: linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.02));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transform: translate3d(0, var(--fy, 0%), 0);
}

/* WhatsApp-Button pulsiert dezent */
.whatsapp-fab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 70%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

/* Dark-Mode-Wechsel: Kreis wächst vom Schalter aus (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: none !important; }

/* Animationen außerhalb des sichtbaren Bereichs anhalten (spart Akku/CPU) */
.is-paused, .is-paused *, .is-paused::before, .is-paused::after, .is-paused *::before, .is-paused *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .fade-up { filter: none; }
  .page-curtain, .cursor { display: none !important; }
}
