/* --- Grundlayout --- */

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, sans-serif;
  background: radial-gradient(
    ellipse at center,
    #d4622e 0%,
    #8b3d15 42%,
    #3d1a0a 100%
  );
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1rem, 4vw, 2.5rem);
}

.page__header {
  text-align: center;
}

.page__title {
  width: min(90vw, 480px);
}

/* --- Bühne: Hinweis links, Rabatzli in der Mitte --- */

.page__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.25rem, 1.5vw, 0.75rem);
  width: 100%;
  max-width: 720px;
}

.page__hint img {
  width: clamp(140px, 22vw, 200px);
}

@media (min-width: 641px) {
  .page__hint {
    margin-right: -0.5rem;
  }
}

.page__character {
  margin: 0;
  flex-shrink: 0;
}

/* --- Interaktiver Rabatzli-Knopf --- */

.rabatzli {
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  line-height: 0;
}

.rabatzli img {
  width: min(75vw, 420px);
  transition: transform 0.25s ease;
}

.rabatzli:hover img {
  transform: scale(1.06);
}

.rabatzli--singing img {
  animation: wobble 0.45s ease-in-out infinite;
}

@keyframes wobble {
  0%,
  100% {
    transform: rotate(0deg) translateX(0);
  }

  25% {
    transform: rotate(-4deg) translateX(-6px);
  }

  75% {
    transform: rotate(4deg) translateX(6px);
  }
}

/* --- Mobile: Hinweis unten links, leicht überlappend --- */

@media (max-width: 640px) {
  .page__stage {
    position: relative;
    justify-content: center;
  }

  .page__hint {
    position: absolute;
    left: clamp(0.25rem, 2vw, 0.75rem);
    bottom: -6%;
    z-index: 2;
  }

  .page__hint img {
    width: clamp(125px, 40vw, 170px);
  }
}

@media (max-width: 400px) {
  .page__hint {
    bottom: -42%;
  }

  .page__hint img {
    width: clamp(140px, 46vw, 170px);
  }
}
