:root {
  --bg: #0b0f1c;
  --bg-card: #161d33;
  --border: #232b45;
  --text: #e6e9f2;
  --text-muted: #9aa3b8;
  --text-dim: #6f7791;
  --accent: #8b5cf6;
  --accent-hover: #a78bfa;
  --accent-glow: rgba(139, 92, 246, 0.18);
  --success: #34d399;
  --max-w: 920px;
  --radius: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(circle at 15% 10%, var(--accent-glow), transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(99,102,241,.12), transparent 45%);
}
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hover); }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11,15,28,.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand:hover { color: var(--accent-hover); }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-muted); font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }

/* Nav: ab Tablet horizontal scrollbar statt Überlauf */
@media (max-width: 720px) {
  nav .container { gap: 12px; }
  .brand { flex-shrink: 0; font-size: .95rem; }
  .nav-links {
    gap: 16px; flex: 1; justify-content: flex-start;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; -ms-overflow-style: none;
    margin-left: 8px; padding: 4px 0;
  }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { font-size: 13px; white-space: nowrap; }
}

section { padding: 70px 0; }
@media (max-width: 640px) {
  section { padding: 48px 0; }
  .hero { padding-top: 84px; padding-bottom: 38px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .nav-links { gap: 13px; }
  h1 { font-size: 1.95rem; }
  h2 { font-size: 1.35rem; }
}

h1, h2, h3 { font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0; overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 22px; }
h3 { font-size: 1.1rem; margin-bottom: 6px; }
p { margin: 0 0 14px; }
.muted { color: var(--text-muted); }

.hero { padding-top: 110px; padding-bottom: 50px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(139,92,246,.12); border: 1px solid rgba(139,92,246,.35);
  color: var(--accent-hover); padding: 6px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 500; margin-bottom: 20px;
}
.hero-tag::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--success); box-shadow: 0 0 8px var(--success);
}
.hero-role { color: var(--accent-hover); font-weight: 600; font-size: clamp(1.05rem,1.6vw,1.25rem); margin-top: 12px; }
.hero p.lead { font-size: clamp(1.02rem,1.4vw,1.15rem); color: var(--text-muted); max-width: 680px; margin-top: 16px; }
.cta { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-hover); }

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .15s ease;
}
.card:hover { border-color: rgba(139,92,246,.4); }

.prose p { color: var(--text-muted); max-width: 720px; }
.prose strong { color: var(--text); }

.grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
}
.skill-card h3 { display: flex; align-items: center; gap: 10px; color: var(--text); }
.skill-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(139,92,246,.12); border-radius: 9px; color: var(--accent-hover);
}
.skill-card p { color: var(--text-muted); font-size: .95rem; margin: 0; }

.timeline { display: flex; flex-direction: column; gap: 16px; }
.tl-item {
  display: grid; grid-template-columns: 170px 1fr; gap: 20px;
  padding: 22px 24px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius);
}
@media (max-width: 680px) { .tl-item { grid-template-columns: 1fr; gap: 4px; } }
.tl-date { color: var(--text-dim); font-size: .9rem; }
.tl-title { color: var(--text); font-weight: 600; font-size: 1.05rem; }
.tl-sub { color: var(--accent-hover); font-size: .92rem; font-weight: 500; margin-bottom: 8px; }
.tl-desc { color: var(--text-muted); font-size: .95rem; }
.tl-desc ul { margin: 8px 0 0; padding-left: 20px; }
.tl-desc li { margin-bottom: 4px; }

.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill {
  background: rgba(139,92,246,.08); border: 1px solid rgba(139,92,246,.22);
  color: var(--accent-hover); padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
}

.contact-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.contact-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: 10px;
}
.contact-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(139,92,246,.12); border-radius: 9px; color: var(--accent-hover);
}
.contact-label { font-size: .8rem; color: var(--text-dim); text-transform: uppercase; letter-spacing: .05em; }
.contact-val { color: var(--text); font-size: .95rem; }

.langs { display: flex; flex-wrap: wrap; gap: 10px; }
.lang-pill {
  background: rgba(255,255,255,.03); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; font-size: .92rem; color: var(--text-muted);
}
.lang-pill strong { color: var(--text); font-weight: 600; }

footer {
  border-top: 1px solid var(--border); padding: 28px 0;
  color: var(--text-dim); font-size: .88rem;
}
footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }

.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.in { opacity: 1; transform: none; }
