.wanzer-cc {
    --wcc-akzent: rgb(255, 127, 2);
    --wcc-dunkel: #242424;
    --wcc-text: #555;
    --wcc-linie: #e6e6e6;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    display: flex;
    justify-content: center;
    padding: 16px;
    pointer-events: none;
    font-family: inherit;
}

.wanzer-cc[hidden] {
    display: none;
}

.wanzer-cc__box {
    pointer-events: auto;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: var(--wcc-text);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
    padding: 22px 24px 16px;
    font-size: 14px;
    line-height: 1.55;
    animation: wanzer-cc-rein .25s ease-out;
}

@keyframes wanzer-cc-rein {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .wanzer-cc__box { animation: none; }
}

.wanzer-cc__titel {
    margin: 0 0 8px;
    color: var(--wcc-dunkel);
    font-size: 17px;
    font-weight: 700;
}

.wanzer-cc__text {
    margin: 0 0 14px;
}

.wanzer-cc__knoepfe {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.wanzer-cc .wanzer-cc__knopf {
    flex: 1 1 180px;
    min-height: 44px;
    margin: 0;
    padding: 10px 18px;
    border: 2px solid var(--wcc-dunkel);
    border-radius: 8px;
    background: var(--wcc-dunkel);
    color: #fff;
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.2;
    text-transform: none;
    letter-spacing: 0;
    cursor: pointer;
    transition: background-color .15s, border-color .15s;
}

.wanzer-cc .wanzer-cc__knopf:hover,
.wanzer-cc .wanzer-cc__knopf:focus-visible {
    background: var(--wcc-akzent);
    border-color: var(--wcc-akzent);
    color: #fff;
}

.wanzer-cc .wanzer-cc__knopf[hidden],
.wanzer-cc .wanzer-cc__link[hidden] {
    display: none;
}

.wanzer-cc .wanzer-cc__link {
    flex: 0 0 auto;
    min-height: 44px;
    margin: 0;
    padding: 10px 6px;
    border: 0;
    background: none;
    color: var(--wcc-dunkel);
    font: inherit;
    font-weight: 600;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-transform: none;
    cursor: pointer;
}

.wanzer-cc__knopf:focus-visible,
.wanzer-cc__link:focus-visible,
.wanzer-cc a:focus-visible,
.wanzer-cc__schalter input:focus-visible + .wanzer-cc__regler {
    outline: 3px solid var(--wcc-akzent);
    outline-offset: 2px;
}

.wanzer-cc__rechtliches {
    margin: 12px 0 0;
    font-size: 13px;
    text-align: center;
}

.wanzer-cc__rechtliches a,
.wanzer-cc__text a {
    color: var(--wcc-dunkel);
    text-decoration: underline;
}

.wanzer-cc__rechtliches span {
    margin: 0 6px;
}

.wanzer-cc__details {
    margin: 0 0 14px;
    border-top: 1px solid var(--wcc-linie);
}

.wanzer-cc__kategorie {
    padding: 12px 0;
    border-bottom: 1px solid var(--wcc-linie);
}

.wanzer-cc__schalter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    cursor: pointer;
    color: var(--wcc-dunkel);
    font-weight: 700;
}

.wanzer-cc__schalter input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.wanzer-cc__regler {
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    border-radius: 12px;
    background: #c9c9c9;
    transition: background-color .15s;
}

.wanzer-cc__regler::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .15s;
}

.wanzer-cc__schalter input:checked + .wanzer-cc__regler {
    background: var(--wcc-akzent);
}

.wanzer-cc__schalter input:checked + .wanzer-cc__regler::after {
    transform: translateX(18px);
}

.wanzer-cc__schalter input:disabled + .wanzer-cc__regler {
    opacity: .55;
}

.wanzer-cc__kat-titel small {
    font-weight: 400;
    color: var(--wcc-text);
}

.wanzer-cc__kat-text {
    margin: 6px 0 4px 54px;
}

.wanzer-cc__dienste {
    margin-left: 54px;
}

.wanzer-cc__dienste summary {
    display: list-item;
    list-style: disclosure-closed inside;
    cursor: pointer;
    color: var(--wcc-dunkel);
    font-weight: 600;
    font-size: 13px;
}

.wanzer-cc__dienste[open] summary {
    list-style-type: disclosure-open;
}

.wanzer-cc__dienste dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 2px 12px;
    margin: 8px 0 0;
    padding: 10px 12px;
    background: #f7f7f7;
    border-radius: 6px;
    font-size: 12.5px;
}

.wanzer-cc__dienste dt {
    font-weight: 600;
    color: var(--wcc-dunkel);
}

.wanzer-cc__dienste dd {
    margin: 0;
    word-break: break-word;
}

@media (max-width: 600px) {
    .wanzer-cc {
        padding: 0;
    }

    .wanzer-cc__box {
        max-width: none;
        max-height: 85vh;
        max-height: 85dvh;
        border-radius: 14px 14px 0 0;
        padding: 18px 16px calc(12px + env(safe-area-inset-bottom));
    }

    .wanzer-cc .wanzer-cc__knopf {
        flex-basis: 100%;
    }

    .wanzer-cc .wanzer-cc__link {
        flex-basis: 100%;
        min-height: 36px;
        padding: 6px;
    }

    .wanzer-cc__kat-text,
    .wanzer-cc__dienste {
        margin-left: 0;
    }

    .wanzer-cc__dienste dl {
        grid-template-columns: 1fr;
    }

    .wanzer-cc__dienste dd {
        margin-bottom: 6px;
    }
}
