/* ==========================================================
   voak.at/pierre – Profil & Lebenslauf
   Mobile-first, keine festen Breiten
   ========================================================== */

:root {
  --bg:        #f5f3ee;
  --card:      #ffffff;
  --line:      #e7e2d8;
  --ink:       #1f2430;
  --text:      #3a3f4b;
  --muted:     #7b7f8a;
  --accent:    #0f766e;
  --accent-lt: #e2f2ef;
  --warm:      #b45309;
  --radius:    16px;
  --shadow:    0 1px 2px rgba(30,30,40,.05), 0 6px 20px rgba(30,30,40,.06);
  --serif:     Georgia, "Times New Roman", serif;
  --sans:      system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; font-family: inherit; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 70px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
}

img { max-width: 100%; height: auto; display: block; }

a, a:link, a:visited { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid rgba(15,118,110,.4); outline-offset: 2px; }

.wrap { width: 100%; max-width: 1480px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(15,118,110,.16), transparent 60%),
    linear-gradient(180deg, #ebe7de 0, var(--bg) 100%);
  padding: 40px 0 28px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
  justify-items: center;
  text-align: center;
}
@media (min-width: 700px) {
  .hero { padding: 64px 0 40px; }
  .hero .wrap { grid-template-columns: auto 1fr; justify-items: start; text-align: left; gap: 40px; }
}

.portrait {
  position: relative;
  width: min(200px, 56vw);
  aspect-ratio: 3 / 4;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(30,30,40,.18);
  border: 4px solid #fff;
  flex: none;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.portrait:hover img { transform: scale(1.04); }

.eyebrow {
  margin: 0 0 6px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
}
.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.3rem, 1.6rem + 3.5vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -.01em;
}
.hero .lead {
  margin: 12px 0 18px;
  font-size: clamp(1.02rem, .95rem + .4vw, 1.2rem);
  color: var(--text);
  max-width: 38em;
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.hero .chips { justify-content: center; }
@media (min-width: 700px) { .hero .chips { justify-content: flex-start; } }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .88rem;
  color: var(--ink);
  white-space: nowrap;
}
.chip-accent { background: var(--accent-lt); border-color: #c3e3dd; color: #0b5d57; }

/* ---------- Sprungnavigation ---------- */

.jump {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245,243,238,.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.jump-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 6px clamp(10px, calc(3vw - 6px), 34px);
}
.jump ul {
  display: flex;
  flex-wrap: wrap;                 /* nichts wird abgeschnitten, notfalls 2. Zeile */
  gap: 2px 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.jump a, .jump a:visited {
  display: block;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--text);
  font-size: .92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .15s, color .15s;
}
.jump a:hover { background: #fff; text-decoration: none; color: var(--accent); }
.jump a.active { background: #fff; color: var(--accent); box-shadow: 0 1px 4px rgba(30,30,40,.08); }

.jump-toggle { display: none; }

/* Handy & Tablet: Menü-Button statt Leiste */
@media (max-width: 899px) {
  .jump:not(.has-js) { position: static; }           /* ohne JS: einfach umbrechende Liste */
  .jump.has-js .jump-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    font: 600 .95rem/1.2 var(--sans);
    cursor: pointer;
    text-align: left;
  }
  .jump-toggle .jump-label { flex: none; }
  .jump-toggle .jump-current {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    color: var(--accent);
  }
  .jump-toggle::after {
    content: "";
    flex: none;
    width: 8px; height: 8px;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s;
  }
  .jump.open .jump-toggle::after { transform: rotate(-135deg) translate(-2px, -2px); }

  .jump ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
    gap: 6px;
  }
  .jump.has-js ul { display: none; padding-top: 8px; }
  .jump.has-js.open ul { display: grid; }
  .jump a, .jump a:visited {
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    text-align: center;
    white-space: normal;
  }
  .jump a.active { border-color: #9fd2c9; background: var(--accent-lt); }
}

/* ---------- Sections ---------- */

main { padding: 12px 0 56px; }

.section { margin-top: 36px; }
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem);
  color: var(--ink);
  line-height: 1.2;
}
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  min-width: 0;
  overflow-wrap: anywhere;
}
@media (min-width: 700px) { .card { padding: 26px 28px; } }

.card h3 {
  margin: 0 0 10px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
.grid .wide { grid-column: 1 / -1; }

/* Steckbrief-Text */
.prose { max-width: 100%; }
@media (min-width: 900px) {
  .prose { columns: 2; column-gap: 40px; column-rule: 1px solid var(--line); }
}
@media (min-width: 820px) {
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1300px) {
  .prose { columns: 3; column-gap: 44px; }
  .prose p { break-inside: avoid-column; }
}
.prose p { margin: 0 0 1em; }
.prose p:last-child { margin-bottom: 0; }
.prose p:first-child::first-letter {
  float: left;
  font-family: var(--serif);
  font-size: 3.4em;
  line-height: .9;
  padding: 4px 8px 0 0;
  color: var(--accent);
}

/* Persönliche Daten */
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; }
.facts > div { display: grid; grid-template-columns: 1fr; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { font-size: .82rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
@media (min-width: 520px) {
  .facts > div { grid-template-columns: 170px 1fr; gap: 12px; }
  .facts dt { font-size: .95rem; padding-top: 1px; }
}

/* einfache Listen */
.list { list-style: none; margin: 0; padding: 0; }
.list li { position: relative; padding: 6px 0 6px 20px; }
.list li::before {
  content: "";
  position: absolute; left: 2px; top: 1.05em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  opacity: .75;
}
.list li + li { border-top: 1px solid #f1eee7; }

.sub { margin: 16px 0 6px; font-weight: 700; color: var(--ink); font-size: .95rem; }
.sub:first-of-type { margin-top: 0; }

/* Zeitleiste */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 10px 0 10px 26px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), #b9ddd7);
  border-radius: 2px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: 2px; top: 17px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--accent);
}
.timeline .when {
  font-size: .85rem;
  font-weight: 700;
  color: var(--warm);
  font-variant-numeric: tabular-nums;
}
.timeline .what { color: var(--ink); }
@media (min-width: 700px) {
  .timeline li { grid-template-columns: 130px 1fr; gap: 16px; padding-left: 30px; }
  .timeline .when { padding-top: 1px; }
}

/* Referenzen */
.refs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.ref {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s, border-color .15s;
  min-width: 0;
}
.ref:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cfe6e1; }
.ref .year {
  align-self: flex-start;
  padding: 1px 9px;
  border-radius: 999px;
  background: var(--accent-lt);
  color: #0b5d57;
  font-size: .78rem;
  font-weight: 700;
}
.ref .site { font-weight: 700; color: var(--ink); overflow-wrap: anywhere; line-height: 1.3; }
.ref .desc { font-size: .9rem; color: var(--muted); line-height: 1.45; }
.ref-wide { grid-column: 1 / -1; }
.refs-note { margin: 14px 0 0; color: var(--muted); font-style: italic; }

footer { padding: 28px 0 40px; text-align: center; color: var(--muted); font-size: .88rem; }

@media print {
  .jump, .hero::before { display: none; }
  body, .hero { background: #fff; }
  .card, .ref { box-shadow: none; break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
