/* Rombalu – parents view, landing, item pages, print.
   Design from the concept mockup: school-notebook grid paper, ink blue,
   hard shadows, Grandstander for headings, Atkinson Hyperlegible for text. */

@font-face { font-family: 'Atkinson Hyperlegible Next Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/atkinson/atkinson-hyperlegible-next-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Atkinson Hyperlegible Next Variable'; font-style: normal; font-display: swap; font-weight: 200 800; src: url(/fonts/atkinson/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Grandstander Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/grandstander/grandstander-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Grandstander Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/grandstander/grandstander-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Playwrite AT Variable'; font-style: normal; font-display: swap; font-weight: 100 400; src: url(/fonts/playwrite/playwrite-at-fallback-wght-normal.woff2) format('woff2-variations'); }
/* school handwriting of the other languages (French cursive on Seyès, British joined, Spanish letra ligada), loaded only when a sheet uses it */
@font-face { font-family: 'Playwrite FR Trad Variable'; font-style: normal; font-display: swap; font-weight: 100 400; src: url(/fonts/playwrite-fr/playwrite-fr-trad-fallback-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Playwrite GB J Variable'; font-style: normal; font-display: swap; font-weight: 100 400; src: url(/fonts/playwrite-gb/playwrite-gb-j-fallback-wght-normal.woff2) format('woff2-variations'); }
@font-face { font-family: 'Playwrite ES Variable'; font-style: normal; font-display: swap; font-weight: 100 400; src: url(/fonts/playwrite-es/playwrite-es-fallback-wght-normal.woff2) format('woff2-variations'); }

:root {
  --ink: #1E2A44; --ink-2: #4A5673; --muted: #6B7690;
  --tinte: #2F5BD3; --tinte-dark: #2248AE; --karo: #DCE7F6; --paper: #FFFFFF;
  --sun: #FFCB3D; --cherry: #EF5361; --grass: #4DBF6A; --sky: #45AEF0; --plum: #9A6BEF; --orange: #FF9A3C;
  --pink: #FF8CC6; --mint: #3CCBB4; --lime: #A6DC5B;
  --page: #FFF4CC; --bg: #F7F9FD;
  --kid: 'Grandstander Variable', 'Comic Sans MS', system-ui, sans-serif;
  --text: 'Atkinson Hyperlegible Next Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --r: 14px; --shadow: 4px 4px 0 var(--ink); --shadow-soft: 0 2px 10px rgb(30 42 68 / .12);
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
/* no zooming the page with two fingers or a double tap (a child zoomed into a game and could not get out) */
html { -webkit-text-size-adjust: 100%; touch-action: pan-x pan-y; }
body { margin: 0; font: 17px/1.5 var(--text); color: var(--ink); background: var(--bg); min-height: 100dvh; }
img { max-width: 100%; }
a { color: var(--tinte); }
a:hover { color: var(--tinte-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--tinte); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; }
h1 { font: 800 clamp(26px, 3.2vw, 38px)/1.1 var(--kid); letter-spacing: .005em; }
h2 { font: 800 clamp(20px, 2.2vw, 25px)/1.15 var(--kid); }
[hidden] { display: none !important; }
.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; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 15px; }
.linklike { background: none; border: 0; padding: 0; color: var(--tinte); text-decoration: underline; }
.hp { position: absolute; left: -9999px; }
.karo { background-color: var(--paper); background-image: linear-gradient(var(--karo) 1px, transparent 1px), linear-gradient(90deg, var(--karo) 1px, transparent 1px); background-size: 22px 22px; }

/* ------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.2; transition: transform .08s, box-shadow .08s; box-shadow: 3px 3px 0 var(--ink); }
.btn:hover { color: var(--ink); background: #F3F6FC; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--tinte); color: #fff; }
.btn-primary:hover { background: var(--tinte-dark); color: #fff; }
.btn-ghost { box-shadow: none; }
.btn-ghost:active { transform: none; }
.btn-lg { min-height: 52px; padding: 12px 22px; font-size: 18px; }
.btn-small { min-height: 36px; padding: 5px 12px; font-size: 15px; box-shadow: none; }
.btn .badge, .badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--sun); color: var(--ink); font-size: 13px; font-weight: 800; border: 1.5px solid var(--ink); }
.btn[aria-pressed="true"] { background: var(--grass); color: var(--ink); }
.btn .when-on { display: none; } .btn[aria-pressed="true"] .when-on { display: inline; } .btn[aria-pressed="true"] svg.when-on { display: block; } .btn[aria-pressed="true"] .when-off { display: none; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 2px solid transparent; background: none; color: var(--ink); }
.icon-btn:hover { background: #EEF2FA; }
.icon-btn svg { width: 22px; height: 22px; }

/* ------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; min-height: var(--header-h); padding: 8px clamp(12px, 3vw, 28px); background: var(--paper); border-bottom: 2px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-name { font: 800 26px/1 var(--kid); letter-spacing: .01em; }
.main-nav { display: flex; gap: 4px; margin-left: 10px; }
.main-nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; white-space: nowrap; }
.main-nav a:hover { background: #EEF2FA; }
.main-nav a[aria-current="page"] { background: var(--karo); }
.main-nav .nav-kids { background: var(--sun); border: 2px solid var(--ink); padding: 6px 12px; font-family: var(--kid); font-weight: 800; }
.main-nav .nav-kids:hover { background: #FFD65E; }
.main-nav .nav-short { display: none; }
/* laptops: the whole menu does not fit next to the buttons – short names, tighter links, buttons without text */
@media (min-width: 1101px) and (max-width: 1799px) {
  .main-nav { margin-left: 0; gap: 2px; }
  .main-nav a { padding-inline: 9px; }
  .main-nav .nav-long { display: none; }
  .main-nav .nav-short { display: inline; }
  .hbtn-account .hbtn-label, .hbtn-folder .hbtn-label { display: none; }
}
/* small laptops and tablets held across: the language as a flag only, a tighter menu */
@media (min-width: 1101px) and (max-width: 1300px) {
  .site-header { gap: 10px; }
  .main-nav a { padding-inline: 7px; }
  .hbtn-lang .lang-code, .hbtn-lang .lang-caret { display: none; }
}
/* the share button only has room for its label on wide screens */
@media (max-width: 1899px) { .hbtn-share .hbtn-label { display: none; } }
/* small tablets and big phones: "Kinder" instead of "Kinderansicht", buttons without text */
@media (max-width: 860px) {
  .main-nav .nav-long { display: none; }
  .main-nav .nav-short { display: inline; }
  .hbtn-account .hbtn-label { display: none; }
}
@media (max-width: 720px) { .hbtn-folder .hbtn-label { display: none; } }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.hbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 6px 12px; border-radius: 12px; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none; list-style: none; cursor: pointer; }
.hbtn::-webkit-details-marker { display: none; }
.hbtn:hover { background: #F3F6FC; color: var(--ink); }
.hbtn svg { width: 21px; height: 21px; }
.hbtn-folder { background: var(--tinte); color: #fff; box-shadow: 3px 3px 0 var(--ink); }
.hbtn-folder:hover { background: var(--tinte-dark); color: #fff; }
.hbtn-count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: 14px; }
.hbtn-folder.bump { animation: bump .45s; }
/* "Rombalu teilen": coloured, so it is found without a label (phones, the installed web app) */
.hbtn-share { background: var(--mint); }
.hbtn-share:hover { background: #5FD8C4; }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; }
.lang-list { position: absolute; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--shadow); min-width: 180px; z-index: 40; }
.lang-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.lang-list a:hover { background: #EEF2FA; }
.lang-list .lang-check { margin-left: auto; width: 18px; height: 18px; }
.flag { border-radius: 3px; box-shadow: 0 0 0 1px rgb(0 0 0 / .15); }
.lang-caret { width: 16px !important; height: 16px !important; }
/* the main menu on phones and tablets: three lines → tiles under the header (layout.js phoneMenu) */
.nav-menu { display: none; }
.nav-menu summary { list-style: none; }
.hbtn-menu { padding-inline: 9px; }
.hbtn-menu .nav-menu-close, .nav-menu[open] .nav-menu-open { display: none; }
.nav-menu[open] .nav-menu-close { display: block; }
.nav-menu[open] .hbtn-menu { background: var(--karo); }
.nav-menu-panel { position: absolute; left: 0; right: 0; top: 100%; z-index: 35; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: 14px clamp(12px, 3vw, 28px) 18px; background: var(--paper); border-bottom: 2px solid var(--ink); box-shadow: 0 14px 30px rgb(30 42 68 / .22); }
/* open, the panel lies in the top layer (app.js; above Google's anchor ads): instead of the browser's
   centred, framed popover, the same place under the header (--menu-top = the header's lower edge) */
.nav-menu-panel:popover-open { position: fixed; inset: var(--menu-top, var(--header-h)) 0 auto; width: auto; height: auto; max-height: calc(100dvh - var(--menu-top, var(--header-h))); margin: 0; border: 0; border-bottom: 2px solid var(--ink); color: inherit; }
.nav-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.nav-tile { display: flex; align-items: center; gap: 10px; min-height: 66px; padding: 7px 12px 7px 8px; border: 2px solid var(--ink); border-radius: 14px; background: var(--paper); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); text-decoration: none; font: 800 18px/1.15 var(--kid); }
.nav-tile img { width: 50px; height: 50px; object-fit: contain; flex: none; }
.nav-tile:hover { background: #EEF2FA; color: var(--ink); }
.nav-tile[aria-current="page"] { background: var(--karo); }
.nav-tile-kids { background: var(--sun); }
.nav-tile-kids:hover { background: #FFD65E; }
.nav-menu-more { display: none; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* up to 1200 px the links do not fit next to logo and buttons (an account button included) */
@media (max-width: 1200px) { .nav-menu { display: block; } .main-nav a:not(.nav-kids) { display: none; } }
/* small phones: two tiles in a row; account and "Rombalu teilen" move from the header into the menu */
@media (max-width: 480px) {
  .nav-tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
  .nav-tile { gap: 5px; min-height: 58px; padding: 5px 6px 5px 4px; font-size: clamp(13.5px, 3.85vw, 15px); hyphens: auto; }
  .nav-tile img { width: 34px; height: 34px; }
  .header-actions .hbtn-share, .header-actions .hbtn-account { display: none; }
  .nav-menu-more { display: flex; }
}

/* ------------------------------------------------ catalog layout */
.catalog-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 0; align-items: start; }
.filters { position: sticky; top: var(--header-h); max-height: calc(100dvh - var(--header-h)); overflow-y: auto; padding: 0 16px 40px; background: var(--paper); border-right: 2px solid var(--ink); scrollbar-width: thin; }
/* heading, search and "reset" stay on top while the filters scroll underneath */
.filters-top { position: sticky; top: 0; z-index: 2; margin: 0 -16px; padding: 18px 16px 6px; background: var(--paper); border-bottom: 2px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.filters-head { display: flex; align-items: center; justify-content: space-between; }
.filters-head h2 { display: flex; align-items: center; gap: 8px; margin: 0; }
.filters-head svg { width: 22px; height: 22px; }
.filters-close { display: none; }
.search-box { position: relative; margin: 14px 0 0; }
.search-box input { width: 100%; min-height: 46px; padding: 10px 12px 10px 40px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); }
.search-box .search-icon { position: absolute; left: 11px; top: 12px; width: 21px; height: 21px; color: var(--muted); }
.facet { border: 0; margin: 14px 0 0; padding: 0; }
.facet legend { font: 800 17px var(--kid); margin-bottom: 8px; padding: 0; }
.facet-options { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt-chip { padding: 6px 11px; border: 2px solid var(--ink); border-radius: 20px; background: var(--paper); font-size: 15px; font-weight: 700; }
.opt-chip:hover { background: #EEF2FA; }
.opt-chip.is-on { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.opt-count { font-size: 12px; font-weight: 700; color: var(--muted); }
.opt.is-on .opt-count { color: inherit; opacity: .8; }
.opt.is-empty { opacity: .38; }
.opt input:focus-visible + * { outline: 3px solid var(--tinte); outline-offset: 2px; }
.facet-stickers .facet-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.opt-sticker { flex-direction: column; justify-content: flex-start; gap: 2px; padding: 6px 4px 5px; border: 2px solid transparent; border-radius: 14px; text-align: center; background: color-mix(in srgb, var(--c, var(--karo)) 12%, white); }
.opt-sticker:hover { border-color: color-mix(in srgb, var(--c, var(--tinte)) 60%, white); }
.opt-sticker img { width: 54px; height: 54px; object-fit: contain; }
.opt-sticker .opt-label { font-size: 13px; line-height: 1.15; font-weight: 700; hyphens: auto; overflow-wrap: anywhere; }
.opt-sticker .opt-count { position: absolute; top: 3px; right: 6px; }
.opt-sticker.is-on { border-color: var(--ink); background: color-mix(in srgb, var(--c, var(--tinte)) 38%, white); box-shadow: 2px 2px 0 var(--ink); }
.facet-kind .facet-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lvl { display: inline-flex; gap: 3px; vertical-align: middle; }
.lvl i { width: 10px; height: 10px; border-radius: 50%; border: 1.8px solid var(--ink); background: var(--paper); }
.lvl i.on { background: var(--ink); }
.opt-chip.is-on .lvl i { border-color: #fff; } .opt-chip.is-on .lvl i.on { background: #fff; }
.opt-label .lvl { margin-right: 6px; }
/* the line keeps its height when the link is hidden, so the filters do not jump on the first click */
.filters-reset { min-height: 24px; margin: 6px 0 0; }
.filters-reset a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.filters-reset svg { width: 18px; height: 18px; }
/* long names in the big lists ("Landscapes", "helicopters"): a bit more room so words do not break */
:is(.facet-theme, .facet-motif, .facet-occasion) .opt-sticker { padding-inline: 1px; }
:is(.facet-theme, .facet-motif, .facet-occasion) .opt-sticker .opt-label { font-size: 12.5px; }
/* hint next to a filter name ("Motiv – Was ist drauf?") */
.facet-hint { font: 700 13px var(--text); color: var(--muted); margin-left: 4px; }
/* long sticker lists (themes, motifs, occasions): the rest behind "Alle …" – a checkbox, works without JS */
.facet-more-toggle:not(:checked) ~ .facet-options .opt.is-more { display: none; }
.facet-more { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; padding: 6px 12px; border: 2px dashed color-mix(in srgb, var(--ink) 40%, white); border-radius: 12px; background: var(--paper); font-size: 14px; font-weight: 800; cursor: pointer; user-select: none; }
.facet-more:hover { border-style: solid; background: #EEF2FA; }
.facet-more-n { font-size: 12px; color: var(--muted); }
.facet-more-close { display: none; }
.facet-more-chevron { width: 18px; height: 18px; transition: transform .15s; }
.facet-more-toggle:checked ~ .facet-more .facet-more-open { display: none; }
.facet-more-toggle:checked ~ .facet-more .facet-more-close { display: inline; }
.facet-more-toggle:checked ~ .facet-more .facet-more-chevron { transform: rotate(180deg); }
.facet-more-toggle:focus-visible ~ .facet-more { outline: 3px solid var(--tinte); outline-offset: 2px; }
/* motif landing pages: broader and narrower motifs */
.related-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 2px 0 12px; }
.related-tags-label { font-size: 14px; font-weight: 800; color: var(--ink-2); }
.related-tags .tag { font-size: 14px; padding: 2px 10px 2px 4px; }
.related-tags .tag img { width: 24px; height: 24px; }

.results { padding: 20px clamp(12px, 2.4vw, 32px) 40px; min-width: 0; }
.results-head { margin-bottom: 12px; }
.results-intro { max-width: 70ch; margin: 0 0 10px; color: var(--ink-2); }
.results-note { max-width: 70ch; margin: -4px 0 10px; font-size: 14px; color: var(--muted); }
.results-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.results-count { margin: 0; font-weight: 700; }
.btn-filters { display: none; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--tinte); }
.filter-warning { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #FFF4CC; border: 2px solid var(--sun); border-radius: 12px; padding: 8px 12px; margin: 10px 0 0; }
.filter-warning svg { width: 20px; height: 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); grid-auto-flow: row dense; gap: 18px; }
.grid-small { grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; transition: transform .12s; }
.card:hover { transform: translateY(-2px); }
.card-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); text-decoration: none; }
.card-media { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: 10px; background: var(--paper); border-bottom: 2px solid var(--karo); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-worksheet .card-media { background: #F3F6FC; }
.card-worksheet .card-media img { box-shadow: 0 1px 4px rgb(30 42 68 / .2); background: #fff; }
.card-title { padding: 8px 10px 2px; font-weight: 700; line-height: 1.25; font-size: 16px; overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 2px 10px 10px; font-size: 13px; color: var(--muted); }
.card-tag { background: #EEF2FA; color: var(--ink-2); border-radius: 6px; padding: 1px 6px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-badge { position: absolute; top: 8px; left: 8px; background: var(--cherry); color: #fff; border: 2px solid var(--ink); border-radius: 8px; font-size: 12px; font-weight: 800; padding: 1px 7px; }
/* generated sheets: "customisable" (magic wand), top left – below "new" if both */
.card-custom { position: absolute; top: 8px; left: 8px; display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--ink); border-radius: 50%; background: var(--tinte); color: #fff; box-shadow: 2px 2px 0 var(--ink); }
.card-custom svg { width: 22px; height: 22px; }
.card-badge ~ .card-custom { top: 38px; }
.card-printed { position: absolute; left: 8px; bottom: 70px; display: inline-flex; align-items: center; gap: 3px; background: var(--grass); border: 2px solid var(--ink); border-radius: 8px; font-size: 12px; font-weight: 800; padding: 1px 6px; }
.card-printed svg { width: 13px; height: 13px; }
.card-add { position: absolute; top: 8px; right: 8px; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: var(--sun); color: var(--ink); display: grid; place-items: center; box-shadow: 2px 2px 0 var(--ink); }
.card-add svg { width: 24px; height: 24px; grid-area: 1 / 1; }
.card-add svg:last-child { display: none; }
.card-add[aria-pressed="true"] { background: var(--grass); }
.card-add[aria-pressed="true"] svg:first-child { display: none; }
.card-add[aria-pressed="true"] svg:last-child { display: block; }
.card-add:active { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--ink); }
.card.is-hidden-printed { display: none; }
.no-results { padding: 20px; border: 2px dashed var(--karo); border-radius: var(--r); background: var(--paper); margin-top: 10px; }
.pager { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 26px 0 10px; }
.pager-pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pager-pages a, .pager-pages span { min-width: 36px; text-align: center; padding: 4px 8px; border-radius: 8px; }
.pager-pages [aria-current] { background: var(--ink); color: #fff; }

.kids-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 16px; margin: 0 0 20px; padding: 10px 16px; background: var(--sun); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.kids-card:hover { color: var(--ink); background: #FFD65E; }
.kids-card img { width: 84px; height: 84px; object-fit: contain; }
.kids-card-text { display: grid; gap: 2px; min-width: 0; }
.kids-card-text strong { font: 800 clamp(22px, 2.4vw, 30px)/1.05 var(--kid); }
.kids-card-text span { font-weight: 700; overflow-wrap: anywhere; }
.kids-card .kids-card-btn { margin: 0; font-size: 20px; padding: 8px 20px; }
@media (max-width: 640px) {
  .kids-card { grid-template-columns: auto minmax(0, 1fr); padding: 8px 12px; }
  .kids-card img { width: 64px; height: 64px; }
  .kids-card .kids-card-btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}
.bundles { margin: 0 0 22px; }
.bundles h2 { font-size: 21px; }
.bundles-more-toggle:not(:checked) ~ .bundle-row .bundle.is-more { display: none; }
.bundles-more { max-width: 360px; margin: 10px auto 0; }
.bundle-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; padding: 2px 4px 6px 2px; }
@media (max-width: 1100px) { .bundle-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bundle { scroll-snap-align: start; min-width: 0; display: grid; grid-template-columns: 70px minmax(0, 1fr); grid-template-rows: auto 1fr auto; gap: 4px 10px; padding: 10px; background: var(--page); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink); color: var(--ink); text-decoration: none; }
.bundle:hover { color: var(--ink); background: #FFEFB0; }
.bundle img { grid-row: 1 / 4; align-self: start; width: 70px; height: 88px; object-fit: contain; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; }
.bundle-title { font: 800 17px/1.15 var(--kid); min-width: 0; overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.bundle-text { font-size: 13px; line-height: 1.3; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.bundle-pages { align-self: end; padding-top: 4px; font-size: 12px; font-weight: 700; color: var(--tinte); }
/* the way to the ready-made booklets (start page, pages of the kinds): three covers fanned out */
.bundles-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; margin: 0 0 20px; padding: 10px 16px 10px 12px; background: color-mix(in srgb, var(--grass) 20%, white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.bundles-card:hover { color: var(--ink); background: color-mix(in srgb, var(--grass) 30%, white); }
/* "Feinmotorik & Wahrnehmung" on the worksheets page, right under the booklets box */
.ergo-teaser { background: color-mix(in srgb, var(--sky) 20%, white); }
.ergo-teaser:hover { background: color-mix(in srgb, var(--sky) 30%, white); }
.bundles-card-covers { display: flex; padding: 6px 10px 6px 4px; }
.bundles-card-covers img { position: relative; width: 58px; height: 78px; object-fit: contain; background: #fff; border: 1.5px solid var(--ink); border-radius: 5px; box-shadow: 2px 2px 0 var(--ink); }
.bundles-card-covers img + img { margin-left: -24px; }
.bundles-card-covers img:nth-child(1) { z-index: 3; transform: rotate(-6deg); }
.bundles-card-covers img:nth-child(2) { z-index: 2; transform: translateY(-4px); }
.bundles-card-covers img:nth-child(3) { z-index: 1; transform: rotate(7deg); }
.bundles-card-text { display: grid; gap: 2px; min-width: 0; }
.bundles-card-text strong { font: 800 clamp(22px, 2.4vw, 30px)/1.05 var(--kid); }
.bundles-card-text span { font-weight: 700; overflow-wrap: anywhere; }
.bundles-card .bundles-card-btn { margin: 0; font-size: 20px; padding: 8px 20px; }
@media (max-width: 640px) {
  .bundles-card { grid-template-columns: auto minmax(0, 1fr); padding: 8px 12px 8px 8px; }
  .bundles-card-covers img { width: 44px; height: 60px; }
  .bundles-card-covers img + img { margin-left: -22px; }
  .bundles-card .bundles-card-btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}
/* the page of the ready-made booklets (/hefte): the cover with two sheets behind it reads as a booklet */
.booklets-catalog { margin-left: auto; font-weight: 700; }
.booklet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); grid-auto-flow: row dense; gap: 22px 18px; }
.booklet { display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px; padding: 12px 12px 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .12s; }
.booklet:hover { color: var(--ink); background: #FFFBEA; transform: translateY(-2px); }
.booklet-cover { position: relative; display: block; aspect-ratio: 4 / 5; margin: 0 10px 10px 0; }
.booklet-cover::before, .booklet-cover::after { content: ''; position: absolute; inset: 0; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; }
.booklet-cover::before { transform: translate(9px, 7px) rotate(2.5deg); }
.booklet-cover::after { transform: translate(4px, 3px) rotate(1deg); }
.booklet-cover img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; padding: 6px; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; }
.booklet-title { font: 800 18px/1.15 var(--kid); overflow-wrap: anywhere; hyphens: auto; }
.booklet-text { font-size: 14px; line-height: 1.35; color: var(--ink-2); overflow-wrap: anywhere; hyphens: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.booklet-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding-top: 6px; font-size: 13px; font-weight: 700; color: var(--tinte); }
.booklet-meta .card-age { color: var(--muted); }
/* "Malen nach Zahlen" booklets: what stands in the areas */
.booklet-pbn { background: #FFF3C4; color: var(--ink); border-radius: 6px; padding: 1px 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 640px) {
  .booklet-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .booklet { padding: 8px 8px 8px; }
  .booklet-title { font-size: 15px; }
  .booklet-text { font-size: 13px; -webkit-line-clamp: 2; line-clamp: 2; }
  .booklets-catalog { margin-left: 0; }
}

/* ad slots: never printed; placeholders until AdSense exists */
.rb-spot { position: relative; display: grid; place-items: center; min-height: 120px; border: 2px dashed #C9D3E6; border-radius: var(--r); background: repeating-linear-gradient(-45deg, #F7F9FD, #F7F9FD 10px, #F0F3FA 10px, #F0F3FA 20px); color: var(--muted); font-size: 14px; }
.rb-spot .rb-spot-label { position: absolute; top: 6px; left: 10px; font-size: 11px; text-transform: none; letter-spacing: .02em; }
.grid > .rb-spot, .booklet-grid > .rb-spot { grid-column: 1 / -1; min-height: 110px; }
.rb-spot.is-empty { display: none; }
/* our own ads (public/js/spots.js, src/house-ads.js): a banner in each brand's own colours with its
   logo (Quell also with its device), marked "Anzeige" like every slot */
.rb-spot.has-own { container-type: inline-size; display: block; padding: 0; overflow: hidden; border: 2px solid var(--ink); background: #0d0d12; box-shadow: var(--shadow); }
.rb-spot.has-own .rb-spot-label { z-index: 2; color: rgb(255 255 255 / .7); }
.rb-own { --h-bg: #0d0d12; --h-glow: transparent; --h-accent: #fff; --h-on-accent: #0d0d12; --h-soft: rgb(255 255 255 / .74);
  position: relative; isolation: isolate; display: grid; width: 100%; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 26px;
  min-height: 136px; padding: 30px 28px 22px; color: #fff; text-decoration: none; font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: radial-gradient(560px 280px at 0% 100%, var(--h-glow), transparent 70%), var(--h-bg); }
.rb-own:hover { color: #fff; }
.rb-own-brand { display: flex; align-items: center; gap: 12px; }
.rb-own-logo { width: 56px; height: 56px; object-fit: contain; flex: none; }
.rb-own-word { font-weight: 800; font-size: 26px; letter-spacing: .01em; white-space: nowrap; }
.rb-own-word b { font-weight: 900; }
.rb-own-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rb-own-text strong { font-size: 22px; line-height: 1.2; font-weight: 800; }
.rb-own-text span { color: var(--h-soft); font-size: 15px; line-height: 1.4; }
.rb-own-cta { display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 10px 20px; border-radius: 999px; background: var(--h-accent); color: var(--h-on-accent); font-weight: 800; font-size: 16px; white-space: nowrap; box-shadow: 0 6px 18px rgb(0 0 0 / .35); transition: transform .12s; }
.rb-own:hover .rb-own-cta { transform: translateY(-1px) scale(1.03); }
.rb-own-visual { position: absolute; z-index: -1; right: 0; top: 0; height: 100%; width: auto; max-width: 48%; object-fit: cover; opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
/* the brands' colours, from their own sites */
.rb-own-ittrail { --h-bg: #0d0d12; --h-glow: rgb(74 155 217 / .45); --h-accent: #4A9BD9; --h-on-accent: #fff; }
.rb-own-sitebin { --h-bg: #0c111d; --h-glow: rgb(245 184 77 / .3); --h-accent: #F5B84D; --h-on-accent: #0c111d; }
.rb-own-sitebin .rb-own-word { color: #F5B84D; }
.rb-own-quell { --h-bg: #06080e; --h-glow: rgb(124 92 255 / .38); --h-accent: #3FD9C6; --h-on-accent: #06080e; }
.rb-own-quell .rb-own-word { color: #3FD9C6; }
.rb-own-quell .rb-own-cta { box-shadow: 0 0 22px rgb(63 217 198 / .45); }
/* the device gets its own space on the right, the button stays left of it */
.rb-own-quell { grid-template-columns: auto minmax(0, 1fr); padding-right: calc(28% + 8px); }
.rb-own-quell .rb-own-cta { grid-column: 2; justify-self: start; }
.rb-own-quell .rb-own-visual { width: 28%; max-width: none; object-position: center 60%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%); mask-image: linear-gradient(90deg, transparent, #000 30%); }
.rb-own-morgenfertig { --h-bg: linear-gradient(120deg, #07061a 45%, #17143a); --h-glow: rgb(255 106 61 / .5); --h-accent: linear-gradient(90deg, #ff2e7e, #ff6a3d 55%, #ffb23f); --h-on-accent: #1a0710; }
.rb-own-morgenfertig .rb-own-word { font-weight: 500; }
.rb-own-morgenfertig .rb-own-word b { color: #ffb23f; }
/* by the width of the slot, not of the screen: the print dialog and narrow columns stack too */
@container (max-width: 700px) {
  .rb-own { grid-template-columns: 1fr; justify-items: start; gap: 12px; padding: 30px 18px 20px; }
  .rb-own-word { font-size: 22px; }
  .rb-own-text strong { font-size: 19px; }
  .rb-own-cta { white-space: normal; }
  .rb-own-visual, .rb-own-quell .rb-own-visual { width: auto; max-width: 70%; opacity: .35; }
  .rb-own-quell { grid-template-columns: 1fr; padding-right: 18px; }
  .rb-own-quell .rb-own-cta { grid-column: auto; }
}
.rb-spot .rb-spot-demo { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 18px; }
.rb-spot .rb-spot-demo a { font-weight: 700; font-size: 14px; }
.rb-spot-detail { margin-top: 20px; min-height: 250px; }
.rb-spot-catalog-bottom { margin-top: 24px; }
.rb-spot-catalog-top { margin: 0 0 20px; min-height: 100px; }
.page-song .rb-spot { margin: 28px 0; }
/* Google's block takes the full width (the slot centres its children) and keeps clear of the label */
.rb-spot:has(> ins.adsbygoogle) { padding-top: 24px; }
.rb-spot > ins.adsbygoogle { width: 100%; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }
/* once Google has put an ad in: no stripes and no dashed frame (they showed beside ads narrower than
   the slot), the ad centred; the label "Anzeige" stays. Only our container – the ad itself is untouched */
.rb-spot:has(> ins.adsbygoogle[data-ad-status="filled"]) { border-color: transparent; background: none; }
.rb-spot > ins.adsbygoogle[data-ad-status="filled"] { text-align: center; }
/* under it the note on the ad-free plans (public/js/spots.js): after a moment, while Google has put
   no ad in (an empty slot, or its tag never arrived – a blocker); only CSS, nothing looks for one */
.rb-spot-alt { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 560px; padding: 4px 18px 18px; text-align: center; color: var(--ink); text-decoration: none;
  visibility: hidden; opacity: 0; animation: rb-spot-alt-in .4s ease 2s forwards; }
.rb-spot-alt:hover { color: var(--ink); }
.rb-spot-alt strong { font-size: 18px; }
.rb-spot-alt span { color: var(--ink-2); font-size: 15px; line-height: 1.4; }
.rb-spot-alt .rb-spot-alt-cta { margin-top: 6px; color: var(--tinte); font-weight: 800; }
.rb-spot-alt:hover .rb-spot-alt-cta { text-decoration: underline; }
.rb-spot:has(ins.adsbygoogle[data-ad-status="filled"]) .rb-spot-alt { display: none; }
@keyframes rb-spot-alt-in { to { visibility: visible; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rb-spot-alt { visibility: visible; opacity: 1; } }

/* wish form */
.wish-box { margin-top: 28px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 4px 16px; box-shadow: var(--shadow); }
.wish-box summary { cursor: pointer; padding: 10px 0; font-size: 18px; }
.wish-form { display: grid; gap: 10px; padding-bottom: 14px; max-width: 640px; }
.wish-form label { display: grid; gap: 4px; font-weight: 700; font-size: 15px; }
.wish-form textarea, .wish-form input[type=email], .wish-form select { border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; background: #fff; font-weight: 400; }
.wish-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wish-form .check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.wish-form .check input { margin-top: 4px; }
.wish-form button { justify-self: start; }
.wish-status { margin: 0; font-weight: 700; }

/* kids gift (backpack from the kids view) */
.kids-gift { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: var(--page); border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 14px; margin: 0 0 18px; box-shadow: var(--shadow); }
.kids-gift img.mascot { width: 64px; height: 64px; }
.kids-gift .thumbs { display: flex; gap: 6px; }
.kids-gift .thumbs img { width: 46px; height: 58px; object-fit: contain; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; }
.kids-gift p { margin: 0; font-weight: 700; flex: 1 1 200px; }

/* a child's avatar (sticker on its colour) – kids view, "Meine Kinder", painted pictures */
.ch-av { --av: 56px; flex: none; display: inline-grid; place-items: center; width: var(--av); height: var(--av); border: 3px solid var(--ink); border-radius: 50%; background: color-mix(in srgb, var(--tint, var(--sun)) 38%, white); overflow: hidden; }
.ch-av img { width: 84%; height: 84%; object-fit: contain; pointer-events: none; }
.ch-av img[src*="/avatar-"] { width: 100%; height: 100%; } /* the avatar stickers bring their own round background */
.ch-av-big { --av: 72px; }
.ch-av-plain { background: var(--tint, var(--sun)); color: var(--ink); font: 800 calc(var(--av) * .5)/1 var(--kid); }
.ch-av-plain.is-dark { color: #fff; }
.ch-av-plain > span { transform: translateY(.04em); }
.ch-av-mini { --av: 32px; border-width: 2px; }

/* pictures painted in the kids view, on the start page: one tap prints */
.kids-art { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 14px 8px; margin: 0 0 18px; box-shadow: var(--shadow); }
.ka-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ka-head h2 { margin: 0; font-size: 20px; }
.ka-list { display: flex; gap: 14px; margin: 0; padding: 6px 4px 10px 10px; list-style: none; overflow-x: auto; }
.ka-list li { flex: none; display: grid; justify-items: center; gap: 6px; width: 104px; }
.ka-pic { position: relative; display: block; width: 104px; height: 130px; padding: 4px; border: 2px solid var(--ink); border-radius: 10px; background: #fff; box-shadow: 3px 3px 0 var(--ink); }
.ka-pic:hover { transform: translateY(-1px); }
.ka-pic:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.ka-pic > img { width: 100%; height: 100%; object-fit: contain; }
.ka-pic .ch-av-mini { position: absolute; left: -10px; bottom: -8px; }
.ka-print { position: absolute; right: 4px; top: 4px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--tinte); color: #fff; }
.ka-print svg { width: 18px; height: 18px; }
.ka-name { max-width: 100%; overflow: hidden; font-size: 14px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------ folder panel (drawer) */
.folder-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 60; width: min(440px, 100vw); display: flex; flex-direction: column; background: var(--paper); border-left: 2px solid var(--ink); box-shadow: -8px 0 30px rgb(30 42 68 / .25); transform: translateX(105%); transition: transform .22s ease; }
.folder-panel.is-open { transform: none; }
.folder-backdrop { position: fixed; inset: 0; z-index: 55; background: rgb(30 42 68 / .35); }
.folder-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 2px solid var(--ink); }
.folder-head h2 { margin: 0; flex: 1; }
.folder-title { margin: 12px 14px 0; }
.folder-title input { width: 100%; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; }
.folder-list { flex: 1; overflow-y: auto; list-style: none; margin: 0; padding: 10px 14px; display: grid; gap: 8px; align-content: start; }
.folder-item { display: grid; grid-template-columns: 26px 56px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 6px; border: 2px solid var(--karo); border-radius: 12px; background: #fff; }
.folder-item.sortable-ghost { opacity: .4; }
.folder-item .grip { cursor: grab; color: var(--muted); display: grid; place-items: center; }
.folder-item .grip svg { width: 20px; height: 20px; }
.folder-item img { width: 56px; height: 64px; object-fit: contain; background: #F7F9FD; border-radius: 6px; }
.folder-item .fi-title { font-weight: 700; font-size: 15px; line-height: 1.2; }
.folder-item .fi-sub { font-size: 13px; color: var(--muted); }
.folder-item .fi-actions { display: flex; }
.folder-item .fi-actions button { width: 34px; height: 34px; }
.folder-item .fi-actions svg { width: 18px; height: 18px; }
.folder-empty { padding: 30px 20px; text-align: center; color: var(--ink-2); }
.folder-empty img { width: 110px; }
.folder-foot { border-top: 2px solid var(--ink); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 10px; background: #FBFCFE; }
.folder-foot .row { display: flex; gap: 8px; flex-wrap: wrap; }
.folder-foot .row .btn { flex: 1 1 auto; }
.folder-pages { font-weight: 700; }
.folder-options { border: 2px solid var(--karo); border-radius: 12px; padding: 8px 12px; }
.folder-options summary { cursor: pointer; font-weight: 700; }
.folder-options label { display: flex; gap: 8px; align-items: center; margin: 7px 0; font-size: 15px; }
.folder-options input[type=text], .folder-options textarea, .folder-options select { width: 100%; border: 2px solid var(--karo); border-radius: 8px; padding: 6px 8px; }
.folder-options .stack { display: grid; gap: 4px; }

/* dialogs */
dialog { border: 2px solid var(--ink); border-radius: 18px; padding: 22px; width: min(560px, calc(100vw - 24px)); color: var(--ink); background: var(--paper); box-shadow: 8px 8px 0 var(--ink); }
dialog::backdrop { background: rgb(30 42 68 / .5); }
dialog h2 { margin-top: 0; }
.dialog-close { position: absolute; top: 10px; right: 10px; }
/* asked once after signing in: sync the children's profiles with the account? */
.sync-ask { text-align: center; }
.sync-ask img { display: block; margin: 0 auto 6px; }
.sync-ask .hint { margin-bottom: 0; }
.sync-ask-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 16px; }
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 8px; }
.choices .btn { width: 100%; }
.consent-gift { background: var(--page); border: 2px solid var(--ink); border-radius: 12px; padding: 10px; margin-bottom: 14px; }
.consent-gift .thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.consent-gift img { width: 50px; height: 62px; object-fit: contain; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; }
dialog label.stack { display: grid; gap: 4px; margin: 10px 0; font-weight: 700; font-size: 15px; }
dialog label.stack input { border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; font-weight: 400; min-width: 0; }
.share-link { display: flex; gap: 8px; margin: 10px 0; }
.share-link input { flex: 1; min-width: 0; border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; }
.share-qr { display: flex; justify-content: center; margin: 10px 0; }
.share-qr img { width: 180px; height: 180px; padding: 10px; border: 2px solid var(--ink); border-radius: 12px; background: #fff; }
.print-prep .progress { height: 12px; border-radius: 6px; background: var(--karo); overflow: hidden; margin: 12px 0; }
.print-prep .progress i { display: block; height: 100%; width: 0; background: var(--grass); transition: width .2s; }
.print-prep .affiliate { margin-top: 14px; padding: 10px 12px; border: 2px dashed var(--karo); border-radius: 12px; font-size: 15px; }
.print-prep .affiliate small { display: block; color: var(--muted); }
.print-prep .rb-spot { margin-top: 12px; min-height: 100px; }
/* the intro window before Google's consent dialog (first visit with AdSense, public/js/spots.js):
   photo on top, who we are, why there are ads; fits a phone without scrolling */
dialog.rb-intro { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; overflow: hidden auto; animation: rb-intro-in .22s ease-out; }
dialog.rb-intro::backdrop { background: rgb(30 42 68 / .55); }
.rb-intro-photo { display: block; width: 100%; height: clamp(120px, 24vh, 200px); object-fit: cover; object-position: 50% 32%; border-bottom: 2px solid var(--ink); }
.rb-intro-body { display: grid; gap: 8px; padding: 16px 20px 20px; }
.rb-intro-body h2 { margin: 0 0 2px; font-size: clamp(21px, 5.4vw, 25px); }
.rb-intro-body p { margin: 0; font-size: 15px; line-height: 1.45; }
.rb-intro-next { padding: 8px 12px; border-radius: 12px; background: var(--page); font-weight: 600; }
.rb-intro-links { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.rb-intro-links a { font-weight: 700; font-size: 14px; }
.rb-intro-body .btn { justify-self: end; min-width: 160px; margin-top: 6px; }
@keyframes rb-intro-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@media (max-width: 480px) {
  .rb-intro-body { padding: 14px 16px 16px; gap: 7px; }
  .rb-intro-body p { font-size: 14.5px; line-height: 1.42; }
  .rb-intro-body .btn { justify-self: stretch; }
}
@media (max-height: 700px) { .rb-intro-photo { height: 110px; } }
@media print { .rb-intro { display: none !important; } }
.toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 700; box-shadow: var(--shadow-soft); }

/* ------------------------------------------------ item page */
.item-page { max-width: 1240px; margin: 0 auto; padding: 16px clamp(12px, 3vw, 32px) 40px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 15px; }
.breadcrumb li + li::before { content: '›'; margin-right: 4px; color: var(--muted); }
.breadcrumb [aria-current] { color: var(--muted); }
.item-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 40px); align-items: start; }
.sheet-paper { display: block; background: #fff; border: 2px solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--karo); padding: clamp(10px, 2vw, 22px); }
.item-figure { margin: 0; }
.item-figure img { display: block; width: 100%; height: auto; }
.item-figure figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.item-info h1 { margin-bottom: 6px; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--ink-2); margin: 0 0 12px; font-size: 15px; }
.item-desc { font-size: 18px; max-width: 60ch; }
.item-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.item-actions form { display: contents; }
/* "Teilen", "Als JPG", "Auf Pinterest merken" (src/render/share.js) */
.share-tools { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.share-tools .btn { min-height: 40px; padding: 6px 14px; box-shadow: none; }
.share-tools .btn[aria-busy="true"] { opacity: .6; cursor: progress; }
.share-tools [data-pin] svg { color: #E60023; }
.song-share-row .share-tools { margin: 0; }
.book-hero-info .share-tools { margin: -8px 0 20px; }
.btn-soon .badge { background: var(--karo); }
.item-tasks { background: var(--page); border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 16px; margin: 16px 0; }
.item-tasks h2 { font-size: 19px; }
.item-tasks ul { margin: 0; padding-left: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 6px; border: 2px solid var(--ink); border-radius: 20px; background: color-mix(in srgb, var(--c, var(--karo)) 22%, white); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; }
.tag:hover { color: var(--ink); background: color-mix(in srgb, var(--c, var(--karo)) 40%, white); }
.tag img { width: 28px; height: 28px; object-fit: contain; }
.item-family, .item-similar { margin-top: 36px; }
.item-family .btn { margin-top: 12px; }
.ws-preview { display: grid; gap: 12px; }
.ws-preview .sheet-paper { position: relative; }
.ws-preview .ws-svg { display: block; width: 100%; height: auto; }
.ws-ai-note { margin: 0; font-size: 14px; color: var(--muted); }
.ws-instruction { margin: 0 0 8px; font-weight: 700; }
.ws-solution summary { cursor: pointer; font-weight: 700; margin-bottom: 8px; }
/* colour by number ("Malen nach Zahlen", shared/pbn.js): switch over the picture, numbered sheet with its key */
.pbn-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.pbn-tab { display: flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); font: 800 1rem/1.15 var(--kid); text-decoration: none; }
.pbn-tab img { width: 30px; height: 45px; object-fit: contain; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; flex: none; }
.pbn-tab:hover { background: color-mix(in srgb, var(--sun) 25%, white); }
.pbn-tab[aria-pressed="true"] { background: var(--sun); box-shadow: 3px 3px 0 var(--ink); }
.pbn-view { display: grid; gap: 12px; }
.pbn-view .hint { margin: 0; }
.pbn-view .ws-solution img { display: block; width: 100%; height: auto; }
.pbn-paper .pbn-svg { display: block; width: 100%; height: auto; }
.pbn-svg .pbn-nums { font-family: var(--text); }
.pbn-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-weight: 700; }
.pbn-legend li { display: inline-flex; align-items: center; gap: 6px; }
.pbn-dot { display: inline-grid; place-items: center; width: 1.7em; height: 1.7em; border: 2px solid var(--ink); border-radius: 50%; font-weight: 800; font-size: .95em; }
/* syllables and words (mau, rain): a pill as wide as the text; symbols drawn inside the dot */
.pbn-long { width: auto; min-width: 1.7em; padding: 0 .45em; border-radius: .85em; }
.pbn-sym svg { display: block; width: 62%; height: 62%; }
.pbn-note { margin: 6px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.pbn-sol-opt { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.pbn-sol-opt input { width: 20px; height: 20px; }
.card-pbn { background: var(--ink); }
.card-badge ~ .card-pbn { top: 38px; }
/* fuse bead patterns (shared/beads.js): badge, third tab of the switch, the bead view */
.card-beads { background: #fff; }
.card-badge ~ .card-beads { top: 38px; }
.card-pbn ~ .card-beads { top: 50px; }
.card-badge ~ .card-pbn ~ .card-beads { top: 80px; }
.pbn-switch { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.bead-thumb { display: grid; place-items: center; width: 30px; height: 45px; flex: none; background: #fff; border: 1.5px solid var(--ink); border-radius: 4px; }
.bead-thumb svg { width: 26px; height: 40px; }
@media (max-width: 480px) {
  .pbn-switch:has(.pbn-tab:nth-child(3)) .pbn-tab { padding: 8px 6px; font-size: .88rem; justify-content: center; text-align: center; }
  .pbn-switch:has(.pbn-tab:nth-child(3)) .pbn-tab img, .pbn-switch:has(.pbn-tab:nth-child(3)) .bead-thumb { display: none; }
}
.bead-view { display: grid; gap: 12px; }
.bead-view .hint { margin: 0; }
.bead-sizes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.bead-size { display: grid; gap: 2px; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; font: 800 .95rem/1.15 var(--kid); }
.bead-size small { font: 600 .82rem/1.2 var(--text); color: var(--muted); }
.bead-size:hover { background: color-mix(in srgb, var(--sky) 18%, white); }
.bead-size[aria-pressed="true"] { background: color-mix(in srgb, var(--sky) 45%, white); box-shadow: 3px 3px 0 var(--ink); }
.bead-paper .bead-svg { display: block; width: 100%; height: auto; max-height: 72vh; }
.bead-dims { margin: 8px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.bead-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 10px 0 0; padding: 0; list-style: none; font-weight: 700; }
.bead-legend li { display: inline-flex; align-items: center; gap: 6px; }
.bead-dot { width: 1.4em; height: 1.4em; flex: none; }
.bead-n { min-width: 2ch; padding: 0 .4em; border-radius: .7em; background: color-mix(in srgb, var(--ink) 8%, white); font-variant-numeric: tabular-nums; text-align: center; }
.bead-total { font-weight: 800; }
.ws-settings { margin-top: 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--shadow); }
.ws-settings h2 { display: flex; align-items: center; gap: 8px; font-size: 19px; }
.ws-settings h2 svg { width: 20px; height: 20px; }
.ws-params { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.ws-param { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; font-size: 14px; font-weight: 700; min-width: 0; }
/* long option texts ("a, e, i, o, u mit ä, ö, ü") shorten instead of widening the column */
.ws-param select, .ws-param input[type=number], .ws-param input[type=text], .ws-param input[type=date] { border: 2px solid var(--karo); border-radius: 8px; padding: 6px 8px; font-weight: 400; background: #fff; width: 100%; min-width: 0; }
.ws-param-bool { display: flex; align-items: center; gap: 8px; }
/* multiple choice (letters, diphthongs): buttons to tick, over the whole width of the settings */
.ws-param-multi { grid-column: 1 / -1; border: 0; margin: 0; padding: 0; }
.ws-param-multi legend { padding: 0; margin-bottom: 3px; }
.ws-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.ws-chip { position: relative; cursor: pointer; }
.ws-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ws-chip span { display: inline-block; min-width: 2.1em; padding: 4px 7px; border: 2px solid var(--karo); border-radius: 8px; background: #fff; text-align: center; font-weight: 700; line-height: 1.2; }
.ws-chip input:checked + span { background: var(--sun); border-color: var(--ink); }
.ws-chip input:focus-visible + span { outline: 3px solid var(--sky); outline-offset: 1px; }

/* ------------------------------------------------ shared folder, text pages, account */
.shared-folder, .page-text { max-width: 1100px; margin: 0 auto; padding: 22px clamp(14px, 3vw, 32px) 40px; }
.page-text.account-page { max-width: 820px; }
.shared-head { margin-bottom: 20px; }
.shared-head .by { font-size: .6em; color: var(--ink-2); }
.eyebrow { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--ink-2); margin: 0; }
.eyebrow svg { width: 18px; height: 18px; }
.prose { max-width: 72ch; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(16px, 3vw, 34px); }
.prose h1 { margin-bottom: .6em; }
.prose h2 { margin-top: 1.4em; }
.prose p, .prose li { max-width: 70ch; }
.not-found { text-align: center; margin: 0 auto; }
.login-problem .item-actions { justify-content: center; align-items: center; }
.card-box { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px 18px; margin: 16px 0; box-shadow: var(--shadow); }
.card-box h2 { display: flex; align-items: center; gap: 8px; }
.card-box h2 svg { width: 22px; height: 22px; }
.account-who { display: flex; align-items: center; gap: 8px; font-size: 18px; flex-wrap: wrap; }
.account-who svg { width: 22px; height: 22px; }
.plan-badge { display: inline-block; padding: 2px 10px; border-radius: 8px; background: var(--karo); font-weight: 700; }
.plan-badge.is-plus { background: var(--sun); border: 2px solid var(--ink); }
.saved-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.saved-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border: 2px solid var(--karo); border-radius: 10px; }
.notice { background: #EEF2FA; border: 2px solid var(--karo); border-radius: 12px; padding: 10px 14px; }
.notice-ok { background: #E6F6EA; border-color: var(--grass); }
.notice-error { background: #FDECEE; border-color: var(--cherry); }
.notice svg { width: 20px; height: 20px; vertical-align: -4px; }
.plus-hero { display: flex; gap: 18px; align-items: center; margin-bottom: 10px; }
.plus-features { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 18px; }
.plus-features li { display: flex; gap: 10px; align-items: center; }
.plus-features svg { width: 22px; height: 22px; color: var(--grass); flex: none; }
.plus-buy { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0; }
.plus-option { display: grid; gap: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.plus-featured { background: var(--page); }
.plus-price { font: 800 20px var(--kid); margin: 0; }
.plan-badge.is-alles, .plan-badge.is-alles-aktion { background: var(--grass); color: var(--ink); }
/* promo codes (/code): the code typed from a flyer */
.code-form input[type=text] { border: 2px solid var(--ink); border-radius: 10px; padding: 8px 10px; background: #fff; width: 100%; max-width: 15em; font: 700 22px/1.2 ui-monospace, 'Cascadia Code', Consolas, monospace; letter-spacing: .06em; text-transform: uppercase; }
.code-step > :first-child { margin-top: 0; }
.code-step > :last-child { margin-bottom: 0; }

/* plans: pricing page (/preise) and plan choice (/konto/plus) */
.page-text.pricing-page, .page-text.plus-page { max-width: 1040px; }
.plan-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 20px 0; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; gap: 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.plan-card.is-featured { background: var(--page); }
.plan-card.is-current { outline: 4px solid var(--grass); outline-offset: 2px; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; flex-wrap: wrap; }
.plan-name { margin: 0; font: 800 22px/1.2 var(--kid); }
.plan-current { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 8px; background: var(--grass); border: 2px solid var(--ink); font-weight: 800; font-size: 14px; }
.plan-current svg { width: 16px; height: 16px; }
.plan-price { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.plan-amount { font: 800 20px var(--kid); }
.plan-or { color: var(--ink-2); }
.plan-features { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plan-features li { display: flex; gap: 8px; align-items: flex-start; }
.plan-features svg { width: 20px; height: 20px; color: var(--grass); flex: none; margin-top: 2px; }
.plan-actions { margin-top: auto; display: grid; gap: 8px; padding-top: 6px; }
.plan-actions .btn, .plan-buy .btn { width: 100%; justify-content: center; }
.plan-buy { margin: 0; }
.plan-once { display: grid; gap: 8px; margin-top: 4px; padding-top: 12px; border-top: 2px dashed var(--ink-2); }
.plan-once-text { margin: 0; font-weight: 700; }
.plan-once-action .btn { width: 100%; justify-content: center; }
.plan-once-quote { margin: 0; padding: 8px 12px; border: 2px solid var(--karo); border-radius: 12px; background: #EEF2FA; font-size: 15px; }
.plan-once-quote svg { width: 18px; height: 18px; vertical-align: -3px; }
.plan-once-note { margin: 0; font-size: 14px; color: var(--ink-2); }
.pricing-facts { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.pricing-facts li { display: flex; gap: 8px; align-items: flex-start; }
.pricing-facts svg { width: 20px; height: 20px; color: var(--grass); flex: none; margin-top: 2px; }
.pricing-compare { margin-top: 28px; }
.pricing-table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow); }
.pricing-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pricing-table th, .pricing-table td { padding: 10px 12px; border-bottom: 2px solid var(--karo); text-align: center; vertical-align: middle; }
.pricing-table tbody tr:last-child th, .pricing-table tbody tr:last-child td { border-bottom: 0; }
.pricing-table thead th { font: 800 18px var(--kid); background: var(--bg); }
.pricing-table thead th small { display: block; font: 400 13px var(--text); color: var(--ink-2); margin-top: 2px; }
.pricing-table tbody th { text-align: left; font-weight: 700; }
.pricing-table .pc-yes svg { width: 22px; height: 22px; color: var(--grass); }
.pricing-table .pc-no { color: var(--muted); font-weight: 800; }
.pricing-table .pc-text { font-size: 14px; }
.edu-box { margin-top: 28px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); padding: clamp(16px, 3vw, 26px); box-shadow: var(--shadow); }
.edu-box h2 { margin-top: 0; }
.edu-box h3 { margin: 0 0 6px; }
.edu-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 28px; }
.edu-who { margin: 6px 0 10px; padding-left: 1.2em; display: grid; gap: 4px; }
@media (max-width: 560px) {
  .pricing-table { font-size: 14px; }
  .pricing-table th, .pricing-table td { padding: 8px 6px; }
  .pricing-table thead th { font-size: 15px; }
  .pricing-table .pc-text { font-size: 12.5px; }
}

/* ------------------------------------------------ footer */
/* link groups (src/render/layout.js siteFooter): columns from 761 px, rows to open on phones;
   public/js/base.js opens them on wide screens, ::details-content does it before the script runs */
.site-footer { display: grid; gap: 12px; border-top: 2px solid var(--ink); background: var(--paper); padding: 26px clamp(14px, 3vw, 32px) 30px; margin-top: 20px; }
.footer-groups { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px 28px; }
@media (max-width: 1100px) { .footer-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fgroup > summary { display: block; list-style: none; margin: 0 0 10px; font: 800 17px/1.2 var(--kid); color: var(--ink); }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 15px; line-height: 1.35; }
.fgroup a { color: var(--ink-2); text-decoration: none; }
.fgroup a:hover { color: var(--tinte); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 761px) { .fgroup[open] > summary { pointer-events: none; } }
@media (min-width: 761px) { .fgroup::details-content { content-visibility: visible; } }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-top: 10px; padding-top: 16px; border-top: 1.5px solid var(--karo); font-size: 14px; }
.footer-legal a, .footer-legal .linklike { color: var(--ink-2); text-underline-offset: 3px; }
.footer-legal a:hover, .footer-legal .linklike:hover { color: var(--tinte); }
.footer-ai { margin: 0; max-width: 90ch; font-size: 13px; line-height: 1.45; color: var(--muted); }
.footer-ai a { color: inherit; }
.footer-brand { margin: 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.footer-brand a { color: inherit; }
@media (max-width: 760px) {
  .site-footer { padding-top: 6px; }
  .footer-groups { display: block; }
  .fgroup { border-bottom: 1.5px solid var(--karo); }
  .fgroup > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .fgroup > summary::after { content: ''; flex: none; width: 9px; height: 9px; margin: -5px 6px 0 0; border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .15s; }
  .fgroup[open] > summary::after { margin-top: 5px; transform: rotate(225deg); }
  .fgroup ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; padding: 0 0 12px; font-size: 16px; }
  .fgroup li a { display: block; padding: 7px 0; }
  .footer-legal { margin-top: 4px; padding-top: 6px; border-top: 0; gap: 4px 18px; font-size: 15px; }
  .footer-legal a, .footer-legal .linklike { display: inline-block; padding: 6px 0; }
}
/* "install as app" (src/pwa.js, public/js/pwa.js): shown only where the browser can install it */
.pwa-hint { margin: 0; font-size: 14px; color: var(--ink-2); }
.pwa-install { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; border: 0; background: none; color: var(--tinte); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.pwa-install svg { width: 18px; height: 18px; flex: none; }
.landing-foot .pwa-hint { flex-basis: 100%; }

/* ------------------------------------------------ landing */
.page-landing { background: var(--paper); }
.landing { display: grid; grid-template-rows: auto 1fr auto; min-height: 100dvh; }
.landing-head { display: flex; align-items: center; gap: 16px; padding: 10px clamp(14px, 3vw, 28px); border-bottom: 2px solid var(--ink); }
.landing-head h1 { font: 400 15px var(--text); margin: 0; color: var(--ink-2); }
.landing-head .lang-menu { margin-left: auto; }
.landing-main { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.half { position: relative; display: grid; grid-template-rows: auto auto 1fr; gap: 14px; padding: clamp(20px, 3.5vw, 44px); min-height: 0; overflow: hidden; }
.half h2 { margin: 0; line-height: 1.05; }
.half p { margin: 0; font-size: 18px; line-height: 1.45; max-width: 36ch; }
.half .btn { margin-top: 12px; }
.half-parents { background-color: var(--paper); background-image: linear-gradient(var(--karo) 1px, transparent 1px), linear-gradient(90deg, var(--karo) 1px, transparent 1px); background-size: 22px 22px; border-right: 2px solid var(--ink); }
.half-parents h2 { font: 800 clamp(30px, 3.4vw, 46px)/1.05 var(--text); }
.waiting { font-size: 16px !important; font-weight: 700; color: var(--tinte); min-height: 1.4em; margin-top: 8px !important; }
.stage { position: relative; min-height: 0; display: grid; align-items: end; }
.pv { display: grid; grid-template-columns: 24% 1fr 26%; gap: 10px; overflow: hidden; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; padding: 10px; height: 300px; box-shadow: 6px 6px 0 var(--karo); }
.pv-filters { display: flex; flex-direction: column; gap: 6px; }
.pv-filters span { font-size: 11px; font-weight: 700; border: 1.5px solid var(--ink); border-radius: 20px; padding: 3px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-filters span.on { background: var(--tinte); border-color: var(--tinte); color: #fff; }
.pv-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, minmax(0, 1fr)); gap: 6px; min-height: 0; }
.pv-thumbs img { width: 100%; height: 100%; min-height: 0; object-fit: contain; border: 1.5px solid var(--karo); border-radius: 6px; background: #fff; }
.pv-folder { min-height: 0; border-left: 2px dashed var(--karo); padding-left: 10px; display: flex; flex-direction: column; gap: 6px; }
.pv-folder b { font-size: 12px; }
.pv-folder img { height: 32%; width: auto; align-self: flex-start; aspect-ratio: 210 / 297; object-fit: contain; border: 1.5px solid var(--ink); background: #fff; padding: 3px; }
.pv-print { margin-top: auto; font-size: 11px; font-weight: 700; background: var(--tinte); color: #fff; border-radius: 8px; padding: 6px; text-align: center; }
.half-kids { background: var(--sun); }
.half-kids h2 { font: 800 clamp(38px, 4.6vw, 64px)/1 var(--kid); }
.half-kids p { font-weight: 700; }
.btn-kid { justify-self: start; display: inline-block; margin-top: 12px; font: 800 24px var(--kid); background: var(--cherry); color: #fff; border: 4px solid var(--ink); border-radius: 18px; padding: 12px 26px; box-shadow: 0 6px 0 var(--ink); text-decoration: none; }
.btn-kid:hover { color: #fff; background: #E4404F; }
.btn-kid:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.tablet { position: relative; justify-self: center; min-width: 0; width: min(100%, 520px); aspect-ratio: 4 / 3; background: var(--ink); border-radius: 26px; padding: 14px; box-shadow: 0 10px 0 rgb(30 42 68 / .25); }
.screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 12px; background: var(--page); }
.screen iframe { position: absolute; top: 0; left: 0; width: 1024px; height: 768px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .45)); pointer-events: none; }
.sticker { position: absolute; width: clamp(70px, 9vw, 120px); pointer-events: none; z-index: 2; }
.s1 { top: 18px; right: 18px; transform: rotate(8deg); }
.s2 { bottom: 34%; left: -30px; width: clamp(80px, 10vw, 140px); transform: rotate(-10deg); }
.s3 { bottom: 12px; right: 10px; transform: rotate(-6deg); }
.landing-foot { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px clamp(14px, 3vw, 28px); font-size: 14px; border-top: 2px solid var(--ink); }
.landing-foot nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.landing-foot .legal { margin-left: auto; display: flex; flex-wrap: wrap; gap: 14px; }
.landing-foot .footer-brand { flex-basis: 100%; margin: 0; font-size: 12px; }

/* ------------------------------------------------ responsive */
@media (max-width: 1100px) {
  .catalog-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: min(360px, 92vw); max-height: none; border-right: 2px solid var(--ink); transform: translateX(-105%); transition: transform .22s ease; box-shadow: 8px 0 30px rgb(30 42 68 / .25); }
  .filters.is-open { transform: none; }
  .filters-close { display: inline-grid; }
  .btn-filters { display: inline-flex; }
  .main-nav a:not(.nav-kids) { display: none; }
}
@media (max-width: 860px) {
  .item-layout { grid-template-columns: minmax(0, 1fr); }
  .landing-main { grid-template-columns: minmax(0, 1fr); }
  .half-parents { border-right: 0; border-bottom: 2px solid var(--ink); }
  .pv, .tablet { display: none; }
  .half { grid-template-rows: auto auto; align-content: center; min-height: 40dvh; }
  .landing-head h1 { display: none; }
  .s2 { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .bundle-row { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; }
  .site-header { gap: 8px; padding: 8px 10px; }
  .brand-name { font-size: 22px; }
  .brand-mark { width: 28px; height: 28px; }
  .main-nav { margin-left: 0; }
  .main-nav .nav-kids { padding: 4px 8px; font-size: 15px; }
  .hbtn { padding: 6px 8px; min-height: 40px; }
  .hbtn-label { display: none; }
  .hbtn-lang .lang-code { display: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { box-shadow: 3px 3px 0 var(--ink); }
  .card-title { font-size: 14px; padding: 6px 8px 0; }
  .card-meta { padding: 2px 8px 8px; font-size: 12px; }
  .card-add { width: 40px; height: 40px; top: 6px; right: 6px; }
  .card-media { padding: 6px; }
  .wish-row { grid-template-columns: 1fr; }
  .folder-panel { width: 100vw; }
  .choices { grid-template-columns: 1fr; }
  .facet-stickers .facet-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .main-nav .nav-long { display: none; }
  .main-nav .nav-short { display: inline; }
  .brand-name { font-size: 20px; }
  .header-actions { gap: 5px; }
  .hbtn { padding-inline: 7px; }
  .lang-caret { display: none; }
  .results-toolbar { gap: 8px 12px; }
}
/* small phones: the dino alone is the logo (the name stays in the link's label), so "Kinder",
   language, share, account and folder fit in one row */
@media (max-width: 429px) {
  .brand-name { display: none; }
  .brand-mark { width: 34px; height: 34px; }
}
@media (max-width: 340px) { .hbtn { padding-inline: 5px; } .brand-mark { width: 28px; height: 28px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ------------------------------------------------ print (see public/js/print.js) */
.print-root { display: none; }
@media print {
  @page { size: A4 portrait; margin: 0; }
  html, body { background: #fff !important; }
  body > *:not(.print-root) { display: none !important; }
  .print-root { display: block !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.p-page { position: relative; width: 210mm; height: 297mm; overflow: hidden; background: #fff; color: #000; page-break-after: always; break-after: page; display: flex; flex-direction: column; padding: 11mm 12mm 9mm; font-family: var(--text); }
.p-page:last-child { page-break-after: auto; break-after: auto; }
.p-landscape { width: 297mm; height: 210mm; page: bp-landscape; }
.p-head { display: flex; align-items: flex-end; gap: 8mm; font-size: 11pt; min-height: 9mm; }
.p-head .p-title { font: 800 15pt/1.1 var(--kid); flex: 1; }
.p-head .p-line { display: inline-flex; align-items: flex-end; gap: 2mm; }
.p-head .p-line i { display: inline-block; width: 42mm; border-bottom: .3mm solid #000; height: 5mm; }
.p-head .p-line.p-date i { width: 26mm; }
.p-head .p-for { font: 800 14pt var(--kid); }
.p-instruction { margin: 2mm 0 0; font-size: 12pt; font-weight: 700; }
.p-tasks { margin: 2mm 0 0; padding-left: 6mm; font-size: 11pt; columns: 2; column-gap: 8mm; }
.p-body { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; margin: 3mm 0; }
.p-body img { max-width: 100%; max-height: 100%; object-fit: contain; }
.p-body svg { width: 100%; height: 100%; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 4mm; font-size: 8pt; color: #333; min-height: 12mm; }
.p-foot img { width: 12mm; height: 12mm; }
.p-foot .p-domain { font-weight: 700; }
.p-half-wrap { display: grid; grid-template-rows: 1fr 1fr; height: 100%; }
.p-page.p-halves { padding: 0; }
.p-half { position: relative; display: flex; flex-direction: column; padding: 8mm 11mm 5mm; min-height: 0; }
.p-half + .p-half { border-top: .3mm dashed #999; }
.p-landscape .p-half + .p-half { border-top: 0; border-left: .3mm dashed #999; }
.p-half .p-foot { min-height: 9mm; }
.p-half .p-foot img { width: 9mm; height: 9mm; }
.p-cover { align-items: center; justify-content: center; text-align: center; gap: 8mm; }
.p-cover .c-title { font: 800 34pt/1.1 var(--kid); }
.p-cover .c-name { font: 900 64pt/1 var(--kid); color: #fff; -webkit-text-stroke: 1.6mm #000; paint-order: stroke fill; letter-spacing: .02em; word-break: break-word; }
.p-cover .c-by { font: 700 16pt var(--kid); }
.p-cover .c-frame { position: absolute; inset: 10mm; border: 1.2mm solid #000; border-radius: 10mm; }
.p-cover .c-mascot { width: 55mm; }
.p-cover .c-thumbs { display: flex; gap: 4mm; flex-wrap: wrap; justify-content: center; max-width: 170mm; }
.p-cover .c-thumbs img { width: 30mm; height: 38mm; object-fit: contain; border: .4mm solid #000; border-radius: 2mm; padding: 1mm; }
.p-solutions-title { font: 800 18pt var(--kid); margin: 0 0 4mm; }
.p-solution-grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 5mm; min-height: 0; }
.p-solution-grid figure { margin: 0; display: flex; flex-direction: column; min-height: 0; border: .3mm solid #bbb; border-radius: 2mm; padding: 2mm; }
.p-solution-grid figcaption { font-size: 8pt; font-weight: 700; }
.p-solution-grid svg { flex: 1; width: 100%; min-height: 0; }

/* settings that do not matter for the current choice (param.when) */
.ws-param[hidden] { display: none; }

/* note on ergo item pages */
.ergo-note { display: flex; gap: 8px; align-items: flex-start; max-width: 60ch; padding: 8px 12px; background: #EEF7F0; border: 2px solid color-mix(in srgb, var(--grass) 60%, white); border-radius: 12px; font-size: 14px; line-height: 1.4; }
.ergo-note svg { flex: none; width: 20px; height: 20px; margin-top: 1px; }

/* the ergo page */
.ergo-page, .ergo-check { max-width: 1180px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 32px) 48px; }
.ergo-page > section, .ergo-page > aside, .ergo-page > .ergo-two { margin: 0 0 34px; }
.ergo-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 28px; align-items: center; padding: 22px clamp(16px, 3vw, 32px); background: var(--page); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.ergo-hero-icon { width: 150px; height: 150px; object-fit: contain; }
.ergo-lead { font-size: 19px; max-width: 62ch; }
.ergo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.ergo-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ergo-card { padding: 14px 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink); }
.ergo-card h3 { display: flex; align-items: center; gap: 8px; font: 800 19px var(--kid); }
.ergo-card h3 svg { width: 22px; height: 22px; }
.ergo-card p { margin: 0; }
.ergo-area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 14px; }
.ergo-area { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px; background: color-mix(in srgb, var(--c, var(--karo)) 12%, white); border: 2px solid var(--ink); border-radius: var(--r); color: var(--ink); text-decoration: none; }
.ergo-area:hover { color: var(--ink); background: color-mix(in srgb, var(--c, var(--karo)) 26%, white); box-shadow: 3px 3px 0 var(--ink); }
.ergo-area img { width: 72px; height: 72px; object-fit: contain; }
.ergo-area-text { display: grid; gap: 4px; min-width: 0; }
.ergo-area-text strong { font: 800 18px/1.15 var(--kid); overflow-wrap: anywhere; hyphens: auto; }
.ergo-area-text span { font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.ergo-area-text .ergo-area-count { font-weight: 700; color: var(--tinte); }
.ergo-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ergo-steps ol { margin: 0; padding-left: 1.4em; display: grid; gap: 8px; }
.ergo-design ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; }
.ergo-design li { display: flex; gap: 8px; align-items: flex-start; }
.ergo-design li svg { flex: none; width: 20px; height: 20px; color: var(--grass); margin-top: 2px; }
.ergo-disclaimer { padding: 14px 18px; background: #EEF2FA; border: 2px solid var(--karo); border-radius: var(--r); }
.ergo-disclaimer h2 { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.ergo-disclaimer h2 svg { width: 22px; height: 22px; }
.ergo-disclaimer p { margin: 0; max-width: 80ch; }
@media (max-width: 860px) {
  .ergo-cards, .ergo-two, .ergo-design ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .ergo-hero { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .ergo-hero-icon { width: 96px; height: 96px; }
  .ergo-lead { font-size: 17px; }
}

/* expert check page */
.ergo-check-block { margin: 0 0 30px; padding: 14px 18px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); }
.ergo-check-q { list-style: none; padding: 0; display: grid; gap: 6px; }
.ergo-check-q li { display: flex; gap: 10px; align-items: flex-start; }
.ergo-check-q .box { flex: none; width: 16px; height: 16px; margin-top: 3px; border: 2px solid var(--ink); border-radius: 3px; }
.ergo-check-previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ergo-check-previews a { display: grid; gap: 4px; font-size: 13px; color: var(--ink); text-decoration: none; }
.ergo-check-previews img { width: 100%; aspect-ratio: 210 / 297; object-fit: contain; background: #fff; border: 1.5px solid var(--ink); border-radius: 6px; }

/* ---- everyday helpers (Alltagshelfer) ---- */
.ws-kids { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: 0 0 .9rem; }
.ws-kids > span { font: 800 1rem var(--kid); }
.ws-kids-list { display: flex; gap: .45rem; flex-wrap: wrap; }
.ws-kid { display: inline-flex; align-items: center; gap: .45rem; padding: .2rem .8rem .2rem .2rem; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: 700 .95rem var(--kid); cursor: pointer; }
.ws-kid:hover { background: color-mix(in srgb, var(--sun) 30%, white); }
.ws-kid[aria-pressed="true"] { background: var(--sun); box-shadow: 0 2px 0 var(--ink); }
.ws-kid .ch-av { --av: 30px; border-width: 2px; }
.p-helper .p-body { margin: 0 0 3mm; }
.p-pbn .p-body svg { width: 100%; height: 100%; }
.p-pbn-key { display: flex; flex-direction: column; align-items: center; gap: 1.5mm; margin: 0 0 2mm; }
.p-pbn-key .pbn-legend { margin: 0; gap: 2mm 6mm; font-size: 11pt; color: #000; }
.p-pbn-key .pbn-dot { border-width: .35mm; border-color: #222; width: 7mm; height: 7mm; font-size: 10.5pt; }
.p-pbn-key .pbn-long { width: auto; min-width: 7mm; padding: 0 1.6mm; border-radius: 3.5mm; }
.p-pbn-key .pbn-note { margin: 0; font-size: 8.5pt; color: #555; }
/* a fuse bead pattern: the beads in their real size (the SVG carries its size in mm) */
.p-beads .p-body { align-items: center; }
.p-bead-key { display: flex; flex-direction: column; align-items: center; gap: 1.6mm; margin: 0 0 2mm; }
.p-bead-key .bead-legend { margin: 0; gap: 1.6mm 6mm; font-size: 10.5pt; color: #000; }
.p-bead-key .bead-dot { width: 5mm; height: 5mm; }
.p-bead-key .bead-n { background: none; padding: 0; }
.p-bead-dims { font-size: 10pt; font-weight: 700; }
.p-bead-check { display: inline-flex; align-items: center; gap: 2.5mm; font-size: 8pt; color: #555; }
.p-bead-check i { display: inline-block; width: 50mm; height: 1.6mm; background: #222; }
.p-bead-key .pbn-note { margin: 0; font-size: 8.5pt; color: #555; }

/* ------------------------------------------------ learning games page for parents (/lernspiele) */
.games-page { max-width: 1180px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 32px) 48px; }
.games-page > section, .games-page > aside, .games-page > .ergo-two { margin: 0 0 34px; }
.games-hero .btn-kid { display: inline-block; }
.games-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 12px; padding: 0; list-style: none; }
.games-item { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 6px 16px; padding: 14px; background: color-mix(in srgb, var(--c) 14%, white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink); }
.games-item > img { grid-row: 1 / 3; width: 120px; height: 120px; object-fit: contain; }
.games-item h3 { margin: 0 0 4px; font: 800 21px/1.15 var(--kid); }
.games-item p { margin: 0 0 6px; }
.games-meta { font-size: 15px; color: var(--ink-2); }
.games-input { display: inline-flex; align-items: center; gap: 4px; margin-right: 12px; }
.games-input svg { width: 22px; height: 22px; }
.games-worlds { display: flex; flex-wrap: wrap; gap: 6px; }
.games-worlds span { padding: 1px 10px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); font-size: 14px; font-weight: 700; }
.games-play { justify-self: start; }
@media (max-width: 820px) {
  .games-list { grid-template-columns: minmax(0, 1fr); }
  .games-item { grid-template-columns: 84px minmax(0, 1fr); }
  .games-item > img { width: 84px; height: 84px; grid-row: 1; }
  .games-play { grid-column: 1 / -1; justify-self: stretch; }
}

/* ------------------------------------------------ the mascot comes alive (public/js/mascot-clip.js) */
.mascot-clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; opacity: 0; pointer-events: none; }
:has(> .mascot-clip) { position: relative; }
.is-clip > .mascot-clip { opacity: 1; }
.is-clip > img { visibility: hidden; animation: none !important; }

/* ------------------------------------------------ the Rombalu song (/lied) and its teaser on the start page */
.song-page { max-width: 1180px; margin: 0 auto; padding: 18px clamp(16px, 3vw, 32px) 48px; }
.song-page > section, .song-page > .song-stage, .song-page > .ergo-two { margin: 0 0 34px; }
.song-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 28px; align-items: center; padding: 22px clamp(16px, 3vw, 32px); background: var(--page); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.song-hero-icon { width: 120px; height: 120px; object-fit: contain; }
.song-hero h1 { margin: 0; }
.song-subtitle { margin: .1em 0 0; font: 800 clamp(20px, 2.4vw, 28px)/1.15 var(--kid); color: var(--tinte); }
.song-lead { font-size: 19px; max-width: 62ch; margin: .5em 0 0; }
.song-lang { display: inline-block; margin: .7em 0 0; padding: 6px 12px; background: var(--paper); border: 2px dashed var(--ink); border-radius: 10px; font-weight: 700; }

.song-stage { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); gap: 20px; align-items: stretch; }
.song-player { margin: 0; display: grid; gap: 10px; align-content: start; }
.song-video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--ink); border: 3px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); }
.song-video.is-upright { aspect-ratio: 9 / 16; width: auto; max-width: 100%; max-height: 80vh; justify-self: center; }
/* en/fr/es: "coming soon in your language", above the video */
.song-soon { display: flex; align-items: center; gap: 12px; margin: 0; padding: 10px 16px; background: var(--sun); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink); font-weight: 600; line-height: 1.35; animation: song-soon-in .5s ease-out .3s both; }
.song-soon svg { flex: none; width: 30px; height: 30px; color: var(--tinte); }
.song-soon strong { font: 800 19px/1.25 var(--kid); }
@keyframes song-soon-in { from { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .song-soon { animation: none; } }
.song-share-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.song-length { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink-2); }
.song-length svg { width: 20px; height: 20px; color: var(--tinte); }
/* the lyrics are as tall as the video next to them (contain: size) and scroll inside */
.song-lyrics { display: flex; flex-direction: column; min-height: 0; contain: size; padding: 14px 12px 8px 16px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink); }
.song-lyrics h2 { margin: 0 0 2px; }
.song-lyrics .hint { margin: 0 0 6px; font-size: 14px; }
.song-lyrics-scroll { position: relative; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
.song-part h3 { margin: 12px 0 4px; font: 800 13px var(--text); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.song-part ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.song-line { display: block; width: 100%; padding: 5px 10px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-align: left; font: 700 17px/1.35 var(--text); transition: background-color .2s, transform .2s; transform-origin: left center; }
.song-line:hover { background: #F3F6FC; }
.song-line.is-now { background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); transform: scale(1.03); }
.song-part-chorus .song-line { font: 800 18px/1.3 var(--kid); }
.song-choir { color: var(--plum); font-weight: 800; }
.song-line.is-choir { font-family: var(--kid); }
/* lyrics | notes: two tabs in the same box */
.song-tabs { display: flex; gap: 6px; margin: 4px 0 8px; }
.song-tabs button { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font: 800 15px/1.2 var(--kid); }
.song-tabs button svg { width: 18px; height: 18px; }
.song-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.song-panel:not([hidden]) { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.song-notes .sn-part h3 { margin: 12px 0 2px; font: 800 13px var(--text); text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.song-notes .sn-svg { display: block; width: 100%; height: auto; color: var(--ink); }
.song-notes .sn-svg text { font-family: var(--text); }
.song-notes .nh { cursor: pointer; transition: color .1s; }
.song-notes .nh:hover { color: var(--tinte); }
.song-notes .nh.is-now { color: var(--cherry); filter: drop-shadow(0 0 1.2px var(--sun)); }
.song-notes .sn-then { margin: 10px 0 6px; font-weight: 700; color: var(--ink-2); }
.song-sheets-lead { margin: -4px 0 14px; color: var(--ink-2); }
.song-sheets .song-dl-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .song-sheets .song-dl-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.song-dl-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.song-dl { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: 1fr auto; gap: 12px 14px; padding: 14px; background: color-mix(in srgb, var(--c) 14%, white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: 3px 3px 0 var(--ink); }
.song-dl-icon { display: grid; place-items: center; width: 56px; height: 56px; background: var(--c); color: #fff; border: 2px solid var(--ink); border-radius: 14px; }
.song-dl-icon svg { width: 32px; height: 32px; }
.song-dl-text { display: grid; gap: 2px; align-content: start; min-width: 0; }
.song-dl-text strong { font: 800 21px/1.1 var(--kid); }
.song-dl-text span { font-size: 15px; color: var(--ink-2); }
.song-dl-text .song-dl-size { font-weight: 700; color: var(--ink); }
.song-dl .btn { grid-column: 1 / -1; }
.song-move ol { display: grid; gap: 8px; margin: 0; padding-left: 1.4em; }
.song-good { padding: 14px 18px; background: #EEF2FA; border: 2px solid var(--karo); border-radius: var(--r); }
.song-good p { margin: 0 0 .6em; }
.song-more h2 { margin-bottom: 0; }
@media (max-width: 900px) {
  .song-stage { grid-template-columns: minmax(0, 1fr); }
  .song-lyrics { contain: none; max-height: 26rem; }
  .song-dl-list, .song-sheets .song-dl-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .song-hero { grid-template-columns: minmax(0, 1fr); }
  .song-hero-icon { width: 84px; height: 84px; }
  .song-lead { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .song-line { transition: none; } .song-line.is-now { transform: none; } }

.song-card { display: grid; grid-template-columns: 200px minmax(0, 1fr) auto; align-items: center; gap: 12px 18px; margin: 0 0 20px; padding: 10px 16px 10px 10px; background: color-mix(in srgb, var(--sky) 22%, white); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.song-card:hover { color: var(--ink); background: color-mix(in srgb, var(--sky) 32%, white); }
.song-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border: 2px solid var(--ink); border-radius: 10px; }
.song-card-media video, .song-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.song-card-play { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; color: var(--cherry); }
.song-card-play svg { width: 100%; height: 100%; }
.song-card-text { display: grid; gap: 2px; min-width: 0; }
.song-card-text strong { font: 800 clamp(22px, 2.4vw, 30px)/1.05 var(--kid); }
.song-card-text > span:last-child { font-weight: 700; overflow-wrap: anywhere; }
.song-card-new { justify-self: start; padding: 1px 9px; background: var(--cherry); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font: 800 12px/1.5 var(--text); text-transform: uppercase; letter-spacing: .06em; }
.song-card .song-card-btn { margin: 0; font-size: 20px; padding: 8px 20px; }
@media (max-width: 640px) {
  .song-card { grid-template-columns: 128px minmax(0, 1fr); padding: 8px 12px 8px 8px; }
  .song-card .song-card-btn { grid-column: 1 / -1; justify-self: stretch; text-align: center; }
}
/* the directory of the songs (/lied): a card per song, the poster big */
.song-back { margin: 0 0 12px; }
.song-back a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 800; text-decoration: none; }
.song-back a:hover { background: var(--sun); color: var(--ink); }
.songs-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; margin: 0 0 34px; padding: 0; list-style: none; }
.songs-list li { display: grid; min-width: 0; }
.songs-card { display: grid; grid-template-rows: auto 1fr auto; gap: 12px; padding: 10px 10px 14px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .12s; }
.songs-card:hover { color: var(--ink); background: #FFFBEA; transform: translateY(-3px); }
.songs-card-media { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); border: 2px solid var(--ink); border-radius: calc(var(--r) - 6px); }
.songs-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.songs-card-media .song-card-play { right: 10px; bottom: 10px; width: 52px; height: 52px; }
.songs-card-length { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px 2px 7px; background: #fff; border: 2px solid var(--ink); border-radius: 999px; font: 800 14px/1.5 var(--text); }
.songs-card-length svg { width: 16px; height: 16px; color: var(--tinte); }
.songs-card-text { display: grid; gap: 4px; align-content: start; padding: 0 6px; min-width: 0; }
.songs-card-text strong { font: 800 clamp(23px, 2.4vw, 29px)/1.1 var(--kid); overflow-wrap: anywhere; }
.songs-card-text > span:last-child { font-size: 17px; color: var(--ink-2); }
.songs-card-btn { justify-self: start; margin: 0 6px; }
@media (max-width: 640px) { .songs-card-btn { justify-self: stretch; text-align: center; } }
@media (prefers-reduced-motion: reduce) { .songs-card { transition: none; } .songs-card:hover { transform: none; } }

/* about us: photo */
.about-photo { max-width: 70ch; margin: 0 0 1.4em; }
.about-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--karo); border: 2px solid var(--ink); border-radius: var(--r); }
.about-photo figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 480px) {
  .about-photo { margin-bottom: 1em; }
  .about-photo img { border-radius: 10px; }
}

/* ------------------------------------------------------------------ story books (/buecher, src/render/books.js) */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 22px 18px; }
.book-card { display: grid; grid-template-rows: auto auto 1fr auto auto; gap: 5px; padding: 10px 10px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; transition: transform .12s; }
.book-card:hover { color: var(--ink); background: #FFFBEA; transform: translateY(-2px); }
/* the cover as a book: a spine on the left and the pages behind it */
.book-card-cover { position: relative; display: block; aspect-ratio: 1; margin: 0 9px 10px 0; border-radius: 4px 10px 10px 4px; box-shadow: 4px 4px 0 #fff, 5px 5px 0 var(--ink), 8px 8px 0 #fff, 9px 9px 0 var(--ink); }
.book-card-cover img { display: block; width: 100%; height: 100%; object-fit: cover; border: 2px solid var(--ink); border-radius: 4px 10px 10px 4px; }
.book-card-cover::before { content: ''; position: absolute; inset: 2px auto 2px 2px; width: 9px; background: linear-gradient(90deg, rgb(0 0 0 / .28), rgb(255 255 255 / .18) 60%, transparent); border-radius: 3px 0 0 3px; }
.book-card-title { margin: 0; font: 800 19px/1.15 var(--kid); overflow-wrap: anywhere; hyphens: auto; }
.book-card-text { font-size: 14px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.book-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; font-weight: 700; color: var(--tinte); }
.book-card-age { color: var(--ink); }
.book-card-types { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.book-type { display: inline-block; padding: 2px 9px; border: 1.5px solid var(--ink); border-radius: 20px; background: color-mix(in srgb, var(--c, var(--karo)) 25%, white); font-size: 12px; font-weight: 800; color: var(--ink); }
@media (max-width: 640px) {
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .book-card { padding: 8px; }
  .book-card-title { font-size: 16px; }
  .book-card-text { font-size: 13px; -webkit-line-clamp: 2; line-clamp: 2; }
}
/* the link box on the start page: square covers */
.books-card { background: color-mix(in srgb, var(--plum) 16%, white); }
.books-card:hover { background: color-mix(in srgb, var(--plum) 26%, white); }
.books-card-covers img { width: 66px; height: 66px; object-fit: cover; border-radius: 3px 8px 8px 3px; }

/* a book's page */
.book-page { max-width: 1180px; margin: 0 auto; padding: 16px clamp(12px, 3vw, 32px) 40px; }
.book-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(18px, 4vw, 44px); align-items: start; }
.book-hero-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 2.5px solid var(--ink); border-radius: 6px 16px 16px 6px; box-shadow: 6px 6px 0 #fff, 8px 8px 0 var(--ink), 12px 12px 0 #fff, 14px 14px 0 var(--ink); }
.book-hero-info h1 { margin: 6px 0 8px; }
.book-teaser { font-size: 19px; line-height: 1.4; margin: 0 0 14px; }
.book-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px; }
.book-facts div { display: grid; }
.book-facts dt { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.book-facts dd { margin: 0; font: 800 18px/1.2 var(--kid); }
.book-read-btn { margin-bottom: 20px; }
.book-pdf h2 { font-size: 21px; margin-bottom: 8px; }
.book-formats { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.book-format { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; background: var(--paper); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); color: var(--ink); text-decoration: none; }
.book-format:hover { background: #FFFBEA; color: var(--ink); }
.book-format-text { display: grid; gap: 1px; }
.book-format-text strong { font: 800 17px/1.2 var(--kid); }
.book-format-text span { font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.book-format-dl { width: 24px; height: 24px; color: var(--tinte); }
/* little pictures of the formats: a square book, a folded booklet, a single A4 sheet */
.book-format-icon { position: relative; justify-self: center; display: block; border: 2px solid var(--ink); background: color-mix(in srgb, var(--sun) 60%, white); }
.book-format-buch .book-format-icon { width: 36px; height: 36px; border-radius: 3px 7px 7px 3px; box-shadow: 3px 3px 0 #fff, 4px 4px 0 var(--ink); }
.book-format-heft .book-format-icon { width: 40px; height: 30px; border-radius: 3px; background: linear-gradient(90deg, color-mix(in srgb, var(--sky) 45%, white) 49%, var(--ink) 49% 51%, color-mix(in srgb, var(--sky) 45%, white) 51%); }
.book-format-a4 .book-format-icon { width: 28px; height: 38px; border-radius: 2px; background: color-mix(in srgb, var(--grass) 35%, white); }
.book-langs { margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.book-about { max-width: 760px; margin: 34px 0 10px; }
.book-about p { font-size: 18px; line-height: 1.55; }
.book-about .book-syl-note { display: flex; gap: 10px; align-items: baseline; font-size: 16px; }
.book-syl-sample { font: 800 20px var(--kid); white-space: nowrap; }
.book-about .book-ai { font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .book-hero { grid-template-columns: minmax(0, 1fr); }
  .book-hero-cover { max-width: 420px; }
}

/* the reader: with JavaScript one page at a time (public/js/books.js), without all pages below each other */
.book-reader { margin: 26px 0; padding: clamp(12px, 2.5vw, 26px); background: var(--page); border: 2px solid var(--ink); border-radius: var(--r); box-shadow: var(--shadow); scroll-margin-top: calc(var(--header-h) + 10px); }
.book-reader:focus { outline: none; }
.reader-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 12px; }
.reader-bar h2 { margin: 0; }
.reader-syl { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.reader-syl input { width: 20px; height: 20px; }
.reader-pages { display: grid; gap: 28px; }
.reader-page { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(14px, 3vw, 32px); align-items: center; margin: 0; }
.reader-page img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border: 2px solid var(--ink); border-radius: 14px; background: #fff; }
.reader-page figcaption { display: grid; gap: 12px; }
.reader-chapter { font: 800 22px/1.2 var(--kid); color: var(--tinte); }
.reader-text { font-size: clamp(19px, 2vw, 24px); line-height: 1.55; }
/* reading books: big letters, as in the PDF */
.reader-level-1 .reader-text { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.45; }
.reader-level-2 .reader-text { font-size: clamp(24px, 2.8vw, 32px); line-height: 1.5; }
.reader-ask { font-weight: 800; color: var(--tinte); font-size: 18px; }
.reader-ask::before { content: '?'; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 8px; border-radius: 50%; background: var(--orange); color: #fff; font: 800 15px var(--kid); }
.reader-box { display: block; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 12px; background: var(--paper); font-size: 16px; line-height: 1.45; }
.reader-box strong { display: block; font: 800 15px var(--kid); color: var(--tinte); }
.reader-question { background: #E9F0FE; }
.reader-end { font: 800 20px var(--kid); color: var(--tinte); text-align: center; }
/* syllables in two colours (only in reading books, can be switched off) */
.is-syl .s0, .book-syl-sample .s0 { color: #1F5BD8; }
.is-syl .s1, .book-syl-sample .s1 { color: #D7263D; }
.reader-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.reader-count { font-weight: 800; color: var(--ink-2); }
.reader-nav .btn[disabled] { opacity: .4; pointer-events: none; }
@media (max-width: 760px) {
  .reader-page { grid-template-columns: minmax(0, 1fr); }
  .reader-nav .btn span { display: none; }
}
.book-more { margin-top: 30px; }

/* ================================================================== seasons
   Saison-Themes (src/seasons.js): decoration with pseudo-elements (pointer-events:none), plus what
   src/render/season.js puts into the page while a theme is on. Only the parents' pages get the class
   on <html>; print hides everything. Motion only with prefers-reduced-motion: no-preference, slow.
   A new theme: a block `.season-<id> …` here, an entry in SEASONS and its pictures in
   /img/season/<id>/.

   Weihnachten, "Ein Licht für Rombalu" – a winter evening on Rombalu's island:
   - the header is the night sky; a light garland hangs from it into the page (two frames that
     cross-fade), so every page starts a little lower (--season-gap) and nothing touches the bulbs;
   - snow falls behind the paper of the page;
   - the catalogue has a shelf with the ways to everything for Advent and Christmas;
   - above the footer Rombalu and his friends stand with their candles in the snow, under the star
     he draws in the song: the one big picture of the theme, and the way to the Christmas song.
   The drawings come from scripts/season-art.js. */
.season-scene, .season-shelf { display: none; }

.season-weihnachten { --garland-w: 320px; --season-gap: 18px; --night-top: #111A33; --night-low: #22335C; --night-ink: #0A1120; }
@media (min-width: 900px) { .season-weihnachten { --garland-w: 368px; --season-gap: 26px; } }

/* the page: a cold winter light, snow falling behind everything that has its own paper */
.season-weihnachten body { background: linear-gradient(180deg, #DCE7F6 0, #EEF3FA 560px, #F3F7FC 100%) #F3F7FC; }
.season-weihnachten body::before, .season-weihnachten body::after { content: ''; position: fixed; left: 0; right: 0; z-index: -1; pointer-events: none; will-change: transform, translate; }
.season-weihnachten body::before { top: -480px; height: calc(100lvh + 480px); background: url(/img/season/weihnachten/snow-a.svg) 0 0 / 560px 480px; }
.season-weihnachten body::after { top: -720px; height: calc(100lvh + 720px); background: url(/img/season/weihnachten/snow-b.svg) 130px 0 / 980px 720px; }
.season-weihnachten.is-app body::before, .season-weihnachten.is-app body::after { display: none; }
/* room for the garland: a transparent edge on top of every page (it leaves the layout inside alone) */
.season-weihnachten #main { border-top: var(--season-gap) solid transparent; }
.season-weihnachten.is-app #main { border-top: 0; }
@media (min-width: 1101px) { .season-weihnachten .filters-top { padding-top: calc(18px + var(--season-gap)); } }

/* the header (and the small one of /start): night sky with stars, the light garland hanging from
   its lower edge */
.season-weihnachten .landing-head { position: relative; z-index: 1; }
.season-weihnachten .landing-head h1 { color: #D5E0F4; }
.season-weihnachten :is(.site-header, .landing-head) { background: url(/img/season/weihnachten/stars.svg) 0 0 / 260px 90px, linear-gradient(180deg, var(--night-top) 0%, var(--night-low) 100%); border-bottom-color: #0E1629; }
.season-weihnachten :is(.site-header, .landing-head)::before, .season-weihnachten :is(.site-header, .landing-head)::after { content: ''; position: absolute; left: 0; right: 0; top: calc(100% - 2px); height: calc(var(--garland-w) * .13125); z-index: 1; pointer-events: none; background: url(/img/season/weihnachten/garland-a.svg) 50% 0 / var(--garland-w) 100% repeat-x; }
.season-weihnachten :is(.site-header, .landing-head)::after { background-image: url(/img/season/weihnachten/garland-b.svg); opacity: 0; }
.season-weihnachten :is(.site-header, .landing-head) :focus-visible { outline-color: var(--sun); }
.season-weihnachten :is(.site-header, .landing-head) .brand, .season-weihnachten :is(.site-header, .landing-head) .brand:hover { color: #fff; }
.season-weihnachten .main-nav a:not(.nav-kids) { color: #fff; }
.season-weihnachten .main-nav a:not(.nav-kids):hover { background: rgb(255 255 255 / .13); color: #fff; }
.season-weihnachten .main-nav a[aria-current="page"]:not(.nav-kids) { background: rgb(255 255 255 / .2); }
.season-weihnachten .hbtn-folder { box-shadow: 3px 3px 0 var(--night-ink); }
.season-weihnachten .main-nav .nav-kids { box-shadow: 0 0 0 3px rgb(255 203 61 / .25), 0 0 18px rgb(255 203 61 / .35); }
.season-weihnachten .brand { position: relative; }
.season-weihnachten .brand::after { content: ''; position: absolute; left: 25px; top: -5px; width: 14px; height: 14px; pointer-events: none; filter: drop-shadow(0 0 5px rgb(255 220 120 / .8)); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.9 6.9 7.4.6-5.6 4.8 1.7 7.2L12 17.1 5.6 21l1.7-7.2L1.7 9l7.4-.6z' fill='%23FFCB3D' stroke='%231E2A44' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 480px) { .season-weihnachten .brand::after { left: 22px; width: 12px; height: 12px; top: -4px; } }
/* the menu panel on phones opens over the garland */
.season-weihnachten .nav-menu-panel { z-index: 2; }

/* the shelf over the cards: a strip of the night sky, snow lying on its lower edge */
.season-weihnachten .season-shelf { position: relative; display: block; margin: 6px 0 16px; padding: 12px 16px 24px; overflow: hidden; border: 2px solid var(--ink); border-radius: var(--r); background: url(/img/season/weihnachten/stars.svg) 30px 4px / 260px 90px, linear-gradient(180deg, var(--night-top) 0%, var(--night-low) 100%); }
.season-shelf::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 16px; pointer-events: none; background: url(/img/season/weihnachten/drift.svg) 0 100% / 240px 20px repeat-x; }
.season-shelf-title { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 21px/1.2 var(--kid); color: #fff; }
.season-shelf-title::before { content: ''; flex: none; width: 30px; height: 30px; background: url(/img/season/weihnachten/star.svg) center / contain no-repeat; }
/* the picks wrap like words, in rows of about the same length */
.season-picks { margin: 0 0 -8px; padding: 0; list-style: none; text-wrap: balance; }
.season-picks li { display: inline-block; margin: 0 8px 8px 0; vertical-align: top; }
.season-pick { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 3px 14px 3px 6px; border: 2px solid var(--night-ink); border-radius: 24px; background: #fff; color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none; box-shadow: 3px 3px 0 var(--night-ink); transition: transform .08s, box-shadow .08s; }
.season-pick:hover { color: var(--ink); background: #FFF4CF; }
.season-pick:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--night-ink); }
.season-pick:focus-visible { outline-color: var(--sun); }
.season-pick img { width: 34px; height: 34px; object-fit: contain; }
@media (max-width: 640px) {
  /* on phones one row to swipe through, so the cards stay near */
  .season-weihnachten .season-shelf { display: block; padding: 10px 0 20px; }
  .season-shelf-title { margin: 0; padding: 0 12px; font-size: 19px; }
  .season-picks { display: flex; gap: 8px; margin: 0; overflow-x: auto; padding: 8px 14px 6px 12px; scroll-snap-type: x proximity; scroll-padding-left: 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
  .season-picks::-webkit-scrollbar { display: none; }
  .season-picks li { flex: none; margin: 0; scroll-snap-align: start; }
}

/* above the footer: Rombalu and his friends with their candles on a snowy hill, under the star */
.season-weihnachten .season-scene { --fir-w: 0px; --fir-x: 0px; position: relative; isolation: isolate; display: grid; justify-items: center; margin-top: 56px; padding: 30px 16px 0; overflow: hidden; text-align: center; color: #fff; border-top: 2px solid var(--ink);
  background: url(/img/season/weihnachten/firs-l.svg) left var(--fir-x) bottom 34px / var(--fir-w) auto no-repeat, url(/img/season/weihnachten/firs-r.svg) right var(--fir-x) bottom 34px / var(--fir-w) auto no-repeat, url(/img/season/weihnachten/stars.svg) 40px 10px / 260px 90px, radial-gradient(ellipse 44% 60% at 50% 100%, rgb(255 203 61 / .3), transparent 72%), linear-gradient(180deg, #101831 0%, #1D2D55 58%, #2D4576 100%); }
/* behind the friends, from the back: the hills, the candle light on the snow, the falling snow */
.season-weihnachten .season-scene::before { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 112px; z-index: -1; pointer-events: none; background: url(/img/season/weihnachten/hills.svg) 0 100% / 100% 100% no-repeat; }
.season-weihnachten .season-scene::after { content: ''; position: absolute; left: 0; right: 0; top: -360px; bottom: 0; z-index: -1; pointer-events: none; background: url(/img/season/weihnachten/snow-night.svg) 0 0 / 420px 360px; will-change: translate; }
/* the whole scene is the link to the song (its ::after covers the scene) */
.season-song { display: grid; justify-items: center; gap: 5px; color: #fff; text-decoration: none; border-radius: 12px; }
.season-song:hover { color: #fff; }
.season-song:focus-visible { outline-color: var(--sun); outline-offset: 6px; }
.season-song::before { content: ''; width: 68px; height: 68px; background: url(/img/season/weihnachten/star.svg) center / contain no-repeat; }
.season-song::after { content: ''; position: absolute; inset: 0; }
.season-song-title { font: 800 clamp(26px, 3.2vw, 36px)/1.1 var(--kid); text-wrap: balance; }
.season-song-sub { font-size: 17px; color: #D5E0F4; text-wrap: balance; }
.season-song-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; margin-top: 9px; padding: 9px 20px 9px 15px; border: 2px solid var(--night-ink); border-radius: 12px; background: var(--sun); color: var(--ink); font-weight: 700; font-size: 17px; line-height: 1.2; box-shadow: 4px 4px 0 var(--night-ink); transition: transform .08s, box-shadow .08s; }
.season-song-btn svg { flex: none; }
.season-song:hover .season-song-btn { background: #FFD966; }
.season-song:active .season-song-btn { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--night-ink); }
.season-friends { position: relative; display: flex; align-items: flex-end; justify-content: center; margin: 14px 0 30px; pointer-events: none; }
.season-friends::before { content: ''; position: absolute; left: -4%; right: -4%; bottom: -24px; height: 64px; z-index: -1; background: radial-gradient(ellipse 50% 50% at 50% 50%, rgb(255 196 70 / .5), rgb(255 196 70 / 0)); }
.season-friends img { display: block; width: auto; height: 124px; margin: 0 -4px; filter: drop-shadow(0 4px 3px rgb(34 52 96 / .3)); }
.season-friends .friend-rombalu { height: 148px; margin-inline: 4px; }
.season-weihnachten .season-scene + .site-footer { margin-top: 0; border-top: 0; }
@media (min-width: 900px) { .season-weihnachten .season-scene { --fir-w: 170px; --fir-x: -44px; } }
@media (min-width: 1280px) {
  .season-weihnachten .season-scene { --fir-w: 260px; --fir-x: -24px; }
  .season-friends img { height: 148px; }
  .season-friends .friend-rombalu { height: 176px; }
}
@media (max-width: 760px) {
  .season-weihnachten .season-scene { margin-top: 40px; padding-top: 24px; }
  .season-weihnachten .season-scene::before { height: 76px; }
  .season-song::before { width: 54px; height: 54px; }
  .season-song-sub { font-size: 16px; }
  .season-friends { margin: 12px 0 16px; }
  .season-friends::before { bottom: -16px; height: 44px; }
  .season-friends img { height: 88px; margin: 0 -5px; }
  .season-friends .friend-rombalu { height: 104px; margin-inline: 2px; }
  .season-friends .friend-bip, .season-friends .friend-kiki, .season-friends .friend-pia { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  /* the snow falls evenly (translate) and sways a little (transform) */
  .season-weihnachten body::before { animation: season-fall-a 46s linear infinite, season-sway 9s ease-in-out infinite alternate; }
  .season-weihnachten body::after { animation: season-fall-b 30s linear infinite, season-sway 7s ease-in-out infinite alternate-reverse; }
  .season-weihnachten .season-scene::after { animation: season-fall-night 24s linear infinite; }
  /* the garland: one half of the bulbs glows, then the other; the frames fade into each other
     so that one of them is always fully there */
  .season-weihnachten :is(.site-header, .landing-head)::before { animation: season-lights-a 6s linear infinite; }
  .season-weihnachten :is(.site-header, .landing-head)::after { animation: season-lights-b 6s linear infinite; }
  .season-song::before { animation: season-star 5s ease-in-out infinite; }
  @keyframes season-fall-a { to { translate: 0 480px; } }
  @keyframes season-fall-b { to { translate: 0 720px; } }
  @keyframes season-fall-night { to { translate: 0 360px; } }
  @keyframes season-sway { from { transform: translateX(-12px); } to { transform: translateX(12px); } }
  @keyframes season-lights-a { 0%, 42% { opacity: 1; } 50%, 85% { opacity: 0; } 92%, 100% { opacity: 1; } }
  @keyframes season-lights-b { 0%, 35% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
  @keyframes season-star { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.1) rotate(4deg); } }
}
@media print {
  .season-weihnachten body { background: #fff; }
  .season-weihnachten #main { border-top: 0; }
  .season-weihnachten body::before, .season-weihnachten body::after, .season-weihnachten :is(.site-header, .landing-head)::before, .season-weihnachten :is(.site-header, .landing-head)::after, .season-weihnachten .brand::after, .season-scene, .season-shelf { display: none !important; }
}

/* Store app (src/native-app.js): the app has its own top bar and parents' area – no header, no footer */
.is-app .site-header, .is-app .site-footer { display: none; }
