/* ─── Self-hosted fonts ──────────────────────────────────────────
   Both faces are SIL OFL 1.1. Latin subset covers all German chars
   (ä ö ü ß are U+00C4-00FC, well inside U+0000-00FF).
   ─────────────────────────────────────────────────────────────── */

/* Hanken Grotesk — display + body */
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-700.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hanken Grotesk';
  src: url('/fonts/hanken-grotesk-800.woff2') format('woff2');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* IBM Plex Mono — truth-data only (dates, codes, eyebrows, logo separator) */
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191,
    U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ─── Reset ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Design tokens — T3 committed ──────────────────── */
:root {
  /* Surfaces */
  --ground:  #ECEFF3;   /* page bg — cool steel blue-grey, NOT cream */
  --surface: #F8FAFC;   /* raised: nav pill, cards, form fields */
  --line:    #CDD4DD;   /* hairlines, borders — decorative only; never put text on this */

  /* Ink */
  --text:       #161A20; /* body + headings (blue-charcoal) */
  --text-muted: #515A66; /* lede, meta, captions, secondary */

  /* The single accent — one hue (cobalt, H226°) */
  --accent:         #1B43C9; /* links, focus ring, primary CTA, active nav, globe */
  --accent-pressed: #15348F; /* hover / pressed — same hue, one step deeper */
  --on-accent:      #FFFFFF; /* text/icons on an accent fill */

  /* Globe — the dark OBJECT on the light page */
  --globe-sphere: #18202E;
  --globe-land:   #27324A;
  --globe-node:   #5B8CFF;
  --globe-arc:    #6E9CFF;

  /* Type scale */
  --step-eyebrow: .74rem;
  --step-body:    1rem;
  --step-lede:    clamp(1rem, 1.4vw, 1.15rem);
  --step-h3:      1.125rem;
  --step-h2:      clamp(1.5rem, 3vw, 2rem);
  --step-h1:      clamp(1.7rem, 5vw, 3.4rem); /* min lowered for German compounds per T3 caveat */

  /* Layout */
  --nav-h:  52px;
  --r-pill: 100px;
  --r-card: 8px;
}

/* ─── Base ───────────────────────────────────────────── */
html {
  background: var(--ground);
  color: var(--text);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { min-height: 100vh; }

/* German compounds need wrapping + hyphenation (lang="de" enables the dictionary) */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-pressed); }

/* ─── Global focus ring ──────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ─── Skip link ──────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 0 0 var(--r-card) var(--r-card);
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus-visible { top: 0; }

/* ─── Nav checkbox toggle (CSS-first drawer) ─────────── */
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ─── Site header ────────────────────────────────────── */
.site-header { /* fixed pill + drawer; no layout footprint */ }

/* ─── Nav pill ───────────────────────────────────────── */
.nav-pill {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  height: var(--nav-h);
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px 0 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: 0 1px 3px rgba(22, 26, 32, .06);
  white-space: nowrap;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.nav-logo {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding-right: 12px;
  border-right: 1px solid var(--line);
  margin-right: 4px;
}

/* The | separator — mono, accent. Only accent touch on the pill at rest. */
.nav-logo span {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  color: var(--accent);
}

.nav-logo:hover,
.nav-logo:focus-visible {
  color: var(--text);
  text-decoration: none;
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

/* Secondary nav link (CV) */
.nav-btn {
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-btn:hover,
.nav-btn:focus-visible {
  color: var(--text);
  background: rgba(22, 26, 32, .05);
  text-decoration: none;
}

.nav-btn[aria-current="page"] {
  color: var(--text);
  background: rgba(22, 26, 32, .07);
}

/* Primary nav button (Kontakt) — the page's one filled CTA */
.nav-btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.nav-btn-primary:hover,
.nav-btn-primary:focus-visible {
  background: var(--accent-pressed);
  color: var(--on-accent);
  text-decoration: none;
}

.nav-btn-primary[aria-current="page"] {
  background: var(--accent-pressed);
  color: var(--on-accent);
}

/* ─── Mobile hamburger ───────────────────────────────── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--r-card);
  margin-left: 2px;
}

.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Hamburger → X when drawer is open */
#nav-toggle:checked ~ .nav-pill .nav-hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#nav-toggle:checked ~ .nav-pill .nav-hamburger span:nth-child(2) {
  opacity: 0;
}
#nav-toggle:checked ~ .nav-pill .nav-hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ─── Mobile nav drawer ──────────────────────────────── */
.nav-drawer {
  display: none;
  position: fixed;
  top: calc(var(--nav-h) + 24px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(22, 26, 32, .10);
  flex-direction: column;
  padding: 12px;
  gap: 4px;
  z-index: 99;
  min-width: 160px;
}

#nav-toggle:checked ~ .nav-drawer { display: flex; }

.nav-drawer .nav-btn     { font-size: 1rem; padding: 10px 16px; text-align: center; }
.nav-drawer .nav-btn-primary {
  font-size: 1rem;
  padding: 10px 16px;
  text-align: center;
  display: block;
}

/* ─── Main content ───────────────────────────────────── */
.site-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 48px) 24px 80px;
}

/* ─── Hero ───────────────────────────────────────────── */
.section-hero {
  padding: 48px 0 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-hero h1 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Mono eyebrow: truth-marker, uppercase, letter-spaced */
.hero-eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-name {
  font-size: var(--step-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

.hero-title {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 500;
  color: var(--text-muted);
}

.hero-statement {
  font-size: var(--step-lede);
  font-weight: 500;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.7;
}

/* Mono truth-data row — "40+ Standorte · IT PM · ~17 Mrd €" */
.truth-row {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: var(--step-eyebrow);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--on-accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--r-card);
  text-decoration: none;
  transition: background 0.2s;
  align-self: flex-start;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--accent-pressed);
  color: var(--on-accent);
  text-decoration: none;
}

/* ─── CV section block ───────────────────────────────── */
.section-cv {
  border-top: 1px solid var(--line);
  padding-top: 56px;
}

.section-cv > h2 {
  font-size: var(--step-h2);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
}

.cv-section { margin-bottom: 48px; }

/* Eyebrow section labels — mono, uppercase (truth-markers per R8) */
.cv-section > h3 {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: var(--step-eyebrow);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* Experience: typed timeline with hairlines, not cards */
.experience-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.experience-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.experience-item:first-child { border-top: 1px solid var(--line); }

.exp-header { margin-bottom: 12px; }

/* ISO date stamp: mono, muted — the ordering encodes a true chronology */
.exp-date {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: var(--step-eyebrow);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.exp-header h4 {
  font-size: var(--step-h3);
  font-weight: 700;
  color: var(--text);
}

.exp-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.exp-outcomes {
  list-style: disc;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Skills: calm surface+line chips — not colored, not glowing */
.skills-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}

.skills-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Education & languages */
.education-list,
.languages-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.education-list li,
.languages-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.education-list strong,
.languages-list strong {
  color: var(--text);
  font-weight: 600;
}

/* ─── Contact CTA strip ──────────────────────────────── */
.section-contact-cta {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

.section-contact-cta h2 {
  font-size: var(--step-h2);
  font-weight: 700;
  margin-bottom: 12px;
}

/* ─── Kontakt page ───────────────────────────────────── */
.section-kontakt {
  padding-top: 24px;
  max-width: 600px;
}

.section-kontakt h1 {
  font-size: var(--step-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 12px;
}

.section-kontakt .lead {
  font-size: var(--step-lede);
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* Contact form */
.contact-form-skeleton {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.925rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(27, 67, 201, .12);
}

.form-field textarea { min-height: 120px; }

.form-submit {
  align-self: flex-start;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  border-radius: var(--r-card);
  padding: 13px 28px;
  font-family: inherit;
  font-size: 0.925rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.form-submit:hover,
.form-submit:focus-visible { background: var(--accent-pressed); }

.form-privacy-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Full progressive-enhancement contact form (T11) — same layout as skeleton */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Honeypot: visually hidden, removed from tab order in HTML */
.honeypot-field {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Inline field error messages */
.field-error {
  font-size: 0.8rem;
  color: #C0392B; /* explicit error red — not in the accent palette */
  min-height: 1.2em;
}

/* "(optional)" label text */
.label-optional {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
}

/* Turnstile widget spacing */
.cf-turnstile { margin-top: 4px; }

/* Form status banner (aria-live) */
.form-status {
  font-size: 0.9rem;
  line-height: 1.5;
  min-height: 1.5em;
}

.form-status--error {
  color: #C0392B;
  padding: 10px 14px;
  background: rgba(192,57,43,.06);
  border: 1px solid rgba(192,57,43,.20);
  border-radius: var(--r-card);
}

.form-status--success {
  color: #1A6B3A;
  padding: 10px 14px;
  background: rgba(26,107,58,.06);
  border: 1px solid rgba(26,107,58,.20);
  border-radius: var(--r-card);
}

/* Fallback contact note below the form */
.contact-fallback-note {
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ─── Legal pages ────────────────────────────────────── */
.section-legal {
  max-width: 700px;
  padding-top: 24px;
}

.section-legal h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 32px;
}

.section-legal h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 8px;
}

.section-legal p,
.section-legal li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.section-legal ul,
.section-legal ol {
  padding-left: 20px;
  margin-bottom: 12px;
}

/* ─── Thank you / 404 ────────────────────────────────── */
.section-status {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

.section-status h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-status p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 480px;
}

/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  margin-top: 40px;
}

.site-footer nav {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--text-muted);
  font-size: 0.85rem;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: var(--text); }

/* ─── Reduced motion ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-pill  { padding: 0 6px 0 16px; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .site-main { padding-inline: 16px; }
  .section-hero { padding-top: 32px; padding-bottom: 48px; }
}
