/* ============================================================
   VOLTA — Design System
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300;1,9..40,400&display=swap');

/* Clash Display via Fontshare CDN */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --bg:          #0A0A0A;
  --bg-1:        #0F0F0F;
  --bg-2:        #141414;
  --bg-3:        #1C1C1C;
  --text:        #F0F0EC;
  --text-2:      #9A9A96;
  --text-3:      #444442;
  --accent:      #C2FF00;
  --accent-dim:  rgba(194, 255, 0, 0.12);
  --border:      rgba(255,255,255,0.07);
  --border-2:    rgba(255,255,255,0.13);
  --overlay:     rgba(6,6,6,0.88);

  /* Typography */
  --font-display: 'Clash Display', 'DM Sans', sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing — 8px system */
  --s1:  8px;
  --s2:  16px;
  --s3:  24px;
  --s4:  32px;
  --s5:  40px;
  --s6:  48px;
  --s8:  64px;
  --s10: 80px;
  --s12: 96px;
  --s16: 128px;
  --s20: 160px;

  /* Radius */
  --r-sm:   4px;
  --r:      8px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  /* Easing */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

  /* Layout */
  --max-w:     1320px;
  --gutter:    clamp(24px, 5vw, 80px);
  --sidebar-w: 40%;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { background: none; border: none; cursor: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--s20) 0; }

/* ============================================================
   PAGE ENTER ANIMATION
   — Only opacity, no transform on body.
     A body transform creates a new containing block for
     position:fixed children, making them scroll with the page.
   ============================================================ */
body {
  animation: page-enter 0.6s ease both;
}
@keyframes page-enter {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   ANIMATED BACKGROUND BLOBS (Aurora)
   ============================================================ */
.bg-blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  will-change: transform;
  mix-blend-mode: screen;
}

.blob-1 {
  width: clamp(500px, 75vw, 1050px);
  height: clamp(500px, 75vw, 1050px);
  background: radial-gradient(circle at center,
    rgba(194, 255, 0, 0.26) 0%,
    rgba(194, 255, 0, 0.09) 42%,
    transparent 70%
  );
  filter: blur(80px);
  top: -15%;
  left: 10%;       /* centred so horizontal shift doesn't uncover left edge */
  animation: blob-1 17s ease-in-out infinite;
}

.blob-2 {
  width: clamp(400px, 60vw, 900px);
  height: clamp(400px, 60vw, 900px);
  background: radial-gradient(circle at center,
    rgba(139, 92, 246, 0.20) 0%,
    rgba(109, 40, 217, 0.07) 45%,
    transparent 70%
  );
  filter: blur(90px);
  top: 30%;
  right: 5%;       /* slightly inset so it stays visible when shifting left */
  animation: blob-2 22s ease-in-out infinite;
}

.blob-3 {
  width: clamp(500px, 80vw, 1200px);
  height: clamp(500px, 80vw, 1200px);
  background: radial-gradient(circle at center,
    rgba(14, 165, 233, 0.14) 0%,
    rgba(6, 182, 212, 0.05) 45%,
    transparent 70%
  );
  filter: blur(110px);
  bottom: -15%;    /* pulled up so bottom of page isn't black */
  left: 20%;
  animation: blob-3 28s ease-in-out infinite;
}

@keyframes blob-1 {
  0%,100% { transform: translate(0,    0)    scale(1);    }
  25%      { transform: translate(5%,  9%)   scale(1.06); }
  50%      { transform: translate(11%, 3%)   scale(0.96); }
  75%      { transform: translate(3%,  13%)  scale(1.04); }
}

@keyframes blob-2 {
  0%,100% { transform: translate(0,     0)    scale(1);    }
  30%      { transform: translate(-7%,  7%)   scale(1.07); }
  60%      { transform: translate(-13%, 1%)   scale(0.94); }
  80%      { transform: translate(-4%,  11%)  scale(1.03); }
}

@keyframes blob-3 {
  0%,100% { transform: translate(0,    0)    scale(1);    }
  20%      { transform: translate(7%,  -5%)  scale(1.04); }
  50%      { transform: translate(2%,  9%)   scale(0.97); }
  75%      { transform: translate(-5%, 4%)   scale(1.05); }
}

/* ============================================================
   FLOATING BUBBLES
   ============================================================ */
.bubble {
  position: fixed;
  z-index: 5;
  border-radius: 50%;
  pointer-events: all;
  cursor: none;
  background:
    /* Hauptreflex — heller Lichtfleck oben-links */
    radial-gradient(ellipse 38% 26% at 30% 24%,
      rgba(255,255,255,0.92) 0%,
      rgba(255,255,255,0.50) 32%,
      transparent 62%
    ),
    /* Zweiter kleiner Reflex unten-rechts */
    radial-gradient(ellipse 20% 16% at 72% 74%,
      rgba(255,255,255,0.24) 0%,
      transparent 58%
    ),
    /* Irisierende Farbschicht (dünner Film) */
    radial-gradient(circle at 50% 50%,
      rgba(160,230,255,0.09) 0%,
      rgba(194,255,  0,0.06) 40%,
      rgba(200,120,255,0.05) 70%,
      transparent 88%
    );
  border: 1px solid rgba(255,255,255,0.30);
  box-shadow:
    inset 0  2px  4px rgba(255,255,255,0.38),
    inset 0 -3px  6px rgba(0,0,20,0.08),
    inset 0  0    0 1px rgba(255,255,255,0.10),
    0 6px 22px rgba(0,0,0,0.13),
    0 0   0 0.5px rgba(255,255,255,0.10);
  backdrop-filter: blur(2px) saturate(1.15);
  -webkit-backdrop-filter: blur(2px) saturate(1.15);
  animation: bubble-float linear both;
  will-change: transform, opacity;
}

@keyframes bubble-float {
  0%   { transform: translateY(0)        translateX(0);                        opacity: 0;    }
  6%   { opacity: 0.80; }
  30%  { transform: translateY(-32.4vh)  translateX(calc(var(--drift) * 0.35)); }
  60%  { transform: translateY(-64.8vh)  translateX(calc(var(--drift) * 0.72)); }
  92%  { opacity: 0.55; }
  100% { transform: translateY(-110vh)   translateX(var(--drift));              opacity: 0;    }
}

@keyframes bubble-pop {
  0%   { transform: scale(1);    opacity: 0.80; filter: brightness(1);   }
  25%  { transform: scale(1.35); opacity: 0.60; filter: brightness(2.8); }
  65%  { transform: scale(2.10); opacity: 0.18; filter: brightness(3.5); }
  100% { transform: scale(2.60); opacity: 0;    filter: brightness(1);   }
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 10000;
  background: rgba(8,8,8,0.96);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transform: translateY(100%);
  transition: transform 0.42s var(--ease-out);
  padding: var(--s4) var(--s6);
}
.cookie-banner.is-visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  flex-wrap: wrap;
}
.cookie-banner__text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s1);
}
.cookie-banner__text p {
  font-size: 0.82rem;
  color: var(--text-3);
  line-height: 1.65;
  margin: 0;
}
.cookie-banner__text a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions { display: flex; gap: var(--s2); flex-shrink: 0; }
.cookie-banner__btn {
  padding: 0.55rem 1.3rem;
  border-radius: var(--r-md);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .2s, border-color .2s, color .2s;
  white-space: nowrap;
  font-family: var(--font-body);
}
.cookie-banner__btn--decline { background: transparent; border-color: var(--border); color: var(--text-2); }
.cookie-banner__btn--decline:hover { border-color: var(--text-2); color: var(--text-1); }
.cookie-banner__btn--accept { background: var(--accent); color: #000; font-weight: 700; }
.cookie-banner__btn--accept:hover { background: #d4ff1a; }
@media (max-width: 600px) {
  .cookie-banner { padding: var(--s4); }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__btn { flex: 1; text-align: center; }
}

/* ============================================================
   GRAIN CANVAS (injected via JS)
   ============================================================ */
#grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.035;
  mix-blend-mode: screen;
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

.cursor-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width .15s, height .15s, opacity .2s;
}

.cursor-ring {
  position: absolute;
  width: 34px;
  height: 34px;
  border: 1.5px solid rgba(255,255,255,0.55);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width  .5s var(--ease-out),
    height .5s var(--ease-out),
    border-color .3s,
    background .3s;
}

body.cursor-hover .cursor-ring {
  width: 56px;
  height: 56px;
  border-color: var(--accent);
  background: var(--accent-dim);
}
body.cursor-hover .cursor-dot {
  opacity: 0;
}

/* ============================================================
   STACKING — content sits above bg-blobs (z-index: 0)
   ============================================================ */
main, .footer { position: relative; z-index: 1; }

/* ============================================================
   HEADER
   ============================================================ */
/* ============================================================
   TOP NAV BAR (visible at page top, hides on scroll)
   ============================================================ */
.topnav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 110;
  display: flex;
  align-items: center;
  height: 66px;
  padding: 0 clamp(var(--s6), 5vw, var(--s10));
  background: transparent;
  transition: opacity .32s ease, transform .38s var(--ease-out);
}
.topnav.is-hidden {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}

.topnav__logo {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
  margin-right: auto;
}

.topnav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(var(--s3), 2.5vw, var(--s6));
}

.topnav__link {
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .22s;
}
.topnav__link:hover  { color: var(--text); }
.topnav__link.is-active {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(194, 255, 0, 0.50);
}

.topnav__cta {
  margin-left: clamp(var(--s3), 2vw, var(--s5));
  padding: 7px 18px;
  font-size: 0.73rem;
  letter-spacing: 0.07em;
}

/* Topnav dropdown ("Unsere Ziele") */
.topnav__item--has-sub {
  position: relative;
}
.topnav__arrow {
  display: inline-block;
  font-size: 0.6rem;
  margin-left: 4px;
  transition: transform .22s var(--ease-out);
  vertical-align: middle;
}
.topnav__item--has-sub:hover .topnav__arrow,
.topnav__item--has-sub:focus-within .topnav__arrow {
  transform: rotate(180deg);
}
.topnav__sub {
  position: absolute;
  top: 100%;          /* flush against nav — no gap the mouse can fall through */
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 200px;
  background: rgba(12, 12, 12, 0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  /* padding-top covers the visual gap while keeping hover area connected */
  padding: var(--s2) 0;
  margin-top: 10px;   /* visual offset rendered via margin, not position */
  list-style: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .24s var(--ease-out);
  z-index: 200;
}
/* invisible bridge fills the gap between nav bar and dropdown */
.topnav__sub::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 0; right: 0;
  height: 10px;
}
.topnav__item--has-sub:hover .topnav__sub,
.topnav__item--has-sub:focus-within .topnav__sub {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
/* small triangle pointer */
.topnav__sub::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 9px; height: 9px;
  background: rgba(12, 12, 12, 0.97);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.topnav__sublink {
  display: block;
  padding: 9px var(--s4);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s, padding-left .18s;
}
.topnav__sublink:hover { color: var(--accent); padding-left: calc(var(--s4) + 5px); }
.topnav__sublink.is-active {
  color: var(--accent);
  padding-left: calc(var(--s4) + 5px);
  text-shadow: 0 0 7px rgba(194, 255, 0, 0.40);
}
.topnav__sub li:first-child .topnav__sublink {
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: var(--s1);
  color: var(--text-3);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.topnav__sub li:first-child .topnav__sublink:hover {
  color: var(--text-2);
  padding-left: var(--s4);
}

/* ============================================================
   HEADER (compact bar — hidden at top, slides in on scroll)
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) var(--gutter);
  mix-blend-mode: difference;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity .32s ease, transform .38s var(--ease-out);
}
.header.is-scrolled {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
}

.menu-btn {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: var(--s1) 10px;
  z-index: 101;
}

.menu-btn__line {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--text);
  transform-origin: center;
  transition: transform .35s var(--ease-out), opacity .2s;
}

.menu-btn.is-active .menu-btn__line:first-child {
  transform: translateY(4.25px) rotate(45deg);
}
.menu-btn.is-active .menu-btn__line:last-child {
  transform: translateY(-4.25px) rotate(-45deg);
}

/* ============================================================
   SIDEBAR OVERLAY
   ============================================================ */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--overlay);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .45s var(--ease-out);
}
.sidebar-overlay.is-visible {
  opacity: 1;
  pointer-events: all;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--sidebar-w);
  z-index: 300;
  background: var(--bg-1);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: var(--s4) var(--s8) var(--s6);
  transform: translateX(100%);
  transition: transform .45s var(--ease-out);
  overflow-y: auto;
}

.sidebar.is-open {
  transform: translateX(0);
}

.sidebar__top {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--s8);
}

.sidebar__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--text-2);
  transition: border-color .25s, color .25s, transform .3s var(--ease-out), background .25s;
}
.sidebar__close:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
  transform: rotate(90deg);
}

/* Nav list */
.sidebar__nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.sidebar__item {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .5s ease, transform .5s var(--ease-out);
  transition-delay: calc(var(--i, 1) * 0.065s);
  border-bottom: 1px solid var(--border);
}
.sidebar__item:first-child { border-top: 1px solid var(--border); }

.sidebar.is-open .sidebar__item {
  opacity: 1;
  transform: translateX(0);
}

.sidebar__link {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s3) 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text-2);
  transition: color .3s, transform .35s var(--ease-out), padding-left .35s var(--ease-out);
  position: relative;
}
.sidebar__link:hover,
.sidebar__link.is-active {
  color: var(--text);
  padding-left: var(--s3);
}
.sidebar__link.is-active .sidebar__text {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(194, 255, 0, 0.45);
}
.sidebar__link:hover .sidebar__text {
  color: var(--text);
}
.sidebar__link.is-active:hover .sidebar__text {
  color: var(--accent);
}

.sidebar__num {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: var(--text-3);
  flex-shrink: 0;
  transition: color .3s;
}
.sidebar__link:hover .sidebar__num,
.sidebar__link.is-active .sidebar__num {
  color: var(--accent);
}

/* Sidebar footer */
.sidebar__footer {
  margin-top: var(--s6);
  padding-top: var(--s4);
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: var(--text-3);
  letter-spacing: 0.05em;
  opacity: 0;
  transition: opacity .4s ease .5s;
}
.sidebar.is-open .sidebar__footer {
  opacity: 1;
}

/* Sidebar submenu (dropdown under "Unsere Ziele") */
.sidebar__link--toggle {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.sidebar__arrow {
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--text-3);
  transition: transform .35s var(--ease-out), color .3s;
  flex-shrink: 0;
}
.sidebar__item--has-sub.is-sub-open .sidebar__arrow {
  transform: rotate(180deg);
  color: var(--accent);
}
.sidebar__link--toggle:hover .sidebar__arrow,
.sidebar__link--toggle.is-active .sidebar__arrow {
  color: var(--accent);
}

.sidebar__sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height .42s var(--ease-out);
  padding-left: calc(var(--s3) + 2.2ch); /* aligns with link text */
}
.sidebar__item--has-sub.is-sub-open .sidebar__sub {
  max-height: 280px;
}

.sidebar__sublink {
  display: block;
  padding: 6px 0;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-3);
  text-decoration: none;
  transition: color .2s, padding-left .2s;
}
.sidebar__sublink:hover { color: var(--accent); padding-left: var(--s2); }
.sidebar__sublink.is-active {
  color: var(--accent);
  padding-left: var(--s2);
  text-shadow: 0 0 7px rgba(194, 255, 0, 0.38);
}
.sidebar__sub li:first-child .sidebar__sublink {
  padding-top: 2px;
}
.sidebar__sub li:last-child .sidebar__sublink {
  padding-bottom: var(--s3);
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--s3) 0;
  user-select: none;
}

.marquee-track {
  display: flex;
  gap: 0;                      /* spacing lives on the spans so -50% is exact */
  white-space: nowrap;
  animation: marquee-scroll 28s linear infinite;
  will-change: transform;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.30);
}
.marquee-track > span {
  flex-shrink: 0;
  padding-right: var(--s5);   /* trailing space is part of the element width */
}
.marquee-wrap:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SERVICE CARDS (Startseite grid)
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s4);
  margin-top: var(--s6);
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  padding: var(--s5);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
.service-card:hover {
  border-color: var(--accent);
  background: rgba(194, 255, 0, 0.03);
  box-shadow: 0 0 0 1px rgba(194,255,0,0.12), 0 0 24px rgba(194,255,0,0.06);
}
.service-card__num {
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--text-3);
  font-weight: 400;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.05;
  transition: color .25s;
}
.service-card:hover .service-card__title { color: var(--accent); }
.service-card__body {
  font-size: 0.86rem;
  line-height: 1.75;
  color: var(--text-2);
  flex: 1;
}
.service-card__arrow {
  margin-top: var(--s3);
  font-size: 1rem;
  color: var(--text-3);
  transition: transform .3s var(--ease-out), color .25s;
  display: inline-block;
  align-self: flex-start;
}
.service-card:hover .service-card__arrow {
  transform: translateX(7px);
  color: var(--accent);
}

/* About teaser strip */
.about-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
  flex-wrap: wrap;
  padding: var(--s6) var(--s7);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
}
.about-teaser__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 560px;
}
.about-teaser__text strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   TAGS / PILLS
   ============================================================ */
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1);
}
.tag {
  display: inline-block;
  padding: 7px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--text-2);
  text-decoration: none;
  cursor: pointer;
  transition: border-color .25s, color .25s, background .25s;
}
.tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-full);
  cursor: none;
  transition: transform .35s var(--ease-out), box-shadow .35s;
  position: relative;
  overflow: hidden;
}
.btn-arrow { transition: transform .25s; }
.btn:hover .btn-arrow { transform: translateX(5px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  box-shadow: 0 0 48px rgba(194,255,0,0.45);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-line {
  overflow: hidden;
  display: block;
}
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease-out);
}
.reveal-line.is-revealed > span {
  transform: translateY(0);
}

/* Stagger helpers — for .reveal elements */
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }
.delay-4 { transition-delay: .32s; }
.delay-5 { transition-delay: .40s; }

/* Stagger for .reveal-line — delay must sit on the inner span */
.reveal-line.delay-1 > span { transition-delay: .08s; }
.reveal-line.delay-2 > span { transition-delay: .16s; }
.reveal-line.delay-3 > span { transition-delay: .24s; }
.reveal-line.delay-4 > span { transition-delay: .32s; }
.reveal-line.delay-5 > span { transition-delay: .40s; }

/* ============================================================
   LABEL / EYEBROW
   ============================================================ */
.label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--s5) 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.footer__copy {
  font-size: 0.75rem;
  color: var(--text-3);
}
.footer__link {
  font-size: 0.75rem;
  color: var(--text-3);
  transition: color .2s;
}
.footer__link:hover { color: var(--accent); }


/* ============================================================
   PAGE: WER SIND WIR (index.html)
   ============================================================ */

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-top: clamp(120px, 15vh, 160px);
  position: relative;
  overflow: hidden;
}

.hero__inner {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: var(--s12);
  padding-bottom: var(--s12);
}

.hero__headline-wrap { flex: 1 1 auto; }

.hero__headline {
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 15rem);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}
.hero__line {
  display: block;
  text-shadow: 0 0 40px rgba(240, 240, 236, 0.10);
}
.hero__line--ghost {
  color: transparent;
  -webkit-text-stroke: 2px var(--text-3);
  text-shadow: none;
}
.hero__line--accent {
  color: var(--accent);
  text-shadow:
    0 0 4px  rgba(194, 255, 0, 0.80),
    0 0 12px rgba(194, 255, 0, 0.35);
  animation: accent-pulse 3.2s ease-in-out infinite;
}

@keyframes accent-pulse {
  0%, 100% {
    text-shadow:
      0 0 4px  rgba(194, 255, 0, 0.70),
      0 0 12px rgba(194, 255, 0, 0.28);
  }
  50% {
    text-shadow:
      0 0 5px  rgba(194, 255, 0, 0.90),
      0 0 16px rgba(194, 255, 0, 0.42);
  }
}

.hero__sidebar {
  max-width: 340px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  padding-bottom: var(--s2);
}
.hero__body {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-2);
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s16);
  align-items: start;
}
.about-text p {
  font-size: 1.1rem;
  line-height: 1.82;
  color: var(--text-2);
  margin-bottom: var(--s3);
}
.about-text p:last-child { margin-bottom: 0; }

.values-list { display: flex; flex-direction: column; }

.value-row {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--border);
  transition: padding-left .35s var(--ease-out), border-color .3s;
}
.value-row:first-child { border-top: 1px solid var(--border); }
.value-row:hover {
  padding-left: var(--s2);
  border-color: var(--border-2);
}
.value-row__num {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  flex-shrink: 0;
}
.value-row__text {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Stats strip */
.stats-strip {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--s10) 0;
}
.stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: var(--s4) var(--s4);
  border-right: 1px solid var(--border);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5.5rem);
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: var(--s1);
}
.stat__suffix {
  font-size: 0.6em;
  vertical-align: super;
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-3);
  letter-spacing: 0.04em;
}


/* ============================================================
   PAGE: UNSER ZIEL
   ============================================================ */

.mission-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding-top: clamp(120px, 15vh, 160px);
  padding-bottom: var(--s12);
}

.mission-headline {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8.5vw, 10rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  max-width: 1100px;
}
.mission-headline em {
  font-style: normal;
  color: var(--accent);
}
.mission-headline .ghost {
  color: transparent;
  -webkit-text-stroke: 2px var(--text-3);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
  padding-bottom: var(--s16);
}

.pillar {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s6);
  transition: border-color .3s, transform .4s var(--ease-out), background .3s;
}
.pillar:hover {
  border-color: var(--border-2);
  transform: translateY(-6px);
  background: var(--bg-3);
}
.pillar__num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s4);
  display: block;
}
.pillar__title {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--s2);
}
.pillar__body {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-2);
}

.eyecatcher {
  text-align: center;
  padding: var(--s16) 0 var(--s20);
  border-top: 1px solid var(--border);
}
.eyecatcher__big {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(6rem, 24vw, 28rem);
  font-weight: 700;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 1px var(--border-2);
  margin-bottom: var(--s6);
  transition: -webkit-text-stroke-color .4s;
}
.eyecatcher:hover .eyecatcher__big {
  -webkit-text-stroke-color: var(--accent);
}
.eyecatcher__copy {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text-2);
  max-width: 520px;
  margin: 0 auto;
}


/* ============================================================
   PAGE: DAS TEAM
   ============================================================ */

.team-hero {
  padding-top: clamp(120px, 15vh, 160px);
  padding-bottom: var(--s12);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
  padding-bottom: var(--s20);
}

.team-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: border-color .3s, transform .45s var(--ease-out);
}
.team-card:hover {
  border-color: var(--border-2);
  transform: translateY(-8px);
}

.team-card__photo {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  position: relative;
}
.team-card__photo-bg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 5.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: rgba(255,255,255,0.12);
  transition: transform .6s var(--ease-out), filter .3s;
}
.team-card:hover .team-card__photo-bg {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.team-card__body {
  padding: var(--s4) var(--s5) var(--s6);
}
.team-card__name {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.team-card__role {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}
.team-card__bio {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-2);
}


/* ============================================================
   PAGE: KONTAKT
   ============================================================ */

.contact-hero {
  padding-top: clamp(120px, 15vh, 160px);
  padding-bottom: var(--s12);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: var(--s12);
  align-items: start;
  padding-bottom: var(--s20);
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
.form-input,
.form-textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 15px 20px;
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color .25s, background .25s;
  resize: none;
  -webkit-appearance: none;
}
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  background: var(--bg-3);
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-textarea { min-height: 150px; }

.form-success {
  display: none;
  padding: var(--s4) var(--s5);
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: var(--r-lg);
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}
.form-success.is-visible { display: block; }

/* Info panel */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.contact-info-item {
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:first-child { border-top: 1px solid var(--border); }
.info-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 6px;
}
.info-value {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.6;
  transition: color .2s;
}
a.info-value:hover { color: var(--accent); }

.social-row {
  display: flex;
  gap: var(--s2);
  margin-top: var(--s5);
}
.social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  transition: border-color .25s, color .25s, background .25s;
}
.social-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}


/* ============================================================
   PAGE: IMPRESSUM
   ============================================================ */

.impressum-wrap {
  padding-top: clamp(120px, 15vh, 160px);
  padding-bottom: var(--s20);
  max-width: 740px;
}

.impressum-wrap h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin-bottom: var(--s12);
}

.impressum-block {
  margin-bottom: var(--s8);
  padding-bottom: var(--s8);
  border-bottom: 1px solid var(--border);
}
.impressum-block:last-child {
  border-bottom: none;
}

.impressum-block h2 {
  font-family: var(--font-body);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s3);
}

.impressum-block p,
.impressum-block address {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-2);
  font-style: normal;
  margin-bottom: var(--s2);
}
.impressum-block p:last-child,
.impressum-block address:last-child { margin-bottom: 0; }

.impressum-block a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color .2s;
}
.impressum-block a:hover { color: var(--accent); }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  :root { --sidebar-w: 56%; }
  .pillars-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .topnav__links { gap: var(--s3); }
  .topnav__cta { display: none; }
}

@media (max-width: 768px) {
  .topnav__links { display: none; }
  /* On mobile: topnav shows logo only, header/burger takes over immediately */
  .topnav { height: 56px; }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 100%;
    --gutter: 20px;
  }

  /* ── Section spacing ── */
  /* 160 px on desktop → 64 px on mobile */
  .section { padding: var(--s8) 0; }

  /* ── Homepage hero ── */
  .hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--s6);
    padding-bottom: var(--s8);
  }
  .hero__sidebar { max-width: 100%; }

  /* ── Mission hero (service & about pages) ── */
  .mission-hero {
    min-height: 52vh;
    padding-top: 88px;
    padding-bottom: var(--s8);
  }
  /* Scale headline purely by viewport width so it never overflows */
  .mission-headline {
    font-size: clamp(1.4rem, 8.5vw, 3.2rem);
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }

  /* ── Eyecatcher strip ── */
  .eyecatcher { padding: var(--s10) 0 var(--s10); }
  /* 6 rem minimum → zu groß für Mobile; rein vw-basiert skalieren */
  .eyecatcher__big { font-size: clamp(2.5rem, 16vw, 6rem); }

  /* ── About ── */
  .about-grid   { grid-template-columns: 1fr; gap: var(--s6); }
  .about-teaser { flex-direction: column; align-items: flex-start; }

  /* ── Services ── */
  .services-grid { grid-template-columns: 1fr; }

  /* ── Stats ── */
  .stats-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(1),
  .stat:nth-child(2) { border-bottom: 1px solid var(--border); }

  /* ── Team ── */
  .team-grid { grid-template-columns: 1fr; max-width: 420px; }

  /* ── Contact ── */
  .contact-layout { grid-template-columns: 1fr; gap: var(--s8); }

  /* ── Impressum / Datenschutz ── */
  .impressum-wrap {
    padding-top: 88px;
    padding-bottom: var(--s10);
  }
  .impressum-wrap h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    margin-bottom: var(--s8);
  }

  /* ── Sidebar nav ── */
  .sidebar { padding: var(--s4) var(--s4) var(--s6); }
  .sidebar__link { font-size: clamp(1.9rem, 9vw, 3rem); }

  /* ── Footer ── */
  .footer__inner { flex-direction: column; align-items: flex-start; gap: var(--s2); }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--border); }
  .stat:last-child { border-bottom: none; }
  .eyecatcher__big { font-size: clamp(4rem, 28vw, 8rem); }

  /* Even tighter on very small screens (≤320 px) */
  .mission-headline { font-size: clamp(1.2rem, 8vw, 1.9rem); }
  .eyecatcher__big   { font-size: clamp(2rem, 13vw, 5rem); }
  .impressum-wrap h1 { font-size: clamp(1.8rem, 11vw, 2.5rem); }
  .section { padding: var(--s6) 0; }
}

/* ============================================================
   TOUCH / MOBILE OVERRIDES
   ============================================================ */
@media (hover: none), (pointer: coarse) {
  /* Restore native cursor */
  body, button, a, input, textarea, label, select { cursor: auto; }
  a, button, label, input[type="submit"], textarea { cursor: pointer; }

  /* Hide custom cursor element */
  .cursor { display: none !important; }

  /* Reduce grain — less harsh on small screens */
  #grain { opacity: 0.012; }

  /* Bubbles: no backdrop-filter (expensive on mobile GPU) */
  .bubble { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (max-width: 768px) {
  /* On mobile the topnav is gone — header (logo + burger) handles everything */
  .topnav { display: none !important; }

  /* Header always visible on mobile — burger reachable without scrolling */
  .header,
  .header.is-scrolled {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    mix-blend-mode: normal !important;
    background: rgba(10,10,10,0.90) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding: 14px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}
