/* W-055 (24.11): Cookie-Einwilligung (k4yconsent.js). Karte unten; Einstellungen als Fenster. Farben aus dem Theme (--c-primary). */
.k4y-consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10050; padding: 12px; pointer-events: none; font-size: 14.5px; line-height: 1.45; }
.k4y-consent-card { pointer-events: auto; max-width: 760px; margin: 0 auto; background: #fff; color: var(--c-text, #1a1d21); border-radius: 16px; box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 18px 20px; }
.k4y-consent-title { font-weight: 800; font-size: 17px; margin-bottom: 6px; }
.k4y-consent-text { color: var(--c-muted, #5b6470); margin-bottom: 14px; }
.k4y-consent-text a { color: var(--c-primary, #428bca); text-decoration: underline; }
.k4y-consent-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.k4y-consent-b { flex: 1 1 150px; min-height: 44px; border: 2px solid var(--c-primary, #428bca); background: var(--c-primary, #428bca); color: #fff; border-radius: 12px; padding: 10px 14px; font-weight: 700; font-size: 14.5px; cursor: pointer; }
.k4y-consent-b.k4y-consent-ghost { flex: 0 1 auto; background: transparent; border-color: transparent; color: var(--c-text, #1a1d21); text-decoration: underline; font-weight: 600; }
.k4y-consent-set { top: 0; display: flex; align-items: center; justify-content: center; pointer-events: auto; }
.k4y-consent-back { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.k4y-consent-set .k4y-consent-card { position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 24px); overflow: auto; }
.k4y-consent-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 12px 0; border-top: 1px solid var(--c-line, #e8eaed); }
.k4y-consent-row span { display: block; color: var(--c-muted, #5b6470); font-size: 13.5px; margin-top: 2px; }
.k4y-consent-sw { position: relative; flex: 0 0 46px; height: 26px; margin: 2px 0 0; cursor: pointer; }
.k4y-consent-sw input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.k4y-consent-sw i { position: absolute; inset: 0; background: #c9ced6; border-radius: 26px; transition: background .15s; }
.k4y-consent-sw i:after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .15s; }
.k4y-consent-sw input:checked + i { background: var(--c-primary, #428bca); }
.k4y-consent-sw input:checked + i:after { transform: translateX(20px); }
.k4y-consent-sw input:disabled + i { opacity: .55; }
.k4y-consent-sw input:focus-visible + i { outline: 2px solid var(--c-text, #1a1d21); outline-offset: 2px; }
html.k4y-consent-open, html.k4y-consent-open body { overflow: hidden; }
/* Einstellungen: "Nur notwendige" und "Alle annehmen" nebeneinander und gleich breit, darunter "Auswahl speichern" als Rahmen-Knopf ueber die ganze Breite */
.k4y-consent-set .k4y-consent-btns { display: grid; grid-template-columns: 1fr 1fr; }
.k4y-consent-set .k4y-consent-b.k4y-consent-ghost { grid-column: 1 / -1; order: 3; background: #fff; border-color: var(--c-primary, #428bca); color: var(--c-primary, #428bca); text-decoration: none; font-weight: 700; }
@media (max-width: 575px) { .k4y-consent { padding: 8px; } .k4y-consent-card { padding: 16px; } .k4y-consent-b { flex: 1 1 100%; } .k4y-consent-b.k4y-consent-ghost { order: 3; } .k4y-consent-set .k4y-consent-btns { grid-template-columns: 1fr; } }
