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

:root {
  --bg: #F9F8F5;
  --surface: #FFFFFF;
  --text: #18181B;
  --text-2: #71717A;
  --text-3: #A1A1AA;
  --accent: #2B4C7E;
  --accent-lt: #EEF3FB;
  --border: #E4E4E7;
  --max-w: 880px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 248, 245, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13.5px;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── LAYOUT ── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── HERO ── */
.hero {
  padding: 96px 0 88px;
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-photo {
  flex-shrink: 0;
  width: 300px;
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 12%;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(54px, 10vw, 80px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 520px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.btn-dark {
  background: var(--text);
  color: #fff;
}

.btn-dark:hover {
  background: #333;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: #F0EFEC;
  transform: translateY(-1px);
}

/* ── SECTIONS ── */
section {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 44px;
}

/* ── ABOUT ── */
.about-text {
  font-size: 17px;
  line-height: 1.78;
  color: var(--text-2);
  max-width: 660px;
}

.about-text strong {
  color: var(--text);
  font-weight: 500;
}

/* ── EXPERIENCE ── */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.exp-item {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 0 32px;
}

.exp-dates {
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}

.exp-place {
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 5px;
}

.exp-company {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.exp-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 8px;
}

.exp-context {
  font-size: 12.5px;
  color: var(--text-3);
  font-style: italic;
  margin-bottom: 10px;
}

.exp-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.exp-bullets li {
  font-size: 13px;
  color: var(--text-2);
  padding-left: 16px;
  position: relative;
  line-height: 1.55;
}

.exp-bullets li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--text-3);
}

/* ── EDUCATION ── */
.edu-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.edu-item {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 0 32px;
}

.edu-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 8px;
  background: var(--accent-lt);
  color: var(--accent);
  border-radius: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.edu-school {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.edu-degree {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 4px;
}

.edu-thesis {
  font-size: 12px;
  color: var(--text-3);
  font-style: italic;
}

/* ── PROJECTS ── */
.project-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 36px;
  text-decoration: none;
  color: inherit;
  max-width: 560px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.09);
  transform: translateY(-3px);
}

.project-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.project-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}

.project-badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 11px;
  background: var(--accent-lt);
  color: var(--accent);
  border-radius: 999px;
  white-space: nowrap;
  margin-top: 4px;
}

.project-tagline {
  font-size: 13px;
  color: var(--text-3);
  font-style: italic;
  margin-bottom: 14px;
}

.project-desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.68;
  margin-bottom: 18px;
}

.project-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── ACTIVITIES ── */
.act-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.act-item {
  display: grid;
  grid-template-columns: 152px 1fr;
  gap: 0 32px;
}

.act-org {
  font-size: 14.5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.act-role {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 7px;
}

.act-desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.58;
}

/* ── SKILLS ── */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 32px;
}

.skill-block h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pill {
  font-size: 12.5px;
  padding: 4px 11px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-2);
  background: var(--surface);
}

/* ── FOOTER / CONTACT ── */
footer {
  padding: 80px 0 56px;
  border-top: 1px solid var(--border);
}

.footer-heading {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 6vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.footer-sub {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 36px;
  max-width: 420px;
  line-height: 1.6;
}

.footer-btns {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.footer-copy {
  font-size: 12px;
  color: var(--text-3);
}

/* ── IMPRESSUM & DATENSCHUTZ ── */
.impressum-bar {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.impressum-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.impressum-bar details {
  padding: 20px 0;
}

.impressum-bar summary {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.impressum-bar summary::-webkit-details-marker {
  display: none;
}

.impressum-bar summary::after {
  content: '+';
  font-size: 14px;
  transition: transform 0.2s;
}

.impressum-bar details[open] summary::after {
  content: '–';
}

.impressum-bar summary:hover {
  color: var(--text-2);
}

.impressum-content {
  margin-top: 20px;
  padding-bottom: 8px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px 40px;
}

.impressum-block h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.impressum-block p,
.impressum-block a {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  text-decoration: none;
}

.impressum-block a:hover {
  color: var(--text);
}

.impressum-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.6;
  max-width: 680px;
}

.impressum-bar details + details {
  border-top: 1px solid var(--border);
}

.dse-section {
  margin-top: 20px;
}

.dse-section h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}

.dse-section p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
}

.dse-section a {
  color: var(--accent);
  text-decoration: none;
}

.dse-section a:hover {
  text-decoration: underline;
}

/* ── FADE-IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 620px) {
  .exp-item,
  .edu-item,
  .act-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    padding: 56px 0 48px;
    flex-direction: column-reverse;
    gap: 32px;
  }

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

  section {
    padding: 56px 0;
  }

  footer {
    padding: 56px 0 40px;
  }

  .project-card {
    padding: 24px;
  }
}
