/* ============================================================
   ZENTIVUS UG — Global Stylesheet
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --c-primary:   #0B3B3C;
  --c-cyan:      #0891B2;
  --c-emerald:   #10B981;
  --c-amber:     #F59E0B;
  --c-slate:     #334155;
  --c-muted:     #64748B;
  --c-light:     #F0F7F7;
  --c-white:     #FFFFFF;
  --c-dark:      #0F172A;
  --c-border:    #E2EAF0;

  --grad-brand:  linear-gradient(135deg, #0891B2 0%, #10B981 100%);
  --grad-dark:   linear-gradient(135deg, #0B3B3C 0%, #0A4A5C 100%);
  --grad-hero:   linear-gradient(135deg, #071E21 0%, #0B3B3C 50%, #0A4A5C 100%);

  --font:        'Segoe UI', 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --shadow-sm:   0 1px 4px rgba(11,59,60,.08);
  --shadow-md:   0 4px 20px rgba(11,59,60,.12);
  --shadow-lg:   0 8px 40px rgba(11,59,60,.18);
  --shadow-card: 0 2px 12px rgba(11,59,60,.08), 0 8px 32px rgba(11,59,60,.06);

  --r-sm:   8px;
  --r-md:   14px;
  --r-lg:   24px;
  --r-pill: 999px;

  --nav-h:  72px;
  --max-w:  1200px;
  --gap:    2rem;

  --ease:   cubic-bezier(.25,.46,.45,.94);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-slate);
  background: var(--c-white);
  /* overflow-x: clip prevents horizontal scroll WITHOUT breaking position:sticky.
     Modern browsers (Chrome 90+, Firefox 81+, Safari 16+) support it.
     Old `overflow-x: hidden` would silently disable sticky on all descendants. */
  overflow-x: clip;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--c-primary);
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p  { color: var(--c-muted); }
.lead { font-size: 1.15rem; line-height: 1.75; color: var(--c-slate); }

/* ── Layout helpers ─────────────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 96px 0; }
.section--alt {
  background: linear-gradient(180deg, #F0F8F3 0%, #E5F2EB 100%);
}
.section--dark { background: var(--grad-dark); color: var(--c-white); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--c-white); }
.section--dark p { color: rgba(255,255,255,.75); }

.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--gap); }

.text-center { text-align: center; }
.text-left   { text-align: left; }

.section-header { margin-bottom: 3.5rem; }
.section-header .eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: .75rem;
  padding: .3rem .8rem;
  background: rgba(8,145,178,.1);
  border-radius: var(--r-pill);
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 640px; font-size: 1.05rem; }
.section-header.text-center p { margin: 0 auto; }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  transition: all .22s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-brand);
  color: var(--c-white);
  box-shadow: 0 4px 18px rgba(8,145,178,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(8,145,178,.45); }
.btn-outline {
  border: 2px solid var(--c-primary);
  color: var(--c-primary);
}
.btn-outline:hover { background: var(--c-primary); color: var(--c-white); }
.btn-white {
  background: var(--c-white);
  color: var(--c-primary);
  box-shadow: var(--shadow-md);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost {
  color: var(--c-white);
  border: 2px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .05);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  border-color: var(--c-white);
  background: rgba(255, 255, 255, .12);
  transform: translateY(-2px);
}
.btn-group { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
#navbar {
  /* Defined separation: gradient line + drop shadow */
  border-bottom: 1px solid transparent;
}
#navbar::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(16, 185, 129, .35) 25%,
    rgba(8, 145, 178, .45) 50%,
    rgba(16, 185, 129, .35) 75%,
    transparent 100%);
  pointer-events: none;
}
#navbar.transparent {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
}
#navbar.solid {
  background: rgba(11, 59, 60, .94);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .2);
  border-bottom: 1px solid rgba(16, 185, 129, .15);
}
/* Logo SVG is white; add a soft glow on hover */
.nav-logo {
  perspective: 800px;
  display: inline-block;
}
.nav-logo img {
  height: 40px;
  width: auto;
  opacity: .95;
  transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .4s;
  transform-style: preserve-3d;
  will-change: transform;
}
.nav-logo:hover img {
  transform: rotateY(360deg);
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, .6));
}
#navbar .nav-menu a { color: rgba(255, 255, 255, .85); }
#navbar .nav-menu a:hover, #navbar .nav-menu a.active {
  color: #fff;
  background: rgba(255, 255, 255, .12);
}
#navbar .lang-btn {
  background: rgba(255, 255, 255, .12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
}
#navbar .lang-btn:hover { background: rgba(255, 255, 255, .2); }
#navbar .nav-toggle span { background: #fff; }
#navbar .btn-portal {
  color: #fff;
  border-color: rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .08);
}
#navbar .btn-portal:hover {
  background: rgba(16, 185, 129, .25);
  border-color: rgba(16, 185, 129, .55);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: .25rem;
}
.nav-menu a {
  padding: .5rem .9rem;
  border-radius: var(--r-sm);
  font-size: .9rem;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  transition: color .2s, background .2s;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--c-white);
  background: rgba(255,255,255,.12);
}
.nav-right { display: flex; align-items: center; gap: 1rem; }

/* Portal access button */
.btn-portal {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem 1rem;
  border-radius: var(--r-pill);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-white);
  border: 1.5px solid rgba(8,145,178,.6);
  background: rgba(8,145,178,.12);
  transition: background .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn-portal:hover, .btn-portal.active {
  background: rgba(8,145,178,.28);
  border-color: rgba(8,145,178,.9);
  transform: translateY(-1px);
}

/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .75rem;
  border-radius: var(--r-sm);
  background: rgba(255,255,255,.12);
  color: var(--c-white);
  font-size: .85rem;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,.2);
  transition: background .2s;
}
.lang-btn:hover { background: rgba(255,255,255,.2); }
.lang-flag { font-size: 1rem; }
.lang-dropdown {
  position: absolute;
  top: calc(100% + .5rem);
  right: 0;
  background: var(--c-white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--c-border);
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 180px;
  max-height: 360px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: all .2s var(--ease);
  scrollbar-width: thin;
  scrollbar-color: var(--c-cyan) transparent;
}
.lang-dropdown::-webkit-scrollbar { width: 6px; }
.lang-dropdown::-webkit-scrollbar-track { background: transparent; }
.lang-dropdown::-webkit-scrollbar-thumb { background: var(--c-cyan); border-radius: 3px; }

/* RTL support for Arabic */
html[dir="rtl"] body { text-align: right; }
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
html[dir="rtl"] .feature-list li::before { margin-right: 0; margin-left: .75rem; }
html[dir="rtl"] .step { flex-direction: row-reverse; }
html[dir="rtl"] .step-line { left: auto; right: 22px; }
html[dir="rtl"] .common-link, html[dir="rtl"] .service-card .link { direction: rtl; }
html[dir="rtl"] .footer-bottom { direction: rtl; }
.lang-dropdown.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .65rem 1rem;
  font-size: .88rem;
  color: var(--c-slate);
  transition: background .15s;
  cursor: pointer;
}
.lang-option:hover { background: var(--c-light); }
.lang-option.active { background: rgba(8,145,178,.08); color: var(--c-cyan); font-weight: 600; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--c-white);
  border-radius: 2px;
  transition: all .3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(8,145,178,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(16,185,129,.12) 0%, transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(8,145,178,.08) 0%, transparent 40%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3rem) 1.5rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
}
.hero-text .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-emerald);
  margin-bottom: 1.5rem;
}
.hero-text .eyebrow::before {
  content: '';
  width: 24px; height: 2px;
  background: var(--c-emerald);
  border-radius: 2px;
}
.hero-text h1 {
  color: var(--c-white);
  margin-bottom: 1.5rem;
}
.hero-text h1 span {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  color: rgba(255, 255, 255, .78);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 520px;
}
.hero-visual {
  display: flex;
  justify-content: flex-end;
}
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-lg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 2rem;
  width: 100%;
  max-width: 440px;
}
.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.hero-stat {
  text-align: center;
  padding: 1.2rem;
  background: rgba(255,255,255,.06);
  border-radius: var(--r-md);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-stat .num {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}
.hero-stat .lbl { font-size: .8rem; color: rgba(255,255,255,.6); margin-top: .35rem; }

/* ── Service Cards ───────────────────────────────────────────── */
.service-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  perspective: 400px;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1), box-shadow .5s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.service-card:hover .service-icon {
  transform: rotateY(360deg) scale(1.15) translateZ(20px);
  box-shadow: 0 12px 24px rgba(16, 185, 129, .25);
}
.service-icon.cyan    { background: rgba(8,145,178,.1); }
.service-icon.emerald { background: rgba(16,185,129,.1); }
.service-icon.amber   { background: rgba(245,158,11,.1); }
.service-card h3 { font-size: 1.2rem; margin: 0; }
.service-card p  { font-size: .95rem; flex: 1; }
.service-card .link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--c-cyan);
  margin-top: .5rem;
  transition: gap .2s;
}
.service-card .link:hover { gap: .7rem; }

/* ── Why us / Value cards ────────────────────────────────────── */
.value-card {
  padding: 1.75rem;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  transition: background .2s;
}
.value-card:hover { background: rgba(255,255,255,.1); }
.value-icon {
  width: 48px; height: 48px;
  min-width: 48px;
  border-radius: var(--r-sm);
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: white;
}
.value-card h4 { color: var(--c-white); margin-bottom: .35rem; font-size: 1rem; }
.value-card p  { font-size: .9rem; color: rgba(255,255,255,.65); }

/* ── Feature list ────────────────────────────────────────────── */
.feature-list { display: flex; flex-direction: column; gap: .75rem; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .95rem;
  color: var(--c-slate);
}
.feature-list li::before {
  content: '';
  width: 20px; height: 20px;
  min-width: 20px;
  margin-top: .15rem;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
  background-size: 12px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: var(--grad-brand);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Floating 3D objects decorating the CTA (left + right) */
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .2);
  pointer-events: none;
  animation: ctaOrbit 22s ease-in-out infinite;
}
.cta-banner::before {
  top: -40px;
  left: 5%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .15), transparent 60%);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .12);
}
.cta-banner::after {
  bottom: -40px;
  right: 5%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .12), transparent 60%);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, .1);
  animation-delay: -11s;
}
@keyframes ctaOrbit {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(20px, 15px) scale(1.1); }
}
.cta-banner > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 768px) {
  .cta-banner::before, .cta-banner::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cta-banner::before, .cta-banner::after { animation: none !important; }
}
.cta-banner h2 { color: var(--c-white); margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 2rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Page hero (inner pages) — Original deep teal matching Home ──── */
.page-hero {
  background:
    radial-gradient(ellipse at 30% 40%, rgba(16, 185, 129, .18) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 60%, rgba(8, 145, 178, .15) 0%, transparent 55%),
    linear-gradient(135deg, #071E21 0%, #0B3B3C 50%, #0A4A5C 100%);
  padding: calc(var(--nav-h) + 4rem) 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
/* Floating colored glows for visual continuity with Home */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 15% 30%, rgba(8, 145, 178, .35) 0%, transparent 35%),
    radial-gradient(circle at 85% 70%, rgba(16, 185, 129, .30) 0%, transparent 35%);
  filter: blur(40px);
  opacity: .55;
}
/* Subtle blueprint grid (light tint for dark bg) */
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(160, 230, 210, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 230, 210, .05) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 60%, transparent 95%);
          mask-image: radial-gradient(ellipse at 50% 50%, rgba(0,0,0,.8) 0%, rgba(0,0,0,.3) 60%, transparent 95%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--c-white); margin-bottom: 1rem; }
.page-hero p  { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* ── About / Team ────────────────────────────────────────────── */
.team-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--c-border);
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}
.team-avatar {
  width: 88px; height: 88px;
  min-width: 88px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  font-weight: 700;
}
.team-info h3 { margin-bottom: .25rem; }
.team-role { color: var(--c-cyan); font-size: .9rem; font-weight: 600; margin-bottom: .75rem; }
.team-info p { font-size: .95rem; }

/* ── Steps / Methodology ─────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 0; }
.step {
  display: flex;
  gap: 1.5rem;
  position: relative;
  padding-bottom: 2.5rem;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--grad-brand);
  color: white;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.step-line {
  position: absolute;
  left: 22px;
  top: 44px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--c-cyan), transparent);
}
.step:last-child .step-line { display: none; }
.step-body { padding-top: .5rem; }
.step-body h4 {
  color: #FFFFFF !important;
  margin-bottom: .5rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step-body p {
  font-size: .95rem;
  color: rgba(255,255,255,.85) !important;
}

/* ── Sector cards (References) ───────────────────────────────── */
.sector-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  padding: 1.75rem;
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.sector-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.sector-icon { font-size: 2rem; }
.sector-card h4 { color: var(--c-primary); }
.sector-card p  { font-size: .9rem; }

/* ── Competency pills ────────────────────────────────────────── */
.comp-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.comp-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  font-size: .9rem;
  color: var(--c-slate);
  transition: all .2s;
}
.comp-pill:hover {
  border-color: var(--c-cyan);
  color: var(--c-cyan);
  background: rgba(8,145,178,.05);
}
.comp-pill .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--grad-brand);
}

/* ── Contact form ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-item-icon {
  width: 44px; height: 44px;
  min-width: 44px;
  border-radius: var(--r-sm);
  background: var(--c-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.contact-item-body h4 { font-size: .95rem; color: var(--c-primary); margin-bottom: .2rem; }
.contact-item-body p, .contact-item-body a { font-size: .95rem; color: var(--c-muted); }
.contact-item-body a:hover { color: var(--c-cyan); }

.contact-form { background: var(--c-white); border-radius: var(--r-lg); padding: 2.5rem; box-shadow: var(--shadow-card); border: 1px solid var(--c-border); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--c-primary); }
.form-group input,
.form-group textarea,
.form-group select {
  padding: .75rem 1rem;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  font-size: .95rem;
  color: var(--c-slate);
  background: var(--c-white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--c-cyan);
  box-shadow: 0 0 0 3px rgba(8,145,178,.12);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-msg { display: none; padding: .85rem 1.1rem; border-radius: var(--r-sm); font-size: .9rem; margin-top: .75rem; }
.form-msg.success { background: rgba(16,185,129,.1); color: #065F46; border: 1px solid rgba(16,185,129,.25); }
.form-msg.error   { background: rgba(239,68,68,.08); color: #991B1B; border: 1px solid rgba(239,68,68,.2); }
/* Honeypot anti-spam: kept out of sight & out of the tab order; bots fill it, humans never see it */
.hp-field { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

/* ── Legal pages (Impressum, Datenschutz) ────────────────────── */
.legal-content { max-width: 820px; margin: 0 auto; }
.legal-content h2 { font-size: 1.4rem; margin-top: 2.5rem; margin-bottom: .75rem; padding-top: 2rem; border-top: 1px solid var(--c-border); }
.legal-content h2:first-child { border-top: none; margin-top: 0; }
.legal-content h3 { font-size: 1.1rem; margin-top: 1.5rem; margin-bottom: .5rem; }
.legal-content p, .legal-content li { font-size: .95rem; color: var(--c-slate); margin-bottom: .75rem; }
.legal-content ul { padding-left: 1.5rem; list-style: disc; }
.legal-content a { color: var(--c-cyan); text-decoration: underline; }
.legal-content .placeholder { background: #FFF9DB; border: 1px dashed #F59E0B; border-radius: 4px; padding: .1em .4em; color: #92400E; font-size: .85rem; }

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: linear-gradient(135deg, #0A2F2A 0%, #0B3B3C 50%, #082823 100%);
  color: rgba(255,255,255,.7);
  padding: 64px 0 32px;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(16,185,129,.4) 50%, transparent 100%);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand p { font-size: .9rem; line-height: 1.7; margin-top: 1rem; max-width: 280px; }
.footer-logo { height: 36px; filter: brightness(0) invert(1); opacity: .85; }

/* Social icons (LinkedIn etc.) */
.footer-social {
  display: flex;
  gap: .5rem;
  margin-top: 1.25rem;
}
.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.75);
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.footer-social a:hover {
  background: rgba(16, 185, 129, .18);
  border-color: rgba(16, 185, 129, .55);
  color: #fff;
  transform: translateY(-2px);
}
.footer-social svg { width: 18px; height: 18px; }
.footer-col h5 {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.4);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .6rem; }
.footer-col ul li a {
  font-size: .9rem;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--c-emerald); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .85rem; }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: .85rem; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-legal a:hover { color: var(--c-emerald); }

/* ── Cookie Banner ───────────────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 2000;
  padding: 1.25rem 0;
  background: rgba(11,59,60,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,.1);
  transform: translateY(100%);
  transition: transform .4s var(--ease);
}
#cookie-banner.visible { transform: translateY(0); }
.cookie-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cookie-text { font-size: .9rem; color: rgba(255,255,255,.85); }
.cookie-text a { color: var(--c-emerald); text-decoration: underline; }
.cookie-actions { display: flex; gap: .75rem; flex-shrink: 0; }
.btn-cookie-accept {
  padding: .6rem 1.25rem;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: white;
  font-weight: 600;
  font-size: .88rem;
}
.btn-cookie-decline {
  padding: .6rem 1.25rem;
  border-radius: var(--r-pill);
  border: 1px solid rgba(255,255,255,.3);
  color: rgba(255,255,255,.75);
  font-size: .88rem;
}
.btn-cookie-decline:hover { border-color: rgba(255,255,255,.6); color: white; }

/* ── Scroll animations ───────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 3rem; }
  .hero-visual { justify-content: flex-start; }
  .hero-card { max-width: 100%; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .team-card { flex-direction: column; }
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: rgba(11,59,60,.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: .5rem;
    border-top: 1px solid rgba(255,255,255,.1);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { padding: .75rem 1rem; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cookie-inner { flex-direction: column; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .btn-group { flex-direction: column; align-items: flex-start; }
  .hero-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   PHOTOREALISTIC EARTH + STAR FIELD + LIQUID GLASS (Hero)
   Inspired by deep-space aesthetic — Earth bleeds off the right edge.
   ============================================================ */

/* ─── Hero — Original deep teal-green (dark elegant) ─── */
.hero {
  background:
    /* Atmospheric color glows */
    radial-gradient(ellipse at 70% 45%, rgba(16, 185, 129, .22) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 30%, rgba(8, 145, 178, .18) 0%, transparent 55%),
    /* Base: original deep teal gradient */
    linear-gradient(135deg, #071E21 0%, #0B3B3C 50%, #0A4A5C 100%);
}
.hero::before {
  /* The existing colored glows — soften them for the light theme */
  opacity: .25;
  mix-blend-mode: multiply;
}

/* ── Floating orbs (modern SaaS — replaces stars) ──────────── */
.hero-orbs {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .55;
  will-change: transform;
}
.orb-1 {
  background: radial-gradient(circle, #10B981 0%, transparent 70%);
  width: 380px; height: 380px;
  top: -8%; left: 10%;
  animation: orbDrift1 22s ease-in-out infinite;
  opacity: .55;
}
.orb-2 {
  background: radial-gradient(circle, #059669 0%, transparent 70%);
  width: 480px; height: 480px;
  bottom: -12%; left: 20%;
  animation: orbDrift2 28s ease-in-out infinite;
  opacity: .45;
}
.orb-3 {
  background: radial-gradient(circle, #34D399 0%, transparent 70%);
  width: 340px; height: 340px;
  top: 30%; left: 38%;
  animation: orbDrift3 24s ease-in-out infinite;
  opacity: .40;
}
.orb-4 {
  background: radial-gradient(circle, #0891B2 0%, transparent 70%);
  width: 300px; height: 300px;
  bottom: 15%; right: 35%;
  animation: orbDrift4 26s ease-in-out infinite;
  opacity: .35;
}

@keyframes orbDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, 60px) scale(1.1); }
}
@keyframes orbDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-30px, -50px) scale(1.08); }
}
@keyframes orbDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-50px, 30px) scale(.95); }
}
@keyframes orbDrift4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(40px, -40px) scale(1.05); }
}

/* ──────────────────────────────────────────────────────────────
   HERO 3D PRODUCT SCENE — Fiber spool ↔ Wallbox (alternating)
   Pure CSS + SVG, no images, no libraries, GPU-accelerated.
   Tells the brand story in 5 seconds: "we do fiber + EV".
   ────────────────────────────────────────────────────────────── */

.hero-3d {
  position: absolute;
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
  width: clamp(360px, 38vw, 520px);
  aspect-ratio: 1 / 1.15;
  z-index: 2;
  pointer-events: none;
  perspective: 1400px;
  perspective-origin: center;
}

/* ── Ambient torus rings (background decoration, subtle rotation) ── */
.ambient-torus {
  position: absolute;
  inset: -10%;
  transform-style: preserve-3d;
  animation: torusRotate 60s linear infinite;
  opacity: .35;
  will-change: transform;
}
.torus-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid;
}
.tr-1 { transform: rotateX(75deg);  border-color: rgba(16, 185, 129, .55); }
.tr-2 { transform: rotateX(75deg) rotateY(60deg); border-color: rgba(8, 145, 178, .45); }
.tr-3 { transform: rotateX(75deg) rotateY(-60deg); border-color: rgba(16, 185, 129, .45); }
@keyframes torusRotate {
  from { transform: rotateY(0deg); }
  to   { transform: rotateY(360deg); }
}

/* ── Alternating product stage ── */
.product-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
}

.product {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  transform: translateY(20px) scale(.92) rotateY(-20deg);
  transition: none;
  will-change: transform, opacity;
}

.product-svg {
  width: 70%;
  height: auto;
  max-width: 320px;
  filter: drop-shadow(0 20px 40px rgba(16, 185, 129, .25));
}

/* 3D scene mount (Three.js canvas fills this box) */
.product-scene {
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  cursor: grab;
  pointer-events: auto;
}
.product-scene:active { cursor: grabbing; }
.product-scene canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  filter: drop-shadow(0 20px 40px rgba(16, 185, 129, .25));
}

.product-label {
  text-align: center;
  color: #fff;
  max-width: 80%;
}
.product-label-eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .15em;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .35rem;
}
.product-label-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: .25rem;
  letter-spacing: -0.01em;
}
.product-label-meta {
  font-size: .8rem;
  color: rgba(255, 255, 255, .6);
  letter-spacing: .04em;
}

/* Alternating animation: fiber visible 0-7s, transition 7-9s, wallbox 9-16s, transition 16-18s */
.product-fiber {
  animation: productCycle 16s ease-in-out infinite;
}
.product-wallbox {
  animation: productCycle 16s ease-in-out infinite;
  animation-delay: -8s;
}

@keyframes productCycle {
  0%, 3% {
    opacity: 0;
    transform: translateY(40px) scale(.85) rotateY(-25deg);
  }
  10%, 45% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateY(0deg);
  }
  52%, 100% {
    opacity: 0;
    transform: translateY(-40px) scale(.85) rotateY(25deg);
  }
}

/* The fiber strand at the spool tip glows */
.fiber-strand-glow {
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, .9));
}
.fiber-tip {
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 1));
  animation: tipPulse 2s ease-in-out infinite;
}
@keyframes tipPulse {
  0%, 100% { opacity: .9; transform: scale(1); }
  50%      { opacity: 1;  transform: scale(1.4); }
}

/* The Wallbox LED pulses */
.led-pulse {
  animation: ledPulse 1.8s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes ledPulse {
  0%, 100% { opacity: 1;   r: 7; }
  50%      { opacity: .5;  r: 9; }
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-3d { right: -5%; opacity: .85; width: 380px; }
}
@media (max-width: 768px) {
  /* Stack hero vertically: text on top, 3D scene below */
  .hero {
    flex-direction: column-reverse;
    justify-content: center;
    padding: calc(var(--nav-h) + 1.5rem) 0 3rem;
    min-height: auto;
  }
  .hero-content {
    padding: 0 1.25rem;
    width: 100%;
  }
  .hero-3d {
    position: relative;
    right: auto; top: auto;
    transform: none;
    width: min(92vw, 360px);
    aspect-ratio: 1 / 1.05;
    margin: 1.5rem auto 0.5rem;
    opacity: 1;
  }
  /* Make the alternating product cards readable on small screens */
  .product-label-title { font-size: 1.05rem; }
  .product-label-meta  { font-size: .75rem; }
}

/* Reduced-motion support */
@media (prefers-reduced-motion: reduce) {
  .ambient-torus, .product-fiber, .product-wallbox,
  .fiber-tip, .led-pulse {
    animation: none !important;
  }
  .product { opacity: 1; transform: none; }
  .product-wallbox { display: none; } /* show only fiber if motion reduced */
}

/* ──────────────────────────────────────────────────────────────
   3D HOVER TILT — used on Über uns value cards & Leistungen sub-cards
   GPU-accelerated, no JS, looks premium without slowing the page
   ────────────────────────────────────────────────────────────── */

/* Grid wrapper establishes the 3D perspective context for its children */
.tilt-grid {
  perspective: 1200px;
  perspective-origin: center;
}

/* Individual card that lifts and tilts on hover (smooth, premium feel) */
.tilt-card {
  transition:
    transform .45s cubic-bezier(.16, 1, .3, 1),
    box-shadow .45s cubic-bezier(.16, 1, .3, 1);
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card:hover {
  transform: rotateY(7deg) rotateX(-5deg) translateZ(14px) scale(1.02);
  box-shadow:
    0 20px 50px rgba(16, 185, 129, .18),
    0 8px 20px rgba(11, 59, 60, .08);
  z-index: 2;
}

/* Inner element lifts further on hover (icons) — opt-in via .tilt-lift */
.tilt-card .tilt-lift {
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
  transform: translateZ(0);
}
.tilt-card:hover .tilt-lift {
  transform: translateZ(40px);
}

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .tilt-card, .tilt-card:hover, .tilt-card .tilt-lift, .tilt-card:hover .tilt-lift {
    transform: none !important;
  }
}

/* ──────────────────────────────────────────────────────────────
   LEISTUNGEN — 3D Sector visuals (fiber spool + EV wallbox/car)
   ────────────────────────────────────────────────────────────── */

.sector-3d-stage {
  width: 100%;
  max-width: 440px;
  background: linear-gradient(135deg, rgba(11, 59, 60, .04) 0%, rgba(16, 185, 129, .06) 100%);
  border-radius: var(--r-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  border: 1px solid rgba(16, 185, 129, .15);
  box-shadow: 0 8px 32px rgba(11, 90, 70, .08);
}

.sector-3d {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sector-3d-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 12px 24px rgba(16, 185, 129, .18));
}

/* Fiber cable cross-section: gentle sway + glowing core */
.sector-fiber-core {
  transform-origin: 70px 140px;
  animation: fiberCoreSway 9s ease-in-out infinite;
  will-change: transform;
}
@keyframes fiberCoreSway {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}
.sector-core-glow {
  filter: drop-shadow(0 0 8px rgba(94, 234, 212, .95));
  transform-origin: 70px 140px;
  transform-box: view-box;
  animation: coreGlowPulse 1.9s ease-in-out infinite;
}
@keyframes coreGlowPulse {
  0%, 100% { opacity: .85; transform: scale(1); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

/* ── Hybrid fiber visual: photo base + animated SVG overlays ── */
.sector-3d-fiber {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: radial-gradient(120% 100% at 32% 40%, #0E4A45 0%, #0B3B3C 45%, #051F1E 100%);
}
.fiber-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.fiber-fallback { position: absolute; inset: 0; z-index: 1; }
.sector-3d-fiber.has-photo .fiber-fallback { display: none; }
.fiber-sparks {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Twinkling light points (fiber tips carrying light) */
.fiber-twinkle circle {
  fill: #ECFEFF;
  filter: drop-shadow(0 0 4px rgba(94, 234, 212, .95));
  transform-box: fill-box;
  transform-origin: center;
  animation: fiberTwinkle 2.6s ease-in-out infinite;
}
.fiber-twinkle circle:nth-child(2n)  { animation-delay: .5s;  animation-duration: 3.1s; }
.fiber-twinkle circle:nth-child(3n)  { animation-delay: 1s;   animation-duration: 2.3s; }
.fiber-twinkle circle:nth-child(4n)  { animation-delay: 1.6s; animation-duration: 3.4s; }
@keyframes fiberTwinkle {
  0%, 100% { opacity: .2;  transform: scale(.7); }
  50%      { opacity: 1;   transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .fiber-twinkle circle { animation: none !important; }
}

/* Strand glow on fiber */
.sector-strand {
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, .7));
}
/* Glowing endpoints — opacity pulse only (scaling a group would collapse it) */
.sector-strand-tip {
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 1));
  animation: tipGlowPulse 2.4s ease-in-out infinite;
}
@keyframes tipGlowPulse {
  0%, 100% { opacity: .7; }
  50%      { opacity: 1;  }
}

/* Data packets along path */
.data-packet {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, .9));
}

/* EV cable drawing animation */
.ev-cable {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: cableDraw 4s ease-out infinite;
}
@keyframes cableDraw {
  0%        { stroke-dashoffset: 200; }
  30%, 100% { stroke-dashoffset: 0;   }
}

/* Car gentle hover (suspension feel) */
.ev-car {
  transform-origin: 225px 222px;
  animation: carHover 4s ease-in-out infinite;
}
@keyframes carHover {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

/* Spec pills inside the 3D stage (smaller than before) */
.sector-3d-pills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}
.spec-pill {
  background: var(--c-white);
  border-radius: var(--r-md);
  padding: .85rem 1rem;
  text-align: center;
  border: 1px solid rgba(8, 145, 178, .15);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
}
.spec-tag {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-cyan);
}
.spec-label {
  font-size: .72rem;
  color: var(--c-muted);
}
.spec-pill-ev {
  background: rgba(16, 185, 129, .06);
  border-color: rgba(16, 185, 129, .25);
}
.spec-pill-ev .spec-tag { color: var(--c-emerald); }

/* ──────────────────────────────────────────────────────────────
   ÜBER UNS — Mini 3D objects for each value card
   ────────────────────────────────────────────────────────────── */

.value-3d-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  perspective: 600px;
  animation: valueFloat 4.5s ease-in-out infinite;
  will-change: transform;
}
.delay-2 .value-3d-wrap { animation-delay: .6s; }
.delay-3 .value-3d-wrap { animation-delay: 1.2s; }
.delay-4 .value-3d-wrap { animation-delay: 1.8s; }
.value-3d {
  position: relative;
  width: 60px;
  height: 60px;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ── Value icons — meaningful SVG icons extruded into real 3D ──
   JS (init3dValueIcons in main.js) wraps each .value-icon in an .icon-3d
   stage and clones it in depth (translateZ) to give the silhouette
   genuine thickness. The stage rotates on Y; the wrapper does the float. */
.value-icon {
  width: 56px;
  height: 56px;
  display: block;
  margin: 0 auto;
}
.value-icon.ico-emerald { filter: drop-shadow(0 0 9px rgba(16, 185, 129, .55)); }
.value-icon.ico-cyan    { filter: drop-shadow(0 0 9px rgba(34, 184, 217, .55)); }

/* 3D extrusion stage (created by JS) */
.icon-3d {
  position: relative;
  width: 56px;
  height: 56px;
  margin: 0 auto;
  transform-style: preserve-3d;
  animation: icon3dSpin 11s linear infinite;
  will-change: transform;
}
.icon-3d .value-icon {
  position: absolute;
  inset: 0;
  margin: 0;
}
.icon-3d-layer {
  /* back/extrusion layers — glow stripped, dimmed via inline filter from JS */
  pointer-events: none;
}
@keyframes icon3dSpin {
  from { transform: rotateY(0deg)   rotateX(-14deg); }
  to   { transform: rotateY(360deg) rotateX(-14deg); }
}
@keyframes valueFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

@media (prefers-reduced-motion: reduce) {
  .value-3d-wrap, .icon-3d { animation: none !important; }
}

/* Old hero-earth animation removed (replaced by sphere-3d above).
   Defining a stub here so any leftover .hero-earth references degrade gracefully. */
.hero-earth { display: none; }

/* ── DELETED: All earth-* layers (day, night, clouds, atmosphere, terminator,
   sunglint, specular, aurora, rim, lightning, shading) — replaced by the
   new .sphere-3d wireframe above. Files earth-day.jpg, earth-night.jpg,
   earth-clouds.jpg in assets/img/ are unused; can be deleted to save 1.6 MB. */

/* ── Liquid Glass Morphism (DARK version — for the original teal hero) ── */
.hero-card {
  background: rgba(255, 255, 255, .05) !important;
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  border: none !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, .18),
    0 8px 30px rgba(0, 0, 0, .25),
    0 24px 70px rgba(8, 145, 178, .15);
  position: relative;
  overflow: hidden;
}
/* Gradient border */
.hero-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .45) 0%,
    rgba(255, 255, 255, .15) 25%,
    rgba(16, 185, 129, .25) 50%,
    rgba(8, 145, 178, .25) 75%,
    rgba(255, 255, 255, .35) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* Hero stat boxes — dark translucent */
.hero-stat {
  background: rgba(255, 255, 255, .06) !important;
  border: 1px solid rgba(255, 255, 255, .12) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-stat .lbl {
  color: rgba(255, 255, 255, .6) !important;
}

/* Layer order: stars (0) → earth (1) → blueprint grid (2) → content (3) */
.hero-content { position: relative; z-index: 3; }

/* Blueprint grid — light tint on the dark teal hero (reads as architectural overlay) */
.hero-grid {
  z-index: 2;
  opacity: 1;
  background-image:
    linear-gradient(rgba(160, 230, 210, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 230, 210, .07) 1px, transparent 1px) !important;
  background-size: 64px 64px !important;
  /* Linear horizontal fade: full opacity left → transparent right (Earth side) */
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0,0,0,1)   0%,
    rgba(0,0,0,.95) 25%,
    rgba(0,0,0,.55) 55%,
    rgba(0,0,0,.18) 75%,
    rgba(0,0,0,0)   92%
  );
          mask-image: linear-gradient(
    to right,
    rgba(0,0,0,1)   0%,
    rgba(0,0,0,.95) 25%,
    rgba(0,0,0,.55) 55%,
    rgba(0,0,0,.18) 75%,
    rgba(0,0,0,0)   92%
  );
  /* Slight inner glow from intersections */
  filter: drop-shadow(0 0 1px rgba(140, 220, 200, .15));
}

/* Anchor dots at grid intersections — emerald glow on the dark teal hero */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(16, 185, 129, .35) .8px, transparent 1.2px);
  background-size: 64px 64px;
  background-position: 0 0;
  -webkit-mask-image: linear-gradient(
    to right,
    rgba(0,0,0,1)   0%,
    rgba(0,0,0,.7)  25%,
    rgba(0,0,0,.2)  55%,
    rgba(0,0,0,0)   80%
  );
          mask-image: linear-gradient(
    to right,
    rgba(0,0,0,1)   0%,
    rgba(0,0,0,.7)  25%,
    rgba(0,0,0,.2)  55%,
    rgba(0,0,0,0)   80%
  );
  opacity: .7;
}

/* ============================================================
   APPLE-STYLE SCROLL-DRIVEN ANIMATIONS (used on Über uns)
   ============================================================ */

/* The signature Apple smoothing curve */
:root {
  --ease-apple: cubic-bezier(.16, 1, .3, 1);
}

/* Base reveal — fades up smoothly */
.reveal {
  opacity: 0;
  transform: translateY(80px);
  transition: opacity 1.1s var(--ease-apple),
              transform 1.1s var(--ease-apple);
  will-change: transform, opacity;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Reveal with subtle tilt (premium feel) */
.reveal-tilt {
  opacity: 0;
  transform: translateY(70px) rotate(-2deg) scale(.95);
  transition: opacity 1.1s var(--ease-apple),
              transform 1.1s var(--ease-apple);
  will-change: transform, opacity;
}
.reveal-tilt.in-view { opacity: 1; transform: translateY(0) rotate(0) scale(1); }

/* Reveal with scale (perfect for cards) */
.reveal-scale {
  opacity: 0;
  transform: scale(.88) translateY(50px);
  transition: opacity 1s var(--ease-apple),
              transform 1s var(--ease-apple);
  will-change: transform, opacity;
}
.reveal-scale.in-view { opacity: 1; transform: scale(1) translateY(0); }

/* Reveal slide from left/right */
.reveal-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1s var(--ease-apple), transform 1s var(--ease-apple);
  will-change: transform, opacity;
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(100px);
  transition: opacity 1s var(--ease-apple), transform 1s var(--ease-apple);
  will-change: transform, opacity;
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

/* Stagger delays — for cascade effects */
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
.delay-3 { transition-delay: .36s; }
.delay-4 { transition-delay: .48s; }
.delay-5 { transition-delay: .60s; }

/* Subtle continuous float for hero accent elements */
@keyframes appleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.float-anim { animation: appleFloat 5s ease-in-out infinite; }

/* Parallax wrapper */
.parallax-layer { will-change: transform; }

/* Scroll progress bar — thin gradient line at top */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-cyan), var(--c-emerald));
  z-index: 1100;
  transform-origin: left center;
  transform: scaleX(0);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(8,145,178,.6);
}

/* Hero text reveal — stagger lines */
.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s var(--ease-apple), transform .9s var(--ease-apple);
}
.hero-line.in-view { opacity: 1; transform: translateY(0); }

/* Respect user preferences */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-tilt, .reveal-scale, .reveal-left, .reveal-right, .hero-line {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .float-anim { animation: none !important; }
  .scroll-progress { display: none; }
}

/* ============================================================
   SCROLLYTELLING — Sticky SVG + scroll-driven steps
   (used on Infrastruktur page)
   ============================================================ */

.scrolly-section {
  background: linear-gradient(180deg, #F8FAFC 0%, #E0F2F7 100%);
  padding: 60px 0 120px;
  position: relative;
  /* IMPORTANT: NO overflow:hidden here — it would break position:sticky on the SVG */
}

.scrolly-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.scrolly-visual {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  height: calc(100vh - var(--nav-h) - 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: start; /* CRITICAL for sticky to work inside CSS grid */
}

.scrolly-visual-inner {
  width: 100%;
  max-width: 760px;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 20px 60px rgba(11,59,60,.18), 0 8px 30px rgba(8,145,178,.12);
  border: 1px solid rgba(255,255,255,.7);
}
.scrolly-visual-inner svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  background: linear-gradient(180deg, #1A4D52 0%, #0B3B3C 100%);
}

/* Right column: 6 steps with breathing room — first step aligns top so it's
   visible alongside the sticky SVG immediately on entering the section. */
.scrolly-steps {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 0;
}

.scrolly-step {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0.35;
  transform: translateY(20px);
  transition: opacity .6s var(--ease-apple), transform .6s var(--ease-apple);
}
/* First step: align top so heading appears next to SVG immediately */
.scrolly-step:first-child {
  justify-content: flex-start;
  padding-top: 1rem;
  min-height: 80vh;
}
.scrolly-step.active {
  opacity: 1;
  transform: translateY(0);
}

/* Wide screens: cap the inner content so it doesn't drift to edges */
@media (min-width: 1700px) {
  .scrolly-grid {
    max-width: 1500px;
    gap: 6rem;
  }
  .scrolly-visual-inner {
    max-width: 820px;
  }
}

.step-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-cyan);
  margin-bottom: 1.25rem;
}
.step-num-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .5rem;
  background: var(--grad-brand);
  color: #fff;
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 4px 14px rgba(8,145,178,.4);
}

.scrolly-step h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.scrolly-step p {
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 1.75rem;
  color: var(--c-slate);
}
.scrolly-step .feature-list {
  margin-top: .5rem;
}
.scrolly-step .feature-list li {
  font-size: .92rem;
}

/* ── SVG animation classes ──────────────────────────────────── */

/* Layers start hidden */
.svg-layer {
  opacity: 0;
  transition: opacity .8s var(--ease-apple);
}
.svg-layer.active {
  opacity: 1;
}

/* Stroke draw effect — set in JS via dataset */
.svg-stroke {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.6s var(--ease-apple);
}
.svg-layer.active .svg-stroke {
  stroke-dashoffset: 0;
}

/* Pulsing dot */
@keyframes svgPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .6; }
}
.svg-layer.active .svg-pulse {
  transform-origin: center;
  transform-box: fill-box;
  animation: svgPulse 1.8s ease-in-out infinite;
}

@keyframes svgPulseRing {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.2); opacity: 0; }
}
.svg-layer.active .svg-pulse-ring {
  transform-origin: center;
  transform-box: fill-box;
  animation: svgPulseRing 2s ease-out infinite;
}

/* Window glow when "in Betrieb" (step 6) */
.window-glow {
  fill: #1E293B;
  transition: fill .8s var(--ease-apple);
}
#layer-power-on.active ~ #layer-static .window-glow,
#houseSvg.step-6 .window-glow {
  fill: #FBBF24;
}

/* Better — use a class on the parent SVG */
#houseSvg.step-6 rect.window-glow {
  fill: #FBBF24;
  filter: drop-shadow(0 0 8px rgba(251,191,36,.7));
}

/* ── Mobile: stack vertically, keep illustration STICKY at top so the user
       sees the house transition as they scroll through the 6 steps below ── */
@media (max-width: 1024px) {
  .scrolly-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .scrolly-visual {
    position: sticky;
    top: calc(var(--nav-h) + 8px);
    height: 46vh;
    pointer-events: auto;
    z-index: 5;
    /* Solid background prevents step text bleeding through behind the sticky */
    background: linear-gradient(180deg, #F8FAFC 0%, #EAF4F8 100%);
    padding: 0.5rem 0;
    margin: 0 -1.5rem;  /* bleed to viewport edges */
  }
  .scrolly-visual-inner {
    max-width: 520px;
    margin: 0 auto;
    padding: 0.5rem;
  }
  .scrolly-visual-inner svg {
    max-height: calc(46vh - 1.5rem);
    width: auto;
    max-width: 100%;
    margin: 0 auto;
  }
  .scrolly-steps {
    gap: 2rem;
    padding: 1rem 0 2rem;
  }
  /* Steps still fade in/out on scroll on mobile — the sticky SVG above
     stays in view so the user sees its state change with each step */
  .scrolly-step {
    min-height: 50vh;
  }
}
@media (max-width: 640px) {
  .scrolly-visual { height: 40vh; }
  .scrolly-visual-inner svg { max-height: calc(40vh - 1.5rem); }
}
