/*
 * Changelog 2026-08-28, Update 10:37
 * - Airfryer Wissens-Quiz auf den gemeinsamen Fun-Akzent #b98cff umgestellt.
 */
/*
 * Changelog 2026-08-26, Update 16:20
 * - Airfryer Wissen Quiz auf die exakten Layoutkomponenten der Kaufberatung reduziert.
 * - Quiz-spezifische Parallelgestaltung entfernt; Antworten, Fortschritt, Ergebnis und Auswertung nutzen die vorhandenen Kaufberatungs-Cards.
 * - Quiz-Akzentfarbe #ec6ba9 ausschliesslich unter .afg-quiz-page gekapselt.
 */

/*
 * Changelog 2026-08-26, Update 16:03
 * - Airfryer Wissen Quiz in die bestehende Fehlerhelfer/Kaufberatungs-Designsprache integriert.
 * - Quizantworten, Fortschritt, Hinweise, Ergebnisauflösung und Buttons verwenden dieselben Farben, Radien und Abstände wie die Kaufberatung.
 */

/*
 * Changelog 2026-08-21, Update 20:53
 * - FAQ-Akkordeon unter dem SEO-Text an die bestehende Startseiten-FAQ angelehnt.
 * - Farben, Typografie, Links und Accordion-Zustaende auf das Fehlerhelfer-Layout der Kaufberatung abgestimmt.
 *
 * Changelog 2026-08-21, Update 20:39
 * - Erweiterte SEO-Zwischenueberschriften an das bestehende Kaufberatungs-Layout angepasst.
 * - Fett hervorgehobene Geraetenamen innerhalb der bestehenden Ergebnis-Cards abgesichert.
 *
 * Changelog 2026-08-21, Update 20:22
 * - Kaufberatung visuell auf das bestehende Layout von geraete-fehlerhelfer.php umgestellt.
 * - Fehlerhelfer-Farben, Card-Radien, Abstaende, Zweispaltenlayout und Seitenkarten als gemeinsame Basis uebernommen.
 * - Eigene Styles auf die fuer acht Fragen, Auswahlkarten und Geraetebeispiele noetigen Erweiterungen reduziert.
 * - Mobile Darstellung fuer acht Fortschrittsschritte und bildfreie Geraetebeispiele angepasst.
 *
 * Changelog 2026-08-21, Update 19:34
 * - Eigenständiges responsives Dark-Mode-Layout für die Airfryer Kaufberatung erstellt.
 * - Vertikale Einzelfragen, Fortschrittsanzeige, deaktivierte und aktive Navigation sowie Ergebnisbereiche gestaltet.
 * - Bildfreie Gerätebeispiele, Alternativen, Affiliate-Hinweis und mobile Einspaltenansicht ergänzt.
 */

.afg-advisor-page {
    padding-bottom: 2.4rem;
}

.afg-advisor-page .afg-fh-kicker {
    margin-bottom: .75rem;
}

.afg-advisor-shell {
    min-width: 0;
}

.afg-advisor-shell-head {
    align-items: flex-start;
}

.afg-advisor-progress-value {
    flex: 0 0 auto;
    padding-top: .15rem;
    color: var(--fh-muted);
    font-size: .8rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.afg-advisor-steps {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    margin-bottom: .75rem;
}

.afg-advisor-steps li {
    min-width: 0;
}

.afg-advisor-steps li small {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.afg-advisor-progress {
    height: 5px;
    overflow: hidden;
    margin: 0 0 1.1rem;
    border-radius: 999px;
    background: #22344a;
}

.afg-advisor-progress > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--fh-accent);
    transition: width .22s ease;
}

.afg-advisor-status {
    min-height: 1.2rem;
    margin: -.35rem 0 .55rem;
    color: #ffd8ac;
    font-size: .82rem;
}

.afg-advisor-status:empty {
    min-height: 0;
    margin: 0;
}

.afg-advisor-status.is-error {
    color: #ffaaaa;
}

.afg-advisor-step[hidden],
.afg-advisor-result[hidden],
.afg-advisor-devices[hidden],
.afg-advisor-affiliate-note[hidden] {
    display: none !important;
}

.afg-advisor-question h3 {
    margin: 0 0 .22rem;
    font-size: 1.08rem;
}

.afg-advisor-question p {
    margin: 0;
    color: var(--fh-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.afg-advisor-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.afg-advisor-option {
    position: relative;
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    gap: .65rem;
    align-items: center;
    min-height: 64px;
    padding: .8rem;
    border: 1px solid var(--fh-border);
    border-radius: 11px;
    color: #edf4fd;
    background: rgba(9, 24, 42, .78);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.afg-advisor-option:hover {
    border-color: rgba(241, 146, 91, .55);
    background: rgba(241, 146, 91, .07);
    transform: translateY(-1px);
}

.afg-advisor-option:has(input:focus-visible) {
    outline: 3px solid rgba(241, 146, 91, .18);
    outline-offset: 2px;
}

.afg-advisor-option:has(input:checked) {
    border-color: rgba(241, 146, 91, .72);
    background: rgba(241, 146, 91, .1);
    box-shadow: inset 0 0 0 1px rgba(241, 146, 91, .12);
}

.afg-advisor-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.afg-advisor-option-mark {
    position: relative;
    display: block;
    width: 22px;
    height: 22px;
    border: 2px solid #536b86;
    border-radius: 50%;
    background: #0a1a2d;
}

.afg-advisor-options.is-multi .afg-advisor-option-mark {
    border-radius: 6px;
}

.afg-advisor-option input:checked + .afg-advisor-option-mark {
    border-color: var(--fh-accent);
    background: var(--fh-accent);
}

.afg-advisor-option input:checked + .afg-advisor-option-mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 6px;
    height: 11px;
    border-right: 2px solid #281108;
    border-bottom: 2px solid #281108;
    transform: rotate(45deg);
}

.afg-advisor-option-copy {
    min-width: 0;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.38;
}

.afg-advisor-btn {
    font: inherit;
    cursor: pointer;
}

.afg-advisor-btn:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.afg-advisor-result {
    animation: afg-fh-in .2s ease;
}

.afg-advisor-result .afg-fh-result-head h3 {
    margin-bottom: .28rem;
}

.afg-advisor-result-grid > section {
    min-width: 0;
}

.afg-advisor-result-panel ul {
    display: grid;
    gap: .5rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #c4d2e3;
    font-size: .8rem;
    line-height: 1.45;
}

.afg-advisor-result-panel.is-capacity p {
    margin: 0 0 .45rem;
    color: #eef5ff;
    font-size: .94rem;
    font-weight: 750;
    line-height: 1.45;
}

.afg-advisor-result-panel.is-capacity small {
    color: var(--fh-muted);
    font-size: .77rem;
    line-height: 1.45;
}

.afg-advisor-alternatives {
    margin-top: .9rem;
}

.afg-advisor-alternatives > h3 {
    margin: 0 0 .65rem;
    font-size: .95rem;
}

.afg-advisor-alternative-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.afg-advisor-alternative {
    min-width: 0;
    padding: .8rem;
    border: 1px solid var(--fh-border);
    border-radius: 11px;
    background: rgba(8, 22, 39, .72);
}

.afg-advisor-alternative strong,
.afg-advisor-alternative span {
    display: block;
}

.afg-advisor-alternative strong {
    margin-bottom: .25rem;
    color: #edf4fd;
    font-size: .87rem;
}

.afg-advisor-alternative span {
    color: var(--fh-muted);
    font-size: .77rem;
    line-height: 1.45;
}

.afg-advisor-devices {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--fh-border);
}

.afg-advisor-section-head {
    margin-bottom: .75rem;
}

.afg-advisor-section-head h3 {
    margin: .22rem 0 .32rem;
    font-size: 1rem;
}

.afg-advisor-section-head p {
    margin: 0;
    color: var(--fh-muted);
    font-size: .8rem;
    line-height: 1.5;
}

.afg-advisor-device-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .7rem;
}

.afg-advisor-device-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: .8rem;
    border: 1px solid var(--fh-border);
    border-radius: 11px;
    background: rgba(8, 22, 39, .72);
}

.afg-advisor-device-class {
    align-self: flex-start;
    margin-bottom: .45rem;
    padding: .22rem .45rem;
    border-radius: 999px;
    color: #9ecbff;
    background: rgba(101, 168, 255, .1);
    font-size: .68rem;
    font-weight: 800;
}

.afg-advisor-device-card h4 {
    margin: 0 0 .6rem;
    font-size: .9rem;
    line-height: 1.35;
}

.afg-advisor-device-specs {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin: 0 0 .7rem;
}

.afg-advisor-device-specs span {
    padding: .24rem .4rem;
    border: 1px solid rgba(148, 163, 184, .18);
    border-radius: 7px;
    color: #b8c8dd;
    font-size: .69rem;
}

.afg-advisor-device-card .afg-advisor-btn {
    width: 100%;
    margin-top: auto;
}

.afg-advisor-device-no-link {
    margin-top: auto;
    color: var(--fh-muted);
    font-size: .73rem;
    line-height: 1.4;
}

.afg-advisor-affiliate-note {
    margin: .75rem 0 0;
    padding: .7rem;
    border: 1px solid rgba(255, 173, 87, .3);
    border-radius: 10px;
    color: #c7d3e1;
    background: rgba(255, 173, 87, .07);
    font-size: .75rem;
    line-height: 1.45;
}

.afg-advisor-page .afg-fh-seo h3 {
    margin: 1.15rem 0 .45rem;
    color: #edf5ff;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.35;
}

.afg-advisor-device-card h4 strong {
    font-weight: 800;
}

.afg-advisor-result-actions {
    justify-content: flex-start;
}

.afg-advisor-result-actions > a {
    border-color: var(--fh-accent);
    color: #281108;
    background: var(--fh-accent);
}

.afg-advisor-result-actions > a:hover,
.afg-advisor-result-actions > a:focus-visible {
    border-color: #ffad7d;
    color: #241006;
    background: #ffad7d;
}


.afg-advisor-faq {
    margin-top: 1rem;
    margin-bottom: .4rem;
}

.afg-advisor-faq h2 {
    margin: 0 0 .75rem;
    color: #fff;
    font-size: clamp(1.2rem, 2vw, 1.36rem);
}

.afg-advisor-faq .accordion-item {
    border-color: var(--fh-border);
    background: rgba(10, 23, 39, .85);
}

.afg-advisor-faq .accordion-button {
    color: #eaf2fc;
    background: rgba(13, 29, 49, .95);
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.45;
}

.afg-advisor-faq .accordion-button:not(.collapsed) {
    color: #fff;
    background: rgba(24, 51, 84, .95);
}

.afg-advisor-faq .accordion-button:focus {
    border-color: rgba(241, 146, 91, .45);
    box-shadow: 0 0 0 .18rem rgba(241, 146, 91, .12);
}

.afg-advisor-faq .accordion-body {
    color: var(--fh-muted);
    background: rgba(8, 19, 33, .96);
    font-size: .84rem;
    line-height: 1.65;
}

.afg-advisor-faq a,
.afg-advisor-faq a:visited {
    color: var(--fh-accent);
    text-decoration: none;
}

.afg-advisor-faq a:hover,
.afg-advisor-faq a:focus-visible {
    color: #ffad7d;
    text-decoration: none;
}

@media (max-width: 1080px) {
    .afg-advisor-steps li small {
        display: none;
    }
}

@media (max-width: 720px) {
    .afg-advisor-steps {
        grid-template-columns: repeat(8, minmax(26px, 1fr));
    }

    .afg-advisor-steps li > span {
        width: 28px;
        height: 28px;
        font-size: .72rem;
    }

    .afg-advisor-steps li::before {
        top: 13px;
    }

    .afg-advisor-options,
    .afg-advisor-result-grid,
    .afg-advisor-alternative-grid,
    .afg-advisor-device-grid {
        grid-template-columns: 1fr;
    }

    .afg-advisor-option {
        min-height: 58px;
    }

    .afg-advisor-result-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .afg-advisor-result-actions .afg-advisor-btn {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .afg-advisor-steps li > span {
        width: 24px;
        height: 24px;
        border-width: 1px;
        font-size: .67rem;
    }

    .afg-advisor-steps li::before {
        top: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afg-advisor-option,
    .afg-advisor-progress > span {
        transition: none;
    }
}

/* Airfryer Wissen Quiz: nur notwendige, auf die Kaufberatung aufsetzende Ergänzungen */
.afg-quiz-page {
    --fh-accent: #b98cff;
    --fh-accent-strong: #9b6ee6;
    --fh-accent-rgb: 185, 140, 255;
    --fh-accent-hover: #c9a9ff;
    --fh-accent-kicker: #e2d2ff;
}

.afg-quiz-main-column {
    display: grid;
    gap: 1rem;
    min-width: 0;
}

.afg-quiz-page .afg-fh-benefit > span,
.afg-quiz-page .afg-fh-explainer-grid article > span {
    background: rgba(185, 140, 255, .1);
}

.afg-quiz-page .afg-fh-steps li.is-active > span {
    box-shadow: 0 0 0 5px rgba(185, 140, 255, .08);
}

.afg-quiz-page .afg-fh-steps li.is-done > span {
    border-color: rgba(185, 140, 255, .6);
}

.afg-quiz-page .afg-fh-steps li.is-done::before,
.afg-quiz-page .afg-fh-steps li.is-active::before {
    background: rgba(185, 140, 255, .45);
}

.afg-quiz-page .afg-advisor-option:hover {
    border-color: rgba(185, 140, 255, .55);
    background: rgba(185, 140, 255, .07);
}

.afg-quiz-page .afg-advisor-option:has(input:focus-visible) {
    outline-color: rgba(185, 140, 255, .18);
}

.afg-quiz-page .afg-advisor-option:has(input:checked) {
    border-color: rgba(185, 140, 255, .72);
    background: rgba(185, 140, 255, .1);
    box-shadow: inset 0 0 0 1px rgba(185, 140, 255, .12);
}

.afg-quiz-page .afg-fh-primary-button,
.afg-quiz-page .afg-advisor-result-actions > a {
    color: #1e1230;
}

.afg-quiz-page .afg-fh-primary-button:hover,
.afg-quiz-page .afg-advisor-result-actions > a:hover,
.afg-quiz-page .afg-advisor-result-actions > a:focus-visible {
    border-color: #c9a9ff;
    color: #1e1230;
    background: #c9a9ff;
}

.afg-quiz-page .afg-fh-side-card a:hover,
.afg-quiz-page .afg-fh-side-card a:focus-visible,
.afg-quiz-page .afg-fh-seo a:hover,
.afg-quiz-page .afg-fh-seo a:focus-visible {
    color: #c9a9ff;
    background: transparent;
}

.afg-quiz-steps {
    grid-template-columns: repeat(10, minmax(0, 1fr));
    margin-bottom: .75rem;
}

.afg-quiz-question {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.afg-quiz-question[hidden] {
    display: none !important;
}

.afg-quiz-question .afg-fh-panel-title {
    margin-bottom: 1.1rem;
}

.afg-quiz-validation {
    margin: -.35rem 0 .55rem;
}

.afg-quiz-notice {
    margin: 0;
}

.afg-quiz-notice p {
    margin: 0;
}

.afg-quiz-notice.is-error {
    border-color: rgba(255, 114, 114, .35);
    color: #ffb2b2;
    background: rgba(255, 114, 114, .08);
}

.afg-quiz-score-value,
.afg-quiz-award-title {
    margin: 0 0 .45rem;
    color: #eef5ff;
    font-weight: 800;
    line-height: 1.25;
}

.afg-quiz-score-value {
    color: var(--fh-accent);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    letter-spacing: -.035em;
}

.afg-quiz-award-title {
    font-size: 1rem;
}

.afg-quiz-page .afg-advisor-result-panel > small {
    color: var(--fh-muted);
    font-size: .77rem;
    line-height: 1.45;
}

.afg-quiz-review-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .7rem;
}

.afg-quiz-review-card {
    display: block;
}

.afg-quiz-review-card.is-correct {
    border-left: 3px solid #57d68d;
}

.afg-quiz-review-card.is-wrong {
    border-left: 3px solid #ff7272;
}

.afg-quiz-review-card__head {
    display: flex;
    justify-content: space-between;
    gap: .65rem;
    align-items: center;
    margin-bottom: .5rem;
    color: var(--fh-muted);
    font-size: .7rem;
    font-weight: 800;
}

.afg-quiz-review-card__head strong {
    margin: 0;
    font-size: .7rem;
}

.afg-quiz-review-card.is-correct .afg-quiz-review-card__head strong {
    color: #72e29c;
}

.afg-quiz-review-card.is-wrong .afg-quiz-review-card__head strong {
    color: #ff9292;
}

.afg-quiz-review-card h4 {
    margin: 0 0 .65rem;
    color: #edf4fd;
    font-size: .87rem;
    line-height: 1.4;
}

.afg-quiz-review-card dl {
    display: grid;
    gap: .4rem;
    margin: 0 0 .6rem;
}

.afg-quiz-review-card dl > div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: .55rem;
}

.afg-quiz-review-card dt {
    color: var(--fh-muted);
    font-size: .73rem;
    font-weight: 700;
}

.afg-quiz-review-card dd {
    margin: 0;
    color: #edf4fd;
    font-size: .77rem;
    font-weight: 700;
}

.afg-quiz-review-card > p {
    margin: 0;
    color: var(--fh-muted);
    font-size: .76rem;
    line-height: 1.5;
}

@media (max-width: 720px) {
    .afg-quiz-steps {
        grid-template-columns: repeat(10, minmax(22px, 1fr));
    }

    .afg-quiz-steps li > span {
        width: 24px;
        height: 24px;
        border-width: 1px;
        font-size: .67rem;
    }

    .afg-quiz-steps li::before {
        top: 11px;
    }

    .afg-quiz-review-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 460px) {
    .afg-quiz-steps li > span {
        width: 22px;
        height: 22px;
        font-size: .62rem;
    }

    .afg-quiz-steps li::before {
        top: 10px;
    }

    .afg-quiz-review-card dl > div {
        grid-template-columns: 1fr;
        gap: .12rem;
    }
}
