/* Rechtstexte, Kontaktformular und lokales Einwilligungstool. */
.privacy-page { max-width:1100px; margin:0 auto; padding:40px 24px 70px; overflow-wrap:anywhere; }
.privacy-page .button { display:inline-block; padding:12px 20px; background:var(--accent2); color:#fff; border:0; border-radius:8px; font:inherit; cursor:pointer; }
.privacy-page a:not(.button) { text-decoration:underline; text-underline-offset:3px; }
.consent-dialog { --paper:#faf8f5; --ink:#3b302a; --muted:#6a5e55; --accent:#725443; --line:#d9cfc3; --soft:#ebe5dd; --white:#fffdfa; }
/* Lokales Einwilligungsfenster: unabhängig vom Magazinlayout. */
.consent-dialog {
    width: min(680px, calc(100% - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 18px 60px rgb(35 28 24 / 25%);
    overflow: hidden;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.consent-dialog[open] {
    display: flex;
    flex-direction: column;
}

.consent-dialog::backdrop {
    background: rgb(35 28 24 / 65%);
}

.consent-top {
    flex: 0 0 auto;
    padding: 16px 22px 0;
}

.consent-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.consent-dialog .eyebrow {
    margin: 0;
}

.consent-dialog h2 {
    margin: 2px 0 10px;
    font-size: clamp(1.3rem, 4vw, 1.65rem);
    line-height: 1.2;
}

.consent-dialog p {
    margin: 8px 0;
    font-size: .9rem;
    line-height: 1.5;
}

.consent-dialog button {
    cursor: pointer;
    font: inherit;
    line-height: 1.3;
}

.consent-close {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    font-size: 1.5rem !important;
}

.consent-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 16px 0;
}

.consent-actions button,
#consent-forget {
    min-height: 48px;
    padding: 10px 12px;
    border: 1px solid var(--ink);
    border-bottom-width: 3px;
    border-radius: 8px;
    background: linear-gradient(var(--accent), #513b2e);
    color: var(--white);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 3px 4px rgb(59 48 42 / 25%);
    transition: transform .12s ease, box-shadow .12s ease;
}

.consent-actions button:hover,
#consent-forget:hover {
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 30%), 0 4px 7px rgb(59 48 42 / 35%);
}

.consent-actions button:active,
#consent-forget:active {
    transform: translateY(2px);
    box-shadow: inset 0 1px 3px rgb(35 28 24 / 40%);
}

.consent-dialog :focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.consent-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.consent-tabs button {
    min-height: 48px;
    padding: 10px;
    border: 0;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: var(--muted);
}

.consent-tabs button[aria-selected="true"] {
    border-bottom-color: var(--accent);
    color: var(--ink);
    font-weight: 700;
}

.consent-body {
    min-height: 0;
    padding: 12px 22px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.consent-essential {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.consent-badge {
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--soft);
    font-size: .8rem;
}

.consent-category {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.consent-switch {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    cursor: pointer;
}

.consent-switch input {
    appearance: none;
    position: relative;
    width: 46px;
    height: 26px;
    margin: 0;
    flex: 0 0 46px;
    border: 1px solid var(--muted);
    border-radius: 20px;
    background: var(--soft);
}

.consent-switch input::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 2px;
    left: 2px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: 0 1px 3px rgb(35 28 24 / 35%);
}

.consent-switch input:checked {
    background: var(--accent);
}

.consent-switch input:checked::after {
    left: 22px;
}

.consent-switch input:indeterminate::after {
    left: 12px;
    background: var(--accent);
}

.consent-service {
    padding: 10px 12px;
    margin: 8px 0;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.consent-service summary {
    cursor: pointer;
    font-weight: 600;
    min-height: 44px;
    align-content: center;
}

.consent-footer {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 16px;
    padding: 12px 22px;
    border-top: 1px solid var(--line);
    font-size: .8rem;
}

.consent-status:empty {
    display: none;
}

@media (max-width: 600px) {
    .consent-top {
        padding: 10px 16px 0;
    }

    .consent-body {
        padding: 10px 16px;
    }

    .consent-footer {
        padding: 10px 16px;
    }

    .consent-actions {
        gap: 8px;
        margin: 12px 0;
    }
}

/* Sehr niedrige Fenster und starke Vergrößerung: alle Inhalte erreichbar halten. */
@media (max-height: 540px) {
    .consent-dialog[open] {
        display: block;
        overflow-y: auto;
    }

    .consent-body {
        overflow: visible;
    }
}

@media (prefers-reduced-motion: reduce) {
    .consent-actions button,
    #consent-forget {
        transition: none;
    }
}

@media print {
    .consent-dialog,
    [data-consent-open] {
        display: none !important;
    }
}
.legal-contact {
    font-style: normal;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.legal-draft {
    background: var(--soft);
    padding: 20px;
    border-left: 3px solid var(--accent);
    margin: 24px 0;
}

.legal-pending {
    padding: 14px 18px;
    border: 1px dashed var(--accent);
}

.legal-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 20px 0;
    border-block: 1px solid var(--line);
}

.legal-page section {
    scroll-margin-top: 24px;
    margin-top: 36px;
}

.legal-page code {
    overflow-wrap: anywhere;
}

/* Kontaktformular: ruhige Lesebreite, große Bedienflächen und lokaler Spamköder. */
.contact-page {
    max-width: 760px;
}

.contact-form {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.contact-form label {
    font-weight: 600;
}

.contact-form label span {
    font-weight: 400;
}

.contact-form input:not([type="hidden"]),
.contact-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    padding: 12px 14px;
    border: 1px solid #d9cfc3;
    border-radius: 8px;
    background: #faf8f5;
    color: #3b302a;
    font: inherit;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
    outline: 2px solid #725443;
    outline-offset: 3px;
}

.contact-form p {
    margin: 0 0 8px;
    font-size: 0.9rem;
}

.contact-form .button {
    justify-self: start;
    min-height: 44px;
    cursor: pointer;
}

.contact-trap {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    pointer-events: none;
}

.contact-notice {
    margin: 24px 0;
    padding: 18px;
    border: 1px solid #d9cfc3;
    border-radius: 8px;
    background: #ebe5dd;
}

.contact-error {
    border-color: #725443;
}

