:root {
  --wine: #7d1732;
  --red: #bf3150;
  --rose: #e96b86;
  --blush: #fff0f2;
  --cream: #fffaf5;
  --gold: #d2a54b;
  --ink: #4a2630;
  --white: #fff;
  --shadow: 0 24px 70px rgba(91, 23, 46, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Montserrat", sans-serif;
  overflow-x: hidden;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.hintergrund-licht {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .1;
  pointer-events: none;
  z-index: -2;
}

.hintergrund-licht:first-of-type {
  background: #f26282;
  top: -10rem;
  left: -12rem;
}

.hintergrund-licht:nth-of-type(2) {
  background: #efc467;
  right: -12rem;
  bottom: -12rem;
}

/* Bildformat */
.startseite {
  min-height: 100svh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  padding: 5rem 1.5rem;
  color: var(--white);
  text-align: center;
  background:
    radial-gradient(circle at 50% 30%, rgba(255, 215, 170, .22), transparent 24%),
    linear-gradient(135deg, rgba(82, 7, 31, .92), rgba(154, 26, 62, .84)),
    url("images/bild4.jpg") center/cover;
}
.startseite::before {
  content: "";
  position: absolute;
  width: min(65vw, 760px);
  height: min(65vw, 760px);
  border: 1px solid rgba(231, 193, 116, .28);
  border-radius: 50%;
}

.start-inhalt {
  position: relative;
  z-index: 2;
  max-width: 920px;
}

.start-inhalt > p:first-child,
.abschnitt-kopf > span {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
  color: #f0ce84;
}

.startseite h1 {
  font: 700 clamp(4rem, 12vw, 9.5rem)/.85 "Cormorant Garamond", serif;
  margin: .35rem 0 1rem;
  text-shadow: 0 10px 40px rgba(0,0,0,.22);
}

.start-text {
  max-width: 620px;
  margin: 0 auto 2.2rem;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.brief-knopf {
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.13);
  color: #fff;
  border-radius: 999px;
  padding: .95rem 1.5rem;
  display: inline-flex;
  gap: .7rem;
  align-items: center;
  font: 600 .8rem "Montserrat", sans-serif;
  letter-spacing: .05em;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transition: .3s ease;
}

.brief-knopf:hover {
  background: #fff;
  color: var(--wine);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,.18);
}

.runter-hinweis {
  position: absolute;
  bottom: 1.5rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .58rem;
  letter-spacing: .18em;
  opacity: .8;
}

.runter-hinweis > span:last-child {
  font-size: 1.3rem;
  animation: huepfen 1.8s infinite;
}

.abschnitt {
  padding: clamp(5rem, 10vw, 9rem) 1.4rem;
}

.abschnitt-kopf {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3rem;
}

.abschnitt-kopf h2,
.countdown-box h2,
.schluss-inhalt h2 {
  font: 600 clamp(2.5rem, 6vw, 4.5rem)/1 "Cormorant Garamond", serif;
  color: var(--wine);
  margin: .55rem 0 1rem;
}

.abschnitt-kopf p {
  line-height: 1.8;
  color: #76545d;
}

.deko-linie {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--gold);
}

.deko-linie::before,
.deko-linie::after {
  content: "";
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.deko-linie::after {
  transform: rotate(180deg);
}


.brief-abschnitt {
  background: linear-gradient(180deg, #fff8f8, #fffdf9);
}

.brief {
  position: relative;
  max-width: 850px;
  margin: auto;
  padding: clamp(2rem, 6vw, 5rem);
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(210,165,75,.35);
  border-radius: 2px;
  box-shadow: var(--shadow);
  font: 500 clamp(1.15rem, 2.1vw, 1.38rem)/1.85 "Cormorant Garamond", serif;
}

.brief::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(210,165,75,.18);
  pointer-events: none;
}

.brief p {
  position: relative;
}

.begruessung {
  color: var(--wine);
  font: 400 2.5rem "Great Vibes", cursive !important;
}

.blume {
  position: absolute;
  font-size: 2.2rem;
  filter: saturate(.75);
  opacity: .8;
}

.blume:first-of-type {
  top: -1.4rem;
  left: -1.4rem;
  transform: rotate(-18deg);
}

.blume:nth-of-type(2) {
  bottom: -1.4rem;
  right: -1.4rem;
  transform: rotate(18deg);
}

.liebes-saetze {
  margin: 2rem 0;
  padding: 1.2rem 1.5rem;
  border-left: 3px solid var(--gold);
  background: var(--blush);
  color: var(--wine);
}

.liebes-saetze p {
  margin: .35rem 0;
  font-weight: 700;
}

.unterschrift {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin: 2.5rem 0 2rem;
}

.unterschrift strong {
  color: var(--wine);
  font: 400 2.8rem "Great Vibes", cursive;
}

.nachsatz {
  display: flex;
  gap: .55rem;
  flex-wrap: wrap;
  border-top: 1px solid rgba(210,165,75,.35);
  padding-top: 1.5rem;
  color: #8b4558;
}

.bilder-abschnitt {
  background: linear-gradient(160deg, #781831, #a52449 60%, #591026);
  color: white;
}

.bilder-abschnitt h2 {
  color: #fff;
}

.bilder-abschnitt .abschnitt-kopf p {
  color: #f4dce2;
}

.bilder-grid {
  max-width: 1180px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.2rem;
}

.bild-karte {
  grid-column: span 4;
  margin: 0;
  padding: .65rem;
  background: #fffaf5;
  color: var(--wine);
  box-shadow: 0 18px 45px rgba(32, 2, 13, .28);
  transform: rotate(-1deg);
  transition: transform .35s ease, box-shadow .35s ease;
}

.bild-karte:nth-child(even) {
  transform: rotate(1deg) translateY(1.4rem);
}

.bild-karte:hover {
  transform: rotate(0) translateY(-8px);
  box-shadow: 0 26px 65px rgba(32,2,13,.38);
}

.bild-knopf {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  overflow: hidden;
  cursor: zoom-in;
  background: linear-gradient(135deg, #f7d8dd, #f9e9c8);
}

.bild-knopf img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.bild-fehlt {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  align-content: center;
  gap: .5rem;
  color: #a3415c;
  font-size: .75rem;
  letter-spacing: .1em;
}

.bild-fehlt > span {
  font-size: 2.5rem;
  animation: pulsieren 1.8s infinite;
}

.bild-fehlt-karte img {
  display: none;
}

.bild-fehlt-karte .bild-fehlt {
  display: grid;
}

.countdown-abschnitt {
  background: #fff8f7;
}

.countdown-box {
  max-width: 1000px;
  margin: auto;
  padding: clamp(2.2rem, 6vw, 5rem);
  text-align: center;
  border-radius: 32px;
  background: radial-gradient(circle at top, #fff, #fff1f2);
  border: 1px solid rgba(210,165,75,.35);
  box-shadow: var(--shadow);
}

.countdown-box > p:first-of-type {
  color: var(--gold);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4rem;
  font-weight: 700;
}

.zaehler {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 2.5rem 0;
}

.zaehler > div {
  background: var(--wine);
  color: white;
  border-radius: 20px;
  padding: 1.5rem .7rem;
  box-shadow: 0 12px 30px rgba(125,23,50,.18);
}

.zaehler > div strong {
  display: block;
  font: 600 clamp(2.1rem, 6vw, 4.2rem)/1 "Cormorant Garamond", serif;
  color: #f3d28e;
}

.zaehler > div span {
  font-size: .65rem;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.countdown-box > p:last-child {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.25rem;
}

.schluss-abschnitt {
  min-height: 72vh;
  display: grid;
  place-items: center;
  padding: 5rem 1.5rem;
  text-align: center;
  background:
    linear-gradient(rgba(72,7,28,.88), rgba(72,7,28,.94)),
    url("images/bild1.jpg") center/cover fixed;
  color: white;
}

.schluss-inhalt {
  max-width: 850px;
}

.schluss-inhalt h2 {
  color: #fff;
}

.schluss-herz {
  display: block;
  font-size: 3rem;
  color: #ef8da3;
  animation: pulsieren 1.5s infinite;
}

.nach-oben {
  display: inline-block;
  margin-top: 1.5rem;
  color: #f4d08a;
  font-size: .75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}

footer {
  background: #3d071b;
  color: #e8bdc8;
  text-align: center;
  padding: 1.4rem;
  font-size: .72rem;
}

.musik-knopf {
  position: fixed;
  right: 1rem;
  top: 1rem;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
  padding: .65rem .9rem;
  color: #fff;
  background: rgba(79,8,31,.65);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.musik-knopf.musik-laeuft > span:first-child {
  animation: drehen 3s linear infinite;
}

.herzen {
  position: fixed;
  inset: 0;
  z-index: 25;
  pointer-events: none;
  overflow: hidden;
}

.schwebendes-herz {
  position: absolute;
  bottom: -40px;
  color: #e96684;
  opacity: 0;
  animation: hochfliegen linear forwards;
}

.bild-zoom {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 4rem 1rem 2rem;
  background: rgba(38,3,16,.92);
  backdrop-filter: blur(10px);
}

.bild-zoom[hidden] {
  display: none;
}

.bild-zoom img {
  max-width: min(92vw, 1000px);
  max-height: 76vh;
  object-fit: contain;
  border: 8px solid #fffaf5;
  box-shadow: 0 25px 80px rgba(0,0,0,.55);
}

.bild-zoom p {
  color: #fff;
  font: 400 1.8rem "Great Vibes", cursive;
}

.zoom-schliessen {
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.7rem;
  cursor: pointer;
}

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

.einblenden.sichtbar {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulsieren {
  50% {
    transform: scale(1.15);
  }
}

@keyframes huepfen {
  50% {
    transform: translateY(7px);
  }
}

@keyframes drehen {
  to {
    transform: rotate(360deg);
  }
}

@keyframes hochfliegen {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0);
  }

  15% {
    opacity: .75;
  }

  100% {
    opacity: 0;
    transform: translateY(-110vh) rotate(35deg);
  }
}

@media (max-width: 780px) {
  .bild-karte {
    grid-column: span 6;
  }

  .zaehler {
    grid-template-columns: repeat(2, 1fr);
  }

  .brief {
    line-height: 1.7;
  }
}

@media (max-width: 520px) {
  .startseite h1 {
    font-size: 4rem;
  }

  .bild-karte,
  .bild-karte:nth-child(even) {
    grid-column: 1 / -1;
    transform: none;
  }

  .bilder-grid {
    gap: 1rem;
  }

  .zaehler {
    gap: .6rem;
  }

  .zaehler > div {
    padding: 1.1rem .4rem;
    border-radius: 15px;
  }

  /* Auf kleinen Bildschirmen reicht das Musik-Symbol. */
  .musik-knopf > span:last-child {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms;
    animation-iteration-count: 1;
    scroll-behavior: auto;
    transition-duration: .01ms;
  }
}
