/* =========================================================
   NETTRADING.DE – COOKIE CONSENT
   ========================================================= */

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 999999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;

    padding: 20px;

    background: rgba(0, 0, 0, 0.65);

    box-sizing: border-box;

    font-family: Arial, Helvetica, sans-serif;
}

/* Ausgeblendetes Cookie-Fenster darf NICHT klicken blockieren */
.cookie-consent[hidden] {
    display: none !important;
}

/* Cookie-Fenster */
.cookie-modal {
    position: relative;
    z-index: 1000000;

    width: 100%;
    max-width: 680px;
    max-height: 90vh;

    overflow-y: auto;

    padding: 30px;

    box-sizing: border-box;

    background: #ffffff;
    color: #222222;

    border-radius: 12px;

    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.30);
}

/* Überschrift */
.cookie-modal h2 {
    margin: 0 0 15px 0;

    font-size: 26px;
    line-height: 1.3;

    color: #222222;
}

/* Text */
.cookie-modal p {
    margin: 0 0 15px 0;

    font-size: 16px;
    line-height: 1.6;

    color: #333333;
}

/* Links */
.cookie-modal a {
    color: #0066cc;
    text-decoration: underline;

    cursor: pointer;
}

.cookie-modal a:hover {
    color: #ff6600;
}

/* Kategorien */
.cookie-category {
    display: flex;

    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    padding: 20px 0;

    border-top: 1px solid #dddddd;
}

.cookie-category h3 {
    margin: 0 0 8px 0;

    font-size: 18px;
    line-height: 1.4;

    color: #222222;
}

.cookie-category p {
    margin: 0;

    font-size: 15px;
    line-height: 1.5;
}

.cookie-category label {
    flex: 0 0 auto;

    font-size: 14px;
    line-height: 1.4;

    color: #333333;
}

/* Button-Bereich */
.cookie-buttons {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;

    margin-top: 25px;
}

/* Buttons */
.cookie-buttons button {
    flex: 1 1 180px;

    min-height: 48px;

    padding: 12px 18px;

    border: 1px solid #333333;
    border-radius: 6px;

    background: #ffffff;
    color: #222222;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}

.cookie-buttons button:hover {
    background: #eeeeee;
}

.cookie-buttons button:focus-visible {
    outline: 3px solid #0066cc;
    outline-offset: 3px;
}

/* Akzeptieren */
#cookie-accept,
#cookie-settings-save {
    background: #ff6600;
    border-color: #ff6600;
    color: #ffffff;
}

#cookie-accept:hover,
#cookie-settings-save:hover {
    background: #e65c00;
    border-color: #e65c00;
}

/* Ablehnen */
#cookie-reject,
#cookie-settings-reject {
    background: #f5f5f5;
    border-color: #555555;
    color: #222222;
}

/* Zurück */
#cookie-settings-back {
    background: #ffffff;
    border-color: #777777;
    color: #222222;
}

/* Checkboxen */
.cookie-category input[type="checkbox"] {
    width: 18px;
    height: 18px;

    margin-right: 6px;

    vertical-align: middle;

    cursor: pointer;
}

/* Kleiner Button zum späteren Ändern der Einstellungen */
#cookie-change-settings {
    position: fixed;

    right: 15px;
    bottom: 15px;

    z-index: 99990;

    padding: 8px 12px;

    border: 1px solid #777777;
    border-radius: 5px;

    background: #ffffff;
    color: #222222;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;

    cursor: pointer;

    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

#cookie-change-settings:hover {
    background: #eeeeee;
}

/* Mobile */
@media (max-width: 600px) {

    .cookie-consent {
        padding: 12px;
    }

    .cookie-modal {
        max-height: 94vh;

        padding: 20px;

        border-radius: 10px;
    }

    .cookie-modal h2 {
        font-size: 22px;
    }

    .cookie-modal p {
        font-size: 15px;
    }

    .cookie-category {
        flex-direction: column;

        gap: 12px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button {
        width: 100%;

        flex: 1 1 auto;
    }

    #cookie-change-settings {
        right: 10px;
        bottom: 10px;

        font-size: 12px;
    }
}