/* ==========================================================================
   KINDERWELT: DIE MAGISCHE SCHLITTENREISE (theme kids_sleigh)
   Eigene Datei, wird nach style.css geladen. Alle Klassen beginnen mit .ks-
   ========================================================================== */
.ks-stage {
  --ks-red: #d9483b;
  --ks-red-dark: #a92f27;
  --ks-green: #2f8a57;
  --ks-gold: #f4bf4f;
  --ks-gold-dark: #c98a1c;
  --ks-cream: #fff8ea;
  --ks-ink: #3a2516;
  --ks-night: #17244d;
  position: relative;
  width: 100vw;
  margin: 0 calc(50% - 50vw) 32px;
  height: 100vh;
  height: 100svh;
  font-family: "Manrope", var(--sans, sans-serif);
}
/* Die Höhe der Bühne setzt kids-sleigh.js passend zur Scrollstrecke, das Bild klebt oben */
.ks-viewport {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #1d2f63;
  isolation: isolate;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Standbild, bis die 3D-Szene bereit ist */
.ks-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  transition: opacity 1.6s ease;
  pointer-events: none;
  /* langsames Heranfahren an das Titelbild */
  animation: ks-poster-zoom 5s ease-out both;
}
@keyframes ks-poster-zoom { from { transform: scale(1); } to { transform: scale(1.12); } }
.ks-stage.is-ready .ks-poster { opacity: 0; }
/* Titel über dem Startbild */
.ks-intro {
  position: absolute;
  left: 0; right: 0; top: 14%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  text-align: center;
  pointer-events: none;
  color: #fff8e8;
  text-shadow: 0 2px 12px rgba(40, 20, 70, .7), 0 1px 2px rgba(40, 20, 70, .8);
  transition: opacity 1.2s ease, transform 1.6s ease;
  animation: ks-intro-in 1.2s .3s ease-out backwards;
}
.ks-intro-title { font: 700 clamp(40px, 9vw, 68px)/1.05 Caveat, "Dancing Script", cursive; }
.ks-intro-sub { font: 700 clamp(26px, 5vw, 38px)/1.1 Caveat, "Dancing Script", cursive; opacity: .92; }
@keyframes ks-intro-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
/* Anzeigen erst nach dem Titelbild einblenden */
.ks-hud, .ks-hint { transition: opacity .8s ease .6s; }
.ks-stage:not(.is-ready):not(.is-fallback) .ks-hud,
.ks-stage:not(.is-ready):not(.is-fallback) .ks-hint { opacity: 0; }
/* Beim Titelbild nur Titel und Scroll-Hinweis zeigen */
.ks-stage.is-title .ks-hud { opacity: 0; pointer-events: none; }
.ks-stage.is-fallback .ks-intro { display: none; }
@media (prefers-reduced-motion: reduce) { .ks-poster, .ks-intro { animation: none; } }
.ks-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease;
  cursor: pointer;
  /* waagerecht wischen = Reise; senkrecht bleibt Seitenscrollen */
  touch-action: pan-y;
}
.ks-stage.is-ready .ks-canvas { opacity: 1; }
.ks-canvas canvas { display: block; width: 100%; height: 100%; }
.ks-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 58%, transparent 62%, rgba(14, 22, 54, .38) 100%),
    linear-gradient(180deg, rgba(14, 22, 54, .28) 0%, transparent 18%, transparent 80%, rgba(14, 22, 54, .32) 100%);
}

/* Zahl-Schild über dem nahen Geschenk */
.ks-tag {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  padding: 7px 14px 8px;
  border-radius: 999px;
  background: var(--ks-cream);
  border: 3px solid #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .12), 0 8px 18px rgba(20, 30, 70, .28);
  color: var(--ks-ink);
  font: 800 15px/1 "Manrope", sans-serif;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.ks-tag.is-visible { opacity: 1; }
.ks-tag.is-today { background: var(--ks-gold); color: #4a2a00; }
.ks-tag.is-locked { background: #e9f1ff; color: #4a5c80; }

/* „Hoppla!“-Sprechblase am Schlitten */
.ks-bubble {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  padding: 10px 18px 12px;
  border-radius: 22px;
  background: #fff;
  color: var(--ks-red);
  font: 800 clamp(20px, 5vw, 28px)/1 "Manrope", sans-serif;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .1), 0 10px 26px rgba(20, 30, 70, .3);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
}
.ks-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  margin-left: -9px;
  border: 10px solid transparent;
  border-top-color: #fff;
  border-bottom: 0;
}
.ks-bubble.is-visible { opacity: 1; }
.ks-bubble.is-pop { animation: ksPop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes ksPop {
  0% { scale: .2; }
  60% { scale: 1.12; }
  100% { scale: 1; }
}

/* Geschenke als Tasten für Tastatur und Screenreader; sichtbar nur ohne 3D */
.ks-list {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ks-list:focus-within {
  clip: auto;
  width: auto;
  max-width: 94vw;
  height: auto;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.ks-gift-btn {
  min-width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 3px solid #fff;
  background: var(--ks-red);
  color: #fff;
  font: 800 16px/1 "Manrope", sans-serif;
  cursor: pointer;
  box-shadow: 0 3px 0 rgba(0, 0, 0, .18);
}
.ks-gift-btn.is-open { background: var(--ks-green); }
.ks-gift-btn.is-today { background: var(--ks-gold); color: #4a2a00; }
.ks-gift-btn.is-locked { background: #dfe8f7; color: #6b7c9c; border-color: #eef3fb; }
.ks-stage.is-fallback .ks-list {
  clip: auto;
  width: min(92vw, 560px);
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.ks-stage.is-fallback .ks-gift-btn { height: 56px; }
.ks-stage.is-fallback .ks-nav,
.ks-stage.is-fallback .ks-hint { display: none; }

/* Reise-Kompass oben */
.ks-hud {
  position: absolute;
  z-index: 5;
  top: max(14px, env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  width: min(92vw, 460px);
  display: grid;
  justify-items: center;
  gap: 8px;
  pointer-events: none;
}
.ks-compass {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 234, .92);
  border: 3px solid #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .1), 0 8px 22px rgba(20, 30, 70, .25);
}
.ks-compass-end { font-size: 18px; line-height: 1; }
.ks-compass-track {
  position: relative;
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: repeating-linear-gradient(90deg, #e3d6bd 0 8px, #f2e8d4 8px 14px);
}
.ks-compass-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ks-red), var(--ks-gold));
  transition: width .8s ease;
}
.ks-compass-sled {
  position: absolute;
  top: 50%;
  width: 46px;
  height: auto;
  transform: translate(-50%, -62%);
  transition: left .8s ease;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}
.ks-status {
  padding: 6px 14px 7px;
  border-radius: 999px;
  background: rgba(23, 36, 77, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font: 700 14px/1.25 "Manrope", sans-serif;
  text-align: center;
  text-wrap: balance;
}
.ks-today-btn {
  pointer-events: auto;
  padding: 9px 16px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--ks-gold);
  color: #4a2a00;
  font: 800 14px/1 "Manrope", sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ks-gold-dark);
}
.ks-today-btn[hidden] { display: none; }

/* Pfeile links/rechts */
.ks-nav {
  position: absolute;
  z-index: 5;
  bottom: max(20px, calc(env(safe-area-inset-bottom) + 10px));
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: rgba(217, 72, 59, .92);
  color: #fff;
  font: 800 34px/44px "Manrope", sans-serif;
  text-align: center;
  padding: 0 0 4px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ks-red-dark), 0 8px 20px rgba(20, 30, 70, .3);
  transition: opacity .25s ease, transform .15s ease;
}
.ks-nav:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ks-red-dark); }
.ks-nav-prev { left: max(12px, env(safe-area-inset-left)); }
.ks-nav-next { right: max(12px, env(safe-area-inset-right)); }
.ks-nav:disabled { opacity: 0; pointer-events: none; }

.ks-skip {
  position: absolute;
  z-index: 6;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 36, 77, .7);
  color: #fff;
  font: 700 14px/1 "Manrope", sans-serif;
  cursor: pointer;
}
.ks-skip[hidden] { display: none; }

/* Wisch-Hinweis mit Hand */
.ks-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 12px;
  border-radius: 999px;
  background: rgba(255, 248, 234, .94);
  color: var(--ks-ink);
  font: 700 14px/1.2 "Manrope", sans-serif;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(20, 30, 70, .25);
  pointer-events: none;
  transition: opacity .5s ease;
}
.ks-hint.is-hidden { opacity: 0; }
.ks-hint-hand {
  width: 28px;
  height: 28px;
  flex: none;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctext x='16' y='25' font-size='24' text-anchor='middle'%3E%F0%9F%91%86%3C/text%3E%3C/svg%3E");
  animation: ksSwipe 1.6s ease-in-out infinite;
}
@keyframes ksSwipe {
  0%, 100% { translate: 0 6px; }
  50% { translate: 0 -6px; }
}

/* Finale am Ziel-Haus */
.ks-finale {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px));
  transform: translateX(-50%) scale(.8);
  width: min(88vw, 420px);
  padding: 14px 20px;
  border-radius: 22px;
  background: var(--ks-cream);
  border: 4px solid #fff;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .1), 0 14px 30px rgba(20, 30, 70, .3);
  color: var(--ks-red);
  text-align: center;
  font: 800 clamp(18px, 4.6vw, 24px)/1.25 "Manrope", sans-serif;
  opacity: 0;
  pointer-events: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.3, 1.5, .5, 1);
}
.ks-finale p { margin: 0; }
.ks-finale.is-visible { opacity: 1; transform: translateX(-50%) scale(1); }

/* ==========================================================================
   ÖFFNEN: BILDERBUCH-KARTE UND SCHNEEKUGEL
   ========================================================================== */
.modal-root.ks-reveal {
  --ks-red: #d9483b;
  --ks-red-dark: #a92f27;
  --ks-green: #2f8a57;
  --ks-gold: #f4bf4f;
  --ks-gold-dark: #c98a1c;
  --ks-cream: #fff8ea;
  --ks-ink: #3a2516;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 14px max(18px, env(safe-area-inset-bottom));
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 214, 130, .28), transparent 58%),
    radial-gradient(ellipse at 50% 50%, rgba(30, 48, 104, .5), rgba(12, 20, 50, .82));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: "Manrope", var(--sans, sans-serif);
  overflow-y: auto;
  animation: ksFade .35s ease both;
}
@keyframes ksFade { from { opacity: 0; } }
.ks-scene {
  display: grid;
  justify-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  margin: auto;
}
.ks-close {
  position: fixed;
  z-index: 3;
  top: max(12px, env(safe-area-inset-top));
  right: max(12px, env(safe-area-inset-right));
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #fff;
  background: var(--ks-red);
  color: #fff;
  font: 800 28px/36px "Manrope", sans-serif;
  padding: 0 0 4px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ks-red-dark);
}

/* Schneekugel (Tag 6, 12, 18) */
.ks-globe-stage { display: none; justify-items: center; gap: 14px; text-align: center; }
.ks-reveal.is-globe .ks-globe-stage { display: grid; }
.ks-reveal.is-globe .ks-card,
.ks-reveal.is-globe .ks-reactions { display: none; }
.ks-globe {
  position: relative;
  width: min(78vw, 46vh, 400px);
  aspect-ratio: 1;
  touch-action: none;
  cursor: grab;
  transform-origin: 50% 85%;
  will-change: transform;
}
.ks-globe:active { cursor: grabbing; }
.ks-globe img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .35));
}
.ks-globe-num {
  position: absolute;
  left: 50%;
  top: 85.6%;
  transform: translate(-50%, -50%);
  color: #5a3510;
  font: 700 clamp(18px, 5.4vw, 26px)/1 "Cinzel", Georgia, serif;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .6);
  pointer-events: none;
}
.ks-glitter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ks-globe.is-burst { animation: ksBurst .75s ease-out forwards; }
@keyframes ksBurst {
  0% { scale: 1; filter: brightness(1); }
  40% { scale: 1.08; filter: brightness(1.6); }
  100% { scale: 1.25; filter: brightness(2.2); opacity: 0; }
}
.ks-globe-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 18px 10px 12px;
  border-radius: 999px;
  background: var(--ks-cream);
  color: var(--ks-ink);
  font: 800 16px/1.2 "Manrope", sans-serif;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}
.ks-globe-skip {
  border: 0;
  background: none;
  color: rgba(255, 255, 255, .85);
  font: 700 14px/1 "Manrope", sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 8px;
}

/* Zauberpost-Karte (Variante C): Zuckerstangen-Rand, Briefmarke, Schlitten bringt die Post */
.ks-reveal.is-open {
  background:
    radial-gradient(2px 2px at 12% 14%, #ffe9a8 98%, transparent),
    radial-gradient(2px 2px at 82% 10%, #fff 98%, transparent),
    radial-gradient(1.5px 1.5px at 22% 30%, #ffe9a8 98%, transparent),
    radial-gradient(1.5px 1.5px at 64% 6%, #fff 98%, transparent),
    radial-gradient(2px 2px at 90% 36%, #ffe9a8 98%, transparent),
    radial-gradient(1.5px 1.5px at 6% 62%, #fff 98%, transparent),
    radial-gradient(2px 2px at 94% 78%, #fff 98%, transparent),
    radial-gradient(ellipse at 50% 30%, rgba(108, 95, 176, .45), transparent 65%),
    rgba(36, 28, 86, .95);
}
.ks-card {
  --ks-post-ink: #2a2160;
  --ks-post-violet: #6c5fb0;
  position: relative;
  width: 100%;
  color: var(--ks-ink);
  text-align: left;
  animation: ksCardIn .6s cubic-bezier(.3, 1.4, .5, 1) both;
}
@keyframes ksCardIn {
  from { opacity: 0; transform: translateY(40px) scale(.85) rotate(-3deg); }
}
.ks-post-sky {
  position: relative;
  z-index: 3;
  height: clamp(104px, 30vw, 128px);
  margin-bottom: -8px;
  pointer-events: none;
}
.ks-post-sled {
  position: absolute;
  left: 18px;
  top: 0;
  width: clamp(116px, 34vw, 150px);
  transform: rotate(-6deg);
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .35));
  animation: ksSledIn 1s cubic-bezier(.2, .9, .3, 1.15) both;
}
@keyframes ksSledIn {
  from { opacity: 0; translate: -140px -40px; }
}
.ks-post-trail {
  position: absolute;
  left: clamp(110px, 31vw, 140px);
  top: clamp(64px, 19vw, 84px);
  width: 150px;
  height: 40px;
  overflow: visible;
}
.ks-post-trail path {
  fill: none;
  stroke: #ffd76a;
  stroke-width: 2.5;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
  animation: ksTrail 1.6s linear infinite;
}
@keyframes ksTrail { to { stroke-dashoffset: -20; } }
.ks-post-frame {
  position: relative;
  z-index: 2;
  padding: 10px;
  border-radius: 24px;
  background: repeating-linear-gradient(135deg, #d83a34 0 14px, #fff 14px 28px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
}
.ks-post-inner {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 28px clamp(18px, 5vw, 26px) 22px;
  border-radius: 16px;
  background: #fffdf7;
}
.ks-stamp {
  position: absolute;
  top: -18px;
  right: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  width: 76px;
  height: 88px;
  box-sizing: border-box;
  border: 3px dashed #3f7d58;
  border-radius: 6px;
  background: #fffdf7;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .18);
  transform: rotate(6deg);
}
.ks-stamp span {
  color: #3f7d58;
  font: 600 12px/1.2 "Fredoka", "Manrope", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ks-stamp b { color: #c2412d; font: 700 40px/1 "Fredoka", "Manrope", sans-serif; }
.ks-kicker {
  margin: 0;
  padding-right: 80px;
  color: var(--ks-post-violet);
  font: 600 14px/1.2 "Fredoka", "Manrope", sans-serif;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ks-title {
  margin: 0;
  padding-right: 72px;
  color: var(--ks-post-ink);
  font: 700 clamp(26px, 7vw, 32px)/1.1 "Fredoka", "Manrope", sans-serif;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.ks-sign-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}
.ks-read {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ks-post-violet);
  box-shadow: 0 4px 0 #463b85;
  cursor: pointer;
}
.ks-read svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ks-read:active { transform: translateY(3px); box-shadow: 0 1px 0 #463b85; }
.ks-read.is-speaking { background: #8a7dd0; animation: ksPulse 1.2s ease-in-out infinite; }
@keyframes ksPulse { 50% { scale: 1.08; } }
.ks-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ks-body { display: grid; gap: 14px; }
.ks-message {
  margin: 0;
  color: #3a2a1e;
  font: 700 clamp(18px, 4.8vw, 20px)/1.55 "Nunito", "Manrope", sans-serif;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.ks-message a { color: var(--ks-red); }
.ks-photo {
  margin: 0;
  overflow: hidden;
  border-radius: 18px;
  border: 5px solid #fff;
  box-shadow: 0 6px 16px rgba(58, 37, 22, .22);
  background: #f2e7d2;
  aspect-ratio: 4 / 3;
  rotate: -1.2deg;
}
.ks-photo img,
.ks-photo video { display: block; width: 100%; height: 100%; }
.ks-photo.is-video { aspect-ratio: auto; rotate: 0deg; }
.ks-photo.is-video video { height: auto; max-height: 56vh; background: #000; }
.ks-photo.is-mood img { object-fit: cover; }

/* Sprachnachricht als goldene Christbaumkugel */
.ks-voice { display: grid; justify-items: center; gap: 8px; }
.ks-ornament {
  position: relative;
  width: 96px;
  height: 96px;
  margin-top: 14px;
  border: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #fff6cf 0 8%, transparent 30%),
    radial-gradient(circle at 50% 50%, #f8cf5f, #d99a1e 70%, #a86d0c);
  box-shadow: inset 0 -8px 14px rgba(120, 70, 0, .35), 0 10px 22px rgba(0, 0, 0, .25);
  color: #fff;
  cursor: pointer;
}
.ks-ornament-cap {
  position: absolute;
  left: 50%;
  top: -12px;
  width: 24px;
  height: 16px;
  margin-left: -12px;
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(90deg, #a98d55, #efe0b4, #a98d55);
}
.ks-ornament-cap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -9px;
  width: 10px;
  height: 10px;
  margin-left: -7px;
  border: 2px solid #b79a5c;
  border-radius: 50%;
}
.ks-ornament-icon { font: 800 30px/1 "Manrope", sans-serif; text-shadow: 0 2px 3px rgba(120, 70, 0, .5); }
.ks-ornament.is-playing { animation: ksSwing 1.4s ease-in-out infinite; transform-origin: 50% -14px; }
@keyframes ksSwing { 0%, 100% { rotate: -7deg; } 50% { rotate: 7deg; } }
.ks-voice-label { font: 700 15px/1.3 "Manrope", sans-serif; color: #7a5b3f; }

.ks-voucher {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 22px 18px 18px;
  border-radius: 18px;
  border: 3px dashed var(--ks-red);
  background: #fff;
}
.ks-voucher-tag {
  justify-self: center;
  margin-top: -36px;
  padding: 5px 14px 6px;
  border-radius: 999px;
  background: var(--ks-red);
  color: #fff;
  font: 800 12px/1 "Manrope", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ks-link {
  justify-self: center;
  display: inline-block;
  padding: 11px 20px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--ks-green);
  color: #fff;
  font: 800 15px/1 "Manrope", sans-serif;
  text-decoration: none;
  box-shadow: 0 4px 0 #1f6a40;
}
.ks-sign {
  margin: 0;
  color: #8a4a2a;
  font: 700 30px/1.1 "Caveat", cursive;
  overflow-wrap: anywhere;
}

/* Quiz aus app.js im Kinder-Look */
.ks-body .quiz-options button,
.ks-body .quiz-option {
  border-radius: 14px;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
}

.ks-reactions {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 8px;
  text-align: center;
}
.ks-reactions > p { margin: 0; color: #ece8ff; font: 600 16px/1.3 "Fredoka", "Manrope", sans-serif; }
.ks-reactions > div { display: flex; justify-content: center; gap: clamp(10px, 4vw, 18px); }
.ks-reactions button {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: #ece8ff;
  font: 600 13px/1.2 "Fredoka", "Manrope", sans-serif;
  cursor: pointer;
}
.ks-reactions i {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffe3ea;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .18);
  transition: transform .15s ease;
}
.ks-reactions svg { width: 30px; height: 30px; }
.ks-reactions .is-heart svg { fill: #e0476b; }
.ks-reactions .is-star i { background: #fff2c9; }
.ks-reactions .is-star svg { fill: #e9a81c; }
.ks-reactions .is-snow i { background: #dff3ff; }
.ks-reactions .is-snow svg { fill: none; stroke: #2c88c4; stroke-width: 2.4; stroke-linecap: round; }
.ks-reactions button:hover i { transform: scale(1.06); }
.ks-reactions button:active i { transform: translateY(3px) scale(.96); }
.ks-reactions button.is-sent i { animation: ksHop .5s ease; box-shadow: 0 0 0 4px #ffd76a, 0 4px 0 rgba(0, 0, 0, .18); }
@keyframes ksHop { 40% { transform: translateY(-8px) scale(1.12); } }

/* Weniger Bewegung */
.ks-reveal.is-reduced .ks-card,
.ks-reveal.is-reduced .ks-post-sled,
.ks-reveal.is-reduced .ks-post-trail path,
.ks-reveal.is-reduced .ks-ornament,
.ks-reveal.is-reduced .ks-read { animation: none; }
@media (prefers-reduced-motion: reduce) {
  .ks-hint-hand,
  .ks-bubble.is-pop,
  .ks-card,
  .ks-post-sled,
  .ks-post-trail path,
  .ks-reactions button.is-sent i,
  .ks-ornament.is-playing,
  .ks-read.is-speaking { animation: none; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .ks-hud { top: 8px; gap: 5px; }
  .ks-compass { padding: 5px 10px; }
  .ks-nav { width: 44px; height: 44px; font-size: 28px; line-height: 36px; }
  .ks-post-inner { padding-top: 22px; }
}

.theme-kids_sleigh .calendar-bottom { margin-top: 0; }

/* Fokus nur bei Tastaturbedienung sichtbar */
.ks-scene:focus,
.ks-card:focus { outline: none; }
.ks-reveal button:focus-visible,
.ks-reveal a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

/* Startseite und Auswahl: Karte der Kinderwelt, drei Modelle nebeneinander */
.model-card-kids {
  background: radial-gradient(circle at 50% 0%, #3b2a6b 0%, #1a1438 100%);
  border-color: #f4bf4f;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7), 0 0 25px rgba(244, 191, 79, 0.28);
}
.model-card-kids:hover {
  border-color: #ffe08a;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(255, 214, 120, 0.5);
}
.model-card-kids .model-overlay-tag {
  background: rgba(40, 24, 80, 0.85);
  border-color: rgba(255, 214, 120, 0.6);
  color: #ffe9b0;
}
@media (min-width: 769px) {
  .models-grid:has(.model-card-kids),
  .theme-picker-grid:has(input[value="kids_sleigh"]) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Sprechblase beim Antippen von Figuren und Dingen */
.ks-say {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 4;
  max-width: 70vw;
  padding: 9px 16px 10px;
  border-radius: 20px;
  background: #fffdf6;
  color: #3b2a6b;
  font: 800 clamp(16px, 4vw, 22px)/1.15 "Manrope", sans-serif;
  text-align: center;
  box-shadow: 0 5px 0 rgba(0, 0, 0, .08), 0 10px 24px rgba(20, 30, 70, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.ks-say::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  margin-left: -9px;
  border: 10px solid transparent;
  border-top-color: #fffdf6;
  border-bottom: 0;
}
.ks-say.is-visible { opacity: 1; }
.ks-say.is-pop { animation: ksPop .45s cubic-bezier(.3, 1.6, .5, 1) both; }

/* Name der Welt wie eine Kapitelüberschrift im Bilderbuch */
.ks-world {
  position: absolute;
  left: 0;
  right: 0;
  top: 30%;
  z-index: 3;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
  opacity: 0;
}
.ks-world-name {
  color: #fff8e8;
  font: 700 clamp(38px, 8vw, 72px)/1.05 Caveat, "Dancing Script", cursive;
  text-align: center;
  text-shadow: 0 2px 14px rgba(40, 20, 70, .75), 0 1px 2px rgba(40, 20, 70, .9);
}
.ks-world.is-show { animation: ksWorld 2.8s ease both; }
@keyframes ksWorld {
  0% { opacity: 0; transform: translateY(14px) scale(.96); }
  18% { opacity: 1; transform: none; }
  78% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* Sternzähler */
.ks-stars {
  padding: 5px 12px 6px;
  border-radius: 999px;
  background: rgba(23, 36, 77, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #ffe9a8;
  font: 800 13px/1.2 "Manrope", sans-serif;
}
@media (prefers-reduced-motion: reduce) { .ks-world.is-show { animation-duration: .01s; } }

/* Schilder und Sprechblasen: Position über translate, damit der Plopp-Effekt an Ort und Stelle wächst */
.ks-tag, .ks-bubble, .ks-say { transform: translate(-50%, -100%); transform-origin: 0 0; }

/* Gemaltes Titelbild: bleibt bis zum ersten Scrollen, die Deckkraft setzt das Modul */
.ks-poster-wrap { display: contents; }
.ks-stage.is-ready .ks-poster { transition: none; }
.ks-poster { z-index: 2; }
