/* Oeschger´s EDV Systeme – Portal-Basiskomponenten */

.oe-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9997;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #C41212;
    color: #fff;
    box-shadow: 0 16px 35px rgba(0,0,0,.28);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease, background .2s ease;
}

.oe-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.oe-to-top:hover {
    background: #9f0f0f;
}

.oe-cookie-panel {
    position: fixed;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 9998;
    max-width: 980px;
    margin: 0 auto;
    background: rgba(255,255,255,.98);
    color: #171717;
    border: 1px solid rgba(196,18,18,.22);
    border-left: 7px solid #C41212;
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
    padding: 18px;
    display: none;
    font-family: Calibri, Arial, sans-serif;
}

.oe-cookie-panel.is-visible {
    display: block;
}

.oe-cookie-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
    align-items: center;
}

.oe-cookie-kicker {
    color: #C41212;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: .02em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.oe-cookie-title {
    margin: 0 0 5px;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 900;
    color: #171717;
}

.oe-cookie-text {
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 1.55;
}

.oe-cookie-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.oe-cookie-btn {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: #C41212;
    color: #fff;
    padding: 11px 16px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(196,18,18,.24);
}

.oe-cookie-btn:hover {
    background: #9f0f0f;
}

.oe-cookie-link {
    color: #171717;
    text-decoration: none;
    font-weight: 850;
    border-bottom: 2px solid rgba(196,18,18,.35);
    padding-bottom: 2px;
}

.oe-cookie-link:hover {
    color: #C41212;
    border-bottom-color: #C41212;
}

.oe-privacy-modal {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: none;
    font-family: Calibri, Arial, sans-serif;
}

.oe-privacy-modal.is-open {
    display: block;
}

.oe-privacy-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.66);
}

.oe-privacy-dialog {
    position: relative;
    z-index: 1;
    width: min(980px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 28px));
    margin: 14px auto;
    background: #fff;
    color: #171717;
    border-radius: 24px;
    box-shadow: 0 28px 90px rgba(0,0,0,.38);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.oe-privacy-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    background: linear-gradient(135deg, #fff 0%, #fff3f3 100%);
}

.oe-privacy-title {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    color: #171717;
}

.oe-privacy-subtitle {
    margin: 3px 0 0;
    font-size: 13px;
    color: #666;
}

.oe-privacy-close {
    border: 0;
    border-radius: 999px;
    background: #C41212;
    color: #fff;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    cursor: pointer;
}

.oe-privacy-body {
    overflow: auto;
    padding: 22px;
    line-height: 1.6;
}

.oe-privacy-body h3 {
    margin: 0 0 10px;
    font-size: 20px;
    color: #171717;
}

.oe-privacy-body p {
    margin: 0 0 12px;
    color: #333;
}

.oe-privacy-body ul {
    margin: 8px 0 14px 20px;
    padding: 0;
}

.oe-privacy-body li {
    margin: 4px 0;
}

.oe-privacy-note {
    background: #fff5f5;
    border: 1px solid rgba(196,18,18,.18);
    border-left: 5px solid #C41212;
    border-radius: 16px;
    padding: 14px 16px;
    margin-top: 14px;
}

.oe-privacy-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    border-top: 1px solid rgba(0,0,0,.08);
    background: #fff;
    font-size: 13px;
    color: #555;
}

.oe-privacy-foot a {
    color: #C41212;
    font-weight: 900;
    text-decoration: none;
}

body.oe-privacy-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .oe-cookie-panel {
        left: 12px;
        right: 12px;
        bottom: 12px;
        border-radius: 18px;
        padding: 16px;
    }

    .oe-cookie-inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .oe-cookie-actions,
    .oe-cookie-btn,
    .oe-cookie-link {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .oe-to-top {
        right: 14px;
        bottom: 14px;
        width: 46px;
        height: 46px;
    }

    body.oe-cookie-open .oe-to-top {
        bottom: 190px;
    }

    .oe-privacy-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100vh - 16px);
        margin: 8px auto;
        border-radius: 18px;
    }

    .oe-privacy-head {
        padding: 13px;
    }

    .oe-privacy-title {
        font-size: 17px;
    }

    .oe-privacy-foot {
        flex-direction: column;
        align-items: flex-start;
    }
}
