/* Impressum / Datenschutzerklärung styles (moved from resources/styles.css) */
.privacy-details summary {
    list-style: none;
    cursor: pointer;
    padding: 0.25rem 0;
}

/* Hide native marker */
.privacy-details summary::-webkit-details-marker {
    display: none;
}

.privacy-details summary::marker {
    content: none;
}

.privacy-details summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 0.85rem;
    font-size: 2rem;
    /* match .content-wrapper h2 */
}

/* arrow placed on the summary itself to avoid rotating backgrounds */
.privacy-details summary::before {
    content: '▸';
    display: inline-block;
    transition: transform 0.22s ease, color 0.22s ease;
    color: color-mix(in srgb, var(--heading-color) 70%, transparent);
    font-size: 1em;
    /* same size as heading text */
    transform-origin: 50% 50%;
}

.privacy-details[open] summary::before {
    transform: rotate(90deg);
}

.privacy-details summary h2 {
    margin: 0;
    font-size: inherit;
    line-height: 1.1;
    min-width: 0;
    /* allow wrapping inside flex */
}

/* style summary like action-button and ensure arrow sits inside the block */
.privacy-details summary {
    /* core button-like look */
    background: color-mix(in srgb, var(--heading-color) 4%, transparent);
    border-left: 1px solid color-mix(in srgb, var(--heading-color) 99%, transparent);
    border-right: 1px solid color-mix(in srgb, var(--heading-color) 99%, transparent);
    border-radius: 0.5em;
    box-sizing: border-box;
    padding-left: 1rem;
    padding-right: 1rem;
    position: relative;
    z-index: 2;
}

/* hide the decorative heading background for the h2 inside the summary */
.privacy-details summary h2::before {
    display: none !important;
}

/* arrow inside the summary, sized to heading text */
.privacy-details summary::before {
    content: '▸';
    display: inline-block;
    margin-right: 0.6rem;
    transition: transform 0.22s ease, color 0.22s ease;
    color: color-mix(in srgb, var(--heading-color) 70%, transparent);
    font-size: 1em;
    transform-origin: 50% 50%;
}

.privacy-details[open] summary::before {
    transform: rotate(90deg);
}

.privacy-details summary:hover,
.privacy-details summary:focus {
    border-left-color: var(--accent-color);
    color: var(--accent-color);
}

.privacy-content {
    margin-top: 1rem;
}

/* Remove decorative corner accents for the privacy block (override heading decorations) */
.privacy-details summary h2,
.privacy-details summary h2::before,
.privacy-details summary h2::after,
.privacy-details summary::after {
    background-image: none !important;
    content: none !important;
}

.privacy-details .privacy-content {
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.5rem 0 1rem 0;
}

/* Mobile adjustments: halve heading size and allow wrapping */
@media (max-width: 720px) {
    .privacy-details summary {
        font-size: 1rem;
        /* was 2rem, halve it */
    }

    .privacy-details summary h2 {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
        min-width: 0;
    }
}