/* =========================================================
   Fonts (self-hosted, DSGVO-konform)
========================================================= */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("../assets/fonts/playfair-display-variable.woff2") format("woff2");
}

@font-face {
  font-family: "Quicksand";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/quicksand-variable.woff2") format("woff2");
}

/* =========================================================
   Design Tokens: Nachtblau + Metallic-Gold aus der Deynique-Bildwelt
========================================================= */
:root {
  --color-night: #0b1630;
  --color-night-soft: #16284d;
  --color-night-deep: #070f22;
  --color-gold: #d4ae62;
  --color-gold-light: #f0d895;
  --color-snow: #f5f7fb;
  --color-ice: #e4eaf3;
  --color-text: #1a2740;
  --color-text-on-night: #e6ecf5;
  --color-muted-on-night: #a9b6cb;

  --gold-metal: linear-gradient(135deg, #f3dc9b 0%, #c99a46 42%, #efd28c 68%, #b8893a 100%);
  /* Weiche Lichtpunkte wie das Bokeh in den Kalenderfotos. */
  --night-glow:
    radial-gradient(520px 380px at 88% 8%, rgba(212, 174, 98, 0.18), transparent 70%),
    radial-gradient(420px 320px at 6% 92%, rgba(212, 174, 98, 0.12), transparent 70%),
    radial-gradient(700px 500px at 30% 0%, rgba(60, 100, 170, 0.28), transparent 70%);

  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans: "Quicksand", Arial, sans-serif;
}

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

body {
  margin: 0;
  background: var(--color-snow);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.7;
}

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

h1, h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--color-gold); outline-offset: 3px; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

.btn {
  display: inline-block;
  padding: 16px 30px;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  transition: filter 0.2s, background-color 0.2s;
}

.btn-gold { background: var(--gold-metal); color: var(--color-night); }
.btn-gold:hover { filter: brightness(1.08); }
.btn-night { background: var(--color-night); color: #fff; }
.btn-night:hover { background: var(--color-night-soft); }

/* Goldrahmen wie auf dem Flyer: kräftige Linie am Bild, feine Linie mit Abstand. */
.framed {
  margin: 0;
  border: 2px solid var(--color-gold);
  outline: 1px solid rgba(212, 174, 98, 0.45);
  outline-offset: 10px;
}

.framed img { width: 100%; }

/* Goldene Trennlinie mit Stern, wie zwischen den Flyer-Abschnitten. */
.ornament {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--color-gold);
  font-size: 1.125rem;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--color-gold));
}

.ornament::after { background: linear-gradient(90deg, var(--color-gold), transparent); }

/* =========================================================
   Header
========================================================= */
.site-header {
  padding: 16px 0;
  border-bottom: 1px solid rgba(212, 174, 98, 0.35);
  background: var(--color-night-deep);
}

.logo { width: 300px; }

/* =========================================================
   Hero
========================================================= */
.hero {
  overflow: hidden;
  padding: 88px 0 104px;
  background: var(--night-glow), var(--color-night);
  color: var(--color-text-on-night);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 80px;
  align-items: center;
}

.hero-kicker { margin: 0 0 20px; color: var(--color-gold); font-weight: 600; letter-spacing: 0.08em; }

.hero h1 {
  margin-bottom: 24px;
  color: #fff;
  font-size: clamp(2.75rem, 6.5vw, 5rem);
  line-height: 1.04;
}

.hero-lead { max-width: 52ch; margin: 0 0 36px; font-size: 1.1875rem; }

.hero-photo { position: relative; }

/* =========================================================
   Preis-Siegel wie auf dem Flyer
========================================================= */
.price-seal {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44%;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 35%, var(--color-night-soft), var(--color-night) 70%) padding-box,
    var(--gold-metal) border-box;
  box-shadow: 0 12px 34px rgba(7, 15, 34, 0.5);
  color: #fff;
  text-align: center;
  transform: translate(-50%, -50%);
  container-type: inline-size;
}

.price-seal strong {
  font-size: 16cqw;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.price-seal span {
  margin: 4cqw 12cqw 0;
  padding-top: 4.5cqw;
  border-top: 1.5px solid var(--color-gold);
  font-size: 7.6cqw;
  font-weight: 500;
  line-height: 1.25;
}

/* Siegel ragt wie auf dem Flyer über die Bildecke hinaus. */
.price-seal-hero { top: 12%; left: 90%; }
.price-seal-contents { top: 17%; left: 15%; }

/* =========================================================
   Gefühl
========================================================= */
.ritual { padding: 104px 0; background: var(--color-snow); }

.ritual-inner {
  display: grid;
  grid-template-columns: minmax(0, 420px) minmax(0, 1fr);
  gap: 88px;
  align-items: center;
}

.ritual-text h2 { margin-bottom: 28px; }
.ritual-text p { max-width: 60ch; margin: 0 0 20px; }
.ritual-text p:last-child { margin-bottom: 0; }

/* =========================================================
   Türchen
========================================================= */
.doors {
  padding: 96px 0;
  background: var(--night-glow), var(--color-night);
  color: var(--color-text-on-night);
}

.doors h2 { color: #fff; }
.doors-heading { max-width: 640px; margin-bottom: 48px; }
.doors-heading p { margin: 16px 0 0; }

.door-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.door-cell {
  position: relative;
  min-height: 230px;
  overflow: hidden;
  border: 1px solid var(--color-gold);
  background: #fff;
  perspective: 1100px;
}

.door-inside {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  height: 100%;
  min-height: 228px;
  padding: 16px;
  color: var(--color-text);
}

.door-inside img { width: 100%; height: 196px; object-fit: contain; }
.door-text { display: flex; flex-direction: column; }
.door-text strong { margin-bottom: 8px; font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; line-height: 1.25; }
.door-text span { font-size: 0.9375rem; line-height: 1.5; }

/* Fassade mit erleuchteten Fenstern; klappt beim Öffnen an der linken Kante auf. */
.door {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background-color: var(--color-night-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='%230b1630'%3E%3Crect x='10' y='10' width='20' height='28'/%3E%3Crect x='90' y='10' width='20' height='28'/%3E%3Crect x='50' y='50' width='20' height='28'/%3E%3Crect x='10' y='90' width='20' height='28'/%3E%3Crect x='50' y='90' width='20' height='28'/%3E%3C/g%3E%3Cg fill='%23e8c67e'%3E%3Crect x='50' y='10' width='20' height='28'/%3E%3Crect x='10' y='50' width='20' height='28'/%3E%3Crect x='90' y='50' width='20' height='28'/%3E%3Crect x='90' y='90' width='20' height='28'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--color-gold);
  cursor: pointer;
  transform-origin: left center;
  transition: transform 0.65s cubic-bezier(0.3, 0.7, 0.3, 1), visibility 0s linear 0s;
}

.door:hover { background-color: #22406f; }

.door-star {
  display: grid;
  width: 64px;
  height: 64px;
  margin: auto;
  place-items: center;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  background: var(--color-night);
  font-size: 1.5rem;
}

.door[aria-expanded="true"] {
  transform: rotateY(-108deg);
  visibility: hidden;
  transition: transform 0.65s cubic-bezier(0.3, 0.7, 0.3, 1), visibility 0s linear 0.65s;
}

/* =========================================================
   Inhalt
========================================================= */
.contents { overflow: hidden; padding: 104px 0; background: #fff; }

.contents-inner {
  display: grid;
  grid-template-columns: minmax(0, 480px) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.contents-photo { position: relative; margin: 0; }

.contents-lead { margin: 16px 0 28px; }

.contents-groups { display: grid; gap: 24px; margin-bottom: 36px; }
.contents-groups h3 { margin: 0 0 4px; font-size: 1.0625rem; font-weight: 700; }
.contents-groups p { margin: 0; }

/* =========================================================
   Schenken & Empfehlung
========================================================= */
.gift {
  padding: 104px 0;
  background: var(--night-glow), var(--color-night-deep);
  color: var(--color-text-on-night);
}

.gift-inner {
  display: grid;
  grid-template-columns: minmax(0, 460px) minmax(0, 1fr);
  gap: 88px;
  align-items: center;
}

.gift h2 { margin-bottom: 20px; color: #fff; font-size: clamp(1.5rem, 2.8vw, 2.125rem); }
.gift p { max-width: 58ch; margin: 0; }
.gift a { color: var(--color-gold-light); }
.gift .ornament { margin: 36px 0; }

/* =========================================================
   Abschluss
========================================================= */
.final {
  padding: 104px 0;
  border-top: 1px solid rgba(212, 174, 98, 0.35);
  background: var(--night-glow), var(--color-night);
  color: var(--color-text-on-night);
  text-align: center;
}

.final-inner { max-width: 720px; }
.final .ornament { justify-content: center; margin-bottom: 28px; }
.final h2 { margin-bottom: 16px; color: #fff; font-size: clamp(2.25rem, 5vw, 3.75rem); }
.final-inner > p { margin: 0 0 32px; }

.final-inner > p.final-bonus {
  margin: 32px auto 0;
  padding: 16px 20px;
  border: 1px solid var(--color-gold);
  color: #fff;
}

.final-bonus strong { color: var(--color-gold); }

.final-inner > p.final-facts { margin: 20px 0 8px; font-weight: 600; }
.final-inner > p.final-legal { margin: 0; color: var(--color-muted-on-night); font-size: 0.875rem; line-height: 1.55; }

/* =========================================================
   Footer
========================================================= */
.site-footer { padding: 24px 0; background: var(--color-night-deep); color: var(--color-muted-on-night); font-size: 0.875rem; }
.footer-note {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(212, 174, 98, 0.25);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-inner p, .footer-inner ul { margin: 0; padding: 0; }
.footer-inner ul { display: flex; gap: 24px; list-style: none; }

/* =========================================================
   Schneeflocken
========================================================= */
.snowflake, .snowflake .inner { animation-iteration-count: infinite; animation-play-state: running; }

@keyframes snowflakes-fall { 0% { transform: translateY(0); } 100% { transform: translateY(110vh); } }
@keyframes snowflakes-shake { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(80px); } }

.snowflake {
  position: fixed;
  top: -10%;
  z-index: 9999;
  color: #fff;
  font-size: 1.25rem;
  /* Feiner dunkler Schatten, damit die Flocken auch auf hellen Abschnitten sichtbar bleiben. */
  text-shadow: 0 0 3px rgba(11, 22, 48, 0.55);
  user-select: none;
  cursor: default;
  pointer-events: none;
  animation-name: snowflakes-shake;
  animation-duration: 3s;
  animation-timing-function: ease-in-out;
}

.snowflake .inner { animation-duration: 10s; animation-name: snowflakes-fall; animation-timing-function: linear; }

.snowflake:nth-of-type(1) { left: 10%; animation-delay: 1s; }
.snowflake:nth-of-type(1) .inner, .snowflake:nth-of-type(8) .inner { animation-delay: 1s; }
.snowflake:nth-of-type(2) { left: 20%; animation-delay: 0.5s; }
.snowflake:nth-of-type(2) .inner, .snowflake:nth-of-type(6) .inner { animation-delay: 6s; }
.snowflake:nth-of-type(3) { left: 30%; animation-delay: 2s; }
.snowflake:nth-of-type(11) .inner, .snowflake:nth-of-type(3) .inner { animation-delay: 4s; }
.snowflake:nth-of-type(4) { left: 40%; animation-delay: 2s; }
.snowflake:nth-of-type(10) .inner, .snowflake:nth-of-type(4) .inner { animation-delay: 2s; }
.snowflake:nth-of-type(5) { left: 50%; animation-delay: 3s; }
.snowflake:nth-of-type(5) .inner { animation-delay: 8s; }
.snowflake:nth-of-type(6) { left: 60%; animation-delay: 2s; }
.snowflake:nth-of-type(7) { left: 70%; animation-delay: 1s; }
.snowflake:nth-of-type(7) .inner { animation-delay: 2.5s; }
.snowflake:nth-of-type(8) { left: 80%; animation-delay: 0s; }
.snowflake:nth-of-type(9) { left: 90%; animation-delay: 1.5s; }
.snowflake:nth-of-type(9) .inner { animation-delay: 3s; }
.snowflake:nth-of-type(10) { left: 25%; animation-delay: 0s; }
.snowflake:nth-of-type(11) { left: 65%; animation-delay: 2.5s; }
.snowflake:nth-of-type(12) { left: 4%; animation-delay: 1.2s; }
.snowflake:nth-of-type(12) .inner { animation-delay: 5s; }

/* =========================================================
   Responsive
========================================================= */
@media (max-width: 860px) {
  .hero { padding: 48px 0 80px; }
  .hero-inner, .ritual-inner, .contents-inner, .gift-inner { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero-photo, .ritual-photo, .gift-photo { width: calc(100% - 24px); max-width: 420px; margin-inline: auto; }
  .contents-photo { width: min(100%, 460px); margin-inline: auto; }
  .price-seal-hero { top: 8%; left: 80%; }
  .price-seal-contents { top: 15%; left: 22%; }
  .ritual, .contents, .gift, .final { padding: 72px 0; }
  .ritual-inner .ritual-text { order: -1; }
  .doors { padding: 64px 0; }
  .door-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .door, .door[aria-expanded="true"] { transition: none; }
  .snowflakes { display: none; }
}
