/* Grundwerte und Reset */
:root {
  --cream: #f6f0e4;
  --paper: #fffaf1;
  --forest: #173f36;
  --forest-soft: #28594d;
  --berry: #8b204e;
  --gold: #d4973d;
  --ink: #25312c;
  --muted: #5d6963;
  --line: rgba(23, 63, 54, 0.18);
  --shadow: 0 22px 60px rgba(47, 58, 46, 0.14);
  --display: Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 3%, rgba(212, 151, 61, 0.18), transparent 28rem),
    var(--cream);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.7;
}

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

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

h1,
h2,
h3,
p,
figure {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--forest);
  font-family: var(--display);
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.7rem, 7vw, 5.8rem);
  letter-spacing: -0.045em;
}

h2 {
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  letter-spacing: -0.025em;
}

h3 {
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
}

/* Kopfzeile */
.site-header,
.site-footer,
.section {
  width: min(1200px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  min-height: 5.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  color: var(--berry);
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  text-decoration: none;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 1.5rem;
}

nav a,
.site-footer a,
.text-link {
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
}

nav a {
  text-decoration: none;
}

nav a:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--berry);
}

/* Gemeinsame Abschnittselemente */
.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}

.narrow {
  max-width: 820px;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--berry);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lead {
  color: var(--forest);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.4;
}

.button {
  min-height: 3.2rem;
  padding: 0.75rem 1.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #fff;
  background: var(--forest);
  border: 2px solid var(--forest);
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  color: var(--forest);
  background: transparent;
  transform: translateY(-2px);
}

/* Hero */
.hero {
  min-height: calc(100vh - 5.25rem);
  padding-top: clamp(2rem, 5vw, 5rem);
  display: flex;
  align-items: center;
}

.hero-copy {
  max-width: 900px;
}

.hero-date,
.hero-place {
  margin-bottom: 0.2rem;
  color: var(--forest);
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  font-weight: 600;
}

.countdown-container {
  margin-top: 2.25rem;
}

.countdown-container h2 {
  margin-bottom: 0.8rem;
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(4rem, 1fr));
  gap: 0.65rem;
}

.countdown-box {
  padding: 0.8rem 0.45rem;
  background: rgba(255, 250, 241, 0.7);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  text-align: center;
}

.countdown-box span {
  display: block;
  color: var(--berry);
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1;
}

.countdown-box small {
  color: var(--muted);
  font-size: 0.75rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.4rem;
}

/* Einführung */
.intro {
  position: relative;
}

.intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5rem;
  height: 3px;
  background: var(--gold);
}

.intro p:not(.eyebrow):not(.lead) {
  max-width: 68ch;
}

.weather-note {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  color: var(--forest);
  background: rgba(212, 151, 61, 0.13);
  border-left: 4px solid var(--gold);
  font-weight: 600;
}

/* Programm */
#programm {
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.program-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(3rem, 7vw, 6rem);
}

.program-flyer {
  width: min(100%, 720px);
  margin-bottom: 0;
}

.program-flyer img {
  width: 100%;
  height: auto;
  aspect-ratio: 975 / 1350;
  object-fit: contain;
  border-radius: 1rem;
  box-shadow: var(--shadow);
}

.program-flyer figcaption {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.schedule {
  width: min(100%, 820px);
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.schedule li {
  padding: 1.25rem 0;
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.schedule time {
  color: var(--berry);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 700;
}

.schedule span {
  color: var(--forest);
  font-size: 1.08rem;
  font-weight: 500;
}

/* Personen */
#gestaltende {
  width: 100%;
  max-width: none;
  padding-inline: max(1rem, calc((100% - 1200px) / 2));
  background: var(--forest);
}

#gestaltende h2,
#gestaltende h3 {
  color: #fffaf1;
}

#gestaltende .eyebrow {
  color: #efbe73;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.person-card {
  overflow: hidden;
  background: #204a40;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1.25rem;
}

.person-card > img {
  width: 100%;
  height: clamp(17rem, 38vw, 28rem);
  object-fit: cover;
  object-position: center 25%;
}

.person-copy {
  padding: clamp(1.35rem, 4vw, 2.4rem);
  color: #f3eee4;
}

.person-copy p:last-child {
  margin-bottom: 0;
}

/* Ort und Footer */
.location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.location h2 {
  margin-bottom: 0;
}

.button-light {
  flex: 0 0 auto;
}

.site-footer {
  padding-block: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer p {
  margin-bottom: 0;
}

.legal-nav {
  justify-content: center;
}

.legal-nav a {
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

/* Rechtstextseiten */
.legal-page {
  min-height: calc(100vh - 5.25rem);
}

.legal-main {
  width: min(780px, calc(100% - 2rem));
  margin-inline: auto;
  padding-block: clamp(3rem, 8vw, 7rem);
}

.back-link {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--berry);
  font-weight: 600;
  text-underline-offset: 0.3em;
}

.legal-main h2 {
  margin-top: 2.8rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.legal-main h3 {
  margin-top: 2rem;
  font-family: var(--body);
  font-size: 1.1rem;
}

.legal-main ul {
  padding-left: 1.4rem;
}

.legal-warning,
.placeholder {
  padding: 1rem 1.2rem;
  background: #fff1cf;
  border: 2px solid #9b641a;
  border-radius: 0.75rem;
}

.legal-warning {
  margin-bottom: 2.5rem;
  color: #5a3507;
  font-weight: 700;
}

.placeholder {
  color: #5a3507;
  font-weight: 600;
}

.legal-main address {
  font-style: normal;
}

.legal-contact {
  padding: 1.25rem 1.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}

.legal-contact a {
  color: var(--berry);
  font-weight: 600;
  text-underline-offset: 0.3em;
}

.legal-footer {
  align-items: center;
}

/* Responsive Anpassungen */
@media (max-width: 800px) {
  .site-header {
    padding-block: 1rem;
    align-items: flex-start;
  }

  nav {
    max-width: 15rem;
  }

  .hero {
    min-height: auto;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .person-card {
    max-width: 44rem;
    margin-inline: auto;
  }

  .location {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .site-header {
    display: block;
  }

  nav {
    max-width: none;
    margin-top: 0.8rem;
    justify-content: flex-start;
    gap: 0.25rem 1rem;
    font-size: 0.9rem;
  }

  .section {
    width: min(100% - 1.25rem, 1200px);
  }

  #gestaltende {
    width: 100%;
  }

  .countdown {
    gap: 0.35rem;
  }

  .countdown-box {
    padding-inline: 0.2rem;
  }

  .schedule li {
    grid-template-columns: 4.5rem 1fr;
  }

  .site-footer {
    width: calc(100% - 1.25rem);
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-nav {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
