/* ===========================================
   SECURITAX – Cookie Note (clean)
   =========================================== */

/* Hauptcontainer – zentrierter Balken unten */
div#cookie-note {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    z-index: 1337;

    background: rgba(7, 13, 24, 0.96);
    color: #fff;

    width: calc(100% - 32px);
    max-width: 960px;
    height: auto;

    padding: 18px 22px;
    padding-top: 20px;
    padding-bottom: 26px;

    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.55);

    display: block;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
}

/* Inhalt */
#cookie-note #cookie-note-content {
    margin-bottom: 10px;  /* Abstand zwischen Text/Details und den Buttons */
}

/* Überschrift + Icon in einer Zeile links */
#cookie-note-title {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}

#cookie-note img {
    height: 22px;
    width: 22px;
    flex-shrink: 0;
    display: inline-block;
    /* Icon in SECURITAX-Rot */
    filter: invert(21%) sepia(96%) saturate(3162%) hue-rotate(344deg) brightness(93%) contrast(101%);
}

#cookie-note h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

/* Fliesstext im Balken */
#cookie-note-content p {
    font-size: 12px;
}

/* Text-Links */
#cookie-note a {
    color: #7cc7ff;
    text-decoration: underline;
}

/* Button-Gruppe */
#cookie-note button {
    display: inline-block;
    margin-top: 6px;
    margin-right: 8px;
    padding: 7px 16px;

    font-size: 13px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* Primärer Button – meist "Alle akzeptieren" */
#cookie-note button:last-child {
    background: #d51b29;                 /* SECURITAX Rot */
    border-color: #d51b29;
    color: #ffffff;
}

#cookie-note button:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
}

#cookie-note button:last-child:hover {
    background: #b31622;
    border-color: #b31622;
}

/* Minimierte Version */
#cookie-note.hidden,
div#cookie-note.hidden {
    display: block !important;
    visibility: visible !important;

    left: 16px;
    bottom: 16px;
    transform: none;

    width: auto;
    max-width: none;
    max-height: none;

    padding: 8px 14px;
    border-radius: 999px;
    opacity: 0.75;
    overflow: hidden;
    cursor: pointer;

    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

#cookie-note.hidden #cookie-note-content {
    display: none;
}

#cookie-note.hidden h3 {
    display: inline;
    font-size: 14px;
}

@media (hover: hover) {
    #cookie-note.hidden:hover,
    div#cookie-note.hidden:hover {
        opacity: 1;
    }
}

/* Mobile-Optimierung */
@media (max-width: 767px) {
    #cookie-note,
    div#cookie-note {
        bottom: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        padding: 16px 16px 18px;
        border-radius: 14px;
        font-size: 13px;
    }

    #cookie-note-title {
        align-items: flex-start;
    }

    #cookie-note button {
        width: 100%;
        margin-right: 0;
        margin-top: 6px;
        text-align: center;
    }

    #cookie-note button + button {
        margin-left: 0;
    }
}
