/* =============================================
   Akademische Persönliche Website – Stylesheet
   ============================================= */

/*
  Schriften werden lokal gehostet – keine externen Anfragen.
  Dateien gehören in einen Unterordner: fonts/

  Brill (Serif, für Überschriften und Fließtext):
    fonts/Brill-Roman.woff2
    fonts/Brill-Italic.woff2
    fonts/Brill-Bold.woff2       (optional, für h2 usw.)
    fonts/Brill-BoldItalic.woff2 (optional)

  Für die UI-Schrift (Navigation, Metadaten) wird die
  systemnahe Schrift verwendet – kein Download nötig.

  Brill herunterladen: https://brill.com/page/BrillFont/brill-typeface
  .ttf → .woff2 konvertieren: https://www.fontsquirrel.com/tools/webfont-generator
*/

@font-face {
  font-family: 'Brill';
  src: url('fonts/Brill-Roman.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brill';
  src: url('fonts/Brill-Italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Brill';
  src: url('fonts/Brill-Bold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Brill';
  src: url('fonts/Brill-BoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg:        #e8e8e8;
  --surface:   #ffffff;
  --text:      #1a1a1a;
  --muted:     #3a3a3a;
  --accent:    #2a4a7f;
  --accent-lt: #e8edf5;
  --border:    #e0dbd4;
  --nav-h:     60px;
  --max-w:     740px;
  --serif:     'Brill', Georgia, serif;
  --sans:      system-ui, 'Segoe UI', Helvetica, Arial, sans-serif;
}

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

html { font-size: 18px; scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}

.nav-inner {
  width: 100%;
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 3px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-lt);
}

.nav-links .nav-sep {
  width: 1px;
  height: 14px;
  background: var(--border);
  margin: 0 0.25rem;
}

/* ── Main Content ── */
main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--max-w) + 80px);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}

/* ── Page Header ── */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.1rem;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.01em;
}

.page-header .subtitle {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* ── Hero (Startseite) ── */
.hero {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.hero-text h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 2.6rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.hero-text .role {
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 400;
  margin-bottom: 1.2rem;
}

.hero-text p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ── Sections ── */
section {
  margin-bottom: 2.8rem;
}

section h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 1.1rem;
  letter-spacing: 0.01em;
}

section h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

/* ── CV Entries ── */
.cv-entry {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0 1.5rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
}

.cv-entry:last-child { border-bottom: none; }

.cv-year {
  font-size: 0.8rem;
  color: var(--muted);
  padding-top: 0.15rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cv-entry h3 { margin-bottom: 0.1rem; }

.cv-entry p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Publikationen ── */
.pub-entry {
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.pub-entry:last-child { border-bottom: none; }

.pub-entry .pub-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.4;
  margin-bottom: 0.25rem;
}

.pub-entry .pub-meta {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}

.pub-entry .pub-links {
  margin-top: 0.4rem;
  display: flex;
  gap: 0.8rem;
}

/* ── Links / Tags ── */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

.tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: var(--accent-lt);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.15s;
}

.tag-link:hover {
  background: #d0daf0;
  text-decoration: none;
}

/* ── Kontakt / Impressum ── */
.prose p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.8;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.contact-list li {
  font-size: 0.9rem;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.contact-list .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  min-width: 80px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--accent); }

/* ── Responsive ── */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .nav-name { display: none; }
  .nav-links a { padding: 0.3rem 0.45rem; font-size: 0.72rem; }
  .hero { flex-direction: column; gap: 1.5rem; }
  .cv-entry { grid-template-columns: 1fr; gap: 0.1rem; }
  .cv-year { font-size: 0.75rem; }
}
