/* Schriftarten */
@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("fonts/montserrat-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

/* Variablen */
:root {
  --deep-jade: #3D5A56;
  --soft-jade: #9AB5AC;
  --ivory: #E0D6C9; /* Schrift Footer Hell-Modus + Schrift Dunkel-Modus */
  --paper: #F7F4F0; /* Hintergrund Hell-Modus */
  --basalt: #343634;
  --text: var(--basalt); /* Schrift  Hell-Modus */
  --line: rgba(61, 90, 86, 0.22); /* Trennlinien Hell-Modus */
  --darkline: rgba(224, 214, 201, 0.18);  /* Trennlinien Dunkel-Modus */
  --max: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.8;
  position: relative;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  padding: 22px 80px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  font-weight: 400;
}

.brand-logo {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 16px;
}

.nav a {
  text-decoration: none;
}

.nav a:not(.nav-cta):hover,
.site-footer a:hover,
.downloads a:hover {
  color: var(--deep-jade);
}

.nav-cta,
.button {
  display: inline-block;
  padding: 12px 20px;
  background: var(--deep-jade);
  color: var(--ivory);
  border-radius: 6px;
  text-decoration: none;
  font-weight: 400;
  line-height: 1.4;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover,
.button:hover {
  color: var(--ivory);
  background: #4a6964;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 120px 80px;
}

.hero {
  padding-top: 130px;
}

.hero-text {
  max-width: 760px;
}

/* Bilder */
.hero-image,
.image-box {
  width: 100%;
  display: block;
  border-radius: 4px;
  object-fit: cover;
}

.hero-image {
  min-height: 420px;
}

h1,
h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 400;
  line-height: 1.1;
  margin: 0 0 32px;
  color: var(--text);
}

h1 {
  font-size: clamp(52px, 7vw, 84px);
}

h2 {
  font-size: clamp(38px, 5vw, 56px);
}

h3 {
  margin: 0 0 28px;
  color: var(--text);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.4;
}

p {
  margin: 0 0 1.25rem;
}

.person {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 400;
}

.profession {
  margin-top: 0;
  margin-bottom: 36px;
  color: var(--text);
}

.hero-image {
  min-height: 420px;
  margin-top: 120px;
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 420px;
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(224, 214, 201, 0.95), rgba(247, 244, 240, 0.9)),
    var(--ivory);
  color: rgba(37, 40, 38, 0.48);
  text-align: center;
}

.two-column,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.timeline-grid,
.cards {
  display: grid;
  gap: 64px;
}

.timeline-grid {
  grid-template-columns: repeat(3, 1fr);
}

.cards {
  grid-template-columns: repeat(2, 1fr);
}

.timeline-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-list li {
  margin-bottom: 1.45rem;
  line-height: 1.55;
}

.timeline-list li:last-child {
  margin-bottom: 0;
}

.year {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.cards article,
.timeline-grid > div {
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.downloads {
  display: grid;
  gap: 0;
  padding: 20px 0;
  max-width: 760px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.downloads a {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: underline;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 36px 80px;
  background: var(--basalt);
  color: var(--ivory);
  font-size: 15px;
}

.site-footer a {
  margin-right: 24px;
  text-decoration: none;
}

.site-footer p {
  margin: 0;
}

/* Impressum + Datenschutz*/
.legal-page h2 {
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.legal-page p {
  margin-bottom: 1.5rem;
}

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

.legal-page {
  max-width: 850px;
}

@media (prefers-color-scheme: dark) {
  body {
    background: var(--basalt);
    color: var(--ivory);
  }

  .site-header {
    background: var(--basalt);
    border-bottom-color: var(--darkline);
  }

  h1,
  h2,
  h3,
  .brand,
  .profession,
  .year {
    color: var(--ivory);
  }

  .nav-cta,
  .button {
    background: var(--soft-jade);
    color: var(--basalt);
  }

  .nav-cta:hover,
  .button:hover {
    background: #b8cec6;
    color: #1f2220;
  }

  .nav a:not(.nav-cta):hover,
  .site-footer a:hover,
  .downloads a:hover {
    color: var(--soft-jade);
}

  .cards article,
  .timeline-grid > div,
  .downloads,
  .downloads a {
    border-color:var(--darkline);
  }

  .placeholder {
    background:
      linear-gradient(135deg, rgba(61, 90, 86, 0.55), rgba(52, 54, 52, 0.95)),
      var(--basalt);
    color: rgba(224, 214, 201, 0.55);
  }
}

@media (max-width: 900px) {
  body {
    font-size: 17px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 24px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 16px 22px;
  }

  .section {
    padding: 80px 24px;
  }

  .hero {
    padding-top: 90px;
  }

  .hero-image {
    margin-top: 80px;
  }

  .two-column,
  .contact-grid,
  .timeline-grid,
  .cards {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .site-footer {
    flex-direction: column;
    padding: 32px 24px;
  }
}