/* ── Fonts ────────────────────────────────────────────────────── */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/fraunces-v38-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 400; font-display: swap;
  src: url("fonts/fraunces-v38-latin_latin-ext-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/fraunces-v38-latin_latin-ext-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/inter-v20-latin_latin-ext-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/inter-v20-latin_latin-ext-600.woff2") format("woff2");
}

/* ── Tokens ───────────────────────────────────────────────────── */
:root {
  --paper: #FAF7F1;
  --ink: #181614;
  --text: #3A3631;
  --muted: #6B6560;
  --line: #E5DDCF;
  --accent: #B3401F;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
  --measure: 44rem;
}

/* ── Reset & Grundlagen ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper); color: var(--text);
  font-family: var(--serif); font-size: 1.0625rem; line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column; min-height: 100vh;
  padding: 0 1.25rem;
}
main { width: 100%; max-width: var(--measure); margin: 0 auto; flex: 1; }
main p { hyphens: auto; text-wrap: pretty; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { color: var(--ink); font-weight: 600; }
::selection { background: var(--accent); color: var(--paper); }

/* ── Header & Navigation ──────────────────────────────────────── */
.site-header {
  width: 100%; max-width: var(--measure); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: baseline;
  flex-wrap: wrap; gap: 0.5rem 1.5rem;
  padding: 2rem 0 0;
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.site-name { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--accent); text-decoration: none; }
@media (max-width: 26rem) {
  .site-header { font-size: 0.6875rem; letter-spacing: 0.05em; }
  .site-nav { width: 100%; justify-content: space-between; gap: 0.5rem 0.75rem; }
}

/* ── Hero ─────────────────────────────────────────────────────── */
.hero { padding: clamp(3rem, 10vh, 6rem) 0 3.5rem; }
.hero h1 {
  font-size: clamp(2.375rem, 6.5vw, 3.75rem);
  line-height: 1.08; font-weight: 400; letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero-lead { margin-top: 1.5rem; max-width: 38rem; }
.facts { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-top: 2.25rem; }
.fact dt {
  font-family: var(--sans); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent);
}
.fact dd { margin: 0.25rem 0 0; font-family: var(--sans); font-size: 0.875rem; }

/* Einmalige, ruhige Lade-Sequenz – nur der Hero, sonst nichts */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-lead, .facts {
    animation: rise 0.7s cubic-bezier(0.2, 0.6, 0.2, 1) both;
  }
  .hero-lead { animation-delay: 0.12s; }
  .facts { animation-delay: 0.24s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(0.75rem); }
    to { opacity: 1; transform: none; }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Sektionen ────────────────────────────────────────────────── */
main > section { border-top: 1px solid var(--line); padding: 2.75rem 0; }
.section-label {
  font-family: var(--sans); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 2rem;
}

/* ── Einträge (Werdegang, Bildung, Engagement) ────────────────── */
.entry { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.35rem 2rem; }
.entry + .entry { margin-top: 2rem; }
.entry-period {
  font-family: var(--sans); font-size: 0.8125rem; color: var(--muted);
  padding-top: 0.3rem; font-variant-numeric: tabular-nums;
}
.entry-body h3 { font-size: 1.1875rem; font-weight: 600; line-height: 1.35; }
.entry-org { font-weight: 400; color: var(--muted); font-style: italic; }
.entry-body p { margin-top: 0.5rem; font-size: 0.9375rem; line-height: 1.7; }
@media (max-width: 40rem) {
  .entry { grid-template-columns: 1fr; }
  .entry-period { padding-top: 0; }
}

/* ── Kompetenzen ──────────────────────────────────────────────── */
.skills-group + .skills-group { margin-top: 1.75rem; }
.skills-group h3 { font-size: 1.0625rem; margin-bottom: 0.75rem; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li {
  font-family: var(--sans); font-size: 0.8125rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.25rem 0.8rem; background: rgba(255, 255, 255, 0.5);
}

/* ── Kontakt & Footer ─────────────────────────────────────────── */
.contact-actions {
  margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  font-family: var(--sans); font-weight: 600; font-size: 0.9375rem;
}
.site-footer {
  width: 100%; max-width: var(--measure); margin: 0 auto;
  border-top: 1px solid var(--line); padding: 1.5rem 0 2rem;
  font-family: var(--sans); font-size: 0.75rem; color: var(--muted);
}
.site-footer a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--accent); }

/* ── Rechtsseiten & 404 (schlanke Prosa-Seiten) ───────────────── */
.page { padding: 3rem 0; }
.page h1 { font-size: 2rem; font-weight: 600; margin-bottom: 1.5rem; }
.page h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.page p + p { margin-top: 0.75rem; }
.back-link { font-family: var(--sans); font-size: 0.875rem; font-weight: 600; }

/* ── Print: die Seite als sauber gesetztes CV-Dokument ────────── */
@media print {
  * { animation: none !important; }
  body { background: #fff; color: #000; font-size: 10.5pt; padding: 0; }
  .site-nav, .site-footer, .contact-actions a[href^="http"] { display: none; }
  .hero { padding: 0 0 1.5rem; }
  .hero h1 { font-size: 22pt; }
  main > section { padding: 1.25rem 0; }
  .section-label { break-after: avoid; }
  .entry, .skills-group { break-inside: avoid; }
  a { color: #000; }
}
