/* ═══════════════════════════════════════════════════════════════════════
   RAKETEN.SCIENCE — Main Stylesheet
   Shared across index.html and datenschutz.html
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── DESIGN TOKENS ─────────────────────────────────────────────────── */
:root {
  --bg: #0b0c10;
  --bg-alt: #13141a;
  --bg-panel: #161821;
  --border: #1e2030;
  --border-bright: #2a2d42;
  --text: #f0f0f0;
  --text-muted: #8a8ea3;
  --text-dim: #555a70;
  --accent: #ff4c2b;
  --accent-glow: rgba(255, 76, 43, 0.18);
  --accent-soft: rgba(255, 76, 43, 0.08);
  --grid-line: rgba(255, 255, 255, 0.03);
}

/* ─── RESET & BASE ──────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Background grid pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  z-index: 0;
}

/* Film-grain noise overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  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'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 1;
}

main, nav, footer { position: relative; z-index: 2; }

/* ─── NAVIGATION ────────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(11, 12, 16, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
}

.brand {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
}
.brand .dot {
  color: var(--accent);
  font-size: 28px;
  margin: 0 1px;
  line-height: 1;
}
.brand .science { color: var(--text-muted); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ─── LANGUAGE TOGGLE ───────────────────────────────────────────────── */
.lang-toggle {
  display: flex;
  gap: 2px;
  border: 1px solid var(--border-bright);
  border-radius: 3px;
  overflow: hidden;
}
.lang-toggle button {
  background: transparent;
  color: var(--text-dim);
  border: none;
  padding: 5px 10px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  cursor: pointer;
  transition: all 0.2s;
}
.lang-toggle button.active {
  background: var(--accent);
  color: #fff;
}

[data-lang]:not(.active) { display: none; }

/* ─── BUTTONS ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--border-bright);
  color: var(--text);
  transition: all 0.25s;
  background: transparent;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: #ff6042;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn .arrow { transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(4px); }

/* ═══════════════════════════════════════════════════════════════════════
   HOME PAGE (index.html)
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── HERO ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  padding: 160px 40px 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}

.hero-meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.hero-meta span::before {
  content: '— ';
  color: var(--accent);
}

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(52px, 9vw, 130px);
  line-height: 0.9;
  letter-spacing: -0.03em;
  margin-bottom: 40px;
}
.hero h1 .accent-dot {
  color: var(--accent);
  display: inline-block;
  position: relative;
}
.hero h1 .muted {
  color: var(--text-muted);
  font-weight: 400;
  font-style: italic;
  font-size: 0.85em;
}

.hero-lede {
  font-size: clamp(18px, 1.6vw, 22px);
  max-width: 620px;
  color: var(--text-muted);
  margin-bottom: 60px;
  font-weight: 300;
}
.hero-lede strong { color: var(--text); font-weight: 500; }

.hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* Coordinate marker decoration */
.coord {
  position: absolute;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--text-dim);
}
.coord-tl { top: 100px; right: 40px; text-align: right; }
.coord-tl::before {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 6px;
  margin-left: auto;
}

/* ─── SECTIONS & HEADINGS ───────────────────────────────────────────── */
section {
  padding: 120px 40px;
  max-width: 1280px;
  margin: 0 auto;
}

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 60px;
  max-width: 900px;
}
.section-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-muted);
}

/* ─── MISSION PILLARS ───────────────────────────────────────────────── */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.pillar {
  background: var(--bg);
  padding: 50px 36px;
  transition: background 0.3s;
  position: relative;
}
.pillar:hover { background: var(--bg-panel); }
.pillar-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.pillar h3 {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.pillar p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* ─── DIVISIONS ─────────────────────────────────────────────────────── */
.divisions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.division {
  border: 1px solid var(--border);
  padding: 48px 40px;
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.division:hover {
  border-color: var(--border-bright);
  transform: translateY(-4px);
}
.division.venture {
  background: linear-gradient(135deg, #1a0f0b 0%, var(--bg) 100%);
  border-color: rgba(255, 76, 43, 0.25);
}
.division.venture::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.division-tag {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 28px;
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--border-bright);
  border-radius: 2px;
}
.division.venture .division-tag {
  color: var(--accent);
  border-color: var(--accent);
}
.division h3 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  position: relative;
}
.division p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
  position: relative;
}
.division-list {
  list-style: none;
  position: relative;
}
.division-list li {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}
.division-list li:last-child { border-bottom: 1px solid var(--border); }
.division-list .status {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  padding: 3px 8px;
  border: 1px solid var(--border);
}
.division-list .status.dev { color: var(--accent); border-color: var(--accent); }

/* ─── PROJECTS ──────────────────────────────────────────────────────── */
.projects {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}
.project {
  background: var(--bg);
  padding: 50px 48px;
  display: grid;
  grid-template-columns: 180px 1fr 200px;
  gap: 48px;
  align-items: start;
  transition: background 0.3s;
  position: relative;
}
.project:hover { background: var(--bg-panel); }
.project-id {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-top: 10px;
}
.project-id .num {
  display: block;
  font-family: 'Syne', sans-serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.project-body h3 {
  font-family: 'Syne', sans-serif;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 10px;
}
.project-body .tagline {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
}
.project-body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
}
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  padding-top: 8px;
}
.project-meta .row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border);
  color: var(--text-muted);
}
.project-meta .row:last-child { border: none; }
.project-meta .row .label {
  color: var(--text-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-size: 9px;
}
.project-meta .row .val { color: var(--text); }
.project-meta .val.status-alpha { color: var(--accent); }
.project-meta .val.status-planning { color: #ffb347; }
.project-meta .val.status-concept { color: var(--text-muted); }

/* ─── IMPRESSUM ─────────────────────────────────────────────────────── */
.gruendung-notice {
  margin-bottom: 48px;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.gruendung-notice-icon {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
  padding: 6px 10px;
  border: 1px solid var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 2px;
}
.gruendung-notice-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}
.gruendung-notice-text strong {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 700;
}

.impressum {
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 120px 40px;
  position: relative;
  z-index: 2;
}
.impressum-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.impressum-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.impressum-block h4 {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.impressum-block h5 {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.impressum-block p, .impressum-block address {
  color: var(--text-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 18px;
}
.impressum-block .field {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px;
}
.impressum-block .field:last-child { border: none; }
.impressum-block .field dt {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  align-self: center;
}
.impressum-block .field dd { color: var(--text); }
.impressum-block .field dd.pending {
  color: var(--text-dim);
  font-style: italic;
}
.impressum-block .field a { color: var(--accent); text-decoration: none; }
.impressum-block .field a.plain { color: var(--text); }

.legal-notice {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.7;
  max-width: 900px;
}
.legal-notice strong {
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.legal-notice a { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════
   PRIVACY PAGE (datenschutz.html)
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── DOCUMENT BODY ─────────────────────────────────────────────────── */
.doc {
  max-width: 900px;
  margin: 0 auto;
  padding: 160px 40px 120px;
  line-height: 1.7;
}
.doc-meta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.doc-meta span::before { content: '— '; color: var(--accent); }

.doc h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.doc h1 em { color: var(--text-muted); font-style: italic; font-weight: 400; }

.doc .intro {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 60px;
  max-width: 720px;
}

.doc h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 56px 0 18px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.doc h2 .num {
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: var(--accent);
  font-weight: 400;
}

.doc h3 {
  font-family: 'Syne', sans-serif;
  font-weight: 600;
  font-size: 18px;
  margin: 32px 0 12px;
  color: var(--text);
}

.doc p {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.doc p strong { color: var(--text); font-weight: 500; }

.doc ul { margin: 12px 0 18px 0; padding-left: 20px; }
.doc ul li {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 6px;
  list-style: none;
  position: relative;
  padding-left: 18px;
}
.doc ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.doc a { color: var(--accent); text-decoration: none; }
.doc a:hover { text-decoration: underline; }

.doc code {
  font-family: 'Space Mono', monospace;
  font-size: 0.92em;
  color: var(--text);
  background: var(--bg-panel);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--border);
}

.doc .box {
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  color: var(--text-muted);
}
.doc .box strong {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.doc dl.key-facts {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 10px 20px;
  margin: 18px 0;
  font-size: 14px;
}
.doc dl.key-facts dt {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 4px 0;
}
.doc dl.key-facts dd { color: var(--text); padding: 4px 0; }

/* ═══════════════════════════════════════════════════════════════════════
   FOOTER (shared)
   ═══════════════════════════════════════════════════════════════════════ */

footer {
  padding: 30px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-dim);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
footer .dot { color: var(--accent); }
footer .footer-sep {
  margin: 0 12px;
  color: var(--border-bright);
}
footer .footer-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
footer .footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
footer .footer-links a:hover { color: var(--accent); }

/* ═══════════════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero > * { animation: fadeUp 0.8s ease-out backwards; }
.hero .hero-meta { animation-delay: 0.1s; }
.hero h1 { animation-delay: 0.2s; }
.hero .hero-lede { animation-delay: 0.4s; }
.hero .hero-cta { animation-delay: 0.6s; }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 .accent-dot { animation: pulse 2.4s ease-in-out infinite; }

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 860px) {
  nav { padding: 14px 20px; }
  .nav-links { gap: 14px; }
  .nav-links a.nav-link { display: none; }

  .hero { padding: 120px 20px 80px; }
  .coord-tl { display: none; }

  section { padding: 80px 20px; }

  .pillars { grid-template-columns: 1fr; }
  .divisions { grid-template-columns: 1fr; }

  .project {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 36px 24px;
  }
  .project-id .num { font-size: 36px; }
  .project-body h3 { font-size: 28px; }

  .impressum { padding: 80px 20px; }
  .impressum-grid { grid-template-columns: 1fr; gap: 40px; }
  .impressum-block .field { grid-template-columns: 110px 1fr; }

  .doc { padding: 120px 20px 80px; }
  .doc dl.key-facts { grid-template-columns: 1fr; gap: 2px 0; }
  .doc dl.key-facts dt { padding-top: 10px; }
}

@media (max-width: 640px) {
  footer { flex-direction: column; text-align: center; }
}
