:root {
    --primary: #FCBD30;
    --primary-hover: #f1b121;
    --light: #F7E6C6;
    --panel-bg: rgba(0,0,0,0.8);
    --text-normal: #7B725D;
    --bg-normal: #7B725D;
    --bg-normal-hover: #655c46;
    --bg-danger: #bd0101;
    --bg-danger-hover: #ea0000;
    --link-normal: #7B725D;
    --link-normal-hover: #545048;
    --link-dark: #c3d6f3;
    --link-dark-hover: #aae8d5;
}

.dsgvo-banner { position: fixed; left:0; right:0; bottom:0; background:var(--panel-bg); color:#fff; padding:1rem; display:flex; gap:1rem; z-index:99999; align-items:center; flex-wrap:wrap; }
.dsgvo-content { flex:1; min-width:220px }
.dsgvo-actions { display:flex; gap:.5rem; align-items:center }
.dsgvo-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: .5rem .9rem;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    height: 50px;
    align-self: end;
}
.dsgvo-ghost { background:transparent; border:1px solid rgba(255,255,255,.2) }

.dsgvo-settings {
    position: fixed;
    right: .64rem;
    bottom: 3.6rem;
    width: 500px;
    max-width: calc(100% - 2rem);
    background: #fff;
    color: #111;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,.35);
    padding: 1rem;
    display: none;
    z-index: 100000;
    min-height: 500px;
}
.dsgvo-tabs {
    display: flex;
    gap: 4px;
    height: 50px;
}

.dsgvo-tab-btn {
    padding: 12px;
    cursor: pointer;
    height: 50px;
    width: auto;
    font-weight: bold;
}

.dsgvo-buttons {
    display:flex;gap:.5rem;margin-top:15px;
}

.dsgvo-tabs-contents {

}

.dsgvo-tab-btn.active {
    background-color: var(--primary);
    color: #ffffff;
}

.dsgvo-settings.open { display:block }
.dsgvo-toggle { display:flex; justify-content:space-between; align-items:center; padding:.5rem 0; border-bottom:1px solid #eee }
.dsgvo-small { font-size:.9rem; color:var(--text-normal) }
.dsgvo-banner .dsgvo-small {color:var(--light) }


.dsgvo-privacy-btn {
    width: 40px;
    height: 40px;
    border-radius: 16%;
    background-color: var(--link-normal);
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.64);
    transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
    position: fixed;
    right: .64rem;
    bottom: .64rem;
    z-index: 9999;
    opacity: 0.5;
    background-image: url("icons/dsgvo-pro-ys-2.svg");
    background-size: 32px;
    background-repeat: no-repeat;
    background-position: center center;
}




.dsgvo-tab-content{display:none;}
.dsgvo-tab-content.active{display:block;}





/* Hover-Effekt */
.dsgvo-privacy-btn:hover {
/*    transform: scale(1.12);*/
    /*background-color: #000000;*/
    opacity: 1;
}




/* =========================================================================
   DSGVO ACCORDION STYLES
   ========================================================================= */
.dsgvo-accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    /* border-radius: 4px; */
    overflow: hidden;
    margin-top: 10px;
}

.dsgvo-accordion-header {
    width: 100%;
    text-align: left;
    padding: 12px 15px;
    background: #f8f9fa;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.dsgvo-accordion-header:hover {
    background: #f1f3f5;
}

.dsgvo-accordion-content {
    display: none;
    padding: 8px;
    background: #fff;
    border-top: 1px solid #ddd;
    max-height: 250px;
    overflow-y: auto;
}

/* Flüssiger Umschalt-Effekt (In JS getriggert) */
.dsgvo-accordion-content.open {
    display: block;
    animation: dsgvoSlideDown 0.2s ease-out;
}

.dsgvo-cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    line-height: 1.4;
}

.dsgvo-cookie-table th {
    background: #f1f3f5;
    padding: 8px;
    text-align: left;
    font-weight: 600;
}

.dsgvo-cookie-table td {
    padding: 4px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

@keyframes dsgvoSlideDown {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}








/* =========================================================================
   DSGVO BACKEND / ADMIN STYLES
   ========================================================================= */
.dsgvo-admin-wrap {
    margin: 20px 20px 0 0;
    max-width: 800px; /* Begrenzt die Breite für bessere Lesbarkeit */
}

.dsgvo-admin-wrap h1 {
    margin-bottom: 25px;
}

.dsgvo-admin-form p {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column; /* Zwingt Eingabefelder unter die Labels */
    align-items: flex-start;
}

.dsgvo-admin-form label.dsgvo-field-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #23282d;
    font-size: 14px;
}

/* Einheitliche Breite und Styling für alle Felder */
.dsgvo-admin-form input[type="text"],
.dsgvo-admin-form textarea {
    width: 100%;
    max-width: 600px; /* Verhindert, dass die Boxen zu breit werden */
    box-sizing: border-box;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.dsgvo-admin-form input[type="text"]:focus,
.dsgvo-admin-form textarea:focus {
    border-color: var(--link-normal, #2271b1);
    box-shadow: 0 0 0 1px var(--link-normal, #2271b1);
    outline: 2px solid transparent;
}

/* Die Container-Box für die Checkboxen */
.dsgvo-category-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 20px;
    max-width: 600px;
    box-sizing: border-box;
    margin: 25px 0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.dsgvo-category-section h3 {
    margin-top: 0;
    margin-bottom: 12px;
    border-bottom: 1px solid #f0f0f1;
    padding-bottom: 10px;
    font-size: 16px;
}

.dsgvo-category-section p.description {
    margin-bottom: 15px;
    color: var(--bg-normal);
    font-style: normal;
}

.dsgvo-category-section label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    cursor: pointer;
}

.dsgvo-category-section label input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: text-bottom;
}

/* Button-Leiste unten */
.dsgvo-actions-wrapper {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    align-items: center;
}

.dsgvo-actions-wrapper .button {
    height: auto;
    padding: 6px 14px;
    line-height: 2;
    font-size: 13px;
}




/* Streckt die Registry-Tabelle auf 100% Fensterbreite */
.dsgvo-admin-wrap {
    margin: 20px 20px 0 0;
    max-width: 100% !important; /* Entfernt die 800px Begrenzung für Tabellen */
}

.dsgvo-admin-table {
    width: 100% !important;
    table-layout: fixed; /* Zwingt Spalten, sich an die Prozentangaben zu halten */
}


/* Textareas innerhalb der breiten Tabelle optimieren */
.dsgvo-admin-table textarea {
    width: 100% !important;
    box-sizing: border-box;
    min-height: 60px;
    resize: vertical;
}


.dsgvo-col-active { width: 50px; text-align: center; }
.dsgvo-col-name { width: 15%; vertical-align: top; word-break: break-all; }
.dsgvo-col-type { width: 130px; vertical-align: top; } /* Feste Breite für Radio-Buttons */
.dsgvo-col-provider { width: 20%; vertical-align: top; } /* Platz für die Anbieter-Textarea */
.dsgvo-col-descr { width: auto; vertical-align: top; } /* Nimmt den restlichen Platz ein */




















/* =========================================================================
   DSGVO CUSTOM SWEETALERT BUTTONS
   ========================================================================= */
.dsgvo-swal-btn-container {
    display: flex !important;
    gap: 12px !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 15px !important;
}

/* Der graue Button (Abbrechen / Weiteren Punkt scannen) */
.dsgvo-btn-swal-gray {
    background-color: var(--bg-normal) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
}
.dsgvo-btn-swal-gray:hover {
    background-color: #5c5c5c !important;
}

/* Der gelb-orange Button (Ausführen / Zurück zum WP-Admin) */
.dsgvo-btn-swal-orange {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 12px 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
    text-decoration: none !important;
    display: inline-block !important;
    text-align: center !important;
}
.dsgvo-btn-swal-orange:hover {
    background-color: var(--primary-hover) !important;
}

/* Der rote Lösch-Button im Admin-Formular */
.button.dsgvo-btn-admin-danger {
    background-color: var(--bg-danger) !important;
    border-color: var(--bg-danger-hover) !important;
    color: #fff !important;
    box-shadow: 0 1px 0 rgba(255,255,255,.2) !important;
}
.button.dsgvo-btn-admin-danger:hover {
    background-color: var(--bg-danger) !important;
    border-color: var(--bg-danger-hover) !important;
    color: #fff !important;
}











/* =========================================================================
   DSGVO SETTINGS TAB BUTTONS
   ========================================================================= */

.dsgvo-btn.panel {
    color: #ffffff !important;
    border: none !important;
    padding: 0 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    height: 44px !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease !important;
}

.dsgvo-buttons {
    display: flex !important;
    gap: 12px !important;
    margin-top: 20px !important;
    justify-content: flex-start !important;
}

/* Speichern Button (Orange) */
#dsgvo-save.dsgvo-btn {
    background-color: var(--primary) !important;
}
#dsgvo-save.dsgvo-btn:hover {
    background-color: var(--primary-hover) !important;
}

/* Abbrechen Button (Grau) */
#dsgvo-cancel.dsgvo-btn {
    background-color: var(--bg-normal) !important;
}
#dsgvo-cancel.dsgvo-btn:hover {
    background-color: var(--bg-normal) !important;
}

/* Widerrufen Button (Massig Rot) */
#dsgvo-revoke.dsgvo-btn {
    background-color: var(--bg-danger) !important;
}
#dsgvo-revoke.dsgvo-btn:hover {
    background-color: var(--bg-danger-hover) !important;
}


























@media (max-width:564px) {
    .dsgvo-settings {
        left: 0.2rem;
        right: 0.2rem;
        width: auto;
        bottom: 1rem;
        padding: 0.4rem;
        max-width: calc(100% - 0.4rem);
    }

    .dsgvo-small { font-size:.6rem;}

    .dsgvo-cookie-table {font-size: .7rem; line-height: 1.2;}

    .dsgvo-cookie-table th {
        padding: 4px;
        border-bottom: none;
    }

    .dsgvo-accordion-content {
        padding: 4px 0px;
    }


    .dsgvo-privacy-btn {
        width: 36px;
        height: 36px;
        border-radius: 12%;
        right: .64rem;
        bottom: .64rem;
        background-size: 31px 31px;
    }

    .dsgvo-tab-btn {
        padding: 8px;
        height: 40px;
        font-size: 0.8rem;
    }



    .dsgvo-btn.dsgvo-btn {
        color: #ffffff !important;
        padding: 0 8px !important;
        border-radius: 4px !important;
        height: 40px !important;
        font-size: 0.8rem;
    }


    .dsgvo-accordion-header {
        padding: 8px 12px;
        font-size: 0.72rem;
    }

    .dsgvo-settings {font-size: .9rem;}

}


