:root {
    --primary: #3fa3bb; --primary-dark: #2b7487; --primary-soft: #e8f7fb;
    --background: #eef3f8; --surface: #ffffff; --surface-soft: #f8fbfd;
    --text: #22313b; --muted: #5b6872; --border: #dde4ec;
    --success: #247857; --radius: 14px; --shadow: 0 8px 24px rgba(34,49,59,.08);
    --width: 980px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font-family: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height: 1.6; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.container { width: min(100%, var(--width)); margin-inline: auto; padding: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Kopfbereich */
.hero { padding: 20px 0; background: var(--surface); border-top: 24px solid var(--primary); border-bottom: 1px solid #e7e7e7; text-align: center; }
.hero__inner { padding-block: 22px; }
.brand { display: inline-block; padding: 0; margin: 0 0 18px; background: transparent; border: 0; border-radius: 8px; cursor: pointer; }
.logo-camp { display: block; width: 120px; height: auto; }
.hero h1 { margin: 0; font-size: clamp(2rem,5vw,3rem); line-height: 1.15; }
.subtitle { max-width: 700px; margin: 12px auto 0; color: var(--muted); font-size: clamp(1.05rem,2vw,1.25rem); }
.creator-line { display: flex; flex-direction: column; align-items: center; margin-top: 30px; color: #666; font-size: .94rem; }
.creator-line__title { margin-bottom: 13px; }
.creator-line__people { display: flex; align-items: center; justify-content: center; gap: 34px; }
.creator-line__person { display: flex; width: 155px; min-height: 52px; align-items: center; justify-content: center; }
.creator-line__mark { display: block; width: 145px; max-height: 52px; object-fit: contain; opacity: .85; }
.eyebrow { margin: 0 0 7px; color: var(--primary-dark); font-size: .78rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }

/* Flächen und Einstieg */
.card { margin: 24px 0; padding: 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.intro, .result-head { text-align: center; }
h2 { margin: 0 0 10px; font-size: clamp(1.55rem,4vw,2.1rem); line-height: 1.25; }
.lead { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 1.05rem; }
.finder-info { line-height: 1.7; }
.finder-info h2 { font-size: clamp(1.35rem, 3.5vw, 1.75rem); }
.finder-info p, .finder-info ul { max-width: 76ch; }
.finder-info p { margin: 0 0 14px; }
.finder-info ul { margin: 0; padding-left: 22px; }
.finder-info li + li { margin-top: 10px; }
.finder-info > :last-child { margin-bottom: 0; }
.finder-info a { color: var(--primary-dark); text-underline-offset: 3px; }
.finder-knowledge.card { margin-top: 56px; padding: clamp(20px, 4vw, 32px); background: #f3f6f8; border: 1px solid #dce5eb; box-shadow: none; }
.finder-knowledge > h2 { margin-bottom: 24px; max-width: 32ch; font-size: clamp(1.55rem, 3.8vw, 2rem); line-height: 1.3; }
.finder-knowledge > .finder-info { margin: 0; padding: 24px 0; background: transparent; border: 0; border-top: 1px solid #dce5eb; border-radius: 0; box-shadow: none; }
.finder-knowledge > .finder-info:last-child { padding-bottom: 0; }
.finder-knowledge .finder-info h3 { margin: 0 0 12px; font-size: clamp(1.15rem, 2.8vw, 1.4rem); line-height: 1.4; }
.finder-platform.card { background: #fff8e5; border: 1px solid #e8d28a; color: var(--text); box-shadow: none; }
.finder-platform a { color: #644a12; }
.finder-platform__cta { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; font-weight: 700; text-decoration: underline; }
.finder-faq details { border-top: 1px solid var(--border); }
.finder-faq summary { padding: 16px 0; cursor: pointer; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.finder-faq summary::marker { color: var(--primary-dark); }
.finder-faq summary:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; border-radius: 4px; }
.finder-faq details > p { margin: 0 0 18px; }
.trust-box { display: flex; gap: 18px; margin: 26px 0; padding: 24px 28px; background: var(--primary-soft); border: 1px solid #b7e4ef; border-left: 6px solid var(--primary); border-radius: 12px; text-align: left; box-shadow: 0 3px 10px rgba(0,0,0,.04); }
.trust-box__icon { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; background: var(--primary); border-radius: 50%; color: white; font-weight: 800; }
.trust-box h3 { margin: 0 0 7px; font-size: 1.25rem; }
.trust-box p { margin: 0; color: #44525c; }
.trust-list { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 14px 0 0; padding-left: 20px; color: #44525c; font-size: .94rem; }

/* Buttons und Fokus */
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border: 1px solid transparent; border-radius: 8px; font-weight: 750; line-height: 1.2; cursor: pointer; transition: background-color .2s,border-color .2s,transform .2s; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button--primary { background: var(--primary); color: #132c34; }
.button--primary:hover:not(:disabled) { background: var(--primary-dark); }
.button--secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.button--secondary:hover { border-color: var(--primary); background: var(--surface-soft); }
.button--large { min-width: 190px; }
.button:disabled { opacity: .45; cursor: not-allowed; }
.button:focus-visible, a:focus-visible, .brand:focus-visible, .choice:has(input:focus-visible), .filter:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; }

/* Wizard */
.progress { margin-bottom: 27px; }
.progress__meta { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 8px; color: var(--muted); font-size: .92rem; }
.progress__track { height: 10px; overflow: hidden; background: #e4ebef; border-radius: 999px; }
.progress__fill { width: 14.285%; height: 100%; background: var(--primary); border-radius: inherit; transition: width .3s ease; }
.selection-tip { margin: 10px 0 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.choice-group { margin: 22px 0 0; padding: 0; border: 0; }
.choice-grid { display: grid; gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.choice__content { display: flex; height: 100%; min-height: 58px; box-sizing: border-box; align-items: center; padding: 14px 16px; background: var(--surface-soft); border: 2px solid var(--border); border-radius: 10px; font-weight: 650; transition: border-color .18s,background .18s,box-shadow .18s; }
.choice__content::before { content: ""; flex: 0 0 20px; width: 20px; height: 20px; margin-right: 12px; background: #fff; border: 2px solid #9babb4; border-radius: 5px; }
.choice--radio .choice__content::before { border-radius: 50%; }
.choice input:checked + .choice__content { background: var(--primary-soft); border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.choice input:checked + .choice__content::before { background: var(--primary); border-color: var(--primary-dark); box-shadow: inset 0 0 0 4px #fff; }
.step-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.validation { margin: 16px 0 0; color: #9a3838; font-weight: 650; }
.question-help { grid-column: 1 / -1; margin: 0 0 6px; color: var(--muted); }
.qualification-intro, .qualification-empty { grid-column: 1 / -1; margin: 0; padding: 15px 17px; background: var(--primary-soft); border-radius: 9px; }
.qualification-card { grid-column: 1 / -1; padding: 18px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 11px; }
.qualification-card h3 { margin: 0 0 4px; font-size: 1.08rem; }
.qualification-card > p { margin: 0 0 13px; color: var(--muted); font-size: .93rem; }
.qualification-subfields { display: grid; gap: 9px; }
.qualification-subfield { overflow: hidden; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.qualification-subfield.is-open { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.subfield-choice { display: flex; min-height: 48px; align-items: center; gap: 10px; padding: 11px 13px; cursor: pointer; font-weight: 700; }
.subfield-choice input { width: 19px; height: 19px; accent-color: var(--primary-dark); }
.subfield-details { padding: 4px 14px 15px; border-top: 1px solid var(--border); }
.subfield-details fieldset { margin: 12px 0 0; padding: 0; border: 0; }
.subfield-details legend { margin-bottom: 8px; font-size: .91rem; font-weight: 750; }
.compact-options { display: grid; gap: 7px; }
.compact-options label { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: .9rem; cursor: pointer; }
.compact-options input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary-dark); }
.optional-text { display: grid; gap: 7px; font-weight: 700; }
.optional-text textarea { width: 100%; resize: vertical; padding: 10px 12px; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.field-note { margin-top: 8px !important; font-size: .85rem !important; }

/* Ergebnisse */
.notice-grid { display: grid; gap: 10px; margin-top: 24px; text-align: left; }
.notice { margin: 0; padding: 15px 17px; background: var(--primary-soft); border-left: 5px solid var(--primary); border-radius: 8px; }
.income-notice { grid-column: 1 / -1; }
.income-notice p { margin: 6px 0 0; }
.filter-bar { display: flex; flex-direction: column; gap: 9px; margin: 28px 0 10px; }
.filter-bar > span { font-weight: 750; }
#filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 8px 13px; background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-weight: 650; }
.filter[aria-pressed="true"] { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.result-count { color: var(--muted); }
.job-grid { display: grid; gap: 18px; }
.job-card { display: flex; min-width: 0; flex-direction: column; padding: 23px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.job-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.job-card__title { min-width: 0; }
.job-card h3 { margin: 0; font-size: 1.3rem; line-height: 1.25; }
.development-perspective { display: block; margin: 5px 0 0; color: var(--muted); font-size: .82rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.match { flex: 0 0 auto; padding: 5px 9px; background: var(--primary-soft); color: var(--primary-dark); border-radius: 999px; font-weight: 850; }
.job-card__description { color: var(--muted); }
.why { padding: 13px; background: #f3f8fa; border-radius: 8px; }
.why strong { color: var(--primary-dark); }
.experience-note, .legal-note { margin: 0 0 10px; padding: 12px 13px; border-radius: 8px; font-size: .92rem; }
.experience-note { background: #f4f8f5; border-left: 4px solid var(--success); }
.legal-note { background: #fff8e8; border-left: 4px solid #d39a29; }
.experience-note strong, .legal-note strong { color: var(--text); }
.facts { display: grid; grid-template-columns: 1fr; gap: 7px; margin: 17px 0; }
.fact { color: var(--muted); font-size: .93rem; }
.fact strong { color: var(--text); }
.fact--wide { grid-column: 1 / -1; }
.platforms { margin: 0 0 17px; font-size: .94rem; }
.platforms > ul { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 7px 0 0; padding-left: 20px; color: var(--muted); }
.platforms a { color: var(--primary-dark); text-underline-offset: 2px; }
.suitability { display: grid; gap: 14px; margin: 0 0 17px; padding: 16px; background: var(--surface-soft); border: 1px solid var(--border); border-radius: 10px; }
.suitability > div { min-width: 0; }
.suitability h4 { min-height: 2.7em; margin: 0 0 8px; font-size: .98rem; line-height: 1.35; }
.suitability ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: .92rem; }
.suitability li { display: flex; align-items: flex-start; gap: 8px; }
.suitability li span { flex: 0 0 18px; color: var(--text); }
.job-card__actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.job-card__actions .button { flex: 1 1 145px; padding-inline: 13px; text-decoration: none; }
.details-text { margin: 0 0 17px; padding: 18px; background: var(--surface-soft); color: var(--muted); border: 1px solid var(--border); border-radius: 8px; font-size: .93rem; }
.guide-section + .guide-section, .guide-columns, .guide-tools { margin-top: 20px; }
.guide-section h4, .guide-tools > h4 { margin: 0 0 7px; color: var(--text); font-size: 1rem; }
.guide-section p, .guide-tool p { margin: 0; }
.guide-section ul { margin: 0; padding-left: 20px; }
.guide-section li + li { margin-top: 4px; }
.guide-columns { display: grid; gap: 20px; }
.guide-columns > .guide-section { min-width: 0; margin-top: 0; }
.guide-columns > .guide-section h4 { min-height: 1.6em; }
.guide-tip { padding-left: 13px; border-left: 4px solid var(--primary); }
.ai-impact { margin-top: 20px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 8px; }
.ai-impact h4 { margin: 0 0 7px; color: var(--text); font-size: 1rem; }
.ai-impact p { margin: 6px 0 0; }
.guide-tools { padding-top: 18px; border-top: 1px solid var(--border); }
.guide-tool { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 0; }
.guide-tool + .guide-tool { border-top: 1px solid var(--border); }
.guide-tool .button { flex: 0 0 auto; padding: 9px 13px; text-decoration: none; }
.restart-wrap { margin: 30px 0; text-align: center; }
.load-more-wrap { margin: 26px 0 0; text-align: center; }

/* Footer */
.site-footer { margin-top: 60px; padding: 35px 20px; background: #f8f9fb; border-top: 1px solid #e5e7eb; text-align: center; }
.footer-links { margin-bottom: 18px; }
.footer-links a { display: inline-block; margin: 4px 14px; color: var(--primary-dark); font-weight: 500; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-copy { color: #666; font-size: .875rem; line-height: 1.6; }
.last-updated { display: inline-block; margin-top: 4px; }

@media (min-width: 620px) {
    .choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .notice-grid { grid-template-columns: 1fr 1fr; }
    .filter-bar { flex-direction: row; align-items: center; }
    .facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .suitability { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .guide-columns { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .qualification-subfields { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .qualification-subfield.is-open { grid-column: 1 / -1; }
    .compact-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 880px) {
    .job-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 900px) {
    .card { padding: 20px; }
    .trust-box { gap: 12px; padding: 20px; }
    .trust-box__icon { flex-basis: 32px; width: 32px; height: 32px; }
    .trust-list { display: block; }
}
@media (max-width: 520px) {
    .creator-line__people { flex-direction: column; gap: 16px; }
    .guide-tool { align-items: flex-start; flex-direction: column; }
    .job-card__head:has(.development-perspective) { flex-wrap: wrap; }
    .job-card__head:has(.development-perspective) .job-card__title { flex: 1 0 100%; order: 2; }
    .job-card__head:has(.development-perspective) .match { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } }

/* Fehlende Pflichtangaben in Frage 4 erst nach dem Weiter-Versuch anzeigen. */
#choices .qualification-missing { padding: 12px; background: #fff2f2; border: 1px solid #dca3a3; border-radius: 9px; }
.qualification-error { margin: 10px 0 0; color: #9b3030; font-size: .9rem; font-weight: 600; }

/* Grouped results retain the existing cards and stack naturally on phones. */
#jobResults { display: flex; flex-direction: column; gap: 30px; }
.career-group { min-width: 0; }
.career-group__title { margin: 0 0 14px; color: var(--primary-dark); font-size: 1.25rem; overflow-wrap: anywhere; }
.career-group__title span { font-size: .9rem; font-weight: 400; }
.career-group__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.direct-perspective { display: inline-block; margin-top: 7px; color: #225b42; background: #e6f4eb; padding: 3px 8px; border-radius: 5px; font-size: .78rem; font-weight: 700; }
.match { max-width: 135px; white-space: normal; text-align: right; }
@media (max-width: 680px) {
    .career-group__cards { grid-template-columns: minmax(0, 1fr); }
    .job-card__head { flex-wrap: wrap; }
}

.career-fields { display: flex; flex-wrap: wrap; gap: 8px; }
.career-fields a { padding: 8px 12px; border-radius: 7px; background: var(--primary-soft); color: var(--primary-dark); text-decoration: none; font-size: .9rem; overflow-wrap: anywhere; }
.career-fields a:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 2px; }
.career-group__title { scroll-margin-top: 110px; }

/* Result tools: accessible on small screens without changing existing cards. */
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.result-actions .button { flex: 1 1 240px; white-space: normal; }
.text-button { border: 0; background: transparent; color: var(--primary-dark); padding: 12px 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font: inherit; text-align: left; }
.text-button:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
.report-note, .report-status { color: var(--muted); font-size: .92rem; }
.report-status:empty { display: none; }
.answer-edit-navigation { display: grid; gap: 6px; margin: 18px 0; }
.answer-edit-navigation select { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; }
.recalculate-button { width: 100%; margin-top: 14px; white-space: normal; }
[hidden] { display: none !important; }

.result-actions .button--primary { background: var(--primary-dark); color: #fff; }
.result-actions .button--primary:hover:not(:disabled) { background: #225e6d; }

/* Compact result links; action buttons retain their existing event bindings. */
.result-action-panel { margin-top: 20px; text-align: center; }
.result-action-panel h3 { margin: 0 0 12px; font-size: 1.15rem; }
.result-action-panel .result-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 720px; margin-inline: auto; justify-content: center; align-items: stretch; gap: 10px 16px; margin-top: 0; }
.result-action-link { min-width: 0; min-height: 44px; padding: 8px 4px; border: 0; background: transparent; color: var(--primary-dark); font: inherit; line-height: 1.5; text-align: center; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
.result-action-link:hover:not(:disabled) { color: var(--text); text-decoration-thickness: 2px; }
.result-action-link:focus-visible { outline: 3px solid var(--primary-dark); outline-offset: 3px; border-radius: 3px; }
.result-action-link:disabled { opacity: .55; cursor: wait; }
/* Existing action IDs and handlers stay intact; only the first row looks like buttons. */
.result-action-panel :is(#editAnswersButton, #downloadReportButton) { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font-weight: 750; line-height: 1.3; text-decoration: none; transition: background-color .2s, border-color .2s, transform .2s; }
.result-action-panel :is(#editAnswersButton, #downloadReportButton):hover:not(:disabled) { border-color: var(--primary); background: var(--surface-soft); transform: translateY(-1px); text-decoration: none; }
.result-action-link--qualifications { grid-column: 1 / -1; justify-self: center; }
.result-action-panel .report-note { max-width: 660px; margin: 12px auto 0; }
.result-action-panel .report-status { margin: 8px 0 0; }
@media (max-width: 600px) {
    .result-action-panel .result-actions { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* Newsletter loads no third-party resources until the visitor follows the link. */
.result-newsletter { text-align: center; background: #fffbed; }
.result-newsletter h3 { margin: 0 0 10px; font-size: 1.2rem; }
.result-newsletter > p:not(.eyebrow) { max-width: 660px; margin: 12px auto; }
.result-newsletter a.button { max-width: 100%; white-space: normal; text-decoration: none; }
.result-newsletter .report-note { margin-bottom: 0; }
