@font-face { font-family: "Fredoka"; src: url(fonts/fredoka.woff2) format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url(fonts/nunito.woff2) format("woff2"); font-weight: 200 1000; font-display: swap; }

:root {
  --night: #1d0d47;
  --night-2: #2a1460;
  --violet: #6a35d9;
  --pink: #ff2a6d;
  --orange: #ff8a00;
  --yellow: #ffb400;
  --green: #2ecc71;
  --blue: #2f8cff;
  --cream: #fff8ef;
  --ink: #241a3a;
  --muted: #6b5f86;
  --card: #ffffff;
  --radius: 22px;
  --shadow: 0 14px 40px rgba(42, 20, 96, .18);
  --rainbow: linear-gradient(90deg, var(--blue), var(--orange) 30%, var(--green) 55%, var(--blue) 75%, var(--pink));
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
main { overflow-x: clip; }
body { margin: 0; font-family: "Nunito", system-ui, sans-serif; color: var(--ink); background: var(--cream); line-height: 1.55; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); }
h1, h2, h3 { font-family: "Fredoka", "Nunito", sans-serif; line-height: 1.12; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.8rem); color: var(--night-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4em; font: 700 1rem "Fredoka", sans-serif; padding: .85em 1.4em; border-radius: 999px; border: 0; cursor: pointer; text-decoration: none; color: #fff; background: linear-gradient(135deg, var(--pink), var(--orange)); box-shadow: 0 6px 0 #b8124a, 0 10px 24px rgba(255, 42, 109, .35); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #b8124a; }
.btn-sm { padding: .6em 1.05em; font-size: .92rem; }
.btn-ghost { background: rgba(255, 255, 255, .14); color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:active { box-shadow: inset 0 0 0 2px currentColor; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--violet); text-decoration: underline; cursor: pointer; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: 10px clamp(16px, 4vw, 40px); background: rgba(29, 13, 71, .88); backdrop-filter: blur(10px); }
.brand img { width: 120px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; opacity: .85; }
.nav a:hover { opacity: 1; color: var(--yellow); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.music-btn { display: inline-flex; align-items: center; gap: 8px; padding: .5em .9em; border-radius: 999px; border: 2px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font: 700 .9rem "Fredoka", sans-serif; cursor: pointer; }
.music-btn[aria-pressed="true"] { border-color: var(--yellow); color: var(--yellow); }
.eq { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.eq i { width: 3px; height: 4px; background: currentColor; border-radius: 2px; }
.music-btn[aria-pressed="true"] .eq i { animation: eq .8s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: .2s !important; }
.eq i:nth-child(3) { animation-delay: .4s !important; }
.eq i:nth-child(4) { animation-delay: .1s !important; }
@keyframes eq { 0%, 100% { height: 3px; } 50% { height: 14px; } }

/* Hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 75% 20%, #5b2bd1 0%, transparent 60%), radial-gradient(900px 500px at 0% 100%, #b0247a 0%, transparent 55%), linear-gradient(180deg, var(--night), var(--night-2)); padding: clamp(40px, 7vw, 90px) clamp(16px, 5vw, 60px) 70px; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; max-width: 1200px; margin: 0 auto; }
.pill { display: inline-block; padding: .35em .9em; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); }
.rainbow { background: var(--rainbow); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: 1.15rem; opacity: .92; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 30px; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 28px; }
.stats strong { display: block; font: 700 1.7rem "Fredoka", sans-serif; color: var(--yellow); }
.stats span { font-size: .9rem; opacity: .8; }
.hero-art { position: relative; margin: 0; }
.hero-art img { border-radius: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); cursor: pointer; animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }
.bubble { position: absolute; left: 6%; top: -18px; max-width: 70%; background: #fff; color: var(--ink); font-weight: 800; padding: 10px 16px; border-radius: 18px 18px 18px 4px; box-shadow: var(--shadow); transition: transform .2s; }
.sky .candy { position: absolute; font-size: 2rem; opacity: .55; animation: drift 14s linear infinite; }
.c1 { left: 5%; top: 80%; } .c2 { left: 22%; top: 10%; animation-delay: -3s !important; } .c3 { left: 48%; top: 85%; animation-delay: -6s !important; }
.c4 { left: 62%; top: 6%; animation-delay: -2s !important; } .c5 { left: 88%; top: 70%; animation-delay: -8s !important; } .c6 { left: 92%; top: 12%; animation-delay: -5s !important; }
.c7 { left: 35%; top: 55%; animation-delay: -10s !important; } .c8 { left: 78%; top: 40%; animation-delay: -12s !important; }
@keyframes drift { 0% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-40px) rotate(20deg); } 100% { transform: translateY(0) rotate(0); } }

.ticker { overflow: hidden; background: var(--yellow); color: var(--night); font: 700 1rem "Fredoka", sans-serif; padding: 12px 0; transform: rotate(-1.2deg); margin: -14px -10px 0; position: relative; z-index: 2; }
.ticker-track { display: flex; gap: 48px; width: max-content; animation: marquee 30s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { max-width: 1200px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(16px, 4vw, 40px); }
.section-head { text-align: center; margin-bottom: 36px; }
.kicker { display: inline-block; font: 700 .85rem "Fredoka", sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--pink); margin-bottom: 8px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 16px 16px 18px; box-shadow: var(--shadow); transition: transform .2s; transform-style: preserve-3d; }
.card img { border-radius: 16px; aspect-ratio: 1; object-fit: cover; margin-bottom: 14px; background: #f3ecff; }
.card h3 { font-size: 1.3rem; color: var(--night-2); }
.card p { color: var(--muted); margin: 0 0 14px; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.price { font: 700 1.35rem "Fredoka", sans-serif; color: var(--night-2); }
.badge { position: absolute; top: 24px; left: 24px; z-index: 1; font-weight: 800; font-size: .8rem; padding: .3em .8em; border-radius: 999px; color: #fff; }
.badge.ok { background: var(--green); }
.badge.soon { background: var(--violet); }
.card .btn-ghost { color: var(--violet); }

/* Finder */
.finder { background: linear-gradient(135deg, #f1e8ff, #ffe9f1); border-radius: 36px; max-width: 1100px; margin: 0 auto; }
.finder-box { max-width: 680px; margin: 0 auto; text-align: center; }
.finder-q { font: 600 1.35rem "Fredoka", sans-serif; margin-bottom: 18px; }
.finder-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.finder-opts button { font: 700 1rem "Nunito", sans-serif; padding: 18px 12px; border-radius: 18px; border: 3px solid transparent; background: #fff; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.finder-opts button:hover { transform: translateY(-3px); border-color: var(--violet); }
.finder-opts button span { display: block; font-size: 1.8rem; }
.finder-steps { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.finder-steps i { width: 26px; height: 6px; border-radius: 3px; background: #d8c9f5; }
.finder-steps i.on { background: var(--violet); }
.finder-result { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; text-align: left; background: #fff; border-radius: 24px; padding: 18px; box-shadow: var(--shadow); }
.finder-result img { border-radius: 16px; }
.finder-result .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.confetti { position: fixed; top: -20px; font-size: 1.4rem; pointer-events: none; z-index: 200; animation: fall 1.8s ease-in forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }

/* Book */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.book img { border-radius: 26px; box-shadow: var(--shadow); transform: rotate(-2deg); }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.features li { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.features li > span { font-size: 2.2rem; }
.features h3 { margin-top: 8px; color: var(--night-2); }
.features p { margin: 0; color: var(--muted); }

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.quotes blockquote { margin: 0; background: var(--night-2); color: #fff; border-radius: var(--radius); padding: 24px; }
.quotes footer { color: var(--yellow); font-weight: 800; margin-top: 10px; }

.newsletter { text-align: center; color: #fff; background: linear-gradient(135deg, var(--violet), var(--pink)); border-radius: 36px; max-width: 1000px; }
.newsletter h2 { color: #fff; }
.nl-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 640px; margin: 20px auto 0; }
.nl-form input:not([type=checkbox]) { flex: 1 1 200px; padding: .9em 1.2em; border-radius: 999px; border: 0; font: inherit; }
.consent { flex-basis: 100%; font-size: .85rem; opacity: .95; }
.consent a, .newsletter a { color: #fff; }
.nl-msg { flex-basis: 100%; font-weight: 800; min-height: 1.4em; margin: 0; }

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border-radius: 18px; padding: 16px 20px; box-shadow: 0 6px 18px rgba(42, 20, 96, .08); }
.faq summary { font: 600 1.08rem "Fredoka", sans-serif; cursor: pointer; color: var(--night-2); }
.faq p { margin: 10px 0 0; color: var(--muted); }
.ask-ai { text-align: center; margin-top: 26px; font-weight: 700; }

.foot { text-align: center; background: var(--night); color: #d9cff5; padding: 48px 16px 110px; }
.foot img { margin: 0 auto 10px; }
.foot a { color: #fff; }
.tag { font: 600 1.2rem "Fredoka", sans-serif; color: var(--yellow); }
.legal { opacity: .8; }

/* Chat */
.chat-fab { position: fixed; right: 18px; bottom: 18px; z-index: 90; display: flex; align-items: center; gap: 8px; padding: 6px 18px 6px 6px; border: 0; border-radius: 999px; background: var(--night-2); color: #fff; font: 700 1rem "Fredoka", sans-serif; cursor: pointer; box-shadow: 0 10px 30px rgba(29, 13, 71, .45); animation: pulse 2.5s ease-in-out infinite; }
.chat-fab img { border-radius: 50%; background: #fff; }
@keyframes pulse { 50% { box-shadow: 0 10px 30px rgba(29, 13, 71, .45), 0 0 0 10px rgba(255, 42, 109, .18); } }
.chat { position: fixed; right: 18px; bottom: 18px; z-index: 95; width: min(390px, calc(100vw - 24px)); height: min(600px, calc(100dvh - 36px)); display: flex; flex-direction: column; background: #fff; border-radius: 26px; box-shadow: 0 24px 70px rgba(29, 13, 71, .4); overflow: hidden; }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: linear-gradient(135deg, var(--night-2), var(--violet)); color: #fff; }
.chat-head img { border-radius: 50%; background: #fff; }
.chat-head small { display: block; opacity: .8; }
.chat-close { margin-left: auto; background: rgba(255, 255, 255, .15); color: #fff; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f8f4ff; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; }
.msg.bot { background: #fff; border-bottom-left-radius: 4px; box-shadow: 0 2px 8px rgba(42, 20, 96, .08); }
.msg.me { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: 4px; }
.msg a { color: var(--pink); font-weight: 800; }
.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--violet); animation: bounce 1s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; } .typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 50% { transform: translateY(-6px); } }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 0; }
.chips button { flex: none; border: 2px solid #e2d6fb; background: #fff; color: var(--night-2); border-radius: 999px; padding: 6px 12px; font: 700 .85rem "Nunito", sans-serif; cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px; }
.chat-form input { flex: 1; min-width: 0; padding: .75em 1em; border-radius: 999px; border: 2px solid #e2d6fb; font: inherit; }
.chat-form button { width: 44px; border: 0; border-radius: 50%; background: var(--pink); color: #fff; font-size: 1.1rem; cursor: pointer; }
.chat-note { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--muted); }

@media (max-width: 860px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero-grid, .book { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 520px; }
  .finder-result { grid-template-columns: 1fr; text-align: center; }
  .finder-result img { max-width: 200px; margin: 0 auto; }
  .finder-result .actions { justify-content: center; }
}
@media (max-width: 420px) {
  .music-label { display: none; }
  .brand img { width: 96px; }
  .chat-fab span { display: none; }
  .chat-fab { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Schulstart-Countdown ---------- */
.countdown { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; background: linear-gradient(135deg, #e7f3ff, #f1e8ff); border-radius: 36px; max-width: 1100px; }
.cd-form { display: grid; gap: 8px; max-width: 380px; }
.cd-form label { font-weight: 800; color: var(--night-2); }
.cd-form small { font-weight: 600; color: var(--muted); }
.cd-form input { padding: .8em 1em; border-radius: 14px; border: 2px solid #d8c9f5; font: inherit; }
.cd-form .btn { justify-self: start; margin-top: 8px; }
.cd-board { background: #fff; border-radius: 28px; padding: 24px; text-align: center; box-shadow: var(--shadow); }
.cd-board img { width: 140px; margin: 0 auto 6px; border-radius: 20px; }
.cd-head { font: 700 2rem "Fredoka", sans-serif; color: var(--night-2); margin: 0; }
.cd-num { font-size: 4.2rem; background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cd-sub { font-weight: 800; margin: 4px 0 8px; }
.cd-weeks { font-size: 1.3rem; letter-spacing: 2px; }
.cd-tip { color: var(--muted); }
.cd-empty { color: var(--muted); font-weight: 700; }
.cd-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 10px; }
.cd-actions .btn-ghost { color: var(--violet); }

/* ---------- GRULU-Welt ---------- */
.tabs { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.tabs [role="tab"] { font: 700 1rem "Fredoka", sans-serif; padding: .7em 1.2em; border-radius: 999px; border: 2px solid #e2d6fb; background: #fff; color: var(--night-2); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--night-2); border-color: var(--night-2); color: #fff; }
.pane { background: #fff; border-radius: 30px; padding: clamp(16px, 3vw, 32px); box-shadow: var(--shadow); }
.pane-intro { text-align: center; font-weight: 700; color: var(--muted); margin-top: 0; }
.hint { font-size: .85rem; color: var(--muted); }

.paint { display: grid; grid-template-columns: minmax(0, 600px) 220px; gap: 24px; justify-content: center; align-items: start; }
#paintCanvas { width: 100%; height: auto; border-radius: 20px; border: 3px solid #eee6ff; touch-action: manipulation; cursor: crosshair; background: #fff; }
.palette { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.swatch { aspect-ratio: 1; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #d8c9f5; cursor: pointer; }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 4px var(--night-2); transform: scale(1.1); }
.paint-actions { display: grid; gap: 8px; margin-top: 16px; }
.paint-actions .btn-ghost, .story-actions .btn-ghost, .card-actions .btn-ghost { color: var(--violet); }

.game { position: relative; max-width: 420px; margin: 0 auto; }
#gameCanvas { width: 100%; height: auto; border-radius: 24px; display: block; touch-action: none; }
.game-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(29, 13, 71, .72); color: #fff; border-radius: 24px; text-align: center; padding: 20px; }
.game-overlay[hidden] { display: none; }
.game-title { font: 700 2rem "Fredoka", sans-serif; margin: 0; }
.game-best { text-align: center; font-weight: 800; }

.story-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto; align-items: end; }
.story-form label, .card-form label { display: grid; gap: 6px; font-weight: 800; color: var(--night-2); }
.story-form input, .story-form select, .card-form input, .card-form select, .card-form textarea { padding: .75em 1em; border-radius: 14px; border: 2px solid #d8c9f5; font: inherit; background: #fff; }
.story-form .btn { justify-self: start; }
.story-form input, .story-form select, .card-form input, .card-form select, .card-form textarea { width: 100%; min-width: 0; }
.story-form label { min-width: 0; }
.story-form .hint { grid-column: 1 / -1; margin: 0; }
.story { max-width: 680px; margin: 26px auto 0; background: linear-gradient(180deg, #2a1460, #4b23a8); color: #fff; border-radius: 26px; padding: 28px; font-size: 1.12rem; line-height: 1.75; }
.story h3 { color: var(--yellow); font-size: 1.6rem; }
.story-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.story .btn-ghost { color: #fff; }

.card-maker { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.card-form { display: grid; gap: 12px; }
#cardCanvas { width: 100%; height: auto; border-radius: 20px; box-shadow: var(--shadow); }
.card-actions { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }

/* ---------- TikTok ---------- */
.tiktok { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
.tt-live { display: inline-flex; align-items: center; gap: 8px; background: #ff2a6d; color: #fff; font-weight: 800; padding: .4em .9em; border-radius: 999px; }
.tt-live[hidden] { display: none; }
.tt-live .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.tt-embed { min-height: 260px; display: grid; place-items: center; background: #111; color: #fff; border-radius: 28px; padding: 20px; text-align: center; }
.tt-embed .hint { color: #bbb; }
.tt-embed a { color: #fff; }
.tt-embed blockquote { margin: 0; width: 100%; }

/* ---------- Galerie ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery figcaption { padding: 8px 12px; font-weight: 700; font-size: .9rem; }
.gallery-empty { grid-column: 1 / -1; text-align: center; font-weight: 800; color: var(--muted); }
.upload { max-width: 560px; margin: 26px auto 0; text-align: center; }
.upload summary { list-style: none; }
.upload summary::-webkit-details-marker { display: none; }
.upload-form { display: grid; gap: 12px; text-align: left; background: #fff; padding: 20px; border-radius: 24px; box-shadow: var(--shadow); margin-top: 16px; }
.upload-form label { display: grid; gap: 6px; font-weight: 800; color: var(--night-2); }
.upload-form input:not([type]), .upload-form input[name] { font: inherit; }
.upload-form input[name="name"], .upload-form input[name="caption"] { padding: .75em 1em; border-radius: 14px; border: 2px solid #d8c9f5; }
.upload-form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; font-size: .92rem; }
.upload-form .check input { margin-top: 4px; }
.upload-form .file { place-items: center; padding: 22px; border: 3px dashed #d8c9f5; border-radius: 18px; cursor: pointer; color: var(--violet); }
.upload-form .file input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.upload-form .file:focus-within { outline: 3px solid var(--yellow); }
#uploadPreview { max-height: 220px; border-radius: 14px; margin: 0 auto; }
.upload-form .nl-msg { color: var(--night-2); }

@media (max-width: 860px) {
  .countdown, .tiktok, .card-maker { grid-template-columns: 1fr; }
  .paint { grid-template-columns: 1fr; }
  .palette { grid-template-columns: repeat(6, 1fr); }
  .paint-actions { grid-template-columns: repeat(3, 1fr); }
}

/* Nur die Geschichte drucken */
@media print {
  body.print-story > *:not(main), body.print-story main > *:not(#welt), body.print-story #welt > *:not(#pane-geschichte), body.print-story .story-form, body.print-story .story-actions, body.print-story .pane-intro { display: none !important; }
  body.print-story .story { background: #fff; color: #000; }
  body.print-story .story h3 { color: #2a1460; }
}

/* ---------- GRULU-Song ---------- */
.song { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; align-items: center; background: linear-gradient(135deg, #0f4c81, #2a1460); color: #fff; border-radius: 36px; max-width: 1100px; }
.song h2 { color: #fff; }
.song .kicker { color: var(--yellow); }
.song-cover { position: relative; }
.song-cover img { border-radius: 28px; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.song-cover.playing img { animation: beat .47s ease-in-out infinite alternate; }
@keyframes beat { to { transform: scale(1.025) rotate(-.6deg); } }
.song-play { position: absolute; right: 18px; top: 18px; width: 76px; height: 76px; border-radius: 50%; border: 0; cursor: pointer; font: 700 1.6rem "Fredoka", sans-serif; color: #fff; background: linear-gradient(135deg, var(--pink), var(--orange)); box-shadow: 0 8px 0 #b8124a, 0 14px 30px rgba(0, 0, 0, .35); }
.song-play:active { transform: translateY(4px); box-shadow: 0 3px 0 #b8124a; }
.song-bar { display: flex; align-items: center; gap: 10px; font-weight: 800; font-variant-numeric: tabular-nums; margin: 14px 0; }
.song-bar input { flex: 1; accent-color: var(--yellow); min-width: 0; }
.karaoke { background: rgba(255, 255, 255, .08); border-radius: 22px; padding: 18px 20px; text-align: center; min-height: 168px; display: flex; flex-direction: column; justify-content: center; }
.karaoke p { margin: 4px 0; }
.k-prev, .k-next { opacity: .5; font-weight: 600; min-height: 1.5em; }
.k-now { font: 700 clamp(1.25rem, 3.6vw, 1.7rem) "Fredoka", sans-serif; color: var(--yellow); min-height: 1.3em; }
.k-now.pulse { animation: pop-in .35s ease-out; }
@keyframes pop-in { from { transform: scale(.92); opacity: .4; } }
.song-text { margin-top: 14px; }
.song-text summary { cursor: pointer; font-weight: 800; }
.song-text ol { list-style: none; padding: 0; margin: 10px 0 0; max-height: 280px; overflow-y: auto; }
.song-text button { background: none; border: 0; color: #fff; font: 600 1rem "Nunito", sans-serif; text-align: left; padding: 3px 6px; border-radius: 8px; cursor: pointer; opacity: .8; }
.song-text button.on { background: var(--yellow); color: var(--night); opacity: 1; }
@media (max-width: 860px) {
  .song { grid-template-columns: 1fr; }
  .song-cover { max-width: 360px; margin: 0 auto; }
}

/* ---------- Weihnachts-Aktion ---------- */
.xmas { position: relative; overflow: hidden; color: #fff; background: radial-gradient(800px 400px at 80% 0%, #2d6a4f 0%, transparent 60%), linear-gradient(160deg, #7a0f2e, #2a1460); border-radius: 36px; max-width: 1100px; }
.xmas h2, .xmas h3 { color: #fff; }
.xmas .kicker { color: var(--yellow); }
.xmas-count { font: 700 1.2rem "Fredoka", sans-serif; color: var(--yellow); margin: 0; }
.snow { position: absolute; inset: 0; pointer-events: none; }
.snow i { position: absolute; top: -20px; color: rgba(255, 255, 255, .7); font-style: normal; animation: snowfall linear infinite; }
@keyframes snowfall { to { transform: translate(30px, 900px) rotate(360deg); } }
.xmas-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.xmas-tile { display: flex; flex-direction: column; gap: 4px; background: #fff; color: var(--ink); text-decoration: none; border-radius: 22px; padding: 12px 12px 16px; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); transition: transform .15s; }
.xmas-tile:hover { transform: translateY(-4px) rotate(-.5deg); }
.xmas-tile img { border-radius: 14px; aspect-ratio: 1; object-fit: cover; margin-bottom: 6px; }
.xmas-tile strong { font: 700 1.15rem "Fredoka", sans-serif; color: #7a0f2e; }
.xmas-tile span { color: var(--muted); font-weight: 700; font-size: .92rem; }
.xmas-b2b { position: relative; display: flex; gap: 20px; align-items: center; justify-content: space-between; margin-top: 22px; padding: 20px 22px; border-radius: 22px; background: rgba(255, 255, 255, .1); border: 2px dashed rgba(255, 255, 255, .35); }
.xmas-b2b h3 { margin-bottom: .3em; }
.xmas-b2b p { margin: 0; opacity: .9; }
.xmas-b2b .btn { flex: none; }
.xmas-note { position: relative; text-align: center; opacity: .85; font-size: .92rem; margin: 16px 0 0; }
@media (max-width: 860px) {
  .xmas-grid { grid-template-columns: 1fr; }
  .xmas-tile { flex-direction: row; flex-wrap: wrap; align-items: center; column-gap: 12px; }
  .xmas-tile img { width: 84px; margin: 0; }
  .xmas-tile strong { flex: 1 1 calc(100% - 100px); }
  .xmas-tile span { flex-basis: 100%; padding-left: 96px; margin-top: -6px; }
  .xmas-b2b { flex-direction: column; align-items: flex-start; }
}
