/* =========================================================================
   SP-Services — Design System
   Reines CSS, keine Frameworks. Fonts self-hosted (siehe assets/fonts/).
   ========================================================================= */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-var.woff2") format("woff2-variations"), url("../fonts/inter-latin-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/spacegrotesk-var.woff2") format("woff2-variations"), url("../fonts/spacegrotesk-var.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------- */
/* Tokens                                                                  */
/* ---------------------------------------------------------------------- */
:root {
  /* Farben — exakt aus dem echten SP-Services-Logo gesampelt: Lime-Grün #b6e55b
     und Grau #5f5f5f, auf dunklem Anthrazit-Hintergrund. */
  --c-bg: #0c0d0d;
  --c-bg-soft: #131515;
  --c-surface: #191b1b;
  --c-surface-2: #202323;
  --c-border: #2b2e2e;
  --c-border-soft: rgba(182, 229, 91, 0.22);

  --c-primary: #7c9c3e;
  --c-primary-light: #cdec92;
  --c-accent: #b6e55b;
  --c-accent-2: #def3b5;

  --c-text: #eef1ec;
  --c-text-dim: #a7ada4;
  --c-text-faint: #767b76;
  --c-white: #ffffff;

  --grad-brand: linear-gradient(135deg, var(--c-primary) 0%, var(--c-accent) 55%, var(--c-accent-2) 100%);
  --grad-text: linear-gradient(90deg, #eef1ec 0%, #d9f0ae 45%, var(--c-accent) 100%);

  --font-display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 28px;

  --shadow-glow: 0 0 0 1px var(--c-border-soft), 0 20px 60px -20px rgba(182, 229, 91, 0.45);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------- */
/* Reset                                                                   */
/* ---------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; font-weight: 600; letter-spacing: -0.02em; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--c-accent); color: #04120f; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--c-accent);
  border-radius: 2px;
}

.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin-top: 14px; }
.section-head p { color: var(--c-text-dim); margin-top: 16px; font-size: 1.05rem; }

section { position: relative; padding: 120px 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: var(--c-white);
  box-shadow: 0 12px 30px -10px rgba(182, 229, 91, 0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(182, 229, 91, 0.8); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--c-text);
  border-color: var(--c-border);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { border-color: var(--c-primary-light); background: rgba(205, 236, 146, 0.08); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------------- */
/* Header                                                                  */
/* ---------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 13, 13, 0.78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--c-border-soft);
  padding: 12px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark { height: 34px; width: auto; }

.nav-links-desktop { display: flex; align-items: center; gap: 34px; }
.nav-links { display: none; }
.nav-links-desktop a, .nav-links a {
  font-size: 0.92rem; font-weight: 500; color: var(--c-text-dim);
  position: relative; padding: 4px 0; transition: color 0.25s;
  white-space: nowrap;
}
.nav-links-desktop a::after, .nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--grad-brand); transition: width 0.3s var(--ease);
}
.nav-links-desktop a:hover, .nav-links a:hover { color: var(--c-text); }
.nav-links-desktop a:hover::after, .nav-links a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--c-border);
  background: rgba(255,255,255,0.03); align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--c-text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------------- */
/* Hero — WOW                                                              */
/* ---------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg { position: absolute; inset: 0; z-index: -2; background: var(--c-bg); }
.hero-bg .aurora {
  position: absolute;
  width: 70vw; height: 70vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  will-change: transform;
}
.hero-bg .aurora--a { top: -20%; left: -10%; background: radial-gradient(circle, var(--c-primary) 0%, transparent 70%); animation: float-a 26s ease-in-out infinite; }
.hero-bg .aurora--b { top: 10%; right: -15%; width: 55vw; height: 55vw; background: radial-gradient(circle, var(--c-accent-2) 0%, transparent 70%); animation: float-b 32s ease-in-out infinite; }
.hero-bg .aurora--c { bottom: -25%; left: 20%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--c-accent) 0%, transparent 70%); opacity: 0.35; animation: float-c 38s ease-in-out infinite; }

.hero-bg .grid-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--c-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--c-border-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 40%, transparent 90%);
  opacity: 0.5;
}

.hero-bg .noise { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, transparent 0%, var(--c-bg) 85%); }

@keyframes float-a { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(6%, 8%) scale(1.08); } }
@keyframes float-b { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-8%, 6%) scale(1.1); } }
@keyframes float-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(4%, -6%) scale(1.05); } }

.hero-content { max-width: 800px; }
.hero-content .eyebrow { opacity: 0; transform: translateY(14px); animation: rise 0.8s var(--ease) 0.1s forwards; }
.hero h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  line-height: 1.05;
  margin-top: 22px;
  background: var(--grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(20px); animation: rise 0.9s var(--ease) 0.25s forwards;
}
.hero h1 em { font-style: normal; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; }
.hero .lede {
  margin-top: 26px; font-size: 1.2rem; color: var(--c-text-dim); max-width: 560px;
  opacity: 0; transform: translateY(20px); animation: rise 0.9s var(--ease) 0.4s forwards;
}
.hero-actions {
  margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px); animation: rise 0.9s var(--ease) 0.55s forwards;
}

@keyframes rise { to { opacity: 1; transform: translateY(0); } }

.hero-meta {
  margin-top: 72px; display: flex; gap: 40px; flex-wrap: wrap;
  opacity: 0; animation: fade 1s var(--ease) 0.85s forwards;
}
@keyframes fade { to { opacity: 1; } }
.hero-meta div { display: flex; flex-direction: column; gap: 4px; }
.hero-meta strong { font-family: var(--font-display); font-size: 1.6rem; }
.hero-meta span { font-size: 0.82rem; color: var(--c-text-faint); text-transform: uppercase; letter-spacing: 0.08em; }

.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--c-text-faint); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  opacity: 0; animation: fade 1s var(--ease) 1.1s forwards;
}
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--c-accent), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -100%; left: 0; width: 100%; height: 100%;
  background: linear-gradient(var(--c-accent), transparent);
  animation: scroll-cue 2.2s ease-in-out infinite;
}
@keyframes scroll-cue { to { top: 100%; } }

/* ---------------------------------------------------------------------- */
/* Reveal on scroll                                                        */
/* ---------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------------------------------------------------------------------- */
/* Leistungen                                                              */
/* ---------------------------------------------------------------------- */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.service-card {
  position: relative;
  padding: 34px 28px;
  border-radius: var(--radius-m);
  background: linear-gradient(160deg, var(--c-surface), var(--c-bg-soft));
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.service-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(182,229,91,0.18), transparent 60%);
}
.service-card:hover { transform: translateY(-6px); border-color: var(--c-border-soft); box-shadow: var(--shadow-glow); }
.service-card:hover::before { opacity: 1; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); margin-bottom: 22px;
  box-shadow: 0 10px 26px -10px rgba(182,229,91,0.7);
}
.service-icon svg { width: 26px; height: 26px; stroke: #fff; }
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--c-text-dim); font-size: 0.96rem; }

/* ---------------------------------------------------------------------- */
/* Über / Ablauf                                                           */
/* ---------------------------------------------------------------------- */
.about { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 72px; align-items: center; }
.about-visual {
  position: relative; aspect-ratio: 1/1; border-radius: var(--radius-l);
  background: linear-gradient(160deg, var(--c-surface-2), var(--c-bg-soft));
  border: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.about-visual .mark-big { width: 46%; height: 46%; opacity: 0.95; filter: drop-shadow(0 20px 50px rgba(182,229,91,0.45)); }
.about-visual .ring { position: absolute; border: 1px solid var(--c-border-soft); border-radius: 50%; }
.about-visual .ring--1 { inset: 12%; animation: spin 40s linear infinite; }
.about-visual .ring--2 { inset: 24%; animation: spin 55s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.about-copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-top: 14px; }
.about-copy p { color: var(--c-text-dim); margin-top: 20px; font-size: 1.05rem; }
.about-list { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.98rem; color: var(--c-text); }
.about-list svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--c-accent); margin-top: 2px; }

/* ---------------------------------------------------------------------- */
/* Referenzen — Logo-Marquee                                              */
/* ---------------------------------------------------------------------- */
.references-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px;
}
.reference-card {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius-m);
  border: 1px solid var(--c-border);
  background: linear-gradient(160deg, var(--c-surface), var(--c-bg-soft));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.reference-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(182,229,91,0.18), transparent 60%);
}
.reference-card:hover { transform: translateY(-6px); border-color: var(--c-border-soft); box-shadow: var(--shadow-glow); }
.reference-card:hover::before { opacity: 1; }
.reference-card h3 { font-size: 1.05rem; margin-bottom: 10px; }
.reference-card h3 span { font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--c-text-faint); }
.reference-card p { color: var(--c-text-dim); font-size: 0.92rem; }

.reference-logo {
  height: 44px; margin-bottom: 20px; display: flex; align-items: center;
}
.reference-logo img { max-height: 100%; width: auto; max-width: 140px; object-fit: contain; }
.reference-logo--crest { height: 56px; }
.reference-logo--crest img { max-height: 100%; }
/* Logos mit eigenem weißem Hintergrund (z. B. JPG) auf heller Kachel statt hartem Rechteck */
.reference-logo--tile { width: fit-content; padding: 8px 12px; border-radius: 10px; background: #fff; }
.reference-logo--tile img { max-width: 120px; }

.reference-avatar {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #04120f;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
}

/* ---------------------------------------------------------------------- */
/* Mission — Schnittstellen/Ansatz                                          */
/* ---------------------------------------------------------------------- */
.mission {
  overflow: hidden;
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-soft) 45%, var(--c-bg) 100%);
}
.mission-glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: min(1100px, 120vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(182, 229, 91, 0.13) 0%, transparent 62%);
  filter: blur(40px);
  pointer-events: none;
}
.mission .container { position: relative; }

.mission-head { max-width: 780px; margin-bottom: 64px; }
.mission-head h2 {
  font-size: clamp(2rem, 4.6vw, 3.2rem);
  line-height: 1.12;
  margin-top: 18px;
}
.mission-head h2 span {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mission-lede {
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.7;
  color: var(--c-text-dim);
}
.mission-lede strong { color: var(--c-text); font-weight: 600; }

.mission-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 32px; }
.mission-card { position: relative; padding-top: 26px; }
.mission-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 56px; height: 2px;
  background: var(--grad-brand); border-radius: 2px;
}
.mission-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(182, 229, 91, 0.12);
  border: 1px solid var(--c-border-soft);
}
.mission-icon svg { width: 22px; height: 22px; color: var(--c-accent); }
.mission-card h3 { font-size: 1.08rem; margin-bottom: 12px; }
.mission-card p { color: var(--c-text-dim); font-size: 0.94rem; }

/* ---------------------------------------------------------------------- */
/* Produkte — eigene Apps                                                  */
/* ---------------------------------------------------------------------- */
.products-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 24px;
}
.product-card {
  position: relative;
  display: flex; gap: 26px; align-items: flex-start;
  padding: 32px;
  border-radius: var(--radius-m);
  border: 1px solid var(--c-border);
  background: linear-gradient(160deg, var(--c-surface), var(--c-bg-soft));
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.product-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.45s var(--ease);
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 0%), rgba(182,229,91,0.18), transparent 60%);
}
.product-card:hover { transform: translateY(-6px); border-color: var(--c-border-soft); box-shadow: var(--shadow-glow); }
.product-card:hover::before { opacity: 1; }

/* Glow-Ebene der Karten darf keine Klicks abfangen (sonst sind z. B. die
   Store-Links nicht anklickbar) und liegt hinter dem Inhalt. */
.service-card::before, .reference-card::before, .product-card::before { pointer-events: none; }
.service-card > *, .reference-card > *, .product-card > * { position: relative; z-index: 1; }

.product-visual {
  flex-shrink: 0; width: 96px; height: 96px; border-radius: var(--radius-s);
  overflow: hidden; background: var(--c-bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.product-visual img { width: 100%; height: 100%; object-fit: cover; }
.product-visual--icon { background: var(--grad-brand); }
.product-visual--icon svg { width: 42px; height: 42px; color: #04120f; }
.product-visual--logo { background: #fff; padding: 12px; }
.product-visual--logo img { width: 100%; height: 100%; object-fit: contain; }
/* App-Icon mit eigenen abgerundeten Ecken — kein Kachel-Hintergrund, nicht beschneiden */
.product-visual--app { background: transparent; border-radius: 0; }
.product-visual--app img { object-fit: contain; }

.product-body h3 { font-size: 1.2rem; margin-bottom: 4px; }
.product-body .product-claim { font-family: var(--font-display); font-size: 0.92rem; color: var(--c-accent); margin-bottom: 12px; }
.product-body p { color: var(--c-text-dim); font-size: 0.92rem; }

.store-badges { display: flex; gap: 12px; margin-top: 18px; flex-wrap: wrap; }
/* Store-Badges: Apple/Google untersagen das Verändern der Badges (Farbe,
   Transparenz, Proportionen). Daher nur eine Positionsbewegung beim Hover,
   keine Opacity-/Farbänderung. Höhe 40px + gap 12px erfüllen die in den
   Brand Guidelines geforderte Mindestgröße und den Mindestabstand. */
.store-badges img { height: 40px; width: auto; transition: transform 0.3s var(--ease); }
.store-badges a:hover img { transform: translateY(-2px); }

@media (max-width: 520px) {
  .product-card { flex-direction: column; }
  .product-visual { width: 100%; height: 140px; }
}

/* ---------------------------------------------------------------------- */
/* Stats band                                                              */
/* ---------------------------------------------------------------------- */
.stats-band {
  padding: 64px 0; border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border);
  background: linear-gradient(180deg, transparent, rgba(182,229,91,0.05), transparent);
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 32px; text-align: center; }
.stat strong { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.8rem); background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 8px; color: var(--c-text-faint); font-size: 0.85rem; letter-spacing: 0.04em; }

/* ---------------------------------------------------------------------- */
/* Prozess                                                                 */
/* ---------------------------------------------------------------------- */
.process { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 28px; counter-reset: step; }
.process-step { position: relative; padding-top: 8px; }
.process-step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 700;
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0.55;
}
.process-step h3 { margin-top: 14px; font-size: 1.1rem; }
.process-step p { margin-top: 10px; color: var(--c-text-dim); font-size: 0.95rem; }
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 22px; left: 106%; width: 24%; height: 1px;
  background: linear-gradient(90deg, var(--c-border-soft), transparent);
  display: none;
}
@media (min-width: 900px) { .process-step:not(:last-child)::after { display: block; } }

/* ---------------------------------------------------------------------- */
/* Kontakt                                                                 */
/* ---------------------------------------------------------------------- */
.contact-panel {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--c-border);
  background: var(--c-surface);
}
.contact-info {
  padding: 56px 48px;
  background: linear-gradient(160deg, var(--c-surface-2), var(--c-bg-soft));
  position: relative;
}
.contact-info h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.contact-info p { color: var(--c-text-dim); margin-top: 14px; }
.contact-rows { margin-top: 36px; display: flex; flex-direction: column; gap: 22px; }
.contact-row { display: flex; gap: 16px; align-items: flex-start; }
.contact-row .ic {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(182,229,91,0.14);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-row .ic svg { width: 19px; height: 19px; color: var(--c-accent); }
.contact-row a, .contact-row span.value { font-weight: 600; }
.contact-row small { display: block; color: var(--c-text-faint); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 3px; }

.contact-form { padding: 56px 48px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.82rem; color: var(--c-text-dim); }
.field input, .field textarea {
  background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-s);
  padding: 13px 16px; color: var(--c-text); font-family: var(--font-body); font-size: 0.95rem;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--c-primary-light); box-shadow: 0 0 0 3px rgba(182,229,91,0.22); }
.field textarea { resize: vertical; min-height: 110px; }
.contact-form .btn { align-self: flex-start; margin-top: 6px; border: none; }
.contact-form .btn:disabled { opacity: 0.6; cursor: default; }
.form-note { font-size: 0.8rem; color: var(--c-text-faint); }

/* Honeypot: außerhalb des sichtbaren Bereichs statt display:none, damit
   simple Bots, die display:none/visibility:hidden erkennen und
   überspringen, das Feld trotzdem für ein "echtes" Eingabefeld halten. */
.field--hp {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.form-status {
  display: block; min-height: 1.2em; font-size: 0.85rem; color: var(--c-text-faint);
}
.form-status--success { color: var(--c-accent); }
.form-status--error { color: #e08a8a; }
.form-privacy { font-size: 0.78rem; color: var(--c-text-faint); margin-top: -6px; }
.form-privacy a { color: inherit; text-decoration: underline; }

/* ---------------------------------------------------------------------- */
/* Footer                                                                  */
/* ---------------------------------------------------------------------- */
.site-footer { padding: 64px 0 32px; border-top: 1px solid var(--c-border); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand p { color: var(--c-text-faint); max-width: 320px; font-size: 0.9rem; }
.footer-links { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--c-text-faint); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--c-text-dim); font-size: 0.92rem; margin-bottom: 12px; transition: color 0.2s; }
.footer-col a:hover { color: var(--c-accent); }
.footer-bottom {
  padding-top: 28px; border-top: 1px solid var(--c-border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--c-text-faint); font-size: 0.82rem;
}

/* ---------------------------------------------------------------------- */
/* Legal pages (Impressum/Datenschutz)                                     */
/* ---------------------------------------------------------------------- */
.legal-page { padding-top: 160px; padding-bottom: 100px; }
.legal-page h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.legal-page h2 { font-size: 1.2rem; margin-top: 40px; margin-bottom: 12px; color: var(--c-accent); }
.legal-page p, .legal-page li { color: var(--c-text-dim); font-size: 0.98rem; margin-top: 10px; }
.legal-page a { color: var(--c-primary-light); text-decoration: underline; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page .legal-updated { margin-top: 40px; color: var(--c-text-faint); font-size: 0.85rem; }

/* ---------------------------------------------------------------------- */
/* Responsive                                                              */
/* ---------------------------------------------------------------------- */
@media (max-width: 980px) {
  .about { grid-template-columns: 1fr; }
  .about-visual { max-width: 420px; margin-inline: auto; }
  .contact-panel { grid-template-columns: 1fr; }
}

/* Off-Canvas-Menü greift früh genug, damit die 7 Navigationspunkte
   dazwischen nie gequetscht/umgebrochen dargestellt werden. */
@media (max-width: 1080px) {
  .nav-links-desktop { display: none; }
  .nav-links { display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 78vw);
    background: var(--c-bg-soft);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 30px;
    padding: 40px; transform: translateX(100%); transition: transform 0.4s var(--ease);
    border-left: 1px solid var(--c-border); z-index: 90;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links a { font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .btn-ghost.header-cta { display: none; }
}

@media (max-width: 640px) {
  section { padding: 88px 0; }
  .contact-info, .contact-form { padding: 40px 26px; }
  .footer-top { flex-direction: column; }
}

/* ---------------------------------------------------------------------- */
/* Reduced motion                                                          */
/* ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
