:root {
  --color-bg: #f5f2ed;
  --color-text: #2c2c2c;
  --color-muted: #7a7468;
  --color-rule: #c8c1b6;
  --color-accent: #8b7d6b;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "DM Sans", Helvetica, sans-serif;
  --max-width: 680px;
  --space-section: 6rem;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 300;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* --- Navigation --- */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-rule);
}

nav .nav-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 1.25rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .site-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-text);
  text-decoration: none;
}

nav .nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

nav ul a {
  white-space: nowrap;
}

nav a {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

/* --- Language Toggle --- */
.lang-toggle {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  border-left: 1px solid var(--color-rule);
  padding-left: 2rem;
}

.lang-btn {
  background: none;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  padding: 2px 4px;
  opacity: 0.45;
  transition:
    opacity 0.3s ease,
    border-color 0.3s ease;
}

.lang-btn:hover {
  opacity: 0.8;
}

.lang-btn.active {
  opacity: 1;
  border-color: var(--color-accent);
}

/* --- Main Content --- */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Cover Image --- */
.cover {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 4rem;
  padding-top: 4rem;
  border-radius: 4px;
}

/* --- Portrait (Über mich) --- */
.portrait {
  float: left;
  width: 220px;
  height: auto;
  margin: 0.5rem 1.8rem 0.5rem 0;
  border-radius: 4px;
  shape-outside: inset(0 round 4px);
}

.page-content::after {
  content: "";
  display: block;
  clear: both;
}

/* --- Hero (index) --- */
.hero {
  padding-top: 4rem;
  padding-bottom: var(--space-section);
  text-align: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.05rem;
  color: var(--color-muted);
  max-width: 480px;
  margin: 0 auto;
}

/* --- Preview Cards (index) --- */
.previews {
  padding: var(--space-section) 0;
}

.preview-card {
  display: block;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--color-rule);
  text-decoration: none;
  color: var(--color-text);
  transition: padding-left 0.3s ease;
}

.preview-card:first-child {
  border-top: 1px solid var(--color-rule);
}

.preview-card:hover {
  padding-left: 1rem;
}

.preview-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.6rem;
  white-space: nowrap;
}

.preview-card h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.preview-card p {
  font-size: 0.95rem;
  color: var(--color-muted);
}

.preview-arrow {
  display: inline-block;
  margin-left: 0.3rem;
  transition: margin-left 0.3s ease;
  color: var(--color-accent);
}

.preview-card:hover .preview-arrow {
  margin-left: 0.8rem;
}

/* --- Subpage Header --- */
.page-header {
  padding-top: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--color-rule);
}

.page-header .section-label {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1rem;
  white-space: nowrap;
}

.page-header h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.2;
}

/* --- Subpage Content --- */
.page-content {
  padding: var(--space-section) 0;
}

.page-content p {
  margin-bottom: 1.2rem;
  color: var(--color-text);
  text-align: justify;
  hyphens: auto;
}

.page-content p:last-child {
  margin-bottom: 0;
}

/* --- Legal Content (Datenschutz, Impressum) --- */
.legal-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-top: 2rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

.legal-content ul {
  list-style: none;
  margin-bottom: 1.2rem;
  padding-left: 0;
}

.legal-content ul li {
  font-size: 0.95rem;
  color: var(--color-muted);
  padding: 0.25rem 0 0.25rem 1.2rem;
  position: relative;
}

.legal-content ul li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--color-rule);
}

/* --- Contact Grid --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-top: 2rem;
}

.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 0.6rem;
}

.contact-block p {
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.8;
}

.contact-block a {
  color: var(--color-text);
  text-decoration: none;
  border-bottom: 1px solid var(--color-rule);
  transition: border-color 0.3s ease;
}

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

/* --- CV Timeline --- */
.cv-timeline {
  margin-top: 2.5rem;
  border-top: 1px solid var(--color-rule);
}

.cv-entry {
  display: flex;
  gap: 1.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-rule);
  font-size: 0.95rem;
  line-height: 1.5;
}

.cv-year {
  flex: 0 0 100px;
  font-weight: 400;
  color: var(--color-accent);
}

.cv-desc {
  color: var(--color-text);
}

@media (max-width: 600px) {
  .cv-entry {
    flex-direction: column;
    gap: 0.1rem;
  }
  .cv-year {
    flex: none;
  }
}

/* --- Expertise List --- */
.expertise-block {
  margin-top: 2.5rem;
}

.expertise-block h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1.2rem;
}

.expertise-block ul {
  list-style: none;
  border-top: 1px solid var(--color-rule);
}

.expertise-block li {
  display: flex;
  gap: 1.5rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--color-rule);
  font-size: 0.95rem;
  line-height: 1.5;
}

.expertise-title {
  flex: 0 0 200px;
  font-weight: 400;
  color: var(--color-text);
}

.expertise-desc {
  color: var(--color-muted);
}

@media (max-width: 600px) {
  .expertise-block li {
    flex-direction: column;
    gap: 0.2rem;
  }
  .expertise-title {
    flex: none;
  }
}

/* --- Back Link --- */
.back-link {
  display: inline-block;
  margin-top: 3rem;
  padding-bottom: 4rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.back-link:hover {
  color: var(--color-text);
}

/* --- Footer --- */
footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3rem 2rem;
  border-top: 1px solid var(--color-rule);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.75rem;
  color: var(--color-muted);
}

footer a {
  color: var(--color-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

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

/* --- Mobile --- */
@media (max-width: 600px) {
  :root {
    --space-section: 4rem;
  }

  nav .nav-inner {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
  }

  nav .nav-right {
    gap: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav ul {
    gap: 1.5rem;
  }

  .lang-toggle {
    border-left: none;
    padding-left: 0;
  }

  main {
    padding: 0 1.5rem;
  }
  .cover {
    margin-top: 11rem;
  }
  .hero {
    padding-top: 3rem;
  }
  .page-header {
    padding-top: 3rem;
  }
  .portrait {
    float: none;
    width: 100%;
    max-width: 220px;
    margin: 0 auto 1.5rem;
    display: block;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  footer {
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
  }
}

/* --- Fade-in --- */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero,
.previews,
.page-header,
.page-content {
  animation: fadeUp 0.6s ease both;
}

.page-content {
  animation-delay: 0.1s;
}
