/*
 * Eulektro Consent - Banner unten auf der Seite (blockiert die Seite nicht).
 * Farben/Schrift aus den ux2-Tokens (--eul-*), mit Fallback fuer Seiten im
 * Altsystem-Design. Das Altsystem-CSS setzt button/input global zurueck,
 * daher die !important an Knoepfen und Checkboxen.
 */
.eul-cb {
    position: fixed;
    z-index: 2147483000;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    justify-content: center;
    pointer-events: none;
    font-family: var(--eul-font-body, "Source Sans 3", ui-sans-serif, system-ui, sans-serif);
    color: var(--eul-ink, #212529);
}
.eul-cb__box {
    pointer-events: auto;
    width: 100%;
    max-width: 720px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 20px 24px;
    background: var(--eul-surface, #fff);
    border: 1px solid var(--eul-line, rgba(0, 0, 0, 0.15));
    border-top: 4px solid var(--eul-brand, #21697c);
    box-shadow: 0 12px 40px rgba(4, 13, 16, 0.28);
}
.eul-cb__box:focus {
    outline: none;
}
.eul-cb__title {
    margin: 0 0 8px;
    font-family: var(--eul-font-heading, "Montserrat", ui-sans-serif, system-ui, sans-serif);
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--eul-brand, #21697c);
}
.eul-cb__text {
    margin: 0 0 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.eul-cb__text a {
    color: var(--eul-brand, #21697c);
    text-decoration: underline;
}
.eul-cb__services {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    border-top: 1px solid var(--eul-line, rgba(0, 0, 0, 0.15));
}
.eul-cb__services[hidden],
.eul-cb__btn[hidden] {
    display: none !important;
}
.eul-cb__service {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid var(--eul-line, rgba(0, 0, 0, 0.15));
}
.eul-cb__check {
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    flex: 0 0 auto;
    width: 18px !important;
    height: 18px !important;
    margin: 3px 0 0 !important;
    accent-color: var(--eul-brand, #21697c);
    cursor: pointer;
}
.eul-cb__check:disabled {
    cursor: not-allowed;
}
.eul-cb__service label {
    display: block;
    margin: 0;
    cursor: pointer;
    font-weight: 400;
}
.eul-cb__service-title {
    display: block;
    font-weight: 700;
}
.eul-cb__service-text {
    display: block;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--eul-ink-muted, #6a6a64);
}
.eul-cb__actions {
    /* Drei Spalten: Einstellungen links, Nur notwendige mittig,
       Alle akzeptieren rechts. Auswahl speichern nimmt den linken Platz. */
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}
.eul-cb__actions [data-cb="settings"],
.eul-cb__actions [data-cb="save"] {
    grid-column: 1;
    justify-self: start;
}
.eul-cb__actions [data-cb="reject"] {
    grid-column: 2;
}
.eul-cb__actions [data-cb="accept"] {
    grid-column: 3;
    justify-self: end;
}
/* "Nur notwendige" und "Alle akzeptieren" bewusst gleich gestaltet. */
.eul-cb__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px !important;
    margin: 0 !important;
    padding: 10px 20px !important;
    border: 2px solid var(--eul-brand, #21697c) !important;
    border-radius: 0 !important;
    background: var(--eul-brand, #21697c) !important;
    color: var(--eul-on-brand, #fff) !important;
    font: inherit !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    cursor: pointer;
}
.eul-cb__btn:hover {
    background: var(--eul-brand-hover, #1c5969) !important;
    border-color: var(--eul-brand-hover, #1c5969) !important;
}
.eul-cb__btn:focus-visible {
    outline: 3px solid var(--eul-brand-light, #4db4d0) !important;
    outline-offset: 2px;
}
.eul-cb__btn--link {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--eul-brand, #21697c) !important;
    text-decoration: underline;
    padding-left: 8px !important;
    padding-right: 8px !important;
}
.eul-cb__btn--link:hover {
    background: transparent !important;
    border-color: transparent !important;
    color: var(--eul-brand-hover, #1c5969) !important;
}

@media (max-width: 560px) {
    .eul-cb {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }
    .eul-cb__box {
        padding: 16px;
    }
    /* Mobil gestapelt: Nur notwendige, Alle akzeptieren, darunter links
       Einstellungen. */
    .eul-cb__actions {
        grid-template-columns: 1fr;
    }
    .eul-cb__actions [data-cb] {
        grid-column: 1;
        justify-self: stretch;
    }
    .eul-cb__actions [data-cb="reject"] {
        order: 1;
    }
    .eul-cb__actions [data-cb="accept"] {
        order: 2;
    }
    .eul-cb__actions [data-cb="settings"],
    .eul-cb__actions [data-cb="save"] {
        order: 3;
    }
    .eul-cb__actions [data-cb="settings"] {
        justify-self: start;
    }
}

@media print {
    .eul-cb {
        display: none !important;
    }
}
