/* ══════════════════════════════════════════
   JUKEBOX 70er eCARD — STYLESHEET
   Schwarz / Gold — Fundament nach Fahrstuhl-Schema
   Responsive: Desktop + Handy 1:1
   Basisbreite: 440px
══════════════════════════════════════════ */

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

html { background: #000; }

body {
  background: transparent;
  margin: 0;
  padding: 20px 10px;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-family, 'Nunito', Arial, sans-serif);
  overflow-x: hidden;
  color: #f5d983;
  position: relative;
}

/* Hintergrund: schwarz mit dezenten Gold-Lichtern (ganz hinten) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(212,169,74,0.14), transparent 45%),
    radial-gradient(ellipse at 80% 70%, rgba(245,217,131,0.10), transparent 50%),
    #000;
  z-index: 0;
  pointer-events: none;
}

/* Glitzer-Canvas — über Hintergrund, sichtbar rund um die Karte */
#sparkle-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

#app { position: relative; z-index: 2; }

/* ══════════════════════════════════════════
   APP WRAPPER
══════════════════════════════════════════ */
#app {
  width: 94%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* ══════════════════════════════════════════
   HAUPTCONTAINER — leicht transparentes Schwarz,
   damit der Sparkle-Hintergrund durchschimmert
══════════════════════════════════════════ */
#jukebox {
  width: 100%;
  position: relative;
  background: rgba(0, 0, 0, 0.78);
  border: 2px solid #d4a94a;
  border-radius: 14px;
  padding: 0;
  box-shadow:
    0 15px 40px rgba(0,0,0,0.9),
    0 0 30px rgba(212,169,74,0.25),
    inset 0 0 0 1px rgba(245,217,131,0.08);
  overflow: visible;
}

/* Konfetti-Canvas auf Container begrenzt */
#konfetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  display: none;
  border-radius: 12px;
}

/* ══════════════════════════════════════════
   BOGEN mit Ballons
══════════════════════════════════════════ */
#arch {
  position: relative;
  height: 52px;
  border-radius: 12px 12px 0 0;
  overflow: visible;
  z-index: 3;
  pointer-events: none;
}

.arch-balloon {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
  z-index: 2;
}
.arch-balloon-l {
  left: -38px;
  top: -36px;
  width: 74px;
  animation: float-a 5s ease-in-out infinite;
}
.arch-balloon-r {
  right: -38px;
  top: -36px;
  width: 74px;
  animation: float-b 5.5s ease-in-out infinite;
}
.arch-balloon-l2 {
  left: -28px;
  top: 24px;
  width: 56px;
  animation: float-c 6s ease-in-out infinite;
}
.arch-balloon-r2 {
  right: -28px;
  top: 24px;
  width: 56px;
  animation: float-a 5.5s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0)    rotate(-2deg); }
  50%      { transform: translateY(-8px) rotate(2deg);  }
}
@keyframes float-b {
  0%, 100% { transform: translateY(-3px) rotate(2deg);  }
  50%      { transform: translateY(6px)  rotate(-2deg); }
}
@keyframes float-c {
  0%, 100% { transform: translateY(0)     rotate(1deg); }
  50%      { transform: translateY(-10px) rotate(-3deg);}
}

/* ══════════════════════════════════════════
   BODY — links Buttons, rechts Viewer
══════════════════════════════════════════ */
#body {
  display: flex;
  align-items: stretch;
  gap: 14px;
  position: relative;
  padding: 16px 16px 16px 10px;
  z-index: 5;
}

/* Button-Säule links */
.pillar {
  width: 72px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  position: relative;
  z-index: 6;
}

.side-btn {
  position: relative;
  width: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: inherit;
  transition: transform 0.2s;
}

.side-btn .btn-ring {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%,
    #000 0%,
    #0a0a0a 70%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  box-shadow:
    0 0 10px rgba(245,217,131,0.4),
    inset 0 0 6px rgba(0,0,0,0.6);
}

.side-btn .btn-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #fff6c8 0%, #d4a94a 50%, #a0782a 100%);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.side-btn .btn-emoji {
  font-size: 20px;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(245,217,131,0.6));
}

.side-btn .btn-label {
  font-size: 9.5px;
  color: rgba(245,217,131,0.8);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  max-width: 68px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.side-btn:hover { transform: translateY(-2px); }
.side-btn:hover .btn-ring {
  box-shadow:
    0 0 18px rgba(245,217,131,0.8),
    inset 0 0 6px rgba(0,0,0,0.6);
}
.side-btn:hover .btn-label { color: #f5d983; }

.side-btn.active .btn-ring {
  background: radial-gradient(circle at 50% 50%,
    rgba(245,217,131,0.22) 0%,
    #000 70%);
  box-shadow:
    0 0 22px rgba(245,217,131,1),
    0 0 44px rgba(245,217,131,0.4),
    inset 0 0 8px rgba(245,217,131,0.2);
}
.side-btn.active .btn-emoji {
  filter: drop-shadow(0 0 8px rgba(245,217,131,1));
}
.side-btn.active .btn-label {
  color: #f5d983;
  text-shadow:
    0 0 8px rgba(245,217,131,0.6),
    0 1px 2px rgba(0,0,0,0.8);
}

@keyframes btn-blink {
  0%, 100% {
    box-shadow:
      0 0 14px rgba(245,217,131,0.7),
      inset 0 0 6px rgba(0,0,0,0.6);
  }
  50% {
    box-shadow:
      0 0 26px rgba(245,217,131,1),
      0 0 52px rgba(245,217,131,0.5),
      inset 0 0 6px rgba(0,0,0,0.6);
  }
}
.btn-blink .btn-ring {
  animation: btn-blink 1.5s ease-in-out infinite;
}

/* ══════════════════════════════════════════
   MITTELTEIL
══════════════════════════════════════════ */
#body-inner {
  flex: 1;
  padding: 0;
  position: relative;
  z-index: 2;
  min-width: 0;
}

/* ══════════════════════════════════════════
   VIEWER — schwarz, leicht transparent
══════════════════════════════════════════ */
#viewer {
  position: relative;
  width: 100%;
  min-height: 480px;
  padding: 28px 20px;
  background:
    radial-gradient(ellipse at center,
      rgba(10,10,10,0.75) 0%,
      rgba(5,5,5,0.85) 60%,
      rgba(0,0,0,0.92) 100%);
  border: none;
  border-radius: 10px;
  box-shadow:
    inset 0 0 30px rgba(0,0,0,0.9),
    inset 0 0 4px rgba(245,217,131,0.15);
  overflow: hidden;
}

#viewer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(245,217,131,0.06) 0%,
    transparent 40%,
    transparent 60%,
    rgba(245,217,131,0.04) 100%);
  pointer-events: none;
}

#content-overlay {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 424px;
  transition: opacity 0.4s ease;
}
#content-overlay.hiding { opacity: 0; }

/* ══════════════════════════════════════════
   STARTSEITE — Bogen, 70, Pfeil
══════════════════════════════════════════ */
.arc-text {
  width: 100%;
  max-width: 400px;
  height: auto;
  margin-bottom: 18px;
  overflow: visible;
  display: block;
}
.arc-text .arc-big {
  font-family: 'Abril Fatface', serif;
  font-size: 32px;
  letter-spacing: 1.5px;
  fill: #f5d983;
}
.arc-text .arc-small {
  font-family: 'Great Vibes', 'Brush Script MT', cursive;
  font-size: 26px;
  fill: #f5d983;
  font-style: italic;
}
.arc-text text {
  filter: drop-shadow(0 0 6px rgba(245,217,131,0.7));
}

.start-age {
  font-family: 'Abril Fatface', serif;
  font-size: 88px;
  color: #f5d983;
  line-height: 1;
  margin: 14px 0 18px;
  letter-spacing: 3px;
  text-shadow:
    0 0 22px rgba(245,217,131,0.85),
    0 0 44px rgba(245,217,131,0.45),
    0 3px 3px rgba(0,0,0,0.9);
}

.start-line {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: #f5d983;
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.start-arrow {
  font-size: 30px;
  color: #f5d983;
  margin-top: 14px;
  line-height: 1;
  text-shadow: 0 0 10px rgba(245,217,131,0.7);
  animation: arrow-bounce 1.8s ease-in-out infinite;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); opacity: 0.8; }
  50%      { transform: translateY(6px); opacity: 1; }
}

.content-emoji {
  font-size: 40px;
  margin-bottom: 10px;
  filter: drop-shadow(0 0 10px rgba(245,217,131,0.6));
}

.content-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 12px;
  border: 3px solid #d4a94a;
  box-shadow:
    0 0 20px rgba(245,217,131,0.7),
    0 0 40px rgba(245,217,131,0.3),
    inset 0 0 8px rgba(0,0,0,0.6);
}

.content-title {
  font-family: 'Abril Fatface', serif;
  font-size: 26px;
  font-style: italic;
  color: #f5d983;
  font-weight: 400;
  margin-bottom: 12px;
  letter-spacing: 0.6px;
  line-height: 1.2;
  text-shadow:
    0 0 14px rgba(245,217,131,0.7),
    0 2px 2px rgba(0,0,0,0.9);
}

.content-highlight {
  font-family: 'Abril Fatface', serif;
  font-size: 18px;
  font-style: italic;
  color: #f5d983;
  margin: 10px 0;
  letter-spacing: 0.4px;
  line-height: 1.35;
  text-shadow: 0 0 10px rgba(245,217,131,0.5);
}

.content-text {
  font-size: 15px;
  color: #f5d983;
  line-height: 1.6;
  width: 100%;
  padding: 0 4px;
}
.content-text .big {
  display: inline;
  font-family: 'Great Vibes', cursive;
  font-size: 34px;
  color: #f5d983;
  letter-spacing: 1px;
  line-height: 1.2;
  text-shadow:
    0 0 14px rgba(245,217,131,0.8),
    0 2px 2px rgba(0,0,0,0.9);
}

/* ══════════════════════════════════════════
   RSVP-FORMULAR
══════════════════════════════════════════ */
.rsvp-form {
  width: 100%;
  max-width: 280px;
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.rsvp-form input[type="text"],
.rsvp-form textarea {
  width: 100%;
  padding: 8px 10px;
  background: #000;
  border: 1px solid rgba(212,169,74,0.6);
  border-radius: 6px;
  color: #f5d983;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}
.rsvp-form input:focus, .rsvp-form textarea:focus {
  border-color: #f5d983;
  box-shadow: 0 0 10px rgba(245,217,131,0.4);
}
.rsvp-form textarea { resize: none; min-height: 46px; }
.rsvp-form > label {
  font-size: 10px;
  color: rgba(245,217,131,0.8);
  text-align: left;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: -3px;
  font-weight: 700;
}
.rsvp-radio-group { display: flex; gap: 6px; justify-content: center; }
.rsvp-radio-group label {
  flex: 1;
  text-align: center;
  padding: 7px 4px;
  background: #000;
  border: 1px solid rgba(212,169,74,0.4);
  border-radius: 6px;
  cursor: pointer;
  font-size: 11px;
  color: #f5d983;
  margin: 0;
  transition: all 0.15s;
  font-weight: 700;
}
.rsvp-radio-group input[type="radio"] { display: none; }
.rsvp-radio-group label:has(input:checked) {
  background: linear-gradient(180deg, #f5d983, #d4a94a);
  border-color: #f5d983;
  color: #000;
  box-shadow: 0 0 12px rgba(245,217,131,0.5);
}
.rsvp-submit {
  margin-top: 4px;
  padding: 9px 18px;
  background: linear-gradient(180deg, #f5d983, #a0782a);
  border: 2px solid #f5d983;
  border-radius: 8px;
  color: #000;
  font-family: 'Abril Fatface', serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0.6px;
  cursor: pointer;
  box-shadow:
    0 3px 12px rgba(0,0,0,0.6),
    inset 0 1px 0 rgba(255,255,255,0.4);
  transition: all 0.15s;
}
.rsvp-submit:hover {
  background: linear-gradient(180deg, #fff6c8, #d4a94a);
  box-shadow:
    0 0 20px rgba(245,217,131,0.7),
    inset 0 1px 0 rgba(255,255,255,0.5);
}
.rsvp-submit:active { transform: translateY(1px); }

/* ══════════════════════════════════════════
   FUSSLEISTE
══════════════════════════════════════════ */
#base {
  position: relative;
  padding: 14px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  z-index: 3;
}

.base-balloon {
  position: absolute;
  pointer-events: none;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.6));
  z-index: 2;
}
.base-balloon-l {
  bottom: -20px;
  left: -40px;
  width: 66px;
  animation: float-b 6s ease-in-out infinite;
}
.base-balloon-r {
  bottom: -20px;
  right: -40px;
  width: 66px;
  animation: float-a 5.5s ease-in-out infinite;
}

.base-spacer {
  width: 44px;
  flex-shrink: 0;
}

.brand-mark {
  font-family: 'Great Vibes', cursive;
  font-size: 21px;
  color: #f5d983;
  letter-spacing: 1px;
  text-shadow:
    0 0 10px rgba(245,217,131,0.7),
    0 2px 2px rgba(0,0,0,0.9);
  flex: 1;
  text-align: center;
  z-index: 1;
}

#music-toggle {
  width: 72px;
  height: 72px;
  cursor: pointer;
  user-select: none;
  transition: transform 0.2s;
  flex-shrink: 0;
  z-index: 10;
  margin-left: 20px;
}
#music-toggle img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
#music-toggle:hover {
  transform: scale(1.1);
}
#music-toggle.muted { opacity: 0.55; }

#hint {
  margin-top: 18px;
  font-size: 11px;
  color: rgba(245,217,131,0.55);
  letter-spacing: 2px;
  font-weight: 700;
  text-align: center;
}

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 460px) {
  body              { padding: 14px 12px; overflow-x: hidden; }
  #arch             { height: 40px; }
  .arch-balloon-l,
  .arch-balloon-r   { width: 54px; top: -26px; }
  .arch-balloon-l   { left: -12px; }
  .arch-balloon-r   { right: -12px; }
  .arch-balloon-l2,
  .arch-balloon-r2  { width: 40px; top: 18px; }
  .arch-balloon-l2  { left: -6px; }
  .arch-balloon-r2  { right: -6px; }

  #body             { padding: 10px 10px 10px 6px; gap: 8px; }
  .pillar           { width: 52px; gap: 8px; padding: 8px 2px; }
  .side-btn .btn-ring  { width: 34px; height: 34px; }
  .side-btn .btn-emoji { font-size: 14px; }
  .side-btn .btn-label { font-size: 7.5px; max-width: 48px; letter-spacing: 0.5px; }

  #viewer           { min-height: 400px; padding: 18px 12px; }
  #content-overlay  { min-height: 360px; }
  .content-photo    { width: 108px; height: 108px; margin-bottom: 8px; border-width: 2px; }
  .content-title    { font-size: 20px; margin-bottom: 8px; }
  .content-highlight{ font-size: 15px; }
  .content-text     { font-size: 13px; line-height: 1.5; }
  .content-text .big { font-size: 26px; }

  .arc-text            { margin-bottom: 12px; max-width: 320px; }
  .arc-text .arc-big   { font-size: 26px; letter-spacing: 1px; }
  .arc-text .arc-small { font-size: 21px; }
  .start-age           { font-size: 64px; margin: 8px 0 12px; letter-spacing: 1.8px; }
  .start-line          { font-size: 14px; }
  .start-arrow         { font-size: 24px; margin-top: 10px; }

  .base-balloon-l,
  .base-balloon-r   { width: 46px; bottom: -10px; }
  .base-balloon-l   { left: -12px; }
  .base-balloon-r   { right: -12px; }
  .brand-mark       { font-size: 17px; }
  #music-toggle     { width: 58px; height: 58px; margin-left: 14px; }
  .base-spacer      { width: 58px; }

  .rsvp-form input,
  .rsvp-form textarea { font-size: 12px; padding: 7px 9px; }
  .rsvp-submit       { font-size: 13px; padding: 8px 14px; }
}

@media (max-width: 380px) {
  body              { padding: 12px 10px; }
  .arch-balloon-l,
  .arch-balloon-r   { width: 52px; }
  .arch-balloon-l2,
  .arch-balloon-r2  { width: 40px; }
  .base-balloon-l,
  .base-balloon-r   { width: 46px; }

  #body             { padding: 8px 8px 8px 4px; gap: 6px; }
  .pillar           { width: 46px; gap: 7px; padding: 6px 2px; }
  .side-btn .btn-ring  { width: 30px; height: 30px; }
  .side-btn .btn-emoji { font-size: 12px; }
  .side-btn .btn-label { font-size: 7px; max-width: 42px; }

  #viewer           { min-height: 380px; padding: 14px 10px; }
  #content-overlay  { min-height: 350px; }
  .content-photo    { width: 96px; height: 96px; }
  .content-title    { font-size: 18px; }
  .content-text     { font-size: 12px; }
  .content-text .big { font-size: 24px; }

  .arc-text            { margin-bottom: 10px; max-width: 270px; }
  .arc-text .arc-big   { font-size: 22px; }
  .arc-text .arc-small { font-size: 18px; }
  .start-age           { font-size: 56px; margin: 6px 0 10px; }
  .start-line          { font-size: 13px; }
  .start-arrow         { font-size: 22px; }
}
