/* =====================================================================
   Praxisideen-Finder · vielfalt-begleiten.nrw
   Freundlicher pädagogischer Werkzeugkasten + kleine magische Ideensuche
   Vanilla CSS, kein Build. Design-Tokens als CSS-Variablen.
   ===================================================================== */

:root {
  /* Farben – warm, freundlich, an Luma angelehnt */
  --teal: #3fc1bd;
  --teal-dark: #2ba6a2;
  --teal-soft: #e4f7f6;
  --green: #5aa84f;
  --green-dark: #498c40;
  --orange: #ef8a3c;
  --orange-dark: #d9742a;
  --blue: #4a90d9;
  --blue-dark: #3a78ba;
  --gold: #f5c542;
  --navy: #1f3a4d;
  --ink: #244653;
  --muted: #5c7480;

  --bg: #fcf8f1;
  --bg-warm: #fdf3e6;
  --card: #ffffff;
  --line: #e7ded0;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(40, 60, 70, 0.07);
  --shadow: 0 8px 26px rgba(40, 60, 70, 0.11);
  --shadow-lg: 0 16px 44px rgba(40, 60, 70, 0.16);

  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --maxw: 1120px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 80% -10%, var(--teal-soft), transparent 60%),
    radial-gradient(900px 420px at 0% 0%, var(--bg-warm), transparent 55%),
    var(--bg);
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

a { color: var(--blue-dark); }

h1, h2, h3 { color: var(--navy); line-height: 1.2; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: 10px 16px;
  border-radius: 0 0 10px 0; z-index: 100;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------------------- Buttons ---------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 700; font-size: 1rem;
  border: none; cursor: pointer;
  padding: 13px 22px; border-radius: var(--radius-pill);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s;
  text-decoration: none; color: #fff; line-height: 1.1;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn .ico { font-size: 1.15em; line-height: 1; }

.btn-primary { background: linear-gradient(180deg, var(--orange), var(--orange-dark)); box-shadow: 0 6px 16px rgba(217, 116, 42, 0.32); }
.btn-green   { background: linear-gradient(180deg, #6cbb5f, var(--green-dark)); box-shadow: 0 6px 16px rgba(73, 140, 64, 0.3); }
.btn-blue    { background: linear-gradient(180deg, #5a9ee0, var(--blue-dark)); box-shadow: 0 6px 16px rgba(58, 120, 186, 0.3); }
.btn-ghost   { background: #fff; color: var(--ink); border: 2px solid var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-sm { padding: 9px 15px; font-size: 0.9rem; }

.btn[aria-pressed="true"].btn-fav { background: linear-gradient(180deg, #f5b0a3, #e6796a); }

/* ---------------------------- Header ---------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(252, 248, 241, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--navy); text-decoration: none; }
.brand .logo { width: 34px; height: 34px; }
.brand small { font-weight: 600; color: var(--muted); font-size: 0.78rem; display: block; }
.header-fav-count {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius-pill);
  padding: 6px 14px; font-weight: 700; color: var(--ink); cursor: pointer; font-size: 0.9rem;
  transition: border-color 0.18s, transform 0.18s;
}
.header-fav-count:hover { border-color: var(--orange); transform: translateY(-1px); }
.header-fav-count .heart { color: var(--orange); }

/* ---------------------------- Breadcrumb ---------------------------- */
.breadcrumb { padding: 12px 0 0; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.84rem; color: var(--muted); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before { content: "›"; color: var(--line); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal-dark); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* ---------------------------- Hero ---------------------------- */
.hero { padding: 40px 0 18px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 30px; align-items: center; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.5px; margin-bottom: 12px;
}
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 2px solid var(--teal-soft); color: var(--teal-dark);
  padding: 6px 14px; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.82rem;
  margin-bottom: 16px; box-shadow: var(--shadow-sm);
}
.hero .lead { font-size: 1.2rem; color: var(--ink); margin-bottom: 10px; font-weight: 600; }
.hero .sub { font-size: 1.02rem; color: var(--muted); margin-bottom: 24px; max-width: 52ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art .luma-stage {
  width: min(330px, 80%); aspect-ratio: 1 / 1; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.hero-art .luma-glow {
  position: absolute; inset: 6% 6% 4% 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 197, 66, 0.35), rgba(63, 193, 189, 0.12) 60%, transparent 72%);
  filter: blur(6px); z-index: 0;
}

.luma { display: block; width: 100%; height: 100%; }
.luma-svg { width: 100%; height: 100%; overflow: visible; }

/* ---------------------------- Sections ---------------------------- */
section { padding: 22px 0; }
.section-head { margin-bottom: 16px; }
.section-head h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.section-head p { color: var(--muted); margin-top: 4px; }

/* ---------------------------- Filter ---------------------------- */
.filter-panel {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px; position: relative;
}
.filter-top { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 6px; flex-wrap: wrap; }
.filter-luma {
  flex: 0 0 auto; width: 70px; height: 70px;
  background: var(--teal-soft); border-radius: 16px; padding: 6px;
}
.filter-intro { flex: 1; min-width: 220px; }
.filter-intro h2 { font-size: 1.3rem; }
.filter-intro p { color: var(--muted); font-size: 0.95rem; }
.filter-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-left: auto; }

.filter-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px 22px; margin-top: 14px; }
fieldset.filter-group { border: none; }
fieldset.filter-group > legend {
  font-weight: 800; color: var(--navy); font-size: 0.92rem; margin-bottom: 9px;
  display: inline-flex; align-items: center; gap: 7px; padding: 0;
}
.legend-ico { font-size: 1.05em; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  background: #fff; border: 2px solid var(--line); color: var(--ink);
  padding: 7px 13px; border-radius: var(--radius-pill);
  font-size: 0.86rem; font-weight: 600; cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.18s, border-color 0.18s, color 0.18s;
  user-select: none;
}
.chip:hover { border-color: var(--teal); transform: translateY(-1px); }
.chip .chip-check { width: 0; overflow: hidden; opacity: 0; transition: width 0.18s var(--ease), opacity 0.18s; font-weight: 800; }
.chip[aria-pressed="true"] {
  background: linear-gradient(180deg, var(--teal), var(--teal-dark));
  border-color: var(--teal-dark); color: #fff;
  transform: scale(1.04);
  box-shadow: 0 4px 12px rgba(43, 166, 162, 0.32);
}
.chip[aria-pressed="true"] .chip-check { width: 1em; opacity: 1; }

.filter-summary {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
}
.result-count {
  font-weight: 800; color: var(--navy); font-size: 1.05rem;
  display: inline-flex; align-items: center; gap: 8px;
}
.result-count .pill {
  background: var(--gold); color: var(--navy); border-radius: var(--radius-pill);
  padding: 2px 12px; min-width: 34px; text-align: center;
  transition: transform 0.2s var(--ease);
}
.active-filter-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.active-filter-tags .mini {
  background: var(--teal-soft); color: var(--teal-dark); border-radius: var(--radius-pill);
  padding: 3px 10px; font-size: 0.78rem; font-weight: 700; display: inline-flex; gap: 5px; align-items: center;
  cursor: pointer; border: none;
}
.active-filter-tags .mini:hover { background: #cdeeec; }

/* ---------------------------- Idea grid / cards ---------------------------- */
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }

.idea-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px; display: flex; flex-direction: column; gap: 10px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s;
  position: relative; overflow: hidden;
}
.idea-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal); }
.idea-card .topic-strip { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, var(--teal), var(--gold)); }

.idea-card .card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-top: 4px; }
.idea-card h3 { font-size: 1.16rem; }
.idea-card .short { color: var(--muted); font-size: 0.94rem; flex: 1; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  font-size: 0.74rem; font-weight: 700; padding: 3px 10px; border-radius: var(--radius-pill);
  display: inline-flex; align-items: center; gap: 4px;
}
.badge-topic { background: var(--teal-soft); color: var(--teal-dark); }
.badge-meta { background: #f1ece2; color: var(--muted); }
.badge-tip   { background: #fef3d6; color: #9a6b00; }
.badge-quick { background: #e7f6e3; color: var(--green-dark); }
.badge-nomat { background: #eaf2fc; color: var(--blue-dark); }
.badge-circle{ background: #f6e9f7; color: #8e3a96; }

.card-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.card-foot .btn { flex: 1; }

.fav-btn {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; padding: 0;
  background: #fff; border: 2px solid var(--line); color: #c9b59a; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.2rem;
  transition: transform 0.18s var(--ease), border-color 0.18s, color 0.18s, background 0.18s;
}
.fav-btn:hover { border-color: var(--orange); transform: scale(1.08); }
.fav-btn[aria-pressed="true"] { background: #fff2ed; border-color: var(--orange); color: var(--orange); }

/* "von Luma gefunden" Hervorhebung */
.idea-card.luma-found {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.5), var(--shadow);
  animation: foundPulse 1.6s var(--ease) 1;
}
.found-ribbon {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(180deg, #ffe9a8, var(--gold)); color: var(--navy);
  font-size: 0.76rem; font-weight: 800; padding: 3px 10px; border-radius: var(--radius-pill);
  align-self: flex-start;
}

/* ---------------------------- Detail dialog ---------------------------- */
dialog.detail {
  position: fixed;
  inset: 0;
  margin: auto;
  border: none; border-radius: 22px; padding: 0;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: var(--shadow-lg); color: var(--ink); background: var(--card);
}
dialog.detail::backdrop { background: rgba(31, 58, 77, 0.45); backdrop-filter: blur(3px); }
.detail-inner { padding: 26px 28px 30px; }
.detail-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.detail-top h2 { font-size: 1.6rem; }
.detail-close {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1.2rem; color: var(--muted); line-height: 1;
}
.detail-close:hover { border-color: var(--orange); color: var(--orange); }
.detail .short { font-size: 1.05rem; color: var(--muted); margin: 8px 0 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.detail h3 { font-size: 1.02rem; margin: 18px 0 7px; display: flex; align-items: center; gap: 8px; }
.detail h3 .h-ico { color: var(--teal-dark); }
.detail ol { margin: 0 0 0 4px; padding-left: 22px; }
.detail ol li { margin-bottom: 7px; }
.detail .goal { background: var(--teal-soft); border-radius: var(--radius-sm); padding: 12px 14px; }
.detail .reflect {
  background: #fff7e6; border-left: 4px solid var(--gold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 14px; font-style: italic;
}
.variations { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; }
.variations .vbox { background: #f7f3ec; border-radius: var(--radius-sm); padding: 11px 13px; font-size: 0.92rem; }
.variations .vbox strong { display: block; color: var(--navy); margin-bottom: 3px; font-size: 0.85rem; }

/* Lumas Hinweis */
.luma-tip {
  display: flex; gap: 12px; align-items: flex-start;
  background: linear-gradient(180deg, #effaf9, #e4f7f6); border: 1px solid #c9ecea;
  border-radius: 16px; padding: 14px 16px; margin-top: 18px;
}
.luma-tip .tip-ico { flex: 0 0 auto; width: 46px; height: 46px; background: #fff; border-radius: 12px; padding: 3px; box-shadow: var(--shadow-sm); }
.luma-tip .tip-body strong { color: var(--teal-dark); display: block; margin-bottom: 2px; }
.luma-tip.sensitivity { background: linear-gradient(180deg, #fff6ef, #fdeee2); border-color: #f3ddc8; }
.luma-tip.sensitivity .tip-body strong { color: var(--orange-dark); }

.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; align-items: center; }
.detail-tools { display: inline-flex; gap: 8px; margin-left: auto; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); padding: 0;
  background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color 0.18s var(--ease), transform 0.18s var(--ease), background 0.18s;
}
.icon-btn:hover { border-color: var(--teal); transform: translateY(-2px); background: var(--teal-soft); }

.related { margin-top: 22px; }
.related h3 { margin-bottom: 10px; }
.related-list { display: flex; flex-direction: column; gap: 8px; }
.related-item {
  text-align: left; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 14px; cursor: pointer; transition: border-color 0.18s, transform 0.18s; font: inherit;
  display: flex; align-items: center; gap: 10px; color: var(--ink);
}
.related-item:hover { border-color: var(--teal); transform: translateX(3px); }
.related-item .ri-ico { color: var(--teal); }
.related-item b { color: var(--navy); }

/* ---------------------------- Empty / Favorites ---------------------------- */
.state-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 34px 24px; text-align: center;
}
.state-card .state-luma { width: 150px; height: 150px; margin: 0 auto 10px; }
.state-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.state-card p { color: var(--muted); max-width: 46ch; margin: 0 auto 18px; }
.state-card .state-cta { display: inline-flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.hidden { display: none !important; }

.fav-meta-hint {
  text-align: center; color: var(--teal-dark); font-weight: 700; font-size: 0.92rem; margin-bottom: 12px;
}

/* ---------------------------- Final CTA ---------------------------- */
.final-cta {
  background: linear-gradient(135deg, #2ba6a2, #357a8f);
  color: #fff; border-radius: 24px; padding: 36px 30px; margin: 26px 0 10px;
  text-align: center; position: relative; overflow: hidden;
}
.final-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); }
.final-cta p { color: rgba(255,255,255,0.92); max-width: 60ch; margin: 10px auto 22px; }
.final-cta .cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.final-cta .btn-ghost { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.4); }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,0.24); color: #fff; }
.cta-note { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-top: 14px; }

/* ---------------------------- Final CTA: Luma peek ---------------------------- */
.cta-luma {
  position: absolute; right: 14px; bottom: -6px; width: 120px; height: 130px;
  z-index: 1; pointer-events: none; opacity: 0.96;
}
.cta-luma .luma-svg { filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18)); }
.final-cta h2, .final-cta p, .final-cta .cta-row, .final-cta .cta-note { position: relative; z-index: 2; }
@media (max-width: 700px) { .cta-luma { width: 84px; height: 92px; right: 6px; opacity: 0.9; } }

/* ---------------------------- About / SEO ---------------------------- */
.about { padding: 28px 0; }
.about-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 30px; }
.about h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin-bottom: 10px; }
.about p { color: var(--muted); margin-bottom: 12px; }
.about strong { color: var(--ink); }
.topic-cloud { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.topic-link {
  background: #fff; border: 2px solid var(--line); color: var(--ink); cursor: pointer;
  font: inherit; font-weight: 600; font-size: 0.85rem; padding: 6px 12px; border-radius: var(--radius-pill);
  transition: border-color 0.18s, color 0.18s, transform 0.18s;
}
.topic-link:hover { border-color: var(--teal); color: var(--teal-dark); transform: translateY(-1px); }
.about-links { font-size: 0.9rem; }
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ---------------------------- FAQ ---------------------------- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 16px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--teal); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 14px; color: var(--muted); }

/* ---------------------------- Footer ---------------------------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 30px; padding: 24px 0 40px; color: var(--muted); font-size: 0.9rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-row { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---------------------------- Toast ---------------------------- */
.toast-wrap {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; gap: 8px; z-index: 80; pointer-events: none;
}
.toast {
  background: var(--navy); color: #fff; padding: 11px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); font-weight: 700; font-size: 0.92rem;
  display: inline-flex; align-items: center; gap: 9px;
  animation: toastIn 0.3s var(--ease);
}
.toast .t-ico { color: var(--gold); }
/* Toast innerhalb des offenen Dialogs (Top-Layer) – fix am unteren Rand zentriert */
.toast-floating {
  position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 2147483647;
}

/* =====================================================================
   Animationen
   ===================================================================== */
.float-soft { animation: floatSoft 6s ease-in-out infinite; }
@keyframes floatSoft {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50%      { transform: translateY(-12px) rotate(1.5deg); }
}

.luma-sparkles path { transform-origin: center; animation: sparkle 2.6s ease-in-out infinite; }
.luma-sparkles path:nth-child(2) { animation-delay: 0.6s; }
.luma-sparkles path:nth-child(3) { animation-delay: 1.2s; }
@keyframes sparkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

.luma-wave { transform-origin: 150px 120px; animation: wave 2.4s ease-in-out infinite; }
@keyframes wave {
  0%, 100% { transform: rotate(0deg); }
  25%      { transform: rotate(-12deg); }
  60%      { transform: rotate(8deg); }
}

.luma-lupe { animation: lupeSearch 4s ease-in-out infinite; transform-origin: 158px 96px; }
@keyframes lupeSearch {
  0%, 100% { transform: translate(0,0) rotate(0deg); }
  30%      { transform: translate(-6px,4px) rotate(-6deg); }
  65%      { transform: translate(5px,-2px) rotate(5deg); }
}

.luma-heart { transform-origin: 100px 170px; animation: heartBeat 2.2s ease-in-out infinite; }
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

/* Luma reagiert auf Hover des Haupt-CTA / Klick */
.luma-pulse { animation: lumaPulse 0.6s var(--ease) 1; }
@keyframes lumaPulse {
  0% { transform: scale(1); } 40% { transform: scale(1.07) rotate(2deg); } 100% { transform: scale(1); }
}
.luma-hop { animation: lumaHop 0.7s var(--ease) 1; }
@keyframes lumaHop {
  0%,100% { transform: translateY(0); } 30% { transform: translateY(-22px); } 55% { transform: translateY(0); } 70% { transform: translateY(-9px); }
}
.luma-think { animation: lumaThink 0.9s ease-in-out infinite; }
@keyframes lumaThink {
  0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); }
}

/* Karten erscheinen versetzt */
.card-enter { animation: cardEnter 0.45s var(--ease) both; }
@keyframes cardEnter {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes foundPulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 197, 66, 0.7), var(--shadow); }
  70% { box-shadow: 0 0 0 14px rgba(245, 197, 66, 0), var(--shadow); }
  100% { box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.5), var(--shadow); }
}

.count-bump { animation: countBump 0.35s var(--ease) 1; }
@keyframes countBump { 0%{transform:scale(1);} 45%{transform:scale(1.28);} 100%{transform:scale(1);} }

@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* kleines "gespeichert"-Funkeln */
.save-spark {
  position: fixed; z-index: 90; pointer-events: none; font-size: 1.4rem;
  animation: saveSpark 0.8s var(--ease) forwards;
}
@keyframes saveSpark {
  0% { opacity: 0; transform: translateY(0) scale(0.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-60px) scale(1.2); }
}

/* =====================================================================
   Responsiv
   ===================================================================== */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art .luma-stage { width: 210px; }
  .filter-actions { margin-left: 0; width: 100%; }
  .variations { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero { padding: 24px 0 8px; }
  .brand small { display: none; }
  .detail-inner { padding: 20px 18px 24px; }
  .card-foot { flex-wrap: wrap; }
}

/* =====================================================================
   Reduced motion – Bewegung respektvoll abschalten
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .float-soft, .luma-wave, .luma-lupe, .luma-heart, .luma-sparkles path { animation: none !important; }
}

/* =====================================================================
   Druckansicht (A4) – nur die Idee, ohne Deko
   ===================================================================== */
@media print {
  @page { margin: 15mm; }
  html, body { background: #fff !important; color: #1a1a1a !important; font-size: 11pt; }
  body::before { display: none !important; }

  /* Alles ausblenden außer dem offenen Ideen-Dialog */
  .site-header, .site-footer, .filter-panel, .hero, .hero-cta, .hero-art,
  .final-cta, .faq, .about, .breadcrumb, .toast-wrap, .section-head p, .no-print,
  #results-section, #favorites-section, #empty-section, .skip-link { display: none !important; }

  dialog.detail {
    position: static !important; inset: auto !important; margin: 0 !important;
    width: 100% !important; max-width: 100% !important; max-height: none !important;
    overflow: visible !important; box-shadow: none !important; border-radius: 0 !important;
    background: #fff !important; color: #1a1a1a !important;
  }
  dialog.detail::backdrop { display: none !important; }
  .detail-close, .detail-actions, .related, .found-ribbon { display: none !important; }
  .detail-inner { padding: 0 !important; }

  /* Typografie */
  .detail-top h2 { font-size: 21pt; line-height: 1.15; margin-bottom: 3pt; }
  .detail .short { font-size: 11pt; color: #444 !important; margin: 3pt 0 10pt; }
  .detail h3 { font-size: 12.5pt; margin: 13pt 0 4pt; break-after: avoid; }
  .detail h3 .h-ico { display: none; }
  .detail ol { padding-left: 16pt; }
  .detail ol li { margin-bottom: 3pt; break-inside: avoid; }

  /* Eckdaten als schlichte, tonersparende Textchips */
  .detail-meta { gap: 5pt; margin-bottom: 9pt; }
  .detail-meta .badge {
    background: #fff !important; color: #333 !important;
    border: 0.5pt solid #b8b8b8; border-radius: 4pt; font-size: 8.5pt; padding: 1.5pt 6pt;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }

  /* Inhaltsboxen: Rahmen statt Farbfüllung (spart Toner) */
  .goal, .reflect, .variations .vbox, .luma-tip {
    background: #fff !important; border: 0.75pt solid #cfcfcf; border-radius: 6pt;
    padding: 8pt 10pt !important; margin-top: 6pt; break-inside: avoid;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .goal strong, .luma-tip .tip-body strong { color: #1a1a1a !important; }
  .reflect { border-left: 3pt solid #c9a227; font-style: italic; }
  .luma-tip { display: flex; gap: 8pt; align-items: flex-start; }
  .luma-tip.sensitivity { border-color: #e0b48a; }
  .luma-tip .tip-ico { width: 30pt; height: 30pt; flex: 0 0 auto; }
  .variations { display: grid; grid-template-columns: 1fr 1fr; gap: 8pt; }

  .print-only { display: block !important; }
  .print-footer {
    margin-top: 18pt; padding-top: 8pt; border-top: 0.75pt solid #999;
    font-size: 8.5pt; color: #555 !important; display: flex !important; align-items: center; gap: 8pt;
    break-inside: avoid;
  }
  .print-footer .pf-luma { width: 24pt; height: 24pt; flex: 0 0 auto; }
}
.print-only { display: none; }
