/* =====================================================================
   Fix Hub — Landing Page
   Design tokens & component styles
   Three themes: Asphalt (dark, default) · Werkbank (sand) · Tannengrün (forest)
   ===================================================================== */

/* ---------------------------------------------------------------------
   Self-hosted fonts — SIL Open Font License 1.1 (see fonts/OFL.txt).
   Served from our own origin, so no visitor data is sent to a third-party
   font CDN (avoids the Google-Fonts/GDPR issue).
   --------------------------------------------------------------------- */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Source Serif 4';
  src: url('fonts/SourceSerif4-Italic.woff2') format('woff2');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-2: #131316;
  --bg-3: #1c1c20;
  --line: #26262b;
  --line-2: #36363d;
  --fg: #f5f5f3;
  --fg-2: #b4b4ad;
  --fg-3: #76767a;
  --accent: #ff5a1f;
  --accent-fg: #0b0b0c;
  --good: #6dd49a;
}
[data-theme="sand"] {
  --bg: #f4f1ec;
  --bg-2: #ebe6dd;
  --bg-3: #ddd6c8;
  --line: #cfc7b6;
  --line-2: #a89e89;
  --fg: #1a1714;
  --fg-2: #4e4940;
  --fg-3: #807a6e;
  --accent: #c8421a;
  --accent-fg: #f4f1ec;
  --good: #2f7a52;
}
[data-theme="forest"] {
  --bg: #0d1f17;
  --bg-2: #142a20;
  --bg-3: #1c3a2c;
  --line: #2a4a39;
  --line-2: #3d6450;
  --fg: #ecf5ee;
  --fg-2: #a6c4b1;
  --fg-3: #6b8a76;
  --accent: #f5c84a;
  --accent-fg: #0d1f17;
  --good: #9be3b8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.serif { font-family: 'Source Serif 4', serif; font-weight: 400; }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* nav */
nav.top {
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
}
nav.top .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 18px; letter-spacing: -0.01em;
}
.logo-mark {
  width: 28px; height: 28px;
  display: block;
  border-radius: 6px;
  flex: none;
}
nav.top ul {
  display: flex; gap: 28px; list-style: none; padding: 0; margin: 0;
  font-size: 14px; color: var(--fg-2);
}
nav.top ul a { color: inherit; text-decoration: none; }
nav.top ul a:hover { color: var(--fg); }
nav.top .cta-row { display: flex; align-items: center; gap: 16px; }
nav.top .lang { font-size: 13px; color: var(--fg-3); font-family: 'JetBrains Mono', monospace; }

/* theme toggle */
.theme-toggle {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  background: transparent;
  color: var(--fg-2);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.theme-toggle:hover { background: var(--bg-2); border-color: var(--fg-3); color: var(--fg); }
.theme-toggle svg { width: 16px; height: 16px; display: block; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 22px;
  border-radius: 4px;
  font-family: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent); color: var(--accent-fg);
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  background: transparent; color: var(--fg);
  border-color: var(--line-2);
}
.btn-ghost:hover { background: var(--bg-2); border-color: var(--fg-3); }
.btn-sm { padding: 9px 14px; font-size: 13px; }

/* hero */
.hero {
  border-bottom: 1px solid var(--line);
  padding: 48px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-3);
  margin-bottom: 28px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 25%, transparent);
}
.hero h1 {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: clamp(40px, 6.5vw, 84px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 0 28px;
  max-width: 14ch;
  overflow-wrap: break-word;
}
/* Keep the non-breaking "Werkstatt und Kunde." run from overflowing
   narrow viewports. */
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(30px, 8.4vw, 40px); }
}
.hero h1 em {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.hero-sub {
  font-size: 19px;
  color: var(--fg-2);
  max-width: 56ch;
  margin: 0 0 40px;
  line-height: 1.5;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: end;
  padding-bottom: 56px;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* split paths */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) { .paths { grid-template-columns: 1fr; } }
.path {
  padding: 32px;
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 16px;
  transition: background 0.2s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.path:last-child { border-right: none; }
@media (max-width: 720px) {
  .path { border-right: none; border-bottom: 1px solid var(--line); }
  .path:last-child { border-bottom: none; }
}
.path:hover { background: var(--bg-2); }
.path-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex; align-items: center; gap: 8px;
}
.path-tag::before {
  content: ""; display: inline-block;
  width: 8px; height: 8px; border-radius: 1px;
  background: var(--accent);
}
.path h3 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.path p {
  color: var(--fg-2);
  font-size: 15px;
  margin: 0;
  flex: 1;
}
.path-cta {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px;
  color: var(--fg);
  font-weight: 600;
  text-decoration: none;
  margin-top: 4px;
}
.path-cta .arrow {
  transition: transform 0.2s ease;
}
.path:hover .arrow { transform: translateX(4px); }

/* product visual placeholder */
.product-frame {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  display: flex; flex-direction: column;
}
.product-frame .frame-label {
  position: absolute;
  top: 12px; left: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* phone mock */
.phone-mock {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  width: 240px;
  height: 480px;
  margin: auto;
  padding: 18px 14px;
  display: flex; flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.phone-mock::before {
  content: ""; position: absolute;
  top: 8px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 4px; border-radius: 2px;
  background: var(--line);
}
.phone-header {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px; color: var(--fg-3);
}
.phone-status {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
}
.ph-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 6px;
}
.ph-label {
  font-size: 10px; color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.ph-value {
  font-size: 11px; color: var(--fg); font-weight: 600;
}
.ph-title {
  font-size: 14px; color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 6px 0 12px;
}
.progress {
  display: flex; gap: 4px; margin-bottom: 12px;
}
.progress-step {
  flex: 1; height: 4px; border-radius: 2px;
  background: var(--line);
}
.progress-step.done { background: var(--accent); }
.progress-step.active {
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.stages {
  display: flex; justify-content: space-between;
  font-size: 8px; color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}
.stages span.active-s { color: var(--accent); }
.chat-bubble {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 11px;
  max-width: 80%;
  line-height: 1.35;
}
.chat-bubble.them {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
}
.chat-bubble.you {
  background: var(--accent);
  color: var(--accent-fg);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
  font-weight: 500;
}
.chat-time {
  font-size: 8px; color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
  margin-top: 2px;
}

/* sections */
section {
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 56px;
}
.section-head .left { max-width: 60ch; }
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag .num {
  color: var(--accent);
}
h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
  max-width: 18ch;
}
h2 em {
  font-family: 'Source Serif 4', serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}
.section-lede {
  font-size: 17px;
  color: var(--fg-2);
  max-width: 44ch;
  margin: 0;
  line-height: 1.5;
}

/* problem */
.problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 880px) { .problems { grid-template-columns: 1fr; } }
.problem {
  background: var(--bg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.problem-num {
  font-family: 'Source Serif 4', serif;
  font-size: 48px;
  line-height: 1;
  color: var(--fg-3);
  font-style: italic;
}
.problem h4 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--fg);
}
.problem p {
  font-size: 14px;
  color: var(--fg-2);
  margin: 0;
  line-height: 1.55;
}
.problem .quote {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--fg-3);
  font-style: italic;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
@media (max-width: 880px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  background: var(--bg-2);
  position: relative;
}
.step-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 12px;
}
.step h4 {
  font-size: 18px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.step p {
  font-size: 14px; color: var(--fg-2); margin: 0; line-height: 1.5;
}
.step-illu {
  height: 80px;
  margin-bottom: 16px;
  border: 1px dashed var(--line-2);
  border-radius: 4px;
  background:
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 8px,
      var(--line) 8px,
      var(--line) 9px
    );
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* features */
.features {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 960px) { .features { grid-template-columns: 1fr; } }
.feature-list {
  display: flex; flex-direction: column;
}
.feature {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  cursor: pointer;
  transition: padding 0.2s ease;
}
.feature:last-child { border-bottom: 1px solid var(--line); }
.feature:hover { padding-left: 8px; }
.feature-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-3);
  padding-top: 4px;
}
.feature h4 {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.feature p {
  font-size: 15px; color: var(--fg-2); margin: 0;
  line-height: 1.5;
}

/* dashboard mock */
.dashboard-mock {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  font-size: 11px;
  position: sticky;
  top: 88px;
}
.dash-bar {
  background: var(--bg-3);
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--fg-3);
}
.dash-bar .traf { display: flex; gap: 4px; margin-right: 8px; }
.dash-bar .traf span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.dash-body {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 360px;
}
.dash-side {
  background: var(--bg-3);
  border-right: 1px solid var(--line);
  padding: 14px 8px;
  display: flex; flex-direction: column; gap: 4px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
}
.dash-side .item {
  padding: 6px 8px; border-radius: 3px;
  color: var(--fg-3);
}
.dash-side .item.active {
  background: var(--bg);
  color: var(--fg);
}
.dash-main { padding: 16px; }
.dash-h {
  font-size: 13px; font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}
.dash-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  margin-bottom: 16px;
}
.dash-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px;
}
.dash-card .lbl { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--fg-3); text-transform: uppercase; letter-spacing: 0.06em; }
.dash-card .val { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.dash-card .delta { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--good); margin-top: 2px; }
.job-list {
  display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden;
}
.job-row {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 10px 12px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 12px;
}
.job-row:last-child { border-bottom: none; }
.job-cust { font-size: 11px; font-weight: 600; }
.job-meta { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: var(--fg-3); margin-top: 2px; }
.job-status {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 2px;
}
.job-status.work { background: color-mix(in oklab, var(--accent) 18%, transparent); color: var(--accent); }
.job-status.appr { background: color-mix(in oklab, var(--good) 18%, transparent); color: var(--good); }
.job-status.done { background: var(--bg-2); color: var(--fg-3); border: 1px solid var(--line); }

/* founding */
.founding {
  background: var(--bg);
}
.founding-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 880px) { .founding-grid { grid-template-columns: 1fr; } }
.founding-card {
  border: 1px solid var(--line);
  background: var(--bg-2);
  border-radius: 6px;
  overflow: hidden;
}
.founding-card .header {
  background: var(--accent);
  color: var(--accent-fg);
  padding: 18px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center;
}
.founding-card .body {
  padding: 32px 24px;
}
.founding-card h3 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.founding-card .sub {
  color: var(--fg-2); font-size: 15px;
  margin: 0 0 24px;
}
.founding-list {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.founding-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  font-size: 14px;
  color: var(--fg);
}
.founding-list li::before {
  content: "→";
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
}
/* big stats / quote-style */
.quote-block {
  padding: 0;
}
.quote-block p {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.2;
  margin: 0 0 24px;
  color: var(--fg);
  font-style: italic;
  letter-spacing: -0.01em;
}
.quote-block .who {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* final cta */
.final {
  padding: 120px 0;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%),
    var(--bg);
}
.final h2 {
  margin: 0 auto 24px;
  max-width: 18ch;
  text-align: center;
}
.final p {
  color: var(--fg-2);
  font-size: 18px;
  max-width: 50ch;
  margin: 0 auto 40px;
}
.final .cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.final small {
  display: block;
  margin-top: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 32px;
  background: var(--bg-2);
}
footer .row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
@media (max-width: 720px) { footer .row { grid-template-columns: 1fr 1fr; } }
footer h5 {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  font-weight: 500;
}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
footer ul a {
  color: var(--fg-2); font-size: 14px; text-decoration: none;
}
footer ul a:hover { color: var(--fg); }
footer .legal {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--fg-3);
}

/* schematic placeholder */
.placeholder-stripe {
  background:
    repeating-linear-gradient(
      135deg,
      var(--bg-3),
      var(--bg-3) 10px,
      var(--bg-2) 10px,
      var(--bg-2) 20px
    );
  border: 1px dashed var(--line-2);
  display: grid; place-items: center;
  color: var(--fg-3);
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 4px;
}

/* =====================================================================
   Production additions (not in the original static mockup)
   ===================================================================== */

/* Reveal-on-scroll — progressive enhancement.
   Elements are fully visible unless JS is active (html.js), so the page
   is never blank for no-JS users or crawlers. */
.reveal { transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.in { opacity: 1; transform: none; }

/* Accessible focus ring */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* The two login buttons take the most room — drop them first on narrower
   viewports (login is still reachable via the hero/founding/final CTAs). */
@media (max-width: 1024px) {
  nav.top .cta-row .nav-login { display: none; }
}
/* Collapse the section nav + language tag on small screens */
@media (max-width: 820px) {
  nav.top ul { display: none; }
  nav.top .cta-row .lang { display: none; }
}

/* Allow flex/grid children to shrink below their content width so the
   page never scrolls horizontally on narrow viewports. */
.feature-list,
.dashboard-mock,
.dash-main { min-width: 0; }

/* Stack the section header (heading + lede) on small screens */
@media (max-width: 720px) {
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
  }
}

/* Give the decorative dashboard mock more breathing room on small screens */
@media (max-width: 520px) {
  .dash-body { grid-template-columns: 80px 1fr; }
  .dash-cards { gap: 6px; }
  .dash-main { padding: 12px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   Legal pages (Impressum / Datenschutz)
   ===================================================================== */
.legal-nav {
  border-bottom: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
}
.legal-nav .row {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.legal-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px 112px;
}
.legal-back {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--fg-3);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 40px;
}
.legal-back:hover { color: var(--fg); }

/* header */
.legal-head { margin-bottom: 8px; }
.legal-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-3);
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 18px;
}
.legal-eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 1px; background: var(--accent);
}
.legal-main h1 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.03;
  margin: 0 0 16px;
  max-width: none;
  overflow-wrap: break-word;
  hyphens: auto;
}
/* Long German compounds / URLs must never force horizontal scroll */
.legal-main p,
.legal-main li,
.legal-card { overflow-wrap: break-word; }
.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--fg-3);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* sections */
.legal-main h2 {
  font-size: 19px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
  max-width: none;
  margin: 44px 0 14px;
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.legal-main h2::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px; border-radius: 1px;
  background: var(--accent);
  margin-right: 12px;
  position: relative; top: -3px;
}
.legal-main p {
  color: var(--fg-2);
  margin: 0 0 14px;
  line-height: 1.7;
  max-width: 64ch;
}
.legal-main ul {
  color: var(--fg-2);
  margin: 0 0 14px;
  padding-left: 22px;
  line-height: 1.7;
  max-width: 64ch;
}
.legal-main li { margin-bottom: 7px; }
.legal-main li::marker { color: var(--fg-3); }
.legal-main strong { color: var(--fg); font-weight: 600; }
.legal-main a { color: var(--accent); text-decoration: none; }
.legal-main a:hover { text-decoration: underline; }

/* highlighted info block (contact, address, authority) */
.legal-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 0 0 14px;
  color: var(--fg);
  line-height: 1.7;
  max-width: 64ch;
}

.legal-foot-links { display: flex; gap: 16px; flex-wrap: wrap; }
.legal-foot-links a { color: inherit; text-decoration: none; }
.legal-foot-links a:hover { color: var(--fg); }
