:root {
  --bg: #0b1020;
  --bg-soft: #121833;
  --card: #0f1630;
  --text: #e8ecf1;
  --muted: #b9c1cd;
  --brand: #6ea8fe;
  --brand-2: #7ef0d1;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
}
[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-soft: #eef1f7;
  --card: #ffffff;
  --text: #111827;
  --muted: #525b6a;
  --brand: #3b82f6;
  --brand-2: #10b981;
  --shadow: 0 8px 24px rgba(16,24,40,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

header.hero { position: relative; isolation: isolate; }

.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--bg) 90%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 24px; }
.nav a { font-weight: 600; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand .dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 20px color-mix(in oklab, var(--brand) 60%, transparent);
}

.actions { display: flex; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 12px;
  border: 1px solid color-mix(in oklab, var(--text) 15%, transparent);
  background: var(--card); color: var(--text);
  box-shadow: var(--shadow); cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0b1020; border: 0;
}

.hero-wrap { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 40px 24px; }
.card {
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
  border-radius: 18px; box-shadow: var(--shadow); padding: 20px;
}
.avatar {
  width: 160px; height: 160px; border-radius: 22px; object-fit: cover;
  border: 3px solid color-mix(in oklab, var(--brand) 40%, transparent);
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
}
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
.title { font-size: 28px; margin: 0 0 6px; }
.subtitle { margin: 0; color: var(--muted); }

@media (min-width: 880px) {
  .hero-grid { grid-template-columns: 280px 1fr; }
}

/* Sections */
section { scroll-margin-top: 80px; }
.section-title { font-size: 22px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

@media (min-width: 800px) {
  .grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* Timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px;
  background: color-mix(in oklab, var(--brand) 40%, var(--text));
}
.tl-item {
  position: relative; padding: 12px 12px 12px 18px;
  background: var(--card);
  border: 1px solid color-mix(in oklab, var(--text) 10%, transparent);
  border-radius: 14px; margin: 10px 0;
}
.tl-item::before {
  content: ""; position: absolute; left: -16px; top: 18px;
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--bg) 50%, transparent);
}
.pill {
  display: inline-block; padding: .2rem .6rem;
  background: color-mix(in oklab, var(--brand) 18%, var(--card));
  color: var(--text);
  border: 1px solid color-mix(in oklab, var(--brand) 35%, transparent);
  border-radius: 999px; font-size: .8rem;
}

/* Lists */
.list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: .45rem .7rem; border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
  font-size: .9rem;
}

/* Cards inside grids */
.proj { display: grid; gap: 10px; }
.proj h4 { margin: 0; }

/* Footer */
footer { padding: 32px 24px; color: var(--muted); text-align: center; }

/* Inputs */
input, textarea {
  width: 100%; background: var(--bg-soft); color: var(--text);
  border: 1px solid color-mix(in oklab, var(--text) 12%, transparent);
  border-radius: 12px; padding: 12px 14px; outline: none;
}
input:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 20%, transparent);
}
label { display: block; margin: 0 0 6px; color: var(--muted); }
.muted { color: var(--muted); }

/* Print to PDF */
@media print {
  .nav, .actions { display: none !important; }
  body { background: white; color: black; }
  .card { box-shadow: none; border: 1px solid #ddd; }
  a { color: black; text-decoration: none; }
}


/* Abstand zwischen Sektionen */
.section { margin-block: 18px; }
