/* ==========================================================================
   ELEGANT ROMANTIC EXPERIENCE – CSS STYLE
   ========================================================================== */

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

:root {
  --bg-sand: #FAF6F0;
  --bg-blush: #F5EBE6;
  --bg-cream: #FDFBF7;
  --clr-rose: #b87d6e;
  --clr-rose-lt: #e0aba2;
  --clr-rose-dk: #8c5547;
  --clr-gray: #7a6e67;
  --clr-dark: #2d2522;
  --clr-card: rgba(255, 255, 255, 0.88);
  --clr-border: rgba(184, 125, 110, 0.16);
  --shadow: 0 24px 60px rgba(184, 125, 110, 0.12), 0 8px 24px rgba(45, 37, 34, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  --font-t: 'Playfair Display', Georgia, serif;
  --font-b: 'Lato', Arial, sans-serif;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

/* ── DARK MODE ── */
body.dark-mode {
  --bg-sand: #1a1520;
  --bg-blush: #221a28;
  --bg-cream: #2a1f30;
  --clr-rose: #d4917e;
  --clr-rose-lt: #e8a89a;
  --clr-rose-dk: #c07a68;
  --clr-gray: #a09494;
  --clr-dark: #f0e6e0;
  --clr-card: rgba(40, 30, 45, 0.92);
  --clr-border: rgba(212, 145, 126, 0.2);
  --shadow: 0 24px 60px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.05);
}

body.dark-mode .card,
body.dark-mode .popup { background: var(--clr-card); }
body.dark-mode .polaroid { background: #2a2030; }
body.dark-mode .polaroid-img { background: linear-gradient(135deg, #2a1f30, #1a1520); }
body.dark-mode .icon-btn { background: var(--clr-card); border-color: var(--clr-border); }
body.dark-mode .cd-bar { background: var(--clr-card); border-color: var(--clr-border); }

/* ── STARS ── */
#stars-container { position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: 0; transition: opacity 1.5s ease; }
body.dark-mode #stars-container { opacity: 1; }
.star { position: absolute; width: 2px; height: 2px; background: #fff; border-radius: 50%; animation: twinkle var(--dur, 3s) ease-in-out infinite; opacity: 0; }
.star.lg { width: 3px; height: 3px; box-shadow: 0 0 4px 1px rgba(255,255,255,0.3); }
@keyframes twinkle { 0%,100% { opacity: 0.15; transform: scale(1); } 50% { opacity: var(--op, 0.8); transform: scale(1.3); } }

/* ── BODY ── */
html, body { width: 100%; min-height: 100%; overflow-x: hidden; background-color: var(--bg-sand); transition: background-color 0.8s ease; }

/* Countdown soll sich auch auf großen Homeserver-Displays gut anfühlen */
body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}


body {

  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;

  font-family: var(--font-b); color: var(--clr-dark);
  position: relative; gap: 16px;
  background: radial-gradient(circle at 50% 50%, var(--bg-cream) 0%, var(--bg-sand) 50%, var(--bg-blush) 100%);
  animation: gradAmb 12s ease-in-out infinite alternate;
  padding: 24px env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Sicheres vertikales Zentrieren: Auto-Margin-Pseudoelemente zentrieren den
   Inhalt, schneiden bei Überlauf aber nicht den oberen Bereich ab. */
body::before, body::after { content: ""; margin: auto; }
@keyframes gradAmb {
  0% { background: radial-gradient(circle at 30% 30%, var(--bg-cream) 0%, var(--bg-sand) 60%, var(--bg-blush) 100%); }
  50% { background: radial-gradient(circle at 70% 60%, var(--bg-cream) 0%, var(--bg-sand) 60%, var(--bg-blush) 100%); }
  100% { background: radial-gradient(circle at 40% 70%, var(--bg-cream) 0%, var(--bg-sand) 60%, var(--bg-blush) 100%); }
}

/* ── ICON BUTTONS ── */
.icon-btn {
  position: fixed; top: 20px; width: 42px; height: 42px; border-radius: 50%;
  background: var(--clr-card); border: 1px solid var(--clr-border);
  box-shadow: 0 6px 20px rgba(184,125,110,0.1);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 500;
  transition: all 0.3s var(--ease);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.icon-btn:hover { transform: scale(1.08); }
.icon-btn svg { width: 18px; height: 18px; fill: var(--clr-rose); transition: fill 0.3s var(--ease); }
.icon-btn:hover svg { fill: var(--clr-rose-dk); }
.sound-toggle { right: 20px; }
.dark-toggle { left: 20px; }
.hidden { display: none !important; }

/* ── BACKGROUND HEARTS ── */
#bg-hearts-container { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.bg-heart { position: absolute; bottom: -80px; width: 24px; height: 24px; opacity: 0; animation: floatUp linear infinite; user-select: none; }
.bg-heart svg { width: 100%; height: 100%; }
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0deg) scale(0.6); opacity: 0; }
  15% { opacity: var(--target-opacity, 0.25); }
  85% { opacity: var(--target-opacity, 0.25); }
  100% { transform: translateY(-115vh) rotate(35deg) scale(1.1); opacity: 0; }
}

/* ── CARD ── */
.card {
  position: relative; z-index: 10;
  background: var(--clr-card); border: 1px solid var(--clr-border);
  border-radius: 28px; padding: 40px 36px 32px;
  max-width: 380px; width: calc(100vw - 40px);
  text-align: center;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  animation: cardIn 0.8s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(30px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── HEART ── */
.big-heart-container { display: flex; justify-content: center; margin-bottom: 16px; }
.big-heart-svg {
  width: 64px; height: 64px; fill: url(#roseGold);
  filter: drop-shadow(0 6px 15px rgba(184,125,110,0.2));
  animation: beat 2.2s ease-in-out infinite;
}
@keyframes beat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.08); } 50% { transform: scale(1.03); } }

/* ── TITLES ── */
.title {
  font-family: var(--font-t); font-size: clamp(1.8rem, 7vw, 2.2rem);
  font-weight: 400; color: var(--clr-dark); line-height: 1.25;
  margin-bottom: 6px; letter-spacing: -0.01em;
}
.subtitle {
  font-size: 0.88rem; font-weight: 300; color: var(--clr-gray);
  line-height: 1.5; margin-bottom: 14px;
}

/* ── LOVE COUNTER ── */
.love-counter {
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 12px; padding: 6px 0;
  opacity: 0; animation: fadeUp 0.8s 0.4s ease both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.lc-num {
  font-family: var(--font-t); font-size: 2rem; font-weight: 700;
  line-height: 1.1;
  background: linear-gradient(135deg, var(--clr-rose-lt), var(--clr-rose));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.lc-label { font-size: 0.72rem; font-weight: 300; color: var(--clr-gray); letter-spacing: 0.04em; }

/* ── QUOTE ── */
.quote-rotation {
  font-family: var(--font-t); font-style: italic;
  font-size: 0.8rem; color: var(--clr-gray);
  min-height: 32px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; padding: 0 8px; line-height: 1.5;
  opacity: 0; animation: fadeUp 0.8s 0.6s ease both;
  transition: opacity 0.5s ease;
}

/* ── POLAROID ── */
.polaroid-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.polaroid {
  position: relative; background: #fff; border-radius: 6px;
  padding: 8px 8px 30px 8px;
  box-shadow: 0 6px 24px rgba(45,37,34,0.1), 0 2px 6px rgba(0,0,0,0.04);
  transform: rotate(-2deg);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
  cursor: pointer; width: 140px;
}
.polaroid:hover { transform: rotate(0deg) scale(1.04); box-shadow: 0 12px 36px rgba(184,125,110,0.2); }
.polaroid-img {
  width: 124px; height: 124px; border-radius: 2px; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-blush), var(--bg-sand), var(--bg-cream));
  display: flex; align-items: center; justify-content: center; position: relative;
}
.polaroid-placeholder svg { width: 64px; height: 64px; fill: url(#roseGold); opacity: 0.3; }
.polaroid:hover .polaroid-placeholder svg { opacity: 0.45; }
.polaroid-photo { width: 100%; height: 100%; object-fit: cover; display: none; }
.polaroid-photo.active { display: block; }
.polaroid-caption {
  position: absolute; bottom: 8px; left: 0; right: 0; text-align: center;
  font-family: var(--font-t); font-size: 0.68rem; font-style: italic; color: var(--clr-gray);
}
.polaroid-hint {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(4px); border-radius: 2px;
  opacity: 0; transition: opacity 0.3s ease; pointer-events: none;
}
.polaroid:hover .polaroid-hint { opacity: 1; }
.polaroid.has-photo:hover .polaroid-hint { opacity: 0.7; }
.polaroid-hint span { font-size: 0.65rem; color: var(--clr-gray); text-align: center; padding: 8px; line-height: 1.4; }
.polaroid input[type="file"] { display: none; }
.polaroid.drag-over { border: 2px dashed var(--clr-rose); box-shadow: 0 0 20px rgba(184,125,110,0.25); }

/* ── BUTTONS ── */
.buttons { display: flex; gap: 12px; justify-content: center; align-items: center; }
.btn {
  font-family: var(--font-b); font-size: 0.9rem; font-weight: 400;
  border: none; border-radius: 50px; cursor: pointer;
  padding: 12px 24px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  -webkit-tap-highlight-color: transparent; white-space: nowrap; letter-spacing: 0.02em;
}
.btn-yes {
  --yes-scale: 1;
  background: linear-gradient(135deg, var(--clr-rose-lt), var(--clr-rose));
  color: #fff; flex: 1.2; font-weight: 700;
  transform: scale(var(--yes-scale));
  box-shadow: 0 6px 20px rgba(184,125,110,0.25);
}
.btn-yes:hover { transform: translateY(-2px) scale(calc(var(--yes-scale) * 1.04)); box-shadow: 0 10px 28px rgba(184,125,110,0.35); }
.btn-yes:active { transform: scale(calc(var(--yes-scale) * 0.97)); }
.btn-maybe, .btn-no { background: transparent; color: var(--clr-gray); border: 1px solid rgba(184,125,110,0.22); flex: 1; }
.btn-maybe:hover, .btn-no:hover { background: rgba(184,125,110,0.05); border-color: rgba(184,125,110,0.4); color: var(--clr-dark); transform: translateY(-2px); }
.btn-maybe:active, .btn-no:active { transform: scale(0.96); }
.btn-fleeing { position: fixed !important; z-index: 100; pointer-events: auto; box-shadow: 0 10px 30px rgba(45,37,34,0.08) !important; }

/* ── BIG HEADING ── */
.big-heading{
  font-family: var(--font-t);
  font-size: clamp(1.1rem, 5.6vw, 1.8rem);
  font-weight: 500;
  color: var(--clr-dark);
  text-align: center;
  letter-spacing: -0.01em;
  margin: 14px 0 18px;
  padding: 0 10px;
}

/* ── COUNTDOWN BAR ── */
.cd-bar {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 999px;
  padding: 18px 18px;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 14px 48px rgba(184,125,110,0.12);
  opacity: 0;
  animation: fadeUp 0.8s 0.2s ease both;
}
.cd-digits { display: flex; gap: 14px; align-items: center; }
.cd-col { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.cd-num {
  font-family: var(--font-t);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 700;
  color: var(--clr-rose);
  line-height: 1;
  letter-spacing: -0.03em;
}
.cd-unit {
  font-size: 0.72rem;
  font-weight: 300;
  color: var(--clr-gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}
.cd-sep {
  font-family: var(--font-t);
  font-size: clamp(1.4rem, 5vw, 2rem);
  color: var(--clr-rose-lt);
  margin-top: -18px;
}


/* ── SIGNATURE ── */
.signature { display: flex; justify-content: center; margin-top: 10px; opacity: 0; animation: fadeUp 0.8s 1.2s ease both; }
.signature svg { width: 100px; height: 30px; color: var(--clr-rose-lt); overflow: visible; }
.sig-line { stroke-dasharray: 300; stroke-dashoffset: 300; animation: sigDraw 2s 1.5s ease forwards; }
.sig-heart { opacity: 0; animation: fadeUp 0.6s 3s ease forwards; }
@keyframes sigDraw { to { stroke-dashoffset: 0; } }

/* ── HIDDEN HEARTS ── */
.hidden-heart {
  position: fixed; font-size: 1.2rem; cursor: pointer; z-index: 5;
  opacity: 0.06; transition: all 0.4s var(--ease);
  user-select: none; -webkit-user-select: none; filter: grayscale(0.8);
}
.hidden-heart:hover { opacity: 0.25; transform: scale(1.3); filter: grayscale(0); }
.hidden-heart.found { opacity: 1 !important; filter: grayscale(0) !important; transform: scale(1.6) !important; animation: heartPop 0.6s var(--ease) forwards; }
@keyframes heartPop { 0% { transform: scale(1.6); } 50% { transform: scale(2.2); } 100% { transform: scale(0); opacity: 0; } }

.egg-toast {
  position: fixed; bottom: 40px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--clr-card); border: 1px solid var(--clr-border);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 50px; padding: 10px 24px;
  font-size: 0.85rem; color: var(--clr-rose);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  z-index: 600; opacity: 0;
  animation: toastIn 0.4s var(--ease) forwards, toastOut 0.4s 2.5s ease forwards;
}
@keyframes toastIn { to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(-50%) translateY(20px); } }

/* ── HEART RAIN ── */
#heart-rain-container { position: fixed; inset: 0; pointer-events: none; z-index: 200; overflow: hidden; }
.rain-heart { position: absolute; top: -80px; width: 32px; height: 32px; animation: rainFall linear forwards; user-select: none; }
@keyframes rainFall {
  0% { transform: translateY(0) rotate(0deg) scale(0.8); opacity: 0; }
  10% { opacity: var(--target-opacity, 0.7); }
  90% { opacity: var(--target-opacity, 0.7); }
  100% { transform: translateY(115vh) rotate(45deg) scale(1.2); opacity: 0; }
}

/* ── CONFETTI ── */
#confetti-container { position: fixed; inset: 0; pointer-events: none; z-index: 210; overflow: hidden; }
.confetti-piece {
  position: absolute; top: -20px;
  width: var(--cw, 10px); height: var(--ch, 14px);
  background: var(--cc, #e0aba2); border-radius: var(--cr, 2px);
  animation: confFall var(--cdur, 3s) var(--cdel, 0s) var(--ease) forwards;
  transform: rotate(var(--crot, 0deg));
}
@keyframes confFall {
  0% { transform: translateY(0) rotate(0deg) scale(1); opacity: 1; }
  70% { opacity: 1; }
  100% { transform: translateY(110vh) rotate(var(--crot-end, 720deg)) scale(0.5); opacity: 0; }
}

/* ── OVERLAY ── */
.overlay {
  position: fixed; inset: 0; background: rgba(45,37,34,0.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  z-index: 300; opacity: 0; pointer-events: none; transition: opacity 0.5s ease;
}
.overlay.active { opacity: 1; pointer-events: auto; }

/* ── POPUP ── */
.popup {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.92);
  z-index: 400;
  background: linear-gradient(135deg, #fff, var(--bg-cream));
  border: 1px solid rgba(184,125,110,0.22); border-radius: 28px;
  padding: 40px 32px 36px;
  max-width: 360px; width: calc(100vw - 48px);
  max-height: calc(100dvh - 48px); overflow-y: auto; scrollbar-width: none;
  text-align: center;
  box-shadow: 0 30px 80px rgba(45,37,34,0.15), 0 10px 30px rgba(184,125,110,0.08);
  opacity: 0; pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.popup::-webkit-scrollbar { display: none; }
.popup.active { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%) scale(1); }
.popup-hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.popup-heart-particle { position: absolute; width: 20px; height: 20px; animation: popupFloat linear forwards; user-select: none; }
@keyframes popupFloat { 0% { transform: translateY(0) scale(1) rotate(0deg); opacity: 0.8; } 100% { transform: translateY(-240px) scale(0.3) rotate(20deg); opacity: 0; } }
.popup-heart-wrap { display: flex; justify-content: center; margin-bottom: 16px; }
.popup-heart-wrap svg { width: 72px; height: 72px; fill: url(#roseGold); filter: drop-shadow(0 6px 20px rgba(184,125,110,0.35)); animation: beat 1.8s ease-in-out infinite; }
.popup-title { font-family: var(--font-t); font-size: clamp(1.6rem, 6vw, 2rem); font-weight: 400; color: var(--clr-dark); margin-bottom: 8px; }
.popup-sub { font-weight: 300; color: var(--clr-gray); font-size: 0.95rem; margin-bottom: 16px; }

/* Popup share */
.popup-share { display: flex; gap: 10px; justify-content: center; margin-bottom: 20px; }
.share-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--clr-border); background: transparent;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.25s var(--ease);
}
.share-btn svg { width: 16px; height: 16px; fill: var(--clr-gray); transition: fill 0.25s ease; }
.share-btn:hover { transform: translateY(-2px); border-color: var(--clr-rose); }
.share-btn:hover svg { fill: var(--clr-rose); }
.share-btn:active { transform: scale(0.95); }
#share-whatsapp:hover { background: rgba(37,211,102,0.08); }
#share-whatsapp:hover svg { fill: #25d366; }
#share-telegram:hover { background: rgba(0,136,204,0.08); }
#share-telegram:hover svg { fill: #0088cc; }

.btn-close {
  background: linear-gradient(135deg, var(--clr-rose-lt), var(--clr-rose));
  color: #fff; padding: 12px 32px; font-size: 0.95rem; font-weight: 700;
  box-shadow: 0 6px 20px rgba(184,125,110,0.2);
}
.btn-close:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 24px rgba(184,125,110,0.3); }
.btn-close:active { transform: scale(0.97); }

/* ── SPARKLES ── */
.sparkle-container { position: fixed; inset: 0; pointer-events: none; z-index: 150; overflow: hidden; }
.sparkle { position: absolute; border-radius: 50%; pointer-events: none; animation: spop 0.8s var(--ease) forwards; }
.sparkle-heart { position: absolute; pointer-events: none; animation: sfloat 1s var(--ease) forwards; }
.sparkle-heart svg { width: 100%; height: 100%; }
@keyframes spop { 0% { transform: translate(0,0) scale(1); opacity: 1; } 100% { transform: translate(var(--sx),var(--sy)) scale(0); opacity: 0; } }
@keyframes sfloat { 0% { transform: translate(0,0) rotate(0deg) scale(1); opacity: 0.9; } 100% { transform: translate(var(--sx),var(--sy)) rotate(var(--sr)) scale(0.2); opacity: 0; } }

/* ── LOVE LETTER ── */
.love-letter {
  font-size: 0.88rem; font-weight: 300; color: var(--clr-gray);
  line-height: 1.7; text-align: left;
  margin: 0 auto 20px; max-width: 260px; min-height: 40px;
  position: relative;
}
.love-letter::after { content: '|'; color: var(--clr-rose); animation: blink 0.8s step-end infinite; font-weight: 100; }
.love-letter.done::after { display: none; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* ── HERO SECTION ── */
.hero-section {
  position: relative; z-index: 10;
  text-align: center;
  padding: 20px;
  margin-bottom: 40px;
}

/* ── SECTION GENERAL ── */
.section {
  position: relative; z-index: 10;
  max-width: 600px; width: calc(100vw - 40px);
  margin: 0 auto 40px;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 24px;
  padding: 32px 28px;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  animation: fadeUp 0.8s ease both;
}

.section-title {
  font-family: var(--font-t);
  font-size: clamp(1.4rem, 5vw, 1.8rem);
  font-weight: 600;
  color: var(--clr-dark);
  text-align: center;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--clr-border);
}

/* ── TIMELINE ── */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--clr-rose-lt), var(--clr-rose), var(--clr-rose-lt));
}

.timeline-item {
  position: relative;
  margin-bottom: 24px;
  padding-left: 16px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -20px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--clr-rose);
  border: 3px solid var(--bg-cream);
  box-shadow: 0 0 0 2px var(--clr-rose-lt);
}

.timeline-item.highlight::before {
  width: 16px; height: 16px;
  left: -22px; top: 2px;
  background: linear-gradient(135deg, var(--clr-rose-lt), var(--clr-rose));
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--clr-rose-lt), 0 0 0 6px rgba(184,125,110,0.2); }
  50% { box-shadow: 0 0 0 2px var(--clr-rose-lt), 0 0 0 12px rgba(184,125,110,0); }
}

.timeline-date {
  font-family: var(--font-t);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-rose);
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-family: var(--font-t);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--clr-gray);
  line-height: 1.5;
}

/* ── QUOTE ── */
.romantic-quote {
  font-family: var(--font-t);
  font-style: italic;
  text-align: center;
  padding: 20px;
  position: relative;
}

.romantic-quote::before {
  content: '"';
  font-size: 4rem;
  color: var(--clr-rose-lt);
  position: absolute;
  top: -10px; left: 50%;
  transform: translateX(-50%);
  opacity: 0.3;
  line-height: 1;
}

.romantic-quote p {
  font-size: clamp(0.9rem, 3vw, 1.1rem);
  color: var(--clr-dark);
  line-height: 1.6;
  margin-bottom: 12px;
}

.romantic-quote footer {
  font-size: 0.8rem;
  color: var(--clr-gray);
}

/* ── PHOTO GALLERY ── */
.photo-gallery {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-item {
  flex: 0 0 auto;
}

.gallery-item .polaroid {
  width: 140px;
  margin: 0;
}

/* ── SCHEDULE ── */
.schedule-timeline {
  position: relative;
}

.schedule-item {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: rgba(184,125,110,0.04);
  border-radius: 16px;
  border-left: 3px solid var(--clr-rose);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-item:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(184,125,110,0.1);
}

.schedule-time {
  font-family: var(--font-t);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-rose);
  min-width: 60px;
}

.schedule-content h4 {
  font-family: var(--font-t);
  font-size: 1rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 4px;
}

.schedule-content p {
  font-size: 0.85rem;
  color: var(--clr-gray);
}

/* ── LOCATION ── */
.location-card {
  text-align: center;
}

.location-info {
  margin-bottom: 20px;
}

.location-info h4 {
  font-family: var(--font-t);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 8px;
}

.location-info p {
  font-size: 0.9rem;
  color: var(--clr-gray);
  margin-bottom: 4px;
}

.location-map {
  margin: 20px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.location-map iframe {
  display: block;
}

.dresscode {
  margin-top: 20px;
  padding: 16px;
  background: rgba(184,125,110,0.06);
  border-radius: 12px;
}

.dresscode h5 {
  font-family: var(--font-t);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 8px;
}

.dresscode p {
  font-size: 0.85rem;
  color: var(--clr-gray);
}

/* ── RSVP FORM ── */
.rsvp-form {
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--clr-dark);
  margin-bottom: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-b);
  font-size: 0.9rem;
  color: var(--clr-dark);
  background: var(--bg-cream);
  border: 1px solid var(--clr-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--clr-rose);
  box-shadow: 0 0 0 3px rgba(184,125,110,0.15);
}

.radio-group {
  display: flex;
  gap: 16px;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.radio-label input {
  width: auto;
  accent-color: var(--clr-rose);
}

.rsvp-form .btn {
  width: 100%;
  margin-top: 8px;
}

.rsvp-success {
  text-align: center;
  padding: 32px 16px;
}

.success-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-rose-lt), var(--clr-rose));
  color: #fff;
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  animation: scaleIn 0.5s var(--ease) both;
}

@keyframes scaleIn {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.rsvp-success h4 {
  font-family: var(--font-t);
  font-size: 1.3rem;
  color: var(--clr-dark);
  margin-bottom: 8px;
}

.rsvp-success p {
  color: var(--clr-gray);
}

/* ── MUSIC PLAYER ── */
.music-player {
  text-align: center;
  max-width: 300px;
  margin: 0 auto;
}

.album-art {
  position: relative;
  width: 180px; height: 180px;
  margin: 0 auto 20px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.album-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--bg-blush), var(--bg-sand));
  display: flex;
  align-items: center;
  justify-content: center;
}

.album-placeholder svg {
  width: 64px; height: 64px;
  fill: var(--clr-rose-lt);
  opacity: 0.4;
}

.album-photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: none;
}

.album-photo.active {
  display: block;
}

.track-info {
  margin-bottom: 16px;
}

.track-title {
  font-family: var(--font-t);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--clr-dark);
  margin-bottom: 4px;
}

.track-artist {
  font-size: 0.85rem;
  color: var(--clr-gray);
}

.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.play-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--clr-rose-lt), var(--clr-rose));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 16px rgba(184,125,110,0.3);
}

.play-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(184,125,110,0.4);
}

.play-btn:active {
  transform: scale(0.96);
}

.play-btn svg {
  width: 24px; height: 24px;
  fill: #fff;
  margin-left: 3px;
}

.play-btn.playing svg {
  margin-left: 0;
}

.progress-bar {
  width: 100%;
  height: 4px;
  background: var(--clr-border);
  border-radius: 2px;
  overflow: hidden;
}

.progress {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--clr-rose-lt), var(--clr-rose));
  border-radius: 2px;
  transition: width 0.1s linear;
}

.time {
  font-size: 0.75rem;
  color: var(--clr-gray);
}

/* ── GUESTBOOK ── */
.guestbook-entries {
  max-height: 300px;
  overflow-y: auto;
  margin-bottom: 24px;
  padding-right: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--clr-rose-lt) transparent;
}

.guestbook-entries::-webkit-scrollbar {
  width: 4px;
}

.guestbook-entries::-webkit-scrollbar-thumb {
  background: var(--clr-rose-lt);
  border-radius: 2px;
}

.guestbook-entry {
  padding: 16px;
  background: rgba(184,125,110,0.04);
  border-radius: 12px;
  margin-bottom: 12px;
  border-left: 3px solid var(--clr-rose-lt);
}

.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.entry-header strong {
  font-family: var(--font-t);
  font-size: 0.9rem;
  color: var(--clr-dark);
}

.entry-date {
  font-size: 0.75rem;
  color: var(--clr-gray);
}

.entry-message {
  font-size: 0.85rem;
  color: var(--clr-gray);
  line-height: 1.5;
  font-style: italic;
}

.guestbook-form {
  text-align: left;
}

.guestbook-form .form-group {
  margin-bottom: 12px;
}

.guestbook-form .btn {
  width: 100%;
}

/* ── EHEPRINZIPIEN ── */
.section-intro {
  text-align: center;
  color: var(--clr-gray);
  font-size: 0.9rem;
  margin: -8px 0 20px;
  font-style: italic;
}

.principles-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.principle-card {
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 8px 24px rgba(45, 37, 34, 0.05);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.principle-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(45, 37, 34, 0.09);
}

.principle-title {
  font-family: var(--font-t);
  font-size: 1.05rem;
  color: var(--clr-rose);
  margin-bottom: 8px;
  line-height: 1.3;
}

.principle-desc {
  font-size: 0.88rem;
  color: var(--clr-gray);
  line-height: 1.5;
}

.principle-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(192, 57, 43, 0.12);
  color: #c0392b;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}

.principle-card {
  position: relative;
}

.principle-card:hover .principle-delete {
  opacity: 1;
}

.principle-delete:hover {
  background: rgba(192, 57, 43, 0.22);
}

.principles-form {
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 18px;
  padding: 20px;
}

.principles-form .form-group {
  margin-bottom: 12px;
}

.principles-form .btn {
  width: 100%;
}

.principles-hint {
  text-align: center;
  color: var(--clr-gray);
  font-size: 0.82rem;
  margin-top: 14px;
  font-style: italic;
}

body.dark-mode .principle-card,
body.dark-mode .principles-form {
  background: var(--clr-card);
}

/* ── LOGIN (erstes Fenster) ── */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 50%, var(--bg-cream) 0%, var(--bg-sand) 50%, var(--bg-blush) 100%);
  background-color: var(--bg-sand);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--clr-card);
  border: 1px solid var(--clr-border);
  border-radius: 20px;
  padding: 32px 26px;
  box-shadow: 0 20px 50px rgba(45, 37, 34, 0.12);
  text-align: center;
}

.login-title {
  font-family: var(--font-t);
  font-size: 1.5rem;
  color: var(--clr-dark);
  margin-bottom: 6px;
}

.login-sub {
  font-size: 0.85rem;
  color: var(--clr-gray);
  margin-bottom: 22px;
}

.login-card .form-group {
  text-align: left;
  margin-bottom: 14px;
}

.login-btn {
  width: 100%;
  margin-top: 4px;
}

.btn-ghost {
  background: transparent;
  color: var(--clr-rose);
  border: 1px solid var(--clr-border);
  border-radius: 24px;
  padding: 12px 20px;
  font-family: var(--font-b);
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}

.btn-ghost:hover {
  background: rgba(184, 125, 110, 0.08);
}

.auth-error {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 12px;
  min-height: 1em;
  text-align: center;
}

.app-footer {
  text-align: center;
  margin-top: 18px;
}

/* ── FOOTER ── */
.site-footer {
  position: relative; z-index: 10;
  text-align: center;
  padding: 24px;
  margin-top: 40px;
  color: var(--clr-gray);
  font-size: 0.8rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 360px) {
  .cd-bar { padding: 14px 14px; }
  .cd-col { min-width: 52px; }
  .cd-unit { font-size: 0.65rem; }
}

@media (max-width: 480px) {
  .section { padding: 24px 20px; margin: 0 auto 32px; }
  .photo-gallery { gap: 12px; }
  .gallery-item .polaroid { width: 120px; }
  .schedule-item { flex-direction: column; gap: 8px; }
  .schedule-time { min-width: auto; }
}

