/* =====================================================================
   Vielfalt-Kompass · vielfalt-begleiten.nrw
   Cohärent zum Praxisideen-Finder. Vanilla CSS, kein Build.
   ===================================================================== */
:root {
  --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,.07); --shadow: 0 8px 26px rgba(40,60,70,.11);
  --shadow-lg: 0 16px 44px rgba(40,60,70,.16);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, 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); line-height: 1.55; min-height: 100vh;
  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);
  -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; }
.hidden { display: none !important; }
.sr-only, .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 .18s var(--ease), box-shadow .18s var(--ease), background .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(.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,.32); }
.btn-green { background: linear-gradient(180deg, #6cbb5f, var(--green-dark)); }
.btn-blue { background: linear-gradient(180deg, #5a9ee0, var(--blue-dark)); box-shadow: 0 6px 16px rgba(58,120,186,.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); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(252,248,241,.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: .78rem; display: block; }
.header-link { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius-pill); padding: 6px 14px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: .9rem; transition: border-color .18s, transform .18s; }
.header-link:hover { border-color: var(--teal); transform: translateY(-1px); text-decoration: none; }

/* Hero */
section { padding: 22px 0; }
.hero { padding: 40px 0 18px; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 30px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.5px; margin-bottom: 12px; }
.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: .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: 22px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.intro-points { list-style: none; display: grid; gap: 7px; }
.intro-points li { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: .95rem; }
.intro-points li span { color: var(--green); font-weight: 800; }
.hero-art { display: flex; align-items: center; justify-content: center; }
.hero-art .luma-stage { width: min(320px, 80%); aspect-ratio: 1/1; position: relative; display: flex; align-items: center; justify-content: center; }
.hero-art .luma-glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(245,197,66,.35), rgba(63,193,189,.12) 60%, transparent 72%); filter: blur(6px); }
.luma { display: block; width: 100%; height: 100%; }
.luma-svg { width: 100%; height: 100%; overflow: visible; }

.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; }

/* Fortschritt */
.quiz-progress { position: sticky; top: 62px; z-index: 20; background: rgba(252,248,241,.92); backdrop-filter: blur(6px); padding: 12px 0; display: flex; align-items: center; gap: 14px; }
.progress-bar { flex: 1; height: 10px; background: #eee5d4; border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 999px; transition: width .4s var(--ease); }
.progress-label { font-weight: 700; color: var(--navy); font-size: .9rem; white-space: nowrap; }

/* Fragebogen */
.quiz-group { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 20px; margin-bottom: 16px; }
.quiz-group > h3 { font-size: 1.2rem; margin-bottom: 12px; display: flex; align-items: center; gap: 9px; }
.qg-ico { font-size: 1.2em; }
.quiz-item { padding: 14px 0; border-top: 1px dashed var(--line); }
.quiz-item:first-of-type { border-top: none; padding-top: 4px; }
.quiz-q { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.scale { display: flex; gap: 8px; flex-wrap: wrap; }
.scale-btn { flex: 1 1 150px; display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--line); color: var(--muted); border-radius: var(--radius-sm); padding: 9px 12px; font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: border-color .18s, background .18s, color .18s, transform .16s var(--ease); text-align: left; }
.scale-btn:hover { border-color: var(--teal); transform: translateY(-1px); }
.scale-dot { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); flex: 0 0 auto; transition: border-color .18s, background .18s; }
.scale-btn.selected { background: linear-gradient(180deg, var(--teal), var(--teal-dark)); border-color: var(--teal-dark); color: #fff; }
.scale-btn.selected .scale-dot { background: #fff; border-color: #fff; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Ergebnis */
.result-head { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.result-luma { width: 86px; height: 86px; flex: 0 0 auto; }
.result-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.result-head p { color: var(--ink); margin-top: 4px; }
.result-grid { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
.radar-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; position: sticky; top: 80px; }
.radar-svg { width: 100%; height: auto; display: block; }
.radar-shape { transform-origin: 170px 170px; }
#result-cards { display: grid; gap: 12px; }
.result-card { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px 18px; }
.rc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; flex-wrap: wrap; }
.rc-head h3 { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.rc-ico { font-size: 1.1em; }
.band-pill { color: #fff; font-size: .76rem; font-weight: 800; padding: 3px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.result-card p { color: var(--ink); font-size: .96rem; margin-bottom: 10px; }
.rc-topics { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rc-topics-label { font-size: .82rem; color: var(--muted); font-weight: 700; }
.topic-chip { background: var(--teal-soft); color: var(--teal-dark); border-radius: var(--radius-pill); padding: 5px 12px; font-size: .82rem; font-weight: 700; text-decoration: none; transition: background .18s, transform .18s; }
.topic-chip:hover { background: #cdeeec; transform: translateY(-1px); text-decoration: none; }
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Final CTA */
.final-cta { background: linear-gradient(135deg, #2ba6a2, #357a8f); color: #fff; border-radius: 24px; padding: 34px 30px; margin: 26px 0 10px; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.final-cta p { color: rgba(255,255,255,.92); max-width: 58ch; margin: 10px auto 20px; }
.final-cta .cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.final-cta .btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.4); }
.final-cta .btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 24px 0 40px; color: var(--muted); font-size: .9rem; }
.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; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* 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: .92rem; display: inline-flex; align-items: center; gap: 9px; animation: toastIn .3s var(--ease); }
.toast .t-ico { color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* 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: .6s; } .luma-sparkles path:nth-child(3) { animation-delay: 1.2s; }
@keyframes sparkle { 0%,100% { opacity: .2; transform: scale(.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(0); } 25% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } }
.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); } }
.card-enter { animation: cardEnter .45s var(--ease) both; }
@keyframes cardEnter { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
.radar-shape { animation: radarPop .6s var(--ease) both; }
@keyframes radarPop { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: scale(1); } }

/* Luma lebendig: Atmen, Blinzeln, Augen-Tracking, Reaktionen */
.luma-svg { transform-box: fill-box; transform-origin: 50% 92%; animation: lumaBreathe 4.6s ease-in-out infinite; }
.luma-root { transform-box: fill-box; transform-origin: center; }
.luma-eye { transform-box: fill-box; transform-origin: center; }
.luma-iris { transform-box: fill-box; transition: transform .12s ease-out; }
@keyframes lumaBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
.luma-eye.luma-blink { animation: lumaBlink .28s ease-in-out; }
@keyframes lumaBlink { 0%, 100% { transform: scaleY(1); } 45%, 55% { transform: scaleY(.08); } }
.luma-eye.lr-wink { animation: lrWink .5s ease-in-out; }
@keyframes lrWink { 0%, 100% { transform: scaleY(1); } 35%, 60% { transform: scaleY(.08); } }
.luma-eye.lr-wow { animation: lrWow 1.05s ease-out; }
@keyframes lrWow { 0% { transform: scale(1); } 30% { transform: scale(1.16); } 100% { transform: scale(1); } }
.luma-root.lr-hop { animation: lrHop .8s cubic-bezier(.22,1,.36,1); }
@keyframes lrHop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-22px); } 55% { transform: translateY(0); } 72% { transform: translateY(-9px); } }
.luma-root.lr-think { animation: lrThink .9s ease-in-out; }
@keyframes lrThink { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(3deg); } }
.luma-root.lr-nod { animation: lrNod .62s ease-in-out; }
@keyframes lrNod { 0%, 100% { transform: translateY(0) rotate(0); } 25% { transform: translateY(4px) rotate(2deg); } 60% { transform: translateY(0) rotate(-1deg); } 80% { transform: translateY(3px); } }
.luma-sparkles.lr-burst { animation: lrBurst 1s ease-out; }
@keyframes lrBurst { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }

/* Responsiv */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; } .hero-art .luma-stage { width: 210px; }
  .result-grid { grid-template-columns: 1fr; } .radar-wrap { position: static; max-width: 380px; margin: 0 auto; }
}
@media (max-width: 520px) {
  .brand small { display: none; }
  .scale-btn { flex-basis: 100%; }
  .quiz-progress { top: 56px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .luma-svg, .luma-eye, .luma-root, .float-soft { animation: none !important; }
  .luma-iris { transition: none !important; }
}

/* Druck */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  html, body { background: #fff !important; color: #1a1a1a !important; }
  .site-header, .quiz-progress, .quiz-actions, .result-actions, .final-cta,
  #final-cta-section, .site-footer, .toast-wrap, .no-print, .hero-cta, .intro-points,
  #intro-section, #quiz-section, .header-link { display: none !important; }
  #result-section { display: block !important; }
  .result-grid { grid-template-columns: 300px 1fr !important; gap: 16pt; }
  .radar-wrap { position: static !important; box-shadow: none !important; border: 0.75pt solid #ccc; }
  .result-card { box-shadow: none !important; border: 0.75pt solid #ccc; break-inside: avoid; }
  .band-pill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topic-chip { border: 0.5pt solid #bcdedb; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-only { display: block !important; }
  .print-footer { margin-top: 16pt; padding-top: 8pt; border-top: 0.75pt solid #999; font-size: 8.5pt; color: #555 !important; display: flex !important; align-items: center; gap: 8pt; }
  .print-footer .pf-luma { width: 24pt; height: 24pt; }
}
