/* Farbwelt und Schriften (angelehnt an den Gemini-Entwurf) */
:root {
  --leinen: #f9f6f0;
  --stein: #f2ede4;
  --blush: #f4ece4;
  --champagner: #c9a96e;
  --champagner-hell: #dfca9d;
  --gold-dunkel: #9e7c3e;
  --schiefer: #2a2928;
  --kohle: #4a4846;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --schrift: 'Pinyon Script', cursive;
  --schatten: 0 20px 45px -15px rgba(42, 41, 40, .08), 0 8px 16px -6px rgba(42, 41, 40, .04);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--leinen);
  color: var(--schiefer);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--champagner-hell); color: var(--schiefer); }

img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }

/* ---------- Bausteine ---------- */
.icon { width: 1em; height: 1em; flex: none; }
.icon-gold { color: var(--champagner); }

.glas {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .85);
}

.schatten { box-shadow: var(--schatten); }

.gold-text {
  background: linear-gradient(135deg, #a48141 0%, #d8be86 50%, #8c672b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mitte { text-align: center; margin-left: auto; margin-right: auto; }
.inhalt-schmal { max-width: 36rem; margin-left: auto; margin-right: auto; }
.inhalt-brief { max-width: 44rem; margin-left: auto; margin-right: auto; }
.inhalt-mittel { max-width: 56rem; margin: 0 auto; }
.inhalt-breit { max-width: 72rem; margin-left: auto; margin-right: auto; }

.abschnitt { padding: 5rem 1.5rem; }
.band { padding: 4rem 1.5rem; background: rgba(242, 237, 228, .7); border-block: 1px solid rgba(201, 169, 110, .15); }
.band-hell { background: rgba(242, 237, 228, .5); border-bottom: 0; }

.label {
  display: block;
  margin-bottom: .6rem;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dunkel);
}

.titel {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.875rem, 6vw, 2.25rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.titel-gross { font-size: clamp(1.875rem, 7vw, 3rem); }

.fliesstext {
  font-size: clamp(.875rem, 2.5vw, 1rem);
  color: rgba(74, 72, 70, .8);
  line-height: 1.7;
}

.klein-text {
  margin-top: 2rem;
  font-size: .75rem;
  letter-spacing: .02em;
  color: rgba(74, 72, 70, .7);
}

.klein-text .icon { vertical-align: -2px; margin-right: .25rem; }

.symbol-kreis {
  width: 3rem;
  height: 3rem;
  margin: 0 auto .75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(223, 202, 157, .3);
  color: var(--gold-dunkel);
  font-size: 1.25rem;
}

/* ---------- Knöpfe ---------- */
.knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .95rem 1.75rem;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background .3s, color .3s, box-shadow .3s;
}

.knopf .icon { font-size: .95rem; }

.knopf-dunkel { background: var(--schiefer); color: #fff; box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1); }
.knopf-dunkel .icon { color: var(--champagner); transition: color .3s; }
.knopf-dunkel:hover { background: var(--gold-dunkel); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1); }
.knopf-dunkel:hover .icon { color: #fff; }

.knopf-hell {
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(201, 169, 110, .3);
  box-shadow: var(--schatten);
}
.knopf-hell:hover { background: #fff; }

.knopf-gold { background: var(--champagner); color: #fff; padding: .8rem 1.5rem; }
.knopf-gold:hover { background: var(--gold-dunkel); }

/* ---------- Leiste oben rechts ---------- */
.leiste {
  position: fixed;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 40;
  display: flex;
  gap: .75rem;
}

.pille {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid #fff;
  box-shadow: var(--schatten);
  font: 500 .75rem var(--sans);
  color: var(--kohle);
  text-decoration: none;
  cursor: pointer;
  transition: background .3s, opacity .3s;
}

.pille:hover { background: #fff; color: var(--schiefer); }
.pille[aria-pressed='false'] { opacity: .6; }
.pille-datum { letter-spacing: .1em; text-transform: uppercase; color: var(--schiefer); padding-inline: 1rem; }
.nur-gross { display: none; }

@media (min-width: 40rem) { .nur-gross { display: inline; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 95vh;
  min-height: 95svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 3rem;
  overflow: hidden;
  isolation: isolate;
}

/* Hotel-Luftbild ganz zart und matt hinter dem Kopfbereich (nur persönliche Seiten) */
.hero > .hotel-bild {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('/bilder/hotel-sonne.jpg') center 60% / cover no-repeat;
  opacity: .16;
  filter: saturate(.6) sepia(.2);
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
  pointer-events: none;
  animation: hotel-ein 2s ease-out both;
}

@keyframes hotel-ein { from { opacity: 0; } }

.hero > :not(.glanz):not(.herz-collage):not(.herz-schleier):not(.hotel-bild) { position: relative; z-index: 2; animation: einblenden 1.2s ease-out both; }
.hero > :nth-child(6) { animation-delay: .1s; }
.hero > :nth-child(7) { animation-delay: .2s; }
.hero > :nth-child(8) { animation-delay: .3s; }
.hero > :nth-child(9) { animation-delay: .4s; }
.hero > :nth-child(10) { animation-delay: .5s; }

.glanz { position: absolute; border-radius: 50%; filter: blur(64px); pointer-events: none; animation: none; }
.glanz-1 { top: -8rem; left: -8rem; width: 24rem; height: 24rem; background: rgba(223, 202, 157, .15); }
.glanz-2 { bottom: -6rem; right: -6rem; width: 28rem; height: 28rem; background: rgba(201, 169, 110, .1); }

/* Herz aus Polaroid-Stickern hinter dem Kopfbereich */
.herz-collage {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 50%;
  width: min(70rem, 94vw, 104vh);
  aspect-ratio: 1 / .8;
  margin-top: 1.5rem;
  translate: -50% -50%;
  pointer-events: none;
}

.sticker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: clamp(4.25rem, 8vw, 6.75rem);
  translate: -50% -50%;
  rotate: var(--r);
  opacity: .78;
  filter: saturate(.9);
  animation: sticker-rein .9s cubic-bezier(.34, 1.56, .64, 1) var(--d) both;
}

.sticker-innen {
  padding: .3rem .3rem 1rem;
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 10px 24px -8px rgba(35, 25, 20, .22);
  animation: sticker-schweben 7s ease-in-out var(--f) infinite;
}

.sticker img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }

/* Heller Schleier in der Mitte, damit der Text lesbar bleibt */
.herz-schleier {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 38% 42% at 50% 50%, rgba(249, 246, 240, .92) 0%, rgba(249, 246, 240, .75) 55%, rgba(249, 246, 240, 0) 100%);
}

@media (max-width: 40rem) {
  /* Handy: Herz als eigenes Bildelement oben, "Wir sagen Ja" und "Save the Date" in seiner Mitte */
  .hero { --herz-b: min(100vw - 5.5rem, 22rem); padding: 5rem 1.5rem 1.5rem; min-height: 0; justify-content: flex-start; }
  .hero > .entdecken { margin-top: 2.5rem; }
  .herz-collage {
    position: relative;
    left: auto;
    top: auto;
    translate: none;
    flex: none;
    width: var(--herz-b);
    height: calc(var(--herz-b) * .9);
    aspect-ratio: auto;
    margin: 0 auto;
  }
  .hero > .herz-collage + .herz-schleier { display: none; }
  .hero > .ornament { margin-top: calc(var(--herz-b) * -.66); margin-bottom: .5rem; }
  .hero > .ornament span { width: 1.5rem; }
  .hero > .std { margin-bottom: calc(var(--herz-b) * .62); font-size: 1.35rem; }
  .sticker { width: 3.2rem; opacity: .92; }
  .sticker-innen { padding: .2rem .2rem .7rem; }
  .hero .badge { background: rgba(255, 255, 255, .88); }
  .herz-schleier { background: radial-gradient(ellipse 48% 40% at 50% 48%, rgba(249, 246, 240, .94) 0%, rgba(249, 246, 240, .8) 60%, rgba(249, 246, 240, 0) 100%); }
}

/* Sticker anklickbar: Foto wird kurz gross in der Mitte gezeigt (main.js) */
.sticker { pointer-events: auto; cursor: zoom-in; }

.foto-schleier {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(42, 41, 40, .45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: zoom-out;
}

.sticker-innen.foto-gross {
  position: fixed;
  z-index: 1001;
  left: 50%;
  top: 50%;
  --w: min(80vw, 24rem, 56vh);
  width: var(--w);
  translate: -50% -50%;
  padding: calc(var(--w) * .04) calc(var(--w) * .04) calc(var(--w) * .15);
  border-radius: 3px;
  box-shadow: 0 30px 60px -20px rgba(20, 15, 10, .5);
  animation: none;
  transform-origin: 50% 50%;
  cursor: zoom-out;
}

.foto-gross img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; }

@keyframes sticker-rein { from { opacity: 0; scale: .4; } }
@keyframes sticker-schweben { 50% { transform: translateY(-6px) rotate(1.5deg); } }

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
  opacity: .8;
}

.ornament span { width: 3rem; height: 1px; background: var(--champagner); }

.ornament p {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .35em;
  text-transform: uppercase;
  color: var(--gold-dunkel);
}

.std {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.5rem, 5vw, 1.875rem);
  letter-spacing: .025em;
  color: rgba(74, 72, 70, .9);
  margin-bottom: .5rem;
}

.namen {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3rem, 12vw, 6rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}

.namen .und {
  font-family: var(--schrift);
  font-size: .75em;
  color: var(--champagner);
  padding: 0 .1em;
  letter-spacing: 0;
}

.namen-klein { font-size: clamp(2.5rem, 10vw, 4rem); margin-top: .5rem; }

.zitat {
  max-width: 28rem;
  margin: 0 auto 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.125rem, 3.5vw, 1.25rem);
  line-height: 1.6;
  color: rgba(74, 72, 70, .8);
}

.badge {
  position: relative;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto 2.5rem;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.badge-tag {
  position: absolute;
  top: -.75rem;
  padding: .25rem 1rem;
  border-radius: 999px;
  background: var(--champagner);
  color: #fff;
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
}

.badge-datum {
  margin: .25rem 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 9vw, 3rem);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.badge-ort {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--gold-dunkel);
}

.knoepfe {
  position: relative;
  z-index: 20;
  width: 100%;
  max-width: 28rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 40rem) {
  .knoepfe { flex-direction: row; justify-content: center; max-width: 40rem; }
}

.entdecken {
  margin-top: 3.5rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(74, 72, 70, .6);
  transition: color .3s;
}

.entdecken:hover { color: var(--gold-dunkel); }
.entdecken span { font-size: .625rem; font-weight: 500; letter-spacing: .25em; text-transform: uppercase; margin-bottom: .25rem; }
.huepfen { animation: huepfen 1s infinite; }

/* ---------- Persönlicher Brief ---------- */
.brief {
  margin-top: 1rem;
  padding: 2.5rem 1.75rem;
  border-radius: 1.5rem;
  font-size: .975rem;
  line-height: 1.8;
  color: var(--kohle);
}

@media (min-width: 40rem) { .brief { padding: 3rem; } }

.brief p + p { margin-top: 1rem; }

.anrede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.625rem, 6vw, 2.125rem);
  line-height: 1.3;
  color: var(--schiefer);
  margin-bottom: 1.25rem;
}

.brief .brief-titel {
  margin-top: 2rem;
  text-align: center;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dunkel);
}

.programm {
  list-style: none;
  margin: 1rem 0 2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

@media (min-width: 34rem) {
  .programm-4 { grid-template-columns: repeat(4, 1fr); }
}

.programm-punkt {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.1rem .5rem 1rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .6);
  border: 1px solid rgba(201, 169, 110, .2);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.2;
  text-align: center;
  color: var(--schiefer);
}

.programm-punkt .symbol-kreis { width: 2.75rem; height: 2.75rem; margin-bottom: .6rem; font-size: 1.3rem; }

.brief-gruss { text-align: center; font-family: var(--serif); font-style: italic; font-size: 1.375rem; color: var(--schiefer); margin-top: 2rem !important; }
.brief-unterschrift { text-align: center; font-family: var(--schrift); font-size: 1.75rem; color: var(--champagner); margin-top: .25rem !important; }

/* ---------- Countdown ---------- */
.countdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 42rem;
  margin: 2rem auto 0;
}

@media (min-width: 40rem) { .countdown { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; } }

.kachel { padding: 1.25rem; border-radius: 1rem; display: flex; flex-direction: column; align-items: center; }

.kachel-zahl {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.25rem, 8vw, 3rem);
  line-height: 1.1;
  margin-bottom: .25rem;
  font-variant-numeric: lining-nums tabular-nums;
}

.kachel-label { font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: rgba(74, 72, 70, .75); }

/* ---------- Polaroids ---------- */
.polaroids {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 4rem;
}

@media (min-width: 48rem) { .polaroids { grid-template-columns: repeat(3, 1fr); } }

.polaroid {
  width: 100%;
  max-width: 20rem;
  margin: 0 auto;
  padding: 1rem 1rem 1.75rem;
  background: #fff;
  border-radius: 2px;
  transform: rotate(var(--drehung));
  box-shadow: 0 16px 36px -10px rgba(35, 25, 20, .12);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s cubic-bezier(.16, 1, .3, 1);
}

.polaroid:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 24px 45px -8px rgba(35, 25, 20, .18); }

@media (min-width: 48rem) {
  .polaroid-mitte { transform: rotate(var(--drehung)) scale(1.05); z-index: 1; box-shadow: 0 25px 50px -12px rgba(35, 25, 20, .25); }
}

.polaroid-bild { aspect-ratio: 4 / 5; overflow: hidden; background: var(--stein); margin-bottom: 1rem; }
.polaroid-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.polaroid-bild img:hover { transform: scale(1.05); }

.polaroid figcaption { display: flex; flex-direction: column; align-items: center; }
.polaroid-titel { font-family: var(--serif); font-style: italic; font-size: 1.125rem; }
.polaroid-unter { margin-top: .1rem; font-size: .625rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-dunkel); }

/* ---------- Ort & Wissenswertes ---------- */
.karte { padding: 2rem 1.25rem; border-radius: 1.5rem; }

@media (min-width: 40rem) { .karte { padding: 3rem; } }

.infos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: center;
}

@media (min-width: 48rem) { .infos { grid-template-columns: repeat(3, 1fr); } }

.info {
  display: block;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, .6);
  border: 1px solid #fff;
  text-decoration: none;
  transition: background .3s;
}

a.info:hover { background: #fff; }
.info .icon { font-size: 1.125rem; margin: 0 auto .5rem; display: block; color: var(--gold-dunkel); }
.info h3 { font-family: var(--serif); font-size: 1.25rem; margin-bottom: .25rem; }
.info p { font-size: .8125rem; line-height: 1.6; color: rgba(74, 72, 70, .8); }

.kalender-box {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: linear-gradient(to right, var(--leinen), var(--blush), var(--leinen));
  border: 1px solid rgba(201, 169, 110, .3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.kalender-box h3 { font-family: var(--serif); font-size: 1.125rem; font-weight: 500; }
.kalender-box p { font-size: .75rem; color: rgba(74, 72, 70, .75); }

@media (min-width: 40rem) {
  .kalender-box { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ---------- Fuss ---------- */
.fuss {
  padding: 3rem 1.5rem;
  text-align: center;
  border-top: 1px solid rgba(201, 169, 110, .15);
  background: rgba(242, 237, 228, .3);
}

.fuss-namen { font-family: var(--serif); font-weight: 300; font-size: 1.5rem; letter-spacing: .025em; }
.fuss-schrift { font-family: var(--schrift); font-size: 1.5rem; color: var(--champagner); margin-top: .5rem; }
.fuss .linie { display: block; width: 4rem; height: 1px; margin: 1.25rem auto; background: rgba(201, 169, 110, .4); }
.fuss-klein { font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(74, 72, 70, .6); }

/* ---------- 404 ---------- */
.leer {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
}

.leer .fliesstext { margin-bottom: 2rem; }

/* ---------- Herzen ---------- */
#herzen { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 10; }

/* ---------- Animationen ---------- */
.js .reveal { opacity: 0; transform: translateY(1.5rem); transition: opacity 1s ease, transform 1s ease; }
.js .reveal.sichtbar { opacity: 1; transform: none; }

@keyframes einblenden { from { opacity: 0; transform: translateY(16px); } }
@keyframes huepfen {
  0%, 100% { transform: translateY(-25%); animation-timing-function: cubic-bezier(.8, 0, 1, 1); }
  50% { transform: none; animation-timing-function: cubic-bezier(0, 0, .2, 1); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
