/* Luracon – Subscription Quick Assessment
   Baut auf style.css und ki-workshop.css auf (Karten, Eyebrows, CTA). */

/* ------------------------------------------------------------------
   Bewertungsskala
------------------------------------------------------------------- */
.qa-scale {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.qa-scale li {
    background: rgba(8, 18, 38, .92);
    border: 1px solid rgba(0, 183, 255, .12);
    border-radius: 18px;
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.qa-scale-num {
    font-family: var(--lutz-headline-font-family), serif;
    font-size: 40px;
    line-height: 1;
    color: var(--lutz-turquoise-text);
}

.qa-scale-txt {
    font-size: 16px;
    line-height: 1.45;
    color: rgba(255, 255, 255, .78);
}

/* ------------------------------------------------------------------
   Fortschritt
------------------------------------------------------------------- */
.qa-progress {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 24px;
}

.qa-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
}

.qa-progress-bar span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--lutz-turquoise-text);
    border-radius: 6px;
    transition: width .4s ease;
}

.qa-progress-label {
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .6);
    white-space: nowrap;
}

/* ------------------------------------------------------------------
   Schritte, Formular
------------------------------------------------------------------- */
#assessment {
    scroll-margin-top: 24px;
}

.qa-step.kw-card {
    padding: 48px;
}

h2.qa-h2 {
    font-size: 44px;
    line-height: 54px;
}

.qa-h3 {
    font-family: var(--lutz-headline-font-family), serif;
    font-weight: 500;
    font-size: 34px;
    line-height: 42px;
}

.qa-topic-q {
    font-size: 20px;
    line-height: 30px;
    color: rgba(255, 255, 255, .72);
}

.qa-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, .8);
}

.qa-input {
    width: 100%;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(0, 183, 255, .25);
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 18px;
    font-weight: 300;
    color: var(--lutz-white);
    outline: none;
    transition: border-color .2s ease, background .2s ease;
}

.qa-input:focus {
    border-color: var(--lutz-turquoise-text);
    background: rgba(0, 183, 255, .06);
}

select.qa-input {
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #00d4ff 50%), linear-gradient(135deg, #00d4ff 50%, transparent 50%);
    background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding-right: 44px;
}

select.qa-input option {
    background: #081226;
    color: var(--lutz-white);
}

.qa-input.qa-invalid {
    border-color: #ff6b6b;
}

.qa-check {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
    cursor: pointer;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
}

.qa-check span {
    color: rgba(255, 255, 255, .72);
}

.qa-check a {
    color: var(--lutz-turquoise-text);
    text-decoration: underline;
}

.qa-check input {
    flex: none;
    width: 22px;
    height: 22px;
    margin-top: 2px;
    accent-color: #00d4ff;
    cursor: pointer;
}

.qa-check.qa-invalid {
    border-color: #ff6b6b;
}

.qa-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.qa-error {
    min-height: 1px;
    margin: 18px 0 0;
    color: #ff8a8a;
    font-weight: 400;
}

.qa-error span {
    color: #ff8a8a;
}

.qa-warn {
    background: rgba(255, 180, 0, .1);
    border: 1px solid rgba(255, 180, 0, .35);
    border-radius: 12px;
    padding: 14px 18px;
}

.qa-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
}

.qa-nav button,
.qa-cta-buttons button {
    border-radius: 12px;
    transition: background .2s ease;
}

.qa-nav button:not(.qa-btn-secondary),
.qa-cta-buttons button:not(.qa-btn-secondary) {
    border: 1px solid rgba(0, 212, 255, .35);
}

button.qa-btn-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .25);
}

button.qa-btn-secondary:hover {
    background: rgba(255, 255, 255, .06);
}

button.qa-busy {
    opacity: .6;
    cursor: progress;
}

/* ------------------------------------------------------------------
   Fragen mit Skala 1-5
------------------------------------------------------------------- */
.qa-question {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 24px 0 20px;
    margin: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas: "txt opts" "txt hint";
    column-gap: 32px;
    row-gap: 8px;
    align-items: start;
    border-radius: 0;
    transition: background .2s ease;
}

.qa-question-txt {
    grid-area: txt;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    font-size: 18px;
    line-height: 1.55;
    font-weight: 300;
    color: rgba(255, 255, 255, .88);
}

.qa-question-txt span {
    color: rgba(255, 255, 255, .88);
}

.qa-question-num {
    display: inline-block;
    min-width: 42px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lutz-turquoise-text) !important;
}

.qa-options {
    grid-area: opts;
    display: flex;
    gap: 8px;
}

.qa-option {
    position: relative;
    cursor: pointer;
}

.qa-option input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
}

.qa-option span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    border: 1px solid rgba(0, 183, 255, .25);
    background: rgba(255, 255, 255, .04);
    font-size: 20px;
    font-weight: 600;
    transition: all .15s ease;
}

.qa-option:hover span {
    border-color: var(--lutz-turquoise-text);
    background: rgba(0, 183, 255, .1);
}

.qa-option input:focus-visible + span {
    outline: 2px solid var(--lutz-turquoise-text);
    outline-offset: 2px;
}

.qa-option input:checked + span {
    background: var(--lutz-turquoise-text);
    border-color: var(--lutz-turquoise-text);
    color: #081226;
}

.qa-option-hint {
    grid-area: hint;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, .45);
    text-align: right;
    max-width: 292px;
    justify-self: end;
}

.qa-option-hint span {
    color: rgba(255, 255, 255, .45);
}

.qa-question.qa-answered .qa-option-hint span {
    color: var(--lutz-turquoise-text);
}

.qa-question.qa-invalid .qa-option span {
    border-color: #ff6b6b;
}

.qa-question.qa-invalid .qa-option-hint span {
    color: #ff8a8a;
}

/* ------------------------------------------------------------------
   Ergebnis
------------------------------------------------------------------- */
#qa-result {
    padding-top: 8px;
}

.qa-print-head {
    display: none;
}

.qa-result-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.qa-spider-wrap {
    background: rgba(8, 18, 38, .92);
    border: 1px solid rgba(0, 183, 255, .12);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 0 30px rgba(0, 153, 255, .08);
}

.qa-spider {
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
}

.qa-sp-grid {
    fill: none;
    stroke: rgba(255, 255, 255, .14);
    stroke-width: 1;
}

.qa-sp-grid.qa-sp-outer {
    stroke: rgba(255, 255, 255, .3);
}

.qa-sp-axis {
    stroke: rgba(255, 255, 255, .14);
    stroke-width: 1;
}

.qa-sp-tick {
    fill: rgba(255, 255, 255, .45);
    font-size: 14px;
}

.qa-sp-label {
    fill: var(--lutz-white);
    font-size: 19px;
    font-weight: 400;
}

.qa-sp-label tspan {
    fill: var(--lutz-white);
}

.qa-sp-labelval {
    fill: var(--lutz-turquoise-text);
    font-size: 18px;
    font-weight: 600;
}

.qa-sp-area {
    fill: rgba(0, 212, 255, .22);
    stroke: var(--lutz-turquoise-text);
    stroke-width: 3;
    stroke-linejoin: round;
}

.qa-sp-dot {
    fill: var(--lutz-turquoise-text);
    stroke: #081226;
    stroke-width: 3;
}

.qa-total {
    display: flex;
    flex-direction: column;
    padding-bottom: 24px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.qa-total-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--lutz-turquoise-text);
}

.qa-total-label span {
    color: var(--lutz-turquoise-text);
}

.qa-total-val {
    font-family: var(--lutz-headline-font-family), serif;
    font-size: 84px;
    line-height: 1.05;
}

.qa-total-sub,
.qa-total-sub span {
    font-size: 15px;
    color: rgba(255, 255, 255, .55);
}

.qa-score-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.qa-score-list li {
    display: grid;
    grid-template-columns: 1fr 110px auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
    font-size: 16px;
    line-height: 1.4;
}

.qa-score-name,
.qa-score-name span {
    color: rgba(255, 255, 255, .85);
}

.qa-score-name .kw-wheel-idx {
    margin-right: 6px;
    color: var(--lutz-turquoise-text);
}

.qa-score-bar {
    height: 6px;
    border-radius: 6px;
    background: rgba(255, 255, 255, .1);
    overflow: hidden;
}

.qa-score-bar span {
    display: block;
    height: 100%;
    background: var(--lutz-turquoise-text);
    border-radius: 6px;
}

.qa-score-val {
    font-weight: 600;
    white-space: nowrap;
    min-width: 54px;
    text-align: right;
}

.qa-score-list li.qa-weak .qa-score-bar span {
    background: #ffb400;
}

.qa-score-list li.qa-weak .qa-score-val,
.qa-score-list li.qa-weak .qa-score-val span {
    color: #ffb400;
}

.qa-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.qa-restart {
    margin-top: 18px;
    margin-bottom: 0;
}

.qa-restart a,
.qa-restart a span {
    font-size: 15px;
    color: rgba(255, 255, 255, .5);
    text-decoration: underline;
}

/* ------------------------------------------------------------------
   Responsive
------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
    .qa-result-grid {
        grid-template-columns: 1fr;
    }

    .qa-scale {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media screen and (max-width: 992px) {
    .qa-question {
        grid-template-columns: 1fr;
        grid-template-areas: "txt" "opts" "hint";
        row-gap: 14px;
    }

    .qa-option-hint {
        text-align: left;
        justify-self: start;
        max-width: none;
    }
}

@media screen and (max-width: 768px) {
    .qa-step.kw-card {
        padding: 26px 20px;
    }

    h2.qa-h2 {
        font-size: 32px;
        line-height: 40px;
    }

    .qa-h3 {
        font-size: 26px;
        line-height: 34px;
    }

    .qa-scale {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .qa-scale li {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 14px 18px;
    }

    .qa-scale-num {
        font-size: 30px;
        min-width: 24px;
    }

    .qa-options {
        gap: 6px;
    }

    .qa-option span {
        width: 48px;
        height: 48px;
    }

    .qa-nav button {
        padding: 14px 18px;
        font-size: 18px;
    }

    .qa-spider-wrap {
        padding: 8px;
    }

    .qa-sp-label {
        font-size: 26px;
    }

    .qa-sp-labelval {
        font-size: 25px;
    }

    .qa-sp-tick {
        font-size: 18px;
    }

    .qa-total-val {
        font-size: 64px;
    }

    .qa-score-list li {
        grid-template-columns: 1fr auto;
    }

    .qa-score-bar {
        grid-column: 1 / -1;
        grid-row: 2;
    }
}

/* ------------------------------------------------------------------
   Druck / PDF: nur das Ergebnis, hell auf weiss
------------------------------------------------------------------- */
@media print {
    @page {
        size: A4;
        margin: 14mm;
    }

    body {
        background: #fff !important;
    }

    body * {
        color: #1d2230 !important;
        box-shadow: none !important;
    }

    header,
    .qa-no-print,
    .modal,
    #qa-step-kontakt,
    #qa-steps-themen {
        display: none !important;
    }

    #assessment {
        margin: 0 !important;
    }

    #assessment .col-xl-10 {
        width: 100% !important;
        margin-left: 0 !important;
    }

    .qa-print-head {
        display: block;
        font-size: 12px;
        border-bottom: 1px solid #ccc;
        padding-bottom: 8px;
        margin-bottom: 16px;
    }

    .kw-eyebrow,
    .kw-eyebrow span,
    .kw-wheel-idx,
    .qa-total-label,
    .qa-total-label span {
        color: #003953 !important;
    }

    h2.qa-h2 {
        font-size: 28px;
        line-height: 34px;
        margin-bottom: 18px !important;
    }

    .qa-h3 {
        font-size: 22px;
        line-height: 28px;
    }

    .qa-result-grid {
        grid-template-columns: 1.1fr 1fr;
        gap: 24px;
        break-inside: avoid;
    }

    .qa-spider-wrap,
    .kw-card,
    .kw-note,
    .kw-cta {
        background: #fff !important;
        border: 1px solid #d5dbe3 !important;
    }

    .kw-note {
        border-left: 3px solid #003953 !important;
        padding: 16px 20px !important;
    }

    .qa-sp-grid,
    .qa-sp-axis {
        stroke: #c9d0da;
    }

    .qa-sp-grid.qa-sp-outer {
        stroke: #8a95a5;
    }

    .qa-sp-tick {
        fill: #8a95a5;
    }

    .qa-sp-label,
    .qa-sp-label tspan {
        fill: #1d2230;
        font-size: 23px;
    }

    .qa-sp-labelval {
        fill: #003953;
        font-size: 22px;
    }

    .qa-spider-wrap {
        padding: 10px;
    }

    .qa-sp-area {
        fill: rgba(0, 57, 83, .18);
        stroke: #003953;
    }

    .qa-sp-dot {
        fill: #003953;
        stroke: #fff;
    }

    .qa-total-val {
        font-size: 54px;
    }

    .qa-score-list li {
        padding: 7px 0;
        font-size: 13px;
        border-bottom-color: #e2e6ec;
    }

    .qa-score-bar {
        background: #e2e6ec;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .qa-score-bar span {
        background: #003953 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .qa-score-list li.qa-weak .qa-score-bar span {
        background: #d18f00 !important;
    }

    .qa-cta {
        padding: 20px !important;
        break-inside: avoid;
    }

    .qa-cta p {
        font-size: 14px;
        line-height: 21px;
    }

    .kw-contact-line {
        margin-top: 8px;
    }
}
