/* ============================================================
   Pal & Sohn — Website v2
   Visuelle Sprache: Verkehrssicherung als Designsystem.
   Lane-stripes, Schilder-Typografie, Warnstreifen — alles in
   Markenteal, damit es premium und nicht schreierisch wirkt.
   ============================================================ */

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

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

:root {
  --p900: #022B33;
  --p800: #044957;
  --p700: #076678;
  --p600: #0A7D95;
  --p500: #0E95B0;
  --p400: #2AADC6;
  --p300: #5EC5D8;
  --p200: #9DDDE9;
  --p100: #D0F0F6;
  --p50:  #EBF8FA;

  --ink: #0D1117;
  --ink-muted: #4B5563;
  --ink-faint: #9CA3AF;
  --surface: #FFFFFF;
  --surface-raised: #F8FAFB;
  --border: rgba(14,149,176,0.12);
  --border-strong: rgba(14,149,176,0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-snap: cubic-bezier(0.85, 0, 0.15, 1);

  --shadow-card: 0 14px 40px rgba(2,43,51,0.035);
  --shadow-lift: 0 24px 62px rgba(10,125,149,0.12), 0 4px 14px rgba(0,0,0,0.04);
  --shadow-deep: 0 30px 80px rgba(2,43,51,0.18);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--surface);
  color: var(--ink);
  overflow-x: hidden;
  min-width: 320px;
}
@media (hover: hover) and (min-width: 901px) { body { cursor: none; } }
@media (hover: none), (max-width: 900px) { body { cursor: auto; } }
img, svg { max-width: 100%; }

a, button, input, textarea, select { font: inherit; }
section { scroll-margin-top: 82px; position: relative; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(94,197,216,0.55);
  outline-offset: 3px;
}

/* ============================================================
   Cursor — kleiner Teal-Punkt + größerer Halo, magnetisch
   ============================================================ */
.cursor-dot, .cursor-halo {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 999;
  border-radius: 50%;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--p300);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s, width 0.25s var(--ease-spring), height 0.25s var(--ease-spring);
}
.cursor-halo {
  width: 36px; height: 36px;
  border: 1px solid rgba(94,197,216,0.45);
  transform: translate(-50%, -50%);
  transition: width 0.35s var(--ease-spring), height 0.35s var(--ease-spring), border-color 0.3s, background 0.3s;
}
.cursor-halo.active {
  width: 64px; height: 64px;
  background: rgba(94,197,216,0.08);
  border-color: rgba(94,197,216,0.65);
}
@media (hover: none) {
  .cursor-dot, .cursor-halo { display: none; }
}

/* ============================================================
   Scroll progress — Asphaltlinie oben
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: linear-gradient(90deg, var(--p400), var(--p300));
  z-index: 300;
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(94,197,216,0.6);
}

/* ============================================================
   NAV
   ============================================================ */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 5vw;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background 0.45s ease, backdrop-filter 0.45s ease, box-shadow 0.45s ease, height 0.3s;
}
nav.site-nav.scrolled {
  height: 60px;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  box-shadow: 0 1px 0 rgba(14,149,176,0.1), 0 6px 28px rgba(0,0,0,0.05);
}

.logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  text-decoration: none;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
nav.site-nav.scrolled .logo { color: var(--ink); }
.logo .amp { color: var(--p400); }

/* Berlin-Marker neben Logo */
.logo-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.42);
  text-transform: uppercase;
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255,255,255,0.18);
  transition: color 0.3s, border-color 0.3s;
}
nav.site-nav.scrolled .logo-mark {
  color: var(--ink-faint);
  border-left-color: var(--border);
}
.logo-mark .geo-dot {
  width: 5px; height: 5px;
  background: var(--p400);
  border-radius: 50%;
  animation: aPulse 2.4s infinite;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  padding: 0.45rem 0.9rem;
  border-radius: 100px;
  transition: all 0.2s;
}
nav.site-nav.scrolled .nav-links a { color: var(--ink-muted); }
.nav-links a:hover { color: white; background: rgba(255,255,255,0.1); }
nav.site-nav.scrolled .nav-links a:hover { color: var(--p600); background: var(--p50); }
.nav-cta {
  background: var(--p500) !important;
  color: white !important;
  font-weight: 500 !important;
}
.nav-cta:hover { background: var(--p400) !important; color: white !important; }
nav.site-nav.scrolled .nav-cta { background: var(--p600) !important; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--p900);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 9rem 5vw 7rem;
  overflow: hidden;
  isolation: isolate;
}

.mesh {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 15% 25%, rgba(14,149,176,0.32) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 85% 75%, rgba(6,102,120,0.42) 0%, transparent 60%),
    radial-gradient(ellipse 45% 40% at 55% 5%, rgba(42,173,198,0.2) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94,197,216,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,197,216,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 1;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 80%);
}

/* Riesiger Backdrop-Wordmark */
.hero-backdrop {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(5rem, 24vw, 22rem);
  letter-spacing: -0.04em;
  color: rgba(94,197,216,0.04);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  will-change: transform;
  max-width: 100vw;
}

/* Lane-stripes — animierte Fahrbahnstriche schräg im Hero */
.hero-lane {
  position: absolute;
  inset: -10% -10%;
  background-image: repeating-linear-gradient(
    115deg,
    transparent 0,
    transparent 120px,
    rgba(94,197,216,0.045) 120px,
    rgba(94,197,216,0.045) 124px,
    transparent 124px,
    transparent 200px
  );
  z-index: 1;
  pointer-events: none;
  animation: aLaneDrift 28s linear infinite;
}
@keyframes aLaneDrift {
  from { transform: translateX(0); }
  to   { transform: translateX(-200px); }
}

.hero-content { position: relative; z-index: 2; max-width: 920px; }

/* Hero-Pille mit Live-Uhrzeit */
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(14,149,176,0.18);
  border: 1px solid rgba(94,197,216,0.28);
  color: var(--p200);
  font-size: clamp(0.66rem, 1.6vw, 0.74rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
  backdrop-filter: blur(8px);
  max-width: 100%;
  animation: aFadeDown 0.9s var(--ease-out) both;
}
.hero-pill .dot {
  width: 6px; height: 6px;
  background: var(--p400);
  border-radius: 50%;
  animation: aPulse 2s infinite;
}
.hero-pill .clock {
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.66);
  padding-left: 0.65rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.hero-h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.4rem, 8vw, 7rem);
  line-height: 1.02;
  color: white;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.hero-h1 .gradient {
  background: linear-gradient(130deg, var(--p200) 0%, var(--p400) 40%, var(--p300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
/* Gradient auf einzelne stagger-letter übertragen (JS zerlegt den Span in Kind-Spans) */
.hero-h1 .gradient .stagger-letter {
  background: linear-gradient(130deg, var(--p200) 0%, var(--p400) 40%, var(--p300) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Letter-stagger reveal */
.stagger-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.85em) rotate(6deg);
  transition: opacity 0.7s var(--ease-out), transform 0.85s var(--ease-out);
}
.stagger-letter.in {
  opacity: 1;
  transform: translateY(0) rotate(0);
}

.hero-p {
  font-size: clamp(1rem, 1.7vw, 1.15rem);
  color: rgba(255,255,255,0.55);
  line-height: 1.72;
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  animation: aFadeUp 1s 0.8s var(--ease-out) both;
}

.hero-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: aFadeUp 1s 0.95s var(--ease-out) both;
}

/* Buttons mit Magnetic-Hover */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-weight: 500;
  font-size: 0.93rem;
  border-radius: 100px;
  padding: 0.95rem 1.95rem;
  cursor: none;
  border: none;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
  will-change: transform;
}
@media (hover: none) { .btn { cursor: pointer; } }
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-spring);
}
.btn:hover .arrow { transform: translateX(4px); }

.btn-solid { background: var(--p500); color: white; }
.btn-solid:hover {
  background: var(--p400);
  box-shadow: 0 14px 40px rgba(14,149,176,0.42);
}
.btn-ghost {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.14);
}
.btn-ghost:hover { background: rgba(255,255,255,0.13); color: white; }

/* Live counter im Hero (Jahr Nr. X seit 2013) */
.hero-meta {
  position: absolute;
  bottom: 2.5rem;
  left: 5vw;
  right: 5vw;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.42);
  z-index: 2;
  animation: aFadeUp 1s 1.3s var(--ease-out) both;
}
.hero-meta .meta-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.hero-meta .meta-num {
  color: var(--p300);
  font-weight: 500;
}
.hero-meta .meta-bar {
  width: 24px;
  height: 1px;
  background: rgba(94,197,216,0.5);
}

/* ============================================================
   LANE DIVIDER — Fahrbahnstriche zwischen Sektionen
   ============================================================ */
.lane-divider {
  position: relative;
  height: 1px;
  background: var(--border);
  overflow: visible;
}
.lane-divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 4px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--p400) 0,
    var(--p400) 16px,
    transparent 16px,
    transparent 28px
  );
  border-radius: 4px;
  opacity: 0.55;
}
.lane-divider.dark { background: rgba(255,255,255,0.06); }
.lane-divider.dark::before { background-image: repeating-linear-gradient(90deg, var(--p300) 0, var(--p300) 16px, transparent 16px, transparent 28px); }

/* ============================================================
   SECTION FRAME — Nummerierung, Eyebrow, Title, Desc
   ============================================================ */
.sec-frame {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4.5rem;
}
.sec-frame.left { text-align: left; margin-left: 0; margin-right: 0; }

.sec-num {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p500);
  margin-bottom: 1.1rem;
}
.sec-num .num-bar { width: 22px; height: 1px; background: var(--p400); }
#kontakt .sec-num { color: var(--p300); }
#kontakt .sec-num .num-bar { background: var(--p400); }

.eyebrow {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--p500);
  margin-bottom: 0.85rem;
}

.sec-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1rem;
  text-wrap: balance;
}
.sec-desc {
  font-size: 0.98rem;
  color: var(--ink-muted);
  line-height: 1.72;
  font-weight: 300;
}

/* ============================================================
   STATS
   ============================================================ */
#stats {
  background: var(--p800);
  padding: 4.5rem 5vw;
  position: relative;
  overflow: hidden;
}
#stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -8deg,
    transparent 0, transparent 80px,
    rgba(255,255,255,0.012) 80px, rgba(255,255,255,0.012) 81px,
    transparent 81px, transparent 160px
  );
  pointer-events: none;
}
.stats-row {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
  border-radius: 22px;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.stat-cell {
  background: rgba(255,255,255,0.03);
  padding: 2.6rem 1.6rem;
  text-align: center;
  transition: background 0.25s;
  position: relative;
  overflow: hidden;
}
.stat-cell::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  width: 0; height: 1px;
  background: var(--p300);
  transform: translateX(-50%);
  transition: width 0.55s var(--ease-out);
}
.stat-cell:hover { background: rgba(255,255,255,0.07); }
.stat-cell:hover::before { width: 70%; }
.stat-n {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3.4rem;
  color: var(--p300);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.stat-l {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.4);
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* ============================================================
   CLIENT MARQUEE — Endlos-Ticker der Referenzen
   ============================================================ */
#marquee {
  background: var(--p800);
  padding: 1.75rem 0 3.5rem;
  overflow: hidden;
  position: relative;
}
.marquee-label {
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 1.5rem;
}
.marquee-track {
  display: flex;
  gap: 4rem;
  width: max-content;
  animation: aMarquee 36s linear infinite;
  will-change: transform;
}
@keyframes aMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee-item {
  display: flex;
  align-items: center;
  gap: 4rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  color: rgba(255,255,255,0.32);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee-item .sep {
  width: 8px; height: 8px;
  background: var(--p400);
  border-radius: 50%;
  flex-shrink: 0;
}
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ============================================================
   PROOF + PROCESS
   ============================================================ */
#proof {
  padding: 7rem 5vw 3rem;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-raised) 100%);
}
.proof-wrap {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 1.5rem;
  align-items: stretch;
}

.proof-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,251,0.96));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.proof-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 0%, rgba(42,173,198,0.18), transparent 45%);
  pointer-events: none;
}
.proof-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--p400) 0, var(--p400) 14px,
    transparent 14px, transparent 24px
  );
}
.proof-kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--p600);
  margin-bottom: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.proof-kicker .kicker-dot { width: 6px; height: 6px; background: var(--p400); border-radius: 50%; }
.proof-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 2.9vw, 2.4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.proof-copy {
  color: var(--ink-muted);
  line-height: 1.68;
  font-size: 0.95rem;
  font-weight: 300;
}
.proof-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.proof-name {
  border-radius: 999px;
  border: 1px solid rgba(10,125,149,0.18);
  background: rgba(235,248,250,0.9);
  color: var(--p700);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 0.85rem;
  transition: transform 0.25s var(--ease-spring), background 0.25s, border-color 0.25s;
}
.proof-name:hover {
  background: var(--p400);
  color: white;
  border-color: var(--p400);
  transform: translateY(-2px);
}

/* Process — animierte Connector-Linie */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  left: 25px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--p400), var(--p200));
  opacity: 0.18;
  z-index: 0;
}
.process-grid .progress-line {
  position: absolute;
  left: 25px;
  top: 24px;
  width: 2px;
  height: 0;
  background: linear-gradient(180deg, var(--p500), var(--p400));
  box-shadow: 0 0 14px rgba(42,173,198,0.45);
  z-index: 1;
  transition: height 0.2s linear;
}

.process-step {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(248,250,251,0.96));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem 1.6rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  align-items: flex-start;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  z-index: 2;
}
.process-step:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lift);
}
.step-n {
  width: 36px; height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--p50);
  color: var(--p600);
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  margin-top: 0.1rem;
  grid-column: 1;
  grid-row: 1 / span 2;
  position: relative;
  border: 2px solid var(--surface);
  outline: 1px solid var(--border-strong);
}
.process-step h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.02rem;
  line-height: 1.15;
  margin-bottom: 0.55rem;
  color: var(--ink);
  grid-column: 2;
  grid-row: 1;
}
.process-step p {
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.62;
  font-weight: 300;
  grid-column: 2;
  grid-row: 2;
}

/* ============================================================
   LEISTUNGEN — Karten mit 3D-Tilt + Cursor-Spotlight
   ============================================================ */
#leistungen {
  padding: 8rem 5vw 9rem;
  background: var(--surface);
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  max-width: 1100px;
  margin: 0 auto;
  perspective: 1200px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,251,0.98));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 1.9rem;
  box-shadow: var(--shadow-card);
  cursor: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
  transform-style: preserve-3d;
  will-change: transform;
}
@media (hover: none) { .card { cursor: pointer; } }

/* Spotlight folgt der Maus */
.card .spot {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx, 50%) var(--my, 50%),
    rgba(94,197,216,0.18),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.card:hover .spot { opacity: 1; }

.card-top-line {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--p600), var(--p400));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-out);
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-lift); }
.card:hover .card-top-line { transform: scaleX(1); }

.card-num {
  position: absolute;
  top: 1.4rem;
  right: 1.6rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  z-index: 2;
}

.icon-box {
  width: 54px; height: 54px;
  background: var(--p50);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  position: relative;
  overflow: hidden;
  transition: background 0.3s, transform 0.4s var(--ease-spring);
}
/* Subtle Warnstreifen-Textur in der Icon-Box */
.icon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0, transparent 6px,
    rgba(10,125,149,0.05) 6px, rgba(10,125,149,0.05) 7px
  );
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover .icon-box {
  background: var(--p100);
  transform: scale(1.08) rotate(-4deg);
}
.card:hover .icon-box::before { opacity: 1; }
.icon-box svg {
  width: 22px; height: 22px;
  stroke: var(--p600);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  z-index: 1;
}

.card h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
  margin-bottom: 0.6rem;
  letter-spacing: -0.005em;
}
.card p {
  font-size: 0.9rem;
  color: var(--ink-muted);
  line-height: 1.66;
  font-weight: 300;
}

/* ============================================================
   ÜBER + Features
   ============================================================ */
#ueber {
  padding: 9rem 5vw;
  background: var(--surface-raised);
  position: relative;
  overflow: hidden;
}
#ueber::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
.ueber-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

/* Big year-marker */
.year-mark {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(5rem, 12vw, 9rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: var(--ink);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}
.year-mark .arrow-now {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--p500);
  text-transform: uppercase;
  display: block;
  margin-top: 0.6rem;
}
.year-mark::after {
  content: '';
  position: absolute;
  left: 0; right: 30%;
  bottom: -0.2em;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--p400) 0, var(--p400) 12px, transparent 12px, transparent 22px);
  border-radius: 2px;
}

.body-text {
  font-size: 0.99rem;
  color: var(--ink-muted);
  line-height: 1.8;
  font-weight: 300;
}
.body-text + .body-text { margin-top: 1rem; }
.body-text strong { color: var(--p600); font-weight: 600; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.85rem;
  color: var(--p600);
  font-weight: 500;
  font-size: 0.93rem;
  text-decoration: none;
  border-bottom: 1px solid var(--p200);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s, gap 0.25s;
}
.text-link:hover { color: var(--p500); border-color: var(--p400); gap: 0.75rem; }

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.feature-item {
  background: var(--surface);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 16px;
  padding: 1.3rem 1.45rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--p400);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s var(--ease-out);
}
.feature-item:hover {
  transform: translateX(8px);
  box-shadow: 0 10px 28px rgba(10,125,149,0.09);
  border-color: var(--border-strong);
}
.feature-item:hover::before { transform: scaleY(1); }

.f-dot {
  width: 36px; height: 36px;
  min-width: 36px;
  background: var(--p50);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.f-dot svg {
  width: 16px; height: 16px;
  stroke: var(--p600);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.f-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}
.f-desc {
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.62;
  font-weight: 300;
}

/* ============================================================
   KONTAKT
   ============================================================ */
#kontakt {
  padding: 9rem 5vw;
  background: var(--p900);
  position: relative;
  overflow: hidden;
}
#kontakt::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 92% 50%, rgba(14,149,176,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 8% 85%, rgba(6,102,120,0.22) 0%, transparent 60%);
  pointer-events: none;
}
#kontakt::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(94,197,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,197,216,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 80%);
}
.kontakt-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  position: relative;
  z-index: 1;
}
#kontakt .sec-title { color: white; }
#kontakt .sec-desc { color: rgba(255,255,255,0.5); }
#kontakt .eyebrow { color: var(--p300); }

.k-list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 0.5rem; }
.k-row { display: flex; align-items: center; gap: 1rem; }
.k-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s;
}
.k-row:hover .k-icon {
  background: rgba(94,197,216,0.12);
  border-color: rgba(94,197,216,0.35);
}
.k-icon svg {
  width: 17px; height: 17px;
  stroke: var(--p300);
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.k-label {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.34);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.15rem;
  font-family: 'JetBrains Mono', monospace;
}
.k-value { font-size: 0.94rem; color: rgba(255,255,255,0.82); }
.k-value a { color: inherit; text-decoration: none; transition: color 0.2s; }
.k-value a:hover { color: var(--p300); }

/* Form */
.k-form {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 22px;
  padding: 2.4rem;
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
}
.k-form::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    var(--p400) 0, var(--p400) 14px,
    transparent 14px, transparent 24px
  );
  opacity: 0.7;
}
.row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.field { display: flex; flex-direction: column; gap: 0.42rem; position: relative; }
.field label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.54);
  font-family: 'JetBrains Mono', monospace;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(255,255,255,0.085);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  padding: 0.85rem 1.05rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.92);
  outline: none;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.32); }
.field select option { background: var(--p800); color: white; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(94,197,216,0.55);
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 4px rgba(94,197,216,0.1);
}
.field textarea { resize: vertical; min-height: 110px; }

.privacy-note {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.42);
  line-height: 1.55;
}
.privacy-note a {
  color: var(--p300);
  text-decoration: none;
  border-bottom: 1px solid rgba(94,197,216,0.35);
}

.submit-btn {
  background: var(--p500);
  color: white;
  border: none;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 1rem 2.1rem;
  border-radius: 100px;
  cursor: none;
  transition: background 0.2s, box-shadow 0.3s, transform 0.3s var(--ease-spring);
  display: flex;
  align-items: center;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.4rem;
  position: relative;
  overflow: hidden;
}
@media (hover: none) { .submit-btn { cursor: pointer; } }
.submit-btn:hover {
  background: var(--p400);
  box-shadow: 0 16px 42px rgba(14,149,176,0.42);
}
.submit-btn .arrow { display: inline-block; transition: transform 0.3s var(--ease-spring); }
.submit-btn:hover .arrow { transform: translateX(5px); }

/* Team cards */
.team-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0 1.5rem;
}
.team-card {
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.3s var(--ease-spring), background 0.25s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}
.team-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 16px;
  background: linear-gradient(135deg, transparent, rgba(94,197,216,0.4), transparent);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: -1;
  padding: 1px;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.team-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-3px);
  border-color: rgba(94,197,216,0.3);
}
.team-card:hover::after { opacity: 1; }
.team-avatar {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--p700), var(--p500));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: white;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}
.team-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0, transparent 6px,
    rgba(255,255,255,0.07) 6px, rgba(255,255,255,0.07) 7px
  );
}
.team-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.22rem;
}
.team-role {
  font-size: 0.72rem;
  color: var(--p300);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.95rem;
  font-family: 'JetBrains Mono', monospace;
}
.team-phone {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  font-variant-numeric: tabular-nums;
}
.team-phone:hover { color: var(--p300); }
.team-phone svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--p900);
  border-top: 1px solid rgba(255,255,255,0.055);
  padding: 2.5rem 5vw 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 3px;
  background: repeating-linear-gradient(
    90deg, var(--p400) 0, var(--p400) 12px,
    transparent 12px, transparent 22px
  );
  opacity: 0.55;
  border-radius: 3px;
}
.f-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 0.98rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}
.f-logo .amp { color: var(--p400); }
footer p { font-size: 0.8rem; color: rgba(255,255,255,0.24); }
footer a { color: rgba(255,255,255,0.32); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--p300); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }

@keyframes aPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
@keyframes aFadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes aFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .cards-grid { grid-template-columns: 1fr 1fr; }
  .ueber-wrap, .kontakt-wrap { grid-template-columns: 1fr; gap: 3rem; }
  .proof-wrap { grid-template-columns: 1fr; }
  #leistungen, #ueber, #kontakt, #proof { padding-left: 1.5rem; padding-right: 1.5rem; }
  .hero-backdrop { font-size: clamp(6rem, 26vw, 18rem); }
}
@media (max-width: 700px) {
  body { cursor: auto; }
  .cursor-dot, .cursor-halo { display: none; }
  nav.site-nav { height: 60px; padding: 0 1rem; gap: 0.5rem; }
  nav.site-nav.scrolled { height: 56px; }
  .logo-mark { display: none; }
  .logo { font-size: 0.92rem; }
  .nav-links { display: none !important; }
  #hero { padding: 6.5rem 1rem 8rem; min-height: auto; }
  .hero-content { width: 100%; }
  .hero-pill .clock { padding-left: 0; margin-left: 0; border-left: none; width: 100%; text-align: center; }
  .hero-btns { width: 100%; flex-direction: column; gap: 0.6rem; }
  .hero-btns .btn { width: 100%; justify-content: center; }
  .hero-meta { position: static; flex-direction: column; align-items: flex-start; gap: 0.55rem; padding: 2rem 0 0; font-size: 0.62rem; }
  .hero-meta .meta-line { flex-wrap: wrap; gap: 0.5rem; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-cell { padding: 1.8rem 1rem; }
  .stat-n { font-size: 2.4rem; }
  #marquee { padding: 1.25rem 0 2.5rem; }
  .marquee-item { font-size: 1.4rem; gap: 2rem; }
  .marquee-track { gap: 2rem; }
  #proof { padding: 5rem 1rem 2rem; }
  #leistungen, #ueber, #kontakt { padding-left: 1rem; padding-right: 1rem; padding-top: 5rem; padding-bottom: 5rem; }
  .ueber-wrap, .kontakt-wrap { gap: 2.5rem; }
  .sec-frame { margin-bottom: 3rem; }
  .sec-title { font-size: clamp(1.6rem, 7vw, 2.2rem); }
  .cards-grid { grid-template-columns: 1fr; gap: 1rem; }
  .card { padding: 1.5rem; }
  .row2 { grid-template-columns: 1fr; }
  .team-cards { grid-template-columns: 1fr; }
  .k-form { padding: 1.6rem; }
  .field input, .field textarea, .field select { font-size: 16px; }
  .submit-btn { width: 100%; }
  footer { flex-direction: column; text-align: center; padding: 2rem 1rem; }
  .year-mark { font-size: clamp(3.2rem, 17vw, 5.5rem); }
  .year-mark::after { right: 20%; }
  .proof-card, .process-step { padding: 1.5rem; }
  .proof-title { font-size: clamp(1.4rem, 5.5vw, 1.9rem); }
  .hero-backdrop { font-size: clamp(4.5rem, 32vw, 12rem); opacity: 0.7; }
}
/* ============================================================
   HAMBURGER BUTTON
   ============================================================ */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.25rem;
  z-index: 201;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.25s, background 0.3s;
  transform-origin: center;
}
nav.site-nav.scrolled .nav-hamburger span { background: var(--ink); }
nav.site-nav .nav-hamburger.open span,
nav.site-nav.scrolled .nav-hamburger.open span { background: white; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 700px) {
  .nav-hamburger { display: flex; }
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: var(--p900);
  background-image:
    linear-gradient(rgba(94,197,216,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94,197,216,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0.3s;
}
.mobile-nav.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0s 0s;
}
.mobile-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.mobile-nav li { border-bottom: 1px solid rgba(255,255,255,0.07); }
.mobile-nav li:first-child { border-top: 1px solid rgba(255,255,255,0.07); }
.mobile-nav a {
  display: block;
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 9vw, 2.8rem);
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  letter-spacing: -0.025em;
  padding: 0.9rem 0;
  transition: color 0.2s, padding-left 0.2s var(--ease-out);
}
.mobile-nav a:hover { color: var(--p300); padding-left: 0.5rem; }
.mobile-nav a.mobile-nav-cta { color: var(--p300); }
.mobile-nav-footer {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.mobile-nav-footer a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.32);
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
  transition: color 0.2s;
}
.mobile-nav-footer a:hover { color: var(--p300); }

/* ============================================================
   TEAM CONTACT — Phone + WhatsApp
   ============================================================ */
.team-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.team-wa {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
  font-variant-numeric: tabular-nums;
}
.team-wa:hover { color: #4ade80; }
.team-wa svg { width: 13px; height: 13px; flex-shrink: 0; }

/* TEAM PHOTO — Overlay über Initialen */
.team-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  z-index: 2;
}

@media (max-width: 380px) {
  .stat-n { font-size: 2.1rem; }
  .marquee-item { font-size: 1.2rem; gap: 1.5rem; }
  .marquee-track { gap: 1.5rem; }
  .hero-pill { font-size: 0.6rem; padding: 0.4rem 0.85rem; }
}

/* Hidden-iframe / screenshot-bot fallback — force end-state visibility */
html.static-frame .stagger-letter { opacity: 1 !important; transform: none !important; }
html.static-frame .hero-pill,
html.static-frame .hero-p,
html.static-frame .hero-btns,
html.static-frame .hero-meta { opacity: 1 !important; transform: none !important; animation: none !important; }
html.static-frame .reveal { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .stagger-letter { opacity: 1 !important; transform: none !important; }
  .hero-lane, .marquee-track { animation: none !important; }
}

/* ============================================================
   Zeitraum-Picker — Layout
   ============================================================ */
.zeitraum-wrap {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
}
.zeitraum-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.zeitraum-sub {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
}
.zeitraum-arrow {
  color: var(--p400);
  font-size: 1rem;
  padding-bottom: 0.9rem;
  flex-shrink: 0;
  line-height: 1;
}
.zeitraum-col input[readonly] {
  cursor: pointer;
}
@media (max-width: 500px) {
  .zeitraum-wrap { flex-direction: column; gap: 0.75rem; align-items: stretch; width: 100%; }
  .zeitraum-col { width: 100%; flex: none; }
  .zeitraum-arrow { display: none; }
}

/* ============================================================
   Flatpickr — Teal Brand Overrides
   ============================================================ */
.flatpickr-calendar {
  background: #033340 !important;
  border: 1px solid rgba(94,197,216,0.22) !important;
  border-radius: 16px !important;
  box-shadow: 0 24px 64px rgba(2,43,51,0.6), 0 0 0 1px rgba(94,197,216,0.08) !important;
  font-family: 'DM Sans', sans-serif !important;
  overflow: hidden;
}
.flatpickr-months {
  background: rgba(255,255,255,0.04) !important;
  border-bottom: 1px solid rgba(255,255,255,0.07) !important;
  padding: 0.25rem 0 !important;
}
.flatpickr-months .flatpickr-month { color: rgba(255,255,255,0.88) !important; fill: rgba(255,255,255,0.88) !important; }
.flatpickr-current-month { color: rgba(255,255,255,0.88) !important; }
.flatpickr-current-month .flatpickr-monthDropdown-months {
  background: transparent !important;
  color: rgba(255,255,255,0.88) !important;
}
.flatpickr-current-month input.cur-year { color: rgba(255,255,255,0.88) !important; }
.flatpickr-prev-month, .flatpickr-next-month {
  fill: rgba(255,255,255,0.5) !important;
  color: rgba(255,255,255,0.5) !important;
}
.flatpickr-prev-month:hover svg, .flatpickr-next-month:hover svg { fill: var(--p300) !important; }
.flatpickr-weekdays { background: transparent !important; }
span.flatpickr-weekday {
  color: var(--p300) !important;
  font-weight: 600 !important;
  font-size: 0.78rem !important;
}
.flatpickr-day {
  color: rgba(255,255,255,0.65) !important;
  border-radius: 8px !important;
  border-color: transparent !important;
}
.flatpickr-day:hover, .flatpickr-day:focus {
  background: rgba(94,197,216,0.14) !important;
  border-color: transparent !important;
  color: white !important;
}
.flatpickr-day.today {
  border-color: var(--p400) !important;
  color: var(--p200) !important;
  font-weight: 600 !important;
}
.flatpickr-day.today:hover { background: rgba(94,197,216,0.14) !important; }
.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--p500) !important;
  border-color: var(--p500) !important;
  color: white !important;
  font-weight: 600 !important;
}
.flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover {
  color: rgba(255,255,255,0.18) !important;
}
.flatpickr-time {
  background: rgba(255,255,255,0.04) !important;
  border-top: 1px solid rgba(255,255,255,0.07) !important;
}
.flatpickr-time input,
.flatpickr-time .flatpickr-time-separator,
.flatpickr-time .flatpickr-am-pm {
  color: rgba(255,255,255,0.82) !important;
  background: transparent !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 1rem !important;
}
.flatpickr-time input:hover,
.flatpickr-time input:focus {
  background: rgba(94,197,216,0.1) !important;
}
.numInputWrapper span.arrowUp::after { border-bottom-color: var(--p300) !important; }
.numInputWrapper span.arrowDown::after { border-top-color: var(--p300) !important; }
