@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("fonts/ibm-plex-sans-condensed-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Condensed"; src: url("fonts/ibm-plex-sans-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

/*
  Formregel: Flächen und Bilder haben keine Rundung, nur Buttons sind Pillen.
  Farben: Gelb und Grau der bisherigen Seite, ein Akzent (Gelb), eine kühle Graufamilie.
*/
:root {
  --yellow: #FDB900;
  --yellow-light: #FFD666;
  --ink: #1C1E20;
  --graphite: #26292D;
  --graphite-2: #2E3236;
  --graphite-line: #43474D;
  --slate: #585C5F;
  --slate-line: rgba(255, 255, 255, .22);
  --on-dark: #F2F3F3;
  --on-dark-muted: #B4B8BC;
  --on-slate-muted: #E3E5E6;
  --on-yellow-muted: #3B3106;

  --display: "Plex Condensed", "Arial Narrow", sans-serif;
  --text: "Plex Sans", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);

  --wrap: 76rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --band: clamp(4.5rem, 9vw, 8rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  text-rendering: optimizeLegibility;
}

/* Feines Korn gegen sterile Flächen */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }

::selection { background: var(--yellow); color: var(--ink); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.band-graphite :focus-visible, .band-graphite-2 :focus-visible, .band-slate :focus-visible, .footer :focus-visible { outline-color: var(--yellow); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 40; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0.5rem 1.375rem;
  font: 500 1rem/1 var(--text); text-decoration: none; white-space: nowrap;
  border-radius: 999px;
  transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out);
}
.btn:active { transform: scale(.97); }
.btn-dark { background: var(--ink); color: var(--yellow); }
.btn-dark:hover { background: var(--graphite-2); color: #fff; }
.btn-lg { min-height: 3.25rem; padding: 0.75rem 2rem; font-size: 1.0625rem; }

/* Kopfleiste */
.topbar { position: sticky; top: 0; z-index: 20; background: var(--yellow); border-bottom: 1px solid rgba(28, 30, 32, .14); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.5rem; }
.brand { display: flex; align-items: center; gap: 0.875rem; text-decoration: none; }
.brand img { width: 3.5rem; height: 3.5rem; filter: drop-shadow(0 2px 3px rgba(60, 40, 0, .25)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font: 600 1.25rem/1.15 var(--display); }
.brand-sub { font-size: 0.875rem; color: var(--on-yellow-muted); }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; padding: 0.25rem 0; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease-out); }
.nav a:not(.btn):hover, .nav a[aria-current] { background-size: 100% 2px; }

/* Hero */
.hero { background: var(--yellow); color: var(--ink); overflow: hidden; }
.hero-body {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 6vw, 5rem);
}
.hero h1 {
  font: 600 clamp(2.75rem, 6.6vw, 5.5rem)/0.96 var(--display);
  letter-spacing: -0.03em; max-width: 17ch; text-wrap: balance;
}
.lead { margin-top: 1.75rem; max-width: 34rem; font-size: clamp(1.125rem, 1.5vw, 1.3125rem); line-height: 1.55; color: #2A2305; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem 2rem; margin-top: 2.25rem; }
.hero-phone { font-weight: 500; font-size: 1.0625rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 3px; transition: background-size .25s var(--ease-out); }
.hero-phone:hover { background-size: 100% 2px; }

.portrait { width: clamp(11rem, 19vw, 15rem); }
.portrait img { width: 100%; aspect-ratio: 359 / 512; object-fit: cover; }
.portrait figcaption { display: flex; flex-direction: column; margin-top: 0.875rem; font-size: 0.9375rem; line-height: 1.4; }
.portrait strong { font: 600 1.0625rem/1.3 var(--display); }

/* Einmaliger Auftritt beim Laden */
@media (prefers-reduced-motion: no-preference) {
  .brand img { animation: crest-in .9s var(--ease-out) both; }
  .hero h1 { animation: rise 1s var(--ease-out) .05s both; }
  .lead, .hero-actions { animation: rise 1s var(--ease-out) .18s both; }
  .portrait img { animation: unveil 1.2s var(--ease-out) .12s both; }
  @keyframes crest-in { from { opacity: 0; transform: scale(.85) rotate(-4deg); } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes unveil { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
}

/* Aufdecken beim Scrollen, nur mit JS und ohne reduzierte Bewegung */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { clip-path: inset(0 0 100% 0); transform: translateY(0.5rem); transition: clip-path .9s var(--ease-out), transform .9s var(--ease-out); }
  .js .reveal.in { clip-path: inset(0 0 -20% 0); transform: none; }
}

/* Bänder */
.band { padding: var(--band) 0; }
.band-graphite { background: var(--graphite); color: var(--on-dark); }
.band-graphite-2 { background: var(--graphite-2); color: var(--on-dark); }
.band-yellow { background: var(--yellow); color: var(--ink); }
.band-slate { background: var(--slate); color: #fff; }

.title { font: 600 clamp(2.5rem, 6vw, 4.75rem)/0.98 var(--display); letter-spacing: -0.03em; text-wrap: balance; }
.intro { margin-top: 1rem; max-width: 36rem; font-size: 1.125rem; }
.band-graphite .title, .band-graphite-2 .title { color: var(--yellow); }
.band-graphite .intro, .band-graphite-2 .intro { color: var(--on-dark-muted); }
.band-slate .intro { color: var(--on-slate-muted); }
.band-yellow .intro { color: var(--on-yellow-muted); }

/* Aktuelle Mandate als große Zeilen */
.mandates { margin-top: clamp(2.5rem, 5vw, 4rem); }
.mandate {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.5fr);
  grid-template-areas: "name name since" "sector stack work";
  gap: 1.25rem 2.5rem; padding: clamp(1.75rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid var(--graphite-line);
}
.mandate:last-child { border-bottom: 1px solid var(--graphite-line); }
.mandate h3 {
  grid-area: name; font: 600 clamp(2rem, 5vw, 4.25rem)/0.98 var(--display); letter-spacing: -0.025em; color: #fff;
  transition: color .25s ease;
}
.mandate:hover h3 { color: var(--yellow); }
.m-since { grid-area: since; justify-self: end; align-self: start; font: 600 clamp(1.125rem, 1.8vw, 1.5rem)/1.2 var(--display); color: var(--yellow); white-space: nowrap; }
.m-sector { grid-area: sector; color: var(--on-dark-muted); }
.m-stack { grid-area: stack; color: var(--yellow-light); font-size: 0.9375rem; }
.m-work { grid-area: work; }
.m-work li + li { margin-top: 0.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .js .mandate.reveal:nth-child(2) { transition-delay: .06s; }
  .js .mandate.reveal:nth-child(3) { transition-delay: .12s; }
  .js .mandate.reveal:nth-child(4) { transition-delay: .18s; }
}

/* Zitat zur Arbeitsweise */
.statement blockquote p {
  font: 500 clamp(1.75rem, 4.2vw, 3.5rem)/1.12 var(--display); letter-spacing: -0.02em;
  max-width: 26ch; text-wrap: balance;
}
.statement blockquote p::before { content: "„"; color: var(--yellow); }
.statement blockquote p::after { content: "“"; color: var(--yellow); }
.statement-by { margin-top: 1.75rem; color: var(--on-slate-muted); }

/* Kompetenzen */
.modules { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.modules li { display: flex; flex-direction: column; gap: 0.5rem; }
.modules strong { font: 600 clamp(2.5rem, 10.5vw, 9.5rem)/0.82 var(--display); letter-spacing: -0.035em; color: var(--ink); transition: color .3s ease; }
.modules span { font-size: 0.9375rem; font-weight: 500; color: var(--on-yellow-muted); }
@supports (-webkit-text-stroke: 2px black) {
  @media (hover: hover) {
    .modules strong { color: transparent; -webkit-text-stroke: 2px var(--ink); }
    .modules li:hover strong { color: var(--ink); }
  }
}

.skills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); }
.skills h3 { font: 600 1.5rem/1.2 var(--display); margin-bottom: 0.625rem; }
.skills p { color: #2A2305; max-width: 38ch; }
.skills .runline { font: 500 1.1875rem/1.5 var(--display); color: var(--ink); }

/* Werdegang */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2.5rem 5rem; }
.split-head { position: sticky; top: 7rem; align-self: start; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 1.75rem; bottom: 1.75rem; width: 2px; background: var(--graphite-line); }
.timeline li { position: relative; display: grid; grid-template-columns: 10rem 1fr; gap: 0.25rem 1.5rem; padding: 1rem 0 1rem 2.25rem; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 1.5rem; width: 12px; height: 12px; border-radius: 50%;
  background: var(--graphite-2); border: 2px solid var(--yellow);
}
.timeline li:first-child::before { background: var(--yellow); }
.t-year { font: 600 1.375rem/1.35 var(--display); color: var(--yellow); }
.t-what { color: var(--on-dark); padding-top: 0.125rem; }

/* Projekte */
.projects { margin-top: clamp(2.5rem, 5vw, 3.5rem); border-top: 1px solid var(--graphite-line); }
.projects details { border-bottom: 1px solid var(--graphite-line); }
.projects summary {
  display: grid; grid-template-columns: minmax(0, 1fr) 1.5rem; gap: 0.375rem 1.5rem; align-items: center;
  padding: 1.5rem 0; cursor: pointer; list-style: none;
}
.projects summary::-webkit-details-marker { display: none; }
.projects summary::after {
  content: ""; grid-column: 2; grid-row: 1 / span 2; width: 16px; height: 16px; justify-self: end;
  background:
    linear-gradient(var(--yellow), var(--yellow)) center / 100% 2px no-repeat,
    linear-gradient(var(--yellow), var(--yellow)) center / 2px 100% no-repeat;
  transition: transform .3s var(--ease-out);
}
.projects details[open] summary::after { transform: rotate(45deg); }
.p-client { font-size: 0.9375rem; color: var(--on-dark-muted); }
.p-title { font: 600 clamp(1.5rem, 3.2vw, 2.5rem)/1.08 var(--display); letter-spacing: -0.02em; color: #fff; transition: color .2s ease; }
.projects summary:hover .p-title { color: var(--yellow); }
.projects details ul { padding: 0 0 2rem; max-width: 70ch; color: var(--on-dark); }
.projects li { position: relative; padding-left: 1.25rem; }
.projects li + li { margin-top: 0.5rem; }
.projects li::before { content: ""; position: absolute; left: 0; top: 0.8em; width: 0.625rem; height: 2px; background: var(--yellow); }
@media (prefers-reduced-motion: no-preference) {
  .projects details[open] ul { animation: open .35s var(--ease-out); }
  @keyframes open { from { opacity: 0; transform: translateY(-6px); } }
}

/* Referenzen als Namenswand */
.refs { margin-top: clamp(2.5rem, 5vw, 3.5rem); font: 600 clamp(1.5rem, 3.4vw, 2.75rem)/1.3 var(--display); letter-spacing: -0.015em; color: #fff; text-wrap: pretty; }
.refs li { display: inline; white-space: nowrap; }
.refs li::after { content: " / "; color: var(--slate-line); font-weight: 500; }
.refs li:last-child::after { content: ""; }
.refs small { font: 500 0.875rem/1 var(--text); letter-spacing: 0; color: var(--yellow-light); vertical-align: 0.9em; margin-left: 0.2em; white-space: nowrap; }

/* Ausbildung, Sprachen, Einsatzorte */
.trio { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 3rem 4rem; }
.subtitle { font: 600 clamp(1.75rem, 3vw, 2.5rem)/1.05 var(--display); letter-spacing: -0.02em; color: var(--yellow); margin-bottom: 1.25rem; }
.plain li { padding: 0.75rem 0; border-top: 1px solid var(--graphite-line); }
.langs li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 0; border-top: 1px solid var(--graphite-line); }
.langs span { font-weight: 500; }
.langs small { font-size: 0.9375rem; color: var(--on-dark-muted); }
.countries { font: 500 clamp(1.25rem, 2vw, 1.625rem)/1.4 var(--display); }

/* Kontakt */
.contact { background: var(--yellow); color: var(--ink); padding: var(--band) 0 clamp(3rem, 6vw, 4.5rem); }
.contact h2 { font: 600 clamp(2.75rem, 8vw, 7rem)/0.94 var(--display); letter-spacing: -0.035em; max-width: 13ch; text-wrap: balance; }
.contact-mail {
  display: inline-block; margin-top: clamp(1.5rem, 3vw, 2.5rem);
  font: 600 clamp(1.5rem, 4.4vw, 3.5rem)/1.1 var(--display); letter-spacing: -0.02em; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(var(--ink), var(--ink)) 0 100% / 100% 3px no-repeat; padding-bottom: 0.25rem;
  transition: background-size .35s var(--ease-out);
}
.contact-mail:hover { background-size: 30% 3px; }
.contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem 2.5rem; margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.contact-list dt { font-size: 0.875rem; color: var(--on-yellow-muted); }
.contact-list dd { font: 500 1.25rem/1.4 var(--display); margin-top: 0.125rem; }
.contact-list a { text-decoration: none; background: linear-gradient(var(--ink), var(--ink)) 0 100% / 0 2px no-repeat; transition: background-size .25s var(--ease-out); }
.contact-list a:hover { background-size: 100% 2px; }

/* Footer */
.footer { background: var(--ink); color: #A9ADB1; padding: 2rem 0; font-size: 0.875rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.footer p { color: #D6D8DA; }
.footer p span { color: #A9ADB1; }
.footer nav { display: flex; gap: 1.5rem; }
.footer a { color: #D6D8DA; }
.footer a:hover { color: var(--yellow); }

/* Rechtstexte */
.legal-head { background: var(--yellow); }
.legal { background: var(--graphite-2); color: var(--on-dark); padding: var(--band) 0; }
.legal h1 { font: 600 clamp(2.25rem, 5vw, 3.5rem)/1.05 var(--display); letter-spacing: -0.02em; color: var(--yellow); }
.legal h2 { font: 600 1.375rem/1.3 var(--display); margin-top: 2.5rem; }
.legal p { margin-top: 0.75rem; max-width: 65ch; }
.legal .note { margin-top: 2rem; padding: 1rem 1.25rem; background: var(--yellow); color: var(--ink); }
.legal a { color: var(--yellow-light); }

/* Tablet */
@media (max-width: 64rem) {
  .nav a:not(.btn) { display: none; }
  .mandate { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "name since" "sector stack" "work work"; }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 52rem) {
  .skills, .split, .contact-list { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .modules span { font-size: 0.75rem; }
}
/* Handy */
@media (max-width: 40rem) {
  .brand img { width: 2.75rem; height: 2.75rem; }
  .brand-sub { display: none; }
  .hero-body { grid-template-columns: 1fr; }
  .portrait { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; align-items: end; width: 100%; }
  .portrait figcaption { margin-top: 0; }
  .mandate { grid-template-columns: 1fr; grid-template-areas: "since" "name" "sector" "stack" "work"; gap: 0.75rem; }
  .m-since { justify-self: start; }
  .trio { grid-template-columns: 1fr; }
  .trio > :first-child { grid-column: auto; }
  .timeline li { grid-template-columns: 1fr; }
  .modules span { display: none; }
  .refs { font-size: 1.625rem; }
  .refs li { display: block; white-space: normal; padding: 0.25rem 0; }
  .refs li::after { content: none; }
}
