@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter.woff2") format("woff2");
}

@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-mono.woff2") format("woff2");
}

:root {
  --bg: #0b0b0d;
  --surface: #141418;
  --text: #f4f5f7;
  --text-2: #a2a6ae;
  --text-3: #7d818a;
  --accent: #4f86ff;
  --accent-soft: rgba(79, 134, 255, 0.14);
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);
}

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}

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

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

.shell {
  width: 100%;
  max-width: 46rem;
  margin-inline: auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem) 5rem;
}

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem 0;
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: var(--text);
  font-weight: 500;
}
.brand:hover {
  text-decoration: none;
  opacity: 0.85;
}

.brand-logo {
  display: block;
  height: 1.5rem;
  width: auto;
}

.back {
  font-size: 0.9rem;
  color: var(--text-2);
}
.back:hover {
  color: var(--text);
  text-decoration: none;
}

/* --- Language switch -------------------------------------------------------
   `data-locale` is written onto <html> by an inline script in <head>, so the
   correct language is painted on the very first frame — no flicker, and a
   sensible German-only fallback when JavaScript is unavailable.
   Every [data-lang-block] element is a block-level box or a flex item. */

[data-lang-block="en"] {
  display: none;
}

html[data-locale="en"] [data-lang-block="de"] {
  display: none;
}

html[data-locale="en"] [data-lang-block="en"] {
  display: block;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  height: 2.25rem;
  padding: 2px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
}

.lang-switch button {
  height: 100%;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.lang-switch button:hover {
  color: var(--text-2);
}

html[data-locale="de"] [data-lang-btn="de"],
html[data-locale="en"] [data-lang-btn="en"] {
  background: var(--accent-soft);
  color: var(--accent);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}
.eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 1px;
  background: var(--border-2);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.lead {
  margin: 1rem 0 0;
  color: var(--text-2);
  font-size: 1.05rem;
}

section {
  padding-top: 2.25rem;
  margin-top: 2.25rem;
  border-top: 1px solid var(--border);
}

section:first-of-type {
  margin-top: 2.5rem;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text-2);
  max-width: 62ch;
}

p + p {
  margin-top: 0.85rem;
}

ul + p {
  margin-top: 0.85rem;
}

ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-2);
}
li + li {
  margin-top: 0.4rem;
}

strong {
  color: var(--text);
  font-weight: 600;
}

.todo {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border: 1px dashed rgba(255, 176, 79, 0.5);
  border-radius: 5px;
  background: rgba(255, 176, 79, 0.09);
  color: #ffb04f;
  font-family: "Geist Mono", monospace;
  font-size: 0.8rem;
  line-height: 1.6;
}

.note {
  margin-top: 2.5rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 0.9rem;
}

.bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  margin-top: 4rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-3);
  font-family: "Geist Mono", monospace;
  font-size: 0.75rem;
}

.bottom nav {
  display: flex;
  gap: 1.5rem;
}

.bottom a {
  color: var(--text-3);
}
.bottom a:hover {
  color: var(--text);
}
.bottom a[aria-current="page"] {
  color: var(--text);
}

@media print {
  * {
    background: white !important;
    color: black !important;
    border-color: #ccc !important;
  }
  .top,
  .bottom {
    display: none !important;
  }
}
