/* =========================================================
   Erfurter Mobilitätswoche – Stylesheet
   Palette:
     --bg        #EBE9DD  Untergrund (Vorgabe)
     --ink       #26302A  Text, dunkles Flaschengrün-Schwarz
     --route     #3F6C4B  Mobilitäts-Grün (Rad/Fuß)
     --transit   #2F5A73  Transit-Blau (Bahn/Bus)
     --card      #DFDCC9  Icon-Boxen, etwas dunkler als bg
     --footer    #DEDACB  Footer-Fläche, dezent abgesetzt
   ========================================================= */

:root {
  --bg: #EBE9DD;
  --ink: #26302A;
  --ink-soft: #4B564E;
  --route: #3F6C4B;
  --route-dark: #2F5138;
  --transit: #2F5A73;
  --card: #DFDCC9;
  --footer: #DEDACB;
  --line: rgba(38, 48, 42, 0.14);
  --max-width: 1100px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-base);
  font-weight: 700;
  margin: 0;
  color: var(--ink);
}

a {
  color: var(--route-dark);
  text-decoration-color: rgba(63, 108, 75, 0.45);
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--transit);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--transit);
  outline-offset: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =========================================================
   1) HERO / PARALLAX
   ========================================================= */

.hero {
  position: relative;
  height: min(80vh, 640px);
  min-height: 380px;
  overflow: hidden;
  isolation: isolate;
}

.hero__image-wrap {
  position: absolute;
  inset: -10% 0;
  z-index: -2;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.hero__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.4rem;
  text-align: center;
  padding: 2.75rem 1.5rem 1.5rem;
  color: #F6F5EE;
}

.hero__title {
  font-size: clamp(1.5rem, 4.6vw, 2.6rem);
  letter-spacing: 0.01em;
  line-height: 1.15;
  text-wrap: balance;
}

.hero__subtitle {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: -0.6rem;
}

.hero__dates {
  font-size: clamp(1rem, 2.6vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid rgba(246, 245, 238, 0.75);
  border-radius: 999px;
}

.hero__divider {
  height: 2mm;
  background: #FFFFFF;
}

/* =========================================================
   2) ICON-LEISTE
   ========================================================= */

.features {
  padding: 1.4rem 0 2.6rem;
}

.features__intro,
.features__outro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 1.8rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
}

.features__outro {
  margin: 1.8rem auto 0;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
}

.feature-card {
  background: var(--card);
  border-radius: 14px;
  padding: 1.6rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--route);
  color: #F6F5EE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.35rem;
}

.feature-card:nth-child(2) .feature-card__icon { background: var(--transit); }
.feature-card:nth-child(4) .feature-card__icon { background: var(--transit); }

.feature-card__text {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
}

/* =========================================================
   3) ZEITPLAN
   ========================================================= */

.schedule {
  padding: 1.5rem 0 3.5rem;
}

.schedule__heading {
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  margin-bottom: 1.6rem;
}

.schedule-day {
  margin-bottom: 1.8rem;
  padding-left: 1.1rem;
  border-left: 3px solid var(--route);
}

.schedule-day__heading {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.schedule-day__weekday {
  color: var(--route-dark);
}

.schedule-day ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.schedule-day li {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 0.6rem 0.85rem;
  font-size: 0.97rem;
}

.schedule-day .time {
  font-weight: 600;
  color: var(--ink);
  margin-right: 0.15rem;
}

.schedule-empty {
  color: var(--ink-soft);
  font-style: italic;
}

/* =========================================================
   4) FOOTER
   ========================================================= */

.site-footer {
  background: var(--footer);
  border-top: 1px solid var(--line);
  padding: 1.4rem 0;
  text-align: center;
}

.site-footer a {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer a:hover {
  color: var(--transit);
}

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

@media (max-width: 780px) {
  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .hero {
    height: 60vh;
    min-height: 320px;
  }

  .hero__content {
    /* Überschrift auf kleinen Screens noch näher an den oberen Rand */
    padding-top: 1.25rem;
  }

  .schedule-day li {
    font-size: 0.92rem;
  }
}

/* Reduced motion: Parallax & Route-Animation deaktivieren */
@media (prefers-reduced-motion: reduce) {
  .hero__image {
    transform: none !important;
  }
  .hero__route-line {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
