/* =====================================================================
   Zappelix – Seiten-Styles
   Baut auf css/tokens.css (Variablen --zx-*), css/components.css
   (zx-btn, zx-card, zx-chip, zx-tag, zx-input …) und css/animations.css auf.
   Hier nur Layout & seitenspezifische Elemente – keine eigenen Farbwerte,
   wo es ein Token gibt.
   ===================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--zx-font-body);
  font-size: var(--zx-text-base);
  line-height: var(--zx-leading-normal);
  color: var(--zx-text);
  background: var(--zx-grad-sky);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--zx-font-heading);
  color: var(--zx-text-strong);
  line-height: var(--zx-leading-tight);
  font-weight: var(--zx-weight-extrabold);
  letter-spacing: var(--zx-tracking-tight);
  margin: 0 0 var(--zx-space-3);
}
h1 { font-size: var(--zx-text-4xl); }
h2 { font-size: var(--zx-text-2xl); }
h3 { font-size: var(--zx-text-lg); line-height: var(--zx-leading-snug); }
p { margin: 0 0 var(--zx-space-3); }
a { color: var(--zx-primary); text-underline-offset: .2em; }
a:hover { color: var(--zx-primary-strong); }
img, svg { max-width: 100%; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 3px solid var(--zx-focus); outline-offset: 3px; border-radius: var(--zx-radius-sm); }
::selection { background: var(--zx-violet-200); color: var(--zx-text-strong); }
code { font-family: var(--zx-font-mono); font-size: .9em; background: var(--zx-primary-soft); padding: .1em .35em; border-radius: var(--zx-radius-xs); }

.container { width: min(100% - 2rem, var(--zx-container)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: var(--zx-z-toast); padding: .7em 1.2em; border-radius: var(--zx-radius-pill); background: var(--zx-primary); color: var(--zx-text-on-primary); font-weight: 800; text-decoration: none; transition: top var(--zx-duration-base) var(--zx-ease-out); }
.skip-link:focus { top: 1rem; color: var(--zx-text-on-primary); }
.fine { font-size: var(--zx-text-sm); color: var(--zx-text-muted); }
.text-link { font-weight: 800; }
[hidden] { display: none !important; }

/* ---------- Hintergrund-Deko ---------- */
.sky { position: fixed; inset: 0; z-index: var(--zx-z-below); pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: var(--zx-radius-blob); filter: blur(60px); opacity: .5; animation: blob-drift 22s var(--zx-ease-in-out) infinite alternate; }
.blob-1 { width: 420px; height: 420px; left: -120px; top: 6%; background: var(--zx-violet-300); }
.blob-2 { width: 380px; height: 380px; right: -100px; top: 22%; background: var(--zx-cyan-200); animation-delay: -6s; }
.blob-3 { width: 340px; height: 340px; left: 30%; bottom: -120px; background: var(--zx-warm-soft); animation-delay: -12s; }
.blob-4 { width: 260px; height: 260px; right: 18%; bottom: 12%; background: var(--zx-accent-soft); animation-delay: -3s; }
@keyframes blob-drift { to { transform: translate(40px, -30px) scale(1.08) rotate(12deg); } }
.floatie { position: absolute; font-size: var(--s); line-height: 1; opacity: .55; animation: floatie var(--d) var(--zx-ease-in-out) infinite; animation-delay: var(--delay); }
.floatie.bubble { width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.95), rgba(255,255,255,.15) 55%, transparent 70%); border: 1.5px solid currentColor; opacity: .35; }
@keyframes floatie { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-26px) rotate(18deg); } }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: var(--zx-z-header); background: rgba(250, 247, 255, .78); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--zx-border); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--zx-space-4); min-height: 70px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; border-radius: var(--zx-radius-md); }
.logo img { display: block; height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--zx-space-1); list-style: none; margin: 0; padding: 0; }
.nav-links a:not(.zx-btn) { display: inline-flex; align-items: center; gap: .4em; min-height: var(--zx-tap-target); padding: 0 .8em; border-radius: var(--zx-radius-pill); color: var(--zx-text); font-weight: 800; font-size: var(--zx-text-sm); text-decoration: none; transition: background-color var(--zx-duration-fast), color var(--zx-duration-fast); }
.nav-links a .zx-icon { width: 18px; height: 18px; color: var(--zx-primary); }
.nav-links .zx-btn .zx-icon { color: currentColor; }
.nav-links a:not(.zx-btn):hover { background: var(--zx-primary-soft); color: var(--zx-primary-strong); }
.nav-links a[aria-current="page"]:not(.zx-btn) { background: var(--zx-primary-soft); color: var(--zx-primary-strong); box-shadow: inset 0 -3px 0 var(--zx-primary); }
.nav-links .zx-btn[aria-current="page"] { box-shadow: var(--zx-glow-violet); }
.nav-toggle { display: none; width: var(--zx-tap-target); height: var(--zx-tap-target); border: 2px solid var(--zx-border); border-radius: var(--zx-radius-md); background: var(--zx-surface); cursor: pointer; padding: 10px; flex-direction: column; justify-content: center; gap: 5px; }
.nav-toggle .bar { display: block; height: 3px; border-radius: 3px; background: var(--zx-primary); transition: transform var(--zx-duration-base) var(--zx-ease-out), opacity var(--zx-duration-fast); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Seiten-Grundlayout ---------- */
main { display: block; padding-bottom: var(--zx-space-section); }
main:focus { outline: none; }
.page { animation: page-in var(--zx-duration-slow) var(--zx-ease-out); }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
.page > .container, .page.container { position: relative; }
.page-head { padding: var(--zx-space-7) 0 var(--zx-space-5); max-width: 760px; }
.page-head h1 { font-size: var(--zx-text-3xl); }
.page-head h1:focus { outline: none; }
.page-head p { font-size: var(--zx-text-lg); color: var(--zx-text-muted); }
.section-head { margin: var(--zx-space-8) 0 var(--zx-space-5); max-width: 720px; }
.section-head p { color: var(--zx-text-muted); }
.sub-title { margin-top: var(--zx-space-7); font-size: var(--zx-text-xl); }
.card-title { font-size: var(--zx-text-xl); display: flex; align-items: center; gap: .4em; flex-wrap: wrap; }
.card-title small { font-family: var(--zx-font-body); font-size: var(--zx-text-sm); color: var(--zx-text-muted); font-weight: 600; }
.pad { padding: var(--zx-space-5); border-radius: var(--zx-radius-lg); }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--zx-space-5); margin-top: var(--zx-space-6); }
.three-col { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--zx-space-5); }
.row-gap { display: flex; flex-wrap: wrap; gap: var(--zx-space-3); justify-content: center; }
.badge-demo { display: inline-block; padding: .2em .7em; border-radius: var(--zx-radius-pill); background: var(--zx-accent-soft); color: var(--zx-amber-800); font-size: var(--zx-text-xs); font-weight: 800; vertical-align: middle; }

/* Bereichsfarben (BRP) – setzen die Kategorie-Variablen der Komponenten */
.area-coral  { --cat: var(--zx-coral-400); --cat-soft: var(--zx-warm-soft);    --cat-text: var(--zx-error);      --cat-glow: rgba(251,113,133,.4); }
.area-amber  { --cat: var(--zx-amber-400); --cat-soft: var(--zx-accent-soft);  --cat-text: var(--zx-amber-800);  --cat-glow: rgba(251,191,36,.45); }
.area-violet { --cat: var(--zx-violet-500); --cat-soft: var(--zx-violet-100);  --cat-text: var(--zx-violet-700); --cat-glow: rgba(139,92,246,.4); }
.area-teal   { --cat: var(--zx-cyan-400);  --cat-soft: #ccfbf1;                 --cat-text: var(--zx-teal-700);   --cat-glow: rgba(34,211,238,.45); }
.area-pink   { --cat: var(--zx-pink-400);  --cat-soft: #fce7f3;                 --cat-text: var(--zx-pink-700);   --cat-glow: rgba(244,114,182,.4); }
.area-green  { --cat: #4ade80;             --cat-soft: var(--zx-success-soft); --cat-text: var(--zx-success);    --cat-glow: rgba(74,222,128,.4); }

/* ---------- Start / Hero ---------- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: var(--zx-space-6); padding: var(--zx-space-7) 0 var(--zx-space-5); }
.eyebrow { padding: .45em 1em; border-radius: var(--zx-radius-pill); background: var(--zx-surface-glass); box-shadow: var(--zx-shadow-sm); margin-bottom: var(--zx-space-4); text-transform: none; letter-spacing: .01em; font-size: var(--zx-text-sm); }
.eyebrow.small { padding: 0; background: none; box-shadow: none; margin-bottom: var(--zx-space-2); }
.hero h1 { margin-bottom: var(--zx-space-4); }
.sparkle-text { position: relative; background: var(--zx-grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.sparkle-text::after { content: "✦"; position: absolute; right: -.55em; top: -.2em; font-size: .5em; color: var(--zx-accent); -webkit-text-fill-color: var(--zx-accent); animation: zx-twinkle var(--zx-duration-twinkle) var(--zx-ease-in-out) infinite; }
.lead { font-size: var(--zx-text-lg); color: var(--zx-text-muted); max-width: 40em; }
.quick-search { position: relative; display: flex; align-items: center; gap: var(--zx-space-2); margin: var(--zx-space-5) 0; padding: 6px 6px 6px 0; border-radius: var(--zx-radius-pill); background: var(--zx-surface); border: 2px solid var(--zx-border-strong); box-shadow: var(--zx-shadow-md); transition: box-shadow var(--zx-duration-base), border-color var(--zx-duration-fast); }
.quick-search:focus-within { border-color: var(--zx-primary); box-shadow: 0 0 0 4px rgba(139,92,246,.28), var(--zx-glow-violet); }
.quick-search > .zx-icon { margin-left: 1em; color: var(--zx-primary); }
.quick-search .zx-input { border: 0; min-height: 44px; padding-left: .3em; box-shadow: none !important; background: transparent; }
.quick-search .zx-input:focus-visible { outline: none; }
.shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--zx-space-3); }
.shortcut { display: grid; gap: 2px; padding: var(--zx-space-4); border-radius: var(--zx-radius-lg); text-decoration: none; color: var(--zx-text); transition: transform var(--zx-duration-base) var(--zx-ease-bounce), box-shadow var(--zx-duration-base); }
.shortcut:hover { transform: translateY(-4px); box-shadow: var(--zx-shadow-lg), 0 12px 30px -10px var(--cat-glow); color: var(--zx-text); }
.shortcut .zx-icon-badge { margin-bottom: var(--zx-space-2); }
.shortcut b { font-family: var(--zx-font-heading); font-size: var(--zx-text-lg); color: var(--zx-text-strong); line-height: 1.2; }
.shortcut small { color: var(--zx-text-muted); font-size: var(--zx-text-sm); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 420px; }
.hero-halo { position: absolute; width: min(400px, 90%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 50% 45%, rgba(255,255,255,.95), rgba(196,181,253,.55) 45%, rgba(94,234,212,.25) 70%, transparent 72%); box-shadow: 0 0 80px rgba(139,92,246,.25); }
.hero-halo::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 2px dashed rgba(124,58,237,.25); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-mascot { position: relative; width: min(300px, 70%); display: block; filter: drop-shadow(0 18px 30px rgba(76,29,149,.25)); }
.hero-mascot svg { display: block; width: 100%; height: auto; }
.hero-bubble { position: absolute; top: 4%; right: 2%; z-index: 2; padding: .6em 1em; border-radius: 20px 20px 20px 6px; background: var(--zx-surface); box-shadow: var(--zx-shadow-md); font-weight: 700; font-size: var(--zx-text-sm); color: var(--zx-text-strong); animation: zx-float-y var(--zx-duration-float) var(--zx-ease-in-out) infinite; }
.float-card { position: absolute; display: inline-flex; align-items: center; gap: .4em; padding: .5em .9em; border-radius: var(--zx-radius-pill); background: var(--zx-surface-glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.8); box-shadow: var(--zx-shadow-md); font-weight: 800; font-size: var(--zx-text-sm); color: var(--zx-text-strong); animation: zx-float-y var(--zx-duration-float) var(--zx-ease-in-out) infinite; }
.fc-1 { left: 0; top: 22%; animation-delay: -1s; }
.fc-2 { right: 0; top: 44%; animation-delay: -2.5s; }
.fc-3 { left: 6%; bottom: 14%; animation-delay: -4s; }
.fc-4 { right: 10%; bottom: 4%; animation-delay: -3s; }

.start-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--zx-space-5); margin-top: var(--zx-space-5); align-items: start; }
.now-card, .radar-card { padding: var(--zx-space-5); border-radius: var(--zx-radius-lg); }
.now-card { position: relative; overflow: hidden; }
.now-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--zx-grad-warm); }
.radar-list { list-style: none; padding: 0; margin: 0 0 var(--zx-space-3); display: grid; gap: var(--zx-space-2); }
.radar-list li { display: flex; align-items: center; gap: var(--zx-space-3); padding: var(--zx-space-2) 0; border-bottom: 1px dashed var(--zx-border); }
.radar-list li span:last-child { display: grid; }
.radar-list small { color: var(--zx-text-muted); }
.radar-when { flex: none; min-width: 6.2em; text-align: center; padding: .25em .6em; border-radius: var(--zx-radius-pill); background: var(--zx-primary-soft); color: var(--zx-primary-strong); font-weight: 800; font-size: var(--zx-text-xs); }
.radar-when.soon { background: var(--zx-accent); color: var(--zx-text-on-accent); box-shadow: var(--zx-glow-amber); }
.mini-links { list-style: none; padding: 0; margin: 0 0 var(--zx-space-3); display: flex; flex-wrap: wrap; gap: var(--zx-space-2); }
.link-btn { display: inline-flex; align-items: center; gap: .3em; min-height: 36px; padding: .35em .85em; border: 2px solid var(--zx-border); border-radius: var(--zx-radius-pill); background: var(--zx-surface); color: var(--zx-text-strong); font: inherit; font-size: var(--zx-text-sm); font-weight: 700; cursor: pointer; text-align: left; transition: border-color var(--zx-duration-fast), background-color var(--zx-duration-fast), transform var(--zx-duration-base) var(--zx-ease-bounce); }
.link-btn:hover { border-color: var(--zx-violet-300); background: var(--zx-primary-soft); transform: translateY(-1px); }

.area-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--zx-space-4); }
.area-tile { --zx-neon-color: linear-gradient(135deg, var(--cat), var(--zx-secondary)); display: grid; gap: var(--zx-space-2); align-content: start; padding: var(--zx-space-5); border-radius: var(--zx-radius-lg); text-align: left; font: inherit; color: var(--zx-text); cursor: pointer; transition: transform var(--zx-duration-base) var(--zx-ease-bounce), box-shadow var(--zx-duration-base); }
.area-tile:hover { transform: translateY(-4px); box-shadow: var(--zx-shadow-lg), 0 12px 30px -10px var(--cat-glow); }
.area-emoji { font-size: 1.6rem; }
.area-name { font-family: var(--zx-font-heading); font-weight: 800; font-size: var(--zx-text-lg); color: var(--zx-text-strong); line-height: 1.2; }
.area-desc { font-size: var(--zx-text-sm); color: var(--zx-text-muted); }
.area-count { display: inline-flex; align-items: center; gap: .3em; font-weight: 800; font-size: var(--zx-text-sm); color: var(--cat-text); }
.area-count .zx-icon { width: 18px; height: 18px; }

/* ---------- Ideen-Bibliothek ---------- */
.type-tabs { margin-bottom: var(--zx-space-4); }
.filters { display: grid; grid-template-columns: 2fr repeat(5, minmax(0, 1fr)); gap: var(--zx-space-4); padding: var(--zx-space-5); border-radius: var(--zx-radius-lg); }
.filters .chips-field { grid-column: 1 / -1; border: 0; padding: 0; margin: 0; min-width: 0; }
.filters .chips-field legend { margin-bottom: var(--zx-space-2); }
.zx-search .zx-input { min-height: 48px; }
.result-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--zx-space-3); margin: var(--zx-space-5) 0 var(--zx-space-4); flex-wrap: wrap; }
.result-count { margin: 0; font-weight: 800; color: var(--zx-text-muted); }
.theme-pill { display: inline-flex; align-items: center; gap: .4em; min-height: 36px; padding: .3em .9em; border: 0; border-radius: var(--zx-radius-pill); background: var(--zx-accent); color: var(--zx-text-on-accent); font: inherit; font-weight: 800; cursor: pointer; box-shadow: var(--zx-glow-amber); }
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--zx-space-5); }
.idea-card .zx-card__media { aspect-ratio: auto; height: 96px; }
.idea-card .card-emoji { font-size: 2.8rem; filter: drop-shadow(0 6px 10px rgba(76,29,149,.18)); transition: transform var(--zx-duration-base) var(--zx-ease-spring); }
.idea-card:hover .card-emoji { transform: scale(1.15) rotate(-6deg); }
.zx-card__head > * { position: relative; z-index: 1; }
.zx-card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.area-tags { display: flex; flex-wrap: wrap; gap: var(--zx-space-1); list-style: none; padding: 0; margin: 0; }
.area-tags .zx-tag { white-space: normal; }
.empty-state { text-align: center; padding: var(--zx-space-7) var(--zx-space-5); border-radius: var(--zx-radius-lg); }
.empty-state > span { font-size: 3rem; display: block; }

/* ---------- Jahreskreis ---------- */
.radar-big { padding: var(--zx-space-5); border-radius: var(--zx-radius-lg); }
.radar-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--zx-space-4); }
.radar-item { padding: var(--zx-space-4); border-radius: var(--zx-radius-md); background: var(--zx-surface); box-shadow: var(--zx-shadow-sm); border: 2px solid transparent; }
.radar-item h3 { margin: var(--zx-space-2) 0 0; }
.radar-item.is-next { border-color: var(--zx-accent); box-shadow: var(--zx-glow-amber); }
.check { list-style: none; padding: 0; margin: var(--zx-space-2) 0 0; display: grid; gap: 4px; font-size: var(--zx-text-sm); }
.check li { position: relative; padding-left: 1.5em; }
.check li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.15em; height: 1.15em; display: grid; place-items: center; border-radius: 50%; background: var(--zx-success-soft); color: var(--zx-success); font-weight: 800; font-size: .8em; }
.month-strip { display: flex; gap: var(--zx-space-2); overflow-x: auto; padding: var(--zx-space-2) 2px var(--zx-space-3); scroll-snap-type: x mandatory; }
.month-btn { position: relative; flex: 1 0 84px; scroll-snap-align: start; display: grid; justify-items: center; gap: 2px; min-width: 84px; padding: var(--zx-space-3) var(--zx-space-1); border: 2px solid var(--zx-border); border-radius: var(--zx-radius-md); background: var(--zx-surface); font: inherit; font-weight: 800; font-size: var(--zx-text-sm); color: var(--zx-text); cursor: pointer; transition: transform var(--zx-duration-base) var(--zx-ease-bounce), border-color var(--zx-duration-fast), background-color var(--zx-duration-fast); }
.month-btn span[aria-hidden] { font-size: 1.5rem; }
.month-btn:hover { transform: translateY(-2px); border-color: var(--zx-violet-300); }
.month-btn[aria-selected="true"] { background: var(--zx-accent-soft); border-color: var(--zx-accent); color: var(--zx-amber-800); box-shadow: var(--zx-glow-amber); }
.now-badge { position: absolute; top: -9px; right: -6px; padding: .05em .5em; border-radius: var(--zx-radius-pill); background: var(--zx-primary); color: var(--zx-text-on-primary); font-size: .68rem; letter-spacing: .03em; }
.month-detail { margin-top: var(--zx-space-3); padding: var(--zx-space-5); border-radius: var(--zx-radius-lg); }
.md-head { display: flex; align-items: center; gap: var(--zx-space-4); margin-bottom: var(--zx-space-4); }
.md-head h2 { margin: 0; }
.md-emoji { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--zx-radius-md); background: var(--cat-soft); font-size: 2rem; box-shadow: 0 8px 20px -8px var(--cat-glow); }
.md-theme { margin: 0; font-weight: 700; color: var(--cat-text); }
.md-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--zx-space-5); }
.md-grid h3 { font-size: var(--zx-text-base); margin-top: 0; }
.fest-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--zx-space-2); }
.fest-list li { padding: var(--zx-space-2) var(--zx-space-3); border-radius: var(--zx-radius-sm); background: var(--zx-surface); box-shadow: var(--zx-shadow-xs); }
.fest-list small { display: block; color: var(--zx-text-muted); }

/* ---------- Planen / Eltern / Beobachten / Wissen ---------- */
.inline-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: var(--zx-space-3); align-items: end; margin-bottom: var(--zx-space-4); }
.fav-list { list-style: none; padding: 0; margin: 0 0 var(--zx-space-3); display: grid; gap: var(--zx-space-2); }
.fav-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--zx-space-2); }
.print-center { margin-top: var(--zx-space-5); }
.print-buttons { display: flex; flex-wrap: wrap; gap: var(--zx-space-3); }
.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--zx-space-3); }
.template-btn { display: grid; justify-items: start; gap: 2px; padding: var(--zx-space-4); border-radius: var(--zx-radius-md); font: inherit; font-weight: 800; font-family: var(--zx-font-heading); font-size: var(--zx-text-lg); color: var(--zx-text-strong); cursor: pointer; text-align: left; transition: transform var(--zx-duration-base) var(--zx-ease-bounce); }
.template-btn > span { font-size: 1.6rem; }
.template-btn small { font-family: var(--zx-font-body); font-size: var(--zx-text-xs); color: var(--zx-text-muted); }
.template-btn:hover { transform: translateY(-3px); }
.guides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--zx-space-4); }
.guide { padding: var(--zx-space-4) var(--zx-space-5); border-radius: var(--zx-radius-lg); }
.guide summary { cursor: pointer; font-family: var(--zx-font-heading); font-weight: 800; font-size: var(--zx-text-lg); color: var(--zx-text-strong); list-style: none; display: flex; align-items: center; gap: .5em; min-height: var(--zx-tap-target); }
.guide summary::-webkit-details-marker { display: none; }
.guide summary::after { content: "+"; margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--zx-primary-soft); color: var(--zx-primary-strong); transition: transform var(--zx-duration-base) var(--zx-ease-bounce); }
.guide[open] summary::after { transform: rotate(45deg); }
.impulse-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--zx-space-3); }
.impulse-list li { display: grid; gap: 4px; padding-bottom: var(--zx-space-3); border-bottom: 1px dashed var(--zx-border); }
.impulse-list span { font-size: var(--zx-text-sm); color: var(--zx-text-muted); }
.link-list { padding-left: 1.1em; display: grid; gap: var(--zx-space-3); }
.notice { display: flex; gap: var(--zx-space-3); align-items: flex-start; padding: var(--zx-space-4) var(--zx-space-5); margin-bottom: var(--zx-space-5); border-radius: var(--zx-radius-lg); background: linear-gradient(135deg, var(--zx-accent-soft), var(--zx-warm-soft)); border: 2px solid var(--zx-amber-300); }
.notice > span { font-size: 1.6rem; }
.notice p { margin: 0; }
.brp-grid, .theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--zx-space-5); margin-bottom: var(--zx-space-5); }
.brp-card, .theme-card { padding: var(--zx-space-5); border-radius: var(--zx-radius-lg); position: relative; overflow: hidden; }
.brp-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--cat); }
.brp-card h2, .theme-card h2 { font-size: var(--zx-text-xl); }
.brp-card h3, .theme-card h3 { font-size: var(--zx-text-base); margin-top: var(--zx-space-4); }
.tags.plain { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--zx-space-1); margin: 0 0 var(--zx-space-3); }

/* ---------- Helfer-Studio ---------- */
.helper-studio { margin-bottom: var(--zx-space-5); }
.privacy-note, .warn-box { display: flex; gap: var(--zx-space-3); align-items: flex-start; padding: var(--zx-space-3) var(--zx-space-4); border-radius: var(--zx-radius-md); margin-bottom: var(--zx-space-4); }
.privacy-note { background: linear-gradient(135deg, var(--zx-secondary-soft), var(--zx-primary-soft)); border: 1.5px solid var(--zx-cyan-200); }
.warn-box { background: var(--zx-warn-soft); border: 1.5px solid var(--zx-amber-300); }
.privacy-note > span, .warn-box > span { font-size: 1.3rem; line-height: 1.4; }
.privacy-note p, .warn-box p { margin: 0; font-size: var(--zx-text-sm); }
.helper-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--zx-space-5); align-items: start; }
.helper-side { position: sticky; top: 90px; display: grid; gap: var(--zx-space-4); }
.helper-tabs { display: grid; gap: var(--zx-space-2); }
.helper-tab { display: flex; align-items: center; gap: var(--zx-space-3); width: 100%; min-height: 60px; padding: var(--zx-space-3); border: 2px solid transparent; border-radius: var(--zx-radius-md); background: var(--zx-surface-glass); box-shadow: var(--zx-shadow-sm); font: inherit; color: var(--zx-text); text-align: left; cursor: pointer; transition: transform var(--zx-duration-base) var(--zx-ease-bounce), border-color var(--zx-duration-fast), box-shadow var(--zx-duration-base); }
.helper-tab b { display: block; font-family: var(--zx-font-heading); font-size: var(--zx-text-base); color: var(--zx-text-strong); line-height: 1.2; }
.helper-tab small { color: var(--zx-text-muted); font-size: var(--zx-text-xs); }
.ht-icon { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--zx-radius-sm); font-size: 1.3rem; background: var(--_soft, var(--zx-primary-soft)); }
.helper-tab:hover { transform: translateX(3px); border-color: var(--zx-violet-200); }
.helper-tab[aria-selected="true"] { border-color: var(--_c, var(--zx-primary)); background: var(--zx-surface); box-shadow: var(--zx-shadow-md), 0 8px 24px -10px var(--_c, var(--zx-primary)); }
.h-violet { --_c: var(--zx-violet-500); --_soft: var(--zx-violet-100); }
.h-teal   { --_c: var(--zx-cyan-400);  --_soft: #ccfbf1; }
.h-coral  { --_c: var(--zx-coral-400); --_soft: var(--zx-warm-soft); }
.h-yellow { --_c: var(--zx-amber-400); --_soft: var(--zx-accent-soft); }
.h-pink   { --_c: var(--zx-pink-400);  --_soft: #fce7f3; }

.companion { position: relative; display: grid; justify-items: center; padding-top: var(--zx-space-2); }
.speech { position: relative; width: 100%; padding: var(--zx-space-3) var(--zx-space-4); border-radius: 22px; background: var(--zx-surface); box-shadow: var(--zx-shadow-md); border: 2px solid var(--zx-violet-200); font-weight: 700; font-size: var(--zx-text-sm); color: var(--zx-text-strong); text-align: center; min-height: 3.6em; display: grid; place-items: center; }
.speech::after { content: ""; position: absolute; bottom: -12px; left: 50%; translate: -50% 0; width: 22px; height: 22px; background: var(--zx-surface); border-right: 2px solid var(--zx-violet-200); border-bottom: 2px solid var(--zx-violet-200); transform: rotate(45deg); border-bottom-right-radius: 6px; }
.speech.pop { animation: speech-pop var(--zx-duration-slow) var(--zx-ease-spring); }
@keyframes speech-pop { from { transform: scale(.85); opacity: .3; } }
.companion-btn { margin-top: var(--zx-space-3); width: 170px; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.companion-mascot { display: block; filter: drop-shadow(0 12px 20px rgba(76,29,149,.22)); }
.companion-mascot svg, .companion-mascot img { display: block; width: 100%; height: auto; }
.companion-btn:focus-visible { outline: 3px solid var(--zx-focus); outline-offset: 4px; }

.helper-panel { padding: var(--zx-space-5); border-radius: var(--zx-radius-xl); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--zx-space-3); margin-bottom: var(--zx-space-4); }
.panel-title { margin: 0; font-size: var(--zx-text-2xl); }
.demo-note { display: inline-flex; align-items: center; gap: .4em; margin: 0; padding: .35em .9em; border-radius: var(--zx-radius-pill); background: var(--zx-accent-soft); border: 1.5px dashed var(--zx-amber-500); color: var(--zx-amber-800); font-weight: 800; font-size: var(--zx-text-xs); }
.helper-form { display: grid; gap: var(--zx-space-4); }
.helper-form > fieldset { border: 0; margin: 0; padding: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--zx-space-4); }
.form-grid fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.zx-label small { font-weight: 600; color: var(--zx-text-muted); }
input[type="range"] { width: 100%; accent-color: var(--zx-primary); min-height: 44px; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: var(--zx-radius-pill); background: var(--zx-primary-soft); }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label { flex: 1; display: grid; place-items: center; min-height: 40px; padding: 0 .8em; border-radius: var(--zx-radius-pill); font-weight: 800; font-size: var(--zx-text-sm); color: var(--zx-primary-strong); cursor: pointer; transition: background-color var(--zx-duration-fast), color var(--zx-duration-fast), box-shadow var(--zx-duration-base); text-align: center; }
.segmented input:checked + label { background: var(--zx-grad-button); color: var(--zx-text-on-primary); box-shadow: var(--zx-shadow-sm); }
.segmented input:focus-visible + label { outline: 3px solid var(--zx-focus); outline-offset: 2px; }
.pii-live { margin: 0; font-size: var(--zx-text-sm); font-weight: 700; color: var(--zx-warn); }
.pii-live:empty { display: none; }
.zx-btn.is-loading { opacity: .8; }

.helper-output { margin-top: var(--zx-space-5); min-height: 120px; border-radius: var(--zx-radius-lg); }
.helper-output:focus { outline: none; }
.helper-output:focus-visible { outline: 3px solid var(--zx-focus); outline-offset: 4px; }
.out-placeholder, .out-loading { display: grid; justify-items: center; gap: var(--zx-space-2); padding: var(--zx-space-6) var(--zx-space-4); border: 2px dashed var(--zx-violet-300); border-radius: var(--zx-radius-lg); text-align: center; color: var(--zx-text-muted); background: rgba(255,255,255,.4); }
.out-placeholder > span { font-size: 2rem; }
.out-placeholder p, .out-loading p { margin: 0; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--zx-primary); animation: dot 1s var(--zx-ease-in-out) infinite; }
.dots i:nth-child(2) { background: var(--zx-secondary); animation-delay: .15s; }
.dots i:nth-child(3) { background: var(--zx-accent); animation-delay: .3s; }
@keyframes dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-8px); opacity: 1; } }
.result { position: relative; padding: var(--zx-space-5); border-radius: var(--zx-radius-lg); background: var(--zx-surface); box-shadow: var(--zx-shadow-md); animation: result-in var(--zx-duration-slow) var(--zx-ease-out); overflow: hidden; }
.result::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--zx-grad-neon); }
@keyframes result-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.result-head { display: flex; gap: var(--zx-space-3); align-items: flex-start; margin-bottom: var(--zx-space-3); }
.result-head h3 { font-size: var(--zx-text-xl); margin: 0 0 4px; }
.result-emoji { flex: none; width: 56px; height: 56px; display: grid; place-items: center; border-radius: var(--zx-radius-md); background: linear-gradient(135deg, var(--zx-primary-soft), var(--zx-secondary-soft)); font-size: 1.8rem; }
.out-block { padding: var(--zx-space-3) 0; border-top: 1px dashed var(--zx-border); }
.out-block h4 { margin: 0 0 var(--zx-space-2); font-size: var(--zx-text-base); color: var(--zx-primary-strong); }
.out-block ul { margin: 0; display: grid; gap: 4px; }
.out-block p { margin: 0; }
.out-block .tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--zx-space-1); }
.out-block.is-warn { margin: var(--zx-space-2) 0; padding: var(--zx-space-3) var(--zx-space-4); border: 1.5px solid var(--zx-amber-300); border-radius: var(--zx-radius-md); background: var(--zx-warn-soft); }
.out-block.is-warn h4 { color: var(--zx-amber-800); }
.story p { margin: 0 0 var(--zx-space-2); line-height: var(--zx-leading-loose); }
.letter { margin: 0; padding: var(--zx-space-4); border-radius: var(--zx-radius-md); background: var(--zx-bg-alt); font-family: var(--zx-font-body); font-size: var(--zx-text-base); white-space: pre-wrap; line-height: var(--zx-leading-normal); color: var(--zx-text); }
.translate-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--zx-space-2); margin-top: var(--zx-space-3); }
.translate-row label { font-weight: 800; font-size: var(--zx-text-sm); }
.translate-row select { min-height: 40px; padding: .3em 2.4em .3em .8em; border: 2px solid var(--zx-border-strong); border-radius: var(--zx-radius-md); font: inherit; font-size: var(--zx-text-sm); background-color: var(--zx-surface); }
.result-note { margin: var(--zx-space-3) 0 0; padding: var(--zx-space-3); border-radius: var(--zx-radius-md); background: var(--zx-primary-soft); font-size: var(--zx-text-sm); }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--zx-space-2); margin-top: var(--zx-space-4); }
.source-badge { margin-left: auto; padding: .25em .75em; border-radius: var(--zx-radius-pill); background: var(--zx-accent-soft); color: var(--zx-amber-800); font-weight: 800; font-size: var(--zx-text-xs); }
.helper-output.compact { margin-top: 0; min-height: 0; }

/* ---------- Detail-Dialog ---------- */
.item-dialog { width: min(760px, calc(100% - 1.5rem)); max-height: calc(100vh - 2rem); padding: 0; border: 0; border-radius: var(--zx-radius-xl); background: var(--zx-surface); color: var(--zx-text); box-shadow: var(--zx-shadow-lg); }
.item-dialog::backdrop { background: rgba(46, 16, 101, .45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.item-dialog[open] { animation: result-in var(--zx-duration-slow) var(--zx-ease-out); }
.dlg-inner { padding: var(--zx-space-6); }
.dlg-head { display: flex; gap: var(--zx-space-4); align-items: flex-start; margin-bottom: var(--zx-space-3); }
.dlg-head h2 { margin: var(--zx-space-2) 0 0; font-size: var(--zx-text-2xl); }
.dlg-head p { margin: 0; }
.dlg-emoji { flex: none; width: 72px; height: 72px; display: grid; place-items: center; border-radius: var(--zx-radius-lg); background: var(--cat-soft); font-size: 2.4rem; box-shadow: 0 10px 24px -10px var(--cat-glow); }
.dlg-close { margin-left: auto; flex: none; width: var(--zx-tap-target); height: var(--zx-tap-target); border: 2px solid var(--zx-border); border-radius: 50%; background: var(--zx-surface); font-size: 1.6rem; line-height: 1; color: var(--zx-primary-strong); cursor: pointer; }
.dlg-close:hover { background: var(--zx-primary-soft); }
.item-dialog .zx-card__meta { margin-bottom: var(--zx-space-3); }
.item-dialog .area-tags { margin-bottom: var(--zx-space-3); }
.dlg-sec { margin-top: var(--zx-space-4); }
.dlg-sec h3 { font-size: var(--zx-text-base); color: var(--zx-primary-strong); margin-bottom: var(--zx-space-2); }
.dlg-sec ol, .dlg-sec ul { display: grid; gap: 4px; margin: 0; }
.big-q { font-family: var(--zx-font-heading); font-size: var(--zx-text-xl); color: var(--zx-text-strong); }
.rhyme-table { width: 100%; border-collapse: collapse; font-size: var(--zx-text-sm); }
.rhyme-table th { text-align: left; color: var(--zx-text-muted); font-size: var(--zx-text-xs); text-transform: uppercase; letter-spacing: var(--zx-tracking-wide); padding: 0 var(--zx-space-2) var(--zx-space-2); }
.rhyme-table td { padding: var(--zx-space-2); vertical-align: top; border-top: 1px dashed var(--zx-border); }
.rhyme-table td:first-child { font-weight: 700; color: var(--zx-text-strong); line-height: var(--zx-leading-loose); width: 55%; }
.item-dialog .warn-box { margin-top: var(--zx-space-4); }
.dlg-actions { display: flex; flex-wrap: wrap; gap: var(--zx-space-2); align-items: center; margin-top: var(--zx-space-5); padding-top: var(--zx-space-4); border-top: 1px solid var(--zx-border); }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: var(--zx-space-8); padding: var(--zx-space-7) 0 var(--zx-space-5); background: linear-gradient(180deg, rgba(255,255,255,.4), rgba(237,233,254,.9)); border-top: 1px solid var(--zx-border); }
.site-footer::before { content: ""; position: absolute; inset: -3px 0 auto 0; height: 3px; background: var(--zx-grad-neon); opacity: .7; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: var(--zx-space-6); }
.footer-brand img { height: 44px; width: auto; margin-bottom: var(--zx-space-3); }
.footer-title { font-size: var(--zx-text-base); margin-bottom: var(--zx-space-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--zx-space-2); }
.site-footer a:not(.logo) { color: var(--zx-text); text-decoration: none; font-weight: 600; }
.site-footer a:not(.logo):hover { color: var(--zx-primary-strong); text-decoration: underline; }
.footer-privacy { padding: var(--zx-space-3); border-radius: var(--zx-radius-md); background: var(--zx-surface-glass); font-size: var(--zx-text-sm); }
.footer-bottom { margin-top: var(--zx-space-6); padding-top: var(--zx-space-4); border-top: 1px solid var(--zx-border); font-size: var(--zx-text-xs); color: var(--zx-text-muted); }
#print-area { display: none; }

/* ---------- Responsiv ---------- */
/* W7: Burger-Menü schon ab 1100 px, damit „KI-Helfer“ nicht umbricht */
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: absolute; left: 1rem; right: 1rem; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 4px; padding: var(--zx-space-3); border-radius: var(--zx-radius-lg); background: var(--zx-surface); box-shadow: var(--zx-shadow-lg); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--zx-duration-base), transform var(--zx-duration-base) var(--zx-ease-out), visibility 0s linear var(--zx-duration-base); }
  .nav-links.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-links a:not(.zx-btn) { font-size: var(--zx-text-base); }
  .nav-links .zx-btn { width: 100%; }
}
@media (max-width: 1080px) {
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters .field-search { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: var(--zx-space-5); }
  .hero-art { order: -1; min-height: 300px; }
  .hero-mascot { width: min(220px, 60%); }
  .start-grid, .two-col, .three-col, .guides { grid-template-columns: 1fr; }
  .area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .helper-layout { grid-template-columns: 1fr; }
  .helper-side { position: static; grid-template-columns: 1fr; }
  .helper-tabs { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .companion { grid-template-columns: 1fr auto; align-items: center; gap: var(--zx-space-3); justify-items: stretch; }
  .companion-btn { width: 110px; margin: 0; }
  .speech::after { left: auto; right: -10px; bottom: auto; top: 50%; translate: 0 -50%; transform: rotate(-45deg); }
  .md-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .shortcuts { grid-template-columns: 1fr; }
  .shortcut { grid-template-columns: auto 1fr; column-gap: var(--zx-space-3); align-items: center; }
  .shortcut .zx-icon-badge { grid-row: span 2; margin: 0; }
  .area-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; padding: var(--zx-space-4); }
  .form-grid { grid-template-columns: 1fr; }
  .inline-form { grid-template-columns: 1fr; }
  .helper-tabs { grid-template-columns: 1fr; }
  .helper-panel { padding: var(--zx-space-4); border-radius: var(--zx-radius-lg); }
  .footer-grid { grid-template-columns: 1fr; gap: var(--zx-space-5); }
  .float-card { font-size: var(--zx-text-xs); }
  .fc-1 { left: -4px; } .fc-2 { right: -4px; }
  .hero-bubble { right: 0; top: 0; }
  .dlg-inner { padding: var(--zx-space-4); }
  .month-btn { min-width: 80px; }
  .page-head { padding-top: var(--zx-space-5); }
  .seg-3 label { padding: 0 .4em; font-size: var(--zx-text-xs); }
  .hero-art { min-height: 250px; }
  .hero-mascot { width: 170px; }
  .hero-halo { width: 250px; }
  .float-card { padding: .35em .7em; }
  .floatie { opacity: .3; }
  .floatie.bubble { opacity: .2; }
}

/* ---------- Reduzierte Bewegung ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .floatie, .blob, .hero-halo::after { animation: none !important; }
}

/* ---------- Druck ---------- */
@media print {
  @page { size: A4; margin: 16mm; }
  body { background: #fff !important; color: #000; font-size: 11pt; }
  .sky, .site-header, .site-footer, .skip-link, .item-dialog { display: none !important; }
  body.printing main { display: none !important; }
  body.printing #print-area { display: block !important; }
  body:not(.printing) #print-area { display: none !important; }
  #print-area .result { box-shadow: none; padding: 0; animation: none; }
  #print-area .result::before, #print-area .result-actions, #print-area .translate-row { display: none !important; }
  #print-area .zx-tag, #print-area .tags li { background: none !important; border: 1px solid #999; color: #000; }
  .print-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8mm; padding-bottom: 3mm; border-bottom: 2px solid #7c3aed; }
  .print-foot { margin-top: 8mm; font-size: 9pt; color: #555; border-top: 1px solid #ccc; padding-top: 2mm; }
  .cols { columns: 2; list-style: none; padding: 0; }
  h2, h3, h4 { break-after: avoid; color: #2e1065; }
  .out-block, article { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}

/* ---------- Bundesland: Auswahl, Hinweise, Status-Badges ---------- */
.radar-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--zx-space-2) var(--zx-space-4); margin-bottom: var(--zx-space-3); }
.radar-head .card-title { margin: 0; }
.land-select { display: inline-flex; align-items: center; gap: var(--zx-space-2); font-weight: 700; font-size: .9rem; }
.land-select .zx-select { width: auto; min-width: 0; max-width: 100%; padding-block: .35rem; }
.status-badge { display: inline-block; margin-left: .35em; padding: .05em .55em; border-radius: 999px; font-size: .72rem; font-weight: 700; line-height: 1.6; vertical-align: middle; white-space: nowrap; cursor: help; }
.status-badge.is-check { background: var(--zx-amber-100, #fff3d6); color: #7a4b00; border: 1px dashed var(--zx-amber-300, #f5c46b); }
.status-badge.is-calc { background: rgba(120, 110, 220, .12); color: #4a3fa0; border: 1px dashed rgba(120, 110, 220, .45); }
.status-badge:focus-visible { outline: 3px solid var(--zx-focus, #6b5cff); outline-offset: 2px; }
.ferien-pill, .patron-pill { display: inline-block; padding: .05em .55em; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; vertical-align: middle; }
.ferien-pill { background: rgba(40, 170, 160, .14); color: #11675f; }
.patron-pill { background: rgba(240, 110, 90, .14); color: #9a3424; }
.radar-item .ferien-pill, .radar-item .patron-pill { margin-bottom: .3rem; }
.src { font-size: .8rem; margin: .35rem 0 0; overflow-wrap: anywhere; }
.src a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.kg-note-short { font-size: .85rem; font-weight: 700; margin: var(--zx-space-2) 0; color: #7a4b00; }
.kg-note { display: flex; gap: var(--zx-space-3); align-items: flex-start; padding: var(--zx-space-4) var(--zx-space-5); border-radius: var(--zx-radius-lg); background: linear-gradient(135deg, #fff4d4, #ffe6dc); border: 2px solid #f0b54a; margin-bottom: var(--zx-space-5); }
.kg-note > span { font-size: 1.6rem; line-height: 1; }
.kg-note p { margin: .25rem 0 0; }
.land-panel { padding: var(--zx-space-5); border-radius: var(--zx-radius-xl, 24px); margin-block: var(--zx-space-6); }
.land-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--zx-space-6); }
.land-grid h3 { font-size: 1.05rem; margin: var(--zx-space-4) 0 var(--zx-space-2); }
.land-grid h3:first-child { margin-top: 0; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.plain-list.cols2 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); margin-block: var(--zx-space-3); }
.table-wrap { overflow-x: auto; }
.ferien-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.ferien-table th, .ferien-table td { text-align: left; padding: .45rem .5rem; border-bottom: 1px solid rgba(80, 70, 140, .12); vertical-align: top; }
.ferien-table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.bund-frei { margin-top: var(--zx-space-5); }
.bund-frei summary { cursor: pointer; font-weight: 800; }
.fest-list li.kind-ferien, .fest-list li.kind-patron { background: rgba(255,255,255,.55); border-radius: 12px; padding: .3rem .5rem; }
@media (max-width: 980px) { .land-grid { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .land-panel { padding: var(--zx-space-4); }
  .kg-note { padding: var(--zx-space-3) var(--zx-space-4); }
  .ferien-table td:nth-child(3), .ferien-table th:nth-child(3) { display: none; }
  .ferien-table td small { display: block; }
}
@media print { .land-select { display: none; } }

/* =====================================================================
   UX-Review (design/ux-review.md) – Umsetzung
   ===================================================================== */
/* W6: kein horizontales Scrollen (Deko-Blobs, schmale Viewports) */
html, body { overflow-x: clip; }
.start-grid > *, .hero > *, .md-grid > *, .land-grid > * { min-width: 0; }
/* W10 + allgemein: deutlicher Fokusring */
.quick-search:focus-within { outline: 3px solid var(--zx-focus); outline-offset: 3px; }
.quick-search .zx-input:focus-visible { outline: none; box-shadow: none !important; }
.zx-input:focus-visible, .zx-select:focus-visible, .zx-textarea:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--zx-focus); outline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--zx-focus); outline-offset: 3px; }
/* W7: Navigation einzeilig */
.nav-links a, .nav-links .zx-btn { white-space: nowrap; }
.nav-links { order: 2; }
.nav-fav { order: 3; position: relative; flex: 0 0 auto; text-decoration: none; color: var(--zx-primary); }
.nav-toggle { order: 4; }
.nav-fav .fav-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--zx-primary); color: #fff; font-size: 12px; font-weight: 800; line-height: 20px; text-align: center; }
.nav-fav:not(.has-favs) .fav-count { background: var(--zx-violet-200); color: var(--zx-violet-900); }
.nav-fav.has-favs .zx-icon { fill: currentColor; }
.nav-extra { display: none; }
@media (max-width: 1100px) {
  .nav { justify-content: flex-start; }
  .nav .logo { margin-right: auto; }
  .nav-extra { display: block; border-top: 1px solid var(--zx-border); margin-top: 4px; padding-top: 4px; }
  /* N5: Abdunklung hinter dem offenen Menü */
  .nav-links.open::before { content: ""; position: fixed; inset: 0; background: rgba(46, 16, 101, .25); z-index: -1; }
  .nav-links.open { box-shadow: var(--zx-shadow-lg), 0 0 0 2px var(--zx-violet-200); }
}

/* K1: Start mobil – Text, Suche und Schnellzugriffe vor dem Maskottchen */
@media (max-width: 980px) {
  .hero-art { order: 0; min-height: 260px; }
}
@media (max-width: 640px) {
  .hero { position: relative; padding-top: var(--zx-space-4); gap: 0; }
  .hero-art { position: absolute; right: 0; top: 4px; width: 92px; min-height: 0; pointer-events: none; }
  .hero-halo, .hero-bubble, .float-card { display: none; }
  .hero-mascot { width: 92px; filter: drop-shadow(0 8px 14px rgba(76,29,149,.2)); }
  .hero-text .eyebrow { margin-right: 96px; }
  .hero-text h1 { padding-right: 84px; font-size: clamp(2rem, 9vw, 2.5rem); margin-bottom: var(--zx-space-2); }
  .hero .lead { font-size: var(--zx-text-base); margin-bottom: 0; }
  .quick-search { margin: var(--zx-space-4) 0; }
  .shortcuts { gap: var(--zx-space-2); }
  .shortcut { padding: var(--zx-space-3); }
}

/* K2: Bibliothek – Filter einklappbar, Pagination, aktive Filter */
.filter-toggle { display: none; }
.filter-more { display: contents; }
.filters .chips-field { grid-column: 1 / -1; }
.active-filters { display: flex; flex-wrap: wrap; gap: var(--zx-space-2); align-items: center; margin: 0 0 var(--zx-space-4); }
.active-chip { background: var(--zx-primary-soft); }
.load-more-row { display: flex; justify-content: center; margin: var(--zx-space-6) 0; }
.did-you-mean { margin: var(--zx-space-2) 0 var(--zx-space-3); font-weight: 700; }
h2.result-count { font-family: inherit; font-size: var(--zx-text-base); }
.filters { grid-template-columns: 2fr repeat(6, minmax(0, 1fr)); }
@media (max-width: 1080px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .filters { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: var(--zx-space-3); }
  .filters .field-search { grid-column: auto; }
  .filter-toggle { display: inline-flex; min-height: var(--zx-tap-target); white-space: nowrap; }
  .filter-more { display: none; grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--zx-space-3); }
  .filter-more.is-open { display: grid; }
  .filter-more .chips-field { grid-column: 1 / -1; }
  .type-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .type-tabs > * { flex: 0 0 auto; scroll-snap-align: start; }
  .result-bar { margin: var(--zx-space-3) 0; }
}
@media (max-width: 640px) {
  .filters { padding: var(--zx-space-3); }
  .page-head p .badge-demo { display: none; }
  /* N7: Emoji-Bildfeld mobil weglassen, Emoji vor den Titel */
  .idea-card .zx-card__media { display: none; }
}
.title-emoji { display: none; margin-right: .35em; }
@media (max-width: 640px) { .title-emoji { display: inline; } }
/* W3/W5: Karten-Infos */
.safety-flag { display: inline-flex; align-items: center; gap: .3em; align-self: flex-start; margin: 0; padding: .1em .6em; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: var(--zx-text-xs); font-weight: 800; }
.zx-card__meta { flex-wrap: wrap; }
/* W5: Aktionen im Dialog immer erreichbar */
.dlg-actions { position: sticky; bottom: 0; z-index: 1; background: var(--zx-surface); padding-block: var(--zx-space-3); margin-inline: calc(-1 * var(--zx-space-6)); padding-inline: var(--zx-space-6); box-shadow: 0 -8px 16px -12px rgba(76,29,149,.3); }
.item-dialog .dlg-head + .zx-card__meta + .area-tags + .warn-box { margin-top: var(--zx-space-3); }
@media (max-width: 640px) { .dlg-actions { margin-inline: calc(-1 * var(--zx-space-4)); padding-inline: var(--zx-space-4); } }

/* K3: KI-Helfer mobil – Formular zuerst, Tabs als Chip-Reihe, Zappelix darunter */
@media (max-width: 980px) {
  .helper-side { display: contents; }
  .helper-tabs { order: 0; display: flex; flex-wrap: nowrap; overflow-x: auto; gap: var(--zx-space-2); scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px 2px 6px; }
  .helper-tab { flex: 0 0 auto; width: auto; min-height: var(--zx-tap-target); padding: .4em .9em; border-radius: var(--zx-radius-pill); scroll-snap-align: start; }
  .helper-tab small { display: none; }
  .helper-tab b { font-size: var(--zx-text-sm); white-space: nowrap; }
  .helper-tab .ht-icon { font-size: 1.1rem; }
  .helper-tab:hover { transform: none; }
  .helper-panel { order: 1; }
  .companion { order: 2; }
}
@media (max-width: 640px) {
  .privacy-note { padding: var(--zx-space-2) var(--zx-space-3); }
  .privacy-note p { font-size: var(--zx-text-xs); }
  .companion-btn { width: 84px; }
}

/* W8: Touch-Ziele mind. 44 px */
.site-footer a:not(.logo), .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer ul { gap: 0; }
@media (max-width: 980px) {
  .link-btn { min-height: 44px; }
  .zx-chip, .chip, .type-tab, .active-chip, .month-btn { min-height: 44px; }
  .src a, .did-you-mean .link-btn { display: inline-flex; align-items: center; min-height: 44px; }
  .zx-icon-btn { min-width: 44px; min-height: 44px; }
  .theme-pill { min-height: 44px; }
}
.status-ok { margin-left: .3em; color: var(--zx-teal-700); font-weight: 800; font-size: .8em; cursor: help; }
/* K3: Formular mobil kompakter (2 Spalten für kurze Felder) */
@media (max-width: 640px) {
  .helper-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--zx-space-3); }
  .helper-form .form-grid > .field:has(input[type=text]), .helper-form .form-grid > .field:has(textarea), .helper-form .form-grid > .field-wide, .helper-form .form-grid > fieldset { grid-column: 1 / -1; }
  .helper-form .zx-label { font-size: var(--zx-text-sm); }
  .panel-head { margin-bottom: var(--zx-space-3); }
  [data-page="ki"] .page-head, [data-page="planen"] .page-head, [data-page="eltern"] .page-head, [data-page="beobachten"] .page-head { padding-bottom: var(--zx-space-3); }
  .helper-studio .privacy-note { margin-bottom: var(--zx-space-3); }
}
/* W8: restliche kleine Ziele */
@media (max-width: 980px) {
  .zx-btn--small { min-height: 44px; }
  .zx-card__title a { display: inline-block; padding-block: 5px; }
  .nav .logo { display: inline-flex; align-items: center; min-height: 44px; }
}
.pn-short { display: none; }
@media (max-width: 640px) {
  .pn-long { display: none; } .pn-short { display: inline; }
  /* Absenden-Button bleibt beim Ausfüllen sichtbar */
  .helper-form > [type=submit] { position: sticky; bottom: 10px; z-index: 2; box-shadow: var(--zx-shadow-lg), 0 0 0 4px rgba(255,255,255,.85); }
}
@media (max-width: 980px) { .zx-card__title a { min-height: 44px; padding-block: 3px; } }
/* Nachprüfung: Scroll-Ziele nicht unter dem Sticky-Header, Platz unter dem Sticky-Button */
#helper-output, #project-output, .page h1, .page h2, #cards-grid, #month-detail, #land-panel, #helper-studio { scroll-margin-top: 84px; }
@media (max-width: 640px) {
  .helper-form { padding-bottom: 72px; scroll-padding-bottom: 72px; }
  .helper-form :focus { scroll-margin-bottom: 80px; }
}
/* Vorlesetext: gut lesbar, ruhig */
.read-aloud { background: #fbf8f1; border: 1px solid #ece3d0; border-radius: var(--zx-radius-lg); padding: var(--zx-space-4) var(--zx-space-5); }
.read-aloud h3 { margin-top: 0; }
.ra-hint { font-size: var(--zx-text-sm); color: var(--zx-text-muted); margin: 0 0 var(--zx-space-3); }
.ra-text { font-size: 1.2rem; line-height: 1.85; color: #2b2340; max-width: 62ch; }
.ra-text p { margin: 0 0 1em; }
.ra-pause, .ra-pause-demo { display: inline-block; margin: 0 .3em; padding: 0 .55em; border-radius: 999px; border: 1px dashed #c9bde8; color: #6b5f86; font-size: .72em; font-style: italic; letter-spacing: .04em; line-height: 1.6; vertical-align: .15em; }
.ra-cue { display: block; margin-top: .15em; font-size: .85rem; line-height: 1.5; font-style: italic; color: #6b5f86; }
.ra-cue::before { content: "👐 "; font-style: normal; }
@media (max-width: 640px) { .read-aloud { padding: var(--zx-space-3) var(--zx-space-4); } .ra-text { font-size: 1.1rem; } }
@media print { .print-ra .ra-text { font-size: 14pt; line-height: 1.8; } .print-ra { background: none; border: 0; padding: 0; } }
