/* =====================================================================
   ao-consent.css — Styles für den ao-consent-Banner (andi24.de)
   Anpassung pro Site über CSS-Variablen (alle optional):

       :root {
           --aoc-accent:  #0B7180;   Akzentfarbe (Buttons, Schalter)
           --aoc-ink:     #16292B;   Textfarbe
           --aoc-paper:   #ffffff;   Kartenhintergrund
           --aoc-radius:  18px;      Eckenradius
           --aoc-font:    inherit;   Schriftfamilie
       }
   ===================================================================== */

.aoc {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 2147483000;
    display: flex;
    justify-content: center;
    padding: 14px;
    pointer-events: none;
}
.aoc-card {
    pointer-events: auto;
    width: min(560px, 100%);
    background: var(--aoc-paper, #fff);
    color: var(--aoc-ink, #16292B);
    font-family: var(--aoc-font, inherit);
    border-radius: var(--aoc-radius, 18px);
    box-shadow: 0 18px 60px -12px rgba(0, 0, 0, 0.35);
    padding: 22px 24px;
    max-height: min(86vh, 640px);
    overflow-y: auto;
}
.aoc-title {
    margin: 0 0 8px;
    font-size: 16.5px;
    font-weight: 600;
}
.aoc-text {
    margin: 0 0 14px;
    font-size: 13.5px;
    line-height: 1.6;
    opacity: 0.85;
}
.aoc-text a { color: var(--aoc-accent, #0B7180); }

/* Kategorien (zugeklappt nur sichtbar, wenn Einstellungen offen) */
.aoc-cats { display: none; margin: 0 0 16px; }
.aoc-cats.is-open { display: block; }
.aoc-cat {
    display: block;
    padding: 11px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    cursor: pointer;
}
.aoc-cat.is-locked { cursor: default; opacity: 0.75; }
.aoc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.aoc-cat-label { font-size: 14px; font-weight: 600; }
.aoc-cat-desc {
    display: block;
    margin-top: 3px;
    font-size: 12.5px;
    line-height: 1.55;
    opacity: 0.7;
}

/* Schalter */
.aoc-cat input { position: absolute; opacity: 0; width: 0; height: 0; }
.aoc-switch {
    flex: 0 0 auto;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.18);
    position: relative;
    transition: background 0.18s ease;
}
.aoc-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.18s ease;
}
.aoc-cat input:checked + .aoc-switch { background: var(--aoc-accent, #0B7180); }
.aoc-cat input:checked + .aoc-switch::after { transform: translateX(18px); }
.aoc-cat input:focus-visible + .aoc-switch { outline: 2px solid var(--aoc-accent, #0B7180); outline-offset: 2px; }

/* Buttons — Akzeptieren und Ablehnen bewusst GLEICHWERTIG gestaltet */
.aoc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}
.aoc-btn {
    flex: 1 1 150px;
    padding: 11px 16px;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: var(--aoc-accent, #0B7180);
    color: #fff;
    transition: filter 0.15s ease;
}
.aoc-btn:hover { filter: brightness(1.1); }
.aoc-btn.aoc-ghost {
    background: transparent;
    color: var(--aoc-ink, #16292B);
    box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.22);
}

@media (max-width: 480px) {
    .aoc { padding: 8px; }
    .aoc-card { padding: 18px; }
    .aoc-btn { flex-basis: 100%; }
}

/* Dienste-Inventar (automatisch aus den eingebundenen Scripts) */
.aoc-services {
    list-style: none;
    margin: 8px 0 2px;
    padding: 0 0 0 2px;
}
.aoc-services li {
    font-size: 12px;
    line-height: 1.5;
    padding: 7px 10px;
    margin-bottom: 5px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 9px;
}
.aoc-services li span { opacity: 0.7; }
.aoc-services li a { color: var(--aoc-accent, #0B7180); white-space: nowrap; }
