/* Schrift: Geist, lokal ausgeliefert, keine Anfragen an Dritte (SIL OFL, siehe fonts/OFL.txt) */
@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Typografie-Tokens */
:root {
  --font-display: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Geist", "Helvetica Neue", Arial, sans-serif;
  --font-label: var(--font-body);
  --display-weight: 640;
  --display-tracking: -0.045em;
  --em-style: normal;
}

:root,
:root[data-theme="dark"] {
  --bg: #0f0f12;
  --panel: #17161c;
  --text: #f0eff3;
  --muted: #a3a1ab;
  --soft: #75737d;
  --line: rgba(240, 239, 243, 0.10);
  --line-strong: rgba(240, 239, 243, 0.20);
  --accent: #8f6cf2;
  --accent-soft: rgba(110, 72, 230, 0.12);
  --selection: rgba(143, 108, 242, 0.35);
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f5f4f7;
  --panel: #ebe9f0;
  --text: #121116;
  --muted: #56535f;
  --soft: #7d7a86;
  --line: rgba(18, 17, 22, 0.12);
  --line-strong: rgba(18, 17, 22, 0.24);
  --accent: #5532c4;
  --accent-soft: rgba(85, 50, 196, 0.07);
  --selection: rgba(85, 50, 196, 0.2);
  color-scheme: light;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 200ms ease, color 200ms ease;
}

::selection { background: var(--selection); }

.wrap {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 720px) {
  .wrap { padding: 0 40px; }
}

a { color: inherit; }

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

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--panel); padding: 6px 10px; z-index: 10; }

.serif {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
}

/* Kopfzeile */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.mark {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 1.05rem;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 120ms ease;
}

.nav a:hover { color: var(--text); }

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.theme-toggle:hover { color: var(--text); }
.theme-toggle svg { width: 16px; height: 16px; }
.icon-sun { display: none; }
:root[data-theme="light"] .icon-sun { display: block; }
:root[data-theme="light"] .icon-moon { display: none; }

@media (max-width: 640px) {
  .nav a { display: none; }
}

/* Hero */
.hero { padding: 72px 0 56px; }

.eyebrow {
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 22px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(2.6rem, 8vw, 4.9rem);
  line-height: 1;
  margin: 0 0 28px;
  max-width: 14ch;
}

.hero h1 em {
  font-style: var(--em-style);
  color: var(--accent);
}

.hero .lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 36px;
}

.hero .lead strong { color: var(--text); font-weight: 550; }

.status {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  background: var(--accent-soft);
  font-size: 0.95rem;
  max-width: 640px;
}

.status b {
  font-weight: 650;
  color: var(--accent);
}

.status span { color: var(--muted); }

@media (max-width: 560px) {
  .status { grid-template-columns: 1fr; gap: 4px; }
}

/* Abschnitte */
section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  padding: 56px 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 760px) {
  section { grid-template-columns: 1fr; gap: 20px; padding: 44px 0; }
}

.section-head .num {
  display: block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  color: var(--soft);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}

.section-head h2 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: 1.6rem;
  line-height: 1.1;
  margin: 0;
}

/* Kernaussagen */
.claims {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 28px;
}

.claims li {
  padding-left: 18px;
  border-left: 1px solid var(--accent);
}

.claims .n {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-style: italic;
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1.2;
}

.claims h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin: 0 0 4px;
}

.claims p {
  margin: 0;
  color: var(--muted);
}

/* Tabellen (Projekte, Werdegang) */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
}

.table th {
  font-family: var(--font-label);
  text-align: left;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--soft);
  padding: 0 16px 12px 0;
  border-bottom: 1px solid var(--line-strong);
}

.table td {
  vertical-align: top;
  padding: 18px 16px 18px 0;
  border-bottom: 1px solid var(--line);
}

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

.table .t {
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.table .d {
  color: var(--muted);
  display: block;
}

.table .tech {
  font-family: var(--font-label);
  color: var(--soft);
  font-size: 0.85rem;
  display: block;
  margin-top: 8px;
}

.when {
  font-family: var(--font-label);
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  width: 120px;
}

.badge {
  font-family: var(--font-label);
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--muted);
  white-space: nowrap;
}

.badge.live {
  color: var(--accent);
  border-color: var(--accent);
}

/* Projekte als Tabelle auf dem Handy in Blöcke umbrechen */
@media (max-width: 640px) {
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { padding: 18px 0; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { padding: 0; border: 0; }
  .table td + td { margin-top: 8px; }
  .when { width: auto; }
}

/* Kontakt */
.contact p {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 48ch;
}

.mail {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  font-size: clamp(1.5rem, 5vw, 2.4rem);
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 150ms ease, border-color 150ms ease;
  word-break: break-word;
}

.mail:hover {
  color: var(--accent);
  border-color: var(--accent);
}

footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
