:root {
    --primary: #214285;
    --bg: #ffffff;
    --text: #222;
    --muted: #6b7280;
    --card: #f7f8fc;
    --bar: #214285;
    --bar-bg: #e5e7eb;
    --ring: rgba(33, 66, 133, .25);
    --btn: #214285;
    --btn-text: #fff;
    --btn-alt: #fff;
    --btn-alt-text: #214285;
    --radius: 16px;
    --chip-bg: #eef2ff;
    --chip-border: #dbe2ff;
    --footer-bg: #dcdcdc;
    --footer-border: #e5e7eb;

    --cat-red: #e74c3c;
    --cat-yellow: #f1c40f;
    --cat-green: #27ae60;
}

html,
body {
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
    margin: 0
}

.wrap .inner {
    padding: 24px;
}
.wrap{
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Header */
header {
    padding: 12px 0 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

header .logo {
    height: 100px;
    width: auto;
    display: block
}

header .site-title {
    color: var(--primary);
    font-size: 2rem;
    line-height: 1.2;
    margin: .2rem 0 .2rem;
}

/* Headings */
h2 {
    color: var(--primary);
    font-size: 1.25rem;
    margin: 1rem 0 .4rem
}

/* Intro-Headline (kleiner) */
#intro h2 {
    font-size: 1.8rem;
    margin: .2rem 0 .6rem
}

/* Ergebnis-Headline 25% größer & zentriert */
#results h2.title {
    font-size: 2.5rem;
    text-align: center;
    margin-top: 0.25rem;
}

#results h2 {
    margin-top: 1.5rem;
}

p.lead {
    color: #374151;
    margin: .25rem 0 1rem
}

/* Cards & Progress */
.card {
    background: var(--card);
    border: 1px solid #e6e8ef;
    border-radius: var(--radius);
    padding: 18px;
    margin-top: 20px
}

.progress {
    height: 10px;
    background: var(--bar-bg);
    border-radius: 999px;
    overflow: hidden;
    margin: .5rem 0
}

.progress>span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--bar);
    transition: width .3s ease
}

.meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: .95rem;
    margin: .25rem 0
}

.q-head {
    font-weight: 700;
    margin: .5rem 0 .25rem
}

.options {
    display: grid;
    gap: 10px;
    margin: 12px 0
}

.opt {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    transition: box-shadow .15s, border-color .15s, transform .02s
}

.opt:hover {
    box-shadow: 0 0 0 4px var(--ring)
}

.opt:active {
    transform: scale(.998)
}

.opt input {
    accent-color: var(--primary);
    transform: scale(1.2)
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 6px
}

button {
    appearance: none;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 700;
    cursor: pointer
}

button.primary {
    background: var(--btn);
    color: var(--btn-text)
}

button.secondary {
    background: var(--btn-alt);
    color: var(--btn-alt-text);
    border: 1px solid #d1d5db
}

button:disabled {
    opacity: .6;
    cursor: not-allowed
}

.hidden {
    display: none
}

.err {
    color: #dc2626;
    font-size: .9rem;
    margin-top: 2px
}

.footer-note {
    color: #6b7280;
    font-size: .9rem;
    margin-top: 6px
}

/* Chips (Unterkategorie aktiv) */
.chips {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: .25rem 0 .35rem
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 700;
    font-size: .85rem;
    line-height: 1;
    border: 1px solid var(--chip-border);
    background: var(--chip-bg);
    color: var(--primary)
}

.chip.ghost {
    background: #fff;
    border-color: #e1e5ee;
    color: #44506a
}

/* Ergebnisse – Balken in eigener schmaler Spalte */
.score-row {
    display: grid;
    grid-template-columns: 1fr minmax(180px, 320px) 90px;
    gap: 12px;
    padding: 3px;
    align-items: center
}

.bar {
    height: 12px;
    background: var(--bar-bg);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    width: 100%
}

.bar>span {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--bar);
    transition: width .6s ease
}

.pct {
    text-align: right;
    font-weight: 700
}

.pill {
    display: inline-block;
    font-size: .8rem;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    color: #4b5563;
    background: #fff
}

.rec {
    background: #fff;
    border: 1px solid #e6e8ef;
    border-radius: 12px;
    padding: 12px
}

.grid-2 {
    display: block;
}


@media(min-width:860px) {
    .grid-2 {
        /* No grid columns, keep stacked */
    }
}

.hr {
    height: 1px;
    background: #e5e7eb;
    margin: 8px 0
}

.note {
    background: #fffdf5;
    border: 1px solid #fde68a;
    color: #92400e;
    border-radius: 12px;
    padding: 10px;
    font-size: .9rem
}

/* Footer */
footer {
    margin-top: 40px;
    padding: 16px 24px;
    border-top: 1px solid #e5e7eb;
    font-size: .9rem;
    color: #444;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    align-items: center
}

#footerInfo {
    display: none;
}

.wrap .info {
    border-top: 1px solid var(--footer-border);
    background-color: var(--footer-bg);
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding: 16px 24px;
    height: 100px;
    flex-wrap: wrap;
    align-content: center;
}

.wrap .info h2 {
    margin: 0;
    font-size: 1rem;
}

.wrap .info p {
    margin: 0;
    font-size: 0.8rem;
}

.wrap .info img {
    height: 80px;
    width: auto;
    margin-right: 7rem;
}

footer .links {
    display: flex;
    gap: 16px
}

footer a {
    color: var(--primary);
    text-decoration: none
}

footer a:hover {
    text-decoration: underline
}

/* Druck/PDF */
@media print {

    header,
    #intro,
    #qCard,
    #contact,
    #restart,
    footer {
        display: none !important;
    }

    body {
        background: #fff;
    }

    .card {
        border: none;
    }

    .wrap {
        max-width: 800px;
    }

    .bar>span {
        background: #000;
    }
}

/* Intro Checkliste */
ul.checklist {
    list-style: none;
    padding-left: 0;
    margin: .5rem 0 0
}

ul.checklist li {
    margin: .25rem 0
}

ul.checklist li::before {
    content: "✅ ";
    margin-right: 4px
}

ul {
    margin-block-start: 0;
    margin-block-end: 0;
}
ol {
    margin-block-start: 0;
    margin-block-end: 0;
}

.collapsible-header {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}