/* Haupt-Container für den Overlay und das Banner */
#mdcp-cookie-banner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--mdcp-overlay-color, rgba(0, 0, 0, 0.6));
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Das eigentliche Banner-Fenster */
.mdcp-cookie-banner {
    background-color: var(--mdcp-popup-bg, #ffffff);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    max-width: 650px;
    text-align: left;
    color: var(--mdcp-text-color, #333333);
    line-height: 1.6;
}

.mdcp-cookie-banner h2 {
    font-size: 22px;
    margin-top: 0;
    color: var(--mdcp-headline-color, #222222);
}

.mdcp-cookie-banner p {
    font-size: 14px;
    margin-bottom: 15px;
}

.mdcp-cookie-banner a {
    color: #0073aa;
    text-decoration: underline;
}

.mdcp-button-container {
    margin-top: 25px;
}

.mdcp-button {
    display: block;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.mdcp-button-accept {
    background-color: var(--mdcp-btn-accept-bg, #8bc34a);
    color: var(--mdcp-btn-accept-text, #ffffff);
}

.mdcp-button-decline {
    background-color: #f1f1f1;
    color: #444;
}

.mdcp-settings-link {
    display: block;
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

/* --------------------------------------------------- */
/* Styles für die individuelle Einstellungs-Ansicht */
/* --------------------------------------------------- */

.mdcp-settings-view {
    display: none;
}

.mdcp-settings-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.mdcp-settings-list li {
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 4px;
    margin-bottom: 8px;
}

.mdcp-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mdcp-category-header label {
    font-weight: bold;
    font-size: 16px;
    color: var(--mdcp-text-color, #333333);
}

.mdcp-category-description {
    font-size: 13px;
    margin-top: 5px;
    color: #555;
    padding-left: 30px;
}

.mdcp-category-toggle input {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

/* Revoke Button (Cookie Icon) */
#mdcp-revoke-consent {
    position: fixed;
    bottom: 20px;
    left: 20px; /* KORRIGIERT: Position wieder links */
    width: 50px;
    height: 50px;
    background-color: var(--mdcp-popup-bg, #ffffff);
    border-radius: 50%;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100001;
    padding: 0;

    /* KORRIGIERTER PFAD ZUM HINTERGRUNDBILD */
    background-image: url('../images/cookie-icon.png');
    background-size: 60%; /* Größe leicht angepasst für besseres Aussehen */
    background-repeat: no-repeat;
    background-position: center center;
}

#mdcp-revoke-consent.is-visible {
    display: flex; /* Mit Flex-Box für perfekte Zentrierung */
}

/* --------------------------------------------------- */
/* Styles für iFrame-Platzhalter (Google Maps etc.) */
/* --------------------------------------------------- */

.mdcp-iframe-placeholder {
    background-color: #e9e9e9;
    border: 1px solid #ccc;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.mdcp-iframe-placeholder-text {
    margin-bottom: 15px;
    font-size: 14px;
    color: #333;
}

.mdcp-iframe-load-button {
    padding: 10px 20px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* Stellt sicher, dass das Banner auch wirklich sichtbar wird, wenn die Klasse gesetzt ist */
#mdcp-cookie-banner-container.mdcp-is-open {
    display: flex;
}