/*
 * psn Consent - Datenschutz-Uebersichten (Anbieter / Speicher).
 * Selbst-standige, theme-neutrale Akkordeon-Liste. CSP-sicher (extern, kein Inline).
 * Aus demselben Inventar wie das Banner (Single Source of Truth).
 */

.psn-cc-list {
    margin: 1.5em 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.psn-cc-heading {
    margin: 0 0 0.6em;
    font-size: 1.3rem;
    font-weight: 700;
}

.psn-cc-item {
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    margin: 0 0 0.5em;
    background: rgba(0, 0, 0, 0.015);
    overflow: hidden;
}

.psn-cc-item + .psn-cc-item {
    margin-top: 0.5em;
}

.psn-cc-item > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.7em 2.2em 0.7em 0.9em;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em 0.7em;
    font-weight: 400;
    user-select: none;
}

.psn-cc-item > summary::-webkit-details-marker {
    display: none;
}

.psn-cc-item > summary::after {
    content: "";
    position: absolute;
    right: 1em;
    top: 50%;
    width: 0.5em;
    height: 0.5em;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-70%) rotate(45deg);
    opacity: 0.55;
    transition: transform 0.15s ease;
}

.psn-cc-item[open] > summary::after {
    transform: translateY(-30%) rotate(225deg);
}

.psn-cc-item > summary:hover {
    background: rgba(0, 0, 0, 0.04);
}

.psn-cc-item > summary strong {
    font-weight: 700;
}

.psn-cc-tag {
    display: inline-block;
    padding: 0.12em 0.6em;
    font-size: 0.78rem;
    line-height: 1.5;
    border-radius: 999px;
    background: rgba(30, 110, 200, 0.12);
    color: inherit;
    border: 1px solid rgba(30, 110, 200, 0.28);
    white-space: nowrap;
}

.psn-cc-body {
    padding: 0.2em 0.9em 0.9em;
}

.psn-cc-body dl {
    display: grid;
    grid-template-columns: minmax(9em, max-content) 1fr;
    gap: 0.35em 1.1em;
    margin: 0;
}

.psn-cc-body dt {
    font-weight: 600;
    opacity: 0.75;
}

.psn-cc-body dd {
    margin: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.psn-cc-body a {
    color: inherit;
    text-decoration: underline;
}

.psn-cc-empty {
    opacity: 0.7;
    font-style: italic;
}

@media (max-width: 560px) {
    .psn-cc-body dl {
        grid-template-columns: 1fr;
        gap: 0.1em;
    }
    .psn-cc-body dt {
        margin-top: 0.5em;
    }
}

/* Dark-Mode-Anpassung, falls das Theme prefers-color-scheme respektiert. */
@media (prefers-color-scheme: dark) {
    .psn-cc-item {
        border-color: rgba(255, 255, 255, 0.16);
        background: rgba(255, 255, 255, 0.03);
    }
    .psn-cc-item > summary:hover {
        background: rgba(255, 255, 255, 0.06);
    }
    .psn-cc-tag {
        background: rgba(90, 160, 240, 0.18);
        border-color: rgba(90, 160, 240, 0.4);
    }
}
