/* ═══════════════════════════════════════════════════════════════
   Leapway, Selbst-Checks, Auswertungen und Brevo-Formulare
   (live ab 25.09.2026, ergänzt /leapway.css)
   Gilt für: orientierungs-check, ki-selbstcheck, beide -ergebnis-Seiten,
   whitepaper. Die Klassen stammen aus den Quiz-Skripten und dürfen
   nicht umbenannt werden. Ampelfarben der Auswertung bleiben bewusst.
   ═══════════════════════════════════════════════════════════════ */

:root {
  --ok: #2D7A5F;
  --mid: #C68A1A;
  --low: #B03A2E;
}

/* ─── Quiz-Bereich ─── */
section.demographics, section.quiz { padding: 72px 32px 0; }
section.quiz { padding-bottom: 96px; }
section.demographics .quiz-card { max-width: 760px; }
.quiz-card { max-width: 760px; margin: 0 auto; background: #fff; border-top: 4px solid var(--navy); padding: 40px 44px 36px; }
.quiz-card .overline, .cat-label { display: block; font-size: .92rem; font-weight: 600; color: var(--blue); margin-bottom: 12px; letter-spacing: 0; text-transform: none; }
.quiz-card a, .result-card a:not(.result-cta):not(.wp-hint-cta), .deeper a { color: var(--blue); }
.question-text { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; font-weight: 500; color: var(--ink); letter-spacing: -.01em; margin-bottom: 26px; }
.scale-hint { font-size: .86rem; color: var(--muted); margin-bottom: 14px; }
.demo-hint { color: var(--muted); font-size: .96rem; line-height: 1.55; margin: -8px 0 24px; }
.demo-section-divider { font-size: .9rem; font-weight: 600; color: var(--navy); margin: 8px 0 -4px; padding-top: 12px; border-top: 1px solid var(--line); }
.demo-fields { display: grid; gap: 16px; margin-bottom: 26px; }
.demo-field { display: block; }
.demo-label { display: block; font-size: .86rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.demo-field select {
  width: 100%; padding: 12px 42px 12px 14px; border: 1.5px solid var(--line); border-radius: 0;
  font: inherit; font-size: .98rem; background-color: var(--paper); color: var(--ink); cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2315306B' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
}
.demo-field select:focus { outline: none; border-color: var(--navy); background-color: #fff; }
.demo-controls { display: flex; gap: 12px; flex-wrap: wrap; }
.demo-btn { font: inherit; font-size: 1rem; font-weight: 600; border-radius: 999px; padding: 14px 26px; cursor: pointer; border: 1px solid transparent; transition: background-color .2s ease, border-color .2s ease; }
.demo-btn.primary { background: var(--ink); color: #fff; }
.demo-btn.primary:hover { background: var(--navy); }
.demo-btn.secondary { background: transparent; color: var(--text); border-color: var(--line); }
.demo-btn.secondary:hover { border-color: var(--navy); color: var(--ink); }

.progress { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.progress-bar { flex: 1; height: 6px; background: var(--ice-2); overflow: hidden; }
.progress-bar-fill { height: 100%; background: var(--blue); transition: width 280ms ease; width: 0%; }
.progress-text { font-size: .84rem; color: var(--muted); font-weight: 600; white-space: nowrap; }

.answers { display: flex; flex-direction: column; gap: 8px; }
.answer-btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 1rem; font-weight: 500; color: var(--ink); background: var(--paper); border: 1.5px solid var(--line); border-radius: 0; padding: 16px 18px; cursor: pointer; transition: border-color .18s ease, background-color .18s ease; }
.answer-btn:hover { border-color: var(--navy); background: #fff; }
.answer-btn.selected { border-color: var(--navy); background: var(--navy); color: #fff; }
.answer-dot { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.answer-dot.green { background: #DDF0E6; }
.answer-dot.green::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--ok); }
.answer-dot.yellow { background: #FBEFD6; }
.answer-dot.yellow::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--mid); }
.answer-dot.red { background: #F6DDDA; }
.answer-dot.red::after { content: ''; width: 14px; height: 14px; border-radius: 50%; background: var(--low); }
.answer-marker { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid #B8B0A8; background: #fff; display: flex; align-items: center; justify-content: center; }
.answer-btn.selected .answer-marker { border-color: #fff; }
.answer-btn.selected .answer-marker::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--navy); }
.quiz-controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.btn-back { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: none; cursor: pointer; font: inherit; font-size: .94rem; font-weight: 600; color: var(--muted); padding: 8px 4px; }
.btn-back:hover { color: var(--ink); }
.btn-back[disabled] { opacity: .35; cursor: not-allowed; }
.quiz-hint { font-size: .86rem; color: var(--muted); text-align: right; }

/* ─── Auswertung ─── */
/* Quiz-Seite: Auswertung erst nach der letzten Antwort (Skript setzt .active); Ergebnis-Seite: immer sichtbar */
section.result { padding: 72px 32px 88px; }
#result-section { padding: 72px 0 88px; display: none; }
#result-section.active { display: block; }
.result-card { max-width: 880px; margin: 0 auto; background: #fff; border-top: 4px solid var(--navy); padding: 48px 48px 40px; }
.result-head { text-align: center; margin-bottom: 38px; }
.result-head .small-line { font-size: .95rem; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.result-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 2.8vw, 2.3rem); line-height: 1.15; color: var(--ink); margin: 0 0 14px; }
.result-head .result-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; padding: 14px 24px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: .98rem; text-decoration: none; transition: background-color .2s ease; }
.result-head .result-cta:hover { background: var(--navy); }
.score-big { font-family: var(--serif); font-weight: 500; font-size: 3.6rem; color: var(--navy); line-height: 1; }
.score-max { font-size: 1.4rem; color: var(--muted); font-weight: 600; margin-left: 4px; }
.score-dist { display: flex; gap: 18px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.score-dist span { display: inline-flex; align-items: center; gap: 8px; font-size: .96rem; color: var(--text); }
.score-dist span::before { content: ''; width: 12px; height: 12px; border-radius: 50%; }
.score-dist .green::before { background: var(--ok); }
.score-dist .yellow::before { background: var(--mid); }
.score-dist .red::before { background: var(--low); }

.cat-bars { display: flex; flex-direction: column; gap: 14px; margin-bottom: 38px; }
.cat-row { display: grid; grid-template-columns: 220px 1fr 60px; gap: 16px; align-items: center; }
.cat-row .name { font-size: .94rem; font-weight: 600; color: var(--ink); }
.cat-row .name small { display: block; font-size: .8rem; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.cat-row .bar { height: 10px; background: var(--paper-2); overflow: hidden; }
.cat-row .bar-fill { height: 100%; transition: width 600ms ease; }
.cat-row .bar-fill.high { background: var(--ok); }
.cat-row .bar-fill.mid { background: var(--mid); }
.cat-row .bar-fill.low { background: var(--low); }
.cat-row .num { font-size: .94rem; font-weight: 700; color: var(--ink); text-align: right; }

.score-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 38px; }
.score-bar-card { padding: 22px 24px; }
.score-bar-card.verfuehrung { background: var(--paper-2); }
.score-bar-card.souveraenitaet { background: var(--ice); }
.score-bar-card .label { font-size: .92rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.score-bar-card .value { font-family: var(--serif); font-size: 2rem; font-weight: 500; color: var(--ink); line-height: 1; }
.score-bar-card .value .max { font-family: var(--sans); font-size: .95rem; color: var(--muted); font-weight: 600; margin-left: 2px; }
.score-bar-card .bar { margin-top: 12px; height: 8px; background: rgba(21, 48, 107, .1); overflow: hidden; }
.score-bar-card .bar-fill { height: 100%; transition: width 600ms ease; }
.score-bar-card.verfuehrung .bar-fill { background: var(--mid); }
.score-bar-card.souveraenitaet .bar-fill { background: var(--blue); }
.matrix-wrap { background: var(--paper); padding: 28px 24px 22px; margin-bottom: 38px; }
.matrix-wrap .matrix-title { font-size: .95rem; font-weight: 600; color: var(--navy); text-align: center; margin-bottom: 4px; }
.matrix-wrap .matrix-sub { font-size: .88rem; color: var(--muted); text-align: center; margin-bottom: 18px; }
.matrix-svg-wrap { max-width: 380px; margin: 0 auto; }
.matrix-svg { display: block; width: 100%; height: auto; }

.interp-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.interp { display: flex; gap: 16px; padding: 20px 22px; border-left: 4px solid; }
.interp.primary { background: var(--ice); border-left-color: var(--navy); }
.interp.note-foundation { background: #FBF3E6; border-left-color: var(--mid); }
.interp.note-psychological { background: #F3EEF8; border-left-color: #6B3FA0; }
.interp .icon { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.interp.primary .icon { background: rgba(21, 48, 107, .12); color: var(--navy); }
.interp.note-foundation .icon { background: rgba(198, 138, 26, .16); color: #8E6312; }
.interp.note-psychological .icon { background: rgba(107, 63, 160, .14); color: #6B3FA0; }
.interp .text { font-size: .96rem; color: var(--text); line-height: 1.6; }
.interp .text strong { display: block; font-weight: 700; color: var(--ink); margin-bottom: 4px; font-size: 1rem; }
.interp .text ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; }
.interp .text ul li { margin-bottom: 4px; }

details.review { background: var(--paper); border: 1px solid var(--line); padding: 14px 18px; margin-bottom: 30px; }
details.review[open] { background: #fff; }
details.review summary { font-weight: 600; font-size: .96rem; color: var(--navy); cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.review summary::-webkit-details-marker { display: none; }
details.review summary::after { content: '▾'; margin-left: auto; transition: transform .2s ease; }
details.review[open] summary::after { transform: rotate(180deg); }
.review-list { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.review-item { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .9rem; line-height: 1.5; color: var(--text); }
.review-item .dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 5px; }
.review-item .dot.green { background: var(--ok); }
.review-item .dot.yellow { background: var(--mid); }
.review-item .dot.red { background: var(--low); }
.review-item .construct { font-style: italic; color: var(--navy); font-weight: 600; font-size: .86rem; display: block; margin-bottom: 2px; }
.review-item .ans { color: var(--muted); font-size: .86rem; font-style: italic; display: block; margin-top: 3px; }

.wp-hint { display: grid; grid-template-columns: 88px 1fr auto; gap: 22px; align-items: center; background: var(--navy); color: #fff; padding: 22px 26px; margin-bottom: 28px; }
.wp-hint .wp-hint-cover { width: 88px; height: auto; display: block; }
.wp-hint .wp-hint-text { font-size: .94rem; line-height: 1.55; color: var(--on-dark); }
.wp-hint .wp-hint-text strong { display: block; font-size: 1.04rem; font-weight: 600; color: #fff; margin-bottom: 4px; }
.wp-hint .wp-hint-cta { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--deep); font-weight: 600; font-size: .94rem; border-radius: 999px; padding: 12px 20px; text-decoration: none; white-space: nowrap; }
.wp-hint .wp-hint-cta:hover { background: var(--ice); }

.restart { text-align: center; }
.restart button { background: transparent; border: none; cursor: pointer; font: inherit; font-size: .94rem; color: var(--muted); text-decoration: underline; padding: 8px; }
.restart button:hover { color: var(--navy); }

/* ─── Auswertung per E-Mail ─── */
section.deeper { padding: 0 32px 110px; display: none; }
section.deeper.active { display: block; }
.deeper-head { max-width: 620px; margin: 0 auto 30px; text-align: center; }
.deeper-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; color: var(--ink); margin: 0 0 12px; }
.deeper-head p { color: var(--muted); font-size: 1rem; line-height: 1.65; }

/* ─── Ergebnis-Seiten (Inhalt per Skript) ─── */
section.intro { background: var(--deep); color: rgba(255, 255, 255, .78); padding: 158px 32px 72px; }
section.intro .inner { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
section.intro .overline { display: block; color: var(--sky); font-weight: 500; font-size: 1rem; margin-bottom: 18px; }
section.intro h1 { font-family: var(--serif); color: #fff; font-weight: 500; font-size: clamp(2.3rem, 4.4vw, 3.6rem); line-height: 1.06; letter-spacing: -.022em; margin-bottom: 20px; max-width: 900px; }
section.intro h1 .accent { color: var(--sky); font-style: italic; }
section.intro p { font-size: 1.12rem; line-height: 1.6; color: rgba(255, 255, 255, .74); max-width: 720px; }
section.cta-talk { padding: 0 32px 110px; }
.talk-card { max-width: 880px; margin: 0 auto; background: var(--navy); color: #fff; padding: 38px 44px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.talk-card h3 { font-family: var(--serif); color: #fff; font-weight: 500; font-size: 1.6rem; line-height: 1.2; margin-bottom: 8px; }
.talk-card p { font-size: .98rem; line-height: 1.6; color: var(--on-dark); max-width: 540px; }
.talk-card .talk-cta { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--deep); font-weight: 600; font-size: .98rem; border-radius: 999px; padding: 14px 24px; text-decoration: none; white-space: nowrap; }
.talk-card .talk-cta:hover { background: var(--ice); }
section.error { padding: 190px 32px 110px; text-align: center; }
section.error .inner { max-width: 580px; margin: 0 auto; }
section.error .icon { width: 64px; height: 64px; border-radius: 50%; background: #FBF3E6; color: var(--mid); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }
section.error h2 { font-family: var(--serif); font-weight: 500; font-size: 2rem; color: var(--ink); margin-bottom: 12px; }
section.error p { color: var(--muted); line-height: 1.65; margin-bottom: 28px; }
section.error .btn { display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: #fff; font-weight: 600; font-size: .98rem; border-radius: 999px; padding: 14px 24px; text-decoration: none; }
section.error .btn:hover { background: var(--navy); }

/* ─── Brevo-Formulare (Whitepaper, Auswertung per E-Mail) ─── */
.brevo-wrap { max-width: 620px; margin: 0 auto; }
.brevo-wrap .sib-form { background: transparent !important; padding: 0 !important; text-align: left !important; }
.brevo-wrap #sib-container { background: #fff !important; border: 0 !important; border-top: 4px solid var(--navy) !important; border-radius: 0 !important; box-shadow: none !important; padding: 36px 38px 32px !important; max-width: 100% !important; }
.brevo-wrap #sib-container * { font-family: var(--sans) !important; }
.brevo-wrap .sib-text-form-block p { color: var(--muted) !important; font-size: .98rem !important; line-height: 1.6 !important; }
.brevo-wrap .entry__label { color: var(--ink) !important; font-size: .86rem !important; font-weight: 600 !important; margin-bottom: 6px !important; }
.brevo-wrap .input { box-sizing: border-box !important; background: var(--paper) !important; border: 1.5px solid var(--line) !important; border-radius: 0 !important; padding: 8px 12px !important; height: 44px !important; min-height: 44px !important; line-height: 1.3 !important; font-size: .96rem !important; color: var(--ink) !important; width: 100% !important; }
.brevo-wrap .input:focus { background: #fff !important; border-color: var(--navy) !important; box-shadow: none !important; outline: none !important; }
.brevo-wrap .entry__specification { color: var(--muted) !important; font-size: .82rem !important; }
.brevo-wrap .sib-form__declaration { background: var(--paper) !important; border-radius: 0 !important; padding: 14px 16px !important; }
.brevo-wrap .sib-form__declaration p, .brevo-wrap .sib-form__declaration > div { color: var(--muted) !important; font-size: .82rem !important; line-height: 1.55 !important; }
.brevo-wrap .sib-form__declaration a, .brevo-wrap .entry__choice a { color: var(--blue) !important; }
.brevo-wrap .sib-form-block__button { background: var(--ink) !important; color: #fff !important; font-weight: 600 !important; font-size: 1rem !important; border-radius: 999px !important; padding: 15px 26px !important; box-shadow: none !important; cursor: pointer !important; border: none !important; width: 100% !important; justify-content: center !important; text-align: center !important; }
.brevo-wrap .sib-form-block__button:hover { background: var(--navy) !important; }
.brevo-wrap .checkbox { border-radius: 2px !important; }
.brevo-wrap #success-message, .brevo-wrap #error-message { border-radius: 0 !important; max-width: 100% !important; margin-bottom: 16px !important; }
.brevo-wrap #sib-form > div { padding: 4px 0 !important; }
.brevo-wrap .form__entry { padding: 0 !important; }
.brevo-wrap .entry__error:empty { display: none !important; margin: 0 !important; padding: 0 !important; }
.name-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.name-row > div { padding: 4px 0 !important; }
#ccm-consent-notice { border-radius: 0 !important; }
#ccm-consent-notice a { border-radius: 999px !important; }

/* ─── Responsiv ─── */
@media (max-width: 900px) {
  .quiz-card { padding: 30px 24px 26px; }
  .result-card { padding: 34px 24px 30px; }
  .cat-row { grid-template-columns: 1fr 60px; }
  .cat-row .name { grid-column: 1 / -1; }
  .cat-row .bar { grid-column: 1; }
  .cat-row .num { grid-column: 2; }
  .talk-card { grid-template-columns: 1fr; padding: 30px 26px; }
  .talk-card .talk-cta { justify-self: start; }
}
@media (max-width: 720px) {
  .wp-hint { grid-template-columns: 64px 1fr; gap: 16px; padding: 18px; }
  .wp-hint .wp-hint-cover { width: 64px; }
  .wp-hint .wp-hint-cta { grid-column: 1 / -1; justify-content: center; }
  .score-bars { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  section.demographics, section.quiz { padding: 48px 20px 0; }
  section.quiz { padding-bottom: 72px; }
  section.result { padding: 48px 20px 64px; }
  #result-section { padding: 48px 0 64px; }
  section.deeper, section.cta-talk { padding-left: 20px; padding-right: 20px; }
  section.intro { padding: 124px 0 56px; }
  section.intro .inner { padding: 0 20px; }
  section.intro h1 { font-size: 2.3rem; }
  .question-text { font-size: 1.25rem; }
  .quiz-hint { display: none; }
  .name-row { grid-template-columns: 1fr; gap: 0; }
  .brevo-wrap #sib-container { padding: 26px 22px !important; }
}
@media (max-width: 520px) {
  .result-card { padding: 26px 16px 24px; }
  .interp { padding: 14px; gap: 10px; }
  .interp .icon { width: 28px; height: 28px; }
  .interp .icon svg { width: 16px; height: 16px; }
  .matrix-wrap { padding: 18px 12px 14px; }
}
@media (max-width: 400px) {
  .interp { flex-direction: column; gap: 8px; }
}
