
:root{
  --bg:#060912;
  --bg2:#070a12;
  --panel:rgba(255,255,255,.06);
  --panel2:rgba(255,255,255,.04);
  --line:rgba(255,255,255,.12);
  --text:#eaf0ff;
  --muted:#a8b3d8;
  --accent:#00d4ff;
  --accent2:#7c5cff;
  --shadow:0 26px 80px rgba(0,0,0,.55);
  --shadow2:0 14px 34px rgba(0,0,0,.35);
  --r:18px;
  --r2:28px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(900px 520px at 15% 12%, rgba(0,212,255,.16), transparent 58%),
    radial-gradient(900px 620px at 85% 18%, rgba(124,92,255,.16), transparent 62%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height:1.55;
  overflow-x:hidden;
}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}

.container{width:min(1180px, calc(100% - 40px)); margin:0 auto;}
.bgGrid{
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size:48px 48px;
  mask-image: radial-gradient(closest-side at 50% 10%, black 0%, transparent 72%);
  opacity:.65;
}
.bgNoise{
  position:fixed; inset:0; pointer-events:none; z-index:0;
  background: radial-gradient(600px 380px at 30% 40%, rgba(255,255,255,.06), transparent 60%);
  mix-blend-mode:overlay;
  opacity:.25;
}

/* Topbar */
.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(14px);
  background: rgba(6,9,18,.58);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.topbar__in{display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 0;}
.brand{display:flex; align-items:center; gap:10px; font-weight:800; letter-spacing:.2px}
.brand img{width:34px;height:34px;border-radius:12px; box-shadow:0 0 0 4px rgba(0,212,255,.10)}
.brand span{font-size:14px}
.nav{display:flex; gap:18px; color:var(--muted); font-weight:700; font-size:13px}
.nav a:hover{color:var(--text)}
.right{display:flex; align-items:center; gap:12px}
.seg{
  display:flex; gap:6px; padding:6px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
}
.seg button{
  border:0; background:transparent; color:var(--muted);
  font-weight:900; font-size:12px;
  padding:7px 10px; border-radius:999px;
  cursor:pointer;
}
.seg button.active{
  color:#071022;
  background: linear-gradient(135deg, rgba(0,212,255,.95), rgba(124,92,255,.95));
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px; border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  font-weight:900; font-size:13px;
  box-shadow: var(--shadow2);
}
.btn--primary{
  border:0;
  color:#071022;
  background: linear-gradient(135deg, rgba(0,212,255,.95), rgba(124,92,255,.95));
  box-shadow:0 18px 44px rgba(0,212,255,.12);
}
.btn:hover{filter:brightness(1.04)}
.burger{
  display:none; width:44px;height:40px;
  background:transparent;border:1px solid rgba(255,255,255,.12);
  border-radius:12px; padding:8px; cursor:pointer;
}
.burger span{display:block;height:2px;background:var(--text);margin:6px 0;opacity:.9}

/* Hero + sticky animation like Wix */
.hero{padding:54px 0 30px; position:relative; z-index:1;}
.heroGrid{
  display:grid;
  grid-template-columns: 1fr;
  gap:26px;
  align-items:start;
}
.kicker{display:flex; align-items:center; gap:10px; margin-bottom:12px}
.dot{width:10px;height:10px;border-radius:999px;background:linear-gradient(135deg,var(--accent),var(--accent2)); box-shadow:0 0 0 4px rgba(0,212,255,.10)}
.kicker span{letter-spacing:.18em;text-transform:uppercase;font-size:12px;color:var(--muted); font-weight:900}
h1{margin:0 0 12px; font-size:48px; line-height:1.04; letter-spacing:-.02em}
.lead{margin:0 0 18px; color:var(--muted); font-size:15px; max-width:60ch}
.actions{display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 18px}
.note{font-size:12px; color:var(--muted)}
.kpis{display:grid; grid-template-columns:repeat(2,1fr); gap:12px; margin-top:16px}
.kpi{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius:18px;
  padding:14px;
}
.kpi b{display:block; font-size:13px}
.kpi span{display:block; color:var(--muted); font-size:12px; margin-top:4px}

/* Sticky stage that sits in the background of the right column */
.stageWrap{height: 155vh;}
.stageSticky{
  position: sticky;
  top: 96px;
  height: calc(100vh - 110px);
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.stage{
  width:min(980px, 110%);
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(900px 520px at 25% 15%, rgba(0,212,255,.14), transparent 58%),
    radial-gradient(900px 620px at 80% 25%, rgba(124,92,255,.14), transparent 60%),
    rgba(255,255,255,.03);
  box-shadow: var(--shadow);
  overflow:hidden;
  padding:16px;
}
.stageSvg{width:100%; height:auto; display:block; opacity:.55}
.hud{
  position:absolute; left:16px; right:16px; bottom:16px;
  display:flex; align-items:center; justify-content:space-between; gap:12px;
  padding:10px 12px;
  border-radius:16px;
  background: rgba(6,9,18,.55);
  border:1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(12px);
}
.pill{display:inline-flex; align-items:center; gap:8px; padding:8px 10px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.04);
  font-weight:900; font-size:12px; color:rgba(234,240,255,.95);
}
.bar{width:180px; height:7px; border-radius:999px; background:rgba(255,255,255,.10); overflow:hidden}
.bar span{display:block; height:100%; width:0%; background:linear-gradient(90deg, rgba(0,212,255,.95), rgba(124,92,255,.95))}
.pct{font-weight:900; font-size:12px; color:rgba(234,240,255,.95)}

/* Sections */
.section{padding:70px 0; position:relative; z-index:1;}
.head{display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px}
.head h2{margin:0; font-size:32px; line-height:1.12}
.head p{margin:0; color:var(--muted); max-width:65ch}

.grid3{display:grid; grid-template-columns:repeat(3,1fr); gap:14px}
.card{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: var(--r2);
  overflow:hidden;
  box-shadow: var(--shadow2);
}
.cardMedia{height:180px; background-size:cover; background-position:center}
.cardBody{padding:16px}
.cardBody h3{margin:0 0 6px}
.cardBody p{margin:0; color:var(--muted)}

.steps{display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-top:16px}
.step{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius:18px;
  padding:14px;
}
.stepNum{
  width:42px;height:42px;border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900;
  background: rgba(0,212,255,.12);
  border:1px solid rgba(0,212,255,.20);
  margin-bottom:10px;
}
.step h4{margin:0 0 6px; font-size:14px}
.step p{margin:0; color:var(--muted); font-size:12px}

/* Gallery */
.gallery{display:grid; grid-template-columns:repeat(3,1fr); gap:12px}
.shot{margin:0; border-radius:22px; overflow:hidden; border:1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); box-shadow: var(--shadow2);}
.shot img{width:100%; height:240px; object-fit:cover; transition: transform .25s ease}
.shot:hover img{transform:scale(1.04)}

.band{
  margin-top:16px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:18px;
  border-radius: var(--r2);
  border:1px solid rgba(255,255,255,.12);
  background: linear-gradient(135deg, rgba(0,212,255,.12), rgba(124,92,255,.10));
  box-shadow: var(--shadow2);
}
.band h3{margin:0 0 6px}
.band p{margin:0; color:var(--muted)}

/* Newsletter + Contact like Wix forms */
.formGrid{display:grid; grid-template-columns:1fr 1fr; gap:14px; align-items:start}
.formCard{
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  border-radius: var(--r2);
  padding:18px;
  box-shadow: var(--shadow2);
}
label{display:block; font-weight:900; font-size:12px; margin-bottom:12px; color:rgba(234,240,255,.92)}
label span{display:block}
input, select, textarea{
  width:100%;
  margin-top:8px;
  padding:12px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(6,9,18,.55);
  color:var(--text);
  outline:none;
}
input:focus, select:focus, textarea:focus{border-color:rgba(0,212,255,.40)}
.row2{display:grid; grid-template-columns:1fr 1fr; gap:12px}

.links{display:grid; gap:10px; margin-top:14px}
.linkRow{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.linkRow b{font-weight:900}
.linkRow span{color:var(--muted); font-weight:700; font-size:13px}

/* Footer */
.footer{padding:26px 0 44px; border-top:1px solid rgba(255,255,255,.08); position:relative; z-index:1;}
.footerIn{display:flex; align-items:center; justify-content:space-between; gap:14px}
.footerLeft{display:flex; align-items:center; gap:12px}
.footerLeft img{width:34px;height:34px;border-radius:10px}
.small{font-size:12px; color:var(--muted)}

/* Responsive */
@media (max-width: 980px){
  .heroGrid{grid-template-columns:1fr}
  .stageWrap{height: 115vh}
  .head{flex-direction:column; align-items:flex-start}
  .grid3{grid-template-columns:1fr}
  .steps{grid-template-columns:1fr 1fr}
  .gallery{grid-template-columns:1fr}
  .formGrid{grid-template-columns:1fr}
  .row2{grid-template-columns:1fr}
  .nav{
    position:fixed; top:70px; left:20px; right:20px;
    display:none; flex-direction:column; gap:10px;
    padding:14px; border-radius:18px;
    background: rgba(6,9,18,.86);
    border:1px solid rgba(255,255,255,.10);
    backdrop-filter: blur(12px);
  }
  .nav.open{display:flex}
  .burger{display:block}
}



/* ===== Wix template 2939 hero match ===== */
.hero--wix{
  padding: 64px 0 46px;
  position:relative;
}
.heroBg{
  position:absolute;
  inset:-40px;
  background:
    radial-gradient(1200px 700px at 70% 70%, rgba(0,0,0,.70), transparent 55%),
    radial-gradient(1200px 700px at 20% 30%, rgba(0,0,0,.45), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.50));
  opacity:1;
  pointer-events:none;
}
.heroBg::before{
  content:"";
  position:absolute; inset:0;
  /* procedural "concrete" texture */
  background:
    radial-gradient(60px 60px at 10% 20%, rgba(255,255,255,.05), transparent 60%),
    radial-gradient(80px 80px at 70% 30%, rgba(255,255,255,.04), transparent 62%),
    radial-gradient(120px 120px at 40% 70%, rgba(255,255,255,.03), transparent 64%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 2px, transparent 2px 8px);
  mix-blend-mode: overlay;
  opacity:.55;
  filter: blur(.2px);
}
.heroShell{
  position:relative;
  z-index:2;
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  align-items:center;
  gap:26px;
  min-height: 520px;
}
.heroCopy{max-width: 680px;}
.heroTitle{
  margin:0 0 14px;
  font-weight:300;
  font-size: clamp(44px, 6.2vw, 86px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,.92);
}
.heroSub{
  margin:0 0 22px;
  font-size: 18px;
  color: rgba(255,255,255,.72);
}
.heroBtns{display:flex; gap:14px; flex-wrap:wrap;}
.btn--dark{
  background: rgba(20,24,35,.55);
  border: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.90);
  box-shadow: 0 16px 42px rgba(0,0,0,.30);
}
.btn--dark:hover{filter:brightness(1.06)}
.heroVisual{
  display:flex;
  justify-content:flex-end;
  align-items:center;
}
.heroPrinter{
  width: min(560px, 100%);
  height:auto;
  filter: drop-shadow(0 32px 80px rgba(0,0,0,.55));
  transform: translateY(10px);
  opacity: .98;
}

/* Topbar pill nav like Wix */
.topbar{
  background: rgba(6,9,18,.40);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.navPill{
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.08);
  gap: 18px;
}
.navPill a{color: rgba(255,255,255,.85)}
.navPill a:hover{color:#fff}

/* Make CTA more like screenshot */
.right .btn--primary{
  border-radius: 999px;
  padding: 12px 16px;
}

/* Hero buttons round */
.heroBtns .btn{border-radius: 999px; padding: 12px 16px}

@media (max-width: 980px){
  .heroShell{grid-template-columns: 1fr; min-height: unset; padding-top: 10px}
  .heroVisual{justify-content:center}
  .heroPrinter{transform: translateY(0)}
  .navPill{display:none}
}



/* ===== Fixes: concrete background + scroll motion ===== */
.heroBg{
  /* Photo background like Wix preview */
  background:
    radial-gradient(1200px 700px at 70% 70%, rgba(0,0,0,.74), transparent 55%),
    radial-gradient(1200px 700px at 20% 30%, rgba(0,0,0,.48), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.62)),
    url("assets/wix_bg.jpg");
  background-size: cover;
  background-position: center;
}
.heroBg::before{
  /* keep overlay but reduce stripes */
  opacity:.35;
}

/* Printer overlay on top of photo (abstract "working" effect) */
.heroPrinterWrap{
  position:relative;
  width: min(620px, 100%);
}
.heroPrinter{
  width:100%;
  height:auto;
  border-radius: 10px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset;
}
.heroOverlay{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:.95;
}

/* Reveal / shift like Wix */
.reveal{
  opacity:0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: transform, opacity;
}
.reveal.is-in{
  opacity:1;
  transform: translateY(0);
}
.reveal--in{opacity:1; transform:none}

/* Section spacing a bit more Wix-like */
.section{padding:78px 0;}


/* ===== Legal footer links ===== */
.legal{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.legal a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.85);
  font-weight:800;
  font-size:12px;
}
.legal a:hover{filter:brightness(1.06)}
@media (max-width: 980px){
  .legal{justify-content:flex-start}
}

/* ===== Language links (SEO-friendly pages) ===== */
.seg .langLink{
  border:0; background:transparent; color:var(--muted);
  font-weight:900; font-size:12px;
  padding:7px 10px; border-radius:999px;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
.seg .langLink.active{
  color:#071022;
  background: linear-gradient(135deg, rgba(0,212,255,.95), rgba(124,92,255,.95));
}


/* ===== Section background #2 (extruder close-up) ===== */
.section--bg2{
  position:relative;
  background:
    linear-gradient(180deg, rgba(5,8,16,.82), rgba(5,8,16,.82)),
    url("assets/section2_bg.jpg");
  background-size: cover;
  background-position: center;
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section--bg2::before{
  content:"";
  position:absolute; inset:0;
  background:
    radial-gradient(900px 520px at 18% 35%, rgba(0,212,255,.18), transparent 60%),
    radial-gradient(900px 520px at 70% 65%, rgba(124,92,255,.16), transparent 60%);
  pointer-events:none;
}
.section--bg2 > .container{position:relative; z-index:1;}

/* ===== Varied reveal animations ===== */
.reveal{opacity:0; transform: translateY(26px); filter: blur(2px); transition: opacity .75s ease, transform .75s ease, filter .75s ease;}
.reveal.is-in{opacity:1; transform:none; filter: blur(0);}

.reveal--up{transform: translateY(28px);}
.reveal--left{transform: translateX(-26px);}
.reveal--right{transform: translateX(26px);}
.reveal--scale{transform: scale(.97); opacity:0;}
.reveal--pop{transform: translateY(18px) scale(.985); opacity:0;}
.reveal--tilt{transform: translateY(22px) rotate(-.6deg); opacity:0;}
.reveal--soft{filter: blur(6px); transform: translateY(18px);}

.reveal.is-in.reveal--left,
.reveal.is-in.reveal--right,
.reveal.is-in.reveal--scale,
.reveal.is-in.reveal--pop,
.reveal.is-in.reveal--tilt,
.reveal.is-in.reveal--soft{transform:none; opacity:1; filter: blur(0);}

.stagger > *{transition-delay: var(--d, 0ms);}


/* ===== Cinematic cross-fade background between sections ===== */
.cinematic{
  position:relative;
  overflow:hidden;
}
.cinematic::after{content:"";position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity 1.1s ease;}
.cinematic.is-in::after{opacity:0;}
.cinematicFade{
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:0;
  transform: scale(1.02);
  transition: opacity 1.15s ease, transform 1.15s ease;
}
.cinematicFade.is-in{
  opacity:1;
  transform: scale(1);
}

/* ===== Micro motion for headlines/buttons/cards ===== */
.heroTitle,.heroBtns,.card,.pill,.btn{will-change: transform, opacity, filter;}
.floaty{
  transform: translateY(0);
  animation: floaty 7.5s ease-in-out infinite;
  opacity:.9;
}
@keyframes floaty{
  0%,100%{transform: translateY(0)}
  50%{transform: translateY(-8px)}
}

/* Smooth section separators */
.section{position:relative;}
.section::before{
  content:"";
  position:absolute;
  left:0; right:0; top:-1px;
  height:1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
  opacity:.65;
}

/* Slightly richer reveal for headlines */
.reveal--headline{transform: translateY(18px); letter-spacing: -0.02em;}
.reveal.is-in.reveal--headline{transform:none;}

/* Parallax-lite */
.parallaxLite{transform: translateY(var(--py, 0px));}


/* ===== Background layout per request ===== */
/* Global: second background from after gallery to end */
body{
  background: url("assets/section2_bg.jpg") center / cover no-repeat fixed;
}
/* Sections with first background (until end of photo gallery/portfolio) */
.bg1zone{
  background: url("assets/wix_bg.jpg") left center / cover no-repeat;
}
/* Sections with NO own background (like "Leistungen") */
.bg2zone{background: transparent;}
@media (min-width: 1200px){
  /* show more of the image, less cropping */
  .bg1zone{background-size: 110% auto; background-position: left 55%;}
}
@media (max-width: 980px){
  .bg1zone{background-size: cover; background-position: center;}
  body{background-attachment: scroll;}
}

/* Hero: remove overlays/gradients, keep original colors */
.heroBg{display:none !important;}
.hero--wix{background: transparent;}
.heroTitle, .heroSub{
  text-shadow: 0 10px 26px rgba(0,0,0,.55);
}

/* Make footer transparent so bg2 shows */
.footer{background: transparent; border-top: 1px solid rgba(255,255,255,.08);}
.footerIn{
  background: rgba(10,14,24,.28);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(10px);
}

/* Remove section--bg2 image styling (About should be bg1 now) */
.section--bg2{background: transparent !important;}
.section--bg2::before{display:none !important;}

/* ===== Global background crossfade (Wix-style) ===== */
/* Two fixed layers behind everything; switch at #services */
.bg-stage{
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.bg-layer{
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1000ms ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: translateZ(0);
}
.bg-layer.is-on{opacity:1;}

/* Fallback base background (if images fail) */
body{ background: linear-gradient(180deg, var(--bg), var(--bg2)) !important; }

/* Make section backgrounds transparent so the global bg is visible */
.bg1zone, .bg2zone, .section--bg2, .hero--wix{ background: transparent !important; }

/* Background images */
#bg1{
  background-image:
    radial-gradient(900px 420px at 30% 0%, rgba(0,0,0,0.10), rgba(0,0,0,0.72)),
    url("assets/bg-1.png");
}
#bg2{
  background-image:
    radial-gradient(900px 420px at 30% 0%, rgba(0,0,0,0.16), rgba(0,0,0,0.78)),
    url("assets/bg-2.png");
}

@media (max-width: 980px){
  .bg-layer{ background-attachment: scroll; }
}
