/* ==========================================================
   mk-spezial.css
   Aus dem Feld "Stylesheets > CSS" ausgelagert (Limit 65.535 Byte).
   Enthält: Spruch-Finder Taufe, Schneeflocken (Weihnachten).
   Nach jeder Änderung beim Einbinden ?v= erhöhen (CDN cacht 7 Tage).
   ========================================================== */

/* ------------------- SPRUCH-FINDER TAUFE ----------------- */
.spruchfinder {
  max-width: 700px;
  margin: 30px auto;
  padding: 0 15px;
}
.sf-step { margin-bottom: 26px; }
#sf-step2 {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  margin-bottom: 0;
  pointer-events: none;
  transition: max-height 0.45s cubic-bezier(.22,1,.36,1), opacity 0.35s ease, transform 0.4s ease, margin-bottom 0.45s ease;
}
#sf-step2.sf-visible {
  max-height: 600px;
  opacity: 1;
  transform: translateY(0);
  margin-bottom: 26px;
  pointer-events: auto;
}
.sf-step-label { font-size: 1.08rem; color: #333; margin-bottom: 14px; font-weight: 600; line-height: 1.4; }
.sf-choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.sf-choices .sf-choice:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 6px); margin: 0 auto; }
.sf-choice {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #e5ddc9;
  background: #fff;
  color: #333;
  padding: 22px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}
.sf-choice-main { font-size: 1.02rem; font-weight: 700; }
.sf-choice-sub { font-size: 0.78rem; color: #999; font-weight: 400; }
.sf-choice:hover { border-color: #d4af37; transform: translateY(-1px); }
.sf-choice.sf-active { background: #d4af37; border-color: #d4af37; color: #fff; }
.sf-choice.sf-active .sf-choice-sub { color: rgba(255,255,255,0.85); }
.sf-choice:disabled { opacity: 0.35; cursor: not-allowed; transform: none; }
@media (max-width: 480px) {
  .sf-choices { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sf-choice { padding: 18px 10px; }
}
.sf-reset {
  font-size: 0.8rem;
  color: #999;
  background: none;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
}
.sf-results { border-top: 1px solid #f0ede8; padding-top: 20px; }
.sf-results-count { font-size: 0.8rem; color: #999; margin-bottom: 14px; }
.sf-card {
  background: #fdfbf7;
  border: 1px solid #f0ede8;
  border-radius: 6px;
  padding: 18px 20px;
  margin-bottom: 12px;
}
.sf-card .sf-text { font-size: 1.02rem; line-height: 1.5; margin: 0 0 10px; color: #333; }
.sf-card .sf-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: #999;
}
.sf-card .sf-quelle { font-style: italic; }
.sf-use-btn {
  font-size: 0.78rem;
  background: none;
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
}
.sf-use-btn:hover { background: #d4af37; color: #fff; }
.sf-empty { color: #999; font-size: 0.9rem; padding: 16px 0; }
.sf-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #333;
  color: #fff;
  font-size: 0.85rem;
  padding: 10px 18px;
  border-radius: 20px;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
  z-index: 999;
}
.sf-toast.sf-show { opacity: 1; transform: translateX(-50%) translateY(0); }
.sf-copyright-note {
  max-width: 700px;
  margin: 10px auto 40px;
  padding: 0 15px;
  font-size: 0.75rem;
  color: #aaa;
  text-align: center;
}

/* ------------------- weihnachten - Schneeflocken ----------------- */

.schnee-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 900; /* unter Header (1030) und Bubbles (999) */
}

.schnee-flocke {
    position: absolute;
    top: 0;
    left: var(--x);
    width: var(--size);
    height: var(--size);
    opacity: var(--op);
    will-change: transform;
    animation: schneeFall var(--dur) linear var(--delay) infinite;
}

/* Weiche runde Flocke, mit blaugrauem Rand, damit sie auf Weiß sichtbar bleibt */
.schnee-flocke--punkt {
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #eaf3fb 45%, rgba(190, 213, 232, 0.8) 100%);
    box-shadow: 0 0 5px rgba(150, 185, 215, 0.65);
}

/* Eiskristall mit sechs Armen */
.schnee-flocke--stern {
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a3c0da' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cdefs%3E%3Cg id='a'%3E%3Cpath d='M12 12V2M12 6.5L9.6 4.3M12 6.5L14.4 4.3'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23a'/%3E%3Cuse href='%23a' transform='rotate(60 12 12)'/%3E%3Cuse href='%23a' transform='rotate(120 12 12)'/%3E%3Cuse href='%23a' transform='rotate(180 12 12)'/%3E%3Cuse href='%23a' transform='rotate(240 12 12)'/%3E%3Cuse href='%23a' transform='rotate(300 12 12)'/%3E%3C/svg%3E");
}

@keyframes schneeFall {
    0%   { transform: translate3d(0, -10vh, 0) rotate(0deg); }
    25%  { transform: translate3d(var(--sway), 20vh, 0) rotate(calc(var(--rot) * 0.25)); }
    50%  { transform: translate3d(0, 50vh, 0) rotate(calc(var(--rot) * 0.5)); }
    75%  { transform: translate3d(calc(var(--sway) * -1), 80vh, 0) rotate(calc(var(--rot) * 0.75)); }
    100% { transform: translate3d(0, 110vh, 0) rotate(var(--rot)); }
}

@media (prefers-reduced-motion: reduce), print {
    .schnee-container { display: none; }
}
