/* =========================================================================
   GA-Coach · Kompetenz-Check — Seiten-Styles
   Tokens kommen global aus assets/ga-tokens.css.
   Abschnitte: 1) Basis & Layout  2) Buttons/Chips/Cards  3) Nav/Footer
               4) Assessment (.ob-*)  5) Ergebnis/Report  6) Focus-Stage
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ga-bg); color: var(--ga-text);
  font-family: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, p { margin: 0; }
img { max-width: 100%; }
a { color: inherit; }
.lucide { stroke-width: 2; }
::selection { background: var(--ga-secondary); color: var(--ga-primary-900); }
#root { overflow-x: clip; }

/* ---------- 1) Layout primitives ---------- */
.container { max-width: var(--ga-container); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
@media (max-width: 720px) { .section { padding: 64px 0; } .section--tight { padding: 44px 0; } }

.eyebrow {
  font-size: 12px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: var(--ga-primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.grid-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.grid-3 { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .split-2 { grid-template-columns: 1fr; gap: 40px; } }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- 2) Buttons / Chips / Cards ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: inherit; font-weight: 800; font-size: 15px; line-height: 1;
  padding: 15px 24px; border-radius: 12px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none; transition: all .16s ease; white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--ga-shadow-focus); }
.btn svg, .btn .lucide { width: 18px; height: 18px; }
.btn-primary { background: var(--ga-primary); color: #fff; box-shadow: 0 6px 16px rgba(47,88,164,.28); }
.btn-primary:hover { background: var(--ga-primary-700); transform: translateY(-1px); box-shadow: 0 10px 22px rgba(47,88,164,.32); }
.btn-primary:active { transform: translateY(1px); }
.btn-light { background: #fff; color: var(--ga-primary); box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,.24); }
.btn-ghost-dark { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.42); }
.btn-ghost-dark:hover { background: rgba(255,255,255,.14); }
.btn-outline { background: transparent; color: var(--ga-primary); border-color: var(--ga-line-strong); }
.btn-outline:hover { border-color: var(--ga-primary); background: var(--ga-primary-050); }
.btn-lg { padding: 17px 30px; font-size: 16.5px; }
.btn-block { width: 100%; }
.btn:disabled { background: var(--ga-line-strong); color: #fff; box-shadow: none; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--ga-primary-050); color: var(--ga-primary);
}
.card {
  background: var(--ga-white); border: 1px solid var(--ga-line);
  border-radius: 16px; box-shadow: var(--ga-shadow-1);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--ga-shadow-2); }
.arrow-link { color: var(--ga-primary); font-weight: 800; font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.arrow-link:hover { gap: 10px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; transition: none; } }

/* ---------- 3) Nav / Footer ---------- */
.kc-nav-links { display: flex; gap: 2px; align-items: center; }
.kc-nav-link {
  padding: 9px 13px; border-radius: 9px; text-decoration: none;
  color: var(--ga-text); font-size: 14.5px; font-weight: 700; opacity: .85; transition: all .15s;
}
.kc-nav-link:hover { opacity: 1; background: var(--ga-primary-050); }
.kc-burger { display: none; }
@media (max-width: 880px) {
  .kc-nav-links { display: none !important; }
  .kc-burger { display: inline-flex !important; }
  .kc-nav-cta { display: none !important; }
}
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 28px !important; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr !important; } }

/* ---------- 4) Assessment (.ob-*) — aus dem gelieferten Widget ---------- */
.gaa-root { font-family: inherit; color: var(--ga-text); width: 100%; }
.gaa-root *, .gaa-root *::before, .gaa-root *::after { box-sizing: border-box; }
.gaa-root button { font-family: inherit; cursor: pointer; }
.gaa-root .lucide { stroke-width: 1.9; }

.ob-screen { width: 100%; }
.ob-narrow { max-width: 760px; margin: 0 auto; }
.ob-center { text-align: center; }

@media (prefers-reduced-motion: no-preference) {
  .gaa-root .ob-screen { animation: gaaRise .5s cubic-bezier(.2,.7,.2,1) both; }
  .gaa-root .ob-rise   { animation: gaaRise .55s cubic-bezier(.2,.7,.2,1) both; }
  .gaa-root .ob-pop    { animation: gaaPop .55s cubic-bezier(.2,.8,.2,1) both; }
}
@keyframes gaaRise { from { transform: translateY(16px); } to { transform: translateY(0); } }
@keyframes gaaPop  { 0% { transform: scale(.8); } 60% { transform: scale(1.05); } 100% { transform: scale(1); } }

.gaa-root .ob-title { font-size: 34px; font-weight: 800; color: var(--ga-text); letter-spacing: -.02em; line-height: 1.12; margin: 14px 0 10px; }
.gaa-root .ob-title .accent { color: var(--ga-primary); }
.gaa-root .ob-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ga-primary); display: inline-flex; align-items: center; gap: 7px; }
.gaa-root .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ga-primary); }

.gaa-root .ob-coach-avatar { border-radius: 999px; object-fit: cover; border: 3px solid #fff; box-shadow: var(--ga-shadow-2); background: var(--ga-primary-050); }
.gaa-root .ob-bubble { position: relative; background: #fff; border: 1px solid var(--ga-line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--ga-shadow-1); font-size: 14.5px; color: var(--ga-text-soft); line-height: 1.55; }
.gaa-root .ob-bubble::before { content: ''; position: absolute; left: -8px; top: 22px; width: 16px; height: 16px; background: #fff; border-left: 1px solid var(--ga-line); border-bottom: 1px solid var(--ga-line); transform: rotate(45deg); }
.gaa-root .ob-coach-tag { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ga-primary); margin-bottom: 6px; }

.gaa-root .ob-assess-card { background: #fff; border: 1px solid var(--ga-line); border-radius: 20px; box-shadow: var(--ga-shadow-2); padding: 30px 32px; }
.gaa-root .ob-q-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.gaa-root .ob-q-progress .bar { flex: 1; height: 7px; border-radius: 999px; background: var(--ga-section); overflow: hidden; }
.gaa-root .ob-q-progress .bar > div { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ga-secondary), var(--ga-primary)); transition: width .4s; }
.gaa-root .ob-q-progress .num { font-size: 12px; font-weight: 800; color: var(--ga-muted); white-space: nowrap; letter-spacing: .04em; }
.gaa-root .ob-q-text { font-size: 22px; font-weight: 800; color: var(--ga-text); line-height: 1.3; margin: 0 0 6px; letter-spacing: -.01em; }
.gaa-root .ob-q-hint { font-size: 13.5px; color: var(--ga-muted); margin: 0 0 20px; }
.gaa-root .ob-opts { display: flex; flex-direction: column; gap: 10px; }
.gaa-root .ob-opt { display: flex; align-items: center; gap: 14px; text-align: left; background: #fff; border: 2px solid var(--ga-line); border-radius: 12px; padding: 15px 16px; cursor: pointer; transition: all .14s; font-size: 14.5px; font-weight: 600; color: var(--ga-text-soft); width: 100%; }
.gaa-root .ob-opt:hover { border-color: var(--ga-secondary); background: var(--ga-section); }
.gaa-root .ob-opt .ob-opt-mark { width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0; border: 2px solid var(--ga-line-strong); background: #fff; display: flex; align-items: center; justify-content: center; transition: all .14s; }
.gaa-root .ob-opt .ob-opt-mark .lucide { width: 13px; height: 13px; color: #fff; opacity: 0; transition: opacity .14s; }
.gaa-root .ob-opt.selected { border-color: var(--ga-primary); background: var(--ga-primary-050); color: var(--ga-text); font-weight: 700; }
.gaa-root .ob-opt.selected .ob-opt-mark { background: var(--ga-primary); border-color: var(--ga-primary); }
.gaa-root .ob-opt.selected .ob-opt-mark .lucide { opacity: 1; }

.gaa-root .ob-result-badge { width: 96px; height: 96px; border-radius: 999px; margin: 0 auto 6px; background: linear-gradient(145deg, var(--ga-primary), var(--ga-primary-900)); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(47,88,164,.4); }
.gaa-root .ob-result-badge .lucide { width: 44px; height: 44px; }
.gaa-root .ob-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }
.gaa-root .ob-meter { display: flex; gap: 6px; margin: 18px auto 0; max-width: 360px; }
.gaa-root .ob-meter .seg { flex: 1; height: 8px; border-radius: 999px; background: var(--ga-line); }
.gaa-root .ob-meter .seg.on { background: var(--ga-primary); }

.gaa-root .ob-cta { background: var(--ga-primary); color: #fff; border: none; padding: 15px 26px; border-radius: 12px; font-size: 15.5px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; box-shadow: 0 10px 24px rgba(47,88,164,.28); transition: transform .15s, box-shadow .15s, background .15s; text-decoration: none; }
.gaa-root .ob-cta:hover { background: var(--ga-primary-700); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47,88,164,.34); }
.gaa-root .ob-cta .lucide { width: 18px; height: 18px; }
.gaa-root .ob-cta:disabled { background: var(--ga-line-strong); color: #fff; box-shadow: none; cursor: not-allowed; transform: none; }
.gaa-root .ob-cta.lg { padding: 17px 32px; font-size: 17px; }
.gaa-root .ob-back { background: transparent; border: none; color: var(--ga-muted); font-size: 14px; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; padding: 10px 8px; }
.gaa-root .ob-back:hover { color: var(--ga-text); }
.gaa-root .ob-back .lucide { width: 16px; height: 16px; }

@media (max-width: 560px) {
  .gaa-root .ob-assess-card { padding: 22px 18px; }
  .gaa-root .ob-title { font-size: 27px; }
  .gaa-root .ob-q-text { font-size: 19px; }
}

/* ---------- 5) Ergebnis / Report ---------- */
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .rep-grid { grid-template-columns: 1fr; } }

.rep-bar-track { height: 9px; border-radius: 999px; background: var(--ga-section); overflow: hidden; }
.rep-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ga-secondary), var(--ga-primary)); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.rep-bar-fill.weak { background: linear-gradient(90deg, #f3c98b, var(--ga-accent-amber)); }

/* Lernpfad-Stepper (learning-block: 2px linke Primärkante + Nummernbadge) */
.path-item { position: relative; display: flex; gap: 16px; padding-left: 2px; }
.path-rail { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.path-node { width: 38px; height: 38px; border-radius: 999px; background: var(--ga-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; box-shadow: 0 4px 12px rgba(47,88,164,.3); z-index: 1; }
.path-node.focus { background: var(--ga-accent-amber); color: #3a2600; box-shadow: 0 4px 12px rgba(245,165,36,.4); }
.path-line { width: 2px; flex: 1; background: var(--ga-line-strong); margin: 4px 0; min-height: 18px; }
.path-card { flex: 1; background: var(--ga-white); border: 1px solid var(--ga-line); border-left: 3px solid var(--ga-primary); border-radius: 14px; padding: 16px 18px; box-shadow: var(--ga-shadow-1); margin-bottom: 14px; transition: box-shadow .18s, transform .18s; }
.path-card:hover { box-shadow: var(--ga-shadow-2); transform: translateY(-2px); }
.path-card.focus { border-left-color: var(--ga-accent-amber); }

.lock-veil { position: relative; }
.lock-veil::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, var(--ga-white) 92%); pointer-events: none; }

/* Email-Gate */
.gate-input { flex: 1 1 240px; min-width: 0; padding: 15px 16px; border-radius: 12px; font-size: 15px; border: 1.5px solid var(--ga-line-strong); background: #fff; color: var(--ga-text); font-family: inherit; outline: none; transition: border-color .15s, box-shadow .15s; }
.gate-input:focus { border-color: var(--ga-primary); box-shadow: var(--ga-shadow-focus); }
.gate-input.err { border-color: var(--ga-danger); }

/* ---------- 6) Focus-Stage (Assessment/Ergebnis nehmen den Viewport ein) ---------- */
.kc-stage { min-height: 100vh; display: flex; flex-direction: column; background: radial-gradient(1200px 600px at 50% -10%, rgba(144,186,229,.18), transparent 60%), var(--ga-section); }
.kc-stage-bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; background: rgba(255,255,255,.82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ga-line); }
.kc-stage-main { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; padding: 40px 24px 72px; }
.kc-fade-enter { animation: kcFade .42s ease both; }
@keyframes kcFade { from { transform: translateY(10px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .kc-fade-enter { animation: none; } }

.kc-exit { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: none; color: var(--ga-muted); font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; padding: 8px 6px; }
.kc-exit:hover { color: var(--ga-text); }

@media (max-width: 640px) { .gate-split { grid-template-columns: 1fr !important; } }
