/* ============================================================
   z19 ventures — Design-System
   Dunkle Tiefsee-Basis, biolumineszentes Türkis, drei Schriften:
   Clash Display (Headlines) · General Sans (Text) · JetBrains Mono (Instrumente)
   ============================================================ */

/* ---------- Fonts (selbst gehostet, DSGVO-konform) ---------- */
@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/ClashDisplay-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Clash Display';
  src: url('/assets/fonts/ClashDisplay-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('/assets/fonts/GeneralSans-Semibold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --abyss: #02040A;        /* tiefster Grund */
  --deep: #0A1E38;         /* Oberflächen-Blau */
  --navy: #06234C;         /* Marken-Navy (Logo) */
  --surface: rgba(13, 34, 62, 0.42);
  --line: rgba(141, 178, 214, 0.14);
  --cyan: #2DD4CD;         /* Marken-Türkis */
  --cyan-soft: #8FE8E4;
  --ice: #EAF3F6;          /* Primärtext */
  --slate: #9AB0C4;        /* Sekundärtext */

  --font-display: 'Clash Display', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --measure: 42rem;
  --pad-x: clamp(1.25rem, 5vw, 4.5rem);
  --radius: 14px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset & Basis ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; }

html { scroll-padding-top: 5.5rem; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  background: linear-gradient(180deg, var(--deep) 0%, #051228 30%, var(--abyss) 100%);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--cyan); color: var(--abyss); }

img, svg { max-width: 100%; display: block; }

a { color: var(--cyan-soft); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: fixed; top: -4rem; left: 1rem; z-index: 100;
  background: var(--cyan); color: var(--abyss);
  padding: 0.6rem 1rem; border-radius: 8px;
  font-weight: 600; text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* ---------- Experience-Canvas ---------- */
#experience {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
.site-header.scrolled {
  background: rgba(4, 9, 18, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ice);
}
.brand-mark { width: 2rem; height: 2rem; }
.brand-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.25rem; letter-spacing: 0.01em;
}
.brand-name-light { color: var(--slate); font-weight: 500; }

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.2rem); }
.site-nav a {
  color: var(--slate); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.2s ease;
}
.site-nav a:hover { color: var(--ice); }
.site-nav .nav-cta {
  color: var(--abyss); background: var(--cyan);
  padding: 0.5rem 1.1rem; border-radius: 99px; font-weight: 600;
  transition: background 0.2s ease, transform 0.2s var(--ease-out);
}
.site-nav .nav-cta:hover { background: var(--cyan-soft); color: var(--abyss); transform: translateY(-1px); }

@media (max-width: 719px) {
  .site-nav a:not(.nav-cta) { display: none; }
}

/* ---------- Tiefenmesser (Signature) ---------- */
.depth-rail {
  position: fixed; right: clamp(0.9rem, 2.5vw, 2.2rem); top: 50%;
  transform: translateY(-50%);
  height: 56vh; z-index: 40;
  display: none;
}
.js .depth-rail { display: block; }

.depth-track {
  position: relative; height: 100%; width: 1px;
  background:
    repeating-linear-gradient(
      to bottom,
      rgba(141, 178, 214, 0.35) 0 1px,
      transparent 1px calc(100% / 19)
    ),
    rgba(141, 178, 214, 0.18);
}
.depth-cursor {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -50%);
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(45, 212, 205, 0.9), 0 0 32px rgba(45, 212, 205, 0.4);
}
.depth-value {
  position: absolute; right: 1.1rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--cyan-soft); white-space: nowrap;
  letter-spacing: 0.04em;
}

@media (max-width: 899px) {
  .depth-rail { right: 0.45rem; height: 44vh; }
  .depth-value { display: none; }
}

/* ---------- Panels ---------- */
main { position: relative; z-index: 10; }

.panel {
  min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(6rem, 14vh, 9rem) var(--pad-x);
  position: relative;
}
.panel-inner { width: 100%; max-width: 72rem; margin-inline: auto; }
.panel-inner-center { text-align: center; }

/* Textblöcke links halten, rechts Raum für die Formation lassen */
.panel h1, .panel h2, .panel .lede, .panel .section-lede { max-width: var(--measure); }
.panel-inner-center h2, .panel-inner-center .section-lede { margin-inline: auto; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1.4rem;
  display: flex; align-items: center; gap: 0.9rem;
}
.eyebrow-center { justify-content: center; }
.eyebrow-depth {
  color: var(--cyan);
  padding-bottom: 1px;
  border-bottom: 1px solid rgba(45, 212, 205, 0.45);
}

h1, h2 {
  font-family: var(--font-display); font-weight: 600;
  line-height: 1.06; letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.2vw, 4.4rem); margin-bottom: 1.5rem; }
h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-bottom: 1.4rem; }

.lede, .section-lede {
  font-size: clamp(1.08rem, 1.6vw, 1.28rem);
  color: var(--slate);
  margin-bottom: 2.4rem;
}
.section-lede strong { color: var(--ice); font-weight: 600; }

/* ---------- Buttons ---------- */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.cta-row-center { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.7rem; border-radius: 99px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  transition: transform 0.25s var(--ease-out), background 0.2s ease,
              border-color 0.2s ease, box-shadow 0.25s ease;
}
.btn-primary {
  background: var(--cyan); color: var(--abyss);
  box-shadow: 0 0 0 rgba(45, 212, 205, 0);
}
.btn-primary:hover {
  background: var(--cyan-soft); transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(45, 212, 205, 0.35);
}
.btn-ghost {
  color: var(--ice); border: 1px solid rgba(141, 178, 214, 0.35);
}
.btn-ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.panel-hero { justify-content: center; }

.scroll-hint {
  position: absolute; bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 3.4rem; overflow: hidden;
}
.scroll-hint-line {
  display: block; width: 100%; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--cyan-soft));
  animation: hint-drop 2.4s var(--ease-out) infinite;
}
@keyframes hint-drop {
  0% { transform: translateY(-100%); }
  55% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ---------- Karten ---------- */
.card-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
  max-width: 56rem;
  margin-top: 0.5rem;
}
@media (max-width: 767px) {
  .card-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.6rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s ease, background 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(45, 212, 205, 0.45);
  background: rgba(13, 34, 62, 0.6);
}
.card h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.3rem; line-height: 1.2;
  margin-bottom: 0.65rem;
}
.card p { color: var(--slate); font-size: 0.99rem; }

.card-link h3 a {
  color: var(--ice); text-decoration: none;
  display: inline-flex; align-items: baseline; gap: 0.45rem;
}
.card-link h3 a:hover { color: var(--cyan-soft); }
.card-arrow {
  font-size: 0.85em; color: var(--cyan);
  transition: transform 0.25s var(--ease-out);
}
.card-link h3 a:hover .card-arrow { transform: translate(3px, -3px); }
.card-tag {
  font-family: var(--font-mono); font-size: 0.72rem !important;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan) !important;
  margin-bottom: 0.7rem;
}
.card-wide { grid-column: 1 / -1; }

/* ---------- Arbeitsschritte ---------- */
.steps {
  list-style: none; padding: 0; counter-reset: none;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem; margin-top: 2.6rem;
}
@media (max-width: 1023px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .steps { grid-template-columns: 1fr; } }

.step {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  position: relative;
}
.step::before {
  content: ''; position: absolute; top: -1px; left: 0;
  width: 2.2rem; height: 1px; background: var(--cyan);
}
.step-num {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--cyan); letter-spacing: 0.08em;
  display: block; margin-bottom: 0.9rem;
}
.step h3 {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.25rem; margin-bottom: 0.5rem;
}
.step p { color: var(--slate); font-size: 0.97rem; }

/* ---------- Stats ---------- */
.stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4rem);
  margin-top: 2.8rem;
}
.stat dd {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--cyan);
  margin: 0; line-height: 1;
}
.stat dt {
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate); margin-top: 0.55rem;
}
.stat { display: flex; flex-direction: column-reverse; }

/* ---------- Kontakt ---------- */
.panel-contact { min-height: 100vh; }
.contact-hint {
  color: var(--slate); font-size: 0.95rem;
  margin: -1.4rem 0 2.2rem;
}
.contact-meta {
  margin-top: 2.6rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--slate); letter-spacing: 0.05em;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; z-index: 10;
  border-top: 1px solid var(--line);
  background: rgba(2, 4, 10, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.footer-inner {
  max-width: 72rem; margin-inline: auto;
  padding: 2rem var(--pad-x);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.4rem;
  justify-content: space-between;
}
.footer-brand {
  font-family: var(--font-display); font-weight: 600; font-size: 1.1rem;
}
.site-footer nav { display: flex; gap: 1.6rem; }
.site-footer nav a {
  color: var(--slate); text-decoration: none; font-size: 0.92rem;
}
.site-footer nav a:hover { color: var(--ice); }
.footer-copy { color: var(--slate); font-size: 0.85rem; }

/* ---------- Reveals (nur mit JS) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Unterseiten (Impressum, Datenschutz, 404) ---------- */
.page-legal main {
  max-width: 46rem; margin-inline: auto;
  padding: 9rem var(--pad-x) 5rem;
}
.page-legal h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem); margin-bottom: 2.5rem;
}
.prose h2 {
  font-size: 1.45rem; margin: 2.6rem 0 0.9rem;
}
.prose h3 {
  font-family: var(--font-body); font-weight: 600;
  font-size: 1.08rem; color: var(--ice);
  margin: 1.8rem 0 0.5rem;
}
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35rem; }
.prose strong { color: var(--ice); }
.prose a { color: var(--cyan-soft); }
.note-box {
  border: 1px dashed rgba(45, 212, 205, 0.5);
  border-radius: var(--radius);
  padding: 1rem 1.3rem; margin: 1.6rem 0;
  font-size: 0.95rem; color: var(--slate);
  background: rgba(45, 212, 205, 0.05);
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint-line { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .card-arrow { transition: none; }
}
