.cp-allgau-matcher {
    --cp-green: #00695c;
    --cp-green-dark: #004f46;
    --cp-pink: #ec3d78;
    --cp-text: #202322;
    --cp-muted: #626866;
    --cp-border: #d9dfdc;
    --cp-surface: #f3f5f4;
    --cp-white: #fff;
    width: 100%;
    margin: clamp(36px, 5vw, 72px) 0;
    color: var(--cp-text);
    font-family: inherit;
    text-align: right;
}

.cp-allgau-matcher,
.cp-allgau-matcher * {
    box-sizing: border-box;
}

.cp-allgau-matcher [hidden] {
    display: none !important;
}

.cp-allgau-matcher__shell {
    width: 100%;
    padding: clamp(28px, 4vw, 58px) clamp(18px, 4vw, 64px);
    border-top: 4px solid var(--cp-green);
    background: var(--cp-surface);
}

.cp-allgau-matcher__header,
.cp-allgau-matcher__result-intro {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.cp-allgau-matcher__eyebrow {
    margin: 0 0 8px;
    color: var(--cp-green);
    font-size: 0.95rem;
    font-weight: 700;
}

.cp-allgau-matcher__header h2,
.cp-allgau-matcher__result-intro h3 {
    margin: 0;
    color: #111;
    font-family: inherit;
    font-size: clamp(1.65rem, 3vw, 2.35rem);
    font-weight: 800;
    line-height: 1.2;
}

.cp-allgau-matcher__header > p:last-child,
.cp-allgau-matcher__result-intro > p {
    margin: 14px auto 0;
    color: var(--cp-muted);
    font-size: clamp(1rem, 1.6vw, 1.12rem);
    line-height: 1.65;
}

.cp-allgau-matcher__progress {
    max-width: 900px;
    margin: 30px auto 0;
}

.cp-allgau-matcher__progress-label {
    display: block;
    margin-bottom: 8px;
    color: var(--cp-muted);
    font-size: 0.88rem;
}

.cp-allgau-matcher__progress-track {
    display: block;
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: #dce2df;
}

.cp-allgau-matcher__progress-track i {
    display: block;
    width: 14%;
    height: 100%;
    border-radius: inherit;
    background: var(--cp-green);
    transition: width 220ms ease;
}

.cp-allgau-matcher__form {
    max-width: 1120px;
    margin: 34px auto 0;
}

.cp-allgau-matcher__step fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.cp-allgau-matcher__step legend {
    display: block;
    width: 100%;
    margin: 0 0 22px;
    padding: 0;
    color: #111;
    font-family: inherit;
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
}

.cp-allgau-matcher__step legend:focus {
    outline: none;
}

.cp-allgau-matcher__hint {
    margin: -14px 0 20px;
    color: var(--cp-muted);
    text-align: center;
}

.cp-allgau-matcher__choices {
    display: grid;
    gap: 12px;
}

.cp-allgau-matcher__choices--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cp-allgau-matcher__choices--four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cp-allgau-matcher__choices--five {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.cp-allgau-matcher__choice {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

.cp-allgau-matcher__choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cp-allgau-matcher__choice > span {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 14px 16px;
    border: 1px solid var(--cp-border);
    border-radius: 3px;
    background: var(--cp-white);
    color: var(--cp-text);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.cp-allgau-matcher__choice small {
    display: block;
    margin-top: 5px;
    color: var(--cp-muted);
    font-size: 0.84rem;
    font-weight: 400;
}

.cp-allgau-matcher__choice:hover > span {
    border-color: #93aaa4;
}

.cp-allgau-matcher__choice input:checked + span {
    border-color: var(--cp-green);
    background: #f7fbfa;
    box-shadow: inset 0 -3px 0 var(--cp-green);
    color: var(--cp-green-dark);
}

.cp-allgau-matcher__choice input:focus-visible + span,
.cp-allgau-matcher__button:focus-visible,
.cp-allgau-matcher__restart:focus-visible {
    outline: 3px solid rgba(0, 105, 92, 0.28);
    outline-offset: 3px;
}

.cp-allgau-matcher__error {
    min-height: 24px;
    margin: 16px 0 0;
    color: #a32121;
    font-size: 0.92rem;
    font-weight: 650;
    text-align: center;
}

.cp-allgau-matcher__actions,
.cp-allgau-matcher__result-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
}

.cp-allgau-matcher__button {
    display: inline-flex;
    min-width: 150px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 3px;
    font: inherit;
    font-weight: 750;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.cp-allgau-matcher__button--primary {
    border-color: var(--cp-green);
    background: var(--cp-green);
    color: #fff;
}

.cp-allgau-matcher__button--primary:hover {
    border-color: var(--cp-green-dark);
    background: var(--cp-green-dark);
    color: #fff;
}

.cp-allgau-matcher__button--ghost {
    border-color: #aeb9b5;
    background: transparent;
    color: var(--cp-text);
}

.cp-allgau-matcher__button--ghost:hover {
    border-color: var(--cp-green);
    color: var(--cp-green);
}

.cp-allgau-matcher__result {
    max-width: 1120px;
    margin: 0 auto;
}

.cp-allgau-matcher__result:focus {
    outline: none;
}

.cp-allgau-matcher__mix {
    display: flex;
    width: min(100%, 560px);
    height: 14px;
    overflow: hidden;
    margin: 24px auto 0;
    border-radius: 999px;
    background: #dce2df;
}

.cp-allgau-matcher__mix-park {
    display: block;
    background: var(--cp-green);
}

.cp-allgau-matcher__mix-region {
    display: block;
    background: #aebbb7;
}

.cp-allgau-matcher__mix-label {
    margin-top: 8px !important;
    color: var(--cp-green-dark) !important;
    font-size: 0.94rem !important;
    font-weight: 750;
}

.cp-allgau-matcher__result-section {
    margin-top: 36px;
}

.cp-allgau-matcher__result-section h4 {
    margin: 0 0 8px;
    color: #111;
    font-family: inherit;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 800;
}

.cp-allgau-matcher__result-section > p {
    margin: 0 0 16px;
    color: var(--cp-muted);
    line-height: 1.55;
}

.cp-allgau-matcher__recommendations {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cp-allgau-matcher__recommendation {
    padding: 18px 20px;
    border-right: 3px solid var(--cp-green);
    background: var(--cp-white);
}

.cp-allgau-matcher__recommendation h5 {
    margin: 0;
    color: var(--cp-green-dark);
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
}

.cp-allgau-matcher__recommendation p {
    margin: 7px 0 0;
    color: var(--cp-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.cp-allgau-matcher__range {
    display: inline-block;
    margin-top: 6px;
    color: var(--cp-green);
    font-size: 0.82rem;
    font-weight: 750;
}

.cp-allgau-matcher__plan {
    margin-top: 26px;
    padding: 18px 20px;
    border: 1px solid var(--cp-border);
    background: rgba(255, 255, 255, 0.58);
    color: var(--cp-text);
    line-height: 1.65;
}

.cp-allgau-matcher__disclaimer {
    margin: 28px 0 0;
    color: var(--cp-muted);
    font-size: 0.82rem;
    line-height: 1.55;
}

.cp-allgau-matcher__result-actions {
    margin-top: 24px;
}

.cp-allgau-matcher__result-actions .cp-allgau-matcher__button--primary {
    border-color: var(--cp-pink);
    background: var(--cp-pink);
}

.cp-allgau-matcher__result-actions .cp-allgau-matcher__button--primary:hover {
    border-color: #cf2d64;
    background: #cf2d64;
}

.cp-allgau-matcher__restart {
    min-height: 44px;
    padding: 8px 12px;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--cp-green-dark);
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}

.cp-allgau-matcher .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    white-space: nowrap !important;
}

@media (max-width: 820px) {
    .cp-allgau-matcher__choices--three,
    .cp-allgau-matcher__choices--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .cp-allgau-matcher {
        margin: 30px 0;
    }

    .cp-allgau-matcher__shell {
        padding: 28px 16px;
    }

    .cp-allgau-matcher__choices--three,
    .cp-allgau-matcher__choices--four,
    .cp-allgau-matcher__choices--five,
    .cp-allgau-matcher__recommendations {
        grid-template-columns: 1fr;
    }

    .cp-allgau-matcher__choice > span {
        min-height: 56px;
    }

    .cp-allgau-matcher__actions,
    .cp-allgau-matcher__result-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .cp-allgau-matcher__button {
        width: 100%;
    }

    .cp-allgau-matcher__actions .cp-allgau-matcher__button--primary {
        order: -1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cp-allgau-matcher *,
    .cp-allgau-matcher *::before,
    .cp-allgau-matcher *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

