:root {
  color-scheme: light; /* bewusst immer hell, kein Dunkelmodus */
  --bg: #fff8f0; --card: #ffffff; --text: #2b1b17; --muted: #6d5d57;
  --primary: #c62828; --primary-dark: #9f1f1f; --gold: #f2b705; --green: #1f6f4a;
  --border: #ecdcd0; --soft: #fdeee4; --radius: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--primary); }

/* Kopf und Fuß */
.top { border-bottom: 1px solid var(--border); background: var(--card); }
.top .bar { max-width: 960px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.logo b { color: var(--primary); font-weight: inherit; }
.top nav { display: flex; gap: 14px; }
.top nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover { color: var(--primary); }
@media (max-width: 400px) { .top nav { gap: 10px; } .top nav a { font-size: 14px; } .logo { font-size: 18px; } }
@media (max-width: 360px) { .logo img { display: none; } }
main { max-width: 700px; margin: 0 auto; padding: 20px 16px 40px; }
footer { text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px 40px; border-top: 1px solid var(--border); }
footer a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-bottom: 10px; }
.disclosure { font-size: 13px; color: var(--muted); max-width: 640px; margin: 8px auto; }

/* Typografie */
h1 { font-size: 30px; line-height: 1.15; margin: 8px 0 10px; }
h2.h1 { font-size: 30px; line-height: 1.15; margin: 8px 0 10px; }
h1, h2 { overflow-wrap: break-word; }
@media (max-width: 360px) { h1, h2.h1 { font-size: 26px; } }
h2 { font-size: 21px; margin: 28px 0 10px; }
.card h2 { font-size: 19px; margin: 0 0 6px; }
h3 { font-size: 17px; margin: 0 0 4px; }
.lead { color: var(--muted); margin: 0 0 20px; font-size: 17px; }
article p, article li { font-size: 17px; }
.hint, .opt { color: var(--muted); font-size: 14px; font-weight: 400; margin: 0 0 8px; }

/* Formulare und Knöpfe */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
label { display: block; font-weight: 600; font-size: 14px; margin: 10px 0 0; }
input, textarea, select {
  width: 100%; margin-top: 4px; padding: 11px 12px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--gold); border-color: transparent; }
textarea { min-height: 70px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }
.person { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.person input { margin: 0; }
.icon-btn {
  flex: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--card); color: var(--muted); font-size: 18px; cursor: pointer;
}
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: inherit; font-weight: 700; border-radius: 12px; cursor: pointer; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #fff; border: 0; padding: 12px 18px; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-secondary { background: var(--soft); color: var(--text); border: 1px solid var(--border); padding: 9px 14px; font-weight: 600; }
.big { width: 100%; font-size: 18px; padding: 15px; }
.excl-add { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.excl-add select { margin: 0; }
.excl-add .btn-secondary { grid-column: 1 / -1; }
.excl { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; background: var(--soft); border-radius: 10px; margin-bottom: 6px; }
.error { background: #fde8e8; color: #8a1c1c; border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.privacy-note { text-align: center; color: var(--muted); font-size: 14px; }
/* Werbeflächen: ausgeblendet, bis AdSense eingebaut ist – dann display: flex setzen */
.ad-slot {
  display: none !important;
  margin: 22px 0; min-height: 100px; border: 2px dashed var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px;
}

/* Ergebnis und geheimer Link */
.links { list-style: none; padding: 0; margin: 0; }
.links li { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 10px; }
.links .who { font-weight: 700; margin-bottom: 8px; }
.links .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.links .actions a, .links .actions button { flex: 1 1 auto; }
.wa { background: #157a42; color: #fff; border: 0; }
.tip { background: var(--soft); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; margin: 14px 0; }
.reveal { text-align: center; }
.reveal .hello { font-size: 26px; font-weight: 800; margin: 6px 0; }
.secret { margin: 18px 0 6px; animation: pop .5s ease-out; }
.target { font-size: 38px; font-weight: 900; color: var(--primary); margin: 4px 0; word-break: break-word; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
dl.info { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; text-align: left; margin: 16px 0 0; }
dl.info dt { color: var(--muted); }
dl.info dd { margin: 0; font-weight: 600; }
.ideas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ideas a { display: block; padding: 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.ideas a span { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.more-link { display: inline-block; margin-top: 10px; font-weight: 700; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }
.confetti { position: fixed; top: -12px; width: 10px; height: 14px; z-index: 50; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }
@media (prefers-reduced-motion: reduce) { .secret, .confetti { animation: none; } .confetti { display: none; } }

/* Wichtel-Figur */
.hero { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hero .mascot { flex: none; width: 96px; height: auto; transform-origin: 50% 100%; animation: wave 7s ease-in-out 1.5s infinite; }
/* alle 7 s einmal kurz hin und her schaukeln, sonst Ruhe */
@keyframes wave { 0%, 12%, 100% { transform: rotate(0); } 3% { transform: rotate(-7deg); } 6% { transform: rotate(6deg); } 9% { transform: rotate(-3deg); } }
@media (max-width: 420px) { .hero .mascot { width: 68px; } }
.mascot-reveal { display: block; width: 90px; height: auto; margin: 0 auto 4px; }
.cta-box .mascot-small { flex: none; width: 44px; height: auto; }
.cta-box .cta-text { display: flex; align-items: center; gap: 12px; flex: 1 1 260px; }
.hop { animation: hop .45s ease-in-out 3; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@media (prefers-reduced-motion: reduce) { .hop, .hero .mascot { animation: none; } }

/* Geschenkfinder */
.finder .f-search { margin: 0; }
.f-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.f-label { width: 100%; font-weight: 700; font-size: 14px; }
.chip {
  padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  color: var(--text); font: inherit; font-weight: 600; font-size: 14px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.f-foot { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }
.f-amazon { background: var(--soft); border-radius: var(--radius); padding: 12px 14px; font-weight: 600; }
.idea .tags { font-size: 13px; color: var(--muted); margin: 0 0 8px; flex: 0; }
.more-link + .more-link { display: block; }
.diy h3 { margin-top: 14px; }
.diy-links { font-size: 15px; }

/* Ratgeber-Seiten */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.chips a { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.chips a[aria-current="page"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.idea { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; }
.idea p { margin: 0 0 10px; color: var(--muted); font-size: 15px; flex: 1; }
.idea a { font-weight: 700; text-decoration: none; font-size: 15px; }
.cta-box { background: var(--soft); border-radius: var(--radius); padding: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0; }
.cta-box p { margin: 0; font-weight: 600; }
table.rules { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
table.rules td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 17px; }
table.rules tr:last-child td { border-bottom: 0; }
table.rules td.num { width: 56px; text-align: center; font-size: 26px; font-weight: 800; color: var(--primary); }
.list-cols { columns: 2 220px; column-gap: 24px; padding-left: 20px; }
.list-cols li { break-inside: avoid; margin-bottom: 4px; }
.placeholder { background: #fff3cd; color: #664d03; padding: 0 4px; border-radius: 4px; }
.draft-note { background: #fff3cd; color: #664d03; border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }

@media print {
  .top, footer, .no-print, .ad-slot, .cta-box, .chips { display: none !important; }
  body { background: #fff; color: #000; }
  main { max-width: none; padding: 0; }
  table.rules, .card { border: 1px solid #999; }
  table.rules td.num { color: #000; }
}
/* Brotkrumen */
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.crumbs a { color: var(--muted); }
/* So funktioniert's */
.how ol { padding-left: 22px; }
.how li { margin-bottom: 8px; }
/* Antippziele mindestens 44 px (Handy) */
.top .bar { padding-top: 4px; padding-bottom: 4px; }
.top nav a { display: inline-block; padding: 11px 4px; }
.chip { min-height: 44px; }
.faq summary { padding: 10px 0; margin: -10px 0; }
.footer-links { gap: 0 12px; }
.footer-links a { display: inline-block; padding: 12px 2px; }
.idea a, .crumbs a { display: inline-block; padding: 11px 0; margin: -11px 0; }
.link-btn { padding: 11px 0; }
.logo { padding: 8px 0; }
.chips a { display: inline-flex; align-items: center; min-height: 44px; }
.icon-btn { min-width: 44px; min-height: 44px; }
/* nur für Screenreader/Gliederung sichtbar */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.more-link { display: inline-block; padding: 9px 0; }

/* ---------- Weihnachts-Design ---------- */
@font-face { font-family: 'Fredoka'; src: url(/assets/fonts/fredoka-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
h1, h2, h3, .logo span, .reveal .hello, .target { font-family: 'Fredoka', system-ui, sans-serif; font-weight: 600; }
/* Streifen Rot–Gold–Grün und Lichterkette am Kopf */
.top::before { content: ''; display: block; height: 5px; background: linear-gradient(90deg, var(--primary) 0 33.3%, var(--gold) 33.3% 66.6%, var(--green) 66.6%); }
.top::after { content: ''; display: block; height: 26px; margin-bottom: -26px; position: relative; z-index: 2; pointer-events: none;
  background: url(/grafik/lichterkette.svg) repeat-x 0 0 / 160px 26px; }
main { padding-top: 38px; }
/* goldene Linie unter der Hauptüberschrift, goldene Kartenkante */
article > h1::after, .hero h1::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 2px; background: var(--gold); margin-top: 10px; }
.card { border-top: 3px solid var(--gold); }
/* Winterlandschaft über dem Fuß */
footer { position: relative; margin-top: 70px; border-top: 0; background: #fff; }
footer::before { content: ''; position: absolute; left: 0; right: 0; top: -66px; height: 70px; pointer-events: none;
  background: url(/grafik/winterland.svg) repeat-x bottom / 600px 70px; }
/* Schnee: Gold- und Rotpunkte hinter dem Inhalt, blockiert keine Klicks */
body::after { content: ''; position: fixed; left: 0; right: 0; top: -240px; height: calc(100vh + 240px); z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 20px 30px, rgba(242,183,5,.55) 0 1.6px, transparent 2.4px),
    radial-gradient(circle at 130px 90px, rgba(198,40,40,.25) 0 1.4px, transparent 2.2px),
    radial-gradient(circle at 200px 170px, rgba(242,183,5,.45) 0 1.8px, transparent 2.6px),
    radial-gradient(circle at 80px 210px, rgba(31,111,74,.22) 0 1.4px, transparent 2.2px);
  background-size: 240px 240px; animation: snow 30s linear infinite; will-change: transform; }
@keyframes snow { to { transform: translateY(240px); } }
/* Zuckerstangen-Rand */
.cta-box, .candy { position: relative; }
.cta-box { padding-top: 22px; }
.cta-box::before, .candy::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: var(--radius) var(--radius) 0 0;
  background: repeating-linear-gradient(135deg, var(--primary) 0 10px, #fff 10px 16px); }
.card.candy { border-top: 0; padding-top: 22px; }
/* goldene Nummernkreise bei „So funktioniert's“ */
.how ol { list-style: none; padding-left: 0; counter-reset: schritt; }
.how li { counter-increment: schritt; position: relative; padding-left: 46px; min-height: 34px; margin-bottom: 12px; }
.how li::before { content: counter(schritt); position: absolute; left: 0; top: -3px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--gold); color: var(--text); font: 600 18px/34px 'Fredoka', system-ui, sans-serif; text-align: center; }
/* größerer Wichtel */
.hero .mascot { width: 118px; }
@media (max-width: 420px) { .hero .mascot { width: 92px; } }
@media (prefers-reduced-motion: reduce) { body::after { display: none; } }
@media print { body::after, .top::after, footer::before { display: none !important; } main { padding-top: 0; } }
/* Wichtel neben Überschriften */
.page-mascot { float: right; width: 84px; height: auto; margin: 0 0 8px 12px; }
@media (max-width: 420px) { .page-mascot { width: 70px; } }
.mascot-reveal { width: 110px; }
.chip .ico { margin-right: 6px; }
/* verspielter: Kinder-Seite */
.verspielt main h1 { color: var(--primary); }
.verspielt main h2::before { content: '★ '; color: var(--gold); }
.verspielt .idea { position: relative; overflow: hidden; padding-top: 18px; }
.verspielt .idea::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(135deg, var(--primary) 0 8px, #fff 8px 13px); }
