/* ===== pflaum.biz — Full Monospace Theme ===== */

/* ===== Self-hosted JetBrains Mono ===== */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('fonts/JetBrainsMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

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

:root {
  --font: 'JetBrains Mono', monospace;
  --bg: #fafafa;
  --surface: #fff;
  --text: #111;
  --text-secondary: #555;
  --text-muted: #999;
  --border: #e0e0e0;
  --accent: #111;
  --link: #111;
  --link-hover: #555;
  --card-bg: #f4f4f4;
  --max-width: 640px;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  padding: 0 1.25rem;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.15s;
}

a:hover {
  color: var(--link-hover);
}

/* ===== Layout ===== */

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 0 3rem;
}

section {
  margin-bottom: 3.5rem;
}

/* ===== Section Headers ===== */

.section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ===== Hero ===== */

.hero {
  text-align: center;
  margin-bottom: 4rem;
}

.hero-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1.5rem;
  border: 2px solid var(--border);
}

.hero-name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.hero-tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.hero-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ===== Career ===== */

.career-item {
  margin-bottom: 1.75rem;
}

.career-item:last-child {
  margin-bottom: 0;
}

.career-company {
  font-weight: 700;
  font-size: 0.9rem;
}

.career-title {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.career-period {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.career-desc {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ===== Education ===== */

.edu-item {
  margin-bottom: 1rem;
}

.edu-item:last-child {
  margin-bottom: 0;
}

.edu-school {
  font-weight: 600;
  font-size: 0.85rem;
}

.edu-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ===== Prize ===== */

.prize-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.prize-thesis {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.prize-link {
  font-size: 0.75rem;
}

/* ===== Projects ===== */

.project-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.project-card:last-child {
  margin-bottom: 0;
}

.project-name {
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.15rem;
}

.project-name a {
  text-decoration: none;
}

.project-name a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.project-year {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ===== Links / Contact ===== */

.links-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.links-list a {
  font-size: 0.85rem;
  font-weight: 500;
}

/* ===== Footer ===== */

footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

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

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

/* ===== Impressum Page ===== */

.impressum-content h2 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

.impressum-content h2:first-child {
  margin-top: 0;
}

.impressum-content p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.back-link {
  display: inline-block;
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

.contact-image {
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

/* ===== Responsive ===== */

@media (max-width: 480px) {
  .container {
    padding: 2.5rem 0 2rem;
  }

  .hero-name {
    font-size: 1.3rem;
  }

  .hero-photo {
    width: 100px;
    height: 100px;
  }

  section {
    margin-bottom: 2.5rem;
  }

  .links-list {
    flex-direction: column;
    gap: 0.75rem;
  }
}
