/* ============================================================================
   vita.css — norbert-wielage.de (Werdegang / Berufsbiografie)
   Eigenständige Optik: gleiche DNA wie norbertwielage.de (hell, seriös,
   Raleway, Mono-Labels), aber eigene Akzentfarbe (Petrol) und eigenes Layout
   (dokumentarischer Zeitstrahl statt Visitenkarte).
   Keine Cookies, keine Tracker, keine externen Ressourcen.
   ========================================================================== */

@font-face {
  font-family: "raleway";
  font-display: swap;
  font-weight: 100 900;
  font-style: normal;
  src: url("../fonts/raleway/raleway-variable.woff2") format("woff2"),
       url("../fonts/raleway/raleway-variable.woff") format("woff");
}

:root {
  --ink:       #13211f;
  --soft:      #3c4a49;
  --muted:     #6b7a79;
  --accent:    #0f766e;   /* Petrol – die eigene Note dieser Domain */
  --accent-dk: #0a5b55;
  --accent-lt: #e6f2f0;
  --bg:        #f6f8f8;
  --surface:   #ffffff;
  --border:    #e3ebea;
  --maxw:      760px;
  --font: "raleway", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, "Cascadia Code", Consolas, monospace;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  color: var(--soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 800; }
p { margin: 0 0 1.1em; }
a { color: var(--accent-dk); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
::selection { background: rgba(15,118,110,.18); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px, 5vw, 28px); }

/* ---- Kopfleiste (eigene, schlanke Navigation dieser Domain) --------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,248,248,.88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(18px,5vw,28px);
  height: 58px; display: flex; align-items: center; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink); font-weight: 800; margin-right: auto;
  white-space: nowrap;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  color: #fff; font-size: 12.5px; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
}
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a {
  font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--soft);
  padding: 8px 12px; border-radius: 8px;
}
.topbar nav a:hover { background: var(--accent-lt); color: var(--accent-dk); }
@media (max-width: 520px) {
  .brand span.brand-text { font-size: 14px; }
  .topbar nav a { padding: 8px 9px; font-size: 13.5px; }
}

/* ---- Kopfbereich ---------------------------------------------------------- */
.hero { padding: clamp(46px, 8vw, 84px) 0 clamp(30px, 5vw, 48px); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .07em; text-transform: uppercase; color: var(--accent-dk);
  margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }
.hero h1 { font-size: clamp(32px, 6vw, 52px); margin-bottom: .35em; }
.hero .standfirst { font-size: clamp(19px, 2.4vw, 22px); color: var(--soft); max-width: 60ch; }

/* ---- Abschnitte ----------------------------------------------------------- */
section { padding: clamp(34px, 5vw, 56px) 0; border-top: 1px solid var(--border); }
section h2 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: .7em; }
section h3 { font-size: 19px; margin: 2em 0 .6em; }
.lead { font-size: 19px; }

/* ---- Zeitstrahl ----------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--border));
  border-radius: 2px;
}
.entry { position: relative; padding: 0 0 30px 36px; }
.entry::before {
  content: ""; position: absolute; left: 2px; top: 8px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--accent);
}
.entry.is-current::before { background: var(--accent); box-shadow: 0 0 0 4px rgba(15,118,110,.16); }

/* Laufende Stationen: langsamer, weicher Puls als Signal "besteht bis heute".
   Bewusst dezent (2,4 s, weiches Ausblenden) – kein Blinken. */
.entry.is-current::after {
  content: "";
  position: absolute;
  left: 2px; top: 8px;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  pointer-events: none;
  animation: nw-puls 2.4s ease-out infinite;
}
@keyframes nw-puls {
  0%   { transform: scale(1);   opacity: 0; }
  20%  { transform: scale(1.3); opacity: .55; }
  100% { transform: scale(2.4); opacity: 0; }
}
/* Laufende Stationen versetzt pulsen lassen, damit sie nicht im Gleichtakt blinken.
   Staffelung in Dritteln der Laufzeit (2,4 s), gilt für bis zu drei Einträge. */
.entry.is-current ~ .entry.is-current::after { animation-delay: .8s; }
.entry.is-current ~ .entry.is-current ~ .entry.is-current::after { animation-delay: 1.6s; }

@media (prefers-reduced-motion: reduce) {
  .entry.is-current::after { animation: none; opacity: .35; transform: scale(1.5); }
}
.entry .when {
  display: block; font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .04em; color: var(--accent-dk); margin-bottom: 3px;
}
.entry .what { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.3; }
.entry .where { font-size: 15.5px; color: var(--muted); font-weight: 600; margin-top: 2px; }
.entry p { margin: .55em 0 0; font-size: 18px; }

/* ---- Karten / Hervorhebungen ---------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: clamp(20px, 3vw, 28px); box-shadow: 0 2px 14px -8px rgba(19,33,31,.2);
}
.card + .card { margin-top: 14px; }
.card h3 { margin-top: 0; }
.note {
  background: var(--accent-lt); border-left: 4px solid var(--accent);
  border-radius: 10px; padding: 16px 18px; font-size: 16.5px; color: var(--ink);
}
.note p:last-child { margin-bottom: 0; }

/* ---- Rechtstexte ---------------------------------------------------------- */
.legal { padding-top: clamp(30px, 5vw, 44px); }
.legal h2 { font-size: 22px; margin: 1.8em 0 .5em; }
.legal h2:first-of-type { margin-top: .6em; }
.legal h3 { font-size: 17px; margin: 1.4em 0 .4em; }
.legal p, .legal li { font-size: 18px; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal .dl { margin: 0 0 1.2em; }
.legal .dl div { display: flex; gap: 12px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid var(--border); }
.legal .dl dt { min-width: 150px; font-weight: 700; color: var(--ink); margin: 0; }
.legal .dl dd { margin: 0; }

/* ---- Fußbereich ----------------------------------------------------------- */
footer {
  background: var(--ink); color: #c3d2d0; padding: 40px 0 46px; margin-top: 20px;
  font-size: 15.5px;
}
footer a { color: #dceceb; text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-bottom: 14px; font-weight: 600; }
.foot-note { color: #8fa3a1; font-size: 14px; }

/* ---- Utilities ------------------------------------------------------------ */
.cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  font-weight: 700; font-size: 16px; text-decoration: none; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  padding: 13px 22px; border-radius: 999px;
  box-shadow: 0 12px 24px -12px rgba(15,118,110,.8);
  transition: transform .2s ease;
}
.cta:hover { transform: translateY(-2px); color: #fff; }
.small { font-size: 15px; color: var(--muted); }
