/* dripback — Shared design tokens + base styles
   per Design.md Section 5 (Tokens) + Section 11 (App-Design).
   Apple-tier minimal · enterprise-grade · Made in Bielefeld. */

:root {
  /* Surfaces */
  --bg: #0A0A0B;
  --raised: #121214;
  --elev: #1A1A1D;
  --overlay: rgba(34,34,38,0.5);

  /* Ink */
  --ink: #F5F5F7;
  --ink-2: #A1A1AA;
  --ink-3: #52525B;

  /* Lines */
  --line: rgba(255,255,255,0.06);
  --line-2: rgba(255,255,255,0.10);
  --line-3: rgba(255,255,255,0.18);

  /* Accent */
  --accent: #2B6FFF;
  --accent-soft: rgba(43,111,255,0.12);
  --signal: #FFB020;
  --emerald: #22C55E;
  --danger: #EF4444;

  /* Typography */
  --font-sans: 'Geist', -apple-system, system-ui, sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, monospace;
  --font-serif: 'Newsreader', Georgia, serif;

  /* Easings (per Design.md 5.4) */
  --ease-smooth: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.5, 1.25, 0.75, 1.25);
  --ease-cinematic: cubic-bezier(0.65, 0, 0.35, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-feature-settings: "ss01", "cv11";
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* Subtle grain across all pages */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><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.04 0'/></filter><rect width='200' height='200' filter='url(%23n)'/></svg>");
  opacity: 0.5;
}

/* --- LAYOUT PRIMITIVES --- */
.wrap { max-width: 1280px; margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px); }
.wrap-narrow { max-width: 880px; margin: 0 auto;
  padding-left: clamp(20px, 4vw, 48px);
  padding-right: clamp(20px, 4vw, 48px); }
section { position: relative; z-index: 2; }

/* --- TOPBAR (shared across pages) --- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10,10,11,0.92);
  border-bottom: 1px solid var(--line);
  transition: background 200ms;
}
.topbar:has(.mobile-nav.open),
body.menu-open .topbar { background: rgba(10,10,11,0.99); }
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: 24px;
}
.brand {
  font-family: var(--font-mono); font-weight: 600; font-size: 16px;
  letter-spacing: -0.02em;
}
.brand .dot { color: var(--accent); }

.topnav {
  display: none; gap: 28px; font-size: 13px; color: var(--ink-2);
  align-items: center;
}
.topnav a {
  transition: color 200ms;
  font-weight: 400;
}
.topnav a:hover, .topnav a.active { color: var(--ink); }
.topnav a.active { color: var(--accent); }
/* Emphasized nav-link (e.g., Lösungen — primary user destination) */
.topnav a.topnav-emph {
  color: var(--ink); font-weight: 500;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(43,111,255,0.08);
  border: 1px solid rgba(43,111,255,0.18);
}
.topnav a.topnav-emph:hover {
  background: rgba(43,111,255,0.15);
  border-color: var(--accent);
}
.topnav a.topnav-emph.active {
  color: var(--accent); background: rgba(43,111,255,0.15);
}

.topnav-cta {
  font-size: 13px; color: var(--ink-2); padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: 8px;
  transition: 200ms var(--ease-smooth); white-space: nowrap;
}
.topnav-cta:hover { border-color: var(--accent); color: var(--accent); }

.menu-toggle {
  display: flex; background: none; border: none; color: var(--ink);
  font-size: 20px; cursor: pointer; padding: 4px;
}
@media (min-width: 768px) {
  .topnav { display: flex; }
  .menu-toggle { display: none; }
}

/* Mobile drawer — sits flush below topbar-inner, no extra gap */
.mobile-nav {
  display: none; padding: 0 0 16px;
  margin-top: 0; border-top: 1px solid var(--line);
  flex-direction: column; gap: 0;
  animation: mobNavSlide 280ms cubic-bezier(0.16,1,0.3,1);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 14px 0; font-size: 16px; color: var(--ink-2);
  border-bottom: 1px solid var(--line);
  transition: color 200ms, padding-left 200ms;
}
.mobile-nav a:hover { color: var(--ink); padding-left: 8px; }
.mobile-nav a.active { color: var(--accent); }
@keyframes mobNavSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- HEADINGS / TYPOGRAPHY --- */
.eyebrow {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 18px;
}
.h-display {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05; letter-spacing: -0.025em;
  color: var(--ink); margin: 0 0 28px;
}
.h-display em { color: var(--accent); font-style: italic; }
.h-section {
  font-family: var(--font-serif); font-weight: 600;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.1; letter-spacing: -0.02em;
  color: var(--ink); margin: 0 0 20px;
}
.h-card {
  font-size: 18px; font-weight: 600; margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.lede {
  font-size: clamp(15px, 1.1vw, 17px); color: var(--ink-2);
  max-width: 60ch; line-height: 1.6;
}
.mono { font-family: var(--font-mono); }

/* --- LINK / CTA --- */
.cta-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--ink); padding: 10px 0;
  border-bottom: 1px solid var(--accent);
  transition: 200ms var(--ease-smooth);
}
.cta-ghost::after { content: "→"; transition: transform 200ms; }
.cta-ghost:hover { color: var(--accent); padding-left: 4px; }
.cta-ghost:hover::after { transform: translateX(4px); }

.cta-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: white;
  padding: 12px 24px; border-radius: 8px;
  font-size: 14px; font-weight: 500;
  transition: 200ms var(--ease-smooth);
}
.cta-primary:hover { background: #1f5cd9; transform: translateY(-1px); }

/* --- COMMON SECTIONS --- */
.section { padding: clamp(80px, 12vh, 160px) 0; }
.section + .section { border-top: 1px solid var(--line); }

.section-head { margin-bottom: 56px; max-width: 720px; }

/* --- CARDS --- */
.card {
  background: var(--raised); border: 1px solid var(--line-2);
  border-radius: 14px; padding: 28px 24px;
  transition: 250ms var(--ease-smooth);
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-3px); border-color: rgba(43,111,255,0.35); }

/* --- TRUST / META STRIP --- */
.trust-strip {
  display: flex; gap: 28px; flex-wrap: wrap;
  padding: 24px 0; opacity: 0.7;
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}

/* --- FOOTER (shared) --- */
footer {
  padding: 60px 0 80px;
  border-top: 1px solid var(--line); position: relative; z-index: 2;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.01));
}
.footer-grid {
  display: grid; gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; }
}
.footer-col h4 {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3); margin: 0 0 14px; font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--ink-2); transition: color 150ms; }
.footer-col a:hover { color: var(--ink); }
.footer-tag {
  font-family: var(--font-serif); font-size: 17px; line-height: 1.5;
  color: var(--ink-2); max-width: 36ch; margin-top: 16px;
}
.footer-meta {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; gap: 24px; font-size: 11px; color: var(--ink-3);
  font-family: var(--font-mono); flex-wrap: wrap; justify-content: space-between;
}

/* --- ANIMATIONS / KEYFRAMES (shared) --- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes wordReveal {
  from { opacity: 0; transform: translateY(36px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
