:root {
  --accent: #16606e;
  --accent-light: #e8f0f2;
  --text: #1d2630;
  --muted: #5a6672;
  --hairline: #d5dce1;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
@page { size: A4; margin: 13mm 15mm 14mm 15mm; }
html { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body {
  font-family: Ubuntu, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 9.6pt;
  line-height: 1.4;
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Topbar (nur Browser) ---------- */
.topbar {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: .6rem 1.4rem; padding: .7rem 1rem; font-size: .95rem;
}
.topbar a { font-weight: 500; }
.topbar .active { color: var(--text); font-weight: 700; cursor: default; }
.topbar .sep { color: var(--hairline); }

/* ---------- Kopf ---------- */
header.cv { display: flex; align-items: center; gap: 8mm; margin-bottom: 4.5mm; }
.head-text { flex: 1; }
h1 { font-size: 22pt; font-weight: 700; letter-spacing: .02em; }
.subtitle { font-size: 12pt; color: var(--accent); font-weight: 500; margin-top: 1mm; }
.availability { font-size: 9pt; color: var(--muted); margin-top: 2mm; }
.photo {
  width: 30mm; height: 30mm; border-radius: 50%;
  background: var(--accent-light);
  overflow: hidden; flex-shrink: 0;
  border: 1.5px solid var(--hairline);
}
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.contact {
  display: flex; flex-wrap: wrap; gap: 1.5mm 6mm;
  padding: 2.2mm 0; margin-bottom: 4mm;
  border-top: 1.5px solid var(--accent);
  border-bottom: 1px solid var(--hairline);
  font-size: 8.8pt;
}
.contact span b { color: var(--muted); font-weight: 500; margin-right: 1mm; }

/* ---------- Sektionen ---------- */
section { margin-bottom: 4.2mm; }
h2 {
  font-size: 10pt; text-transform: uppercase; letter-spacing: .09em;
  color: var(--accent); border-bottom: 1px solid var(--hairline);
  padding-bottom: 1mm; margin-bottom: 2.4mm;
}
.profile { text-align: justify; }

.entry { margin-bottom: 3.2mm; break-inside: avoid; }
.entry-head { display: flex; justify-content: space-between; align-items: baseline; gap: 5mm; }
.role { font-weight: 700; font-size: 10pt; }
.org { color: var(--muted); }
.dates { color: var(--muted); font-size: 8.8pt; white-space: nowrap; }
.entry-note { color: var(--muted); font-style: italic; margin: .6mm 0 .4mm; }
ul { list-style: none; margin-top: .8mm; }
li { padding-left: 3.6mm; position: relative; margin-bottom: .7mm; }
li::before { content: "▪"; color: var(--accent); position: absolute; left: 0; font-size: 7.5pt; top: .35mm; }

.early { color: var(--muted); font-size: 8.8pt; margin-top: 1.5mm; }

.project { margin-bottom: 2.4mm; break-inside: avoid; }
.plink { font-size: 8.6pt; }

.skill-row { display: flex; margin-bottom: 1.1mm; }
.skill-label { flex: 0 0 36mm; font-weight: 700; color: var(--accent); font-size: 8.8pt; padding-top: .2mm; }
.skill-val { flex: 1; }

.two-col { display: flex; gap: 10mm; }
.two-col > section { flex: 1; margin-bottom: 0; }

.page-break { break-before: page; }

/* ---------- Browser-Ansicht: Blatt-Optik ---------- */
@media screen {
  html { background: #eceff1; }
  main.sheet {
    max-width: 210mm; margin: 0 auto 10mm; padding: 13mm 15mm 14mm 15mm;
    background: #fff; box-shadow: 0 1mm 6mm rgba(0,0,0,.18);
  }
}

/* ---------- Mobil ---------- */
@media screen and (max-width: 680px) {
  main.sheet { margin: 0; padding: 6mm 5mm; box-shadow: none; max-width: none; }
  header.cv { flex-direction: row-reverse; gap: 4mm; }
  .photo { width: 22mm; height: 22mm; }
  h1 { font-size: 17pt; }
  .subtitle { font-size: 10.5pt; }
  .entry-head { flex-wrap: wrap; gap: 0 4mm; }
  .two-col { flex-direction: column; gap: 4mm; }
  .skill-row { flex-direction: column; }
  .skill-label { flex: none; }
}

/* ---------- Druck ---------- */
@media print {
  .topbar { display: none; }
  main.sheet { max-width: none; margin: 0; padding: 0; box-shadow: none; }
}
