/* Webseite Hella Rabus – gemeinsames Stylesheet (2026) */

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --ink: #16191D;
  --ink-2: #2E343C;
  --muted: #4A515C;
  --subtle: #5B6370;
  --line: #E3E5E8;
  --line-soft: #EEF0F2;
  --chip-line: #D5D9DE;
  --accent: #1D4E89;
  --accent-hover: #153A66;
  --accent-soft: #EEF2F7;
  --archive: #5C4A1E;
  --archive-soft: #F1EFEA;
  --code-bg: #16191D;
  --code-ink: #F3F4F6;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

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

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
/* Sprungziele nicht unter der fixierten Kopfzeile verstecken */
[id] { scroll-margin-top: 96px; }
.site-header .bar {
  display: flex; flex-wrap: wrap; gap: 8px 32px;
  align-items: center; justify-content: space-between;
  padding-top: 14px; padding-bottom: 14px;
}
.brand {
  color: var(--ink); text-decoration: none; font-weight: 600;
  font-size: 17px; letter-spacing: -0.01em; padding: 10px 0;
}
.brand:hover { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px; }
.site-nav a {
  padding: 10px 14px; border-radius: 6px; text-decoration: none;
  font-size: 15px; line-height: 1.6; color: var(--muted);
}
.site-nav a:hover { color: var(--ink); background: var(--line-soft); }

body.page-start .nav-start,
body.page-lehre .nav-lehre,
body.page-forschung .nav-forschung,
body.page-cv .nav-cv {
  color: var(--accent); background: var(--accent-soft); font-weight: 500;
}

/* ---------- Typografie ---------- */

.eyebrow {
  margin: 0; font-family: var(--mono); font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle);
}
.label {
  display: block; font-family: var(--mono); font-size: 12px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle);
}
.heading { display: flex; flex-direction: column; gap: 6px; }
.heading h2 { margin: 0; font-size: 28px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.heading.small h2 { font-size: 24px; letter-spacing: -0.015em; }

h1 { margin: 0; font-weight: 600; letter-spacing: -0.03em; }
.display { font-size: 60px; line-height: 1.04; letter-spacing: -0.035em; }
.display .pronouns { font-size: 20px; font-weight: 400; letter-spacing: 0; color: var(--subtle); }
.title { font-size: 48px; line-height: 1.08; }
.lead { margin: 0; font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 34em; }
.lead-sm { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 40em; }
.muted { color: var(--subtle); }

code {
  font-family: var(--mono); font-size: 14px; background: var(--line-soft);
  padding: 1px 6px; border-radius: 4px;
}
pre {
  margin: 0; padding: 16px 20px; background: var(--code-bg); color: var(--code-ink);
  border-radius: 6px; font-family: var(--mono); font-size: 14px; line-height: 1.6;
  overflow-x: auto; max-width: 44em;
}

/* ---------- Kopfbereich (Hero) ---------- */

.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 72px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 16px; }
.hero-home {
  padding-top: 96px; padding-bottom: 88px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hero-text { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-text .research { margin: 0; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 38em; }
.hero-photo { flex: 1 1 240px; max-width: 300px; }
.portrait { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; }
.hero-cv { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; padding-top: 72px; padding-bottom: 64px; }
.hero-cv .hero-text { gap: 16px; }
.hero-cv .portrait { width: 160px; }

/* ---------- Abschnitte ---------- */

.section { padding-top: 80px; padding-bottom: 24px; display: flex; flex-direction: column; gap: 32px; }
.section:last-child { padding-bottom: 96px; }
.section-tight { padding-top: 56px; padding-bottom: 0; }

/* Semester- bzw. Gruppenblöcke: links Bezeichnung, rechts Einträge */
.block {
  display: flex; flex-wrap: wrap; gap: 24px 48px;
  border-top: 1px solid var(--line); padding-top: 32px;
}
.block-label { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; }
.block-label .semester { font-family: var(--mono); font-size: 20px; font-weight: 500; }
.block-label .group { font-size: 18px; font-weight: 600; }
.block-label .note { font-size: 14px; color: var(--subtle); }
.block-items { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.block-items > p { margin: 0; color: var(--muted); }

/* Klickbare Kurszeile */
.row-link {
  display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
  text-decoration: none; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease;
}
.row-link:hover { color: var(--ink); border-color: #C7CDD4; box-shadow: 0 1px 2px rgba(22, 25, 29, .06); }
.row-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-kind { font-size: 13px; color: var(--subtle); }
.row-title { font-size: 17px; font-weight: 600; line-height: 1.4; }
.row-sub { font-size: 14px; color: var(--subtle); }
.row-link.soft { background: var(--accent-soft); border-color: transparent; }

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

.contact {
  display: flex; flex-wrap: wrap; gap: 40px;
  border-top: 1px solid var(--line); padding-top: 32px;
}
.contact > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.contact .en { font-size: 12px; color: var(--subtle); }
.contact h3 { margin: 0; font-size: 15px; font-weight: 600; }
.contact address { font-style: normal; line-height: 1.65; }

/* ---------- Tabellen ---------- */

.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.table-box table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.table-box th[scope="col"] {
  text-align: left; padding: 14px 24px; font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--subtle); border-bottom: 1px solid var(--line);
}
.table-box td, .table-box th[scope="row"] {
  vertical-align: top; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); text-align: left;
}
.table-box tr:last-child td, .table-box tr:last-child th { border-bottom: 0; }
.table-box th[scope="row"], .table-box td.sem { font-family: var(--mono); font-size: 14px; font-weight: 500; white-space: nowrap; }
.table-box td { color: var(--ink-2); }

/* ---------- Publikationen ---------- */

.count { font-family: var(--mono); font-size: 14px; color: var(--subtle); }
.heading-row { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: flex-end; justify-content: space-between; }
.pubs { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.pubs li { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.pub-year { flex: 0 0 72px; font-family: var(--mono); font-size: 15px; color: var(--subtle); padding-top: 2px; }
.pub-body { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.pub-title { font-size: 18px; font-weight: 600; line-height: 1.4; }
.pub-authors { font-size: 15px; color: var(--ink-2); }
.pub-venue { font-size: 15px; line-height: 1.55; color: var(--subtle); }
.pub-link { align-self: flex-start; margin-top: 4px; font-size: 14px; font-weight: 500; text-decoration: none; }

/* ---------- Lebenslauf ---------- */

.split { display: flex; flex-wrap: wrap; gap: 24px 48px; }
.split > .heading { flex: 1 1 240px; }
.split > .heading h2 { font-size: 22px; line-height: 1.35; letter-spacing: -0.015em; }
.split > .split-body { flex: 999 1 560px; min-width: 0; }

.duties { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.duties li {
  display: flex; flex-wrap: wrap; gap: 4px 24px; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.duties .when { font-family: var(--mono); font-size: 14px; color: var(--subtle); }

.timeline { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--chip-line); }
.timeline li { position: relative; padding: 0 0 36px 32px; display: flex; flex-direction: column; gap: 6px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: -5px; top: 6px; width: 9px; height: 9px;
  border-radius: 50%; background: #AEB5BE;
}
.timeline li.now::before { background: var(--accent); }
.timeline .when { font-family: var(--mono); font-size: 14px; color: var(--subtle); }
.timeline .what { font-size: 17px; font-weight: 600; line-height: 1.45; }
.timeline .detail { font-size: 15px; line-height: 1.6; color: var(--muted); max-width: 40em; }

/* ---------- Lehre: Seitenleiste + Inhalt ---------- */

.lehre-layout {
  display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: flex-start;
  padding-top: 40px; padding-bottom: 96px;
}
.lehre-side { flex: 1 1 240px; min-width: 0; }
.lehre-side nav { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.side-group { display: flex; flex-direction: column; gap: 2px; }
.side-title {
  padding: 0 12px 8px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle);
}
.side-group a {
  display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink-2);
  text-decoration: none; font-size: 15px; line-height: 1.4;
}
.side-group a:hover { background: var(--line-soft); color: var(--ink); }

body.kurs-ewr .side-ewr,
body.kurs-ami .side-ami,
body.kurs-block .side-block,
body.kurs-ana .side-ana,
body.kurs-ppi .side-ppi,
body.kurs-lina .side-lina,
body.hilfe-install .side-install,
body.hilfe-ide .side-ide,
body.hilfe-bibs .side-bibs,
body.hilfe-sphinx .side-sphinx,
body.hilfe-latex .side-latex,
body.hilfe-matlab .side-matlab,
body.hilfe-applets .side-applets {
  background: var(--accent-soft); color: var(--accent); font-weight: 500;
}

.lehre-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.page-head { display: flex; flex-direction: column; gap: 14px; }
.page-head h1 { font-size: 44px; line-height: 1.1; }
.page-head .sub { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.page-head .intro { margin: 8px 0 0; font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 42em; }
.crumbs { font-size: 14px; color: var(--subtle); }
.crumbs a { color: var(--subtle); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.chip { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--chip-line); font-size: 13px; line-height: 1.5; color: var(--muted); }
.chip-archive { border-color: transparent; background: var(--archive-soft); color: var(--archive); font-weight: 500; }

.callout {
  display: flex; flex-direction: column; gap: 8px; padding: 20px 24px;
  border-radius: 8px; background: var(--accent-soft); max-width: 44em;
}
.callout-title { font-size: 14px; font-weight: 600; color: var(--accent); }
.callout p { margin: 0; color: var(--ink-2); }
.callout.archive { background: var(--archive-soft); }
.callout.archive .callout-title { color: var(--archive); }

.content-section { display: flex; flex-direction: column; gap: 16px; border-top: 1px solid var(--line); padding-top: 32px; }
.content-section > p, .content-section > ul, .content-section > ol, .content-section > dl { max-width: 44em; }
.content-section p { margin: 0; line-height: 1.7; color: var(--ink-2); }
.content-section ul, .content-section ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); }
.content-section .note { font-size: 15px; color: var(--subtle); }
.content-section h3 { margin: 12px 0 0; font-size: 18px; font-weight: 600; line-height: 1.4; }
.content-section li > ul, .content-section li > ol { margin-top: 8px; }
.content-section li > pre { margin: 8px 0; }
.content-section code { overflow-wrap: anywhere; }
pre code { background: none; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; }

/* Inhaltsverzeichnis der Hilfeseiten */
.toc {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 24px; max-width: 44em;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px;
}
.toc-title { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.toc ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts dt { flex: 1 1 200px; font-weight: 600; }
.facts dd { flex: 999 1 320px; margin: 0; color: var(--ink-2); }
.facts.stacked > div { flex-direction: column; }
.facts.stacked dt, .facts.stacked dd { flex: none; }

.cards { display: flex; flex-wrap: wrap; gap: 16px; }
.card {
  flex: 1 1 280px; min-width: 0; padding: 24px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; gap: 10px;
}
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card h3 { margin: 0; font-size: 18px; font-weight: 600; }
.card .sws { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.card .times { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--ink); }
.card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.literature { padding: 0 !important; list-style: none; border-top: 1px solid var(--line); gap: 0 !important; }
.literature li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.6; }
.literature a { font-weight: 500; }
.literature span { display: block; color: var(--subtle); }

/* ---------- Fußzeile ---------- */

.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .bar {
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--subtle);
}

/* ---------- Kleine Bildschirme ---------- */

/* Sobald Seitenleiste und Inhalt untereinander stehen: Inhalt zuerst */
@media (max-width: 920px) {
  .lehre-side { order: 2; flex-basis: 100%; border-top: 1px solid var(--line); padding-top: 24px; }
}

@media (max-width: 640px) {
  .wrap, .wrap-wide { padding: 0 20px; }
  .hero-home { padding-top: 56px; padding-bottom: 56px; gap: 32px; }
  .hero-inner, .hero-cv { padding-top: 48px; padding-bottom: 40px; }
  .display { font-size: 40px; }
  .title { font-size: 36px; }
  .page-head h1 { font-size: 32px; }
  .lead { font-size: 18px; }
  .section { padding-top: 56px; }
  .heading h2 { font-size: 24px; }
  .row-link { padding: 16px 18px; }
  .lehre-layout { padding-top: 24px; }
}

@media print {
  .site-header, .lehre-side, .site-footer { display: none; }
  body { background: #FFFFFF; }
}
