:root {
  --cream: #f7f3ec;
  --cream-dark: #eee8dd;
  --olive: #697457;
  --olive-dark: #4d5941;
  --olive-light: #aab29a;
  --lavender: #aaa0bc;
  --lavender-light: #ded8e7;
  --text: #3e4039;
  --white: #fffdf9;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}


/* Navigation */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 22px 5vw;

  background: rgba(247, 243, 236, 0.88);
  backdrop-filter: blur(10px);

  border-bottom: 1px solid rgba(77, 89, 65, 0.08);
}

.logo {
  text-decoration: none;
  color: var(--olive-dark);
  font-size: 1.15rem;
  letter-spacing: 0.08em;
}

.navigation {
  display: flex;
  gap: 28px;
}

.navigation a {
  text-decoration: none;
  color: var(--olive-dark);
  font-size: 0.86rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}


/* Hero */

.hero {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  position: relative;

  padding: 130px 24px 80px;

  overflow: hidden;
}

.hero-content {
  max-width: 760px;
  text-align: center;
  z-index: 2;

  animation: heroFade 1.2s ease both;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow,
.section-label {
  margin-bottom: 24px;

  color: var(--olive);
  font-size: 0.78rem;

  letter-spacing: 0.24em;
  text-transform: uppercase;
}

h1 {
  margin: 0;

  color: var(--olive-dark);

  font-size: clamp(4rem, 10vw, 7.5rem);
  font-weight: 400;

  line-height: 0.88;
}

.ampersand {
  display: block;

  margin: 16px 0;

  color: var(--lavender);

  font-size: 0.58em;
  font-style: italic;
}

.hero-text {
  max-width: 560px;

  margin: 38px auto 0;

  font-size: 1.18rem;
  line-height: 1.7;
}

.date {
  margin-top: 18px;

  color: var(--olive-dark);
  font-size: 1.05rem;

  letter-spacing: 0.06em;
}

.divider {
  width: 76px;
  height: 1px;

  margin: 28px auto;

  background: var(--lavender);
}

.countdown {
  color: var(--olive-dark);

  font-size: 1.2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;

  margin-top: 28px;

  padding: 14px 24px;

  border: 1px solid var(--olive);
  border-radius: 100px;

  color: var(--olive-dark);

  text-decoration: none;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.button:hover {
  background: var(--olive);
  color: var(--white);

  transform: translateY(-2px);
}


/* Botanische Details */

.botanical {
  position: absolute;

  width: 240px;
  height: 240px;

  border: 1px solid rgba(170, 160, 188, 0.35);
  border-radius: 50%;

  color: var(--lavender);

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
}

.botanical-left {
  left: -120px;
  top: 22%;
}

.botanical-right {
  right: -120px;
  bottom: 14%;
}


/* Foto */

.photo-section {
  max-width: 980px;

  margin: 0 auto;

  padding: 40px 24px 130px;

  text-align: center;
}

.photo-frame {
  overflow: hidden;

  border-radius: 160px 160px 26px 26px;

  background: var(--cream-dark);
}

.photo-frame img {
  display: block;

  width: 100%;
  height: min(75vh, 760px);

  object-fit: cover;

  filter:
    grayscale(100%)
    contrast(0.95);

  transition:
    transform 0.8s ease,
    filter 0.8s ease;
}

.photo-frame:hover img {
  transform: scale(1.015);

  filter:
    grayscale(75%)
    contrast(0.96);
}

.photo-caption {
  margin-top: 20px;

  color: var(--olive);

  font-size: 0.95rem;
  font-style: italic;
}


/* Gemeinsame Sektionen */

.section {
  max-width: 920px;

  margin: 0 auto;

  padding: 120px 24px;
}

.intro {
  text-align: center;
}

h2 {
  margin: 0 0 28px;

  color: var(--olive-dark);

  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 400;

  line-height: 1.1;
}

.intro p,
.details p {
  line-height: 1.8;
}

.lead {
  max-width: 700px;

  margin: 0 auto 24px;

  font-size: 1.25rem;
}


/* Save the Date */

.date-section {
  padding-top: 60px;
}

.date-card {
  max-width: 700px;

  margin: 0 auto;

  padding: 70px 40px;

  text-align: center;

  border: 1px solid var(--lavender-light);
  border-radius: 220px 220px 40px 40px;

  background: rgba(255, 253, 249, 0.45);
}

.date-number {
  color: var(--olive-dark);

  font-size: clamp(6rem, 18vw, 10rem);

  line-height: 0.9;
}

.date-copy {
  display: flex;
  justify-content: center;
  gap: 18px;

  margin-top: 20px;

  color: var(--lavender);

  font-size: 1.4rem;
}


/* Details */

.details {
  text-align: center;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 24px;

  margin-top: 60px;

  text-align: left;
}

.detail-grid article {
  min-height: 260px;

  padding: 34px 28px;

  border-top: 1px solid var(--lavender);
}

.detail-number {
  color: var(--lavender);

  font-size: 0.8rem;
  letter-spacing: 0.15em;
}

.detail-grid h3 {
  margin: 24px 0 16px;

  color: var(--olive-dark);

  font-size: 1.6rem;
  font-weight: 400;
}


/* Footer */

footer {
  padding: 40px 24px 60px;

  text-align: center;

  color: var(--olive);

  font-size: 0.9rem;
}


/* Smartphone */

@media (max-width: 760px) {

  .site-header {
    padding: 18px 20px;
  }

  .navigation {
    gap: 14px;
  }

  .navigation a {
    font-size: 0.68rem;
  }

  .hero {
    padding-top: 120px;
  }

  .botanical {
    width: 180px;
    height: 180px;
  }

  .photo-frame {
    border-radius: 90px 90px 20px 20px;
  }

  .photo-frame img {
    height: 62vh;
  }

  .section {
    padding: 90px 22px;
  }

  .detail-grid {
    grid-template-columns: 1fr;

    gap: 8px;
  }

  .detail-grid article {
    min-height: auto;
  }

  .date-card {
    padding: 58px 24px;

    border-radius: 120px 120px 28px 28px;
  }
  .botanical {
  width: 155px;
}

.botanical-left {
  left: -62px;
  top: 19%;
  opacity: 0.38;
}

.botanical-right {
  right: -62px;
  bottom: 4%;
  opacity: 0.32;
}
}


/* =========================
   Lavendel-Dekoration
========================= */

.botanical {
  position: absolute;
  width: 230px;
  height: auto;
  pointer-events: none;
  z-index: 1;
}

.botanical img {
  display: block;
  width: 100%;
  height: auto;
}

.botanical-left {
  left: -55px;
  top: 15%;
  transform: rotate(-14deg);
  opacity: 0.58;
}

.botanical-right {
  right: -55px;
  bottom: 3%;
  transform: scaleX(-1) rotate(-14deg);
  opacity: 0.46;
}

/* =========================
   Scroll-Animationen
========================= */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

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

.photo-frame.reveal {
  transform: translateY(40px) scale(0.985);
}

.photo-frame.reveal.is-visible {
  transform: translateY(0) scale(1);
}


/* =========================
   Navigation beim Scrollen
========================= */

.site-header {
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(247, 243, 236, 0.96);
  box-shadow: 0 8px 30px rgba(62, 64, 57, 0.06);
}


/* =========================
   Mobile Feinschliff
========================= */

@media (max-width: 760px) {

  .site-header {
    padding: 16px 18px;
  }

  .navigation {
    gap: 11px;
  }

  .navigation a {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .hero {
    min-height: 100svh;
    padding:
      calc(90px + env(safe-area-inset-top))
      18px
      54px;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 5.4rem);
  }

  .hero-text {
    max-width: 320px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .date {
    font-size: 0.95rem;
  }

  .countdown {
    font-size: 1.08rem;
  }

  .button {
    padding: 13px 20px;
  }

  .botanical {
    width: 150px;
    height: 280px;
    opacity: 0.27;
  }

  .botanical-left {
    left: -72px;
    top: 22%;
  }

  .botanical-right {
    right: -68px;
    bottom: 2%;
  }

  .photo-section {
    padding: 25px 16px 90px;
  }

  .photo-frame {
    border-radius: 70px 70px 18px 18px;
  }

  .photo-frame img {
    height: 58vh;
    min-height: 420px;
  }

  .section {
    padding: 80px 20px;
  }

  .intro .lead {
    font-size: 1.12rem;
  }

  h2 {
    font-size: clamp(2.2rem, 11vw, 3.2rem);
  }

  .date-card {
    padding: 52px 20px;
  }

  .date-number {
    font-size: clamp(5.5rem, 26vw, 8rem);
  }

  .date-copy {
    font-size: 1.18rem;
  }

  .detail-grid article {
    padding: 26px 8px 30px;
  }

  footer {
    padding-bottom:
      calc(40px + env(safe-area-inset-bottom));
  }
}


/* Sehr kleine Smartphones */

@media (max-width: 420px) {

  .logo {
    font-size: 1rem;
  }

  .navigation a:nth-child(2) {
    display: none;
  }

  .hero {
    padding-left: 14px;
    padding-right: 14px;
  }

  .photo-frame img {
    height: 52vh;
    min-height: 360px;
  }
}


/* Weniger Bewegung für Nutzer, die das wünschen */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* =========================
   Typografie-Feinschliff
========================= */

h1,
h2,
.detail-grid h3,
.date-number {
  letter-spacing: -0.02em;
}

.hero-text,
.intro p,
.details p,
.photo-caption {
  font-family: Georgia, "Times New Roman", serif;
}

.eyebrow,
.section-label,
.navigation a,
.detail-number,
footer {
  font-family: Arial, Helvetica, sans-serif;
}

.eyebrow,
.section-label {
  font-weight: 500;
}

h1 {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}

.hero-text {
  color: #505246;
}

.photo-caption {
  letter-spacing: 0.02em;
}


/* =========================
   Elegantere Animationen
========================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.9s ease,
    transform 0.9s ease;
}

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

.detail-grid article:nth-child(1) {
  transition-delay: 0.05s;
}

.detail-grid article:nth-child(2) {
  transition-delay: 0.14s;
}

.detail-grid article:nth-child(3) {
  transition-delay: 0.23s;
}

.photo-frame {
  transition:
    transform 0.9s ease,
    opacity 0.9s ease;
}

.date-card {
  transition:
    transform 0.9s ease,
    opacity 0.9s ease;
}
