/*!
 * VN Cookie-Consent - eigenständige Entwicklung für VN-Designer (niederastroth.de)
 */

.vn-cc {
    position: fixed;
    z-index: 999900;
    inset: 0;
    display: flex;
    pointer-events: none;
    font-family: inherit;
    opacity: 0;
    transition: opacity .25s ease;
}
.vn-cc.vn-cc-open { opacity: 1; }

.vn-cc-pos-bottom { align-items: flex-end; justify-content: center; }
.vn-cc-pos-top { align-items: flex-start; justify-content: center; }
.vn-cc-pos-corner { align-items: flex-end; justify-content: flex-end; }

.vn-cc-box {
    pointer-events: auto;
    background: var(--vn-cc-bg, #ffffff);
    color: var(--vn-cc-text, #222222);
    max-width: var(--vn-cc-width, 480px);
    width: calc(100% - 32px);
    margin: 16px;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .22);
    padding: 20px 22px;
    box-sizing: border-box;
}
.vn-cc-pos-bottom .vn-cc-box,
.vn-cc-pos-top .vn-cc-box { max-width: min(680px, calc(100% - 32px)); }

.vn-cc-title { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.vn-cc-text { font-size: 13.5px; line-height: 1.55; opacity: .85; }
.vn-cc-privacy-link { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--vn-cc-accent, #2159c2); text-decoration: underline; }

.vn-cc-rows { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid rgba(0, 0, 0, .08); padding-top: 14px; }
.vn-cc-row-head { display: flex; align-items: center; gap: 10px; }
.vn-cc-row-title { font-size: 13.5px; }
.vn-cc-row-desc { margin: 2px 0 0; font-size: 12px; opacity: .7; line-height: 1.4; }

.vn-cc-switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.vn-cc-switch input { opacity: 0; width: 0; height: 0; }
.vn-cc-switch-slider { position: absolute; inset: 0; background: rgba(0, 0, 0, .2); border-radius: 22px; transition: background .2s ease; cursor: pointer; }
.vn-cc-switch-slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s ease; }
.vn-cc-switch input:checked + .vn-cc-switch-slider { background: var(--vn-cc-accent, #2159c2); }
.vn-cc-switch input:checked + .vn-cc-switch-slider::before { transform: translateX(16px); }
.vn-cc-switch input:disabled + .vn-cc-switch-slider { opacity: .55; cursor: default; }

.vn-cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vn-cc-btn { border: none; border-radius: 8px; padding: 10px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.vn-cc-btn-primary { background: var(--vn-cc-accent, #2159c2); color: #fff; }
.vn-cc-btn-primary:hover { filter: brightness(.94); }
.vn-cc-btn-ghost { background: rgba(0, 0, 0, .06); color: inherit; }
.vn-cc-btn-ghost:hover { background: rgba(0, 0, 0, .1); }

@media (max-width: 480px) {
    .vn-cc-box { padding: 16px; }
    .vn-cc-actions { flex-direction: column; }
    .vn-cc-btn { width: 100%; }
}

/* --------------------------------- Dauerhaftes Icon zum Wiedereröffnen */

.vn-cc-fab {
    position: fixed;
    bottom: 18px;
    z-index: 999800;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: var(--vn-cc-accent, #2159c2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}
.vn-cc-fab-left { left: 18px; }
.vn-cc-fab-right { right: 18px; }
.vn-cc-fab-center { left: 50%; transform: translateX(-50%); }
.vn-cc-fab:hover { filter: brightness(.92); }
.vn-cc-fab[hidden] { display: none; }

/* ------------------------------------------------- Gesperrte Einbettungen */

.vn-cc-gate {
    position: relative;
    overflow: hidden;
}
.vn-cc-gate iframe { display: block; width: 100%; height: 100%; border: 0; }
.vn-cc-gate-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 16px;
    background: rgba(20, 22, 26, .82);
    color: #fff;
    font-size: 13px;
}
.vn-cc-gate.vn-cc-activated .vn-cc-gate-overlay { display: none; }
.vn-cc-gate-text { max-width: 320px; line-height: 1.5; }
.vn-cc-gate-buttons { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.vn-cc-gate-accept,
.vn-cc-gate-settings {
    border: none;
    border-radius: 7px;
    padding: 8px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
}
.vn-cc-gate-accept { background: var(--vn-cc-accent, #2159c2); color: #fff; }
.vn-cc-gate-settings { background: rgba(255, 255, 255, .18); color: #fff; }
