/* ═══════════════════════════════════════════════════════════
   Erlebach Web Solutions — Relaunch
   Palette & Typo aus dem bestehenden Markenauftritt
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --navy:       #1A2A6E;
  --navy-dark:  #0F1946;
  --navy-mid:   #2338A0;
  --white:      #FFFFFF;
  --off-white:  #F5F8FC;
  --gray-light: #E4EAF4;
  --gray-mid:   #8A97C0;
  --text-dark:  #121840;
  --text-mid:   #5A648C;
  --gold:       #C8A940;

  --container:  1200px;
  --section-pad: clamp(80px, 12vw, 140px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html { scroll-behavior: smooth; }
html.lenis { scroll-behavior: auto; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.65;
}

::selection { background: var(--gold); color: var(--navy-dark); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(20px, 4vw, 40px);
  padding-right: clamp(20px, 4vw, 40px);
}
.container-narrow { max-width: 820px; }

/* ── Typography ─────────────────────────────────────────── */
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.h2 {
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: clamp(36px, 5vw, 64px);
}

.link-arrow {
  display: inline-block;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.link-arrow span { display: inline-block; transition: transform 0.25s var(--ease-out); }
.link-arrow:hover span { transform: translateX(6px); }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s, border-color 0.25s;
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-dark);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(200, 169, 64, 0.35);
}
.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ═══ NAVBAR ═════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  background: transparent;
  transition: background 0.35s, box-shadow 0.35s;
}
.nav.is-scrolled {
  background: rgba(15, 25, 70, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.28);
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { height: 42px; width: auto; }
.nav-brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-size: 17px; font-weight: 700; color: var(--white); letter-spacing: 0.08em; }
.brand-sub { font-size: 11px; font-weight: 400; color: var(--gray-mid); letter-spacing: 0.05em; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  padding-bottom: 4px;
  position: relative;
}
.nav-links a:not(.nav-cta)::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  border: 1.5px solid var(--gold);
  color: var(--gold) !important;
  border-radius: 999px;
  padding: 9px 22px !important;
  transition: background 0.25s, color 0.25s;
}
.nav-cta:hover { background: var(--gold); color: var(--navy-dark) !important; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--navy-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 34px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s, visibility 0.35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu a {
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
}
.mobile-menu .nav-cta { font-size: 18px; }

/* ═══ HERO ═══════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy-dark);
  color: var(--white);
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.hero-glow-a {
  width: 55vw; height: 55vw;
  min-width: 480px; min-height: 480px;
  left: -12%; top: -18%;
  background: radial-gradient(circle, rgba(35, 56, 160, 0.55), transparent 65%);
  animation: drift-a 22s ease-in-out infinite alternate;
}
.hero-glow-b {
  width: 44vw; height: 44vw;
  min-width: 400px; min-height: 400px;
  right: -14%; bottom: -22%;
  background: radial-gradient(circle, rgba(200, 169, 64, 0.16), transparent 65%);
  animation: drift-b 26s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(9vw, 7vh) scale(1.15); }
}
@keyframes drift-b {
  from { transform: translate(0, 0) scale(1.1); }
  to   { transform: translate(-7vw, -9vh) scale(0.95); }
}

.hero-inner {
  position: relative;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 1000px;
}
.hero-kicker {
  font-size: clamp(12px, 1.4vw, 14px);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 30px;
}
.hero-h1 {
  font-size: clamp(2.9rem, 9.5vw, 7rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-line { display: block; }
.hero-line-accent { color: var(--gold); }
.reveal-word span { display: inline-block; }

.underline-wrap { position: relative; display: inline-block; }
.gold-underline {
  position: absolute;
  left: -3%;
  bottom: -0.16em;
  width: 106%;
  height: 0.32em;
  color: var(--gold);
  overflow: visible;
}

.hero-sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  font-weight: 300;
  color: var(--gray-light);
  max-width: 560px;
  margin: 34px auto 0;
}
.hero-ctas {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 44px;
}

.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.scroll-hint-label {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gray-mid);
}
.scroll-hint-line {
  width: 1.5px;
  height: 52px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  overflow: hidden;
}
.scroll-hint-line::after {
  content: '';
  position: absolute;
  left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--gold);
  animation: scroll-dash 2.2s var(--ease-out) infinite;
}
@keyframes scroll-dash {
  0%   { top: -40%; }
  70%, 100% { top: 110%; }
}

/* ═══ PROJEKTE ═══════════════════════════════════════════ */
.projects {
  background: var(--navy-dark);
  color: var(--white);
  transition: background 0.6s ease;
}
.projects-head {
  padding-top: var(--section-pad);
  padding-bottom: clamp(10px, 4vw, 40px);
}
.projects-head .h2 { margin-bottom: 0; }

.scene-wrap { height: 320vh; position: relative; }
.scene-wrap-cta { height: 180vh; }

.scene {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 400px) 1fr;
  align-items: center;
  gap: clamp(20px, 4vw, 60px);
  padding: 76px clamp(20px, 5vw, 70px) 0;
}

.scene-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(5rem, 15vw, 14rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.10);
  pointer-events: none;
  user-select: none;
}

.scene-info { position: relative; z-index: 3; grid-column: 1; grid-row: 1; }
.scene-num {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-bottom: 14px;
}
.scene-info h3 {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.1;
}
.scene-cat {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--gray-mid);
  margin: 10px 0 18px;
}
.scene-desc {
  font-size: 15.5px;
  font-weight: 300;
  color: var(--gray-light);
  margin-bottom: 26px;
  max-width: 42ch;
}
.scene-stat {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
  margin-bottom: 26px;
}
.scene-stat-unit { font-size: 0.45em; font-weight: 500; color: var(--gray-mid); margin-left: 6px; }

.scene-device { position: relative; z-index: 2; grid-column: 2; grid-row: 1; width: 100%; max-width: 1000px; justify-self: center; }
.scene-canvas { width: 100%; height: auto; }
.scene-static { display: none; }

.scene-device-empty { max-width: 820px; justify-self: center; position: relative; }
.screen-pulse {
  position: absolute;
  left: 50%; top: 44%;
  width: 55%; height: 48%;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  background: radial-gradient(ellipse at center, rgba(200, 169, 64, 0.28), transparent 70%);
  animation: screen-pulse 2.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes screen-pulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.96); }
  50%      { opacity: 1;    transform: translate(-50%, -50%) scale(1.04); }
}

/* ═══ LEISTUNGEN ═════════════════════════════════════════ */
.services {
  background: var(--off-white);
  padding: var(--section-pad) 0;
}
.service-list { list-style: none; }
.service-row {
  display: grid;
  grid-template-columns: 70px minmax(200px, 320px) 1fr 60px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(26px, 4vw, 42px) clamp(8px, 1.5vw, 20px);
  border-top: 1px solid var(--gray-light);
  transition: background 0.3s;
}
.service-row:last-child { border-bottom: 1px solid var(--gray-light); }
.service-num {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.service-row h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  transition: color 0.3s;
}
.service-row p {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 52ch;
}
.service-arrow {
  font-size: 26px;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
}
.service-row:hover { background: var(--white); }
.service-row:hover h3 { color: var(--navy-mid); }
.service-row:hover .service-arrow { opacity: 1; transform: translateX(0); }

/* ═══ PROZESS ════════════════════════════════════════════ */
.process {
  background: var(--white);
  padding: var(--section-pad) 0;
}
.timeline { position: relative; max-width: 720px; }
.timeline-track {
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--gray-light);
}
.timeline-line {
  width: 100%;
  height: 100%;
  background: var(--gold);
  transform-origin: top;
  transform: scaleY(0);
}
.timeline-steps { list-style: none; }
.timeline-step {
  position: relative;
  padding-left: 54px;
  padding-bottom: clamp(40px, 6vw, 64px);
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--gold);
}
.timeline-step h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 600;
  margin-bottom: 8px;
}
.step-num {
  color: var(--gold);
  font-weight: 700;
  margin-right: 8px;
}
.timeline-step p {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 54ch;
}

/* ═══ STATS ══════════════════════════════════════════════ */
.stats {
  background: var(--navy);
  color: var(--white);
  padding: clamp(48px, 7vw, 80px) 0;
}
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-value {
  display: block;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 400;
  color: var(--gray-light);
  letter-spacing: 0.04em;
}

/* ═══ ÜBER MICH ══════════════════════════════════════════ */
.about {
  background: var(--off-white);
  padding: var(--section-pad) 0;
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(260px, 400px) 1fr;
  gap: clamp(36px, 7vw, 90px);
  align-items: center;
}
.about-photo { position: relative; }
.about-photo::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: 90px; height: 90px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  border-radius: 6px 0 0 0;
}
.about-photo-placeholder {
  aspect-ratio: 4 / 5;
  border: 2px dashed var(--gray-mid);
  border-radius: 10px;
  background: var(--gray-light);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.about-photo-placeholder span:first-child {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.25em;
  color: var(--gray-mid);
}
.about-photo-placeholder span:last-child {
  font-size: 14px;
  color: var(--text-mid);
}
.about-text .h2 { margin-bottom: 28px; }
.about-text p {
  color: var(--text-mid);
  margin-bottom: 18px;
  max-width: 56ch;
}
.about-text .link-arrow { margin-top: 8px; }

/* ═══ TESTIMONIALS ═══════════════════════════════════════ */
.testimonials {
  background: var(--white);
  padding: var(--section-pad) 0;
  overflow: hidden;
}
.marquee {
  margin-top: 8px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee + .marquee { margin-top: 24px; }
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 4px 0;
  animation: marquee 42s linear infinite;
}
.marquee[data-direction="right"] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.review-card {
  position: relative;
  width: min(380px, 82vw);
  flex-shrink: 0;
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 14px;
  padding: 28px 28px 24px;
}
.review-stars {
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 0.2em;
  margin-bottom: 12px;
}
.review-card blockquote {
  font-size: 15px;
  color: var(--text-dark);
  line-height: 1.6;
  margin-bottom: 16px;
}
.review-card figcaption {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-mid);
}
.tag-placeholder {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b0641e;
  border: 1px solid #e0a96d;
  background: #fdf3e7;
  border-radius: 999px;
  padding: 3px 10px;
}

/* Ohne JS: Karten statisch umbrechen statt Endlos-Band */
.no-js .marquee-track { animation: none; width: auto; flex-wrap: wrap; }
.no-js .marquee { mask-image: none; -webkit-mask-image: none; }

/* ═══ FAQ ════════════════════════════════════════════════ */
.faq {
  background: var(--off-white);
  padding: var(--section-pad) 0;
}
.faq-list { border-top: 1px solid var(--gray-light); }
.faq-item { border-bottom: 1px solid var(--gray-light); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: var(--text-dark);
  text-align: left;
  cursor: pointer;
  transition: color 0.25s;
}
.faq-q:hover { color: var(--navy-mid); }
.faq-icon {
  position: relative;
  flex-shrink: 0;
  width: 22px; height: 22px;
}
.faq-icon::before, .faq-icon::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 2px;
  background: var(--gold);
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease-out);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-out);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-inner p {
  padding: 0 4px 26px;
  font-size: 15px;
  color: var(--text-mid);
  max-width: 62ch;
}

/* ═══ KONTAKT ════════════════════════════════════════════ */
.contact {
  background: var(--navy-dark);
  color: var(--white);
  padding: var(--section-pad) 0;
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  right: -18%; top: -30%;
  width: 60vw; height: 60vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(35, 56, 160, 0.4), transparent 65%);
  filter: blur(80px);
  pointer-events: none;
}
.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 560px);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}
.contact-lead {
  font-weight: 300;
  color: var(--gray-light);
  max-width: 40ch;
  margin-bottom: 28px;
}
.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--gray-light);
  margin-bottom: 18px;
}
.availability-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  position: relative;
}
.availability-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  animation: dot-pulse 2s ease-out infinite;
}
@keyframes dot-pulse {
  from { transform: scale(0.6); opacity: 1; }
  to   { transform: scale(1.6); opacity: 0; }
}
.contact-mail { font-size: 15px; }

/* ── Formular ── */
.contact-form {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: clamp(26px, 4vw, 44px);
  backdrop-filter: blur(6px);
}
.form-progress {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
}
.form-dot {
  width: 26px; height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.3s, width 0.3s;
}
.form-dot.is-active { background: var(--gold); width: 40px; }
.form-dot.is-done { background: rgba(200, 169, 64, 0.5); }

.form-step { border: none; display: none; }
.form-step.is-active { display: block; animation: step-in 0.45s var(--ease-out); }
@keyframes step-in {
  from { opacity: 0; transform: translateX(26px); }
  to   { opacity: 1; transform: translateX(0); }
}
.form-q {
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 22px;
  padding: 0;
}

.chip-group { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { cursor: pointer; }
.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.chip span {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--gray-light);
  transition: border-color 0.25s, background 0.25s, color 0.25s, transform 0.25s;
}
.chip:hover span { border-color: var(--gold); transform: translateY(-2px); }
.chip input:checked + span {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-dark);
}
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 3px; }

.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gray-mid);
  margin-bottom: 8px;
}
.optional { color: var(--gray-mid); font-weight: 400; }
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.25s, background 0.25s;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: rgba(138, 151, 192, 0.65); }
.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}
.form-field input.is-invalid,
.form-field textarea.is-invalid { border-color: #e06c5a; }

.form-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
}
.form-back {
  background: none;
  border: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-mid);
  cursor: pointer;
  padding: 10px 6px;
  transition: color 0.25s;
}
.form-back:hover { color: var(--white); }
.form-next, .form-submit { margin-left: auto; }

.form-submit { position: relative; }
.submit-check {
  position: absolute;
  left: 50%; top: 50%;
  width: 22px; height: 22px;
  transform: translate(-50%, -50%);
  opacity: 0;
}
.submit-check path {
  stroke-dasharray: 30;
  stroke-dashoffset: 30;
}
.form-submit.is-success .submit-label { opacity: 0; }
.form-submit.is-success .submit-check { opacity: 1; }
.form-submit.is-success .submit-check path {
  transition: stroke-dashoffset 0.5s var(--ease-out) 0.1s;
  stroke-dashoffset: 0;
}
.submit-label { transition: opacity 0.25s; display: inline-block; }

.form-feedback {
  margin-top: 16px;
  font-size: 14px;
  min-height: 22px;
  color: var(--gray-light);
}
.form-feedback.is-error { color: #e8907f; }
.form-feedback.is-success { color: var(--gold); }

/* No-JS fallback: klassisches Formular, alle Schritte sichtbar */
.no-js .form-step { display: block; margin-bottom: 10px; }
.no-js .form-progress,
.no-js .form-next,
.no-js .form-back { display: none; }
.no-js .form-submit { display: inline-block !important; }
.no-js .form-submit[hidden] { display: inline-block !important; }

/* ═══ FOOTER ═════════════════════════════════════════════ */
.footer {
  background: #0A1132;
  color: var(--gray-light);
  padding: clamp(48px, 7vw, 80px) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand img { height: 46px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 14px; color: var(--gray-mid); }
.footer-nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-nav a, .footer-legal a {
  font-size: 14px;
  color: var(--gray-light);
  text-decoration: none;
  transition: color 0.25s;
  width: fit-content;
}
.footer-nav a:hover, .footer-legal a:hover { color: var(--gold); }
.footer-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 22px;
  padding-bottom: 26px;
}
.footer-copy p { font-size: 13px; color: var(--gray-mid); }

/* ═══ RESPONSIVE ═════════════════════════════════════════ */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }

  /* Projekte: keine Sticky-Szenen, statisches Laptop-Bild */
  .scene-wrap, .scene-wrap-cta { height: auto; }
  .scene {
    position: static;
    height: auto;
    grid-template-columns: 1fr;
    padding: clamp(48px, 9vw, 80px) clamp(20px, 5vw, 40px);
    gap: 8px;
  }
  .scene-name {
    position: static;
    transform: none;
    font-size: clamp(2.6rem, 13vw, 6rem);
    white-space: normal;
    line-height: 1;
    margin-bottom: -0.35em;
  }
  .scene-canvas { display: none; }
  .scene-static { display: block; }
  .scene-info { order: 2; margin-top: 18px; grid-column: 1; grid-row: auto; }
  .scene-device { order: 1; grid-column: 1; grid-row: auto; max-width: 560px; justify-self: start; }

  .service-row {
    grid-template-columns: 48px 1fr;
    grid-template-areas: "num title" ". desc";
  }
  .service-num { grid-area: num; }
  .service-row h3 { grid-area: title; }
  .service-row p { grid-area: desc; }
  .service-arrow { display: none; }

  .stats-row { grid-template-columns: 1fr; gap: 36px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 340px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ═══ REDUCED MOTION ═════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .marquee-track {
    animation: none;
    width: auto;
    flex-wrap: wrap;
  }
  .marquee { mask-image: none; -webkit-mask-image: none; }
  .scene-wrap, .scene-wrap-cta { height: auto; }
  .scene {
    position: static;
    height: auto;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .scene-canvas { display: none; }
  .scene-static { display: block; }
}
