/* levels. — Homepage
   Portiert von Onepage. Farben und Masse identisch zum Original. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }

.stage {
  position: relative;
  overflow: hidden;
  height: 100vh;
  background: #05060c;
  color: #eaf0ff;
  font-family: 'General Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* --- Video-Buehne --- */
.bg { position: absolute; inset: 0; z-index: 0; }
.bg-img, .bg-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 69% center; }
.bg-tint { position: absolute; inset: 0; background: #05060c40; }
.bg-gradient { position: absolute; inset: 0; background: linear-gradient(to top, #05060cbf 0%, #05060c00 40%); }

/* --- Scroller --- */
.scroller { position: absolute; inset: 0; z-index: 1; overflow-y: auto; overflow-x: hidden; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.content { position: relative; min-height: 100%; }

/* --- Typo --- */
.display { font-family: 'Clash Display', 'Arial Black', sans-serif; font-weight: 600; text-transform: uppercase; letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #a9b3cf; }
.grad { display: block; padding-top: 0.15em; margin-top: -0.15em; background: linear-gradient(100deg, #eaf0ff 0%, #9be8ff 30%, #7c5cff 75%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 28px #7c5cff59); }
.outline { color: transparent; -webkit-text-stroke: 1.5px #eaf0ff59; }

/* --- CTA (frueher @siteui/levels-cta) --- */
.cta-book {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px;
  border: 1px solid #eaf0ff2e; background: #7c5cff24; color: #eaf0ff;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
button.cta-book { cursor: pointer; appearance: none; }
.cta-book:disabled { opacity: 0.55; cursor: wait; }
.cta-book:hover { background: #7c5cff59; border-color: #9be8ff66; box-shadow: 0 0 34px #7c5cff73; }
.cta-micro {
  display: inline-flex; align-items: center; gap: 8px; color: #a9b3cf;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  transition: color 0.3s ease;
}
.cta-micro:hover { color: #eaf0ff; }
.cta-micro:hover .arrow { transform: translateX(4px); }
.arrow { display: inline-block; transition: transform 0.3s ease; }

/* --- Header --- */
.header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; padding: 20px; }
.logo { height: 22px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav-link { display: none; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: #a9b3cf; transition: color 0.3s ease; }
.nav-link:hover { color: #eaf0ff; }

/* --- Hero --- */
.hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100vh; min-height: 100dvh; padding: 0 20px 44px; }
.hero-title { font-size: clamp(38px, 8vw, 122px); line-height: 0.94; margin: 0; }
.hero-title span { display: block; }
.hero-row { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.hero-sub { max-width: 34ch; margin: 0; font-size: 20px; line-height: 1.6; color: #a9b3cf; }
.micro-btn { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; text-decoration: none; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: #a9b3cf; transition: color 0.3s ease; }
.micro-btn:hover { color: #eaf0ff; }
.micro-btn:hover .arrow { transform: translateX(4px); }

/* --- Sektionen --- */
.section { position: relative; padding: 64px 20px; }

/* Services-Akkordeon */
.sv-list { list-style: none; margin: 0; padding: 0; }
.sv-row { border-bottom: 1px solid #eaf0ff14; }
.sv-btn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; background: none; border: 0; cursor: pointer; text-align: left; color: inherit; }
.sv-word { font-size: clamp(34px, 7.5vw, 108px); line-height: 1; transition: color 0.3s ease, text-shadow 0.3s ease; color: #eaf0ff; }
.sv-btn:hover .sv-word { color: #7c5cff; }
.sv-active { color: #7c5cff; text-shadow: 0 0 40px #7c5cffa6; }
.sv-active.outline, .sv-glow.outline { color: transparent; -webkit-text-stroke-color: #7c5cff; }
.sv-glow { color: #7c5cff; text-shadow: 0 0 40px #7c5cffa6; }
.plus { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 24px; line-height: 1; color: #a9b3cf; flex-shrink: 0; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.3s ease; }
.plus-open { transform: rotate(45deg); color: #7c5cff; }
.fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s ease-out; }
.fold-open { grid-template-rows: 1fr; }
.fold-inner { overflow: hidden; }
.sv-text { max-width: 70ch; margin: 0; padding-bottom: 26px; font-size: 20px; line-height: 1.65; color: #a9b3cf; }
.strip { display: block; height: 64px; width: auto; max-width: 100%; margin-bottom: 26px; border-radius: 16px; object-fit: cover; }

/* Work */
.work-head { font-size: clamp(34px, 8.5vw, 118px); line-height: 0.92; margin: 0 0 38px; }
.work-head .grad { display: inline; }
.work-teaser { display: flex; margin-top: 30px; }
.marquee-link { display: block; cursor: pointer; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: lvMarquee 44s linear infinite; }
.marquee-link:hover .marquee-track { animation-play-state: paused; }
.marquee-img { height: 230px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; border: 1px solid #eaf0ff14; margin-right: 14px; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease; }
.marquee-img:hover { transform: translateY(-6px); box-shadow: 0 14px 50px #7c5cff59; }
@keyframes lvMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Stats */
.stats-grid { display: grid; grid-template-columns: 1fr; gap: 42px; }
.stat { border-top: 1px solid #eaf0ff1a; padding-top: 28px; }
.stat-value { font-size: clamp(72px, 14vw, 150px); line-height: 1; }
.stat-label { margin: 14px 0 0; font-size: 16px; }

/* Referenzen */
.ref-row { display: flex; flex-wrap: wrap; gap: 40px 64px; margin-top: 40px; }
.ref-item { display: grid; gap: 8px; }
.ref-name { font-size: clamp(38px, 4.6vw, 68px); line-height: 1; color: #eaf0ff; transition: color 0.3s ease, text-shadow 0.3s ease; cursor: default; }
.ref-item:hover .ref-name { color: #7c5cff; text-shadow: 0 0 40px #7c5cffa6; }
.ref-tag { font-size: 16px; opacity: 0.85; }
.ref-kicker { font-size: 15px; }

/* Prozess */
.prozess-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 34px; }
.prozess-item { border-top: 1px solid #eaf0ff1a; padding-top: 22px; }
.prozess-num { display: block; font-size: clamp(44px, 7vw, 84px); line-height: 1; -webkit-text-stroke: 1.5px #7c5cff8c; }
.prozess-title { font-size: 24px; margin: 14px 0 10px; letter-spacing: 0.01em; }
.prozess-text { margin: 0; font-size: 20px; line-height: 1.65; color: #a9b3cf; }
.prozess-num, .prozess-title { transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease, filter 0.3s ease; }
.prozess-focus .prozess-num, .prozess-item:hover .prozess-num { -webkit-text-stroke-color: #7c5cff; filter: drop-shadow(0 0 18px #7c5cff73); }
.prozess-focus .prozess-title, .prozess-item:hover .prozess-title { color: #7c5cff; }

/* Kontakt */
.kontakt { text-align: center; padding: 120px 20px 90px; }
.kontakt-title { font-size: clamp(46px, 11vw, 160px); line-height: 0.92; margin: 0; }
.kontakt-title span { display: block; }
.kontakt-text { max-width: 44ch; margin: 28px auto 0; font-size: 20px; line-height: 1.6; color: #a9b3cf; }
.kontakt-cta { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* Formular */
.form { max-width: 620px; margin: 34px auto 0; display: grid; gap: 16px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
.field { display: grid; gap: 8px; }
.field-label { color: #a9b3cf; font-size: 13px; }
.input, .textarea { width: 100%; appearance: none; background: #eaf0ff0f; border: 1px solid #eaf0ff26; border-radius: 12px; padding: 13px 15px; color: #eaf0ff; font-family: inherit; font-size: 16px; line-height: 1.5; transition: border-color 0.3s ease, box-shadow 0.3s ease; }
.textarea { resize: vertical; min-height: 110px; }
.input:focus, .textarea:focus { outline: none; border-color: #7c5cff; box-shadow: 0 0 0 3px #7c5cff33; }
.form-submit { display: flex; justify-content: center; margin-top: 6px; }
.form-ok { max-width: 38ch; margin: 34px auto 0; font-size: 18px; line-height: 1.6; color: #9be8ff; }
.form-err { margin: 0; font-size: 13px; color: #ffa3a3; }
.or-mail { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: #a9b3cf; opacity: 0.7; }

/* Footer */
.footer { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid #eaf0ff14; padding: 22px 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-link { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #a9b3cf; opacity: 0.7; text-decoration: none; transition: opacity 0.3s ease, color 0.3s ease; }
.footer-link:hover { opacity: 1; color: #eaf0ff; }

/* Einblenden beim Scrollen (ersetzt framer-motion) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.22,1,0.36,1), transform 0.7s cubic-bezier(0.22,1,0.36,1); }
.reveal-in { opacity: 1; transform: none; }

/* --- Desktop --- */
@media (min-width: 768px) {
  .bg-img, .bg-video { object-position: center; }
  .header { padding: 34px 40px; }
  .logo { height: 38px; }
  .nav-link { display: inline; }
  .hero { padding: 0 40px 58px; }
  .hero-sub { font-size: 22px; }
  .hero-row { flex-direction: row; align-items: flex-end; justify-content: space-between; }
  .section { padding: 96px 40px; }
  .stats-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
  .prozess-grid { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .marquee-img { height: 310px; margin-right: 18px; }
  .footer { flex-direction: row; align-items: center; justify-content: space-between; padding: 24px 40px; }
}

@media (max-width: 767px) {
  .nav a { font-size: 12px; padding: 10px 18px; }
}

/* --- Reduzierte Bewegung --- */
@media (prefers-reduced-motion: reduce) {
  .bg-video { display: none; }
  .scroller { scroll-behavior: auto; }
  .fold, .plus, .marquee-track { transition: none; animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
