:root {
  --bg: #fbfaf7;
  --text: #222222;
  --heading: #353535;
  --muted: #8c8c8c;
  --line: #dedbd4;
  --accent: #9a4a1c;
  --soft: #f3f0ea;
  --max: 1320px;

  /* Spalten der einzelnen Einträge */
  --image-col: 150px;
  --date-col: 130px;
  --image-date-gap: clamp(2rem, 6vw, 6rem);
  --date-text-gap: clamp(1.5rem, 3vw, 3rem);

  /* Rechte Laufleiste für die großen Jahreszahlen */
  --right-year-gap: clamp(1.5rem, 3.5vw, 3.5rem);
  --right-year-col: clamp(90px, 9vw, 125px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family:
    "Segoe UI",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.65;
  background: linear-gradient(
    to bottom,
    #fbfaf7 0,
    #fbfaf7 360px,
    #fdfdfc 520px,
    #ffffff 760px,
    #ffffff 100%
  );
}

a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(154, 74, 28, .35);
}

a:hover {
  border-bottom-color: var(--accent);
}


/* =========================================================
   HEADER
   ========================================================= */

.hero {
  max-width: var(--max);
  min-height: 88vh;
  margin: 0 auto;
  padding: 7vh 4vw 5vh;

  display: grid;
  grid-template-columns:
    minmax(560px, 710px)
    minmax(460px, 1fr);
  gap: 0;
  align-items: center;

  background: transparent;
}

.hero-image {
  position: relative;
  z-index: 1;
}

.hero-image img {
  display: block;
  width: 100%;
  max-width: 710px;
  height: auto;
}

.hero-text {
  position: relative;
  z-index: 5;

  max-width: 680px;
  margin-left: -58px;
  padding-top: 1.5rem;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .92rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--heading);
  font-weight: 400;
  font-size: clamp(3.4rem, 5.8vw, 5.8rem);
  line-height: 1;
  letter-spacing: -.055em;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: .8rem 1.45rem;

  margin-top: 4.2rem;

  font-size: .9rem;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.main-nav a {
  color: #555;
  border-bottom-color: transparent;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}


/* =========================================================
   INHALT
   ========================================================= */

.content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 4vw 7rem;
}

.cv-section {
  margin-top: clamp(5rem, 9vw, 8rem);
  padding-top: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid rgba(222, 219, 212, .7);
}

.cv-section:first-child {
  margin-top: 0;
}

.section-sticky {
  position: sticky;
  top: 0;
  z-index: 30;

  margin: 0 0 clamp(2.5rem, 5vw, 4rem);
  padding: .75rem 0 .85rem;

  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(222, 219, 212, .45);
}

.section-sticky span {
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.cv-intro {
  max-width: 760px;
  margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-label {
  margin: 0 0 1rem;
  color: var(--accent);
  font-size: .85rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.cv-intro h2 {
  margin: 0 0 1.5rem;
  color: var(--text);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -.045em;
}

.cv-intro p {
  max-width: 680px;
  margin: 0;
  color: #666;
  font-size: 1.05rem;
}


/* =========================================================
   JAHRESBLÖCKE UND EINTRÄGE
   ========================================================= */

/*
  Jeder Jahresblock besteht auf breiten Bildschirmen aus:

  1. dem eigentlichen Inhaltsbereich,
  2. einem Abstand,
  3. der rechten Laufleiste mit der großen Jahreszahl.
*/

.cv-year {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    var(--right-year-gap)
    var(--right-year-col);
  align-items: start;

  margin-top: clamp(4rem, 8vw, 7rem);
}

/*
  Die große Jahreszahl steht rechts am Seitenabschluss.
  Durch position: sticky bleibt sie beim Scrollen sichtbar,
  jedoch nur innerhalb ihres jeweiligen Jahresblocks.
*/

.cv-year > h3 {
  grid-column: 3;
  grid-row: 1;
  align-self: start;
  justify-self: stretch;

  position: sticky;
  top: 4.25rem;
  z-index: 20;

  width: 100%;
  margin: 0;

  color: var(--accent);
  font-weight: 600;
  font-size: clamp(1.7rem, 2.2vw, 2.35rem);
  line-height: 1;
  text-align: right;

  text-shadow:
    0 1px 1px rgba(255, 255, 255, .95),
    0 0 12px rgba(251, 250, 247, 1),
    0 0 26px rgba(251, 250, 247, .98),
    0 0 42px rgba(251, 250, 247, .95),
    0 0 70px rgba(251, 250, 247, .90);
}

/*
  Die einzelnen Einträge liegen ausschließlich
  im linken Inhaltsbereich des Jahresblocks.
*/

.cv-entry {
  grid-column: 1;

  display: grid;
  grid-template-columns:
    var(--image-col)
    var(--image-date-gap)
    var(--date-col)
    var(--date-text-gap)
    minmax(0, 1fr);
  align-items: start;

  min-width: 0;
  margin-bottom: clamp(2.4rem, 5vw, 4.5rem);
  padding: 0;
}

.cv-entry time {
  grid-column: 3;

  color: var(--muted);
  font-size: .95rem;
  line-height: 1.4;
}

.cv-entry-body {
  grid-column: 5;

  min-width: 0;
  max-width: 760px;
}

.entry-type {
  margin: 0 0 .45rem;
  color: var(--accent);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cv-entry p {
  margin: 0;
  color: #666;
}

.cv-entry strong {
  color: #222;
  font-weight: 600;
}

.cv-entry em {
  font-style: italic;
}

.cv-entry ul {
  margin: .9rem 0 0 1.2rem;
  padding: 0;
  color: #666;
}

.cv-entry li {
  margin: .35rem 0;
}


/* =========================================================
   BILDER
   ========================================================= */

.entry-media {
  grid-column: 1;
  grid-row: 1;
  align-self: start;

  margin: 0;
}

.entry-media a {
  display: block;
  width: fit-content;
  border-bottom: 0;
}

.entry-media a:hover {
  border-bottom: 0;
}

.entry-media img {
  display: block;
  width: 150px;
  max-width: 100%;
  height: auto;

  border-radius: 3px;
  opacity: .94;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .10);

  transition:
    transform .25s ease,
    opacity .25s ease,
    box-shadow .25s ease;
}

.entry-media img:hover {
  opacity: 1;
  transform: translateY(-4px) scale(1.025);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .16);
}


/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 4vw 5rem;

  display: flex;
  justify-content: space-between;
  gap: 2rem;

  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

.site-footer p {
  margin: 0;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 980px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 4rem;
  }

  .hero-image img {
    max-width: 640px;
  }

  .hero-text {
    margin-left: 0;
    padding-top: 2rem;
  }

  .hero h1 {
    white-space: normal;
  }

  .main-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .section-sticky {
    position: static;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 0;
  }

  /*
    Auf schmaleren Bildschirmen entfällt die rechte Laufleiste.
    Die Jahreszahl steht wieder oberhalb der zugehörigen Einträge.
  */

  .cv-year {
    display: grid;
    grid-template-columns: 1fr;
  }

  .cv-year > h3 {
    grid-column: 1;
    grid-row: auto;

    position: static;
    justify-self: start;

    width: auto;
    margin: 0 0 1.5rem;

    font-size: clamp(1.9rem, 7vw, 2.5rem);
    text-align: left;
  }

  .cv-entry {
    grid-column: 1;
    grid-template-columns: 1fr;
  }

  .cv-entry time,
  .cv-entry-body,
  .entry-media {
    grid-column: 1;
  }

  .entry-media {
    grid-row: auto;
    margin: 0 0 1.2rem;
  }

  .cv-entry time {
    margin-bottom: .8rem;
  }

  .entry-media img {
    width: 160px;
  }
}

@media (max-width: 760px) {
  .site-footer {
    flex-direction: column;
  }
}


/* =========================================================
   IMPRESSUM
   ========================================================= */

.imprint-page {
  max-width: 960px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 4vw 7rem;
}

.imprint-header {
  margin-bottom: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(4rem, 8vw, 7rem);
  border-top: 1px solid rgba(222, 219, 212, .7);
}

.imprint-header h1 {
  margin: 0;
  color: var(--heading);
  font-weight: 400;
  font-size: clamp(3rem, 6vw, 5.4rem);
  line-height: 1;
  letter-spacing: -.055em;
}

.imprint-content {
  max-width: 720px;
}

.imprint-block {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.imprint-block h2 {
  margin: 0 0 .75rem;
  color: var(--accent);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.imprint-block p {
  margin: 0;
  color: #666;
}

.imprint-back {
  margin-top: clamp(4rem, 7vw, 6rem);
}