
:root {
  --belucookie-bg: #ffffff;
  --belucookie-text: #222222;
  --belucookie-border: #e5e5e5;
  --belucookie-btn-primary-bg: var(--belucookie-primary, #2563eb);
  --belucookie-btn-primary-text: #ffffff;
  --belucookie-btn-secondary-bg: #f3f4f6;
  --belucookie-btn-secondary-text: #222222;
}

.belucookie-banner :focus-visible,
.belucookie-banner *:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.belucookie-banner *:focus,
.belucookie-banner *:active {
    outline: none;
    box-shadow: none;
}

.belucookie-banner button:focus,
.belucookie-banner button:active,
.belucookie-banner a:focus,
.belucookie-banner a:active,
.belucookie-banner input:focus,
.belucookie-banner input:active,
.belucookie-banner textarea:focus,
.belucookie-banner select:focus,
.belucookie-banner select:active,
.belucookie-banner label:focus,
.belucookie-banner label:active {
    outline: none;
    box-shadow: none;
    border-color: inherit;
}

.belucookie-banner :focus-visible,
.belucookie-banner-trigger:focus-visible,
.belucookie-toggle input:focus-visible + .belucookie-toggle-slider {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
    box-shadow: none;
}

.belucookie-link:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.belucookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: var(--belucookie-text);
    display: none;
}

.belucookie-banner.active {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 15px;
}

.belucookie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

.belucookie-container {
    position: relative;
    background: var(--belucookie-bg);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    width: 400px;
    max-width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    overflow-y: auto;
}

.belucookie-main,
.belucookie-settings {
    padding: 16px;
}


.belucookie-view-animate {
    animation: beluViewSlide 0.2s ease-out;
}

@keyframes beluViewSlide {
    from {
        opacity: 0;
        transform: translateX(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.belucookie-title {
    font-size: clamp(15px, 4vw, 17px);
    font-weight: 600;
    margin: 0 0 6px 0;
    color: var(--belucookie-text);
}

.belucookie-text {
    margin: 0 0 10px 0;
    color: #555;
    font-size: clamp(11px, 3vw, 12px);
    line-height: 1.4;
}

.belucookie-quick-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 8px;
    margin-bottom: 10px;
    padding: 8px 10px;
    background: #f1f1f1;
    border-radius: 6px;
}

.belucookie-quick-toggle-item {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    padding: 3px 0;
}

.belucookie-quick-toggle-label {
    font-size: 12px;
    font-weight: 500;
    color: #444;
    margin-top: -5px;
}

.belucookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.belucookie-btn {
    flex: 1;
    padding: 11px 14px;
    min-height: 44px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.belucookie-btn:hover {
    opacity: 0.9;
}

.belucookie-btn:focus,
.belucookie-btn:active {
    outline: none;
    box-shadow: none;
}

.belucookie-btn-accept {
    background: var(--belucookie-btn-primary-bg);
    color: var(--belucookie-btn-primary-text);
    border: 1.5px solid var(--belucookie-btn-primary-bg);
}

.belucookie-btn-reject {
    background: transparent;
    color: var(--belucookie-btn-primary-bg);
    border: 1.5px solid var(--belucookie-btn-primary-bg);
}

.belucookie-btn-reject.belucookie-btn-filled {
    background: var(--belucookie-btn-secondary-bg);
    color: var(--belucookie-btn-secondary-text);
    border: 1.5px solid var(--belucookie-btn-secondary-text);
}

.belucookie-btn-settings {
    background: transparent;
    color: var(--belucookie-btn-primary-bg);
    border: 1.5px solid var(--belucookie-btn-primary-bg);
}

.belucookie-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: #707070;
    flex-wrap: wrap;
}

.belucookie-link {
    color: #555;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.belucookie-link:hover {
    opacity: 0.85;
}

.belucookie-details-link {
    color: var(--belucookie-primary, #376e78) !important;
    font-weight: 500;
    text-decoration: none !important;
    font-size: 13px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.belucookie-details-link:hover {
    opacity: 0.85;
}

.belucookie-separator {
    color: #ddd;
}


.belucookie-toggle {
    position: relative;
    display: inline-block;
    width: 34px;
    height: 18px;
    flex-shrink: 0;
}

.belucookie-toggle input[type="checkbox"] {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    opacity: 0 !important;
    cursor: pointer !important;
    z-index: 2 !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}


.belucookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 34px;
    height: 18px;
    background-color: #ccc;
    border-radius: 18px;
    transition: background-color 0.2s ease;
    border: none !important;
    outline: none;
    box-shadow: none;
}


.belucookie-toggle-slider:before {
    position: absolute;
    content: "";
    width: 14px;
    height: 14px;
    left: 2px;
    top: 50%;
    transform: translateY(-50%);
    background-color: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.belucookie-toggle input:checked + .belucookie-toggle-slider {
    background-color: var(--belucookie-primary, #376e78);
}

.belucookie-toggle input:checked + .belucookie-toggle-slider:before {
    transform: translateY(-50%) translateX(16px);
}

.belucookie-toggle input:disabled + .belucookie-toggle-slider {
    opacity: 0.6;
    cursor: not-allowed;
}


.belucookie-toggle input:focus + .belucookie-toggle-slider,
.belucookie-toggle input:active + .belucookie-toggle-slider {
    outline: none;
    box-shadow: none;
    border: none !important;
}

.belucookie-toggle-slider:focus,
.belucookie-toggle-slider:active {
    outline: none;
    box-shadow: none;
    border: none !important;
}




.belucookie-settings-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--belucookie-text);
}

.belucookie-quick-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-bottom: 12px;
}

.belucookie-quick-btn {
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 500;
    background: var(--belucookie-primary, #376e78);
    color: #fff;
    border: none !important;
    border-radius: 4px;
    cursor: pointer;
    box-shadow: none;
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.belucookie-quick-btn:hover {
    opacity: 0.9;
}

.belucookie-quick-btn:focus,
.belucookie-quick-btn:active {
    outline: none;
    box-shadow: none;
}


.belucookie-categories {
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
    max-height: 300px;
    overflow-y: auto;
}

.belucookie-category {
    border-bottom: 1px solid var(--belucookie-border);
    padding: 10px 0;
}

.belucookie-category:first-child {
    border-top: 1px solid var(--belucookie-border);
}

.belucookie-category-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.belucookie-category-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.belucookie-category-name {
    font-weight: 600;
    font-size: 13px;
    color: var(--belucookie-text);
}

.belucookie-category-count {
    color: #5c5c5c;
    font-size: 12px;
}


.belucookie-expand-btn {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    color: #5c5c5c;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
    outline: none;
}

.belucookie-expand-btn:hover {
    color: var(--belucookie-primary, #376e78);
}

.belucookie-expand-btn:focus,
.belucookie-expand-btn:active {
    outline: none;
    box-shadow: none;
}

.belucookie-expand-btn svg {
    width: 16px;
    height: 16px;
}

.belucookie-category.expanded .belucookie-expand-btn svg {
    transform: rotate(180deg);
}

.belucookie-category-description {
    color: #666;
    font-size: 12px;
    margin-top: -7px;
    line-height: 1.4;
}

.belucookie-category-details {
    display: none;
    margin-top: 10px;
    padding: 10px;
    background: #f1f1f1;
    border-radius: 6px;
    font-size: 11px;
}

.belucookie-category.expanded .belucookie-category-details {
    display: block;
}

.belucookie-cookie-list {
    width: 100%;
    border-collapse: collapse;
}

.belucookie-cookie-list th {
    text-align: left;
    padding: 4px 6px;
    border-bottom: 1px solid #ddd;
    color: #555;
    font-weight: 600;
    font-size: 10px;
}

.belucookie-cookie-list td {
    padding: 4px 6px;
    border-bottom: 1px solid #eee;
    color: #666;
    font-size: 10px;
}

@media (min-width: 480px) {
    .belucookie-banner.active {
        padding: 15px;
    }

    .belucookie-container {
        width: 400px;
        max-width: calc(100vw - 20px);
    }
}

@media (max-width: 479px) {
    .belucookie-banner.active {
        padding: 10px;
    }

    .belucookie-container {
        width: 100%;
        max-width: none;
    }

    .belucookie-main,
    .belucookie-settings {
        padding: 14px;
    }

    .belucookie-title {
        font-size: 16px;
    }

    .belucookie-text {
        font-size: 12px;
        margin-bottom: 10px;
    }

    .belucookie-quick-toggles {
        padding: 8px 10px;
        gap: 4px 8px;
        margin-bottom: 10px;
    }

    .belucookie-quick-toggle-item {
        padding: 3px 0;
    }

    .belucookie-quick-toggle-label {
        font-size: 12px;
    }

    .belucookie-buttons {
        gap: 6px;
        margin-bottom: 8px;
    }

    .belucookie-btn {
        padding: 9px 10px;
        font-size: 12px;
    }

    .belucookie-footer {
        font-size: 11px;
        gap: 6px;
    }
}

@media (max-width: 379px) {
    .belucookie-banner.active {
        padding: 8px;
    }

    .belucookie-main,
    .belucookie-settings {
        padding: 12px;
    }

    .belucookie-title {
        font-size: 15px;
    }

    .belucookie-btn {
        padding: 10px 8px;
        font-size: 11px;
        min-height: 44px;
    }

    .belucookie-categories {
        max-height: 200px;
    }

    .belucookie-quick-toggles {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .belucookie-quick-toggle-item {
        justify-content: space-between;
    }
}

@media (max-width: 359px) {
    .belucookie-banner.active {
        padding: 6px;
    }

    .belucookie-main,
    .belucookie-settings {
        padding: 10px;
    }

    .belucookie-title {
        font-size: 14px;
    }

    .belucookie-text {
        font-size: 11px;
    }

    .belucookie-btn {
        padding: 10px 6px;
        font-size: 10px;
    }

    .belucookie-buttons {
        flex-direction: column;
        gap: 8px;
    }

    .belucookie-footer {
        font-size: 10px;
        gap: 4px;
    }

    .belucookie-quick-btn {
        padding: 8px 10px;
        font-size: 10px;
    }

    .belucookie-category-name {
        font-size: 12px;
    }

    .belucookie-category-description {
        font-size: 11px;
    }
}


.belucookie-banner .belucookie-overlay {
    opacity: 0;
}

.belucookie-banner .belucookie-container {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
}

.belucookie-banner.active .belucookie-overlay {
    will-change: opacity;
}

.belucookie-banner.active .belucookie-container {
    will-change: transform, opacity;
}

.belucookie-banner.active .belucookie-overlay {
    opacity: 1;
    transition: opacity 0.35s ease-out;
}

.belucookie-banner.active .belucookie-container {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease-out;
}


.belucookie-placeholder {
    position: relative;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 8px;
    padding: 30px 16px;
    text-align: center;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.belucookie-placeholder-content {
    max-width: 300px;
}

.belucookie-placeholder-content p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 13px;
}

.belucookie-placeholder-btn {
    padding: 10px 20px;
    background: var(--belucookie-primary, #376e78);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    outline: none;
}

.belucookie-placeholder-btn:hover {
    opacity: 0.9;
}

.belucookie-placeholder-btn:focus,
.belucookie-placeholder-btn:active {
    outline: none;
    box-shadow: none;
}

.belucookie-placeholder.belucookie-placeholder-loaded {
    display: none;
}


.belucookie-settings-link {
    text-decoration: none !important;
    color: inherit;
    cursor: pointer;
}

.belucookie-settings-link:hover {
    opacity: 0.7;
}




html {
    scrollbar-gutter: stable;
}


html.belucookie-scroll-lock,
html.belucookie-scroll-lock body {
    overflow: hidden !important;
    overscroll-behavior: contain;
}

body.belucookie-scroll-lock {
    overflow: hidden;
}

@supports not (scrollbar-gutter: stable) {
    body.belucookie-scroll-lock {
        padding-right: var(--belucookie-scrollbar-width, 0) !important;
    }
}


html.belucookie-scroll-lock {
    touch-action: pan-x pan-y;
}


@supports (padding: env(safe-area-inset-bottom)) {
    .belucookie-banner.active {
        padding-bottom: calc(15px + env(safe-area-inset-bottom));
        padding-left: calc(15px + env(safe-area-inset-left));
        padding-right: calc(15px + env(safe-area-inset-right));
    }

    @media (max-width: 479px) {
        .belucookie-banner.active {
            padding-bottom: calc(10px + env(safe-area-inset-bottom));
        }
    }
}


.belucookie-toggle::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
}

.belucookie-expand-btn {
    min-width: 44px;
    min-height: 44px;
}


.belucookie-container {
    overflow-x: hidden;
}


.belucookie-category-details {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.belucookie-cookie-list {
    min-width: 280px;
}

.belucookie-policy-intro {
    font-size: 14px;
    margin-bottom: 12px;
    color: inherit;
    line-height: 1.5;
}

.belucookie-drittland-hinweis {
    font-size: 11px;
    margin: 8px 0;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.04);
    border-left: 2px solid currentColor;
    line-height: 1.4;
    opacity: 0.85;
}

.belucookie-gtm-ns {
    display: none;
    visibility: hidden;
    height: 0;
    width: 0;
    position: absolute;
    border: 0;
}

@media (prefers-reduced-motion: reduce) {
    .belucookie-banner *,
    .belucookie-banner *::before,
    .belucookie-banner *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

.belucookie-position-bottom-center.active {
    align-items: flex-end;
    justify-content: center;
}

.belucookie-position-bottom-left.active {
    align-items: flex-end;
    justify-content: flex-start;
}

.belucookie-position-bottom-right.active {
    align-items: flex-end;
    justify-content: flex-end;
}

.belucookie-position-top-center.active {
    align-items: flex-start;
    justify-content: center;
}

.belucookie-position-center.active {
    align-items: center;
    justify-content: center;
}

body.belucookie-no-scroll-lock .belucookie-scroll-lock,
html.belucookie-no-scroll-lock .belucookie-scroll-lock {
    overflow: auto !important;
    touch-action: auto !important;
}

.belucookie-placeholder-brand {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.belucookie-placeholder-provider {
    font-size: 11px;
    color: #707070;
    margin-bottom: 10px;
}

.belucookie-placeholder-thumb {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    z-index: 0;
}

.belucookie-placeholder-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.35;
}

.belucookie-placeholder-content {
    position: relative;
    z-index: 1;
}

.belucookie-banner-wrapper {
    contain: layout;
    min-height: var(--belucookie-banner-min-height, 0);
}

body.belucookie-banner-active {
    padding-bottom: var(--belucookie-banner-height, 0);
}

.belucookie-banner-footer-links {
    margin-top: 14px;
    font-size: 13px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
}

.belucookie-banner-footer-links a {
    color: #555;
    text-decoration: none;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.belucookie-banner-footer-links a:hover {
    opacity: 0.85;
}

.belucookie-banner-footer-links a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

#belucookie-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 2147483646;
    width: 48px;
    height: 48px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    background: var(--belucookie-primary, #376e78);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

#belucookie-floating-btn:hover {
    opacity: 0.9;
}

#belucookie-floating-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

#belucookie-floating-btn:focus,
#belucookie-floating-btn:active {
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

#belucookie-floating-btn svg {
    display: block;
    pointer-events: none;
}

.belucookie-hidden {
    display: none !important;
}

.belucookie-gpc-notice {
    margin-bottom: 12px;
    padding: 8px 12px;
    background: #f1f5f5;
    border-left: 3px solid #376e78;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.4;
}

.belucookie-renewal-notice {
    padding: 10px;
    background: rgba(255, 165, 0, 0.1);
    border-left: 3px solid orange;
    font-size: 13px;
    margin-bottom: 12px;
}
