/*!
 * DFS Self-Check "Bin ich geeignet?" (standalone)
 * Source: karriere.dfs.de, CA Design, 2026
 *
 * Paths are relative to this file: ../assets for the background picture,
 * ../fonts for Roboto Regular and Bold (Apache License 2.0, see
 * fonts/LICENSE.txt). The font is registered under its own family name, so
 * it never clashes with a Roboto the host page may load. Nothing is loaded
 * from external servers. Everything is scoped to .dfs-self-check, so nothing
 * leaks into the host page; colours and the font can be changed through the
 * custom properties below.
 */
@font-face {
    font-family: "DFS Self-Check Roboto";
    src: url("../fonts/Roboto-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "DFS Self-Check Roboto";
    src: url("../fonts/Roboto-Bold.woff2") format("woff2");
    font-weight: 600 700;
    font-style: normal;
    font-display: swap;
}

.dfs-self-check {
    --dfs-sc-white: #FFFFFF;
    --dfs-sc-dark-blue: #0A3C87;
    --dfs-sc-label-blue: #A7CFE5;
    --dfs-sc-green: #C3F519;
    --dfs-sc-green-hover: #A7D909;
    --dfs-sc-light: #E7EEFA;
    --dfs-sc-light-hover: #F2F6FC;
    --dfs-sc-line: rgba(255, 255, 255, 0.25);
    --dfs-sc-font: "DFS Self-Check Roboto", Roboto, Arial, sans-serif;
    --dfs-sc-radius: 24px;

    box-sizing: border-box;
    position: relative;
    padding: 48px;
    border-radius: var(--dfs-sc-radius);
    overflow: hidden;
    background: var(--dfs-sc-dark-blue) url("../assets/self-check-bg.webp") center / cover no-repeat;
    color: var(--dfs-sc-white);
    font-family: var(--dfs-sc-font);
    font-size: 16px;
    line-height: 1.55;
    text-align: left;
}

.dfs-self-check *,
.dfs-self-check *::before,
.dfs-self-check *::after {
    box-sizing: inherit;
}

@media (max-width: 991px) {
    .dfs-self-check {
        --dfs-sc-radius: 16px;
        padding: 24px;
    }
}

/* Type: label, body, info and question size, no more. */
.dfs-self-check p,
.dfs-self-check li {
    margin: 0 0 16px;
    color: var(--dfs-sc-white);
    font-size: 16px;
    line-height: 1.55;
}

.dfs-self-check a {
    color: inherit;
    text-decoration: underline;
}

.dfs-self-check .self-assessment__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.dfs-self-check .self-assessment__eyebrow,
.dfs-self-check .self-assessment__counter {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dfs-self-check .self-assessment__eyebrow {
    color: var(--dfs-sc-label-blue);
}

.dfs-self-check p.self-assessment__eyebrow {
    margin-bottom: 8px;
}

.dfs-self-check .self-assessment__counter {
    letter-spacing: 0.02em;
    text-transform: none;
    white-space: nowrap;
}

.dfs-self-check .self-assessment__progress {
    height: 4px;
    margin: 16px 0 32px;
    border-radius: 2px;
    background: var(--dfs-sc-line);
    overflow: hidden;
}

.dfs-self-check .self-assessment__progress-bar {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--dfs-sc-green), var(--dfs-sc-light));
    transition: width 0.25s ease;
}

.dfs-self-check .self-assessment__category {
    margin-bottom: 8px;
    color: var(--dfs-sc-label-blue);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dfs-self-check .self-assessment__question {
    margin: 0 0 32px;
    font-size: 21.6px;
    font-weight: 700;
    line-height: 1.35;
}

@media (max-width: 991px) {
    .dfs-self-check .self-assessment__question {
        font-size: 18.4px;
    }
}

.dfs-self-check .self-assessment__question-wrap {
    margin-bottom: 32px;
}

.dfs-self-check .self-assessment__question-wrap .self-assessment__question {
    margin-bottom: 0;
}

/* The (i) after the question and the text it slides open. */
.dfs-self-check .self-assessment__info-toggle {
    display: inline-flex;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dfs-sc-label-blue);
    line-height: 1;
    vertical-align: -0.15em;
    cursor: pointer;
}

.dfs-self-check .self-assessment__info-toggle:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
    border-radius: 50%;
}

.dfs-self-check .self-assessment__info {
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.35s ease, visibility 0s linear 0.35s;
}

.dfs-self-check .self-assessment__info.is-open {
    visibility: visible;
    transition: max-height 0.35s ease, visibility 0s linear 0s;
}

@media (prefers-reduced-motion: reduce) {
    .dfs-self-check .self-assessment__info,
    .dfs-self-check .self-assessment__info.is-open {
        transition: none;
    }
}

.dfs-self-check .self-assessment__info-inner {
    margin-top: 16px;
    padding-left: 16px;
    border-left: 3px solid var(--dfs-sc-green);
}

.dfs-self-check .self-assessment__info p,
.dfs-self-check .self-assessment__reason-info p {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.55;
}

.dfs-self-check .self-assessment__info p:last-child,
.dfs-self-check .self-assessment__reason-info p:last-child {
    margin-bottom: 0;
}

.dfs-self-check .self-assessment__intro {
    margin-bottom: 24px;
}

/* Buttons */
.dfs-self-check .self-assessment__answers,
.dfs-self-check .self-assessment__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.dfs-self-check .dfs-sc-button {
    display: inline-block;
    margin: 0;
    padding: 8px 16px;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

@media (max-width: 991px) {
    .dfs-self-check .dfs-sc-button {
        font-size: 18px;
    }
}

.dfs-self-check .dfs-sc-button:focus-visible {
    outline: 2px solid var(--dfs-sc-white);
    outline-offset: 2px;
}

.dfs-self-check .dfs-sc-button--primary {
    background: var(--dfs-sc-green);
    color: var(--dfs-sc-dark-blue);
}

.dfs-self-check .dfs-sc-button--primary:hover,
.dfs-self-check .dfs-sc-button--primary:active {
    background: var(--dfs-sc-green-hover);
    color: var(--dfs-sc-dark-blue);
}

.dfs-self-check .dfs-sc-button--secondary {
    background: var(--dfs-sc-light);
    color: var(--dfs-sc-dark-blue);
}

.dfs-self-check .dfs-sc-button--secondary:hover {
    background: var(--dfs-sc-light-hover);
    color: var(--dfs-sc-dark-blue);
}

/* Ja and Nein carry equal weight, so they get equal width. */
.dfs-self-check .self-assessment__answers .dfs-sc-button {
    min-width: 7.5rem;
}

@media (max-width: 767px) {
    .dfs-self-check .self-assessment__answers .dfs-sc-button {
        flex: 1 1 0;
        min-width: 0;
    }
}

.dfs-self-check .self-assessment__back {
    display: inline-block;
    margin-top: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--dfs-sc-white);
    font-family: inherit;
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
}

.dfs-self-check .self-assessment__actions .self-assessment__back {
    margin-top: 0;
}

/* Result */
.dfs-self-check .self-assessment__overview-heading {
    margin: 32px 0 16px;
    font-weight: 700;
}

.dfs-self-check .self-assessment__overview {
    margin: 0 0 24px;
    padding: 0;
    list-style: none;
}

.dfs-self-check .self-assessment__overview-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 0;
    padding: 16px 0;
    border-top: 1px solid var(--dfs-sc-line);
}

.dfs-self-check .self-assessment__overview-item:last-child {
    border-bottom: 1px solid var(--dfs-sc-line);
}

.dfs-self-check .self-assessment__overview-icon {
    display: inline-flex;
    flex: 0 0 auto;
    margin-top: 0.15em;
}

.dfs-self-check .is-fit .self-assessment__overview-icon {
    color: var(--dfs-sc-green);
}

.dfs-self-check .is-no-fit .self-assessment__overview-icon {
    color: var(--dfs-sc-label-blue);
}

.dfs-self-check .self-assessment__overview-status {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dfs-self-check .self-assessment__overview-question {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.dfs-self-check .self-assessment__reason-info {
    margin-top: 8px;
}

.dfs-self-check .self-assessment__outro {
    margin-bottom: 24px;
}

.dfs-self-check .self-assessment__disclaimer {
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--dfs-sc-line);
    font-size: 14px;
    line-height: 1.5;
}
