:root {
  --bg-obsidian: #04070b;
  --bg-deep: #060a0f;
  --panel: rgba(9, 15, 24, 0.86);
  --drawer-bg: rgba(7, 11, 18, 0.96);
  --hairline: rgba(156, 178, 196, 0.16);
  --hairline-strong: rgba(156, 178, 196, 0.28);
  --accent: rgb(164, 126, 242);
  --accent-solid: rgb(126, 82, 214);
  --accent-soft: rgba(126, 82, 214, 0.16);
  --accent-border: rgba(154, 114, 238, 0.62);
  --ember: #e84b34;
  --teal: #24d9b5;
  --bright: #eef4f8;
  --silver: #a8b9c8;
  --muted: rgba(147, 167, 184, 0.62);
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
}

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

html, body {
  min-height: 100%;
  background: radial-gradient(ellipse at 50% 0%, #0d1623 0%, #060a0f 55%, #04070b 100%);
  color: var(--bright);
  font-family: var(--sans);
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
}

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

/* Identical Top-Left Brand + Burger + EN/DE Header Across All Pages */
.page-top {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 32px 18px;
  background: linear-gradient(180deg, rgba(4, 7, 11, 0.92) 0%, rgba(4, 7, 11, 0.72) 72%, rgba(4, 7, 11, 0) 100%);
  pointer-events: none;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 14px;
  pointer-events: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--mono);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--bright);
}
.brand-home {
  color: var(--bright);
  text-decoration: none;
}
.brand-home:hover {
  text-decoration: none;
  opacity: 0.9;
}
.menu-btn {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 26px;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.menu-btn:hover { background: rgba(126, 82, 214, 0.14); }
.menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transition: transform 0.22s ease, opacity 0.2s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-btn {
  background: rgba(9, 15, 24, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 5px 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
}
.lang-btn:hover { border-color: var(--hairline-strong); color: var(--bright); text-decoration: none; }
.lang-btn .on { color: var(--bright); font-weight: 600; }

/* Shared Left Slide-Over Navigation Drawer (Exact Match to Homepage) */
.nav-backdrop {
  position: fixed; inset: 0; z-index: 24;
  background: rgba(3, 6, 10, 0.62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none; transition: opacity 0.24s ease;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }
.nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 25;
  width: min(340px, 86vw);
  background: var(--drawer-bg);
  border-right: 1px solid var(--hairline-strong);
  padding: 26px 24px 22px;
  display: flex; flex-direction: column; gap: 22px;
  overflow-y: auto;
  box-shadow: 24px 0 72px rgba(0, 0, 0, 0.78);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-drawer.open { transform: translateX(0); }
.nav-head {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--hairline);
}
.nav-brand { font-family: var(--mono); font-size: 19px; font-weight: 600; letter-spacing: 0.08em; color: var(--bright); }
.drawer-close {
  background: none; border: none; color: var(--muted);
  font-family: var(--font-sans, var(--sans)); font-size: 20px; line-height: 1;
  width: 34px; height: 34px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: color 0.18s ease, background 0.18s ease;
}
.drawer-close:hover { color: var(--bright); background: rgba(255, 255, 255, 0.07); }

.nav-sections { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-link {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--bright);
  font-family: var(--sans); font-size: 15px; font-weight: 400;
  text-decoration: none; text-align: left; cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.nav-link:hover, .nav-link.is-current {
  background: rgba(126, 82, 214, 0.14);
  border-color: rgba(154, 114, 238, 0.42);
  color: var(--bright);
  text-decoration: none;
}
.nav-link.subsite { color: #b7c8d8; }
.nav-link.subsite:hover, .nav-link.subsite.is-current { color: var(--bright); }
.nav-chev {
  font-family: var(--mono); font-size: 11px; color: var(--muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.nav-group-hover { display: flex; flex-direction: column; }
.nav-submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 14px;
  display: flex; flex-direction: column; gap: 2px;
  border-left: 1px solid rgba(154, 114, 238, 0.34);
  margin-left: 12px;
  transition: max-height 0.26s ease, opacity 0.2s ease, margin 0.2s ease;
}
.nav-group-hover:hover .nav-submenu,
.nav-group-hover:focus-within .nav-submenu,
.nav-group-hover.expanded .nav-submenu {
  max-height: 280px;
  opacity: 1;
  margin-top: 4px;
  margin-bottom: 6px;
}
.nav-group-hover:hover .nav-chev,
.nav-group-hover:focus-within .nav-chev,
.nav-group-hover.expanded .nav-chev {
  transform: rotate(180deg);
  color: var(--accent);
}
.nav-sublink {
  width: 100%;
  display: block;
  padding: 8px 11px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #c8d7e4;
  font-family: var(--sans); font-size: 13.5px; font-weight: 300;
  text-align: left; cursor: pointer; text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav-sublink:hover {
  background: rgba(126, 82, 214, 0.16);
  color: var(--bright);
  text-decoration: none;
}
.nav-divider {
  height: 1px;
  background: var(--hairline);
  margin: 10px 4px;
}
.nav-foot {
  padding-top: 14px; border-top: 1px solid var(--hairline);
  font-family: var(--mono); font-size: 10px; line-height: 1.5; color: var(--muted);
}

/* Page Content Layout */
.page-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 24px 68px;
}

.kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.kicker.news-kicker { color: var(--ember); }

h1 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 16px;
  color: var(--bright);
}

.lead {
  font-size: 17px;
  font-weight: 300;
  color: var(--silver);
  margin-bottom: 32px;
  max-width: 66ch;
}

/* Subtle Legal Switcher Pill (only on Imprint / Privacy / Cookies) */
.legal-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  padding: 4px;
  background: rgba(9, 15, 24, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 6px;
}
.legal-tabs a {
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  color: var(--silver);
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease;
}
.legal-tabs a:hover { color: var(--bright); text-decoration: none; }
.legal-tabs a.active {
  background: var(--accent-soft);
  color: var(--bright);
}

.doc-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.doc-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-section h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
}
.doc-section p,
.doc-section li {
  color: var(--silver);
  font-size: 15.5px;
  line-height: 1.65;
}
.doc-section strong { color: var(--bright); font-weight: 500; }

.doc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 0;
}
.doc-list li {
  position: relative;
  padding-left: 18px;
}
.doc-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 13px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.mini-card {
  background: rgba(6, 11, 18, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mini-card h3 { font-size: 16px; font-weight: 500; color: var(--bright); }
.mini-card p { font-size: 14.5px; color: var(--silver); line-height: 1.55; }

.pipeline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px;
  background: rgba(5, 9, 15, 0.85);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--bright);
}
.pipeline .gate { color: var(--accent); font-weight: 600; }

/* News Archive & Articles */
.post-list { display: flex; flex-direction: column; gap: 18px; }
.post-row {
  display: block;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 24px 26px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.post-row:hover { border-color: var(--accent-border); transform: translateY(-1px); text-decoration: none; }
.post-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.10em; color: var(--muted); margin-bottom: 8px; }
.post-row h2 { font-size: 22px; font-weight: 500; color: var(--bright); margin-bottom: 8px; letter-spacing: -0.015em; }
.post-row p { font-size: 15.5px; color: var(--silver); }

.story { padding: 32px 0; border-top: 1px solid var(--hairline); }
.story-meta {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.10em;
  color: var(--muted); margin-bottom: 10px; flex-wrap: wrap;
}
.story-num { color: var(--ember); font-weight: 600; }
.story h2 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.25; color: var(--bright); margin-bottom: 14px; }
.story p { font-size: 16px; color: var(--silver); margin-bottom: 14px; max-width: 68ch; }
.sources { margin-top: 16px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.05em; }

.back-row {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  flex-wrap: wrap;
  gap: 12px;
}

.page-foot {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 24px 40px;
  border-top: 1px solid var(--hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.page-foot a { color: var(--silver); }
.page-foot a:hover { color: var(--bright); }
.foot-links { display: flex; gap: 14px; flex-wrap: wrap; }

.hidden { display: none !important; }

@media (max-width: 700px) {
  .page-top { padding: 16px 16px 12px; }
  .brand { font-size: 18px; gap: 9px; }
  .menu-btn { width: 25px; height: 23px; padding: 4px 3px; }
  .page-main { padding: 18px 18px 52px; }
  .doc-card { padding: 20px 18px; }
  .grid-2 { grid-template-columns: 1fr; }
}
