/* ============ FARBEN (hier zentral anpassen) ============ */
:root {
  --bg: #f6f3ec;
  --surface: #fffdf8;
  --text: #1c1f24;
  --muted: #5d6470;
  --line: #e2ddd1;
  --accent: #1f4e79;      /* Nordsee-Blau */
  --accent-soft: #dce7f1;
  --wip: #b7791f;
  --done: #2f7a55;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11151b; --surface: #181d25; --text: #e9ecf1; --muted: #9aa3b2;
    --line: #262d38; --accent: #7fb2e5; --accent-soft: #1c2b3c;
    --wip: #e2a84b; --done: #5cc08d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #11151b; --surface: #181d25; --text: #e9ecf1; --muted: #9aa3b2;
  --line: #262d38; --accent: #7fb2e5; --accent-soft: #1c2b3c;
  --wip: #e2a84b; --done: #5cc08d; color-scheme: dark;
}

/* ============ BASIS ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--text);
  font: 400 17px/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
ul, ol { list-style: none; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.small { font-size: .78rem; color: var(--muted); }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; font-weight: 700; line-height: 1.15; }

main, .nav, .footer { max-width: var(--max); margin: 0 auto; padding-inline: 16px; }
@media (min-width: 720px) { main, .nav, .footer { padding-inline: 32px; } }

/* ============ NAVIGATION ============ */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px; height: 64px;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
}
.logo { font: 700 1.3rem "Fraunces", serif; text-decoration: none; }
.logo span { color: var(--accent); }
.nav nav { display: flex; gap: 20px; margin-left: auto; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.nav nav a:hover { color: var(--text); }
.theme-toggle {
  background: none; border: 1px solid var(--line); color: var(--text);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1rem;
}
@media (max-width: 600px) { .nav nav { display: none; } .theme-toggle { margin-left: auto; } }

/* ============ HERO ============ */
.hero { padding: 96px 0 72px; max-width: 760px; }
.eyebrow { color: var(--accent); font-size: .85rem; letter-spacing: .04em; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.8rem); margin-bottom: 24px; }
.hero h1 em { font-style: normal; font-weight: 500; color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .95rem;
  transition: transform .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }

/* ============ SECTIONS ============ */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.num { color: var(--accent); font-size: .9rem; }
.subhead { font-size: 1.3rem; margin: 56px 0 20px; }

/* ============ PROJEKT-KARTEN ============ */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 12px;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--muted); font-size: .96rem; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-link { color: var(--accent); font-weight: 500; text-decoration: none; font-size: .92rem; }
.status { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.status::before { content: "● "; }
.status.wip  { color: var(--wip); }
.status.done { color: var(--done); }
.status.live { color: var(--accent); }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font: 500 .76rem "JetBrains Mono", monospace;
  background: var(--accent-soft); color: var(--accent);
  padding: 4px 10px; border-radius: 999px;
}

/* ============ TIMELINE ============ */
.timeline { border-left: 2px solid var(--line); padding-left: 28px; display: grid; gap: 36px; }
.entry { position: relative; display: grid; gap: 4px; }
.entry::before {
  content: ""; position: absolute; left: -36px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--accent);
}
.when { font-size: .8rem; color: var(--accent); }
.entry h3 { font-size: 1.25rem; }
.where { color: var(--muted); font-size: .92rem; margin-bottom: 4px; }

.papers { display: grid; gap: 12px; }
.papers li {
  display: grid; gap: 2px; padding: 18px 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.papers li > span:last-child { color: var(--muted); font-size: .95rem; }

/* ============ SKILLS ============ */
.skills { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.skills h3 { font-size: 1.1rem; margin-bottom: 12px; }

/* ============ FOOTER ============ */
.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-block: 32px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: .88rem;
}
