/* Arcfield Studio — „Clean White“ (UI-KONZEPT.md)
   Reines CSS, keine externen Fonts/CDNs, kein Build-Schritt. */

:root {
  /* Architectural Swiss Editorial — Light */
  --paper: #FAFBFC;
  --card: #FFFFFF;
  --surface: #F1F4F8;
  --line: #DDE3EA;
  --line-strong: #C5CFD9;
  --ink: #0E151D;
  --ink-2: #4A5766;
  --accent: #0D7480;
  --accent-dark: #095964;
  --accent-soft: #E5F3F4;
  --header-bg: rgba(250, 251, 252, 0.86);
  --grid-line: rgba(14, 21, 29, 0.04);
  --shadow-sm: 0 1px 2px rgba(14, 21, 29, 0.04);
  --shadow-md: 0 10px 28px rgba(14, 21, 29, 0.07);
  --warn-text: #8A5A00;
  --warn-surface: #FFF8E6;

  /* Statuspillen: Text / Fläche */
  --phase-konzept-text: #4A5866;
  --phase-konzept-surface: #EEF1F4;
  --phase-prototyp-text: #1D5E8A;
  --phase-prototyp-surface: #EAF3FA;
  --phase-alpha-text: #7A4E00;
  --phase-alpha-surface: #FFF4DE;
  --phase-beta-text: #0B6470;
  --phase-beta-surface: #E6F4F4;
  --phase-release-text: #1A6E3D;
  --phase-release-surface: #E6F5EC;

  --max: 1200px;
  --gutter: 24px;
  --mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --paper: #0D1117;
  --card: #131922;
  --surface: #18202C;
  --line: #243040;
  --line-strong: #324256;
  --ink: #EEF2F6;
  --ink-2: #9AA7B8;
  --accent: #38B6C4;
  --accent-dark: #2599A7;
  --accent-soft: rgba(56, 182, 196, 0.14);
  --header-bg: rgba(13, 17, 23, 0.84);
  --grid-line: rgba(238, 242, 246, 0.035);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.4);
  --warn-text: #F0B94A;
  --warn-surface: rgba(240, 185, 74, 0.12);

  --phase-konzept-text: #B4C0CE;
  --phase-konzept-surface: rgba(180, 192, 206, 0.12);
  --phase-prototyp-text: #6EB8EE;
  --phase-prototyp-surface: rgba(110, 184, 238, 0.14);
  --phase-alpha-text: #F0B94A;
  --phase-alpha-surface: rgba(240, 185, 74, 0.14);
  --phase-beta-text: #4DD0DD;
  --phase-beta-surface: rgba(77, 208, 221, 0.14);
  --phase-release-text: #53D38A;
  --phase-release-surface: rgba(83, 211, 138, 0.14);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-dark);
}

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

/* Nur für Screenreader, visuell verborgen */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -120px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--accent-dark);
  color: var(--paper);
  font-weight: 700;
  border-radius: 6px;
}

.skip-link:focus {
  top: 1rem;
  color: var(--paper);
}

/* Raster: 12 Spalten, 1200 px, 24 px Rinnen/Außenabstand */
.wrap {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter);
}

.mono,
.code {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.todo,
.placeholder-note {
  color: var(--warn-text);
  background: var(--warn-surface);
  border: 1px dashed var(--warn-text);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.link-placeholder {
  display: inline-block;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.notice {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--warn-text);
  border-radius: 6px;
  background: var(--warn-surface);
  color: var(--warn-text);
  font-size: 0.8125rem;
  font-family: var(--mono);
}

/* ------------------------------- Navigation ------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--ink);
}

.theme-toggle svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  min-height: 4.25rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  border: 2px solid var(--accent);
  transform: rotate(45deg);
  flex: none;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  min-height: 44px;
  padding-block: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --------------------------------- Hero ---------------------------------- */
.hero {
  position: relative;
  padding: clamp(3.25rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 4.75rem);
  border-bottom: 1px solid var(--line);
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-grid {
  align-items: start;
}

.hero-copy {
  grid-column: span 7;
}

.telemetry {
  grid-column: span 5;
}

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.claim {
  max-width: 34ch;
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
}

.lead {
  max-width: 68ch;
  margin: 0 0 2rem;
  color: var(--ink-2);
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--accent-dark);
  border-radius: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-dark);
  color: var(--paper);
}

.btn-primary:hover {
  background: #084F59;
  border-color: #084F59;
  color: var(--paper);
}

.btn-secondary {
  background: var(--paper);
  color: var(--accent-dark);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.btn-disabled {
  border-style: dashed;
  color: var(--ink-2);
  cursor: default;
}

.btn-disabled:hover {
  background: var(--paper);
  color: var(--ink-2);
}

.btn-disabled .link-placeholder {
  color: var(--ink-2);
}

.btn-full {
  width: 100%;
}

.text-link {
  font-size: 0.9375rem;
  color: var(--accent-dark);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin: 2.5rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.hero-meta span::before {
  content: "▸ ";
  color: var(--accent-dark);
}

/* Telemetrie-Panel (selbst gezeichnet, keine Deko-Grafik) */
.telemetry {
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.telemetry-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  line-height: 1.3;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.telemetry-stand,
.card-stand,
.telemetry-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

.phase-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
}

.phase-seg {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  padding-top: 0.5rem;
  border-top: 4px solid var(--line);
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.3;
  color: var(--ink-2);
}

.phase-seg[data-phase="konzept"] { border-top-color: var(--phase-konzept-text); }
.phase-seg[data-phase="prototyp"] { border-top-color: var(--phase-prototyp-text); }
.phase-seg[data-phase="alpha"] { border-top-color: var(--phase-alpha-text); }
.phase-seg[data-phase="closed-beta"] { border-top-color: var(--phase-beta-text); }
.phase-seg[data-phase="store-release"] { border-top-color: var(--phase-release-text); }

.seg-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: currentColor;
}

.phase-seg[data-phase="konzept"] .seg-dot { background: var(--phase-konzept-text); }
.phase-seg[data-phase="prototyp"] .seg-dot { background: var(--phase-prototyp-text); }
.phase-seg[data-phase="alpha"] .seg-dot { background: var(--phase-alpha-text); }
.phase-seg[data-phase="closed-beta"] .seg-dot { background: var(--phase-beta-text); }
.phase-seg[data-phase="store-release"] .seg-dot { background: var(--phase-release-text); }

.seg-label {
  overflow-wrap: anywhere;
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.fact-list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.fact-list dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.fact-list dd {
  margin: 0;
  color: var(--ink);
  text-align: right;
  overflow-wrap: anywhere;
}

.telemetry-note {
  margin-top: 1rem;
}

/* --------------------------- Status & Projektkarten ------------------------ */
.section {
  padding: clamp(2.75rem, 6vw, 4.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  margin-bottom: 1.75rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section-intro {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-2);
}

.legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.legend-label {
  margin-right: 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* Status-Pille: Punkt + Text Farbe ist nie alleiniges Signal */
.pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  max-width: 100%;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 600;
}

.pill-dot {
  width: 0.5rem;
  height: 0.5rem;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.pill-since {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.pill-konzept { color: var(--phase-konzept-text); background: var(--phase-konzept-surface); }
.pill-prototyp { color: var(--phase-prototyp-text); background: var(--phase-prototyp-surface); }
.pill-alpha { color: var(--phase-alpha-text); background: var(--phase-alpha-surface); }
.pill-closed-beta { color: var(--phase-beta-text); background: var(--phase-beta-surface); }
.pill-store-release { color: var(--phase-release-text); background: var(--phase-release-surface); }
.pill-unbekannt { color: var(--warn-text); background: var(--warn-surface); }

/* Status-Board */
.board {
  border: 1px solid var(--line);
  border-radius: 10px;
}

.status-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.status-table caption {
  padding: 0.85rem 1rem;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.status-table th,
.status-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  border-bottom: 1px solid var(--line);
}

.status-table thead th {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--surface);
}

.status-table tbody th {
  color: var(--ink);
  font-weight: 700;
}

.status-table td {
  color: var(--ink-2);
}

.status-table tbody tr:last-child th,
.status-table tbody tr:last-child td {
  border-bottom: 0;
}

.commit-line {
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

/* Projektkarten: Desktop 3+2, Tablet 2, Mobil 1 */
.project-section {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  scroll-margin-top: 6rem;
}

.subhead {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
}

.project-intro {
  max-width: 68ch;
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.project-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.project-card:nth-child(n + 4) {
  grid-column: span 6;
}

.card-index {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--accent-dark);
}

.project-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
}

.card-desc {
  margin: 0;
  color: var(--ink-2);
}

.card-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.card-action {
  margin: auto 0 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}

/* ----------------------------- Beta-Kampagne ------------------------------ */
.beta-section {
  border-bottom: 0;
}

.beta-copy {
  grid-column: span 5;
}

.beta-form-wrap {
  grid-column: span 7;
}

.steps {
  margin: 1.5rem 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps li {
  display: flex;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.steps li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps strong {
  color: var(--ink);
}

.step-num {
  flex: none;
  color: var(--accent-dark);
  font-size: 0.8125rem;
  padding-top: 0.15rem;
}

.beta-facts {
  margin-bottom: 1.5rem;
}

.expectation {
  max-width: 68ch;
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.expectation strong {
  color: var(--ink);
}

.beta-form-wrap {
  padding: 1.5rem;
  background: var(--accent-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.beta-form h3 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
}

.field {
  margin-bottom: 1.25rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--ink);
}

.req {
  color: var(--warn-text);
}

.field-optional {
  font-weight: 400;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.field input[type="email"],
.field select {
  width: 100%;
  min-height: 44px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink-2);
  border-radius: 6px;
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"] {
  border-color: var(--warn-text);
  border-width: 2px;
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.checkbox-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.4rem 0.7rem;
  align-items: start;
}

.checkbox-field input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  min-height: 1.15rem;
  margin: 0.2rem 0 0;
  accent-color: var(--accent-dark);
}

.checkbox-field label {
  margin: 0;
  font-weight: 400;
  line-height: 1.5;
}

/* Auf --accent-soft nur --accent-dark (6,06:1), nicht --accent (4,38:1). */
.checkbox-field label a {
  color: var(--accent-dark);
  font-weight: 600;
}

.checkbox-field .field-hint {
  grid-column: 2;
}

.form-status {
  min-height: 1.25rem;
  margin: 1rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}

.form-status[data-state="error"] {
  color: var(--warn-text);
  background: var(--warn-surface);
  border: 1px solid var(--warn-text);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

.form-status[data-state="success"] {
  color: var(--accent-dark);
  background: var(--paper);
  border: 1px solid var(--accent-dark);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
}

/* ------------------------------- Footer ---------------------------------- */
.site-footer {
  padding: 2.5rem 0 3rem;
  background: var(--surface);
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem var(--gutter);
}

.footer-col p {
  margin: 0 0 0.5rem;
}

.footer-title {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.footer-bottom p {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* --------------------- Rechtsseiten (Datenschutz/Impressum) ---------------- */
.legal-header {
  padding: clamp(2rem, 5vw, 3.25rem) 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.legal-main {
  padding: clamp(2rem, 5vw, 3rem) 0 4rem;
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.lang-label {
  margin-right: 0.35rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.lang-switch button {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.05em;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
}

.lang-switch button:hover {
  border-color: var(--accent-dark);
  color: var(--accent-dark);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: var(--paper);
  font-weight: 700;
}

.noscript-hint {
  margin: 0 0 1.5rem;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8125rem;
}

.legal-doc {
  max-width: 78ch;
}

.legal-doc h2 {
  margin: 2.25rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 1.5rem;
  line-height: 1.25;
  color: var(--ink);
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc h3 {
  margin: 1.75rem 0 0.5rem;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--accent-dark);
}

.legal-doc p,
.legal-doc li {
  color: var(--ink-2);
}

.legal-doc ul,
.legal-doc ol {
  padding-left: 1.3rem;
  margin: 0.7rem 0 1rem;
}

.legal-doc li {
  margin-bottom: 0.4rem;
}

.legal-doc strong {
  color: var(--ink);
}

.legal-doc address {
  font-style: normal;
  color: var(--ink-2);
  line-height: 1.7;
}

.back-link {
  display: inline-block;
  margin-top: 2.5rem;
  font-size: 0.9375rem;
}

/* ------------------------------- Hub-Bereiche & Progress ------------------------------- */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gutter);
}

.hub-card,
.project-card,
.feature-card {
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.hub-card:hover,
.project-card:hover,
.feature-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.35rem, 3vw, 2rem);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}

.media-frame {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
}

.media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.media-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
  background: var(--surface);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.module-item {
  padding: 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.module-code {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.module-item h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--ink);
}

.module-item p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-2);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1023px) {
  .spotlight {
    grid-template-columns: 1fr;
  }
  .gallery-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .gallery-grid,
  .module-grid {
    grid-template-columns: 1fr;
  }
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hub-card h3 {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
}

.hub-card p {
  margin: 0;
  color: var(--ink-2);
}

.hub-card-foot {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
}

.journal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.journal-item {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.journal-date {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink-2);
}

.journal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
}

.journal-meta {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.progress-block {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1.25rem 0;
}

.progress-row-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.8125rem;
  margin-bottom: 0.35rem;
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--line);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent-dark);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
}

.feature-card {
  padding: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.phase-seg.is-active {
  border-top-color: var(--accent-dark);
  color: var(--accent-dark);
  font-weight: 700;
}

.phase-seg.is-active .seg-dot {
  background: var(--accent-dark);
}

/* ------------------------------- Responsive ------------------------------- */
@media (max-width: 1023px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy,
  .telemetry,
  .beta-copy,
  .beta-form-wrap {
    grid-column: 1 / -1;
  }

  .project-card,
  .project-card:nth-child(n + 4) {
    grid-column: span 6;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 7.5rem;
  }

  .wrap {
    width: min(100% - 32px, var(--max));
  }

  .grid-12 {
    gap: 16px;
  }

  .nav {
    justify-content: flex-start;
  }

  .nav-links {
    gap: 0 1rem;
  }

  .hero {
    padding-top: 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 10vw, 3.25rem);
  }

  .cta-group .btn,
  .cta-group .text-link {
    width: 100%;
  }

  .text-link {
    display: inline-block;
    min-height: 44px;
    padding-block: 0.7rem;
  }

  .telemetry,
  .beta-form-wrap {
    padding: 1.15rem;
  }

  .project-card,
  .project-card:nth-child(n + 4) {
    grid-column: 1 / -1;
  }

  .section h2 {
    font-size: 1.75rem;
  }

  .hub-grid,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .journal-item {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .fact-list > div {
    flex-direction: column;
  }

  .fact-list dd {
    text-align: left;
  }
}

@media (max-width: 480px) {
  .phase-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 0.75rem;
  }

  .pill,
  .pill-since,
  .hero-meta {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media print {
  .site-header,
  .lang-switch,
  .skip-link,
  .cta-group,
  .beta-form-wrap,
  .site-footer {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .project-card,
  .telemetry,
  .board {
    break-inside: avoid;
  }
}
