/* nelyox: Landingpage. Dunkle Seite, ein Akzent (Amber), selbst gehostete Schriften. */

@font-face { font-family: "Geist"; font-weight: 400; font-display: swap; src: url("../fonts/geist-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 500; font-display: swap; src: url("../fonts/geist-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 600; font-display: swap; src: url("../fonts/geist-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 700; font-display: swap; src: url("../fonts/geist-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist"; font-weight: 800; font-display: swap; src: url("../fonts/geist-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 400; font-display: swap; src: url("../fonts/geist-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Geist Mono"; font-weight: 500; font-display: swap; src: url("../fonts/geist-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --ground: #0c0a09;
  --surface: #14110f;
  --surface-2: #1a1714;
  --line: rgba(255, 244, 232, 0.10);
  --line-strong: rgba(255, 244, 232, 0.2);
  --text: #f4efe9;
  --muted: #b3a99e;
  --amber: #ff8a1f;
  --amber-soft: #ffb55e;
  --on-amber: #1a0f04;
  --radius-card: 24px;
  --radius-field: 14px;
  --radius-pill: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1280px;
  --pad: clamp(20px, 4vw, 48px);
  --nav-h: 68px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--amber-soft); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--amber); color: var(--on-amber); padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; }
.skip-link:focus { top: 12px; }

/* Körnung: fest, ohne Pointer-Events, nie auf scrollenden Containern */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* ---------- Navigation ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--nav-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
  border-bottom: 1px solid transparent; }
.site-header.is-scrolled { background: rgba(12, 10, 9, 0.78); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-color: var(--line); }
.nav { height: var(--nav-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 700; font-size: 1.35rem; letter-spacing: -0.04em; }
.brand span { color: var(--amber); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: var(--radius-pill); color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.25s, background 0.25s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 244, 232, 0.06); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; white-space: nowrap;
  padding: 14px 26px; border-radius: var(--radius-pill); font-weight: 600; font-size: 1rem; border: 1px solid transparent; cursor: pointer;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary { background: var(--amber); color: var(--on-amber); box-shadow: 0 10px 40px -12px rgba(255, 138, 31, 0.6); }
.btn-primary:hover { background: var(--amber-soft); box-shadow: 0 14px 50px -10px rgba(255, 138, 31, 0.75); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 244, 232, 0.03); }
.btn-ghost:hover { border-color: rgba(255, 244, 232, 0.4); background: rgba(255, 244, 232, 0.08); }
.btn-sm { padding: 10px 20px; font-size: 0.95rem; }
.btn svg { width: 18px; height: 18px; transition: transform 0.35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; will-change: transform, opacity; transform-origin: 50% 40%; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(12, 10, 9, 0.5) 0%, rgba(12, 10, 9, 0) 28%, rgba(12, 10, 9, 0) 55%, var(--ground) 100%); }
.hero-inner { width: 100%; padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(48px, 9vh, 96px); }
/* Schriftgröße folgt der Containerbreite: die längste Variante ("Wir bauen Anwendungen," = 11,3 em) bleibt in einer Zeile, es sind immer genau 2 Zeilen */
.hero h1 { font-weight: 700; font-size: clamp(1.6rem, calc((min(100vw, 1280px) - 2 * var(--pad) - 20px) / 11.6), 7.4rem); line-height: 0.98; letter-spacing: -0.05em; white-space: nowrap; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.hero h1 .line > span { display: block; }
.hero h1 em { font-style: normal; color: var(--amber); }
/* Wechselndes Wort: Breite folgt dem aktuellen Wort, die Wörter gleiten vertikal durch */
.rot { position: relative; display: inline-block; vertical-align: top; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.rot-w { display: block; white-space: nowrap; }
.js .rot.is-live .rot-w { position: absolute; left: 0; top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-sub { margin-top: 28px; max-width: 46ch; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); }
.hero-cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sektionen ---------- */
.section { padding: clamp(88px, 14vw, 180px) 0; position: relative; }
.eyebrow { font-family: "Geist Mono", monospace; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber-soft); margin-bottom: 20px; }
.h2 { font-weight: 700; font-size: clamp(2.1rem, 4.8vw, 4.2rem); line-height: 1.02; letter-spacing: -0.04em; max-width: 18ch; }
.lead { margin-top: 22px; max-width: 52ch; color: var(--muted); font-size: 1.15rem; }

/* ---------- Skills (Bento) ---------- */
.bento { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.card { position: relative; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; transition: border-color 0.4s var(--ease), transform 0.5s var(--ease); }
.card::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 138, 31, 0.16), transparent 60%); transition: opacity 0.4s; }
.card:hover { border-color: rgba(255, 138, 31, 0.45); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card-media { position: relative; height: 380px; background: #12100e; overflow: hidden; }
.card-media video, .card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 28px 30px 32px; position: relative; z-index: 3; }
.card h3 { font-size: 1.6rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.card p { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.chips { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); font-size: 0.85rem; color: var(--text); }
.c-automation { grid-column: span 7; }
.c-motion { grid-column: span 5; }
.c-prompt { grid-column: span 5; }
.c-claude { grid-column: span 7; }
.c-software { grid-column: span 12; flex-direction: row; }
.c-software .card-media { flex: 1 1 52%; height: auto; min-height: 420px; order: 2; }
.c-software .card-body { flex: 1 1 48%; align-self: center; padding: 48px; }
.c-software h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }

/* ---------- Ablauf (Pinned, Fortschrittslinie) ---------- */
.process { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.process-head { position: sticky; top: calc(var(--nav-h) + 48px); }
.steps { position: relative; padding-left: 44px; }
.steps::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); }
.steps-progress { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--amber), var(--amber-soft)); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 14px rgba(255, 138, 31, 0.6); }
/* Inaktive Schritte per Farbe statt Opacity abdunkeln: bleibt über 4,5:1 Kontrast (WCAG AA) */
.step { position: relative; padding: 0 0 clamp(56px, 9vw, 112px); }
.step h3, .step p { color: #8a8279; transition: color 0.5s var(--ease); }
.step:last-child { padding-bottom: 0; }
.step.is-active h3 { color: var(--text); }
.step.is-active p { color: var(--muted); }
.step::before { content: ""; position: absolute; left: -44px; top: 8px; width: 24px; height: 24px; border-radius: 50%; background: var(--ground); border: 2px solid var(--line-strong); transition: border-color 0.4s, background 0.4s; }
.step.is-active::before { border-color: var(--amber); background: var(--amber); box-shadow: 0 0 0 6px rgba(255, 138, 31, 0.16); }
.step h3 { font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; }
.step p { margin-top: 14px; max-width: 48ch; font-size: 1.1rem; }

/* ---------- FAQ ---------- */
.faq { margin-top: clamp(40px, 6vw, 72px); max-width: 880px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-card); background: var(--surface); transition: border-color 0.3s; }
.faq details[open] { border-color: rgba(255, 138, 31, 0.4); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 22px; height: 22px; color: var(--amber); transition: transform 0.4s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 28px 26px; color: var(--muted); max-width: 64ch; }

/* ---------- Kontakt ---------- */
.contact { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-direct { margin-top: 32px; display: grid; gap: 6px; color: var(--muted); }
.contact-direct a { color: var(--text); font-weight: 600; font-size: 1.25rem; border-bottom: 1px solid var(--amber); width: fit-content; }
.form-card { position: relative; border-radius: var(--radius-card); background: var(--surface); border: 1px solid var(--line); padding: clamp(24px, 4vw, 44px); }
.form-note { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-field); background: rgba(255, 138, 31, 0.1); border: 1px solid rgba(255, 138, 31, 0.4); color: var(--text); margin-bottom: 28px; font-size: 0.98rem; }
.form-note svg { flex: none; width: 22px; height: 22px; color: var(--amber-soft); margin-top: 2px; }
.form-note a { border-bottom: 1px solid var(--amber); font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border: 0; min-width: 0; padding: 0; margin: 0; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.95rem; font-weight: 500; color: var(--text); }
.field input, .field select, .field textarea { width: 100%; padding: 14px 16px; border-radius: var(--radius-field); background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:disabled, .field select:disabled, .field textarea:disabled { opacity: 0.6; cursor: not-allowed; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--amber-soft); outline: none; box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.22); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.92rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--amber); }
.consent a { border-bottom: 1px solid var(--line-strong); }
.form-actions { margin-top: 28px; }
.btn[disabled] { background: #3a2f25; color: #c9bcad; box-shadow: none; cursor: not-allowed; transform: none; }
.btn[disabled]:hover { background: #3a2f25; }
.btn[disabled]:hover svg { transform: none; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--line); padding: 72px 0 0; overflow: hidden; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.footer-brand p { margin-top: 12px; color: var(--muted); max-width: 34ch; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 28px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-bottom: 20px; color: var(--muted); font-size: 0.92rem; }
.watermark { font-weight: 700; font-size: clamp(5rem, 22vw, 20rem); letter-spacing: -0.02em; line-height: 0.82; text-align: center; white-space: nowrap; user-select: none; pointer-events: none;
  color: rgba(255, 138, 31, 0.1); margin-top: 12px; margin-bottom: -0.1em; }

/* ---------- Rechtliche Seiten ---------- */
.legal { padding: calc(var(--nav-h) + 72px) 0 120px; }
.legal .narrow { max-width: 760px; margin: 0 auto; padding: 0 var(--pad); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 40px 0 12px; }
.legal p { color: var(--muted); margin-bottom: 12px; }
.legal a { color: var(--text); border-bottom: 1px solid var(--amber); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(32px); }
.js .reveal.is-in { opacity: 1; transform: none; transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  /* Auf schmalen Schirmen bricht die Zeile um: Maske aus, die Zeilen blenden stattdessen ein */
  .hero h1 .line { overflow: visible; padding-bottom: 0; margin-bottom: 0; }
}
@media (max-width: 980px) {
  .nav-links { position: fixed; inset: var(--nav-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px var(--pad) 28px;
    background: rgba(12, 10, 9, 0.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    transform: translateY(calc(-100% - var(--nav-h))); visibility: hidden; transition: transform 0.5s var(--ease), visibility 0s linear 0.5s; }
  .nav-links.is-open { transform: none; visibility: visible; transition-delay: 0s; }
  .nav-links a { padding: 16px 8px; font-size: 1.15rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  .bento { grid-template-columns: 1fr; }
  .c-automation, .c-motion, .c-prompt, .c-claude, .c-software { grid-column: 1; }
  .c-software { flex-direction: column; }
  .c-software .card-media { order: 0; min-height: 0; height: 320px; flex: none; }
  .c-software .card-body { padding: 28px 30px 32px; }
  .card-media { height: 300px; }
  .process, .contact { grid-template-columns: 1fr; }
  .process-head { position: static; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal.is-in { opacity: 1; transform: none; transition: none; }
  .card, .card:hover { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header.is-scrolled, .nav-links { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ground); }
}
