:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f4;
  --ink: #1a1a1a;
  --ink-soft: #555452;
  --ink-faint: #8a8987;
  --line: #e2e1df;
  --line-strong: #1a1a1a;
  --accent: #1a1a1a;
  --radius: 4px;
  --maxw: 920px;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand {
  font-family: var(--mono); font-weight: 700; font-size: 20px;
  letter-spacing: 0.05em; text-decoration: none; color: var(--ink);
  border: 2px solid var(--ink); padding: 2px 8px; border-radius: var(--radius);
}
.nav { display: flex; gap: 4px; }
.nav-link {
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-soft);
  padding: 8px 14px; border-radius: var(--radius); transition: all 0.15s ease;
}
.nav-link:hover { color: var(--ink); background: var(--bg-alt); }
.nav-link.active { color: var(--ink); font-weight: 600; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); transition: 0.2s; }

/* SECTIONS */
.section { padding: 88px 0; border-bottom: 1px solid var(--line); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 40px; }
.section-num { font-family: var(--mono); font-size: 14px; color: var(--ink-faint); font-weight: 500; }
.section-head h2 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }

/* HOME */
.section-home { padding: 120px 0 100px; border-bottom: 1px solid var(--line); }
.eyebrow {
  font-family: var(--mono); font-size: 13px; text-transform: uppercase;
  letter-spacing: 0.15em; color: var(--ink-faint); margin-bottom: 20px;
}
.hero-title { font-size: clamp(40px, 8vw, 68px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.hero-sub { font-size: 18px; color: var(--ink-soft); margin-top: 12px; font-weight: 500; }
.kurzprofil { margin: 36px 0; max-width: 680px; }
.kurzprofil p { font-size: 17px; color: var(--ink); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

.btn {
  display: inline-block; font-size: 14px; font-weight: 600; text-decoration: none;
  padding: 12px 24px; border-radius: var(--radius); transition: all 0.15s ease;
  cursor: pointer; border: 1.5px solid var(--ink); font-family: var(--sans);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 7px 16px; font-size: 13px; }

/* CV */
.cv { display: flex; flex-direction: column; gap: 0; }
.cv-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
  padding: 24px 0; border-top: 1px solid var(--line);
}
.cv-row:last-child { border-bottom: 1px solid var(--line); }
.cv-label { font-weight: 600; font-size: 15px; color: var(--ink); }
.cv-content p { font-size: 15px; color: var(--ink-soft); margin-bottom: 4px; }
.cv-content strong { color: var(--ink); font-weight: 600; }

/* PROJECTS */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.project-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: all 0.2s ease; display: flex; flex-direction: column;
}
.section-alt .project-card { background: #fff; }
.project-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.project-tag {
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-faint); margin-bottom: 12px;
}
.project-card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.project-card > p { font-size: 14px; color: var(--ink-soft); flex-grow: 1; margin-bottom: 16px; }
.project-stack { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.project-stack span {
  font-family: var(--mono); font-size: 12px; color: var(--ink-soft);
  background: var(--bg-alt); padding: 3px 8px; border-radius: 3px;
}
.section-alt .project-stack span { background: var(--bg-alt); }
.project-link {
  font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none;
  align-self: flex-start;
}
.project-link:hover { text-decoration: underline; }
.project-link[data-placeholder] { color: var(--ink-faint); font-style: italic; font-weight: 500; }
.hint { margin-top: 24px; font-size: 13px; color: var(--ink-faint); font-style: italic; }

/* SKILLS */
.skills-wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.skill-group h3 { font-size: 15px; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.skill { display: grid; grid-template-columns: 1fr 120px; align-items: center; gap: 16px; margin-bottom: 12px; }
.skill-name { font-size: 14px; color: var(--ink-soft); }
.skill-bar { height: 8px; background: var(--line); border-radius: 10px; overflow: hidden; }
.skill-bar span { display: block; height: 100%; background: var(--ink); border-radius: 10px; width: 0; transition: width 0.8s cubic-bezier(0.4,0,0.2,1); }
.skill[data-level="1"] .skill-bar span { width: 20%; }
.skill[data-level="2"] .skill-bar span { width: 40%; }
.skill[data-level="3"] .skill-bar span { width: 60%; }
.skill[data-level="4"] .skill-bar span { width: 80%; }
.skill[data-level="5"] .skill-bar span { width: 100%; }

.legend { margin-top: 48px; padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }
.section .legend { background: var(--bg-alt); }
.legend-title { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-faint); margin-bottom: 12px; }
.legend-list { padding-left: 20px; }
.legend-list li { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }

/* DOCUMENTS */
.lock-intro { color: var(--ink-soft); margin-bottom: 28px; max-width: 560px; }
.login-box, .docs-box {
  max-width: 420px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px;
}
.login-box h3, .docs-box h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.login-hint { font-size: 14px; color: var(--ink-faint); margin-bottom: 24px; }
.login-form { display: flex; flex-direction: column; gap: 16px; }
.login-form label { display: flex; flex-direction: column; gap: 6px; }
.login-form label span { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.login-form input {
  font-family: var(--sans); font-size: 15px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink);
  transition: border-color 0.15s ease;
}
.login-form input:focus { outline: none; border-color: var(--ink); }
.login-form button { margin-top: 4px; }
.login-error { color: #c0392b; font-size: 14px; font-weight: 500; }

.docs-box { max-width: 560px; }
.docs-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.docs-head p { font-size: 14px; color: var(--ink-soft); }
.docs-list { list-style: none; }
.docs-list li { border-bottom: 1px solid var(--line); }
.docs-list li:last-child { border-bottom: none; }
.docs-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 4px; text-decoration: none; color: var(--ink); font-size: 15px; font-weight: 500;
  transition: padding 0.15s ease;
}
.docs-list a:hover { padding-left: 12px; }
.docs-list a .dl { font-family: var(--mono); font-size: 12px; color: var(--ink-faint); }

/* FOOTER */
.site-footer { padding: 40px 0; }
.site-footer p { font-size: 14px; color: var(--ink-soft); }
.footer-meta { font-size: 13px; color: var(--ink-faint); margin-top: 4px; }

/* RESPONSIVE */
@media (max-width: 720px) {
  .nav { position: fixed; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px; border-bottom: 1px solid var(--line); transform: translateY(-150%); transition: transform 0.25s ease; gap: 0; }
  .nav.open { transform: translateY(0); }
  .nav-link { padding: 12px 16px; }
  .nav-toggle { display: flex; }
  .cv-row { grid-template-columns: 1fr; gap: 8px; }
  .cv-label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-wrap { grid-template-columns: 1fr; gap: 28px; }
  .section { padding: 64px 0; }
  .section-home { padding: 80px 0 64px; }
}
