/* pau1.cloud – Portfolio von Paul Lohrey
   Farben: Papier weiss, Tinte Marineblau, Kobalt als Akzent,
   Gruen/Zinnober nur fuer Plus und Minus, Bernstein fuer Beta. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --paper: #ffffff;
  --fog: #f0f3fa;
  --ink: #101b45;
  --ink-soft: #4b5479;
  --line: #d6dcec;
  --cobalt: #2440f0;
  --cobalt-deep: #1a2fb8;
  --plus: #0b7a52;
  --plus-wash: #e6f4ee;
  --minus: #c23a1e;
  --minus-wash: #fbebe6;
  --amber: #a86200;
  --amber-wash: #fbf1dd;
  --slate-wash: #e8ebf4;

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --top-h: 60px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--cobalt); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cobalt-deep); }
button { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  border-radius: 6px;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Kopfzeile ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--top-h);
}
.top__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.top__nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
  overflow-x: auto;
  scrollbar-width: none;
}
.top__nav::-webkit-scrollbar { display: none; }
.top__nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  padding: 8px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
.top__nav a:hover { color: var(--ink); background: var(--fog); }
.top__tools { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.lang button {
  border: 0;
  background: transparent;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--fog); color: var(--ink); }
.btn--solid { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.btn--solid:hover { background: var(--cobalt-deep); border-color: var(--cobalt-deep); color: #fff; }
.btn--small { padding: 7px 12px; font-size: 14px; }

/* ---------- Profil ---------- */

.hero { padding: clamp(28px, 5vw, 56px) 0 clamp(24px, 4vw, 44px); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.hero__role {
  font-weight: 600;
  color: var(--cobalt);
  font-size: 17px;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero__lead {
  margin-top: 20px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 62ch;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.card-id {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
}
.card-id__top { display: flex; gap: 16px; align-items: center; padding: 16px; background: var(--fog); }
.card-id__top img { width: 92px; height: 92px; border-radius: 10px; object-fit: cover; flex: none; }
.card-id__name { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.1; }
.card-id__where { color: var(--ink-soft); font-size: 15px; margin-top: 4px; }
.facts { padding: 6px 16px 10px; }
.facts > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
}
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { font-weight: 600; }

/* ---------- Bilanz: Plus und Minus ---------- */

.ledger { background: var(--fog); padding: clamp(32px, 5vw, 64px) 0; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 20px; margin-bottom: clamp(18px, 3vw, 32px); }
.sec-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.sec-head p { color: var(--ink-soft); max-width: 60ch; }

.ledger__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 28px); }
.side {
  background: var(--paper);
  border-radius: 16px;
  padding: clamp(18px, 2.6vw, 30px);
  border-top: 6px solid var(--plus);
}
.side--minus { border-top-color: var(--minus); }
.side__head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.side__sign {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 8vw, 104px);
  line-height: 0.7;
  color: var(--plus);
  width: 0.62em;
  text-align: center;
  flex: none;
  transform: translateY(-0.04em);
}
.side--minus .side__sign { color: var(--minus); }
.side__head h3 { font-family: var(--display); font-weight: 700; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.1; letter-spacing: -0.01em; }
.side li { padding: 15px 0; border-bottom: 1px solid var(--line); }
.side li:last-child { border-bottom: 0; padding-bottom: 0; }
.side li strong { display: block; font-size: 18px; line-height: 1.3; }
.side li p { color: var(--ink-soft); margin-top: 4px; font-size: 16px; }
.side li .proof { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.proof a, .proof span {
  font-size: 13.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--plus-wash);
  color: var(--plus);
}
.proof a:hover { background: var(--plus); color: #fff; }
.side--minus .proof span { background: var(--minus-wash); color: var(--minus); }
.ledger__note { margin-top: 18px; color: var(--ink-soft); font-size: 15px; max-width: 80ch; }

@media (prefers-reduced-motion: no-preference) {
  .ledger.is-in .side li { animation: rise 0.5s both cubic-bezier(0.2, 0.7, 0.2, 1); }
  .ledger.is-in .side li:nth-child(2) { animation-delay: 0.06s; }
  .ledger.is-in .side li:nth-child(3) { animation-delay: 0.12s; }
  .ledger.is-in .side li:nth-child(4) { animation-delay: 0.18s; }
  .ledger.is-in .side li:nth-child(5) { animation-delay: 0.24s; }
  .ledger.is-in .side li:nth-child(6) { animation-delay: 0.3s; }
  @keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ---------- Katalog ---------- */

.catalog { padding: clamp(36px, 5vw, 72px) 0; }
.cat-tools {
  position: sticky;
  top: var(--top-h);
  z-index: 10;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.cat-tools__row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.chip small { font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip[aria-pressed="true"] small { color: #c5cbe6; }

.cat-tools__right { display: flex; gap: 10px; align-items: center; margin-left: auto; flex-wrap: wrap; }
.search {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  width: 200px;
  background: var(--paper);
}
.search::placeholder { color: var(--ink-soft); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: transparent; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cat-sub { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cat-count { color: var(--ink-soft); font-size: 15px; }
.chips--quiet .chip { padding: 4px 10px; font-size: 13.5px; font-weight: 600; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--slate-wash);
  color: var(--ink-soft);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live { background: var(--plus-wash); color: var(--plus); }
.status--beta { background: var(--amber-wash); color: var(--amber); }

/* Aufmacher: HyperLevel steht immer zuerst */
.spot {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  border: 2px solid var(--ink);
  border-radius: 16px;
  overflow: hidden;
  background: var(--paper);
  margin-bottom: 22px;
  scroll-margin-top: 90px;
}
.spot:target { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(36, 64, 240, 0.18); }
.spot__shot { display: block; background: var(--ink); border-right: 2px solid var(--ink); overflow: hidden; }
.spot__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.spot__body { padding: clamp(18px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.spot .tile__head h3 { font-size: clamp(28px, 3vw, 38px); font-stretch: 88%; letter-spacing: -0.02em; }
.spot .tile__kind { font-size: 18px; }
.spot .tile__text { font-size: 16.5px; }
.spot__points { display: flex; flex-wrap: wrap; gap: 6px; }
.spot__points li { font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--fog); }
.spot__cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 22px); }
.tile {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--paper);
  scroll-margin-top: 140px;
}
.tile:target { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(36, 64, 240, 0.18); }
.tile__shot {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--fog);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
}
.tile__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
a.tile__shot:hover img { transform: scale(1.02); transition: transform 0.3s ease; }
.tile__shot--plate { aspect-ratio: auto; height: 92px; }
.plate {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0 18px;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 80%;
  font-size: 52px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
  background: var(--ink);
}
.plate[data-tone="1"] { background: var(--cobalt); }
.plate[data-tone="2"] { background: #dfe5f7; color: var(--ink); }
.plate[data-tone="3"] { background: var(--plus); }
.plate[data-tone="4"] { background: #f4e3c2; color: var(--ink); }
.tile__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tile__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tile__head h3 { font-family: var(--display); font-weight: 700; font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; }
.tile__kind { font-weight: 600; font-size: 15.5px; }
.tile__text { color: var(--ink-soft); font-size: 15.5px; line-height: 1.45; }
.tile__note {
  font-size: 14.5px;
  line-height: 1.4;
  padding-left: 12px;
  border-left: 3px solid var(--cobalt);
}
.tile__foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.tile__stack { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; }
.tile__link { font-weight: 600; font-size: 14.5px; white-space: nowrap; }

.empty { border: 1px dashed var(--line); border-radius: 14px; padding: 32px; text-align: left; }
.empty p { margin-bottom: 12px; }

/* Listenansicht */
.list { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.row {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) minmax(0, 2.6fr) minmax(0, 1.5fr) 96px minmax(0, 1fr);
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.4;
  align-items: start;
  scroll-margin-top: 140px;
}
.row:last-child { border-bottom: 0; }
.row:nth-child(even) { background: #fafbfe; }
.row--head { background: var(--fog) !important; font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.row__name { font-family: var(--display); font-weight: 700; font-size: 17px; }
.row__what strong { font-weight: 600; }
.row__what span { color: var(--ink-soft); }
.row__stack { color: var(--ink-soft); font-size: 14px; }
.row__link { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }

/* ---------- Werdegang ---------- */

.cv { background: var(--fog); padding: clamp(36px, 5vw, 72px) 0; }
.cv__grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.station {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr);
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.station:first-child { border-top: 0; padding-top: 0; }
.station__when { font-family: var(--display); font-weight: 700; font-size: 18px; line-height: 1.3; }
.station__when small { display: block; font-family: var(--body); font-weight: 500; font-size: 14px; color: var(--ink-soft); }
.station h3 { font-family: var(--display); font-weight: 700; font-size: 21px; line-height: 1.2; }
.station__org { color: var(--ink-soft); font-weight: 600; margin-top: 2px; }
.station ul { margin-top: 10px; display: grid; gap: 6px; }
.station li { position: relative; padding-left: 16px; font-size: 16px; line-height: 1.45; }
.station li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); }

.aside-box { background: var(--paper); border-radius: 14px; padding: 20px; margin-bottom: 16px; }
.aside-box h3 { font-family: var(--display); font-weight: 700; font-size: 19px; margin-bottom: 10px; }
.aside-box li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.4; }
.aside-box li:first-child { border-top: 0; padding-top: 0; }
.aside-box li small { display: block; color: var(--ink-soft); font-size: 14px; }
.skill b { display: block; font-weight: 700; }
.skill span { color: var(--ink-soft); font-size: 14.5px; }

/* ---------- Kontakt ---------- */

.contact { padding: clamp(40px, 6vw, 88px) 0; }
.contact h2 {
  font-family: var(--display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: clamp(30px, 4.6vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  max-width: 20ch;
  text-wrap: balance;
}
.contact p { margin-top: 16px; color: var(--ink-soft); max-width: 58ch; font-size: 18px; }
.contact__mail {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 44px);
  letter-spacing: -0.02em;
  text-decoration-thickness: 2px;
}
.contact__row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.foot { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--ink-soft); font-size: 14.5px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

.print-only { display: none; }

/* ---------- Schmal ---------- */

@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; }
  .card-id { max-width: 520px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spot { grid-template-columns: 1fr; }
  .spot__shot { border-right: 0; border-bottom: 2px solid var(--ink); aspect-ratio: 16 / 9; }
  .cv__grid { grid-template-columns: 1fr; }
  .row { grid-template-columns: minmax(120px, 1fr) minmax(0, 2.2fr) 96px; }
  .row__stack, .row__link, .row--head .row__stack, .row--head .row__link { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top__in { gap: 12px; }
  .top__nav { display: none; }
  .top__tools { margin-left: auto; }
  .ledger__grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr; }
  .cat-tools { position: static; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); max-width: 100vw; }
  .chips::-webkit-scrollbar { display: none; }
  .cat-tools__right { margin-left: 0; width: 100%; flex-wrap: nowrap; }
  .cat-sub { flex-direction: column; align-items: flex-start; }
  .search { flex: 1; width: auto; min-width: 0; }
  .station { grid-template-columns: 1fr; gap: 6px; }
  .row { grid-template-columns: 1fr auto; gap: 6px 12px; }
  .row--head { display: none; }
  .row__what { grid-column: 1 / -1; grid-row: 2; }
  .facts > div { grid-template-columns: 100px minmax(0, 1fr); }
}
@media (max-width: 420px) {
  .btn--print span { display: none; }
}

/* ---------- Druck: zwei bis drei Seiten Lebenslauf ---------- */

@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  html { scroll-behavior: auto; }
  body { font-size: 10.5pt; line-height: 1.4; }
  .top, .skip, .cat-tools, .hero__cta, .contact__row, .foot, .tile__shot, .grid, .spot, .empty, .cat-sub, .ledger__note { display: none !important; }
  .print-only { display: block; }
  .wrap { max-width: none; padding: 0; }
  .hero { padding: 0 0 8mm; }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 62mm; gap: 8mm; }
  .hero h1 { font-size: 22pt; max-width: none; }
  .hero__lead { font-size: 10.5pt; margin-top: 3mm; }
  .card-id__top img { width: 22mm; height: 22mm; }
  .card-id__name { font-size: 13pt; }
  .facts > div { grid-template-columns: 24mm 1fr; padding: 1.2mm 0; font-size: 9pt; }
  .ledger, .cv { background: none; padding: 0 0 6mm; }
  .catalog, .contact { padding: 0 0 6mm; }
  .sec-head { margin-bottom: 3mm; }
  .sec-head h2, .contact h2 { font-size: 15pt; }
  .sec-head p { font-size: 9.5pt; }
  .ledger__grid { grid-template-columns: 1fr 1fr; gap: 6mm; }
  .side { padding: 3mm 0 0; border-radius: 0; border-top-width: 2pt; }
  .side__sign { font-size: 30pt; }
  .side__head h3 { font-size: 12pt; }
  .side li { padding: 2mm 0; break-inside: avoid; animation: none !important; }
  .side li strong { font-size: 10.5pt; }
  .side li p { font-size: 9.5pt; }
  .proof { display: none !important; }
  .list { display: block !important; border: 0; border-radius: 0; }
  .row { grid-template-columns: 34mm 1fr 20mm 38mm; gap: 4mm; padding: 1.6mm 0; font-size: 8.8pt; break-inside: avoid; background: none !important; }
  .row__stack { display: none; }
  .row__link { display: block; font-size: 8pt; }
  .row__name { font-size: 9.5pt; }
  .status { padding: 0; background: none !important; font-size: 8.5pt; }
  .cv__grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 8mm; }
  .station { grid-template-columns: 24mm 1fr; gap: 4mm; padding: 3mm 0; break-inside: avoid; }
  .station__when { font-size: 10pt; }
  .station h3 { font-size: 11.5pt; }
  .station li { font-size: 9.5pt; }
  .aside-box { padding: 0; margin-bottom: 5mm; break-inside: avoid; }
  .aside-box h3 { font-size: 11pt; margin-bottom: 1.5mm; }
  .aside-box li { font-size: 9.5pt; padding: 1.2mm 0; }
  .contact h2 { max-width: none; }
  .contact p { font-size: 10pt; margin-top: 2mm; }
  .contact__mail { font-size: 13pt; margin-top: 2mm; }
  a { color: var(--ink); text-decoration: none; }
  /* Reihenfolge im Lebenslauf: Profil mit Plus und Minus, Werdegang, Katalog, Kontakt */
  main { display: flex; flex-direction: column; }
  .hero { order: 1; padding-bottom: 5mm; }
  .ledger { order: 2; }
  .cv { order: 3; break-before: page; }
  .catalog { order: 4; break-before: page; }
  .contact { display: none; }
  .card-id__contact { padding: 1.5mm 3mm 2.5mm; border-top: 1px solid var(--line); font-size: 8.6pt; font-weight: 600; line-height: 1.45; }
  .side li { padding: 1.5mm 0; }
  .side li p { font-size: 9pt; margin-top: 0.5mm; }
  .row__what span { display: none; }
  .row__what { grid-column: auto; grid-row: auto; }
  .row { grid-template-columns: 42mm 1fr 30mm 40mm; padding: 1.15mm 0; align-items: baseline; }
  .row--head { display: grid; }
  .row--head .row__link, .row__link { display: block; }

  /* Seite 1: Profil und Bilanz */
  .hero__grid { grid-template-columns: minmax(0, 1fr) 74mm; gap: 7mm; }
  .hero h1 { font-size: 20pt; }
  .card-id__top { padding: 3mm; gap: 3mm; }
  .card-id__top img { width: 17mm; height: 17mm; }
  .facts { padding: 1mm 3mm 1.5mm; }
  .facts > div { grid-template-columns: 21mm 1fr; gap: 2mm; padding: 1mm 0; font-size: 8.4pt; line-height: 1.3; }
  .side li { padding: 1.2mm 0; }
  .side li strong { font-size: 10pt; }
  .side li p { font-size: 8.8pt; line-height: 1.35; }
  .side__head { margin-bottom: 1mm; }

  /* Seite 2: Werdegang */
  .cv__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 7mm; }
  .station { padding: 2.2mm 0; }
  .station ul { margin-top: 1.2mm; gap: 0.5mm; }
  .station li { font-size: 9pt; line-height: 1.35; padding-left: 3.5mm; }
  .station__org { font-size: 9.5pt; }
  .aside-box { margin-bottom: 3.5mm; }
  .aside-box li { font-size: 8.8pt; padding: 0.8mm 0; line-height: 1.3; }
  .aside-box li small, .skill span { font-size: 8.4pt; }

  /* Seite 3: Katalog, eine Zeile pro Projekt */
  .row { grid-template-columns: 38mm 1fr 27mm 35mm; gap: 3mm; padding: 0.7mm 0; font-size: 8pt; line-height: 1.25; }
  .row__name { font-size: 8.6pt; }
  .row__link { font-size: 7.6pt; }
  .status { font-size: 7.8pt; }
  .status::before { width: 5px; height: 5px; }
  .catalog { padding-bottom: 3mm; }
  .contact h2 { font-size: 12pt; }
  .contact p { font-size: 9pt; margin-top: 1mm; }
  .contact__mail { font-size: 11pt; margin-top: 1mm; }
}
