/* ============================================================
   KANOVA GmbH — Elektro & Kabelverlegung · Wiesbaden
   Brand-driven design from the logo palette
   Petrol · Teal · Bronze · Lime  +  electric cable motion
   ============================================================ */

@import url('fonts.css');

/* ── Design Tokens ───────────────────────────────────────── */
:root {
  /* Brand (sampled from logo) */
  --petrol:        #034052;
  --petrol-deep:   #052b37;
  --petrol-700:    #06495c;
  --teal:          #075d78;
  --teal-light:    #2f8aa6;
  --bronze:        #996d30;
  --bronze-light:  #b98a45;
  --lime:          #abc143;
  --lime-dark:     #93a832;
  --lime-deep:     #7d9226;

  /* Surfaces */
  --bg-hero:       #04303d;
  --bg-dark:       #042a35;
  --bg-dark-2:     #063743;
  --bg-cream:      #f6f0e6;
  --bg-cream-2:    #fbf7ef;
  --bg-white:      #ffffff;

  /* Text */
  --ink:           #0e2b33;
  --ink-soft:      #3f5a62;
  --ink-muted:     #6d8189;
  --on-dark:       #f6f0e6;
  --on-dark-70:    rgba(246,240,230,0.72);
  --on-dark-50:    rgba(246,240,230,0.52);
  --on-dark-35:    rgba(246,240,230,0.32);

  /* Lines */
  --line:          #e6ddcd;
  --line-strong:   #d6cab2;
  --line-dark:     rgba(246,240,230,0.12);

  /* Shadows */
  --sh-sm:  0 1px 3px rgba(4,42,53,.08);
  --sh-md:  0 8px 30px rgba(4,42,53,.10);
  --sh-lg:  0 24px 60px rgba(4,42,53,.18);
  --sh-lime: 0 8px 26px rgba(125,146,38,.35);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --section-py: clamp(4.5rem, 9vw, 8rem);

  --t-fast: 150ms ease;
  --t-med:  260ms cubic-bezier(.4,0,.2,1);
  --t-slow: 520ms cubic-bezier(.16,1,.3,1);

  --z-canvas: 0; --z-base: 10; --z-card: 20; --z-nav: 50;
  --z-modal: 80; --z-float: 70; --z-cookie: 100;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 2px; }
::selection { background: rgba(171,193,67,.35); color: var(--petrol-deep); }

/* ── Container ───────────────────────────────────────────── */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.4rem; }
@media (min-width:768px){ .container { padding: 0 2rem; } }
@media (min-width:1100px){ .container { padding: 0 3rem; } }

/* ── Scroll progress ─────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--bronze), var(--teal) 50%, var(--lime));
  z-index: calc(var(--z-nav) + 5); transition: width .1s linear;
}

/* ── Shared headings / eyebrows ──────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--font-display);
  font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--bronze); margin-bottom: 1.1rem;
}
.eyebrow::before { content:''; width: 1.9rem; height: 2px; background: var(--lime); border-radius: 2px; }
.eyebrow--light { color: var(--lime); }
.eyebrow--center { justify-content: center; }

.h-sec {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  font-weight: 700; line-height: 1.08; letter-spacing: -.02em; color: var(--ink);
}
.h-sec--light { color: var(--on-dark); }
.sub-sec {
  font-size: 1.05rem; color: var(--ink-soft); line-height: 1.75; max-width: 56ch; margin-top: 1rem;
}
.sub-sec--light { color: var(--on-dark-70); }

.section-head { margin-bottom: 3.25rem; }
.section-head--center { text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .sub-sec { margin-left: auto; margin-right: auto; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: .65rem;
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  letter-spacing: .01em; transition: all var(--t-med); white-space: nowrap;
}
.btn svg { flex-shrink: 0; transition: transform var(--t-fast); }
.btn:hover svg { transform: translateX(3px); }
.btn-lime { background: var(--lime); color: var(--petrol-deep); box-shadow: var(--sh-lime); }
.btn-lime:hover { background: var(--lime-dark); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(125,146,38,.45); }
.btn-petrol { background: var(--petrol); color: var(--on-dark); }
.btn-petrol:hover { background: var(--teal); transform: translateY(-2px); }
.btn-ghost-light { color: var(--on-dark); border: 1.5px solid var(--on-dark-35); }
.btn-ghost-light:hover { background: rgba(246,240,230,.08); border-color: var(--on-dark-70); }
.btn-ghost-dark { color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-ghost-dark:hover { background: var(--bg-cream); border-color: var(--petrol); }

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar { position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); padding: 1.3rem 0; transition: padding var(--t-slow), background var(--t-slow); }
#navbar.scrolled {
  padding: .7rem 0; background: rgba(4,42,53,.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nav-logo { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo img { height: 42px; width: auto; }
@media (max-width:520px){ .nav-logo img { height: 34px; } }

.nav-pill {
  display: none; align-items: center; gap: .15rem;
  background: rgba(246,240,230,.08); border: 1px solid rgba(246,240,230,.14);
  border-radius: 3rem; padding: .3rem;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
@media (min-width:1024px){ .nav-pill { display: flex; } }
.nav-link {
  padding: .55rem 1.05rem; border-radius: 2.5rem;
  font-size: .88rem; font-weight: 500; color: var(--on-dark-70); white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-link:hover { color: var(--on-dark); background: rgba(246,240,230,.07); }
.nav-link.active { background: var(--lime); color: var(--petrol-deep); font-weight: 600; }

.nav-actions { display: flex; align-items: center; gap: .8rem; }
.nav-cta {
  display: none; align-items: center; gap: .7rem;
  padding: .35rem .35rem .35rem 1.15rem;
  background: rgba(246,240,230,.08); border: 1px solid rgba(246,240,230,.16);
  border-radius: 3rem; font-family: var(--font-display); font-size: .88rem; font-weight: 600; color: var(--on-dark);
  transition: background var(--t-med);
}
@media (min-width:768px){ .nav-cta { display: inline-flex; } }
.nav-cta:hover { background: rgba(246,240,230,.16); }
.nav-cta-dot {
  width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--petrol-deep);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: transform var(--t-fast);
}
.nav-cta:hover .nav-cta-dot { transform: rotate(45deg); }

.nav-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px; border-radius: .6rem;
  background: rgba(246,240,230,.08); border: 1px solid rgba(246,240,230,.14);
}
@media (min-width:1024px){ .nav-burger { display: none; } }
.nav-burger span { display: block; width: 100%; height: 2px; background: var(--on-dark); border-radius: 2px; transition: all var(--t-med); }
.nav-burger.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2){ opacity: 0; }
.nav-burger.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none; position: fixed; inset: 0; z-index: calc(var(--z-nav) - 1);
  background: rgba(4,42,53,.98); backdrop-filter: blur(20px);
  padding: 6rem 1.6rem 2rem; flex-direction: column; gap: .35rem; overflow-y: auto;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 1rem 1.1rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600;
  color: var(--on-dark-70); border-bottom: 1px solid var(--line-dark); transition: color var(--t-fast);
}
.nav-mobile a:hover { color: var(--on-dark); }
.nav-mobile .btn { margin-top: 1.2rem; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative; min-height: 100svh; overflow: hidden;
  display: flex; flex-direction: column;
  background: var(--bg-hero);
}
/* soft brand glow behind the headline for depth */
.hero-glow {
  position: absolute; z-index: 1; pointer-events: none;
  top: 32%; left: 8%; width: 46vw; max-width: 620px; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(171,193,67,.16) 0%, rgba(7,93,120,.08) 40%, transparent 68%);
  filter: blur(6px); animation: heroGlow 9s ease-in-out infinite;
}
@keyframes heroGlow { 0%,100%{ opacity:.7; transform:scale(1);} 50%{ opacity:1; transform:scale(1.08);} }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  z-index: 0; transform: scale(1.05); animation: heroZoom 14s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(95deg, rgba(4,40,51,.93) 0%, rgba(4,40,51,.72) 46%, rgba(4,40,51,.32) 100%);
}
.hero-overlay::after {
  content:''; position: absolute; inset: auto 0 0 0; height: 55%;
  background: linear-gradient(to top, var(--bg-hero) 4%, rgba(4,48,61,.6) 45%, transparent);
}

/* animated current lines layer */
.hero-current { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: .9; }
.hero-current svg { position: absolute; width: 100%; height: 100%; }
.flow {
  fill: none; stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 14 320; opacity: .55;
  animation: flowMove 5.5s linear infinite;
}
.flow.f1 { stroke: var(--teal-light); animation-duration: 6s; }
.flow.f2 { stroke: var(--bronze-light); animation-duration: 4.6s; animation-delay: -1.2s; }
.flow.f3 { stroke: var(--lime); animation-duration: 5.2s; animation-delay: -2.4s; }
@keyframes flowMove { to { stroke-dashoffset: -334; } }

.hero-inner {
  position: relative; z-index: var(--z-base); width: 100%;
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding-top: clamp(4.5rem, 9vh, 6.5rem);
}
.hero-top { flex: 1; display: flex; flex-direction: column; justify-content: center; padding-bottom: 1.4rem; }
.hero-content { max-width: 780px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: .78rem; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 1.4rem;
  opacity: 0; animation: fadeUp .8s .3s forwards;
}
.hero-eyebrow .spark { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 rgba(171,193,67,.6); animation: sparkPulse 2.2s ease-out infinite; }
@keyframes sparkPulse { 0%{box-shadow:0 0 0 0 rgba(171,193,67,.55);} 70%{box-shadow:0 0 0 12px rgba(171,193,67,0);} 100%{box-shadow:0 0 0 0 rgba(171,193,67,0);} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5.1rem);
  font-weight: 700; line-height: 1.02; letter-spacing: -.03em; color: var(--on-dark);
  margin-bottom: 1.5rem;
}
.hero-title .row { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .row em { display: block; font-style: normal; transform: translateY(110%); animation: lineReveal .95s cubic-bezier(.16,1,.3,1) forwards; }
.hero-title .row:nth-child(1) em { animation-delay: .42s; }
.hero-title .row:nth-child(2) em { animation-delay: .56s; }
.hero-title .row:nth-child(3) em { animation-delay: .70s; }
.hero-title .accent {
  position: relative;
  background: linear-gradient(100deg, var(--lime) 0%, var(--teal-light) 60%, var(--bronze-light) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
/* animated underline stroke beneath the accent word */
.hero-title .accent::after {
  content:''; position: absolute; left: 0; right: 6%; bottom: .04em; height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--teal-light)); border-radius: 3px;
  transform: scaleX(0); transform-origin: left; animation: accentLine .8s 1.05s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes accentLine { to { transform: scaleX(1); } }
.hero-sub {
  font-size: clamp(1rem, 1.3vw, 1.15rem); color: var(--on-dark-70); line-height: 1.7;
  max-width: 50ch; margin-bottom: 1.8rem; opacity: 0; animation: fadeUp .9s .95s forwards;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; opacity: 0; animation: fadeUp .9s 1.1s forwards; }
@media (max-width:560px){ .hero-actions { flex-direction: column; align-items: stretch; } .hero-actions .btn { justify-content: center; } }
.hero-trust {
  display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap;
  margin-top: 1.5rem; font-size: .9rem; font-weight: 500; color: var(--on-dark-70);
  opacity: 0; animation: fadeUp .9s 1.3s forwards;
}
.hero-trust svg { color: var(--lime); flex-shrink: 0; }

/* What sets us apart — bottom strip (Locke's-style) */
.hero-pillars {
  position: relative; z-index: var(--z-base); width: 100%;
  flex-shrink: 0; padding: clamp(1.4rem, 2.5vh, 2.2rem) 0 clamp(1.6rem, 3vh, 2.6rem);
  border-top: 1px solid var(--line-dark);
}
.hero-pillars-label {
  font-family: var(--font-display); font-size: .8rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--lime); margin-bottom: 1.1rem; display: inline-flex; align-items: center; gap: .6rem;
}
.hero-pillars-label::before { content:''; width: 1.6rem; height: 2px; background: var(--bronze-light); }
.pillars-grid { display: grid; grid-template-columns: 1fr; gap: 1.6rem 2.4rem; }
@media (min-width:640px){ .pillars-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:1024px){ .pillars-grid { grid-template-columns: repeat(4,1fr); } }
.pillar { position: relative; padding-top: 1.1rem; opacity: 0; }
.pillar.revealed { animation: fadeUp .7s forwards; }
.pillar::before { content:''; position: absolute; top: 0; left: 0; width: 2.2rem; height: 3px; background: var(--lime); border-radius: 2px; }
.pillar h3 { font-family: var(--font-display); font-size: 1.06rem; font-weight: 600; color: var(--on-dark); margin-bottom: .5rem; }
.pillar p { font-size: .9rem; color: var(--on-dark-50); line-height: 1.6; }

/* ============================================================
   STATS STRIP
   ============================================================ */
#stats { background: var(--bg-dark-2); border-block: 1px solid var(--line-dark); padding: 2.6rem 0; }
.stats-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; background: var(--line-dark); }
@media (min-width:768px){ .stats-grid { grid-template-columns: repeat(4,1fr); } }
.stat { background: var(--bg-dark-2); padding: 1.4rem 1.5rem; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: clamp(1.9rem,4vw,2.7rem); font-weight: 700; color: var(--on-dark); line-height: 1; display: block; }
.stat-num .u { color: var(--lime); }
.stat-lbl { display: block; font-size: .78rem; color: var(--on-dark-50); font-weight: 500; margin-top: .5rem; letter-spacing: .06em; text-transform: uppercase; }

/* ============================================================
   ABOUT
   ============================================================ */
#ueber { padding: var(--section-py) 0; background: var(--bg-cream-2); }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center; }
@media (min-width:1024px){ .about-grid { grid-template-columns: 1.05fr 1fr; gap: 4.5rem; } }
.about-checks { display: flex; flex-direction: column; gap: 1.15rem; margin-top: 2rem; }
.about-check { display: flex; gap: .9rem; align-items: flex-start; }
.about-check .tick {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; margin-top: 1px;
  background: rgba(171,193,67,.16); color: var(--lime-deep);
  display: flex; align-items: center; justify-content: center;
}
.about-check b { font-family: var(--font-display); font-weight: 600; color: var(--ink); }
.about-check span { color: var(--ink-soft); }
.about-check p { font-size: .95rem; line-height: 1.6; }

/* image collage */
.about-media { position: relative; }
.about-media-main { border-radius: 1.2rem; overflow: hidden; aspect-ratio: 5/4; box-shadow: var(--sh-lg); }
.about-media-main img { width: 100%; height: 100%; object-fit: cover; }
.about-badge {
  position: absolute; left: -1.2rem; bottom: -1.2rem;
  background: var(--petrol); color: var(--on-dark);
  border-radius: 1rem; padding: 1.2rem 1.4rem; box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: .9rem; max-width: 78%;
}
@media (max-width:520px){ .about-badge { left: .6rem; bottom: -.8rem; padding: 1rem; } }
.about-badge .yrs { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1; color: var(--lime); }
.about-badge .t { font-size: .82rem; line-height: 1.4; color: var(--on-dark-70); }
.about-cables { position: absolute; right: -.5rem; top: -1.4rem; width: 120px; height: 60px; pointer-events: none; }

/* ============================================================
   SERVICES — floating panel with numbered cards
   ============================================================ */
#leistungen { padding: var(--section-py) 0; background: var(--bg-hero); position: relative; overflow: hidden; }
#leistungen::before {
  content:''; position: absolute; top: -12rem; right: -14rem; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(circle, rgba(7,93,120,.22), transparent 70%); pointer-events: none;
}
.svc-panel {
  position: relative; z-index: 1;
  background: var(--bg-cream-2); border-radius: clamp(1.4rem, 3vw, 2.4rem);
  padding: clamp(2.4rem, 5vw, 4.5rem) clamp(1.3rem, 4vw, 3.6rem);
  box-shadow: var(--sh-lg);
}
.svc-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2.4rem, 4vw, 3.4rem); }
.svc-badge {
  display: inline-block; background: var(--petrol); color: var(--on-dark);
  font-family: var(--font-display); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; padding: .5rem 1.15rem;
  border-radius: 2rem; margin-bottom: 1.4rem;
}
.svc-title {
  font-family: var(--font-display); font-size: clamp(2rem, 4.4vw, 3.4rem);
  font-weight: 700; text-transform: uppercase; letter-spacing: -.01em;
  color: var(--ink); line-height: 1.05; margin-bottom: 1rem;
}
.svc-intro { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }

.svc-grid { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
@media (min-width:600px){ .svc-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:1000px){ .svc-grid { grid-template-columns: repeat(3,1fr); } }

.svc-card {
  position: relative; overflow: hidden;
  background: var(--petrol-deep); border-radius: 1.1rem;
  padding: 1.7rem 1.6rem 1.9rem;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.svc-card:hover { transform: translateY(-6px); box-shadow: 0 22px 46px rgba(4,42,53,.32); }
.svc-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.svc-media {
  width: 76px; height: 76px; flex-shrink: 0; border-radius: .9rem; overflow: hidden;
  background: rgba(246,240,230,.06); border: 1px solid rgba(246,240,230,.1);
}
.svc-media img { width: 100%; height: 100%; object-fit: cover; }
.svc-num {
  font-family: var(--font-display); font-size: 4.2rem; font-weight: 700; line-height: .78;
  color: transparent; -webkit-text-stroke: 1.6px rgba(246,240,230,.3);
  transition: -webkit-text-stroke-color var(--t-med);
}
.svc-card:hover .svc-num { -webkit-text-stroke-color: rgba(171,193,67,.6); }
.svc-card h3 {
  position: relative; z-index: 2;
  font-family: var(--font-display); font-size: 1.16rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .01em; color: var(--on-dark); margin-bottom: .65rem; line-height: 1.25;
}
.svc-card p { position: relative; z-index: 2; font-size: .9rem; color: var(--on-dark-50); line-height: 1.65; }
.svc-corner {
  position: absolute; left: 0; bottom: 0; z-index: 1;
  width: 60px; height: 60px; background: var(--lime);
  border-radius: 0 100% 0 0; transition: transform var(--t-med);
}
.svc-card:hover .svc-corner { transform: scale(1.25); }

.svc-cta { text-align: center; margin-top: clamp(2.2rem, 4vw, 3rem); }
.svc-more {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--petrol); color: var(--on-dark);
  font-family: var(--font-display); font-size: .95rem; font-weight: 600;
  padding: .95rem 1.9rem; border-radius: 3rem; transition: all var(--t-med);
}
.svc-more:hover { background: var(--teal); transform: translateY(-2px); box-shadow: var(--sh-md); }
.svc-more svg { transition: transform var(--t-fast); }
.svc-more:hover svg { transform: translateX(3px); }

/* ============================================================
   PROCESS
   ============================================================ */
#prozess { padding: var(--section-py) 0; background: var(--bg-white); }
.proc-track { position: relative; display: grid; grid-template-columns: 1fr; gap: 2.2rem; }
@media (min-width:680px){ .proc-track { grid-template-columns: repeat(2,1fr); } }
@media (min-width:1024px){ .proc-track { grid-template-columns: repeat(4,1fr); gap: 1rem; } }
@media (min-width:1024px){
  .proc-track::before {
    content:''; position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
    background: repeating-linear-gradient(90deg, var(--line-strong) 0 8px, transparent 8px 16px); z-index: 0;
  }
}
.proc-step { position: relative; z-index: 1; text-align: center; padding: 0 1rem; }
.proc-num {
  width: 58px; height: 58px; border-radius: 50%; margin: 0 auto 1.4rem;
  background: var(--petrol); color: var(--lime);
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(4,42,53,.22);
  transition: transform var(--t-med);
}
.proc-step:hover .proc-num { transform: translateY(-4px) scale(1.05); }
.proc-step h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; color: var(--ink); margin-bottom: .5rem; }
.proc-step p { font-size: .9rem; color: var(--ink-soft); line-height: 1.6; max-width: 24ch; margin: 0 auto; }

/* ============================================================
   PROJECTS GALLERY
   ============================================================ */
#projekte { padding: var(--section-py) 0; background: var(--bg-cream); }
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 1.1rem; }
@media (min-width:640px){ .gallery-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width:1024px){ .gallery-grid { grid-template-columns: repeat(3,1fr); gap: 1.3rem; } }
.proj-card {
  position: relative; border-radius: 1rem; overflow: hidden; aspect-ratio: 4/3;
  cursor: pointer; background: var(--petrol); box-shadow: var(--sh-sm);
}
.proj-card img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow), filter var(--t-slow); }
.proj-card:hover img { transform: scale(1.07); filter: brightness(.62); }
.proj-overlay {
  position: absolute; inset: 0; padding: 1.3rem;
  background: linear-gradient(to top, rgba(4,42,53,.92), rgba(4,42,53,.15) 55%, transparent);
  display: flex; flex-direction: column; justify-content: flex-end; color: var(--on-dark);
}
.proj-tag {
  align-self: flex-start; display: inline-flex; gap: .35rem; margin-bottom: .6rem;
  padding: .3rem .7rem; background: rgba(171,193,67,.18); border: 1px solid rgba(171,193,67,.4);
  border-radius: 2rem; font-size: .68rem; font-weight: 600; color: var(--lime);
  text-transform: uppercase; letter-spacing: .06em;
}
.proj-title { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.proj-meta { font-size: .82rem; color: var(--on-dark-50); margin-top: .25rem; display: flex; align-items: center; gap: .4rem; }
.proj-count {
  position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .65rem; background: rgba(4,42,53,.7); backdrop-filter: blur(8px);
  border-radius: 2rem; font-size: .74rem; font-weight: 600; color: var(--on-dark);
}
.proj-empty { grid-column: 1/-1; text-align: center; padding: 4rem 1rem; color: var(--ink-muted); }
.skeleton { aspect-ratio: 4/3; border-radius: 1rem; background: linear-gradient(100deg, #ece3d2 30%, #f5efe3 50%, #ece3d2 70%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }

/* Lightbox / project viewer */
#lightbox { display: none; position: fixed; inset: 0; z-index: var(--z-modal); background: rgba(4,20,26,.95); padding: 1rem; }
#lightbox.open { display: flex; align-items: center; justify-content: center; }
.lb-inner { position: relative; width: 100%; max-width: 1040px; max-height: 92vh; display: flex; flex-direction: column; }
.lb-stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; }
.lb-stage img { max-width: 100%; max-height: 74vh; object-fit: contain; border-radius: .7rem; }
.lb-close { position: absolute; top: -.6rem; right: -.6rem; width: 40px; height: 40px; background: var(--on-dark); color: var(--petrol-deep); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--t-fast); z-index: 3; }
.lb-close:hover { background: var(--lime); transform: rotate(90deg); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; background: rgba(246,240,230,.12); border: 1px solid rgba(246,240,230,.2); color: var(--on-dark); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: var(--t-fast); }
.lb-nav:hover { background: var(--lime); color: var(--petrol-deep); }
.lb-prev { left: .4rem; } .lb-next { right: .4rem; }
.lb-caption { color: var(--on-dark); text-align: center; padding: 1rem .5rem 0; }
.lb-caption .t { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.lb-caption .m { font-size: .85rem; color: var(--on-dark-50); margin-top: .2rem; }
.lb-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .9rem .2rem .2rem; justify-content: center; }
.lb-thumbs img { width: 64px; height: 48px; object-fit: cover; border-radius: .35rem; opacity: .5; cursor: pointer; flex-shrink: 0; transition: opacity var(--t-fast), outline-color var(--t-fast); outline: 2px solid transparent; }
.lb-thumbs img.active { opacity: 1; outline-color: var(--lime); }

/* ============================================================
   WHY / TRUST BAND
   ============================================================ */
#warum { padding: var(--section-py) 0; background: var(--bg-dark); position: relative; overflow: hidden; }
.why-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: center; }
@media (min-width:1024px){ .why-grid { grid-template-columns: 1fr 1fr; gap: 4.5rem; } }
.why-media { position: relative; border-radius: 1.3rem; overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--sh-lg); }
.why-media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.82) saturate(1.05); }
.why-list { display: flex; flex-direction: column; gap: 1rem; margin-top: 2.2rem; }
.why-item { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem; background: rgba(246,240,230,.04); border: 1px solid var(--line-dark); border-radius: .9rem; transition: border-color var(--t-med), background var(--t-med); }
.why-item:hover { background: rgba(171,193,67,.05); border-color: rgba(171,193,67,.28); }
.why-item .ic { flex-shrink: 0; width: 42px; height: 42px; border-radius: .65rem; background: rgba(7,93,120,.3); color: var(--lime); display: flex; align-items: center; justify-content: center; }
.why-item h4 { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--on-dark); margin-bottom: .25rem; }
.why-item p { font-size: .88rem; color: var(--on-dark-50); line-height: 1.6; }

/* ============================================================
   CONTACT
   ============================================================ */
#kontakt { padding: var(--section-py) 0; background: var(--bg-cream-2); }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3.5rem; align-items: start; }
@media (min-width:1024px){ .contact-grid { grid-template-columns: 1.1fr .9fr; gap: 4.5rem; } }
.contact-form { display: flex; flex-direction: column; gap: 1.15rem; }
.fld { display: flex; flex-direction: column; gap: .45rem; }
.fld label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); letter-spacing: .02em; }
.fld input, .fld textarea, .fld select {
  width: 100%; padding: .9rem 1.05rem; background: var(--bg-white);
  border: 1.5px solid var(--line); border-radius: .6rem; color: var(--ink);
  font-family: var(--font-body); font-size: .95rem; transition: border-color var(--t-med), box-shadow var(--t-med); outline: none; resize: vertical;
}
.fld input::placeholder, .fld textarea::placeholder { color: var(--ink-muted); }
.fld input:focus, .fld textarea:focus, .fld select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(7,93,120,.1); }
.fld textarea { min-height: 140px; }
.fld-row { display: grid; grid-template-columns: 1fr; gap: 1.15rem; }
@media (min-width:560px){ .fld-row { grid-template-columns: 1fr 1fr; } }
.form-submit { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: 1.05rem; background: var(--petrol); color: var(--on-dark); border-radius: .65rem; font-family: var(--font-display); font-size: 1rem; font-weight: 600; transition: all var(--t-med); }
.form-submit:hover { background: var(--teal); transform: translateY(-2px); box-shadow: var(--sh-md); }
.form-submit:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.form-msg { padding: .9rem 1.1rem; border-radius: .6rem; font-size: .9rem; font-weight: 500; display: none; }
.form-msg.success { display: block; background: rgba(171,193,67,.14); border: 1px solid rgba(125,146,38,.4); color: var(--lime-deep); }
.form-msg.error { display: block; background: rgba(220,80,60,.1); border: 1px solid rgba(220,80,60,.3); color: #b3402f; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .82rem; color: var(--ink-soft); line-height: 1.55; cursor: pointer; }
.check input { width: 17px; height: 17px; min-width: 17px; margin-top: 2px; accent-color: var(--lime-deep); cursor: pointer; }
.check a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }

.contact-aside { background: var(--petrol); border-radius: 1.3rem; padding: 2.4rem; color: var(--on-dark); position: relative; overflow: hidden; }
.contact-aside h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: .6rem; }
.contact-aside > p { color: var(--on-dark-70); font-size: .95rem; line-height: 1.7; margin-bottom: 1.8rem; }
.contact-rows { display: flex; flex-direction: column; gap: 1rem; }
.contact-row { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; background: rgba(246,240,230,.05); border: 1px solid var(--line-dark); border-radius: .8rem; transition: border-color var(--t-med); }
.contact-row:hover { border-color: rgba(171,193,67,.4); }
.contact-row .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: .6rem; background: rgba(171,193,67,.16); color: var(--lime); display: flex; align-items: center; justify-content: center; }
.contact-row .lbl { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--on-dark-50); margin-bottom: 2px; }
.contact-row .val { font-family: var(--font-display); font-weight: 600; font-size: .98rem; }
.contact-cables { position: absolute; bottom: -10px; right: -20px; width: 180px; height: 90px; opacity: .5; pointer-events: none; }

/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: var(--bg-hero); color: var(--on-dark); padding: 4.5rem 0 2rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.6rem; padding-bottom: 3rem; border-bottom: 1px solid var(--line-dark); }
@media (min-width:680px){ .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width:1024px){ .footer-grid { grid-template-columns: 2.4fr 1fr 1fr 1.4fr; gap: 3rem; } }
.footer-logo { height: 42px; width: auto; margin-bottom: 1.2rem; }
.footer-about { font-size: .9rem; color: var(--on-dark-50); line-height: 1.75; max-width: 32ch; }
.footer-col h4 { font-family: var(--font-display); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-70); margin-bottom: 1.2rem; }
.footer-col a, .footer-col .li { display: flex; align-items: flex-start; gap: .55rem; font-size: .9rem; color: var(--on-dark-50); margin-bottom: .7rem; transition: color var(--t-fast); }
.footer-col a:hover { color: var(--lime); }
.footer-col svg { flex-shrink: 0; margin-top: 3px; color: var(--lime); }
.footer-bottom { display: flex; flex-direction: column; gap: 1rem; text-align: center; padding-top: 1.8rem; }
@media (min-width:680px){ .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-bottom p { font-size: .8rem; color: var(--on-dark-50); }
.footer-legal { display: flex; gap: 1.4rem; justify-content: center; }
.footer-legal a { font-size: .8rem; color: var(--on-dark-50); transition: color var(--t-fast); }
.footer-legal a:hover { color: var(--lime); }

/* ============================================================
   FLOATING CTA + COOKIE
   ============================================================ */
.floating-cta { position: fixed; bottom: 1.5rem; left: 1.4rem; z-index: var(--z-float); }
.floating-btn { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--lime); color: var(--petrol-deep); box-shadow: 0 8px 26px rgba(4,42,53,.3); transition: transform var(--t-med); animation: floatPulse 2.6s ease-in-out infinite; }
.floating-btn:hover { transform: scale(1.1); }
@keyframes floatPulse { 0%,100%{box-shadow:0 8px 26px rgba(4,42,53,.3),0 0 0 0 rgba(171,193,67,.5);} 60%{box-shadow:0 8px 26px rgba(4,42,53,.3),0 0 0 14px rgba(171,193,67,0);} }

#cookie { position: fixed; inset: auto 0 0 0; z-index: var(--z-cookie); background: rgba(4,42,53,.98); backdrop-filter: blur(18px); border-top: 1px solid var(--line-dark); padding: 1.2rem 1.4rem; transform: translateY(110%); transition: transform .5s cubic-bezier(.4,0,.2,1); }
#cookie.show { transform: translateY(0); }
.cookie-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
@media (min-width:768px){ .cookie-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 2rem; } }
.cookie-inner p { font-size: .88rem; color: var(--on-dark-70); line-height: 1.6; }
.cookie-inner a { color: var(--lime); text-decoration: underline; }
.cookie-actions { display: flex; gap: .7rem; flex-shrink: 0; }
.cookie-btn { padding: .6rem 1.2rem; border-radius: .55rem; font-family: var(--font-display); font-size: .88rem; font-weight: 600; transition: var(--t-fast); }
.cookie-accept { background: var(--lime); color: var(--petrol-deep); }
.cookie-accept:hover { background: var(--lime-dark); }
.cookie-decline { color: var(--on-dark-50); border: 1px solid var(--line-dark); }
.cookie-decline:hover { color: var(--on-dark); }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-hero { background: var(--bg-hero); padding: 8.5rem 0 3.5rem; border-bottom: 1px solid var(--line-dark); }
.legal-hero h1 { font-family: var(--font-display); font-size: clamp(2rem,3.4vw,2.8rem); font-weight: 700; color: var(--on-dark); letter-spacing: -.02em; }
.legal-hero .bar { height: 3px; width: 3rem; background: var(--lime); border-radius: 2px; margin-top: 1rem; }
.legal-body { padding: 3.5rem 0 6rem; background: var(--bg-white); }
.legal-content { max-width: 800px; }
.legal-content h2 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin: 2.6rem 0 .8rem; }
.legal-content h3 { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; color: var(--ink); margin: 1.6rem 0 .5rem; }
.legal-content p, .legal-content li { font-size: .95rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: .7rem; }
.legal-content ul { list-style: disc; padding-left: 1.3rem; margin-bottom: 1rem; }
.legal-content a { color: var(--teal); text-decoration: underline; }
.legal-back { display: inline-flex; align-items: center; gap: .4rem; color: var(--on-dark-70); font-size: .9rem; margin-top: 1.2rem; }
.legal-back:hover { color: var(--lime); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes lineReveal { to { transform: translateY(0); } }
@keyframes shimmer { 0%{background-position:200% 0;} 100%{background-position:-200% 0;} }
@keyframes navIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .75s ease, transform .75s ease; }
[data-reveal="left"] { transform: translateX(-30px); }
[data-reveal="right"] { transform: translateX(30px); }
[data-reveal].revealed { opacity: 1; transform: none; }
[data-delay="100"]{transition-delay:.1s}[data-delay="150"]{transition-delay:.15s}
[data-delay="200"]{transition-delay:.2s}[data-delay="250"]{transition-delay:.25s}
[data-delay="300"]{transition-delay:.3s}[data-delay="350"]{transition-delay:.35s}
[data-delay="400"]{transition-delay:.4s}[data-delay="450"]{transition-delay:.45s}

.nav-logo { opacity: 0; animation: navIn .6s .05s forwards; }
.nav-link { opacity: 0; animation: navIn .5s forwards; }
.nav-link:nth-child(1){animation-delay:.12s}.nav-link:nth-child(2){animation-delay:.19s}
.nav-link:nth-child(3){animation-delay:.26s}.nav-link:nth-child(4){animation-delay:.33s}
.nav-link:nth-child(5){animation-delay:.40s}.nav-link:nth-child(6){animation-delay:.47s}
.nav-cta { opacity: 0; animation: navIn .55s .5s forwards; }

/* Section-divider cable with travelling pulse */
.cable-divider { line-height: 0; background: var(--bg-hero); }
.cable-divider svg { display: block; width: 100%; height: 40px; }
.cable-pulse { stroke-dasharray: 8 200; animation: cablePulse 4s linear infinite; }
@keyframes cablePulse { to { stroke-dashoffset: -208; } }

/* ── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .hero-title .row em, .hero-eyebrow, .hero-sub, .hero-actions, .hero-trust, .nav-logo, .nav-link, .nav-cta, .pillar { opacity: 1 !important; transform: none !important; }
  .hero-title .accent::after { transform: scaleX(1) !important; }
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-hero); }
::-webkit-scrollbar-thumb { background: rgba(7,93,120,.5); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }

.leaflet-container { font-family: var(--font-body) !important; border-radius: 1.2rem; }
