/* Song-Advent-Hinweis auf der Startseite. Wirkt nur auf .sa-hint. */
.sa-hint-wrap {
  padding: 0.15rem 0 1.35rem;
}

.sa-hint {
  --sa-gold: #f5c518;
  --sa-red: #e31c23;
  --sa-green: #1f9d55;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.25rem 0.5rem;
  min-height: 292px;
  padding: 1.85rem 1.15rem 0 1.85rem;
  overflow: hidden;
  border-radius: 22px;
  text-decoration: none;
  color: #f7f2e8;
  background:
    radial-gradient(460px 300px at 86% 78%, rgba(245, 197, 24, 0.34), transparent 68%),
    radial-gradient(420px 240px at 0% 0%, rgba(227, 28, 35, 0.28), transparent 62%),
    radial-gradient(280px 180px at 70% 0%, rgba(31, 157, 85, 0.16), transparent 70%),
    linear-gradient(165deg, #22160f 0%, #120e0b 48%, #0c0a08 100%);
  border: 1px solid rgba(245, 197, 24, 0.42);
  box-shadow:
    0 22px 50px -28px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.sa-hint::before {
  content: "";
  position: absolute;
  inset: 10px 14px auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 236, 180, 0.55), transparent);
  pointer-events: none;
}

.sa-hint:hover,
.sa-hint:focus-visible {
  transform: translateY(-3px);
  border-color: rgba(255, 224, 122, 0.85);
  box-shadow:
    0 28px 60px -26px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(245, 197, 24, 0.25),
    0 0 42px -12px rgba(245, 197, 24, 0.55);
}

.sa-hint:focus-visible {
  outline: 2px solid var(--sa-gold);
  outline-offset: 3px;
}

.sa-hint-lights,
.sa-hint-snow {
  position: absolute;
  pointer-events: none;
}

.sa-hint-lights {
  z-index: 4;
  top: 11px;
  left: 22px;
  right: 22px;
  display: flex;
  justify-content: space-between;
}

.sa-hint-lights i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c, var(--sa-gold));
  box-shadow: 0 10px 8px -2px rgba(0, 0, 0, 0.35), 0 0 10px var(--c, var(--sa-gold));
  animation: sa-hint-twinkle 1.8s ease-in-out infinite;
}

.sa-hint-lights i:nth-child(3n) { --c: var(--sa-red); }
.sa-hint-lights i:nth-child(3n + 1) { --c: var(--sa-green); }
.sa-hint-lights i:nth-child(3n + 2) { --c: var(--sa-gold); }
.sa-hint-lights i:nth-child(2n) { animation-delay: -0.7s; }
.sa-hint-lights i:nth-child(3n) { animation-delay: -1.2s; }

.sa-hint-snow {
  inset: 0;
  z-index: 1;
}

.sa-hint-snow i {
  position: absolute;
  top: -8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  animation: sa-hint-fall 7s linear infinite;
}

.sa-hint-snow i:nth-child(1) { left: 8%; animation-duration: 8s; }
.sa-hint-snow i:nth-child(2) { left: 22%; animation-duration: 6.2s; animation-delay: -2s; }
.sa-hint-snow i:nth-child(3) { left: 37%; width: 3px; height: 3px; animation-duration: 9s; animation-delay: -4s; }
.sa-hint-snow i:nth-child(4) { left: 51%; animation-duration: 7.4s; animation-delay: -1s; }
.sa-hint-snow i:nth-child(5) { left: 63%; width: 5px; height: 5px; animation-duration: 10s; animation-delay: -3s; }
.sa-hint-snow i:nth-child(6) { left: 74%; animation-duration: 6.8s; animation-delay: -5s; }
.sa-hint-snow i:nth-child(7) { left: 86%; width: 3px; height: 3px; animation-duration: 8.6s; animation-delay: -2.5s; }
.sa-hint-snow i:nth-child(8) { left: 94%; animation-duration: 7s; animation-delay: -6s; }

.sa-hint-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 40rem;
  padding: 0.55rem 0 1.55rem;
}

.sa-hint-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--sa-gold);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sa-hint-title {
  display: flex;
  flex-direction: column;
  margin: 0.45rem 0 0.7rem;
  font-family: Outfit, system-ui, sans-serif;
  font-size: clamp(2.35rem, 4.6vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.92;
}

.sa-hint-title em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #fff 0%, #ffe9a8 32%, #f5c518 58%, #ff7a5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sa-hint-lead {
  max-width: 36rem;
  margin: 0;
  color: rgba(247, 242, 232, 0.78);
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1.02rem;
  font-weight: 450;
  line-height: 1.45;
}

.sa-hint-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.sa-hint-meta span {
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 197, 24, 0.28);
  background: rgba(245, 197, 24, 0.08);
  color: #ffe9a8;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.sa-hint-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.05rem;
  padding: 0.82rem 1.15rem 0.82rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe07a, #f5c518 55%, #e0a800);
  color: #1a0d05;
  font-family: Outfit, system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  box-shadow: 0 12px 28px -12px rgba(245, 197, 24, 0.95);
  transition: transform 0.25s ease, filter 0.25s ease;
}

.sa-hint-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sa-hint:hover .sa-hint-btn,
.sa-hint:focus-visible .sa-hint-btn {
  transform: translateX(3px);
  filter: brightness(1.06);
}

.sa-hint-opa {
  position: relative;
  z-index: 2;
  align-self: end;
  justify-self: end;
  margin-right: 0.15rem;
}

.sa-hint-opa::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: 180px;
  height: 46px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(245, 197, 24, 0.55), transparent 70%);
  filter: blur(2px);
}

.sa-hint-opa img {
  position: relative;
  display: block;
  height: 278px;
  width: auto;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.45));
  transform-origin: 50% 100%;
  transition: transform 0.45s ease;
}

.sa-hint:hover .sa-hint-opa img,
.sa-hint:focus-visible .sa-hint-opa img {
  transform: translateY(-8px) scale(1.035);
}

@keyframes sa-hint-twinkle {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 1; }
}

@keyframes sa-hint-fall {
  0% { transform: translateY(0); opacity: 0; }
  12% { opacity: 0.85; }
  100% { transform: translateY(320px); opacity: 0; }
}

@media (max-width: 760px) {
  .sa-hint {
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    padding: 1.7rem 1rem 0.15rem;
    text-align: center;
  }

  .sa-hint-opa { order: 1; margin: 0.2rem 0 0; }
  .sa-hint-opa img { height: 220px; }
  .sa-hint-copy {
    order: 2;
    align-items: center;
    padding: 0.15rem 0 1.25rem;
  }
  .sa-hint-title { font-size: clamp(2.15rem, 11vw, 2.8rem); }
  .sa-hint-lead { font-size: 0.98rem; }
  .sa-hint-meta { justify-content: center; }
  .sa-hint-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .sa-hint,
  .sa-hint-btn,
  .sa-hint-opa img,
  .sa-hint-lights i,
  .sa-hint-snow i {
    animation: none;
    transition: none;
  }
}
