/* =================================================================
   Network-LD GmbH – Stylesheet
   Dark Tech Premium · Glasfaser / Fiber Optic
   ================================================================= */

/* ---------- Lokale Schriften (DSGVO-konform, self-hosted) ---------- */
@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("assets/fonts/sora-800.woff2") format("woff2");
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Design Tokens ---------- */
:root {
  --bg: #f7f9fd;
  --bg-2: #eef3fa;
  --bg-3: #e6edf7;
  --surface: #ffffff;
  --surface-2: #f3f7fc;
  --border: rgba(13, 35, 64, 0.10);
  --border-strong: rgba(13, 35, 64, 0.16);

  --text: #0e1f33;
  --text-soft: #45566e;
  --text-dim: #6b7a92;

  --cyan: #0b87ab;
  --cyan-bright: #15a8d2;
  --violet: #6c5ce7;
  --violet-2: #8b5cf6;

  --grad: linear-gradient(110deg, #0ea5cf 0%, #3b82f6 48%, #8b5cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(34,184,224,0.12), rgba(139,92,246,0.10));

  --radius-s: 12px;
  --radius: 18px;
  --radius-l: 26px;
  --shadow: 0 18px 45px -22px rgba(13, 35, 64, 0.28);
  --shadow-glow: 0 0 0 1px rgba(34,184,224,0.20), 0 24px 60px -28px rgba(34,184,224,0.30);

  --max: 1200px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --section-y: clamp(2.5rem, 5vw, 4.5rem);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Manrope", "Segoe UI", system-ui, sans-serif;
}

/* ---------- Dark Mode (umschaltbar via data-theme="dark") ---------- */
[data-theme="dark"] {
  --bg: #0a0f1a;
  --bg-2: #0e1525;
  --bg-3: #131c30;
  --surface: #141d2f;
  --surface-2: #0f1726;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.20);

  --text: #eaf1fb;
  --text-soft: #aebcce;
  --text-dim: #7e8da4;

  --cyan: #38bdf0;
  --cyan-bright: #4cc9f0;

  --grad-soft: linear-gradient(135deg, rgba(34, 184, 224, 0.20), rgba(139, 92, 246, 0.16));
  --shadow: 0 20px 50px -24px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 0 1px rgba(34, 184, 224, 0.28), 0 24px 60px -28px rgba(34, 184, 224, 0.38);
}
/* Fest verdrahtete helle Flächen im Dark Mode überschreiben */
[data-theme="dark"] .site-header { background: rgba(10, 15, 26, 0.72); }
[data-theme="dark"] .site-header.is-scrolled { background: rgba(10, 15, 26, 0.9); }
[data-theme="dark"] .field input,
[data-theme="dark"] .field select,
[data-theme="dark"] .field textarea { background-color: var(--surface-2); }
[data-theme="dark"] .field select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aebcce' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 18px;
}
[data-theme="dark"] .form__status.is-error { color: #ff6b6b; }
[data-theme="dark"] .form__status.is-ok { color: #4ade80; }
[data-theme="dark"] .marquee-band { background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent); }

/* sanfter Übergang beim Umschalten */
body { transition: background-color 0.35s ease, color 0.35s ease; }

/* ---------- Theme-Umschalter ---------- */
.header__tools { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.theme-toggle {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  display: grid; place-items: center; cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover { border-color: var(--cyan); transform: translateY(-1px); }
.theme-toggle svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: block; }

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  /* clip statt hidden: verhindert horizontales Scrollen, OHNE position: sticky
     des Headers zu brechen (hidden würde body zum Scroll-Container machen). */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtiler atmosphärischer Hintergrund */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 50vh at 80% -5%, rgba(34,184,224,0.10), transparent 60%),
    radial-gradient(55vw 45vh at -5% 25%, rgba(139,92,246,0.07), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  background-size: 180px;
  mix-blend-mode: multiply;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: rgba(34,184,224,0.32); color: #fff; }

.container { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--cyan); color: #04121a; padding: 0.7rem 1.1rem; border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--cyan-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- Typografie ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 4.3rem); }
h2 { font-size: clamp(1.8rem, 1.3rem + 2.2vw, 2.9rem); }
h3 { font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--cyan);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  background: var(--surface);
  margin-bottom: 1.25rem;
}
.eyebrow--center { display: inline-flex; }
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 10px 2px rgba(76,214,255,0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 700; font-size: 0.97rem;
  padding: 0.85rem 1.5rem; border-radius: 100px;
  min-height: 48px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap; cursor: pointer; position: relative;
}
.btn__ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary {
  background: var(--grad); color: #04121a;
  box-shadow: 0 10px 30px -10px rgba(34,184,224,0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(34,184,224,0.8); }
.btn--ghost {
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--cyan); transform: translateY(-2px); }
.btn--lg { padding: 1.02rem 1.8rem; font-size: 1.02rem; min-height: 54px; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(247, 249, 253, 0.72);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 249, 253, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 30px -22px rgba(13, 35, 64, 0.5);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__logo { width: 46px; height: 46px; border-radius: 12px; object-fit: contain; box-shadow: 0 0 0 1px var(--border); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; letter-spacing: 0.02em; }
.brand__sub { font-size: 0.66rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan); margin-top: 3px; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; align-items: center; gap: 1.7rem; }
.nav__list a {
  font-weight: 600; font-size: 0.95rem; color: var(--text-soft);
  position: relative; padding: 0.3rem 0; transition: color 0.2s ease;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; bottom: -3px; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width 0.28s ease;
}
.nav__list a:hover { color: var(--text); }
.nav__list a:hover::after { width: 100%; }

/* Burger */
.burger { display: none; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); position: relative; }
.burger span {
  position: absolute; left: 50%; top: 50%; width: 20px; height: 2px; background: var(--text);
  border-radius: 2px; transform: translate(-50%, -50%); transition: transform 0.3s ease, opacity 0.2s ease;
}
.burger span:nth-child(1) { transform: translate(-50%, -7px); }
.burger span:nth-child(3) { transform: translate(-50%, 5px); }
.burger.is-open span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translate(-50%, -50%) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.5rem, 6vw, 6rem); overflow: hidden; }
/* Video-Hintergrund im Hero */
.hero__bg { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__bg-veil {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 10, 18, 0.80), rgba(6, 10, 18, 0.70) 55%, rgba(6, 10, 18, 0.85)),
    radial-gradient(60% 70% at 30% 40%, rgba(6, 10, 18, 0.25), transparent 70%);
}
/* Helle Hero-Texte über dem dunklen Video */
.hero h1 { color: #fff; }
.hero .hero__lead { color: rgba(255, 255, 255, 0.86); }
.hero .hero__badges { color: rgba(255, 255, 255, 0.7); }
.hero .hero__badges li { color: rgba(255, 255, 255, 0.9); }
.hero .eyebrow { color: #7fe9ff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.24); }
.hero .btn--ghost { background: rgba(255, 255, 255, 0.10); color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.hero .btn--ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.hero .hero__figure { border-color: rgba(255, 255, 255, 0.16); }
.hero__glow {
  position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
  background: radial-gradient(circle, rgba(34,184,224,0.35), rgba(123,108,255,0.18) 45%, transparent 70%);
  filter: blur(40px); z-index: 0; animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-26px) scale(1.05); } }
.hero__grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: 0.6;
  background-image:
    linear-gradient(to right, rgba(13,35,64,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13,35,64,0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  min-height: min(78vh, 720px);
}
.hero__content { min-width: 0; max-width: 760px; }
.hero__lead { color: var(--text-soft); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem); max-width: 38ch; margin: 1.4rem 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; color: var(--text-dim); font-size: 0.92rem; font-weight: 600; }
.hero__badges li { color: var(--text-soft); }

.hero__media { position: relative; }
.hero__figure {
  position: relative; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.hero__figure::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7,11,21,0.55) 100%);
}
.hero__figure img,
.hero__figure video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Shader-Effekt im Hero-Rahmen */
.hero__shader { position: absolute; inset: 0; z-index: 0; background: #04060c; }
.hero__shader canvas { display: block; width: 100% !important; height: 100% !important; }
.hero__tag {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: flex; flex-direction: column; line-height: 1;
  padding: 0.85rem 1.1rem; border-radius: 16px;
  background: rgba(10,18,30,0.55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.18);
}
.hero__tag-num { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; color: #fff; }
.hero__tag-label { font-size: 0.8rem; color: rgba(255,255,255,0.85); margin-top: 4px; }

/* ---------- Laufendes Banner (Marquee) ---------- */
.marquee-band { padding: 1.05rem 0; border-block: 1px solid var(--border); background: linear-gradient(180deg, rgba(13,35,64,0.025), transparent); overflow: hidden; }
.marquee {
  display: flex; width: max-content;
  /* sanftes Aus-/Einblenden an den Rändern */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
  display: flex; flex-shrink: 0; margin: 0; padding: 0; list-style: none;
  animation: marquee-scroll 38s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0 1.6rem; white-space: nowrap;
  font-size: 0.95rem; color: var(--text-soft);
}
.marquee__item::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan-bright); flex: none; }
.marquee__item strong { color: var(--text); font-family: var(--font-display); font-weight: 800; }
@keyframes marquee-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- Weitere Leistungen (Chips) ---------- */
.service-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin: 1.9rem 0 0; padding: 0; list-style: none; }
.service-tags li { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); padding: 0.45rem 0.95rem; border: 1px solid var(--border); border-radius: 100px; background: var(--surface); }

/* Über-uns Lead */
.about__lead { color: var(--cyan); font-weight: 700; font-size: 1.02rem; margin: 0.5rem 0 1rem; }

/* ---------- Karriere-CTA-Panel ---------- */
.join {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
  padding: clamp(1.6rem, 4vw, 2.6rem); border-radius: var(--radius-l);
  background: var(--grad-soft); border: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.join__text { max-width: 56ch; }
.join__text h2 { margin: 0.4rem 0 0.6rem; }
.join__text p { color: var(--text-soft); margin: 0; }
.join .btn { flex: none; }
@media (max-width: 640px) {
  .join .btn { width: 100%; justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; position: relative; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.section__head { max-width: 660px; margin: 0 auto clamp(1.8rem, 3.5vw, 2.6rem); text-align: center; }
.section__intro { color: var(--text-soft); margin-top: 1rem; }

/* ---------- Leistungen ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.service {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  position: relative; overflow: hidden;
}
.service::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.service:hover { transform: translateY(-5px); background: var(--surface-2); }
.service:hover::before { opacity: 1; }
.service__head { display: flex; align-items: center; gap: 0.85rem; flex-wrap: wrap; }
.service__icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--grad-soft); border: 1px solid rgba(34,184,224,0.28);
  color: var(--cyan);
}
.service__icon svg { width: 24px; height: 24px; stroke-linecap: round; stroke-linejoin: round; }
.service__head h3 { flex: 1; min-width: 0; }
.service__ne {
  display: inline-block; font-family: var(--font-body); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.06em; color: var(--cyan); vertical-align: middle;
  background: rgba(34,184,224,0.10); border: 1px solid rgba(34,184,224,0.3);
  padding: 0.1rem 0.5rem; border-radius: 100px; margin-left: 0.3rem;
}
.service__toggle { display: none; flex: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); }
.service__toggle svg { width: 20px; height: 20px; margin: auto; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease; }
.service__body { color: var(--text-soft); }
.service__body p { margin-top: 0.9rem; }

/* ---------- Leistungen als Mindmap ---------- */
.mindmap__hint { text-align: center; color: var(--text-dim); font-size: 0.9rem; margin-bottom: 1.6rem; }
.mindmap {
  position: relative; display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: clamp(1.4rem, 4vw, 3.5rem); margin-top: 1.6rem;
}
.mindmap__links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.mindmap__links path { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; opacity: 0.45; }
.mindmap__col { display: flex; flex-direction: column; gap: clamp(0.9rem, 2.4vw, 1.7rem); list-style: none; margin: 0; padding: 0; z-index: 1; }
.mindmap__col--left { align-items: flex-end; }
.mindmap__col--right { align-items: flex-start; }
.mindmap__node {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.8rem; width: fit-content; max-width: 100%;
  padding: 0.75rem 1rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--shadow); cursor: pointer; outline: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.mindmap__node:hover, .mindmap__node:focus-visible { transform: translateY(-3px); border-color: var(--cyan); box-shadow: 0 22px 48px -26px rgba(13, 35, 64, 0.5); }
.mindmap__node.is-open { border-color: var(--cyan); }
.mindmap__col--left .mindmap__node { flex-direction: row-reverse; }
.mindmap__icon { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--cyan); border: 1px solid rgba(34, 184, 224, 0.25); }
.mindmap__icon svg { width: 22px; height: 22px; stroke-linecap: round; stroke-linejoin: round; }
.mindmap__label { font-family: var(--font-display); font-weight: 700; font-size: 0.98rem; line-height: 1.2; }
.mindmap__col--left .mindmap__label { text-align: right; }
/* Aufklappbares Detail (per Klick/Tipp) */
.mindmap__detail {
  flex-basis: 100%; max-width: 32ch; font-weight: 500; font-size: 0.85rem; color: var(--text-soft);
  line-height: 1.45; max-height: 0; opacity: 0; overflow: hidden; margin: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
}
.mindmap__node.is-open .mindmap__detail { max-height: 12rem; opacity: 1; margin-top: 0.35rem; }
.mindmap__col--left .mindmap__detail { text-align: right; margin-left: auto; }
.mindmap__hub {
  justify-self: center; z-index: 2; width: clamp(132px, 15vw, 180px); aspect-ratio: 1; border-radius: 50%;
  display: grid; place-content: center; text-align: center; gap: 0.25rem; padding: 1rem;
  background: var(--grad); color: #fff; box-shadow: 0 22px 55px -18px rgba(34, 184, 224, 0.75);
}
.mindmap__hub-eyebrow { font-family: var(--font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.9; }
.mindmap__hub-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.15rem, 1.4vw, 1.4rem); }

@media (max-width: 860px) {
  /* Auf dem Handy wie zuvor: klassische Karten mit vollem Text, kein Hub/keine Linien */
  .mindmap { display: flex; flex-direction: column; align-items: stretch; gap: 1rem; margin-top: 0.4rem; }
  .mindmap__links, .mindmap__hub, .mindmap__hint { display: none; }
  .mindmap__col { align-items: stretch; gap: 1rem; }
  .mindmap__node { width: auto; cursor: default; flex-direction: row; align-items: flex-start; padding: 1.2rem 1.3rem; }
  .mindmap__col--left .mindmap__node { flex-direction: row; }
  .mindmap__label, .mindmap__col--left .mindmap__label { text-align: left; }
  /* Detail dauerhaft sichtbar (kein Tippen nötig) */
  .mindmap__detail, .mindmap__node.is-open .mindmap__detail { max-height: none; opacity: 1; margin-top: 0.5rem; max-width: none; }
  .mindmap__col--left .mindmap__detail { text-align: left; margin-left: 0; }
  .mindmap__node:hover, .mindmap__node:focus-visible { transform: none; border-color: var(--border); box-shadow: var(--shadow); }
}

/* ---------- Über uns ---------- */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about__media { position: relative; }
.about__media img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius-l);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
}
.about__chip {
  position: absolute; bottom: 16px; left: 16px;
  font-size: 0.8rem; font-weight: 600; color: #fff;
  padding: 0.5rem 0.9rem; border-radius: 100px;
  background: rgba(10,18,30,0.6); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.18);
}
.about__content { min-width: 0; }
.about__content p { color: var(--text-soft); margin-top: 1rem; }

.checklist { margin-top: 1.5rem; display: grid; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 2rem; color: var(--text); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 7px;
  background: var(--grad-soft); border: 1px solid rgba(34,184,224,0.4);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234cd6ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center; background-size: 13px;
}

.about__partner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.43rem;
  max-width: 100%;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.about__partner-label {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-soft);
}
.about__partner-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.75rem;
  background: #fff;
  border-radius: 10px;
  line-height: 0;
}
.about__partner-logo {
  display: block;
  height: auto;
  max-height: 3.2rem;
  width: auto;
  max-width: min(100%, 210px);
  object-fit: contain;
}

/* ---------- Einblicke / Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.gallery__item {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shadow); aspect-ratio: 4 / 5;
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7,11,21,0.78) 100%); pointer-events: none; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: #fff;
  padding: 0.45rem 0.85rem; border-radius: 100px;
  background: rgba(10,18,30,0.55); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.18);
}

/* ---------- Shader-CTA-Banner ---------- */
.cta-band { position: relative; overflow: hidden; background: #04060c; isolation: isolate; }
.cta-band__shader { position: absolute; inset: 0; z-index: 0; }
.cta-band__shader canvas { display: block; width: 100% !important; height: 100% !important; }
.cta-band__video { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
/* Lesbarkeits-Schleier über dem Shader */
.cta-band__veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(70% 90% at 50% 50%, rgba(4, 6, 12, 0.35), rgba(4, 6, 12, 0.78) 100%),
    linear-gradient(180deg, rgba(4, 6, 12, 0.45), rgba(4, 6, 12, 0.2) 50%, rgba(4, 6, 12, 0.55));
}
.cta-band__inner { position: relative; z-index: 2; text-align: center; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.cta-band__inner h2 { color: #fff; max-width: 18ch; margin: 0 auto; }
.cta-band__inner p { color: rgba(255, 255, 255, 0.82); max-width: 52ch; margin: 1.1rem auto 2rem; font-size: 1.08rem; }
.eyebrow--on-dark { color: #7fe9ff; border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.06); }

/* ---------- Spotlight (EFH/ZFH) ---------- */
.spotlight { text-align: center; position: relative; overflow: hidden; }
.spotlight__glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90vw; max-width: 1000px; height: 500px;
  background: radial-gradient(ellipse, rgba(123,108,255,0.18), rgba(34,184,224,0.10) 40%, transparent 70%);
  filter: blur(50px); z-index: 0;
}
.spotlight__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; }
.spotlight__lead { color: var(--text-soft); max-width: 60ch; margin: 1.2rem auto 2.5rem; font-size: 1.08rem; }
.spotlight__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; text-align: left; }
.mini-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.mini-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.mini-card__no { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--cyan); opacity: 0.6; }
.mini-card h3 { margin: 0.5rem 0 0.5rem; }
.mini-card p { color: var(--text-soft); font-size: 0.95rem; }

/* ---------- Ablauf (Steps) ---------- */
/* ---------- Ablauf-Timeline (Linie füllt sich beim Scrollen) ---------- */
.steps {
  --steps-progress: 0;       /* 0..1 – per JS aus der Scrollposition */
  --steps-inset: 12.5%;      /* Mitte erster/letzter Kreis = 100/(2·Anzahl); per JS gesetzt */
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  list-style: none; padding: 0; margin: 0;
}
/* Verbindungslinie: graue Basis + farbiger Fortschritt (hinter den Kreisen) */
.steps::before,
.steps::after {
  content: ""; position: absolute; top: 29px; height: 3px; border-radius: 3px;
  left: var(--steps-inset); z-index: 0; pointer-events: none;
}
.steps::before { right: var(--steps-inset); background: var(--border-strong); }
.steps::after {
  width: calc((100% - 2 * var(--steps-inset)) * var(--steps-progress));
  background: var(--grad); box-shadow: 0 0 14px rgba(34, 184, 224, 0.55);
  transition: width 0.12s linear;
}
.step { position: relative; z-index: 1; text-align: center; padding: 0 0.5rem; background: none; border: 0; }
.step__num {
  position: relative; z-index: 2;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  margin: 0 auto 1.2rem; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  color: var(--text-dim); background: var(--surface); border: 2px solid var(--border-strong);
  box-shadow: 0 0 0 5px rgba(13, 35, 64, 0.04);
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.step.is-active .step__num {
  color: #fff; background: var(--grad); border-color: transparent;
  box-shadow: 0 0 0 5px rgba(34, 184, 224, 0.16), 0 10px 22px -8px rgba(34, 184, 224, 0.75);
  transform: translateY(-2px) scale(1.04);
}
.step h3 { margin-bottom: 0.5rem; font-size: 1.05rem; }
.step p { color: var(--text-soft); font-size: 0.95rem; margin: 0 auto; max-width: 30ch; }

/* ---------- Warum (Features) ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.feature {
  padding: 1.5rem 1.4rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}
.feature:hover { transform: translateY(-4px); background: var(--surface-2); border-color: var(--border-strong); }
.feature h3 { position: relative; padding-left: 1.05rem; margin-bottom: 0.5rem; font-size: 1.05rem; }
.feature h3::before { content: ""; position: absolute; left: 0; top: 0.15em; width: 4px; height: 1em; border-radius: 4px; background: var(--grad); }
.feature p { color: var(--text-soft); font-size: 0.92rem; }

/* ---------- Accordion ---------- */
.faq { max-width: 820px; }
.accordion { display: grid; gap: 0.9rem; }
.acc__item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color 0.3s ease; }
.acc__item.is-open { border-color: var(--border-strong); }
.acc__trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; text-align: left;
  font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; color: var(--text);
  min-height: 56px;
}
.acc__trigger svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.3s ease; }
.acc__item.is-open .acc__trigger svg { transform: rotate(180deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner > * { padding-inline: 1.4rem; color: var(--text-soft); }
.acc__inner > *:last-child { padding-bottom: 1.4rem; }
.acc__inner p { padding-top: 0; }

.tags { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0.2rem 1.4rem 1.4rem !important; }
.tags li {
  font-weight: 600; font-size: 0.9rem; color: var(--text);
  padding: 0.45rem 0.95rem; border-radius: 100px;
  background: var(--grad-soft); border: 1px solid var(--border-strong);
}
.acc__inner .checklist { padding: 0 1.4rem 0; margin-top: 1rem; }

/* ---------- Standort ---------- */
.location { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.location__content p { color: var(--text-soft); margin-top: 1rem; }
.location__address { font-style: normal; margin: 1.4rem 0 1.8rem; line-height: 1.8; color: var(--text); }
.location__address strong { font-family: var(--font-display); }

.location__map {
  display: block; position: relative; aspect-ratio: 16 / 11; border-radius: var(--radius-l); overflow: hidden;
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  background: linear-gradient(160deg, #0d1426, #0a1020);
}
.location__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.location__map:hover .location__img { transform: scale(1.05); }
.map-label {
  position: absolute; bottom: 14px; left: 14px;
  font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.9);
  padding: 0.45rem 0.85rem; border-radius: 100px;
  background: rgba(10,18,30,0.6); border: 1px solid rgba(255,255,255,0.18); backdrop-filter: blur(8px);
}

/* ---------- Kontakt ---------- */
.section--contact { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.contact { position: relative; z-index: 1; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__intro, .contact__form, .location__content { min-width: 0; }
.contact__intro p { color: var(--text-soft); margin-top: 1rem; }
.contact__direct a, .footer__contact a { word-break: break-word; }
.contact__direct { margin-top: 2rem; display: grid; gap: 1rem; }
.contact__direct li { display: flex; align-items: center; gap: 0.9rem; font-weight: 600; }
/* Zentrierte Variante (Karriereseite) */
.contact__direct--center { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem 2rem; margin-inline: auto; max-width: 100%; }
.contact__direct a:hover { color: var(--cyan); }
.contact__ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid rgba(34,184,224,0.28); }
.contact__ico svg { width: 22px; height: 22px; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.contact__form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-l); padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: var(--shadow); }
.field { display: flex; flex-direction: column; gap: 0.45rem; margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text-soft); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 0.85rem 1rem; width: 100%; transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-height: 48px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34,184,224,0.18); }
.field select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2345566e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.9rem center; background-size: 18px; padding-right: 2.6rem; }

.consent { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0.4rem 0 1.4rem; font-size: 0.88rem; color: var(--text-soft); cursor: pointer; }
.consent input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--cyan); cursor: pointer; }
.consent a { color: var(--cyan); text-decoration: underline; text-underline-offset: 2px; }

/* Rechen-CAPTCHA */
.captcha .captcha__q { font-weight: 800; color: var(--cyan); font-variant-numeric: tabular-nums; }
.captcha__row { display: flex; align-items: stretch; gap: 0.6rem; }
.captcha__row input { flex: 1; max-width: 160px; }
.captcha__reload {
  flex: none; width: 48px; min-height: 44px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft);
  font-size: 1.2rem; line-height: 1; cursor: pointer; transition: border-color .2s, color .2s, transform .2s;
}
.captcha__reload:hover { border-color: var(--cyan); color: var(--cyan); transform: rotate(45deg); }

.form__status { margin-top: 1rem; font-weight: 600; font-size: 0.95rem; min-height: 1.2em; }
.form__status.is-error { color: #d23b3b; }
.form__status.is-ok { color: #15803d; }
.form__note { margin-top: 0.8rem; font-size: 0.78rem; color: var(--text-dim); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding-top: clamp(2.5rem, 5vw, 3.5rem); }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1.3fr; gap: 2.5rem; padding-bottom: 2.4rem; }
.footer__brand-head { display: flex; align-items: center; gap: 0.9rem; }
.footer__logo { width: 48px; height: 48px; border-radius: 12px; object-fit: contain; box-shadow: 0 0 0 1px var(--border); flex: none; }
.footer__name { font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; }
.footer__claim { color: var(--text-dim); font-size: 0.86rem; margin-top: 2px; }
.footer__about { color: var(--text-soft); font-size: 0.9rem; margin-top: 1rem; max-width: 36ch; }

.footer__heading {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text);
  margin-bottom: 1rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__links a, .footer__links span { color: var(--text-soft); font-weight: 500; transition: color 0.2s ease; }
.footer__links a:hover { color: var(--cyan); }
.footer__links--contact a, .footer__addr { display: inline-flex; align-items: flex-start; gap: 0.6rem; word-break: break-word; }
.footer__links--contact svg, .footer__addr svg {
  flex: none; width: 18px; height: 18px; margin-top: 2px; fill: none; stroke: var(--cyan);
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 1.4rem 0; margin-top: 0.5rem; border-top: 1px solid var(--border);
}
.footer__copy { color: var(--text-dim); font-size: 0.85rem; }
.footer__powered { font-size: 0.9rem; color: var(--text-dim); }
.wowobot { color: #22b8e0; font-weight: 700; transition: opacity 0.2s ease; }
.wowobot:hover { opacity: 0.8; }

/* ---------- Reveal Animationen ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--reveal-delay, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =================================================================
   SPEZIAL-EFFEKTE
   ================================================================= */

/* 1) Scroll-Fortschrittsbalken */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 200;
  background: var(--grad); box-shadow: 0 0 12px rgba(34, 184, 224, 0.7);
  transition: width 0.1s linear; pointer-events: none;
}

/* 2) Animierter Farbverlauf in Headlines */
.grad { background-size: 220% auto; animation: gradflow 7s ease-in-out infinite; }
@keyframes gradflow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* 3) Cursor-Glow-Spotlight auf Karten */
.service, .feature, .mini-card { position: relative; box-shadow: 0 12px 32px -24px rgba(13, 35, 64, 0.45); }
.service:hover, .feature:hover, .mini-card:hover { box-shadow: 0 22px 48px -26px rgba(13, 35, 64, 0.5); }
.service::after, .feature::after, .mini-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(34, 184, 224, 0.16), transparent 62%);
  opacity: 0; transition: opacity 0.35s ease; z-index: 0;
}
.service:hover::after, .feature:hover::after, .mini-card:hover::after { opacity: 1; }
/* Inhalt über dem Spotlight halten */
.service > *, .feature > *, .mini-card > * { position: relative; z-index: 1; }

/* 4) Glanz-Sweep auf dem Primär-Button */
.btn--primary { overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -160%; width: 55%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn--primary:hover::after { animation: shine 0.9s ease; }
@keyframes shine { from { left: -160%; } to { left: 160%; } }

/* 5) Hero: sanft wandernder Lichtstrahl */
.hero__grid-lines::after {
  content: ""; position: absolute; top: -10%; bottom: -10%; width: 38%; left: 0;
  background: linear-gradient(90deg, transparent, rgba(76, 214, 255, 0.07) 45%, rgba(123, 108, 255, 0.05) 55%, transparent);
  filter: blur(6px); animation: beam 9s ease-in-out infinite;
}
@keyframes beam {
  0% { transform: translateX(-80%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateX(330%); opacity: 0; }
}

/* 6) Sanftes „Schweben" der Bild-/Karten-Tags */
.hero__tag, .about__chip { animation: floaty 6s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* 7) 3D-Tilt auf Karten (JS setzt transform; Transition glättet die Bewegung) */
.fx-tilt { transition: transform 0.18s ease, box-shadow 0.35s ease; transform-style: preserve-3d; }
.fx-tilt:hover { will-change: transform; }

/* 8) Magnetische CTA-Buttons (JS setzt transform; Spring beim Verlassen) */
.fx-magnet { transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
.fx-magnet:hover { will-change: transform; }

/* 9) Hero-Parallax-Ebenen (JS setzt transform) */
.hero__grid-lines, .hero.has-parallax .hero__content { will-change: transform; }

/* 10) Chips/Buttons: Glanzpuls auf den Leistungs-Chips beim Hover */
.service-tags li { transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease; }
.service-tags li:hover { transform: translateY(-3px); border-color: var(--cyan); color: var(--text); }

/* =================================================================
   RESPONSIVE
   ================================================================= */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { order: -1; max-width: 440px; margin-inline: auto; }
  .hero__lead { max-width: none; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; }
  .about__partner { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
  .about__partner-label { font-size: 1.05rem; }
  .about__partner-logo-wrap { padding: 0.35rem 0.6rem; }
  .about__partner-logo { max-height: 2.65rem; max-width: min(100%, 170px); }
  .spotlight__cards { grid-template-columns: 1fr; }
  .location { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* Navigation → Off-Canvas */
  /* z-index über dem offenen Nav-Panel (90), sonst überdeckt das Panel den
     Burger und der Schließen-Tap kommt nicht mehr an. */
  .burger { display: block; position: relative; z-index: 110; }

  /* WICHTIG: backdrop-filter am Header würde diesen zum Bezugsrahmen für
     position:fixed machen und das Off-Canvas-Menü auf Header-Höhe begrenzen.
     Daher auf Mobil deaktivieren – dafür Hintergrund deckender. */
  /* position: fixed (statt sticky): bleibt auch dann oben fixiert, wenn beim
     Öffnen des Menüs body.nav-lock { overflow:hidden } greift. Sticky würde
     dadurch brechen und der Header (mit Burger-X) nach oben aus dem Bild
     springen, sobald man vor dem Öffnen gescrollt hat. */
  .site-header { position: fixed; top: 0; left: 0; right: 0; -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(247, 249, 253, 0.94); }
  .site-header.is-scrolled { background: rgba(247, 249, 253, 0.97); }
  [data-theme="dark"] .site-header { background: rgba(10, 15, 26, 0.95); }
  [data-theme="dark"] .site-header.is-scrolled { background: rgba(10, 15, 26, 0.97); }
  [data-theme="dark"] .nav { background: rgba(14, 21, 37, 0.98); }
  /* 74px Header-Höhe kompensieren, da fixed aus dem Fluss genommen ist */
  body { padding-top: 74px; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(82vw, 340px);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 6rem 1.6rem 2rem;
    background: rgba(255, 255, 255, 0.97); backdrop-filter: blur(18px);
    border-left: 1px solid var(--border);
    transform: translateX(105%); transition: transform 0.38s cubic-bezier(0.5, 0, 0, 1);
    z-index: 90; box-shadow: -30px 0 60px -24px rgba(13, 35, 64, 0.35);
  }
  .nav.is-open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--border); }
  .nav__list a { display: block; padding: 1rem 0.2rem; font-size: 1.1rem; }
  .nav__list a::after { display: none; }
  .nav__cta { margin-top: 1.5rem; width: 100%; }

  .nav-backdrop {
    position: fixed; inset: 0; background: rgba(3, 6, 14, 0.6); backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 80;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; }
  body.nav-lock { overflow: hidden; }

  .services { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }

  /* Ablauf-Timeline vertikal: Linie links, Fortschritt läuft nach unten mit */
  .steps { grid-template-columns: 1fr; gap: 1.6rem; }
  .steps::before, .steps::after { top: 29px; bottom: auto; left: 27px; right: auto; width: 3px; }
  .steps::before { height: calc(100% - 58px); }
  .steps::after { height: calc((100% - 58px) * var(--steps-progress)); transition: height 0.12s linear; }
  .step { display: grid; grid-template-columns: 58px 1fr; gap: 0 1.1rem; align-items: start; text-align: left; padding: 0; }
  .step__num { grid-column: 1; grid-row: 1 / span 2; align-self: start; margin: 0; }
  .step h3 { grid-column: 2; align-self: center; text-align: left; margin: 0 0 0.4rem; }
  .step p { grid-column: 2; text-align: left; max-width: none; margin: 0; }

  /* Galerie als horizontaler Slider (spart vertikales Scrollen) */
  .gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
    gap: 0.9rem; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
    /* nur horizontales Wischen am Slider; vertikales Wischen scrollt die Seite.
       overflow-y: hidden verhindert das sonst automatische vertikale Scrollen,
       das entsteht, wenn overflow-x auf auto und overflow-y auf visible steht. */
    touch-action: pan-x;
    margin-inline: calc(-1 * var(--pad)); padding: 0.4rem var(--pad) 1rem;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { scroll-snap-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__brand { grid-column: auto; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .footer__powered { width: 100%; }

  /* Navigation 2-spaltig + größere Touch-Flächen (min. 44px) */
  .footer__col--nav .footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: 0.1rem 1rem; }
  .footer__links a { display: inline-flex; align-items: center; min-height: 44px; }
  .footer__links--contact a { align-items: center; }
  .footer__addr { padding: 0.5rem 0; }

  /* Leistungen als Accordion auf Mobile */
  .service { padding: 1.2rem 1.3rem; }
  .service__toggle { display: grid; place-items: center; margin-left: auto; }
  .service__head h3 { flex: 1 1 70%; }
  .service__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s ease; }
  .service__body > * { overflow: hidden; }
  .service.is-open .service__body { grid-template-rows: 1fr; }
  .service.is-open .service__toggle svg { transform: rotate(180deg); }
  .service__body p { margin-top: 0; padding-top: 0.9rem; }
}

@media (max-width: 380px) {
  .hero__actions .btn { width: 100%; }
}

/* ---------- Legal Pages ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.legal h1 { margin-bottom: 1.5rem; }
.legal h2 { font-size: 1.3rem; margin: 2.2rem 0 0.6rem; }
.legal p { color: var(--text-soft); margin-bottom: 0.6rem; max-width: 70ch; }
.legal a { color: var(--cyan); text-underline-offset: 2px; }
.legal a:hover { text-decoration: underline; }
.legal__notice {
  background: var(--grad-soft); border: 1px solid rgba(34,184,224,0.3);
  border-radius: var(--radius); padding: 1.1rem 1.3rem; margin-bottom: 1.5rem; color: var(--text) !important;
}
.legal__todo { color: var(--cyan); font-size: 0.9rem; }
.legal .header__inner { height: 74px; }

/* ---------- 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; }
  .reveal { opacity: 1; transform: none; }
}
