/* ── Monosales · Designsystem „Reflect Notes — starlit violet cosmos" ──
   Canvas Void #030014, Text Lilac White, ein einziger Akzent: Lavender #9382ff.
   Headings in Medium 500 (nie fett), Flächen durch Inset-Rim-Light statt Schatten,
   Radii strikt 5 / 16 / 24 / 32 / 999. Cosmic-Gradient nur auf Akzent-Text.
   Glow-, Hover- und Bewegungs-Layer bleiben monochrom (Lavender/Iris) und
   respektieren prefers-reduced-motion. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Winkel-Property für rotierende Verlaufsränder (mit stiller Degradation) */
@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

:root {
  color-scheme: dark;

  /* Farben */
  --void: #030014;        /* Seitenhintergrund — nie reines Schwarz */
  --midnight: #060317;    /* Karten, Nav-Pill */
  --indigo: #10093a;      /* höchste Fläche, Hover */
  --lilac: #f4f0ff;       /* Primärtext — Weiß mit Lavendel-Stich */
  --pearl: #ffffff;       /* nur Text auf violetten Füllungen */
  --ash: #a8a6b7;         /* Sekundärtext */
  --fog: #918ea0;         /* Tertiärtext, Metadaten */
  --steel: #54525f;
  --lavender: #9382ff;    /* die eine chromatische Stimme: Links, Fokus, Akzent */
  --iris: #5046e4;        /* Button-Füllung, dekorative Ränder */
  --divider: rgba(205, 204, 208, 0.12); /* Mercury, stark abgesenkt */

  --grad-cosmic: linear-gradient(90deg, #e59cff 0%, #ba9cff 50%, #9cb2ff 100%);
  --aurora-v: linear-gradient(180deg, rgba(183, 164, 251, 0) 0%, #b7a4fb 50%, rgba(133, 98, 255, 0) 100%);
  --aurora-h: linear-gradient(90deg, rgba(183, 164, 251, 0) 0%, #b7a4fb 50%, rgba(133, 98, 255, 0) 100%);

  /* Elevation: Rim-Light statt Drop-Shadow */
  --glow: inset 0 0 24px rgba(255, 255, 255, 0.04);
  --glow-2: inset 0 0 24px rgba(255, 255, 255, 0.06);
  --glow-badge: inset 0 -7px 11px rgba(164, 143, 255, 0.12);

  /* Layout */
  --max-w: 1200px;
  --pad-x: clamp(20px, 4vw, 48px);
  --section-gap: clamp(96px, 10vw, 120px);

  /* Typo-Skala (Minor Third ab 16px) */
  --display: clamp(2.5rem, 6.2vw, 4.5rem);       /* 72px · 1.11 · -0.5px */
  --heading-lg: clamp(2.25rem, 4.8vw, 3.5rem);   /* 56px · 1.14 · -0.4px */
  --heading: clamp(2rem, 4vw, 3rem);             /* 48px · 1.17 · -0.3px */
  --heading-sm: 2rem;                            /* 32px · 1.25 · -0.2px */
  --subheading: 1.5rem;                          /* 24px · 1.33 */
  --body-lg: 1.125rem;                           /* 18px · 1.56 */
  --body: 1rem;                                  /* 16px · 1.5 */
  --body-sm: 0.9375rem;                          /* 15px */
  --caption: 0.8125rem;                          /* 13px */

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--lilac);
  font-family: "Inter", "Inter V", Geist, system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--lavender); color: var(--void); }

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

h1, h2, h3 { font-weight: 500; }

img { max-width: 100%; height: auto; }

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 5px;
  background: var(--indigo);
  color: var(--lilac);
}
.skip-link:focus { left: 12px; }

:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
  border-radius: 5px;
}

/* ── Nav: schwebende Glas-Pill, mittig ── */

.site-header {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: 16px;
  pointer-events: none;
}
.nav-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  background: rgba(6, 3, 23, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--glow), 0 8px 30px rgba(3, 0, 20, 0.5);
  transition: box-shadow 0.35s var(--ease), background 0.35s var(--ease);
}
.site-header.scrolled .nav-pill {
  background: rgba(6, 3, 23, 0.85);
  box-shadow: var(--glow-2), 0 10px 40px rgba(3, 0, 20, 0.6),
              0 0 0 1px rgba(147, 130, 255, 0.14),
              0 0 34px rgba(147, 130, 255, 0.14);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.wordmark img {
  height: 32px;
  width: auto;
  display: block;
  transition: filter 0.3s var(--ease), transform 0.3s var(--ease);
}
.wordmark:hover img {
  filter: drop-shadow(0 0 10px rgba(147, 130, 255, 0.55));
  transform: translateY(-1px);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
}
.nav-links a {
  position: relative;
  color: var(--lilac);
  font-size: var(--body-sm);
  padding-block: 2px;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--lavender);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s var(--ease);
}
.nav-links a:hover { color: var(--lavender); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ── Buttons ── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 18px;
  background: var(--iris);
  color: var(--pearl);
  font-size: var(--body-sm);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 0 0 rgba(80, 70, 228, 0);
  transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
/* Licht-Sweep über den Button bei Hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transform: translateX(-120%);
  transition: transform 0.6s var(--ease);
}
.btn:hover {
  background: #6558ea;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(80, 70, 228, 0.4), 0 0 28px rgba(147, 130, 255, 0.4);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(0); }
.btn-lg { padding: 14px 24px; font-size: var(--body); }

/* ── Hero ── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Zwei driftende, weich geblurte Glow-Orbs — Ambient-Licht auf der Void-Canvas */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb-1 {
  width: 520px;
  height: 520px;
  top: -140px;
  left: 8%;
  background: radial-gradient(circle, rgba(80, 70, 228, 0.55), transparent 70%);
  animation: drift-1 24s ease-in-out infinite alternate;
}
.orb-2 {
  width: 460px;
  height: 460px;
  bottom: -160px;
  right: 6%;
  background: radial-gradient(circle, rgba(147, 130, 255, 0.42), transparent 70%);
  animation: drift-2 30s ease-in-out infinite alternate;
}
@keyframes drift-1 {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(60px, 40px, 0) scale(1.12); }
}
@keyframes drift-2 {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-70px, -30px, 0) scale(0.92); }
}

/* Sternfeld: zwei Ebenen, die sanft funkeln */
.stars, .stars::after {
  content: "";
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  -webkit-mask-image: radial-gradient(ellipse 80% 72% at 50% 42%, #000 42%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 72% at 50% 42%, #000 42%, transparent 100%);
}
.stars {
  background-image:
    radial-gradient(1px 1px at 25px 35px, rgba(244, 240, 255, 0.6), transparent 100%),
    radial-gradient(1.5px 1.5px at 80px 210px, rgba(244, 240, 255, 0.5), transparent 100%),
    radial-gradient(1px 1px at 310px 60px, rgba(244, 240, 255, 0.45), transparent 100%);
  background-size: 380px 380px, 540px 540px, 620px 620px;
  animation: twinkle-a 6s ease-in-out infinite;
}
.stars::after {
  background-image:
    radial-gradient(1px 1px at 150px 95px, rgba(200, 190, 255, 0.55), transparent 100%),
    radial-gradient(1px 1px at 220px 160px, rgba(244, 240, 255, 0.4), transparent 100%),
    radial-gradient(1.5px 1.5px at 400px 300px, rgba(200, 190, 255, 0.4), transparent 100%);
  background-size: 460px 460px, 420px 420px, 700px 700px;
  animation: twinkle-b 8s ease-in-out infinite;
}
@keyframes twinkle-a { 0%, 100% { opacity: 0.9; } 50% { opacity: 0.4; } }
@keyframes twinkle-b { 0%, 100% { opacity: 0.35; } 50% { opacity: 0.85; } }

.hero .container {
  position: relative;
  z-index: 1;
  padding-block: 150px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Emblem-Wappen — Wrapper trägt Layout + Summon, img trägt Float/Glow */
.hero-mark-wrap {
  display: inline-block;
  margin-bottom: clamp(80px, 10vw, 112px);
  line-height: 0;
}
/* Mit JS zunächst versteckt (wird vom Magier herbeigezaubert); ohne JS sichtbar */
/* Sichtbarkeit über die Klasse (sofort), Flourish nur über Scale — so hängt das
   Erscheinen nicht an der Animationsuhr (die in versteckten Tabs pausiert) */
.js .hero-mark-wrap:not(.summoned) { opacity: 0; transform: scale(0.5); }
.hero-mark-wrap.summoned { opacity: 1; animation: emblem-appear 0.6s var(--ease); }
@keyframes emblem-appear {
  0%   { transform: scale(0.5); }
  60%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.hero-mark {
  display: block;
  width: clamp(66px, 9vw, 92px);
  height: auto;
  filter: drop-shadow(0 0 22px rgba(147, 130, 255, 0.55));
  animation: mark-float 7s ease-in-out infinite;
}
@keyframes mark-float {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 18px rgba(147, 130, 255, 0.5)); }
  50%      { transform: translateY(-8px); filter: drop-shadow(0 0 34px rgba(147, 130, 255, 0.85)); }
}

.badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 32px;
  background: var(--midnight);
  border: 1px solid var(--iris);
  box-shadow: var(--glow-badge);
  color: var(--lilac);
  font-size: var(--caption);
  font-weight: 500;
}
.badge svg { color: var(--lavender); }

.hero h1 {
  margin-top: 28px;
  max-width: 17ch;
  font-size: var(--display);
  line-height: 1.11;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
/* Cosmic-Gradient: ausschließlich auf Akzent-Text — sanft wandernd */
.grad {
  background: linear-gradient(90deg, #e59cff, #ba9cff, #9cb2ff, #ba9cff, #e59cff);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-shift 8s ease-in-out infinite;
}
@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
.hero-sub {
  margin-top: 20px;
  max-width: 46em;
  color: var(--ash);
  font-size: var(--body-lg);
  line-height: 1.56;
  text-wrap: balance;
}
.hero-cta { margin-top: 36px; }

/* Gestaffelte Einblendung beim Laden */
.hero .badge, .hero h1, .hero-sub, .hero-cta {
  animation-name: rise;
  animation-duration: 0.9s;
  animation-timing-function: var(--ease);
  animation-fill-mode: backwards;
}
.hero .badge { animation-delay: 0.18s; }
.hero h1     { animation-delay: 0.30s; }
.hero-sub    { animation-delay: 0.42s; }
.hero-cta    { animation-delay: 0.54s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* Scroll-Hinweis unten */
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--fog);
  border: 1px solid var(--divider);
  animation: cue-bob 2.2s ease-in-out infinite;
  transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.3s ease;
}
.scroll-cue:hover {
  color: var(--lavender);
  border-color: rgba(147, 130, 255, 0.4);
  box-shadow: 0 0 22px rgba(147, 130, 255, 0.3);
}
@keyframes cue-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 7px); }
}

/* ── Sections ── */

section { padding-block: calc(var(--section-gap) / 2); }
main > section:last-of-type { padding-bottom: var(--section-gap); }

.section-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}
.section-head h2 {
  font-size: var(--heading);
  line-height: 1.17;
  letter-spacing: -0.3px;
}
.section-sub {
  margin-top: 12px;
  color: var(--fog);
  font-size: var(--body-lg);
}

/* Aurora-Divider mit wanderndem Schimmer */
.divider {
  position: relative;
  height: 1px;
  max-width: var(--max-w);
  margin-inline: auto;
  background: var(--aurora-h);
  opacity: 0.5;
  border: 0;
  overflow: hidden;
}
.divider::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(244, 240, 255, 0.9), transparent);
  animation: shimmer 5.5s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { transform: translateX(-120%); }
  60%, 100% { transform: translateX(320%); }
}
/* Zauber-Komet entlang der Timeline (0 %→100 % = Node 1→3), dann kurze Pause */
@keyframes tl-comet {
  0%   { left: 0%;   opacity: 0; }
  4%   { opacity: 1; }
  56%  { opacity: 1; }
  60%  { left: 100%; opacity: 0; }
  100% { left: 100%; opacity: 0; }
}
/* Knoten flammt kurz auf, wenn der Komet passiert */
@keyframes tl-node-flare {
  0%   { opacity: 0; box-shadow: 0 0 6px 0 rgba(147, 130, 255, 0); border-color: rgba(147, 130, 255, 0); }
  4%   { opacity: 1; box-shadow: 0 0 30px 6px rgba(147, 130, 255, 0.75); border-color: rgba(147, 130, 255, 0.9); }
  15%  { opacity: 0; box-shadow: 0 0 10px 0 rgba(147, 130, 255, 0); border-color: rgba(147, 130, 255, 0); }
  100% { opacity: 0; box-shadow: 0 0 6px 0 rgba(147, 130, 255, 0); border-color: rgba(147, 130, 255, 0); }
}

/* ── Leistungen: dunkle Glaskarten mit Rim-Light + Hover-Glow ── */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service {
  position: relative;
  border-radius: 16px;
  background: var(--midnight);
  box-shadow: var(--glow);
  padding: 32px;
  outline: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
/* Cosmic-Gradient-Rahmen, blendet bei Hover/Fokus ein */
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: var(--grad-cosmic);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
/* Cursor-folgender Licht-Fleck */
.service::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 0%), rgba(147, 130, 255, 0.16), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.service:hover, .service:focus-visible {
  transform: translateY(-6px);
  box-shadow: var(--glow-2), 0 18px 40px rgba(3, 0, 20, 0.55), 0 0 34px rgba(147, 130, 255, 0.18);
}
.service:hover::before, .service:focus-visible::before { opacity: 0.55; }
.service:hover::after, .service:focus-visible::after { opacity: 1; }

.service-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  color: var(--lilac);
  background: rgba(147, 130, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(147, 130, 255, 0.12);
  transition: transform 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.service:hover .service-icon, .service:focus-visible .service-icon {
  transform: translateY(-2px) scale(1.06);
  color: var(--lavender);
  box-shadow: inset 0 0 0 1px rgba(147, 130, 255, 0.3), 0 0 22px rgba(147, 130, 255, 0.35);
}
.service h3 {
  margin-top: 20px;
  font-size: var(--subheading);
  line-height: 1.33;
}
.service p {
  margin-top: 10px;
  color: var(--fog);
  font-size: var(--body-sm);
  line-height: 1.6;
}

/* ── Wie wir arbeiten: leuchtende Timeline ── */

.timeline {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
/* durchgehende Aurora-Linie von Mitte erstem bis Mitte letztem Node */
.tl-line {
  position: absolute;
  top: 28px;                 /* = halbe Node-Höhe */
  /* exakt von Mitte erstem bis Mitte letztem Node (Spaltenmitte, Gap berücksichtigt) */
  left: calc((100% - 2 * clamp(28px, 4vw, 56px)) / 6);
  right: calc((100% - 2 * clamp(28px, 4vw, 56px)) / 6);
  height: 1px;
  background: var(--aurora-h);
  opacity: 0.55;
  overflow: visible;
}
/* Zauber-Komet: wandert sichtbar von Node 1 → 2 → 3 */
.tl-line::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 34px;
  height: 2px;
  margin-top: -1px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(147, 130, 255, 0) 0%, rgba(147, 130, 255, 0.55) 45%, var(--lilac) 100%);
  box-shadow: 0 0 12px 2px rgba(147, 130, 255, 0.9), 0 0 5px 1px rgba(244, 240, 255, 0.9);
  opacity: 0;
  animation: tl-comet 5s linear infinite;
}
.tl-step {
  position: relative;
  text-align: center;
  transition: transform 0.35s var(--ease);
}
.tl-node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  margin-inline: auto;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--midnight);
  border: 1px solid rgba(147, 130, 255, 0.3);
  /* Void-Ring maskiert die Linie hinter dem Node, damit sie „andockt" */
  box-shadow: var(--glow), 0 0 0 6px var(--void);
  color: var(--lavender);
  font-size: var(--body-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.tl-step:hover, .tl-step:focus-within { transform: translateY(-4px); }
.tl-step:hover .tl-node, .tl-step:focus-within .tl-node {
  transform: scale(1.08);
  border-color: rgba(147, 130, 255, 0.6);
  box-shadow: var(--glow-2), 0 0 0 6px var(--void), 0 0 26px rgba(147, 130, 255, 0.45);
}
/* Knoten-Zündung: flammt auf, wenn der Komet eintrifft (eigene Ebene, stört Hover-Glow nicht) */
.tl-node::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 999px;
  border: 1px solid rgba(147, 130, 255, 0);
  opacity: 0;
  pointer-events: none;
  animation: tl-node-flare 5s ease-out infinite;
}
.timeline .tl-step:nth-of-type(1) .tl-node::after { animation-delay: 0s; }
.timeline .tl-step:nth-of-type(2) .tl-node::after { animation-delay: 1.5s; }
.timeline .tl-step:nth-of-type(3) .tl-node::after { animation-delay: 3s; }
.tl-content { margin-top: 22px; }
.tl-kicker {
  color: var(--lavender);
  font-size: var(--caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tl-content h3 {
  margin-top: 8px;
  font-size: var(--subheading);
  line-height: 1.3;
  letter-spacing: -0.2px;
}
.tl-content p {
  margin-top: 10px;
  color: var(--fog);
  font-size: var(--body-sm);
  line-height: 1.6;
}

/* ── Kontakt: Feature-Block mit rotierendem Aurora-Rahmen ── */

.contact-panel {
  position: relative;
  border-radius: 24px;
  isolation: isolate;
}
/* rotierender Verlaufsrand */
.contact-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: conic-gradient(from var(--angle),
    rgba(147, 130, 255, 0) 0deg,
    rgba(147, 130, 255, 0.7) 90deg,
    rgba(80, 70, 228, 0.15) 200deg,
    rgba(147, 130, 255, 0) 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none; /* Deko-Rahmen darf Formular-Klicks nicht abfangen */
  animation: spin 8s linear infinite;
}
@keyframes spin { to { --angle: 360deg; } }
/* weicher Glow-Halo hinter dem Panel */
.contact-glow {
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: 24px;
  background: radial-gradient(60% 80% at 50% 30%, rgba(80, 70, 228, 0.35), transparent 70%);
  filter: blur(50px);
  opacity: 0.8;
}
.contact-inner {
  border-radius: 24px;
  background: var(--midnight);
  box-shadow: var(--glow-2);
  padding: clamp(48px, 7vw, 96px) var(--pad-x);
  text-align: center;
}
.contact-panel h2 {
  font-size: var(--heading-lg);
  line-height: 1.14;
  letter-spacing: -0.4px;
  text-wrap: balance;
}
.contact-panel .lead {
  margin-top: 16px;
  color: var(--ash);
  font-size: var(--body-lg);
}
.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 36px;
  color: var(--lavender);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.3s var(--ease);
}
.contact-mail svg { transition: transform 0.25s var(--ease); }
.contact-mail:hover {
  color: var(--lilac);
  text-shadow: 0 0 24px rgba(147, 130, 255, 0.55);
}
.contact-mail:hover svg { transform: translateX(5px); }

/* ── Footer ── */

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
  padding-block: 40px;
  color: var(--fog);
  font-size: 0.875rem;
}
.footer-mark { display: inline-flex; align-items: center; }
.footer-mark img {
  height: 26px;
  width: auto;
  opacity: 0.85;
  transition: opacity 0.3s var(--ease), filter 0.3s var(--ease);
}
.footer-mark:hover img {
  opacity: 1;
  filter: drop-shadow(0 0 12px rgba(147, 130, 255, 0.5));
}
.footer-copy { margin-right: auto; margin-left: 8px; }
.site-footer nav { display: flex; gap: 24px; }
.site-footer a { color: var(--fog); transition: color 0.2s ease; }
.site-footer a:hover { color: var(--lilac); }
.site-footer a[aria-current="page"] { color: var(--lilac); }

/* ── Unterseiten (Impressum / Datenschutz) ── */

.legal-main {
  position: relative;
  padding-block: 160px 0;
}
.legal-main .orb {
  position: fixed;
  top: -180px;
  left: 12%;
}
.legal-main h1 {
  position: relative;
  font-size: var(--heading-lg);
  line-height: 1.14;
  letter-spacing: -0.4px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.prose { position: relative; max-width: 720px; }
.prose h2 {
  font-size: var(--subheading);
  line-height: 1.33;
  margin: 48px 0 14px;
  padding-top: 28px;
  border-top: 1px solid var(--divider);
}
.prose p, .prose ul {
  color: var(--ash);
  font-size: var(--body);
  line-height: 1.65;
  margin-bottom: 14px;
}
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--lavender); }
.prose a:hover { color: var(--lilac); }
.prose .meta { color: var(--fog); font-size: var(--body-sm); }
.prose address { font-style: normal; }

/* ── Scroll-Reveal (nur mit JS aktiv), mit Kaskade ── */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}
.js .services .service:nth-child(2),
.js .timeline .tl-step:nth-of-type(2) { transition-delay: 0.09s; }
.js .services .service:nth-child(3),
.js .timeline .tl-step:nth-of-type(3) { transition-delay: 0.18s; }

/* ── Kontaktformular ── */

.contact-form {
  margin: 32px auto 0;
  max-width: 520px;
  text-align: left;
  display: grid;
  gap: 16px;
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: var(--body-sm); color: var(--ash); }
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--divider);
  color: var(--lilac);
  font: inherit;
  font-size: var(--body-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--steel); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(147, 130, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(147, 130, 255, 0.15);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: rgba(147, 130, 255, 0.85); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--body-sm);
  color: var(--ash);
  line-height: 1.5;
}
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--iris); }
.consent a { color: var(--lavender); }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { font-size: var(--body-sm); color: var(--fog); margin: 0; }
.form-status.ok { color: var(--lavender); }
.form-status.err { color: var(--lilac); }
.contact-alt { margin-top: 22px; color: var(--fog); font-size: var(--body-sm); }
.contact-alt a { color: var(--lavender); }
.contact-alt a:hover { color: var(--lilac); }

/* ── Statement-Hero: zweite, typografische Hero zum Auflockern ── */

.statement {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(96px, 12vw, 160px);
}
/* zentraler Violett-Glow — hebt die Section vom flachen Void ab */
.statement-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, 90%);
  aspect-ratio: 16 / 9;
  background: radial-gradient(50% 50% at 50% 50%, rgba(80, 70, 228, 0.34), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  animation: statement-pulse 9s ease-in-out infinite;
}
@keyframes statement-pulse {
  0%, 100% { opacity: 0.7; transform: translate(-50%, -50%) scale(1); }
  50%      { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
.statement .container { position: relative; z-index: 1; }
.statement .eyebrow {
  color: var(--lavender);
  font-size: var(--caption);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.statement h2 {
  margin: 16px auto 0;
  max-width: 16ch;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.11;
  letter-spacing: -0.5px;
  text-wrap: balance;
}
.statement .lead {
  margin: 22px auto 0;
  max-width: 44em;
  color: var(--ash);
  font-size: var(--body-lg);
  line-height: 1.56;
  text-wrap: balance;
}

/* ── Pixel-Art-Magier ── */

.wiz-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.wizard {
  position: absolute;
  z-index: 6;
  width: 48px;
  pointer-events: auto;
  cursor: pointer;
  line-height: 0;
  transition: scale 0.2s var(--ease);
}
.wiz {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 3px 6px rgba(3, 0, 20, 0.55));
  animation: wiz-bob 3s ease-in-out infinite;
  transition: filter 0.2s var(--ease);
}
@keyframes wiz-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

/* Interaktion: Hover vergrößert + leuchtet (scale/translate sind eigene Properties,
   stören die transform-basierten Positionierungen/Bob nicht) */
.wizard:hover { scale: 1.12; }
.wizard:hover .wiz { filter: drop-shadow(0 0 8px rgba(147, 130, 255, 0.85)) drop-shadow(0 3px 6px rgba(3, 0, 20, 0.55)); }
/* Klick-Recoil */
.wizard.zap { animation: wiz-pop 0.5s ease; }
@keyframes wiz-pop { 0%, 100% { translate: 0 0; } 35% { translate: 0 -7px; } }

/* Zauber-Partikel (per JS gespawnt) */
.pfx {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 1px;
  background: var(--lavender);
  pointer-events: none;
  will-change: transform, opacity;
  animation: pfx-fly 0.75s ease-out forwards;
}
@keyframes pfx-fly {
  0%   { opacity: 1; transform: translate(0, 0) scale(1); }
  100% { opacity: 0; transform: translate(var(--dx, 0), var(--dy, -18px)) scale(var(--ps, 0.4)); }
}
.pfx--star  { background: var(--lilac); border-radius: 0; box-shadow: 0 0 4px rgba(147, 130, 255, 0.8); }
.pfx--coin  { background: radial-gradient(circle, var(--lilac), var(--lavender) 70%); border-radius: 999px; box-shadow: 0 0 4px rgba(147, 130, 255, 0.7); }
.pfx--pixel { background: var(--iris); }
.pfx--spark { background: var(--lavender); border-radius: 999px; box-shadow: 0 0 5px rgba(147, 130, 255, 0.9); }

/* Feuerwerk: Rakete steigt auf, explodiert in themenpassende Pixel-Icons */
.fw-rocket {
  position: absolute;
  left: 50%;
  top: 0;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: linear-gradient(#ffffff, var(--lavender));
  box-shadow: 0 0 8px 2px rgba(147, 130, 255, 0.9);
  pointer-events: none;
  animation: fw-rise 0.42s ease-out forwards;
}
@keyframes fw-rise {
  0%   { opacity: 0; transform: translateY(6px) scaleY(0.6); }
  20%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(-78px) scaleY(1); }
}
.fw-flash {
  position: absolute;
  left: 50%;
  top: -78px;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff, rgba(147, 130, 255, 0.6) 50%, transparent 72%);
  pointer-events: none;
  animation: fw-burst 0.4s ease-out forwards;
}
@keyframes fw-burst {
  0%   { opacity: 1; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(2.8); }
}
.fw-shard {
  position: absolute;
  left: 50%;
  top: -78px;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  overflow: visible;
  shape-rendering: crispEdges;
  pointer-events: none;
  filter: drop-shadow(0 0 4px rgba(147, 130, 255, 0.85));
  animation: fw-shard 1.05s ease-out forwards;
}
@keyframes fw-shard {
  0%   { opacity: 0; transform: translate(0, 0) rotate(0deg) scale(0.5); }
  14%  { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--dx, 0), calc(var(--dy, 0) + 28px)) rotate(var(--rot, 90deg)) scale(1); }
}

/* Aktionen */
.wiz-wave {
  transform-box: fill-box;
  transform-origin: 20% 100%;
  animation: wiz-wave 1.8s ease-in-out infinite;
}
@keyframes wiz-wave { 0%, 100% { rotate: -6deg; } 50% { rotate: 18deg; } }

/* Funken (Onlinemarketing) */
.wiz-spark rect { transform-box: fill-box; transform-origin: center; animation: wiz-spark 1.5s ease-in-out infinite; }
.wiz-spark rect:nth-child(2) { animation-delay: 0.5s; }
.wiz-spark rect:nth-child(3) { animation-delay: 1s; }
@keyframes wiz-spark { 0%, 100% { opacity: 0; transform: scale(0.3); } 50% { opacity: 1; transform: scale(1); } }

/* Fenster kippen (Web & App) */
.wiz-tilt { transform-box: fill-box; transform-origin: 50% 100%; animation: wiz-tilt 3.2s ease-in-out infinite; }
@keyframes wiz-tilt { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }

/* Tasche heben (E-Commerce) */
.wiz-lift { transform-box: fill-box; animation: wiz-lift 2.2s ease-in-out infinite; }
@keyframes wiz-lift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.4px); } }

/* Stab-Glow (Hero) */
.wiz-glow { transform-box: fill-box; transform-origin: 50% 100%; animation: wiz-glow 2s ease-in-out infinite; }
@keyframes wiz-glow {
  0%, 100% { opacity: 0.7; filter: drop-shadow(0 0 1px rgba(244, 240, 255, 0.5)); }
  50% { opacity: 1; filter: drop-shadow(0 0 4px rgba(244, 240, 255, 0.9)); }
}

/* Positionen */
.wizard--contact { top: 0; right: 44px; width: 54px; transform: translateY(-94%); }
.wizard--svc { top: 0; right: 18px; width: 40px; transform: translateY(-90%); }
/* Hero-Magier steht mittig auf dem Badge und beschwört das Wappen darüber */
.wizard--hero { left: 50%; bottom: 100%; width: 46px; margin-bottom: -3px; transform: translateX(-50%); }

/* Funkenspur vom Magier hoch zum Emblem */
.conjure {
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 26px;
  height: clamp(74px, 9vw, 104px);
  margin-bottom: 40px;
  transform: translateX(-50%);
  pointer-events: none;
}
.conjure i {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 1px;
  background: var(--lavender);
  opacity: 0;
  animation: conjure-rise 2.6s ease-in-out infinite;
}
/* Idle-Funken starten erst nach der ersten Beschwörung (~2 s), damit vorher keine Magie „vorwegläuft" */
.conjure i:nth-child(2) { margin-left: -1px; animation-delay: 2s; }
.conjure i:nth-child(3) { margin-left: -6px; animation-delay: 2.65s; background: #e5c9ff; }
.conjure i:nth-child(4) { margin-left: 4px; animation-delay: 3.3s; background: #9cb2ff; }
.conjure i:nth-child(5) { margin-left: -2px; animation-delay: 3.95s; background: var(--lilac); }
@keyframes conjure-rise {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  25%  { opacity: 1; }
  70%  { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-50%, calc(-1 * clamp(74px, 9vw, 104px))) scale(1); }
}

/* Bolt: der Zauber-Schuss, der das Wappen herbeiruft */
.bolt {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 7px;
  height: 7px;
  margin-left: -3.5px;
  border-radius: 999px;
  background: radial-gradient(circle, #ffffff 30%, var(--lavender) 65%, transparent 78%);
  box-shadow: 0 0 10px 2px rgba(147, 130, 255, 0.9);
  opacity: 0;
  pointer-events: none;
}
.conjure.casting .bolt { animation: bolt-launch 0.5s ease-in forwards; }
@keyframes bolt-launch {
  0%   { opacity: 0; transform: translateY(0) scale(0.5); }
  18%  { opacity: 1; transform: translateY(-6px) scale(1); }
  82%  { opacity: 1; transform: translateY(calc(-1 * clamp(74px, 9vw, 104px) + 8px)) scale(1); }
  100% { opacity: 0; transform: translateY(calc(-1 * clamp(74px, 9vw, 104px))) scale(2); }
}
/* Staff-Flare während des Zaubers */
.wizard--hero.casting .wiz-glow { animation: wiz-cast 0.5s ease-out; }
@keyframes wiz-cast {
  0%   { transform: scale(1); filter: drop-shadow(0 0 1px rgba(244, 240, 255, 0.6)); }
  30%  { transform: scale(1.6); filter: drop-shadow(0 0 7px rgba(244, 240, 255, 1)); }
  100% { transform: scale(1); filter: none; }
}

/* ── Cookie-/Einwilligungs-Banner ── */

.cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 80;
  width: min(420px, calc(100vw - 32px));
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
.cookie.show { opacity: 1; transform: none; pointer-events: auto; }
.cookie-card {
  position: relative;
  border-radius: 16px;
  background: rgba(6, 3, 23, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(147, 130, 255, 0.18);
  box-shadow: var(--glow-2), 0 20px 50px rgba(3, 0, 20, 0.6);
  padding: 20px 20px 18px;
}
.cookie-title { font-size: var(--body-lg); font-weight: 500; line-height: 1.3; }
.cookie-text { margin-top: 8px; color: var(--ash); font-size: var(--body-sm); line-height: 1.55; }
.cookie-text a { color: var(--lavender); }
.cookie-options { margin-top: 14px; display: grid; gap: 8px; }
.cookie-options[hidden] { display: none; }
.cookie-opt { display: flex; align-items: center; gap: 10px; font-size: var(--body-sm); color: var(--lilac); }
.cookie-opt input { width: 16px; height: 16px; flex: 0 0 auto; accent-color: var(--iris); }
.cookie-opt em { color: var(--fog); font-style: normal; }
.cookie-actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookie-ghost { background: transparent; border: 1px solid var(--divider); color: var(--lilac); box-shadow: none; }
.cookie-ghost:hover { background: rgba(255, 255, 255, 0.04); box-shadow: none; transform: none; }
.cookie-ghost::before { display: none; }
.cookie-link {
  background: none; border: 0; padding: 4px 2px; margin: 0; cursor: pointer;
  color: var(--fog); font: inherit; font-size: var(--body-sm);
  text-decoration: underline; text-underline-offset: 3px;
}
.cookie-link:hover { color: var(--lavender); }
.cookie-save-row { margin-top: 12px; }
/* „Cookie-Einstellungen" im Footer – im Stil der Footer-Links */
.cookie-reopen {
  background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  color: var(--fog); font: inherit; font-size: 0.875rem;
  transition: color 0.2s ease;
}
.cookie-reopen:hover { color: var(--lilac); }

/* ── Responsive ── */

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-pill { gap: 16px; }
  .hero .container { padding-top: 132px; }
  .services { grid-template-columns: 1fr; }

  .timeline { grid-template-columns: 1fr; gap: 36px; }
  .tl-line { display: none; }
  .tl-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    align-items: start;
    text-align: left;
  }
  /* vertikale Verbindung von Node zu Node, unabhängig von der Texthöhe */
  .tl-step:not(:last-of-type)::after {
    content: "";
    position: absolute;
    left: 27px;
    top: 56px;
    height: calc(100% - 56px + 36px);
    width: 1px;
    background: var(--aurora-v);
    opacity: 0.55;
  }
  .tl-content { margin-top: 0; }
  .footer-copy { margin-left: 0; }

  .wizard--svc { width: 34px; right: 12px; }
  .wizard--contact { width: 46px; right: 22px; }
  .wizard--hero { width: 40px; }
  .conjure { margin-bottom: 34px; }
  .wordmark img { height: 28px; }
}

/* ── Reduced Motion: alles beruhigen ── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .orb, .stars, .stars::after, .hero-mark, .grad, .scroll-cue,
  .divider::after, .contact-panel::before, .btn::before,
  .statement::before, .tl-line::after, .tl-node::after,
  .cursor-spark, .click-spark,
  .wiz, .wiz-wave, .wiz-spark rect, .wiz-tilt, .wiz-lift, .wiz-glow, .conjure i,
  .hero-mark-wrap, .bolt, .conjure.casting .bolt, .wizard--hero.casting .wiz-glow, .wizard.zap, .pfx,
  .fw-rocket, .fw-flash, .fw-shard,
  .hero-mark, .hero .badge, .hero h1, .hero-sub, .hero-cta {
    animation: none !important;
  }
  .cookie { transition: none; }
  .hero-mark-wrap, .hero-mark, .hero .badge, .hero h1, .hero-sub, .hero-cta {
    opacity: 1; transform: none; filter: none;
  }
  .wizard:hover { scale: 1; }
  .btn, .service, .tl-step, .tl-node, .contact-mail, .nav-links a, .wordmark img,
  .footer-mark img, .service-icon, .contact-mail svg, .wizard {
    transition: none;
  }
}

/* ── Zusatz-Effekte (Funken-Cursor, Klick-Funken, Scroll-Aurora) ── */

/* Scroll-Fortschritt: dünne Aurora-Leiste am oberen Rand */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--grad-cosmic);
  box-shadow: 0 0 12px rgba(147, 130, 255, 0.6);
  z-index: 60;
  pointer-events: none;
  will-change: transform;
}

/* Kleine Funken (Cursor-Schweif + Klick-Puff) — per JS erzeugt & entfernt */
.cursor-spark,
.click-spark {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  pointer-events: none;
  z-index: 70;
  background: radial-gradient(circle, var(--lilac) 0%, var(--lavender) 45%, rgba(147, 130, 255, 0) 72%);
  will-change: transform, opacity;
}

.cursor-spark {
  animation: spark-fade 620ms var(--ease) forwards;
}
@keyframes spark-fade {
  0%   { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, calc(-50% - 14px)) scale(0.2); }
}

.click-spark {
  animation: click-spark 560ms var(--ease) forwards;
}
@keyframes click-spark {
  0%   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx, 0px)), calc(-50% + var(--dy, 0px))) scale(0.25); }
}
