/* ============ Design tokens ============ */
:root {
  --navy-900: #0b1929;
  --navy-700: #16324f;
  --navy-500: #2c5282;
  --slate-600: #52606d;
  --slate-400: #8895a3;
  --grey-200: #e2e8f0;
  --grey-100: #f3f5f7;
  --white: #fafbfc;

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max-width: 880px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--navy-900);
  margin: 0;
}

a {
  color: var(--navy-500);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--navy-500);
  outline-offset: 3px;
}

ul { margin: 0; padding: 0; list-style: none; }

/* ============ Nav ============ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 251, 252, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grey-200);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-mark {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy-900);
  border: 1px solid var(--navy-900);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-600);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--navy-900);
}

/* ============ Hero ============ */
.hero {
  position: relative;
  padding: 160px 24px 48px;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grey-200) 1px, transparent 1px),
    linear-gradient(90deg, var(--grey-200) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 60% 50% at 70% 30%, black, transparent);
  opacity: 0.6;
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--slate-400);
  margin: 0 0 12px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.excel-badge {
  display: inline-flex;
  align-items: center;
  background: var(--navy-900);
  border-radius: 4px;
  padding: 8px 14px;
  margin-bottom: 10px;
}

.badge-detail {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-400);
  margin: 0 0 20px;
}

.badge-detail a {
  color: var(--slate-600);
  text-decoration: underline;
}

.badge-detail a:hover {
  color: var(--navy-900);
}

.cell-ref {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--white);
  padding: 3px 7px;
  border-radius: 2px;
  line-height: 1;
}

.badge-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
}

.tagline {
  font-size: 18px;
  color: var(--slate-600);
  margin: 0 0 32px;
}

.tagline-link {
  color: var(--slate-600);
  text-decoration: underline;
  text-decoration-color: var(--grey-200);
  text-underline-offset: 3px;
}

.tagline-link:hover {
  color: var(--navy-900);
  text-decoration-color: var(--navy-500);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn-primary {
  background: var(--navy-900);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-700);
}

.btn-secondary {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--navy-900);
}

.btn-secondary:hover {
  background: var(--navy-900);
  color: var(--white);
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.photo-frame {
  width: 220px;
  height: 300px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--grey-200);
  background: var(--grey-100);
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.photo-frame.photo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-frame.photo-fallback::after {
  content: "Foto folgt";
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-400);
}

/* ============ Sections ============ */
.section {
  padding: 88px 24px;
}

.section-alt {
  background: var(--grey-100);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner-narrow {
  max-width: 560px;
}

.section h2 {
  font-size: clamp(26px, 3.5vw, 34px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}

.lead {
  font-size: 17px;
  color: var(--slate-600);
  max-width: 640px;
  margin: 0 0 40px;
}

/* ============ Timeline ============ */
.timeline-heading {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy-500);
  margin: 40px 0 4px;
}

.timeline-heading:first-of-type {
  margin-top: 0;
}

.timeline {
  margin-bottom: 8px;
}

.timeline li {
  display: flex;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--grey-200);
}

.timeline li:last-child {
  border-bottom: 1px solid var(--grey-200);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-400);
  min-width: 110px;
  flex-shrink: 0;
}

.timeline-role {
  font-size: 15px;
  color: var(--navy-900);
  font-weight: 500;
}

/* ============ Skills ============ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  padding: 28px;
}

.skill-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.skill-card li {
  font-size: 14px;
  color: var(--slate-600);
  padding: 8px 0 8px 18px;
  position: relative;
}

.skill-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  background: var(--navy-500);
}

.languages {
  margin-top: 28px;
  font-size: 14px;
  color: var(--slate-600);
}

.languages span {
  font-weight: 600;
  color: var(--navy-900);
}

/* ============ Contact ============ */
.contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-link {
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-900);
  padding: 14px 18px;
  border: 1px solid var(--grey-200);
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.contact-link:hover {
  border-color: var(--navy-900);
}

/* ============ Footer ============ */
.footer {
  border-top: 1px solid var(--grey-200);
  padding: 32px 24px;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-inner p {
  margin: 0;
  font-size: 13px;
  color: var(--slate-400);
}

.footer-legal a {
  color: var(--slate-400);
  text-decoration: underline;
}

.footer-legal a:hover {
  color: var(--navy-900);
}

/* ============ Responsive ============ */
@media (max-width: 720px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
  }

  .photo-frame {
    width: 150px;
    height: 205px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
