/* ==========================================================================
   Design & Farbpalette: Warm, freundlich, Polaroid-Optik
   ========================================================================== */
:root {
  --bg-gradient: linear-gradient(145deg, #fdfbf7 0%, #faede1 50%, #f7f3ec 100%);
  --card-bg: rgba(255, 255, 255, 0.95);
  --text-main: #2d3748;
  --text-muted: #64748b;
  --accent-warm: #ff6b6b;
  --accent-gold: #f59e0b;
  --green-yes: #10b981;
  --green-hover: #059669;
  --red-no: #ef4444;
  --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-polaroid: 0 12px 28px rgba(45, 55, 72, 0.12), 0 2px 6px rgba(0,0,0,0.06);
}

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  background: var(--bg-gradient);
  min-height: 100vh;
  line-height: 1.6;
  padding: 2.5rem 1rem 3.5rem;
  overflow-x: hidden;
}

.page-wrapper {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}

/* ==========================================================================
   Header & Intro
   ========================================================================== */
.hero-section {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.badge {
  background: #ffeaa7;
  color: #b7791f;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 9999px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.main-title {
  font-size: 2.4rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.intro-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto;
}

.exam-wish-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #10b981;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  max-width: 640px;
  text-align: left;
  margin-top: 0.5rem;
}

.exam-wish-card .clover {
  font-size: 1.8rem;
}

.exam-wish-card p {
  font-size: 0.98rem;
  color: #334155;
}

/* ==========================================================================
   Polaroid Fotos & Galerie (Zentrales Hauptbild)
   ========================================================================== */
.polaroid-frame {
  background: #ffffff;
  padding: 14px 14px 22px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow-polaroid);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.polaroid-frame:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.14);
}

.photo-wrapper {
  overflow: hidden;
  border-radius: 4px;
  background: #f1f5f9;
}

.photo-wrapper img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.polaroid-caption {
  font-family: 'Caveat', cursive, sans-serif;
  font-size: 1.45rem;
  text-align: center;
  color: #475569;
  margin-top: 10px;
}

/* Hauptbild im Zentrum */
.main-photo-section {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-polaroid {
  width: 100%;
  max-width: 680px;
  transform: rotate(-0.5deg);
}

.main-polaroid .photo-wrapper img {
  max-height: 480px;
  width: 100%;
  object-fit: cover;
}

/* Mini Galerie */
.memories-section {
  width: 100%;
  text-align: center;
}

.section-subtitle {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
  color: #334155;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  width: 100%;
}

.mini-polaroid .photo-wrapper img {
  height: 200px;
}

.rotate-left { transform: rotate(-2.5deg); }
.rotate-right { transform: rotate(2deg); }
.rotate-slight { transform: rotate(-1deg); }

/* ==========================================================================
   Interaktives Mini-Spiel (Ja / Nein Draggable)
   ========================================================================== */
.game-section {
  width: 100%;
  max-width: 680px;
}

.game-card {
  background: var(--card-bg);
  border-radius: 24px;
  padding: 2.2rem 1.5rem 1.8rem;
  box-shadow: var(--shadow-polaroid);
  border: 1px solid rgba(255, 255, 255, 0.8);
  position: relative;
  text-align: center;
  backdrop-filter: blur(8px);
}

.game-question {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.game-hint {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* Frecher Popover-Toast */
.cheeky-toast {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: #1e293b;
  color: #ffffff;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 50;
  white-space: nowrap;
}

.cheeky-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Drag Arena */
.drag-arena {
  position: relative;
  width: 100%;
  height: 300px;
  background: #f8fafc;
  border-radius: 18px;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* Ziel-Kreis */
.drop-target {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 130px;
  height: 130px;
  border: 3px dashed #94a3b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.drop-target.target-hover {
  border-color: var(--green-yes);
  background: rgba(16, 185, 129, 0.12);
  transform: translate(-50%, -50%) scale(1.08);
}

.drop-target.target-success {
  border-color: var(--green-yes);
  background: var(--green-yes);
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 0 35px rgba(16, 185, 129, 0.4);
}

.target-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.target-icon {
  font-size: 1.4rem;
}

.target-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Draggable Bubbles */
.bubble {
  position: absolute;
  top: 0;
  left: 0;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
  cursor: grab;
  touch-action: none;
  z-index: 10;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  will-change: transform;
}

.bubble:active {
  cursor: grabbing;
}

.bubble-yes {
  background: linear-gradient(135deg, #34d399, #059669);
}

.bubble-no {
  background: linear-gradient(135deg, #f87171, #dc2626);
}

/* ==========================================================================
   Seite 2 (danke.html) Styling
   ========================================================================== */
.reveal-body {
  display: flex;
  align-items: center;
  justify-content: center;
}

.confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
}

.reveal-wrapper {
  z-index: 2;
  width: 100%;
}

.reveal-card {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 3rem 2rem;
  box-shadow: var(--shadow-polaroid);
  text-align: center;
  width: 100%;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}

.heart-pulse {
  font-size: 3.5rem;
  animation: pulseHeart 1.4s ease-in-out infinite;
}

@keyframes pulseHeart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.reveal-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: #1e293b;
  margin-top: -0.5rem;
}

.reveal-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
}

.reveal-photo {
  max-width: 440px;
}

.reveal-photo .photo-wrapper img {
  max-height: 280px;
}

.reveal-message {
  font-size: 1.15rem;
  color: #334155;
  font-weight: 600;
}

.sub-message {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
  width: 100%;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: #ffffff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.contact-btn.whatsapp { background: #25d366; }
.contact-btn.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.contact-btn.email { background: #3b82f6; }

.back-link-wrapper {
  margin-top: 1rem;
}

.back-link {
  color: #64748b;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s;
}

.back-link:hover {
  color: #0f172a;
  text-decoration: underline;
}

.site-footer {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-top: 1rem;
  text-align: center;
}

/* ==========================================================================
   Responsive Optimierung für Smartphones
   ========================================================================== */
@media (max-width: 640px) {
  body {
    padding: 1.2rem 0.8rem;
  }

  .main-title {
    font-size: 1.85rem;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }

  .drag-arena {
    height: 320px;
  }

  .drop-target {
    width: 110px;
    height: 110px;
  }

  .bubble {
    width: 70px;
    height: 70px;
    font-size: 0.92rem;
  }
}
