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

:root {
  --rose: #e8a0a8;
  --rose-deep: #c96b7a;
  --cream: #fff7f2;
  --glass: rgba(40, 22, 26, 0.38);
  --glass-border: rgba(255, 236, 232, 0.28);
}

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: #2a1a1c;
  color: var(--cream);
  font-family: ui-serif, "New York", Georgia, "Times New Roman", serif;
  -webkit-font-smoothing: antialiased;
}

/* Hintergrundbild */
.bg {
  position: fixed;
  inset: 0;
  background: url("hintergrund.jpg") 62% 30% / cover no-repeat;
  transform: scale(1.03);
  animation: breathe 18s ease-in-out infinite alternate;
}

/* Weicher Verlauf nach unten, damit die Schrift lesbar bleibt */
.shade {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(42, 26, 28, 0) 35%,
      rgba(42, 26, 28, 0.55) 70%,
      rgba(42, 26, 28, 0.85) 100%);
}

/* Karte mit dem Countdown */
.card {
  position: fixed;
  left: 50%;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 5vh);
  transform: translateX(-50%);
  width: min(92vw, 520px);
  padding: 22px 20px 24px;
  text-align: center;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  z-index: 4;
  animation: rise 1.2s ease-out both;
}

.eyebrow {
  margin: 0 0 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose);
}

h1 {
  margin: 0 0 18px;
  font-weight: 400;
  font-style: italic;
  font-size: clamp(1.35rem, 5.5vw, 1.9rem);
  line-height: 1.2;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 8px;
  border-radius: 14px;
  background: rgba(255, 240, 236, 0.08);
}

.num {
  font-size: clamp(1.7rem, 8vw, 2.6rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.label {
  margin-top: 6px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
}

.message {
  margin: 4px 0 0;
  font-style: italic;
  font-size: clamp(1.2rem, 5vw, 1.6rem);
}

/* Ballons */
#balloons {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 3;
}

.balloon {
  position: absolute;
  bottom: -160px;
  will-change: transform;
  animation-name: float;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}

.balloon .sway {
  animation: sway ease-in-out infinite alternate;
}

.balloon svg {
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.25));
}

@keyframes float {
  to { transform: translateY(calc(-100vh - 220px)); }
}

@keyframes sway {
  from { transform: translateX(-18px) rotate(-6deg); }
  to   { transform: translateX(18px) rotate(6deg); }
}

@keyframes rise {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes breathe {
  from { transform: scale(1.03); }
  to   { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .bg, .card { animation: none; }
}

[hidden] { display: none !important; }
