/* ============================================================
   EFIMOW.COM — Engineering Atelier
   Dunkles Blueprint-Design, Markenfarben aus dem EF-Logo:
   Blau #2e6fe0 · Rot #e8333d
   ============================================================ */

:root {
  --bg: #05070c;
  --bg-elev: #090d15;
  --surface: #0c111c;
  --surface-2: #101726;
  --line: rgba(120, 150, 220, 0.13);
  --line-strong: rgba(120, 150, 220, 0.25);
  --text: #eef2f9;
  --muted: #98a1b3;
  --faint: #5d6678;
  --blue: #2e6fe0;
  --blue-bright: #4d8cff;
  --red: #e8333d;
  --red-bright: #ff4d56;
  --grad: linear-gradient(92deg, var(--blue-bright) 0%, #8a6bff 48%, var(--red-bright) 100%);
  --font-display: "Unbounded", sans-serif;
  --font-body: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--red); color: #fff; }

/* ---------- Barrierefreiheit ---------- */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 100;
  background: var(--blue); color: #fff;
  padding: 10px 18px; border-radius: 10px;
  font-weight: 500; font-size: 0.9rem;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--blue-bright);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 2px; }

/* ---------- Scroll-Fortschritt ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 100%;
  z-index: 60; pointer-events: none;
  background: var(--grad);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* dezente Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #1c2536; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2a3550; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- Hintergrund: Blueprint-Raster + Glows + Korn ---------- */
.bg-stage {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -8%, rgba(46, 111, 224, 0.16), transparent 60%),
    radial-gradient(800px 600px at 95% 12%, rgba(232, 51, 61, 0.10), transparent 55%),
    radial-gradient(700px 700px at 50% 115%, rgba(46, 111, 224, 0.08), transparent 60%),
    var(--bg);
}
.bg-stage::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(125, 155, 225, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 155, 225, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 90%);
}
.bg-stage::after {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }

/* ---------- Typografie ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.kicker::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--red); box-shadow: 0 0 12px rgba(232, 51, 61, 0.8);
  flex-shrink: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.02rem; font-weight: 700; letter-spacing: 0.06em;
}
.brand-name span { color: var(--blue-bright); }

.nav-links { display: flex; align-items: center; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 0.92rem; font-weight: 400; color: var(--muted);
  letter-spacing: 0.04em; transition: color 0.25s; position: relative;
}
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 1.5px; width: 0;
  background: var(--grad); transition: width 0.3s var(--ease);
}
.nav-links a:not(.btn):hover::after { width: 100%; }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { width: 100%; }

.nav-burger {
  display: none; background: none; border: 1px solid var(--line-strong);
  width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-burger span { width: 18px; height: 2px; background: var(--text); transition: 0.3s var(--ease); }
.nav.open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-burger span:nth-child(2) { opacity: 0; }
.nav.open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: 0.95rem;
  padding: 13px 26px; border-radius: 12px; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn svg { transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

.btn-primary, a.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 28px -8px rgba(46, 111, 224, 0.55);
}
.btn-primary:hover {
  background: var(--blue-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(46, 111, 224, 0.7);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(232, 51, 61, 0.6);
  background: rgba(232, 51, 61, 0.07);
  transform: translateY(-2px);
}

.btn-red {
  background: var(--red); color: #fff;
  box-shadow: 0 8px 28px -8px rgba(232, 51, 61, 0.55);
}
.btn-red:hover {
  background: var(--red-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -8px rgba(232, 51, 61, 0.7);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 128px;
  position: relative;
}
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 0.9fr;
  gap: 48px; align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5.6vw, 4.6rem);
  margin: 26px 0 24px;
}
.hero h1 .line { display: block; }
.hero p.lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  color: var(--muted); max-width: 54ch; font-weight: 300;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero-meta {
  margin-top: 52px; display: flex; flex-wrap: wrap; gap: 12px 36px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  color: var(--faint); text-transform: uppercase;
}
.hero-meta b { color: var(--muted); font-weight: 500; }

/* Logo + Orbit */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.orbit-wrap { position: relative; width: min(420px, 80vw); aspect-ratio: 1; display: grid; place-items: center; }
.orbit-svg { position: absolute; inset: -14%; width: 128%; height: 128%; overflow: visible; }
.hero-logo {
  width: 58%; height: auto;
  filter: drop-shadow(0 24px 60px rgba(46, 111, 224, 0.35));
  animation: float 7s ease-in-out infinite;
  position: relative; z-index: 2;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
.orbit-dash { animation: dash-drift 16s linear infinite; }
@keyframes dash-drift { to { stroke-dashoffset: -130; } }

.hero-scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--faint);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 42px;
  background: linear-gradient(var(--line-strong), transparent);
  animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip {
  0% { transform: scaleY(0); transform-origin: top; }
  45% { transform: scaleY(1); transform-origin: top; }
  55% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Hero Eintritts-Animation */
.fade-up { opacity: 0; transform: translateY(28px); animation: fadeUp 0.9s var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; overflow: hidden; position: relative;
  background: rgba(255, 255, 255, 0.012);
}
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee-track {
  display: flex; gap: 0; width: max-content;
  animation: scroll 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee-track span {
  font-family: var(--font-mono); font-size: 0.84rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); padding: 0 28px;
  display: flex; align-items: center; gap: 56px; white-space: nowrap;
}
.marquee-track span::after {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); opacity: 0.7; flex-shrink: 0;
}
.marquee-track span:nth-child(even)::after { background: var(--red); }

/* ---------- Sections ---------- */
section { padding: 110px 0; position: relative; }
.section-head { margin-bottom: 58px; max-width: 760px; }
.section-head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.7rem);
  margin: 20px 0 16px;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Panels (Blueprint-Karten) ---------- */
.panel {
  position: relative;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
  overflow: hidden;
}
.panel::before {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), rgba(77, 140, 255, 0.10), transparent 65%);
  transition: opacity 0.4s;
  pointer-events: none;
}
.panel:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8); }
.panel:hover::before { opacity: 1; }

/* Blueprint-Eckmarken */
.ticks::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none; border-radius: 10px;
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) top left / 14px 1px,
    linear-gradient(var(--line-strong), var(--line-strong)) top left / 1px 14px,
    linear-gradient(var(--line-strong), var(--line-strong)) top right / 14px 1px,
    linear-gradient(var(--line-strong), var(--line-strong)) top right / 1px 14px,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom left / 14px 1px,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom left / 1px 14px,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom right / 14px 1px,
    linear-gradient(var(--line-strong), var(--line-strong)) bottom right / 1px 14px;
  background-repeat: no-repeat;
}

/* ---------- Leistungen ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-num {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.2em;
  color: var(--faint); display: block; margin-bottom: 22px;
}
.service-num em { font-style: normal; color: var(--blue-bright); }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center; margin-bottom: 22px;
  background: rgba(46, 111, 224, 0.10);
  border: 1px solid rgba(77, 140, 255, 0.25);
  color: var(--blue-bright);
}
.panel:nth-child(2) .service-icon {
  background: rgba(232, 51, 61, 0.09);
  border-color: rgba(255, 77, 86, 0.25);
  color: var(--red-bright);
}
.services-grid .panel h3 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.06rem;
  letter-spacing: 0.02em; margin-bottom: 14px; line-height: 1.35;
}
.services-grid .panel p { color: var(--muted); font-size: 0.97rem; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.tag {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em;
  color: var(--muted); padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}

/* ---------- Projekte ---------- */
.projects-grid { display: grid; gap: 26px; }
.project {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  padding: 0; align-items: stretch;
}
.project:nth-child(even) .project-info { order: 2; }
.project-info { padding: 42px 40px; display: flex; flex-direction: column; }
.project-kind {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 10px;
}
.project-kind::before { content: ""; width: 22px; height: 1px; }
.project.is-red .project-kind { color: var(--red-bright); }
.project.is-red .project-kind::before { background: var(--red-bright); }
.project.is-blue .project-kind { color: var(--blue-bright); }
.project.is-blue .project-kind::before { background: var(--blue-bright); }

.project h3 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  letter-spacing: 0.01em; margin-bottom: 16px; text-transform: uppercase;
}
.project p { color: var(--muted); font-size: 0.99rem; }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 28px; }
.project-link {
  margin-top: auto; display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 0.96rem;
}
.project.is-red .project-link { color: var(--red-bright); }
.project.is-blue .project-link { color: var(--blue-bright); }
.project-link svg { transition: transform 0.3s var(--ease); }
.project-link:hover svg { transform: translate(4px, -4px); }

/* Browser-Mockups */
.project-visual {
  position: relative; min-height: 340px; display: grid; place-items: center;
  padding: 36px; overflow: hidden;
}
.project.is-red .project-visual { background: radial-gradient(560px 360px at 70% 30%, rgba(232, 51, 61, 0.13), transparent 70%); }
.project.is-blue .project-visual { background: radial-gradient(560px 360px at 30% 30%, rgba(46, 111, 224, 0.15), transparent 70%); }

.mock {
  width: 100%; max-width: 460px; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #0a0d14;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.85);
  transform: rotate(-1.2deg);
  transition: transform 0.45s var(--ease);
}
.project:hover .mock { transform: rotate(0deg) scale(1.02); }
.project:nth-child(even) .mock { transform: rotate(1.2deg); }
.project:nth-child(even):hover .mock { transform: rotate(0deg) scale(1.02); }

.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mock-bar i:nth-child(1) { background: #ff5f57; }
.mock-bar i:nth-child(2) { background: #febc2e; }
.mock-bar i:nth-child(3) { background: #28c840; }
.mock-url {
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--faint);
  margin-left: 10px; background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px; border-radius: 6px; letter-spacing: 0.04em;
}
/* Echte Seiten-Screenshots in den Browser-Rahmen */
.mock-shot {
  display: block; width: 100%; height: auto;
  transform: scale(1.001);
  transition: transform 0.6s var(--ease);
  transform-origin: 50% 30%;
}
.project:hover .mock-shot { transform: scale(1.035); }

/* "Ihr Projekt"-Karte */
.project-cta {
  border: 1.5px dashed var(--line-strong);
  background: transparent;
  border-radius: 18px;
  padding: 52px 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  transition: border-color 0.3s, background 0.3s, transform 0.35s var(--ease);
}
.project-cta:hover {
  border-color: rgba(77, 140, 255, 0.55);
  background: rgba(46, 111, 224, 0.04);
  transform: translateY(-4px);
}
.project-cta .plus {
  width: 58px; height: 58px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 1.6rem; font-weight: 300; color: var(--blue-bright);
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.project-cta:hover .plus { transform: rotate(90deg); border-color: var(--blue-bright); }
.project-cta h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; }
.project-cta p { color: var(--muted); max-width: 46ch; font-size: 0.97rem; }

/* ---------- Prozess ---------- */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  position: relative; counter-reset: step;
}
.process-grid::before {
  content: ""; position: absolute; top: 27px; left: 7%; right: 7%;
  height: 1px; background: linear-gradient(90deg, var(--blue), #8a6bff, var(--red));
  opacity: 0.35;
}
.step { position: relative; padding-top: 0; }
.step-dot {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong);
  display: grid; place-items: center; margin-bottom: 22px;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--blue-bright);
  position: relative; z-index: 1;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.step:hover .step-dot { border-color: var(--blue-bright); box-shadow: 0 0 24px rgba(77, 140, 255, 0.35); }
.step:last-child .step-dot { color: var(--red-bright); }
.step:last-child:hover .step-dot { border-color: var(--red-bright); box-shadow: 0 0 24px rgba(255, 77, 86, 0.35); }
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; letter-spacing: 0.02em; margin-bottom: 10px; text-transform: uppercase; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Über mich ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 56px; align-items: center;
}
.about-grid .section-head { margin-bottom: 28px; }
.about-copy p { color: var(--muted); margin-bottom: 18px; max-width: 56ch; }
.about-copy strong { color: var(--text); font-weight: 500; }
.about-points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.point {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.88rem; font-weight: 400; color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 16px; background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.3s, background 0.3s;
}
.point:hover { border-color: rgba(77, 140, 255, 0.5); background: rgba(46, 111, 224, 0.06); }
.point svg { color: var(--blue-bright); flex-shrink: 0; }
.point:nth-child(even) svg { color: var(--red-bright); }

/* Code-Karte */
.code-card {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #070a10;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono); font-size: 0.88rem;
  transform: rotate(1.2deg);
  transition: transform 0.45s var(--ease);
}
.code-card:hover { transform: rotate(0deg); }
.code-card .terminal-bar span { margin-left: 8px; }
.code-body { padding: 24px 22px 28px; line-height: 2.05; overflow-x: auto; }
.code-body .indent { padding-left: 26px; display: block; }
.tok-kw { color: var(--red-bright); }
.tok-var { color: var(--text); font-weight: 500; }
.tok-key { color: var(--blue-bright); }
.tok-str { color: #7dd3a0; }
.tok-bool { color: var(--red-bright); font-weight: 600; }
.tok-punct { color: var(--faint); }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elev) 100%);
  transition: border-color 0.3s;
  overflow: hidden;
}
.faq-item:hover, .faq-item[open] { border-color: var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 26px;
  font-weight: 500; font-size: 1.02rem; color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  font-size: 1.05rem; font-weight: 300; color: var(--blue-bright);
  transition: transform 0.35s var(--ease), border-color 0.3s, color 0.3s;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); color: var(--red-bright); border-color: rgba(255, 77, 86, 0.45); }
.faq-a { padding: 0 26px 24px; color: var(--muted); font-size: 0.98rem; max-width: 70ch; }
.faq-a a { color: var(--blue-bright); border-bottom: 1px dotted rgba(77, 140, 255, 0.4); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq-item[open] .faq-a { animation: faq-in 0.4s var(--ease); }

/* ---------- 404 ---------- */
.err-main {
  min-height: 100svh; display: grid; place-items: center;
  padding: calc(var(--nav-h) + 40px) 0 80px; text-align: center;
}
.err-code {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(5rem, 18vw, 11rem); line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.err-main h1 { font-size: clamp(1.3rem, 3vw, 2rem); margin: 18px 0 14px; }
.err-main p { color: var(--muted); max-width: 46ch; margin-inline: auto; }
.err-main .term-line {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--faint);
  margin-bottom: 26px; letter-spacing: 0.04em;
}
.err-main .term-line b { color: var(--red-bright); font-weight: 500; }
.err-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---------- Kontakt ---------- */
.contact { padding-bottom: 130px; }
.contact-panel {
  position: relative;
  border-radius: 26px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(700px 420px at 15% 0%, rgba(46, 111, 224, 0.16), transparent 65%),
    radial-gradient(700px 420px at 90% 100%, rgba(232, 51, 61, 0.13), transparent 65%),
    linear-gradient(165deg, var(--surface-2), var(--bg-elev));
  padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center;
  overflow: hidden;
}
.contact-panel h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin: 20px 0 18px; }
.contact-panel > div > p { color: var(--muted); max-width: 50ch; }
.contact-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }

.terminal {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #070a10;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
  font-family: var(--font-mono); font-size: 0.86rem;
}
.terminal-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--faint); font-size: 0.7rem; letter-spacing: 0.08em;
}
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.terminal-bar i:nth-child(1) { background: #ff5f57; }
.terminal-bar i:nth-child(2) { background: #febc2e; }
.terminal-bar i:nth-child(3) { background: #28c840; }
.terminal-bar span { margin-left: 8px; }
.terminal-body { padding: 22px 20px 26px; line-height: 2.1; }
.terminal-body .ln { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.terminal-body .prompt { color: var(--blue-bright); }
.terminal-body .cmd { color: var(--text); }
.terminal-body .out { color: var(--muted); }
.terminal-body .out a { color: var(--red-bright); border-bottom: 1px dotted rgba(255, 77, 86, 0.5); }
.terminal-body .out a:hover { color: #fff; }
.cursor {
  display: inline-block; width: 9px; height: 17px; vertical-align: middle;
  background: var(--red-bright); animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.copy-btn {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  color: var(--muted); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong); border-radius: 6px;
  padding: 4px 10px; cursor: pointer; transition: 0.25s;
}
.copy-btn:hover { color: var(--text); border-color: var(--blue-bright); }
.copy-btn.copied { color: #34d27b; border-color: rgba(52, 210, 123, 0.5); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
  background: rgba(255, 255, 255, 0.012);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { width: 34px; height: 34px; }
.footer-grid p { color: var(--faint); font-size: 0.92rem; max-width: 34ch; }
.footer-grid h4 {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 18px; font-weight: 500;
}
.footer-grid ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-grid ul a { color: var(--muted); font-size: 0.93rem; transition: color 0.25s; }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 26px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--faint);
}

/* ---------- Scroll-Reveals ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Anfrage-Formular ---------- */
.form-main { padding: calc(var(--nav-h) + 56px) 0 110px; }
.form-head { max-width: 720px; margin-bottom: 48px; }
.form-head h1 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin: 20px 0 16px; }
.form-head p { color: var(--muted); font-size: 1.05rem; }

.form-layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: 36px; align-items: start;
}

.form-block {
  position: relative;
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-elev) 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px 28px;
  margin-bottom: 20px;
}
.form-block legend, .form-block .block-title {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--faint);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px; padding: 0;
}
.form-block .block-title em { font-style: normal; color: var(--blue-bright); }
fieldset.form-block { border: 1px solid var(--line); }

/* Auswahl: Projekttyp-Karten */
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-card input, .chip input { position: absolute; opacity: 0; pointer-events: none; }
.type-card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 18px 16px; cursor: pointer;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
  font-size: 0.93rem; font-weight: 400; color: var(--text);
}
.type-card svg { color: var(--muted); transition: color 0.25s; }
.type-card:hover { border-color: rgba(77, 140, 255, 0.5); transform: translateY(-2px); }
.type-card:has(input:checked) {
  border-color: var(--blue-bright);
  background: rgba(46, 111, 224, 0.10);
  box-shadow: 0 0 0 1px var(--blue-bright), 0 12px 30px -16px rgba(46, 111, 224, 0.6);
}
.type-card:has(input:checked) svg { color: var(--blue-bright); }
.type-card:has(input:focus-visible) { outline: 2px solid var(--blue-bright); outline-offset: 3px; }

/* Auswahl: Chips (Budget, Zeitrahmen, Rückmeldung) */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  position: relative; cursor: pointer;
  font-size: 0.9rem; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.015);
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.chip:hover { border-color: rgba(77, 140, 255, 0.5); color: var(--text); }
.chip:has(input:checked) {
  border-color: var(--blue-bright); color: #fff;
  background: rgba(46, 111, 224, 0.16);
  box-shadow: 0 0 0 1px var(--blue-bright);
}
.chip:has(input:focus-visible) { outline: 2px solid var(--blue-bright); outline-offset: 3px; }
.chip-label {
  font-size: 0.86rem; color: var(--muted); margin: 18px 0 12px;
  display: block; font-weight: 400;
}
.form-block .chip-label:first-of-type { margin-top: 0; }

/* Eingabefelder */
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.88rem; color: var(--muted); }
.field label b { color: var(--red-bright); font-weight: 500; }
.field input, .field textarea {
  font-family: var(--font-body); font-size: 0.98rem; font-weight: 300;
  color: var(--text); background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 13px 16px; width: 100%;
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:hover, .field textarea:hover { border-color: rgba(120, 150, 220, 0.4); }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-bright);
  background: rgba(46, 111, 224, 0.06);
  box-shadow: 0 0 0 1px var(--blue-bright);
}
.field textarea { resize: vertical; min-height: 150px; line-height: 1.6; }
.field .hint { font-size: 0.8rem; color: var(--faint); }
.field.invalid input, .field.invalid textarea { border-color: var(--red-bright); box-shadow: 0 0 0 1px var(--red-bright); }
.field .error-msg { display: none; font-size: 0.8rem; color: var(--red-bright); }
.field.invalid .error-msg { display: block; }
.group-error { display: none; font-size: 0.82rem; color: var(--red-bright); margin-top: 12px; }
.form-block.invalid .group-error { display: block; }
.form-block.invalid { border-color: rgba(255, 77, 86, 0.5); }

/* Absenden */
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
.form-privacy { font-size: 0.82rem; color: var(--faint); margin-top: 18px; max-width: 60ch; }
.form-privacy a { color: var(--blue-bright); border-bottom: 1px dotted rgba(77, 140, 255, 0.4); }
.send-note {
  display: none; margin-top: 18px; padding: 16px 18px;
  border: 1px solid rgba(52, 210, 123, 0.35); border-radius: 12px;
  background: rgba(52, 210, 123, 0.07);
  font-size: 0.9rem; color: #b8e9cd;
}
.send-note.show { display: block; }
.send-note a { color: #7dd3a0; border-bottom: 1px dotted rgba(125, 211, 160, 0.5); }

/* Live-Vorschau */
.preview-sticky { position: sticky; top: calc(var(--nav-h) + 24px); }
.preview-sticky .terminal-body {
  white-space: pre-wrap; word-break: break-word;
  font-size: 0.8rem; line-height: 1.9; color: var(--muted);
  min-height: 320px;
}
.preview-sticky .terminal-body .pv-key { color: var(--blue-bright); }
.preview-sticky .terminal-body .pv-val { color: var(--text); }
.preview-sticky .terminal-body .pv-dim { color: var(--faint); }
.preview-hint {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--faint);
  margin-top: 14px; text-align: center;
}

@media (max-width: 1020px) {
  .form-layout { grid-template-columns: 1fr; }
  .preview-sticky { position: static; order: 2; }
  .type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .field-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .form-block { padding: 24px 18px; }
}

/* ---------- Rechtliche Seiten ---------- */
.legal-main { padding: calc(var(--nav-h) + 60px) 0 100px; min-height: 70vh; }
.legal-main .container { max-width: 780px; }
.legal-main h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 18px 0 40px; }
.legal-main h2 {
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: 0.03em; text-transform: uppercase;
  margin: 44px 0 14px; padding-left: 16px;
  border-left: 3px solid var(--blue);
}
.legal-main h2:nth-of-type(even) { border-left-color: var(--red); }
.legal-main p, .legal-main li { color: var(--muted); font-size: 0.99rem; }
.legal-main p { margin-bottom: 14px; }
.legal-main ul { padding-left: 22px; margin-bottom: 14px; }
.legal-main a { color: var(--blue-bright); border-bottom: 1px dotted rgba(77, 140, 255, 0.4); }
.legal-main a:hover { color: #fff; }
.legal-main strong { color: var(--text); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .nav-links { gap: 24px; }
}

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 340px; order: -1; }
  .orbit-wrap { width: min(320px, 70vw); }
  .services-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .process-grid::before { display: none; }
  .project { grid-template-columns: 1fr; }
  .project:nth-child(even) .project-info { order: 0; }
  .project-visual { min-height: 300px; }
  .contact-panel { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  section { padding: 80px 0; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5, 7, 12, 0.97); backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: none; padding-top: 16px; }
  .nav-links a:not(.btn) { display: block; padding: 16px 4px; font-size: 1.05rem; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .nav-burger { display: flex; }
  /* Rechtsseiten: einzelner Zurück-Link bleibt ohne Burger sichtbar */
  .nav.nav-simple .nav-links {
    display: flex; position: static; flex-direction: row;
    background: none; backdrop-filter: none; border: none; padding: 0;
  }
  .nav.nav-simple .nav-links li { border: none; }
  .nav.nav-simple .nav-links a:not(.btn) { padding: 8px 0; font-size: 0.9rem; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero-meta { gap: 10px 22px; }
  .hero-scroll { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-info { padding: 30px 24px; }
  .process-grid { grid-template-columns: 1fr; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .fade-up { opacity: 1; transform: none; }
}
