/* ---------------------------------------------------------------------------
   Cookie-Hinweis - 18.11.2026, zweite Fassung.
   24.11.2026: dritte Fassung - Fenster in der Mitte statt Kasten unten links
   (Jürgen: „in der Mitte usw. und im Vordergrund“). Aufbau: Symbol, Überschrift,
   Text, großer Knopf „Alle akzeptieren“, darunter „Nur notwendige“ und
   „Einstellungen“, unten Datenschutzerklärung | Impressum. Die Seite dahinter
   ist abgedunkelt, weichgezeichnet und gesperrt.

   KEINE eigenen Farben. Alles kommt aus dem Design-System (shop-design.php):
   Akzent (--sd-a / --sd-a-rgb), Ecken (--sd-r), Rand (--rand), Fläche
   (--surface, per !important aus shop-design.php über .ck28-leiste und
   .ck28-fenster - dort auch Raster/„oben offen“/Durchsicht für den
   Cookie-Hinweis). Black Week & Co. färben also automatisch mit.
   Knöpfe nehmen .cta-btn der Seite, hier steht nur die Größe.

   Ebenen: über allem, auch über Event-Intro (96), Sale-Fenster (95),
   Kopfleiste und der Seitenwechsel-Klappe (99999, ohne Klicks).
   --------------------------------------------------------------------------- */

.ck28 {
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
}

.ck28 [hidden] {
    display: none !important;
}

/* Seite dahinter: nicht scrollbar, solange ein Fenster offen ist */
html.ck28-sperre,
html.ck28-sperre body {
    overflow: hidden !important;
    overscroll-behavior: none;
}

/* ---------- Schicht 1: Fenster in der Mitte ---------- */

.ck28-schleier {
    position: fixed;
    inset: 0;
    /* html hat scrollbar-gutter: stable - ohne 100vw bliebe rechts ein heller Streifen frei */
    width: 100vw;
    z-index: 100000;
    display: none;
    background: rgba(0, 0, 0, .58);
    -webkit-backdrop-filter: blur(7px) saturate(.85);
    backdrop-filter: blur(7px) saturate(.85);
}

.ck28-leiste {
    position: fixed;
    z-index: 100001;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: none;
    box-sizing: border-box;
    width: min(460px, calc(100vw - 32px));
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    padding: 30px 28px 20px;
    text-align: center;
    border: 1px solid var(--rand, var(--line));
    border-radius: var(--sd-r, 14px);
    background: var(--surface);
    box-shadow: 0 26px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(var(--sd-a-rgb, 59, 130, 246), .14);
    outline: none;
}

.ck28.ck28-an .ck28-schleier,
.ck28.ck28-an .ck28-leiste {
    display: block;
}

.ck28.ck28-an .ck28-leiste {
    animation: ck28-rein 220ms ease-out both;
}

.ck28.ck28-an .ck28-schleier {
    animation: ck28-blende 220ms ease-out both;
}

@keyframes ck28-rein {
    from { opacity: 0; transform: translate(-50%, -46%) scale(.97); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes ck28-blende {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.ck28-symbol {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 16px;
    border: 1px solid rgba(var(--sd-a-rgb, 59, 130, 246), .35);
    border-radius: 999px;
    background: rgba(var(--sd-a-rgb, 59, 130, 246), .12);
    color: var(--sd-a, var(--purple));
}

.ck28-symbol svg {
    display: block;
}

.ck28-titel {
    margin: 0 0 10px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text);
}

.ck28-text {
    margin: 0 0 20px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--muted);
}

.ck28-text a,
.ck28-liste a,
.ck28-recht a {
    color: var(--sd-a, var(--purple));
    font-weight: 700;
    text-decoration: none;
}

.ck28-text a:hover,
.ck28-liste a:hover,
.ck28-recht a:hover,
.ck28-recht a:focus-visible {
    text-decoration: underline;
}

/* Die Knöpfe sind .cta-btn der Seite - hier nur, wie groß sie sind. */
.ck28-knopf {
    flex: 1 1 160px;
    min-height: 44px;
    white-space: nowrap;
}

.ck28-leiste .ck28-haupt {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-height: 52px;
    font-size: 15px;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ck28-neben {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 4px;
    margin-top: 8px;
}

.ck28-punkt {
    color: var(--muted);
    opacity: .6;
}

.ck28-link {
    appearance: none;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: var(--sd-r-klein, 10px);
    background: none;
    color: var(--muted);
    font: 700 13.5px/1.4 "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: .02em;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.ck28-link:hover,
.ck28-link:focus-visible {
    color: var(--text);
}

.ck28-leiste :focus-visible,
.ck28-fenster :focus-visible {
    outline: 2px solid var(--sd-a, var(--purple));
    outline-offset: 2px;
}

.ck28-recht {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 8px;
    margin: 6px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12.5px;
    color: var(--muted);
}

.ck28-recht a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 6px;
    color: var(--muted);
    font-weight: 600;
}

.ck28-recht a:hover {
    color: var(--text);
}

/* ---------- Schicht 2: das Fenster mit den Einstellungen ---------- */

.ck28-schatten {
    position: fixed;
    inset: 0;
    width: 100vw;
    z-index: 100010;
    background: rgba(0, 0, 0, .58);
    -webkit-backdrop-filter: blur(7px) saturate(.85);
    backdrop-filter: blur(7px) saturate(.85);
}

/* Liegt das Fenster in der Mitte schon darunter, reicht ein leichter Schatten. */
.ck28.ck28-an .ck28-schatten {
    background: rgba(0, 0, 0, .35);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.ck28-fenster {
    position: fixed;
    z-index: 100011;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    width: min(620px, calc(100vw - 32px));
    max-height: min(82vh, 760px);
    max-height: min(86dvh, 760px);
    border: 1px solid var(--rand, var(--line));
    border-radius: var(--sd-r, 14px);
    background: var(--surface);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .45);
}

.ck28-fenster-kopf {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--line);
}

.ck28-e-titel {
    margin: 0;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 900;
    font-size: 16px;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--text);
}

.ck28-x {
    appearance: none;
    width: 44px;
    height: 44px;
    flex: none;
    border: 1px solid var(--rand, var(--line));
    border-radius: var(--sd-r-klein, 10px);
    background: none;
    color: var(--text);
    font: 700 20px/1 "Segoe UI", Roboto, Arial, sans-serif;
    cursor: pointer;
}

.ck28-x:hover,
.ck28-x:focus-visible {
    border-color: var(--sd-a, var(--purple));
    color: var(--sd-a, var(--purple));
}

.ck28-fenster-inhalt {
    overflow-y: auto;
    padding: 20px;
}

/* ---------- eine Gruppe (Notwendig / Schriften) ---------- */

.ck28-gruppe {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--sd-r-klein, 10px);
    background: var(--surface-strong);
}

.ck28-gruppe + .ck28-gruppe {
    margin-top: 14px;
}

.ck28-gruppe-kopf {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.ck28-g-titel {
    margin: 0 0 6px;
    font-family: "Poppins", "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--text);
}

.ck28-g-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--muted);
}

.ck28-g-text + .ck28-g-text {
    margin-top: 8px;
}

.ck28-immer {
    flex: none;
    padding: 5px 11px;
    border: 1px solid var(--sd-gut, var(--green));
    border-radius: 999px;
    color: var(--sd-gut, var(--green));
    font: 800 11px/1.4 "Poppins", "Segoe UI", sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---------- aufklappbare Liste ---------- */

.ck28-klapp {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.ck28-klapp > summary {
    cursor: pointer;
    color: var(--sd-a, var(--purple));
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    list-style: none;
}

.ck28-klapp > summary::-webkit-details-marker {
    display: none;
}

.ck28-klapp > summary::before {
    content: "+ ";
    font-weight: 900;
}

.ck28-klapp[open] > summary::before {
    content: "– ";
}

.ck28-unter {
    margin: 12px 0 6px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .02em;
    color: var(--text);
}

.ck28-liste {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.65;
    color: var(--muted);
}

.ck28-liste li + li {
    margin-top: 5px;
}

.ck28-liste b {
    color: var(--text);
    font-weight: 700;
}

/* ---------- Schalter ---------- */

.ck28-schalter {
    position: relative;
    flex: none;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
}

.ck28-schalter input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.ck28-bahn {
    display: block;
    width: 52px;
    height: 28px;
    padding: 3px;
    box-sizing: border-box;
    border: 1px solid var(--rand, var(--line));
    border-radius: 999px;
    background: var(--bg);
    transition: background 150ms ease, border-color 150ms ease;
}

.ck28-knubbel {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: var(--muted);
    transition: transform 150ms ease, background 150ms ease;
}

.ck28-schalter input:checked + .ck28-bahn {
    border-color: var(--sd-a, var(--purple));
}

.ck28-schalter input:checked + .ck28-bahn .ck28-knubbel {
    transform: translateX(24px);
    background: var(--sd-a, var(--purple));
}

.ck28-schalter input:focus-visible + .ck28-bahn {
    outline: 2px solid var(--sd-a, var(--purple));
    outline-offset: 2px;
}

/* ---------- Fuss ---------- */

.ck28-fuss {
    margin: 16px 0 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--muted);
}

.ck28-fenster-fuss {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    padding: 16px 20px;
    border-top: 1px solid var(--line);
}

.ck28-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Knopf in der Fusszeile ---------- */

/* Ist ein ganz normaler Link in der Liste "Rechtliches" - er bekommt also
   gar keinen eigenen Stil, sonst steht er neben den anderen schief. */
.ck28-wieder {
    cursor: pointer;
}

/* ---------- Handy ---------- */

@media (max-width: 560px) {
    .ck28-leiste {
        width: calc(100vw - 24px);
        padding: 24px 18px 14px;
    }

    .ck28-symbol {
        width: 64px;
        height: 64px;
        margin-bottom: 12px;
    }

    .ck28-titel {
        font-size: 18px;
    }

    .ck28-text {
        font-size: 13.5px;
        margin-bottom: 16px;
    }

    .ck28-fenster {
        width: calc(100vw - 24px);
    }

    .ck28-gruppe-kopf {
        flex-direction: column;
        gap: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ck28-knubbel,
    .ck28-bahn {
        transition: none;
    }

    .ck28.ck28-an .ck28-leiste,
    .ck28.ck28-an .ck28-schleier {
        animation: none;
    }
}

/* ---------- Zeile am Ende, wo es keine Fusszeile gibt (Lernbereich) ---------- */

.ck28-lernfuss {
    margin: 28px 0 18px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}

.ck28-lernfuss .ck28-wieder {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ck28-lernfuss .ck28-wieder:hover {
    color: var(--sd-a, var(--purple));
}
