/* einschlafgeschichte.de: night-sky look. Component style adapted from santa-video-generator (btn-gold, chip,
   field, opt-card, pm-badge, il outline icons). Tailwind CDN handles layout utilities. */
:root {
    --night: #1b1f3b; --night-2: #262b55; --night-3: #333a70;
    --gold: #f2c65a; --gold-l: #f8de95; --cream: #fff6e6; --lilac: #b9a6f0; --ink: #2a2340;
    --surface: #fbf8f2;
}
body { font-family: 'Inter', system-ui, sans-serif; background: var(--surface); color: #2b2838; }
.font-display { font-family: 'Fraunces', Georgia, serif; letter-spacing: -.01em; }

/* ---------- sky ---------- */
.sky {
    background:
        radial-gradient(1.6px 1.6px at 8% 22%, rgba(255,255,255,.8) 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 22% 64%, rgba(255,255,255,.55) 50%, transparent 51%),
        radial-gradient(2px 2px at 37% 14%, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 54% 40%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(1.8px 1.8px at 68% 78%, rgba(255,255,255,.6) 50%, transparent 51%),
        radial-gradient(1.4px 1.4px at 83% 30%, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(2px 2px at 93% 66%, rgba(255,255,255,.55) 50%, transparent 51%),
        radial-gradient(1.2px 1.2px at 46% 88%, rgba(255,255,255,.5) 50%, transparent 51%),
        radial-gradient(ellipse at 75% 10%, rgba(185,166,240,.22), transparent 55%),
        linear-gradient(180deg, #141834 0%, var(--night) 45%, var(--night-2) 100%);
    color: #fff;
}
.wave { display: block; width: 100%; height: 44px; }
@media (min-width: 768px) { .wave { height: 64px; } }

/* ---------- illustrations ---------- */
.il { display: block; overflow: visible; }
.th-ico { width: 56px; height: 56px; display: block; transition: transform .25s cubic-bezier(.3,1.5,.5,1); }
.th-ico > svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hov { -webkit-tap-highlight-color: transparent; }
.hov:hover .th-ico, .hov:focus-visible .th-ico { transform: translateY(-3px) scale(1.07); }
.hov-self:hover { transform: scale(1.04); }
.hero-scene { width: 100%; max-width: 480px; height: auto; overflow: visible; }
.hero-scene .tw path { animation: twinkle 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.hero-scene .tw path:nth-child(2) { animation-delay: .8s; } .hero-scene .tw path:nth-child(3) { animation-delay: 1.6s; }
.hero-scene .tw path:nth-child(4) { animation-delay: 2.4s; }
.hero-scene .cloud-bob { animation: bob 6s ease-in-out infinite; }
.hero-scene .zzz text { animation: zzz 4s ease-in-out infinite; opacity: 0; }
.hero-scene .zzz text:nth-child(2) { animation-delay: .6s; } .hero-scene .zzz text:nth-child(3) { animation-delay: 1.2s; }
@keyframes twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes zzz { 0% { opacity: 0; transform: translateY(8px); } 30%, 70% { opacity: .9; } 100% { opacity: 0; transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) {
    .hero-scene .tw path, .hero-scene .cloud-bob { animation: none; }
    .hero-scene .zzz text { animation: none; opacity: .8; }
}
.logo-mark { width: 30px; height: 30px; flex: none; }

/* ---------- buttons ---------- */
.btn-gold {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: linear-gradient(90deg, #f2c65a, #f8de95); color: #1b1f3b;
    font-weight: 700; border-radius: .8rem; transition: transform .15s, box-shadow .15s;
    box-shadow: 0 14px 28px -12px rgba(242, 198, 90, .65);
}
.btn-gold:hover { transform: translateY(-1px) scale(1.02); }
.btn-night {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    background: linear-gradient(135deg, var(--night-3), var(--night)); color: #fff; font-weight: 700;
    border-radius: .8rem; transition: transform .15s; box-shadow: 0 10px 22px -10px rgba(27, 31, 59, .8);
}
.btn-night:hover { transform: translateY(-1px); }
.btn-line {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600;
    border: 1.6px solid #e3ddd0; background: #fff; color: #2b2838; border-radius: .8rem; transition: border-color .15s;
}
.btn-line:hover { border-color: #c9bfae; }
.btn-gold:disabled, .btn-night:disabled, .btn-line:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.nav-cta { border-radius: .55rem; }

/* ---------- wizard ---------- */
.field {
    width: 100%; border: 1.6px solid #e3ddd0; border-radius: .8rem; padding: .8rem 1rem; font-size: 1rem;
    background: #fff; transition: border-color .15s, box-shadow .15s; color: #1c1917;
}
.field:focus { outline: none; border-color: var(--night-3); box-shadow: 0 0 0 4px rgba(51, 58, 112, .12); }
.field.err { border-color: #dc2626; }
.chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .95rem; border-radius: 999px;
    border: 1.6px solid #e3ddd0; background: #fff; font-size: .92rem; font-weight: 500; color: #44403c;
    cursor: pointer; transition: all .15s; user-select: none;
}
.chip:hover { border-color: #c9bfae; }
.chip.on { border-color: var(--night-3); background: #eef0fb; color: var(--night); }
.chip.on::before { content: '✓'; font-weight: 700; }
.opt-card {
    border: 1.6px solid #e3ddd0; border-radius: 1rem; padding: .9rem .6rem .8rem; background: #fff; cursor: pointer;
    text-align: center; font-weight: 600; color: #3a3550; transition: all .15s; display: flex; flex-direction: column;
    align-items: center; gap: .45rem; font-size: .9rem; line-height: 1.2;
}
.opt-card:hover { border-color: #c9bfae; transform: translateY(-2px); }
.opt-card.on { border-color: var(--night-3); background: #eef0fb; box-shadow: 0 0 0 3px rgba(51, 58, 112, .15); }
.opt-card.on .th-ico { animation: wiggle .6s ease; }
.opt-card { position: relative; }
.opt-card:hover { box-shadow: 0 10px 24px -14px rgba(27, 31, 59, .45); }
.opt-card:focus-visible { outline: 3px solid rgba(51, 58, 112, .35); outline-offset: 2px; }
.opt-card .th-ico { width: 64px; height: 64px; }
.opt-card.on::after { content: '✓'; position: absolute; top: .45rem; right: .55rem; width: 1.35rem; height: 1.35rem;
    border-radius: 99px; background: var(--night-3); color: #fff; font-size: .75rem; font-weight: 700;
    display: grid; place-items: center; animation: pop .3s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { from { transform: scale(0); } }
.gender-card { padding: 1.4rem 1rem 1.1rem; gap: .7rem; }
.gender-card .th-ico { width: 120px; height: 120px; }
.gender-card:hover { transform: translateY(-4px); }
.age-chip { width: 3rem; height: 3rem; justify-content: center; padding: 0; font-weight: 700; font-size: 1.02rem; }
.age-chip.on::before { content: none; }
.age-chip:hover { transform: translateY(-3px) rotate(-4deg); border-color: var(--lilac); }
.age-chip.on { background: var(--night-3); color: #fff; border-color: var(--night-3); animation: pop .3s cubic-bezier(.3,1.6,.5,1); }
.topic-chip:hover { transform: translateY(-2px); border-color: var(--lilac); background: #f7f4ff; }
.voice-card { flex-direction: row; align-items: center; gap: 1rem; }
.voice-card .th-ico { width: 64px; height: 64px; }
.step-card { transition: transform .2s, box-shadow .2s; }
.step-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(27, 31, 59, .5); }
.usp-card { transition: transform .2s, background .2s, border-color .2s; }
.usp-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .09); border-color: rgba(248, 222, 149, .35); }
@keyframes wiggle { 30% { transform: rotate(-8deg) scale(1.08); } 60% { transform: rotate(6deg) scale(1.04); } }
.voice-card { text-align: left; align-items: flex-start; padding: 1rem 1.1rem; }
.step { animation: stepIn .35s ease both; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } }
.progress { height: 6px; border-radius: 99px; background: #ebe5d8; overflow: hidden; }
.progress > div { height: 100%; background: linear-gradient(90deg, var(--night-3), var(--lilac)); transition: width .35s ease; }

/* ---------- cards ---------- */
.card { background: #fff; border-radius: 1.25rem; box-shadow: 0 1px 0 rgba(0,0,0,.03), 0 18px 40px -26px rgba(27,31,59,.35); border: 1px solid #efe9dc; }
.pay-box { border: 2px solid var(--gold); }
.pm-badge { height: 1.75rem; width: 2.7rem; flex: none; border-radius: .35rem; background: #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }

/* ---------- YouTube example (click to load) ---------- */
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 1rem; overflow: hidden; background: var(--night) center/cover no-repeat; cursor: pointer; }
.yt::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10,12,30,.7)); }
.yt .yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 62px; height: 62px; border-radius: 50%;
    background: rgba(242, 198, 90, .95); color: var(--night); display: grid; place-items: center; z-index: 1; transition: transform .15s; }
.yt:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); }
.yt .yt-title { position: absolute; left: .9rem; right: .9rem; bottom: .7rem; color: #fff; font-weight: 600; font-size: .92rem; z-index: 1; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }

/* ---------- waiting state ---------- */
.moon-spin { width: 72px; height: 72px; animation: bob 2.6s ease-in-out infinite; }
.dots span { animation: blink 1.4s infinite both; } .dots span:nth-child(2) { animation-delay: .2s; } .dots span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }

/* ---------- prose (blog, legal, story) ---------- */
.prose-b { font-size: 1.06rem; line-height: 1.75; color: #3a3550; }
.prose-b h2 { font-family: 'Fraunces', Georgia, serif; font-size: 1.45rem; font-weight: 700; color: var(--night); margin: 2rem 0 .6rem; }
.prose-b p { margin: 0 0 1rem; }
.prose-b ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1rem; }
.prose-b a { color: var(--night-3); text-decoration: underline; }
/* statistics articles (content/blog_html): same building blocks as the exam sites' "Statistiken" posts */
.stat-post > * { max-width: 46rem; }
.stat-post .post-date { color: #7a7590; font-size: .9rem; }
.stat-post h3 { font-family: 'Fraunces', Georgia, serif; font-size: 1.18rem; font-weight: 700; color: var(--night); margin: 1.6rem 0 .4rem; scroll-margin-top: 90px; }
.stat-post h2 { scroll-margin-top: 90px; }
.stat-post ol { list-style: decimal; padding-left: 1.3rem; margin: 0 0 1rem; }
.stat-post .stat-num { display: inline-grid; place-items: center; min-width: 1.9em; height: 1.9em; padding: 0 .35em; margin-right: .5em; border-radius: 10px; background: var(--night-3); color: var(--gold-l); font-family: 'Inter', system-ui, sans-serif; font-size: .78em; vertical-align: .12em; }
.stat-post sup.fn { line-height: 0; }
.stat-post sup.fn a { padding: 0 .2em; margin-left: 1px; font-size: .78em; font-weight: 700; color: #a07a1e; text-decoration: none; }
.stat-post .summary-box { background: var(--cream); border: 1px solid #efdcb4; border-radius: 18px; padding: 18px 24px 6px; margin: 1.6em 0 2em; }
.stat-post .summary-box h2 { margin-top: 0; font-size: 1.2rem; }
.stat-post .toc-box { background: #fff; border: 1px solid #e6e1f0; border-radius: 18px; padding: 18px 24px 8px; margin: 1.6em 0 2em; }
.stat-post .toc-box strong { display: block; font-family: 'Fraunces', Georgia, serif; color: var(--night); margin-bottom: 6px; }
.stat-post .toc-box a { text-decoration: none; }
.stat-post .take { margin: 1.8em 0; padding: 18px 22px; background: #eef0fb; border-left: 4px solid var(--night-3); border-radius: 14px; }
.stat-post .take p:last-child { margin-bottom: 0; }
.stat-post .take-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--night-3); margin-bottom: .3em !important; }
.stat-post .cite-box { background: var(--cream); border: 1px solid #efdcb4; border-radius: 18px; padding: 20px 24px; margin: 2.4em 0; }
.stat-post .cite-box > strong { display: block; font-family: 'Fraunces', Georgia, serif; font-size: 1.15rem; color: var(--night); margin-bottom: 4px; }
.stat-post .cite-box > p { margin: 0 0 14px; color: #6f6a85; font-size: .95rem; }
.stat-post .cite-row { margin-bottom: 12px; }
.stat-post .cite-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a07a1e; }
.stat-post .cite-head button { font: inherit; font-size: .75rem; letter-spacing: 0; text-transform: none; padding: 4px 11px; border: 1.5px solid var(--night-3); border-radius: 8px; background: #fff; color: var(--night); cursor: pointer; }
.stat-post .cite-text { margin: 0; padding: 10px 12px; background: #fff; border: 1px solid #ece6d6; border-radius: 10px; font-size: .85rem; line-height: 1.55; overflow-wrap: anywhere; }
.stat-post code.cite-text { display: block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem; }
.stat-post ol.sources { list-style: none; padding: 0; margin: 1em 0 2em; display: grid; gap: 6px; counter-reset: src; }
.stat-post ol.sources li { counter-increment: src; scroll-margin-top: 90px; }
.stat-post ol.sources a { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: #fff; border: 1px solid #e6e1f0; border-radius: 12px; color: #2b2838; font-size: .95rem; text-decoration: none; overflow-wrap: anywhere; }
.stat-post ol.sources a::before { content: counter(src); display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; flex: none; border-radius: 9px; background: var(--night-3); color: var(--gold-l); font-weight: 700; font-size: .8rem; }
.stat-post ol.sources a:hover, .stat-post ol.sources li:target a { border-color: var(--night-3); }
.stat-post ol.sources a span { color: #7a7590; margin-left: auto; font-size: .88em; white-space: nowrap; }
@media (max-width: 560px) { .stat-post ol.sources a span { display: none; } }
.story-text p { font-family: 'Fraunces', Georgia, serif; font-size: 1.18rem; line-height: 1.85; color: #2b2838; margin: 0 0 1.1rem; }

/* ---------- faq ---------- */
details.faq { border-bottom: 1px solid #ebe5d8; }
details.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 0; font-weight: 600; display: flex; justify-content: space-between; gap: 1rem; color: var(--night); }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: #8a85a0; transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-a { padding: 0 0 1.1rem; color: #57526a; line-height: 1.65; }
details.faq .faq-wrap { overflow: hidden; }
details.faq summary { transition: color .15s; }
details.faq summary:hover { color: var(--night-3); }

@media (prefers-reduced-motion: reduce) {
    .th-ico, .opt-card, .chip, .step-card, .usp-card { transition: none !important; animation: none !important; }
}

@media print {
    nav, footer, .no-print { display: none !important; }
    body { background: #fff; }
    .story-text p { font-size: 13pt; }
}

/* icons on the dark sky: soft light disc behind them so the ink outline still reads */
.usp-card .th-ico { border-radius: 50%; padding: 8px; background: radial-gradient(circle, rgba(255, 246, 230, .22) 0 58%, rgba(255, 246, 230, 0) 70%); }

/* ---------- small motion: smooth anchors, moon wiggle, payment lift ---------- */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.logo-link .logo-mark { transform-origin: 50% 55%; }
.logo-link:hover .logo-mark, .logo-link:focus-visible .logo-mark { animation: moon-wiggle .7s ease-in-out; }
@keyframes moon-wiggle { 0%,100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 45% { transform: rotate(12deg); }
    70% { transform: rotate(-6deg); } 85% { transform: rotate(3deg); } }
.pm-badge { transition: transform .2s ease, box-shadow .2s ease; }
.pm-badge:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(0,0,0,.08), 0 6px 12px -4px rgba(0,0,0,.35); }
/* Home "Erzähl uns von deinem Kind" card: stacked questions, progressive focus (q-cur lit, later blocks q-dim) */
.who-card { background: #f1eee8; box-shadow: inset 0 0 0 1px rgba(42,35,64,.06); }
.q-block { padding-top: .95rem; margin-top: .95rem; border-top: 1px solid rgba(42,35,64,.09); transition: opacity .3s, filter .3s; }
.q-block.q-dim { opacity: .42; filter: grayscale(.55); }
.q-block.q-dim:hover, .q-block.q-dim:focus-within { opacity: .75; }
.q-title { display: flex; align-items: center; gap: .55rem; margin-bottom: .65rem; font-family: 'Fraunces', Georgia, serif;
    font-weight: 700; font-size: 1.2rem; line-height: 1.25; color: var(--night); }
.q-num { flex: none; width: 1.6rem; height: 1.6rem; border-radius: 99px; display: grid; place-items: center; font-family: 'Inter', system-ui, sans-serif;
    font-size: .8rem; font-weight: 800; background: #fff; color: var(--night-3); box-shadow: inset 0 0 0 1.6px #d9d1c4; transition: background .25s, color .25s, box-shadow .25s; }
.q-cur .q-num { background: var(--gold); color: var(--night); box-shadow: 0 0 0 4px rgba(242,198,90,.28); animation: pop .3s cubic-bezier(.3,1.6,.5,1); }
.q-done .q-num { background: var(--night-3); color: transparent; box-shadow: none; position: relative; }
.q-done .q-num::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .78rem; }
.who-card .field { background-color: #fff; }
.who-name { max-width: 28rem; padding: .7rem 1rem; }
.pic-opt { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem;
    padding: .6rem .5rem .55rem; border: 1.6px solid #e7e0d6; border-radius: 1rem; background: #fff; cursor: pointer;
    font-weight: 600; font-size: .92rem; line-height: 1.2; color: #3d3852; text-align: center; user-select: none;
    transition: transform .2s, border-color .2s, background .2s, box-shadow .2s; }
.pic-opt:hover { transform: translateY(-3px); border-color: #d6c9b8; box-shadow: 0 8px 18px -12px rgba(27,31,59,.35); }
.pic-opt:focus-visible { outline: 3px solid rgba(51,58,112,.35); outline-offset: 2px; }
.pic-opt.on { border-color: var(--night-3); background: #eef0fb; color: var(--night); }
.pic-opt.on::after { content: '✓'; position: absolute; top: .35rem; right: .4rem; width: 1.2rem; height: 1.2rem; border-radius: 9999px;
    background: var(--night-3); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.kid-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; max-width: 34rem; }
@media (min-width: 640px) { .kid-pick { gap: .75rem; } }
.kid-opt .th-ico { width: 52px; height: 52px; }
@media (min-width: 640px) { .kid-opt .th-ico { width: 60px; height: 60px; } }
.kid-many { border-style: dashed; border-color: #cfc4b2; background: rgba(255,255,255,.6); }
.kid-many.on { border-style: solid; }
.pic-opt:hover .th-ico, .pic-opt.play .th-ico { transform: translateY(-3px) scale(1.07); }
.age-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .4rem; }
@media (min-width: 640px) { .age-grid { gap: .55rem; } }
@media (min-width: 1024px) { .age-grid { gap: .6rem; } .age-opt .age-svg { max-width: 5.4rem; } }
.age-opt { padding: .35rem .2rem; border-radius: .8rem; }
.age-opt .age-svg { width: 100%; max-width: 4.6rem; height: auto; overflow: visible; transform-box: fill-box; transform-origin: 50% 60%; }
.age-opt.on::after { top: -.35rem; right: -.35rem; width: 1.05rem; height: 1.05rem; font-size: .6rem; }
.age-opt:hover .age-svg, .age-opt.play .age-svg { animation: ageWiggle .55s ease-in-out; }
@keyframes ageWiggle { 0%, 100% { transform: rotate(0) scale(1); } 30% { transform: rotate(-7deg) scale(1.1); } 65% { transform: rotate(5deg) scale(1.05); } }
.btn-quiz { min-width: min(100%, 24rem); }
.q-submit.q-dim { opacity: .6; filter: grayscale(.35); }
.who-usps { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.2rem; margin-top: .75rem; font-size: .82rem; color: #57526a; }
.who-usps li { display: inline-flex; align-items: center; gap: .35rem; }
.who-usps svg { width: 1rem; height: 1rem; color: var(--night-3); flex: none; }
@media (prefers-reduced-motion: reduce) { .age-opt:hover .age-svg, .age-opt.play .age-svg { animation: none; } .q-block { transition: none; } }

/* "Mehrere Kinder" mini table (partials/kids_table.html), home card and /start/ step 1 */
.kid-rows { display: grid; gap: .45rem; }
.kid-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "name name del" "age g g"; gap: .4rem;
    padding: .45rem; border-radius: .9rem; background: rgba(255,255,255,.55); box-shadow: inset 0 0 0 1px rgba(42,35,64,.07); }
.kid-row .field { padding: .5rem .75rem; font-size: .95rem; border-radius: .65rem; }
.kid-name { grid-area: name; }
.kid-del { grid-area: del; width: 2.1rem; border-radius: .6rem; font-size: 1.35rem; line-height: 1; color: #8a85a0; transition: color .15s, background .15s; }
.kid-del:hover:not(:disabled) { color: #b91c1c; background: #fff; }
.kid-del:disabled { opacity: .25; cursor: default; }
.kid-age { grid-area: age; width: auto; min-width: 6.4rem; cursor: pointer; -webkit-appearance: none; appearance: none;
    padding-right: 2.2rem !important; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232a2340' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right .8rem center; background-size: .7rem; }
.kid-g { grid-area: g; display: inline-flex; border-radius: .65rem; background: #fff; box-shadow: inset 0 0 0 1.6px #e3ddd0; padding: 2px; }
.kid-g.err { box-shadow: inset 0 0 0 1.6px #dc2626; }
.kid-g button { flex: 1; padding: .38rem .7rem; border-radius: .5rem; font-size: .88rem; font-weight: 600; color: #57526a; transition: background .15s, color .15s; }
.kid-g button:hover { color: var(--night); }
.kid-g button.on { background: var(--night-3); color: #fff; }
.kid-g button:focus-visible, .kid-del:focus-visible, .kid-add:focus-visible { outline: 3px solid rgba(51,58,112,.35); outline-offset: 1px; }
@media (min-width: 640px) {
    .kid-row { grid-template-columns: minmax(0, 1fr) 7rem auto auto; grid-template-areas: "name age g del"; padding: .35rem; }
}
.kid-add { margin-top: .5rem; font-size: .9rem; font-weight: 600; color: var(--night-3); text-decoration: underline; text-underline-offset: 3px; border-radius: .4rem; }
.kid-add:hover { color: var(--night); }
/* /start/ step 1 with three cards (Mädchen, Junge, Mehrere Kinder) */
.gender-3 .gender-card { padding: 1rem .5rem .85rem; gap: .5rem; }
.gender-3 .gender-card .th-ico { width: 72px; height: 72px; }
@media (min-width: 640px) { .gender-3 .gender-card .th-ico { width: 100px; height: 100px; } }
.gender-3 .kid-many.on { border-style: solid; }

/* Hover bridge: cards lift on hover; without this the cursor at the bottom edge leaves the lifted card,
   hover ends, the card drops back under the cursor and the effect flickers in a loop. The invisible strip
   below a hovered card keeps the hover alive until the cursor really leaves. */
.step-card, .usp-card, .chip, .pm-badge { position: relative; }
.pic-opt:hover::before, .opt-card:hover::before, .step-card:hover::before, .usp-card:hover::before, .pm-badge:hover::before,
.chip:hover::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 10px; }

/* theme names on /start/: long ones are set smaller so they fit a 3-column phone grid; hyphenate as last resort */
.th-name { display: block; max-width: 100%; line-height: 1.2; overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 639px) { [data-pick="theme"] .opt-card { padding-left: .3rem; padding-right: .3rem; } .th-long { font-size: .8rem; } .th-xlong { font-size: .72rem; } }

/* ---- blog: thumbnails, byline, sidebar, newsletter ---- */
.blog-thumb { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.post-hero { width: 100%; height: auto; border-radius: 1rem; box-shadow: 0 12px 32px rgba(0,0,0,.28); }
.byline { display: flex; align-items: center; gap: .75rem; color: rgba(255,255,255,.8); font-size: .95rem; }
.byline strong { color: #fff; }
.author-ava { flex: none; width: 40px; height: 40px; border-radius: 999px; background: #f2c65a; color: #1b1f3b;
  display: inline-flex; align-items: center; justify-content: center; font-family: Fraunces, serif; font-weight: 700; }
.author-ava-lg { width: 52px; height: 52px; font-size: 1.15rem; }
.post-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) {
  .post-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 3rem; align-items: start; }
  .post-side { position: sticky; top: 1.5rem; }
}
.post-side { display: flex; flex-direction: column; gap: 1.25rem; }
.side-card { background: #fff; border: 1px solid rgba(27,31,59,.08); border-radius: 1rem; padding: 1.25rem; box-shadow: 0 4px 16px rgba(27,31,59,.06); }
.side-cta { background: linear-gradient(160deg, #1b1f3b, #333a70); color: #fff; border: 0; }
.nl-input { width: 100%; border: 1px solid rgba(27,31,59,.2); border-radius: .75rem; padding: .65rem .85rem; font-size: .95rem; }
.nl-input:focus { outline: 2px solid #f2c65a; border-color: transparent; }
.side-post { display: flex; gap: .75rem; align-items: center; margin-top: .85rem; font-size: .9rem; font-weight: 600; color: #1b1f3b; line-height: 1.3; }
.side-post img { flex: none; width: 96px; height: 54px; border-radius: .5rem; }
.side-post:hover span { text-decoration: underline; }
