/* ==========================================================================
   Farbenspiel-Design — Stylesheet
   Design: "Spectrum Cool" — ruhiges Neutral-Fundament, Spektrum nur als Akzent.
   Aufbau: 1) Fonts  2) Tokens  3) Reset  4) Base/Type  5) Layout
           6) Komponenten  7) Sektionen  8) Animationen  9) Dark  10) Responsive
   ========================================================================== */

/* 1) FONTS (selbst gehostet — DSGVO) ------------------------------------- */
@font-face {
  font-family: "Inter";
  src: url("../fonts/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/GeistVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* 2) TOKENS -------------------------------------------------------------- */
:root {
  /* Farben – Neutral-Fundament */
  --ink:      #0E0E14;
  --ink-2:    #1A1A22;
  --paper:    #FAFAFB;
  --surface:  #FFFFFF;
  --surface-2:#F4F4F7;
  --muted:    #6B6B78;
  --muted-2:  #9A9AA6;
  --line:     #ECECF0;

  /* Marken-Spektrum (Akzent, sparsam) */
  --brand-1:  #E41989;  /* Magenta */
  --brand-2:  #E41989;  /* (war Violett) – auf Userwunsch Magenta für ALLE Icons/Texte/Fokus; echtes Violett #7036D8 nur noch in Mehrfarb-Verläufen */
  --brand-3:  #145DE8;  /* Blau */
  --brand-4:  #FF6A00;  /* Orange */
  --brand-5:  #0097CE;  /* Cyan */
  --grad-brand: linear-gradient(110deg, #E41989 0%, #7036D8 52%, #145DE8 100%);
  /* volleres Spektrum für große Flächen/Headlines (warm → kühl, geordnet) */
  --grad-spectrum: linear-gradient(100deg, #FF7A00 0%, #E4197D 28%, #B0249E 46%, #7036D8 64%, #145DE8 86%, #0097CE 100%);
  --grad-brand-soft: linear-gradient(110deg, rgba(228,25,137,.12), rgba(112,54,216,.12), rgba(20,93,232,.12));

  /* CTA – einziger warmer Akzent */
  --cta:      #FF6A00;
  --cta-700:  #E25C00;

  /* Konstante "immer-dunkel"-Flächen (kippen NICHT im Dark Mode) */
  --always-dark:    #0B0B12;
  --on-dark:        #FAFAFB;
  --on-dark-muted:  rgba(250,250,251,.74);

  /* Radius – bewusst klein */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;

  /* Spacing (4px-Basis) */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* Schatten – sehr dezent (Tiefe statt Borders) */
  --shadow-xs:  0 1px 2px rgba(16,16,20,.04);
  --shadow-card:0 1px 2px rgba(16,16,20,.04), 0 8px 24px -12px rgba(16,16,20,.12);
  --shadow-lift:0 2px 4px rgba(16,16,20,.05), 0 18px 40px -16px rgba(16,16,20,.20);
  --shadow-cta: 0 8px 24px -8px rgba(255,106,0,.45);

  /* Layout */
  --maxw: 1200px;
  --maxw-narrow: 760px;
  --nav-h: 72px;

  /* Typo */
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* 3) RESET --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: var(--r-sm); }

/* 4) BASE / TYPE --------------------------------------------------------- */
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "cv05" 1, "ss01" 1;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.6rem + 4.4vw, 5rem); letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.4rem); letter-spacing: -.02em; }
p  { text-wrap: pretty; }
strong { font-weight: 600; }

.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--muted); line-height: 1.6; }
/* Mehr Luft zwischen Überschrift und folgendem Fließtext (überall) */
h2 + .lead, h2 + p, h3 + .lead { margin-top: clamp(16px, 1.8vw, 22px); }
.muted { color: var(--muted); }
.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.gradient-spectrum {
  background: var(--grad-spectrum);
  background-size: 230% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  /* hin & zurück (alternate) → kein Umlauf-Sprung, Orange trifft nie auf Blau */
  animation: hue-pan 11s ease-in-out infinite alternate;
}
@keyframes hue-pan {
  from { background-position: 0% center; }
  to   { background-position: 100% center; }
}

/* 5) LAYOUT -------------------------------------------------------------- */
/* Dezente, getönte Hintergrund-Blooms (gegen "zu weiß") */
.bloom { position: relative; isolation: isolate; }
.bloom::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; border-radius: 50%;
  filter: blur(90px); opacity: .5;
}
.bloom.bloom-tl::before { top: -8%; left: -10%; background: radial-gradient(circle, rgba(228,25,137,.5), transparent 65%); }
.bloom.bloom-tr::before { top: -6%; right: -10%; background: radial-gradient(circle, rgba(20,93,232,.45), transparent 65%); }
.bloom.bloom-br::before { bottom: -10%; right: -8%; background: radial-gradient(circle, rgba(255,106,0,.4), transparent 65%); }
.bloom.bloom-bl::before { bottom: -10%; left: -8%; background: radial-gradient(circle, rgba(112,54,216,.45), transparent 65%); }
[data-theme="dark"] .bloom::before { opacity: .32; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
.section { padding-block: clamp(64px, 10vw, 128px); }
.section--tight { padding-block: clamp(48px, 7vw, 88px); }
.section-head { max-width: 640px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: .8rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--brand-1);
  margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--grad-brand); }
.eyebrow.center::before { display: none; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* 6) KOMPONENTEN --------------------------------------------------------- */

/* Buttons – wenig Radius, keine Pillen */
.btn {
  --b-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: var(--b-radius);
  font-family: var(--font-body); font-weight: 600; font-size: .98rem; letter-spacing: -.01em;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: var(--shadow-cta); }
.btn-primary:hover { background: var(--cta-700); transform: translateY(-2px); box-shadow: 0 12px 30px -8px rgba(255,106,0,.55); }
.btn-primary:active { transform: translateY(0); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-ghost { background: var(--surface-2); color: var(--ink); }
.btn-ghost:hover { background: #E9E9EE; transform: translateY(-2px); }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* Card – borderlos, Tiefe über Schatten + Fläche */
.card {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

/* Icon-Badge (Apple-Stil Monoline) */
.icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--surface-2); color: var(--brand-2);
  margin-bottom: 20px;
  transition: transform .35s var(--ease-out), background-color .35s var(--ease);
}
.icon-badge svg { width: 24px; height: 24px; }
.card:hover .icon-badge { transform: scale(1.06) translateY(-1px); }
.icon-badge.grad { background: var(--grad-brand-soft); }
/* Farbvarianten – Spektrum über die Disziplinen verteilt */
.icon-badge.c-magenta { background: rgba(228,25,137,.14); color: var(--brand-1); }
.icon-badge.c-blue    { background: rgba(20,93,232,.14);  color: var(--brand-3); }
.icon-badge.c-violet  { background: rgba(112,54,216,.14); color: var(--brand-2); }
.icon-badge.c-orange  { background: rgba(255,106,0,.16);  color: var(--cta); }

/* Tag / Chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--surface-2); color: var(--muted);
  font-size: .82rem; font-weight: 500;
}

/* 7) SEKTIONEN ----------------------------------------------------------- */

/* --- Header / Nav --- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), backdrop-filter .35s var(--ease);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
/* Header über dem dunklen Hero (nicht gescrollt): helle Navigation */
.site-header:not(.scrolled) .brand,
.site-header:not(.scrolled) .nav-links a.active { color: #fff; }
.site-header:not(.scrolled) .nav-links a { color: rgba(255,255,255,.82); }
.site-header:not(.scrolled) .nav-links a:hover { color: #fff; background: rgba(255,255,255,.12); }
.site-header:not(.scrolled) .theme-toggle,
.site-header:not(.scrolled) .nav-toggle { color: rgba(255,255,255,.9); }
.site-header:not(.scrolled) .theme-toggle:hover,
.site-header:not(.scrolled) .nav-toggle:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Header-Inhalt über die volle Breite (Padding zu den Rändern bleibt) */
.site-header .container { max-width: none; }
.nav { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: clamp(34px, 3.4vw, 44px); width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 14px; border-radius: var(--r-sm); font-size: .95rem; font-weight: 500; color: var(--muted);
  transition: color .2s var(--ease), background-color .2s var(--ease);
}
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a.active { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-md); color: var(--muted);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.theme-toggle:hover { background: var(--surface-2); color: var(--ink); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.nav-toggle { display: none; width: 40px; height: 40px; border-radius: var(--r-md); }
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle svg { width: 24px; height: 24px; margin-inline: auto; }

/* --- Hero (immersiv, dunkel, WebGL-Spektrum-Canvas) --- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(940px, 94vh);
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + clamp(40px, 7vw, 80px));
  padding-bottom: clamp(56px, 8vw, 110px);
  background: #06060e;
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
/* CSS-Fallback hinter dem Canvas (falls WebGL aus / lädt) */
.hero-fallback {
  position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 80% at 18% 22%, rgba(228,25,137,.55), transparent 60%),
    radial-gradient(55% 75% at 82% 28%, rgba(20,93,232,.5), transparent 60%),
    radial-gradient(70% 90% at 50% 100%, rgba(112,54,216,.6), transparent 60%),
    radial-gradient(50% 60% at 90% 80%, rgba(255,106,0,.4), transparent 60%),
    #06060e;
}
/* Lesbarkeits-Scrim + sanfter Übergang in die helle Seite */
.hero-scrim {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6,6,14,.82) 0%, rgba(6,6,14,.45) 42%, rgba(6,6,14,.12) 70%, transparent 100%),
    linear-gradient(180deg, rgba(6,6,14,.5) 0%, transparent 22%, transparent 62%, var(--paper) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 860px; }
.hero h1 { margin-bottom: 22px; color: #fff; }
.hero h1 .gradient-spectrum { filter: drop-shadow(0 4px 30px rgba(228,25,137,.35)); }
.hero .lead { max-width: 600px; margin-bottom: 34px; color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 7px 15px 7px 9px; border-radius: var(--r-md);
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12);
  font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.9);
}
.hero-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--grad-spectrum); flex: none; box-shadow: 0 0 12px rgba(228,25,137,.8); }
.hero-actions .btn-ghost { background: rgba(255,255,255,.1); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14); }
.hero-actions .btn-ghost:hover { background: rgba(255,255,255,.18); }
.hero-stats { display: flex; flex-wrap: wrap; gap: clamp(24px, 5vw, 56px); margin-top: clamp(40px, 6vw, 64px); }
.hero-stats .stat .num { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; }
.hero-stats .stat .lbl { font-size: .9rem; color: rgba(255,255,255,.62); }
@media (prefers-reduced-motion: reduce) { .gradient-spectrum { animation: none; } }

/* --- Logos / Trust row --- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 2vw, 20px); }
.pillar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-xs); }
.pillar svg { width: 22px; height: 22px; color: var(--brand-2); flex: none; }
.pillar span { font-weight: 600; font-size: .95rem; letter-spacing: -.01em; }

/* --- Services --- */
.service-card .icon-badge { color: var(--brand-2); }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 1rem; }
.service-card .features { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.service-card .features li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: var(--muted); }
.service-card .features svg { width: 16px; height: 16px; color: var(--brand-2); flex: none; }
/* Magenta-Glow: bei allen Cards als Hover-Effekt, bei der Featured dauerhaft */
.service-card { isolation: isolate; }
.service-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(130% 90% at 100% 0%, rgba(228,25,137,.16), transparent 55%);
  opacity: 0; transition: opacity .4s var(--ease);
}
.service-card:hover::after { opacity: 1; }

/* Featured: gleiche Fläche wie die Geschwister, nur Magenta-Akzente (KEIN Schwarz, KEINE Border) */
.service-card.featured { box-shadow: var(--shadow-lift); }
.service-card.featured .icon-badge { background: rgba(228,25,137,.14); color: var(--brand-1); }
.service-card.featured .features svg { color: var(--brand-1); }
.service-card.featured .chip { background: rgba(228,25,137,.12); color: var(--brand-1); }

/* --- Prozess --- */
.process { position: relative; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2.5vw, 28px); position: relative; }
.process-line { position: absolute; top: 24px; left: 8%; right: 8%; height: 2px; background: var(--line); z-index: 0; }
.process-line::after { content: ""; position: absolute; inset: 0; background: var(--grad-brand); transform: scaleX(var(--p, 0)); transform-origin: left; transition: transform 1.2s var(--ease); }
.step { position: relative; z-index: 1; }
.step .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-card);
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--brand-1);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .95rem; }

/* --- Über --- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.about-media {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lift); aspect-ratio: 4/3; display: grid; place-items: center;
  background: #08080f;
}
.about-media::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 22% 22%, rgba(228,25,137,.85), transparent 60%),
    radial-gradient(50% 55% at 82% 26%, rgba(20,93,232,.75), transparent 60%),
    radial-gradient(60% 65% at 30% 92%, rgba(112,54,216,.85), transparent 62%),
    radial-gradient(45% 50% at 88% 82%, rgba(255,106,0,.6), transparent 60%);
  filter: blur(14px); animation: mesh-float 18s var(--ease) infinite alternate;
}
.about-media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 50% 50%, transparent 40%, rgba(8,8,15,.55) 100%); }
.about-media img {
  position: relative; z-index: 1; width: 56%;
  filter: drop-shadow(0 18px 50px rgba(0,0,0,.55)) drop-shadow(0 0 30px rgba(255,255,255,.18));
}
@keyframes mesh-float {
  0%   { transform: scale(1) translate(0,0); }
  100% { transform: scale(1.12) translate(-2%, 2%); }
}
@media (prefers-reduced-motion: reduce) { .about-media::before { animation: none; } }
.about-list { margin-top: 24px; display: grid; gap: 14px; }
.about-list li { display: flex; gap: 12px; }
.about-list svg { width: 22px; height: 22px; color: var(--brand-2); flex: none; margin-top: 1px; }
.about-list strong { display: block; }
.about-list span { color: var(--muted); font-size: .95rem; }

/* Persönlicher Intro-Block direkt unter dem Hero */
.intro-person { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.intro-media { aspect-ratio: 4/5; }
.intro-media--photo { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lift); background: #08080f; }
.intro-media--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Dezentes schwarzes Overlay, das beim Hover weich verschwindet */
.intro-media--photo::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.3); transition: opacity .45s var(--ease); pointer-events: none; }
.intro-media--photo:hover::after { opacity: 0; }
.intro-photo-ph { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: rgba(255,255,255,.72); font-size: .88rem; }
.intro-photo-ph svg { width: 56px; height: 56px; color: rgba(255,255,255,.9); }
.intro-person h2 { margin-top: 10px; }
.intro-sign { color: var(--muted); font-style: italic; margin-top: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; color: var(--brand-2); }
.text-link svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }

/* --- Projekte / Portfolio (große Karten, content-breit, untereinander) --- */
.projects { display: flex; flex-direction: column; gap: clamp(16px, 2.2vw, 26px); }
.project-card {
  position: relative; min-height: clamp(300px, 40vw, 460px);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card);
  background: var(--surface); padding: clamp(26px, 3.4vw, 46px);
  display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.project-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.project-card .tag { font-size: .85rem; color: var(--brand-2); font-weight: 600; position: relative; z-index: 1; }
.project-card h3 { font-size: clamp(1.4rem, 1rem + 1.5vw, 2rem); margin-top: 8px; position: relative; z-index: 1; }
.project-card .project-desc { margin-top: 12px; max-width: 580px; color: var(--muted); position: relative; z-index: 1; }
/* Projektkarte mit Bild (z. B. Referenz-Screenshot) */
.project-card.has-img { background-size: cover; background-position: top center; background-repeat: no-repeat; }
.project-card.has-img::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(6,6,12,0) 35%, rgba(6,6,12,.92) 100%); }
.project-card.has-img .tag, .project-card.has-img h3 { color: #fff; }
.project-card.has-img .project-desc { color: rgba(255,255,255,.82); }
.project-card.dark { background: var(--always-dark); color: var(--on-dark); }
.project-card.dark .tag { color: var(--brand-1); }
.project-card.dark h3 { color: var(--on-dark); }
.project-card.dark .project-desc { color: rgba(250,250,251,.7); }
.projects-more { text-align: center; color: var(--muted); margin-top: clamp(22px, 3vw, 34px); font-size: 1rem; }

/* --- CTA-Band --- */
.cta-band { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--always-dark); color: var(--on-dark); padding: clamp(40px, 7vw, 80px); text-align: center; }
.cta-band .cta-aurora { position: absolute; inset: 0; opacity: .8; background: radial-gradient(60% 120% at 15% 10%, rgba(228,25,137,.5), transparent 55%), radial-gradient(55% 120% at 85% 20%, rgba(20,93,232,.5), transparent 55%), radial-gradient(50% 130% at 50% 110%, rgba(112,54,216,.55), transparent 55%); filter: blur(8px); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; margin-bottom: 16px; }
.cta-band p { color: rgba(250,250,251,.8); max-width: 540px; margin: 0 auto 30px; }

/* --- FAQ --- */
.faq-list { max-width: var(--maxw-narrow); margin-inline: auto; display: grid; gap: 12px; }
.faq-item { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--shadow-xs); overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 24px; font-weight: 600; font-size: 1.02rem; }
.faq-q .pm { width: 22px; height: 22px; flex: none; color: var(--brand-2); transition: transform .3s var(--ease); }
.faq-item[open] .faq-q .pm { transform: rotate(45deg); }
.faq-a { padding: 0 24px 22px; color: var(--muted); }
.faq-q::-webkit-details-marker { display: none; }

/* --- Kontakt / Form --- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info .contact-row { display: flex; gap: 14px; margin-top: 22px; }
.contact-info .icon-badge { margin-bottom: 0; width: 44px; height: 44px; flex: none; }
.contact-info .contact-row strong { display: block; }
.contact-info .contact-row a, .contact-info .contact-row span { color: var(--muted); }
.contact-info .contact-row a:hover { color: var(--brand-2); }

.form { background: var(--surface); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); box-shadow: var(--shadow-card); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--r-md);
  background: var(--surface-2); color: var(--ink); border: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand-2); background: var(--surface); box-shadow: 0 0 0 3px rgba(228,25,137,.12); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.invalid input, .field.invalid textarea { border-color: #E5484D; box-shadow: 0 0 0 3px rgba(229,72,77,.12); }
.field .err { display: none; color: #E5484D; font-size: .82rem; margin-top: 6px; }
.field.invalid .err { display: block; }

/* Honeypot – versteckt, aber nicht trivial display:none */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.consent { display: flex; align-items: flex-start; gap: 11px; font-size: .9rem; color: var(--muted); margin-bottom: 22px; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--brand-2); }
.consent a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }

.form-status { display: none; padding: 14px 16px; border-radius: var(--r-md); font-size: .92rem; margin-bottom: 16px; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(14,200,120,.1); color: #0a8a52; }
.form-status.error { background: rgba(229,72,77,.1); color: #c43236; }
.btn-submit { width: 100%; }
.btn-submit[aria-busy="true"] { opacity: .75; pointer-events: none; }

/* --- Footer --- */
.site-footer { position: relative; isolation: isolate; overflow: hidden; background: var(--always-dark); color: rgba(250,250,251,.7); padding-block: clamp(48px, 7vw, 80px) 0; }
.footer-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(125% 120% at 50% 4%, transparent 42%, rgba(112,54,216,.16) 76%, rgba(228,25,137,.14) 100%); }
.footer-content { position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 48px); margin-bottom: 48px; }
.footer-brand .footer-logo { width: clamp(240px, 24vw, 300px); height: auto; margin-bottom: 20px; }
.footer-brand p { color: rgba(250,250,251,.6); font-size: .95rem; max-width: 280px; }

/* Großer Schriftzug unter dem Footer-Inhalt: 10% Weiß + Farb-Reveal am Cursor */
.footer-bigword { position: relative; z-index: 1; pointer-events: none; line-height: 0; margin-top: clamp(28px, 4.5vw, 64px);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%); mask-image: linear-gradient(to bottom, transparent, #000 26%); }
.footer-bigword svg { width: 100%; height: auto; display: block; }
.fb-text { font-family: var(--font-display); font-weight: 600; font-size: 178px; letter-spacing: -.01em; }
.fb-base { fill: rgba(255,255,255,.10); stroke: none; }
.fb-fill { opacity: 0; transition: opacity .45s var(--ease); }
.site-footer.word-hover .fb-fill { opacity: .3; }
@media (prefers-reduced-motion: reduce) { .fb-fill { transition: none; } }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.footer-col a { display: block; padding: 5px 0; color: rgba(250,250,251,.7); font-size: .94rem; transition: color .2s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); font-size: .88rem; }
.footer-social { display: flex; gap: 8px; }
.footer-social a { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; border-radius: var(--r-md); background: rgba(255,255,255,.06); transition: background-color .2s var(--ease), transform .2s var(--ease); }
.footer-social a:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }
.footer-social svg { width: 18px; height: 18px; color: #fff; }

/* --- Rechtstext-Seiten --- */
.legal { padding-top: calc(var(--nav-h) + 56px); }
.legal-content { max-width: var(--maxw-narrow); margin-inline: auto; }
.legal-content h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.8rem); margin-bottom: 12px; }
.legal-content h2 { font-size: 1.4rem; margin-top: 40px; margin-bottom: 12px; }
.legal-content h3 { margin-top: 24px; margin-bottom: 8px; }
.legal-content p, .legal-content li { color: var(--muted); margin-bottom: 12px; }
.legal-content ul { list-style: disc; padding-left: 22px; }
.legal-content a { color: var(--brand-2); text-decoration: underline; text-underline-offset: 2px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; margin-bottom: 32px; }
.back-link:hover { color: var(--brand-2); }
.back-link svg { width: 18px; height: 18px; }

/* 8) ANIMATIONEN --------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }

@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(6vw, 4vw) scale(1.12); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1.05); } to { transform: translate(-5vw, 5vw) scale(.95); } }
@keyframes drift3 { from { transform: translate(0,0) scale(1); } to { transform: translate(-4vw, -3vw) scale(1.1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .hero-aurora span { animation: none; }
}

/* 9) DARK MODE ----------------------------------------------------------- */
[data-theme="dark"] {
  --ink:      #F4F4F8;
  --ink-2:    #E6E6EE;
  --paper:    #0B0B11;
  --surface:  #15151D;
  --surface-2:#1E1E28;
  --muted:    #9C9CAB;
  --muted-2:  #6E6E7C;
  --line:     #24242E;
  --grad-brand-soft: linear-gradient(110deg, rgba(228,25,137,.18), rgba(112,54,216,.18), rgba(20,93,232,.18));
  --shadow-xs:  0 1px 2px rgba(0,0,0,.4);
  --shadow-card:0 1px 2px rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
  --shadow-lift:0 2px 4px rgba(0,0,0,.5), 0 22px 48px -18px rgba(0,0,0,.8);
}
[data-theme="dark"] .hero-aurora { opacity: .35; }
[data-theme="dark"] .hero-aurora span { mix-blend-mode: screen; }
[data-theme="dark"] .pillar, [data-theme="dark"] .hero-pill { background: var(--surface); }
[data-theme="dark"] .btn-ghost:hover { background: #25252F; }
[data-theme="dark"] .site-footer { border-top: 1px solid rgba(255,255,255,.08); }
/* Violett wirkt auf dunklem Grund flau → im Dark Mode Akzent-Icons auf Magenta */
[data-theme="dark"] .about-list svg,
[data-theme="dark"] .icon-badge.grad,
[data-theme="dark"] .icon-badge.c-violet { color: var(--brand-1); }
[data-theme="dark"] .icon-badge.c-violet { background: rgba(228,25,137,.16); }

/* 10) RESPONSIVE --------------------------------------------------------- */
@media (max-width: 980px) {
  .cols-4 { grid-template-columns: repeat(2, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
  .process-line { display: none; }
  .about, .intro-person { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-actions .btn-cta-nav { display: none; }

  /* Mobile slide-in menu */
  .mobile-menu {
    position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
    background: var(--paper); padding: 24px clamp(20px,5vw,40px);
    display: flex; flex-direction: column; gap: 6px;
    transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: var(--shadow-lift);
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a { padding: 14px 12px; border-radius: var(--r-md); font-size: 1.1rem; font-weight: 500; }
  .mobile-menu a:hover { background: var(--surface-2); }
  .mobile-menu .btn { margin-top: 14px; }

  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { flex: 1; }
}
.mobile-menu { display: none; }
@media (max-width: 720px) { .mobile-menu { display: flex; } }
