/* ============================================
   Kulturelle Landpartie — Design System
   Background: Irmhild Schwarz illustrations
   Content scrolls over fixed illustrated bg
   ============================================ */

:root {
  /* Palette — matched to warm-gray illustrated bg */
  --black: #1a1a1a;
  --dark: #2a2a2a;
  --grey: #4a4a4a;
  --grey-mid: #6a6a6a;
  --border: rgba(0,0,0,0.15);
  --green: #2b5a8c;
  --green-dark: #1e4268;
  --terra: #2b5a8c;
  --terra-dark: #1e4268;

  /* Type */
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Instrument Sans', 'Helvetica Neue', sans-serif;

  /* Spacing */
  --s-xs: 0.5rem;
  --s-sm: 1rem;
  --s-md: 1.5rem;
  --s-lg: 2.5rem;
  --s-xl: 4rem;
  --s-2xl: 6rem;
  --s-3xl: 8rem;

  /* Layout */
  --max-w: 1120px;
  --max-w-narrow: 720px;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--black);
  background: #ccc8c2 url('../img/bg.png') center top / cover fixed;
  line-height: 1.65;
  overflow-x: hidden;
}

::selection {
  background: var(--green);
  color: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--black);
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
}

p {
  max-width: 60ch;
  color: var(--dark);
  font-weight: 450;
}

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--grey);
}

.label--green { color: var(--green); }
.label--terra { color: var(--terra); }

/* ---- Layout — all transparent, bg shows through ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s-md);
}

.container--narrow {
  max-width: var(--max-w-narrow);
  margin: 0 auto;
  padding: 0 var(--s-md);
}

.section {
  padding: var(--s-2xl) 0;
  /* transparent — background image shows through */
}

.section--lg {
  padding: var(--s-3xl) 0;
}

.section--green {
  background: var(--green);
  color: #fff;
}

.section--green h2,
.section--green h3 {
  color: #fff;
}

.section--green p {
  color: rgba(255,255,255,0.8);
}

.section--green .label {
  color: rgba(255,255,255,0.5);
}

.section--cream {
  background: rgba(190,186,178,0.5);
}

/* ---- Dividers ---- */
hr {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.12);
  margin: 0;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* ---- Links & Buttons ---- */
.link {
  text-decoration: none;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
  font-weight: 600;
  transition: opacity 0.2s;
}
.link:hover { opacity: 0.6; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn--primary {
  background: var(--green);
  color: #fff;
}
.btn--primary:hover {
  background: var(--green-dark);
}

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

.btn--outline {
  background: rgba(255,255,255,0.5);
  color: var(--black);
  border: 2px solid var(--black);
}
.btn--outline:hover {
  background: var(--black);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--green);
}
.btn--white:hover {
  background: #eee;
}

/* ---- Navigation — transparent ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled {
  background: rgba(200, 196, 190, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(0,0,0,0.08);
}

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

.nav__logo {
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.nav__logo-sub {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey-mid);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav__links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  color: var(--dark);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--green);
}

.nav__cta {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  padding: 0.45rem 1rem;
  background: var(--terra);
  color: #fff;
  margin-left: 0.5rem;
  transition: background 0.2s;
}

.nav__cta:hover { background: var(--terra-dark); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 20px;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.nav__toggle span {
  display: block;
  height: 2px;
  background: var(--black);
  transition: all 0.3s;
  transform-origin: center;
}

.nav__toggle.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 80px;
}

.hero__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-xl);
  align-items: end;
}

.hero__image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.hero__image img {
  max-width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border: 1.5px solid var(--green);
}

.hero__image .countdown {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translate(-50%, 50%);
  background: var(--green);
  color: #fff;
  padding: 0.7rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  border: none;
  white-space: nowrap;
}

.hero__image .countdown .countdown__num {
  color: #fff;
  font-size: 1.6rem;
}

.hero__image .countdown .countdown__label {
  color: rgba(255,255,255,0.6);
  font-size: 0.58rem;
}

@media (max-width: 900px) {
  .hero__split {
    grid-template-columns: 1fr;
    gap: var(--s-lg);
  }
  .hero__image {
    order: -1;
  }
  .hero__image img {
    max-height: 300px;
  }
}

.hero__date {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: var(--s-lg);
}

.hero__title { margin-bottom: var(--s-md); }

.hero__title em {
  font-style: italic;
  color: var(--green);
}

.hero__subtitle {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: var(--s-xl);
  max-width: 44ch;
}

.hero__actions {
  display: flex;
  gap: var(--s-sm);
  flex-wrap: wrap;
}

/* ---- Countdown ---- */
.countdown {
  display: flex;
  gap: var(--s-lg);
}

.countdown__item { text-align: left; }

.countdown__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: var(--green);
}

.countdown__label {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-top: 0.2rem;
}

/* ---- Grid ---- */
.grid { display: grid; gap: var(--s-md); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--asymm { grid-template-columns: 1fr 1.2fr; gap: var(--s-2xl); align-items: start; }

/* ---- Features ---- */
.feature { padding: var(--s-md) 0; }

.feature__num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--green);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.feature__title {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.35rem;
}

.feature__text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.55;
}

/* ---- Cards ---- */
.card {
  padding: var(--s-md);
  border: 2px solid rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
  transition: border-color 0.3s, background 0.3s;
}

.card:hover {
  border-color: var(--green);
  background: rgba(255,255,255,0.55);
}

.card__type {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--grey-mid);
  margin-bottom: 0.5rem;
}

.card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.card__desc {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.55;
  margin-bottom: 0.75rem;
}

.card__tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }

.tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  background: rgba(0,0,0,0.08);
  color: var(--dark);
}

/* ---- Info blocks ---- */
.info-block {
  padding: var(--s-lg);
  background: rgba(255,255,255,0.3);
  border: 1.5px solid rgba(0,0,0,0.08);
  backdrop-filter: blur(4px);
}

.info-block--green {
  background: rgba(43,90,140,0.12);
  border-color: rgba(43,90,140,0.15);
}

.info-block__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  margin-bottom: 0.5rem;
}

.info-block__text {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.6;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: var(--s-lg);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(0,0,0,0.12);
}

.timeline__item {
  padding-bottom: var(--s-lg);
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--s-lg) - 4px);
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.15rem;
}

.timeline__text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
}

/* ---- Link list ---- */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.link-list a {
  display: block;
  padding: 0.85rem 0;
  border-bottom: 1.5px solid rgba(0,0,0,0.1);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s, padding-left 0.2s;
}

.link-list a:hover {
  color: var(--green);
  padding-left: 0.5rem;
}

/* ---- Book mockup ---- */
.book {
  width: 220px;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--terra), var(--terra-dark));
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  position: relative;
  box-shadow: 10px 10px 0 rgba(0,0,0,0.12);
}

.book::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: rgba(0,0,0,0.2);
}

.book__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.book__sub {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-bottom: 0.5rem;
}

.book__year {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

/* ---- Footer ---- */
.footer {
  border-top: 2px solid rgba(0,0,0,0.1);
  padding: var(--s-xl) 0;
  /* transparent — bg shows through */
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--s-lg);
  flex-wrap: wrap;
}

.footer__col h4 {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: var(--s-sm);
}

.footer__col ul { list-style: none; }

.footer__col a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  display: block;
  padding: 0.2rem 0;
  transition: color 0.2s;
}

.footer__col a:hover { color: var(--green); }

.footer__bottom {
  margin-top: var(--s-xl);
  padding-top: var(--s-md);
  border-top: 1px solid rgba(0,0,0,0.1);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--grey);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-sm);
}

.footer__bottom a {
  text-decoration: none;
  color: var(--grey);
  transition: color 0.2s;
}

.footer__bottom a:hover { color: var(--green); }

/* ---- Scroll reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .grid--asymm { grid-template-columns: 1fr; gap: var(--s-lg); }
  .section { padding: var(--s-xl) 0; }
  .section--lg { padding: var(--s-2xl) 0; }
  .countdown { gap: var(--s-lg); }
  .countdown__num { font-size: 2.2rem; }
}

@media (max-width: 768px) {
  html { font-size: 16px; }

  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }

  .nav__mobile {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(200,196,190,0.97);
    backdrop-filter: blur(16px);
    padding: var(--s-lg) var(--s-md);
    z-index: 99;
  }

  .nav__mobile.open {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .nav__mobile a {
    display: block;
    padding: 0.8rem 0;
    font-size: 1.1rem;
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1.5px solid rgba(0,0,0,0.1);
    color: var(--black);
  }

  .nav__mobile a:last-child {
    border-bottom: none;
    margin-top: var(--s-sm);
    text-align: center;
    background: var(--terra);
    color: #fff;
    padding: 0.75rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 700;
  }

  .grid--2-mobile { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { flex-direction: column; }
  .footer__bottom { flex-direction: column; }
}

@media (min-width: 769px) {
  .nav__mobile { display: none !important; }
}

/* ---- Utility ---- */
.mt-xs { margin-top: var(--s-xs); }
.mt-sm { margin-top: var(--s-sm); }
.mt-md { margin-top: var(--s-md); }
.mt-lg { margin-top: var(--s-lg); }
.mt-xl { margin-top: var(--s-xl); }
.mt-2xl { margin-top: var(--s-2xl); }
.mb-sm { margin-bottom: var(--s-sm); }
.mb-md { margin-bottom: var(--s-md); }
.mb-lg { margin-bottom: var(--s-lg); }
.text-grey { color: var(--dark); }
.text-green { color: var(--green); }
.text-terra { color: var(--terra); }
.text-center { text-align: center; }
.text-sm { font-size: 0.88rem; }
.text-xs { font-size: 0.78rem; }
.mw-narrow { max-width: 60ch; }
.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--s-sm); }
.gap-md { gap: var(--s-md); }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
