html.avp-consent-modal-open,
html.avp-consent-modal-open body,
html.avp-consent-page-locked,
html.avp-consent-page-locked body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

.avp-consent-root {
    --avp-consent-primary: #1f2937;
    --avp-consent-bg: #fff;
    --avp-consent-text: #111827;
    --avp-consent-radius: 12px;
    position: fixed;
    inset: 0;
    z-index: 999999;
    color: var(--avp-consent-text);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    isolation: isolate;
    pointer-events: none;
}
.avp-consent-root[hidden],
.avp-consent-modal[hidden],
.avp-consent-category[hidden],
.avp-consent-category__body[hidden],
.avp-consent-decision-actions[hidden],
[data-avp-empty-actions][hidden],
.avp-consent-revisit[hidden] {
    display: none !important;
}
.avp-consent-root *,
.avp-consent-root *::before,
.avp-consent-root *::after {
    box-sizing: border-box;
}
.avp-consent-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(17, 24, 39, .56);
    pointer-events: auto;
    touch-action: none;
}
.avp-consent-banner {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 980px;
    margin: 0 auto;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    background: var(--avp-consent-bg);
    color: var(--avp-consent-text);
    border: 1px solid rgba(17, 24, 39, .16);
    border-radius: var(--avp-consent-radius);
    box-shadow: 0 20px 70px rgba(0, 0, 0, .18);
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    overflow: auto;
    overscroll-behavior: contain;
    pointer-events: auto;
}
.avp-consent-position-top .avp-consent-banner {
    top: 20px;
    bottom: auto;
}
.avp-consent-position-bottom .avp-consent-banner {
    top: auto;
    bottom: 20px;
}
.avp-consent-position-center .avp-consent-banner,
.avp-consent-layout-modal .avp-consent-banner {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: min(680px, calc(100vw - 40px));
    transform: translate(-50%, -50%);
}
.avp-consent-layout-bar .avp-consent-banner {
    left: 0;
    right: 0;
    width: auto;
    max-width: none;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    transform: none;
}
.avp-consent-layout-bar.avp-consent-position-bottom .avp-consent-banner {
    top: auto;
    bottom: 0;
}
.avp-consent-layout-bar.avp-consent-position-top .avp-consent-banner {
    top: 0;
    bottom: auto;
}
.avp-consent-root.is-modal-open .avp-consent-banner {
    visibility: hidden;
    pointer-events: none;
}
.avp-consent-banner__content {
    min-width: 0;
}
.avp-consent-banner h2 {
    margin: 0 0 8px;
    color: var(--avp-consent-text);
    font-size: 20px;
    line-height: 1.25;
}
.avp-consent-banner p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.5;
}
.avp-consent-banner__actions {
    min-width: 290px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
}
.avp-consent-decision-actions,
[data-avp-empty-actions] {
    display: flex;
    align-items: center;
    justify-content: inherit;
    flex-wrap: wrap;
    gap: 10px;
}
.avp-consent-links a {
    color: var(--avp-consent-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.avp-consent-button {
    min-height: 42px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--avp-consent-primary);
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    line-height: 1.2;
    text-decoration: none;
}
.avp-consent-button--primary {
    background: var(--avp-consent-primary);
    color: #fff;
}
.avp-consent-button--secondary {
    background: #fff;
    color: var(--avp-consent-primary);
}
.avp-consent-button--plain {
    background: transparent;
    color: var(--avp-consent-primary);
    border-color: transparent;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.avp-consent-button:focus-visible,
.avp-consent-icon-button:focus-visible,
.avp-consent-category__toggle:focus-visible,
.avp-consent-switch input:focus-visible + span,
.avp-consent-revisit:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--avp-consent-primary) 35%, transparent);
    outline-offset: 2px;
}

.avp-consent-modal {
    position: fixed;
    left: 50%;
    top: 50%;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    color: #111827;
    border-radius: 18px;
    box-shadow: 0 30px 100px rgba(0, 0, 0, .28);
    z-index: 1000000;
    pointer-events: auto;
    transform: translate(-50%, -50%);
}
.avp-consent-modal__header,
.avp-consent-modal__footer {
    flex: 0 0 auto;
    padding: 18px 20px;
    background: #fff;
    border-color: #e5e7eb;
}
.avp-consent-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e5e7eb;
}
.avp-consent-modal__header h2 {
    margin: 0 0 4px;
    font-size: 22px;
}
.avp-consent-modal__header p {
    margin: 0;
    color: #4b5563;
}
.avp-consent-modal__body {
    min-height: 0;
    padding: 16px 20px;
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.avp-consent-modal__footer {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid #e5e7eb;
}
.avp-consent-icon-button {
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}
.avp-consent-category {
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
}
.avp-consent-category__head {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
}
.avp-consent-category__toggle {
    min-width: 0;
    flex: 1 1 auto;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border: 0;
    background: transparent;
    color: #111827;
    cursor: pointer;
    text-align: left;
}
.avp-consent-category__toggle strong {
    display: block;
    font-size: 16px;
}
.avp-consent-category__toggle small {
    display: block;
    margin-top: 4px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.45;
}
.avp-consent-category__chevron {
    flex: 0 0 auto;
    transition: transform .18s ease;
}
.avp-consent-category__toggle[aria-expanded="true"] .avp-consent-category__chevron {
    transform: rotate(180deg);
}
.avp-consent-category__head > em {
    margin-right: 16px;
    padding: 5px 10px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-style: normal;
    white-space: nowrap;
}
.avp-consent-category__body {
    padding: 0 16px 16px;
    color: #374151;
}
.avp-consent-public-list {
    margin: 0;
    padding-left: 18px;
}
.avp-consent-public-list li {
    margin: 10px 0;
}
.avp-consent-switch {
    position: relative;
    width: 48px;
    height: 26px;
    margin-right: 16px;
    display: inline-flex;
    flex: 0 0 48px;
}
.avp-consent-switch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}
.avp-consent-switch > span:last-child {
    position: absolute;
    inset: 0;
    background: #d1d5db;
    border-radius: 999px;
    transition: background .18s ease;
}
.avp-consent-switch > span:last-child::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .2);
    transition: transform .18s ease;
}
.avp-consent-switch input:checked + span {
    background: var(--avp-consent-primary);
}
.avp-consent-switch input:checked + span::before {
    transform: translateX(22px);
}

.avp-consent-blocked {
    width: 100%;
    min-height: 220px;
    aspect-ratio: var(--avp-media-ratio, 16/9);
    padding: 20px;
    display: grid;
    place-items: center;
    background: #f9fafb;
    border: 1px solid #d1d5db;
    border-radius: 14px;
    text-align: center;
}
.avp-consent-blocked__content {
    max-width: 560px;
}
.avp-consent-blocked__content > strong {
    font-size: 18px;
}
.avp-consent-blocked__content p {
    margin: 8px 0 14px;
}
.avp-consent-blocked__actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}
.avp-consent-loaded-media {
    width: 100%;
    min-height: 360px;
    border: 0;
}

.avp-consent-policy {
    line-height: 1.6;
}
.avp-consent-policy__updated {
    color: #6b7280;
}
.avp-consent-policy__section {
    margin: 0 0 28px;
}
.avp-consent-policy__items {
    display: grid;
    gap: 12px;
}
.avp-consent-policy__items article {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}
.avp-consent-policy__items h3,
.avp-consent-policy__items p {
    margin: 0 0 6px;
}
.avp-consent-policy__items p:last-child {
    margin-bottom: 0;
}

.avp-consent-revisit {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 99998;
    padding: 8px 13px;
    background: #fff;
    color: #111827;
    border: 1px solid rgba(17, 24, 39, .18);
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
}
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 760px) {
    .avp-consent-banner {
        left: 10px;
        right: 10px;
        bottom: 10px;
        max-height: calc(100dvh - 20px);
        display: block;
        overflow: auto;
        padding: 18px;
    }
    .avp-consent-position-top .avp-consent-banner {
        top: 10px;
        bottom: auto;
    }
    .avp-consent-position-center .avp-consent-banner,
    .avp-consent-layout-modal .avp-consent-banner {
        width: calc(100vw - 20px);
    }
    .avp-consent-banner__actions {
        min-width: 0;
        margin-top: 16px;
        justify-content: stretch;
    }
    .avp-consent-banner__actions .avp-consent-button {
        width: 100%;
    }
    .avp-consent-modal {
        width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
    }
    .avp-consent-modal__header,
    .avp-consent-modal__body,
    .avp-consent-modal__footer {
        padding: 14px;
    }
    .avp-consent-modal__footer .avp-consent-button {
        flex: 1 1 160px;
    }
    .avp-consent-category__toggle {
        padding: 14px 10px 14px 14px;
    }
    .avp-consent-category__head > em,
    .avp-consent-switch {
        margin-right: 12px;
    }
    .avp-consent-blocked__actions .avp-consent-button {
        width: 100%;
    }
    .avp-consent-revisit {
        left: 10px;
        bottom: 10px;
        padding: 7px 11px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .avp-consent-category__chevron,
    .avp-consent-switch > span:last-child,
    .avp-consent-switch > span:last-child::before {
        transition: none;
    }
}

/* Ausführliche Cookie-Richtlinie */
.avp-consent-policy {
    --avp-policy-border: #dfe3e8;
    --avp-policy-soft: #f7f8fa;
    --avp-policy-muted: #5f6b7a;
    --avp-policy-text: inherit;
    color: var(--avp-policy-text);
}
.avp-consent-policy__header {
    margin: 0 0 24px;
}
.avp-consent-policy__lead {
    margin: 0 0 8px;
    font-size: 1.05em;
}
.avp-consent-policy__toc {
    margin: 0 0 32px;
    padding: 18px 20px;
    border: 1px solid var(--avp-policy-border);
    border-radius: 12px;
    background: var(--avp-policy-soft);
}
.avp-consent-policy__toc > strong {
    display: block;
    margin-bottom: 8px;
}
.avp-consent-policy__toc ol {
    margin: 0;
    padding-left: 22px;
    columns: 2;
    column-gap: 40px;
}
.avp-consent-policy__toc li {
    break-inside: avoid;
    margin: 4px 0;
}
.avp-consent-policy__toc a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.avp-consent-policy__section {
    scroll-margin-top: 32px;
}
.avp-consent-policy__section > h2 {
    margin: 0 0 12px;
}
.avp-consent-policy__section > p {
    max-width: 82ch;
}
.avp-consent-policy__definition-grid,
.avp-consent-policy__category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}
.avp-consent-policy__definition-grid article,
.avp-consent-policy__category-card {
    padding: 18px;
    border: 1px solid var(--avp-policy-border);
    border-radius: 12px;
    background: #fff;
}
.avp-consent-policy__definition-grid article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}
.avp-consent-policy__definition-grid h3,
.avp-consent-policy__category-card h3 {
    margin: 0 0 8px;
}
.avp-consent-policy__definition-grid p,
.avp-consent-policy__category-card p {
    margin: 0 0 8px;
}
.avp-consent-policy__definition-grid p:last-child,
.avp-consent-policy__category-card p:last-child {
    margin-bottom: 0;
}
.avp-consent-policy__services {
    display: grid;
    gap: 24px;
    margin-top: 18px;
}
.avp-consent-policy__service-group > h3 {
    margin: 0 0 10px;
}
.avp-consent-policy__service {
    margin: 0 0 10px;
    border: 1px solid var(--avp-policy-border);
    border-radius: 10px;
    background: #fff;
    overflow: clip;
}
.avp-consent-policy__service > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 15px 16px;
    cursor: pointer;
    list-style: none;
    background: var(--avp-policy-soft);
}
.avp-consent-policy__service > summary::-webkit-details-marker {
    display: none;
}
.avp-consent-policy__service > summary::after {
    content: "+";
    flex: 0 0 auto;
    font-size: 1.3em;
    line-height: 1;
}
.avp-consent-policy__service[open] > summary::after {
    content: "−";
}
.avp-consent-policy__service > summary span:first-child {
    display: grid;
    gap: 2px;
}
.avp-consent-policy__service > summary small {
    color: var(--avp-policy-muted);
}
.avp-consent-policy__badge {
    margin-left: auto;
    padding: 3px 9px;
    border: 1px solid var(--avp-policy-border);
    border-radius: 999px;
    background: #fff;
    font-size: .85em;
    white-space: nowrap;
}
.avp-consent-policy__service-body {
    padding: 18px;
}
.avp-consent-policy__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin: 0 0 18px;
}
.avp-consent-policy__meta div {
    min-width: 0;
}
.avp-consent-policy__meta dt {
    margin: 0 0 2px;
    font-weight: 700;
}
.avp-consent-policy__meta dd {
    margin: 0;
}
.avp-consent-policy__table-wrap {
    width: 100%;
    overflow-x: auto;
}
.avp-consent-policy__cookie-table {
    width: 100%;
    min-width: 700px;
    border-collapse: collapse;
    font-size: .94em;
}
.avp-consent-policy__cookie-table th,
.avp-consent-policy__cookie-table td {
    padding: 10px 11px;
    border: 1px solid var(--avp-policy-border);
    text-align: left;
    vertical-align: top;
}
.avp-consent-policy__cookie-table th {
    background: var(--avp-policy-soft);
}
.avp-consent-policy__cookie-table code {
    white-space: nowrap;
}
.avp-consent-policy__notice {
    padding: 12px 14px;
    border-left: 4px solid #9ca3af;
    background: var(--avp-policy-soft);
}
.avp-consent-policy__actions {
    margin-top: 16px;
}
.avp-consent-policy__links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.avp-consent-policy__links a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 760px) {
    .avp-consent-policy__toc ol {
        columns: 1;
    }
    .avp-consent-policy__definition-grid,
    .avp-consent-policy__category-grid,
    .avp-consent-policy__meta {
        grid-template-columns: 1fr;
    }
    .avp-consent-policy__definition-grid article:last-child:nth-child(odd) {
        grid-column: auto;
    }
    .avp-consent-policy__service > summary {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .avp-consent-policy__badge {
        margin-left: 0;
    }
}
