/* Website blockieren, wenn Banner aktiv ist */
.cookie-monster-block-site {
    overflow: hidden;
}

/* Neues Overlay für Blockierung */
#cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(235, 238, 251, .3);
    backdrop-filter: blur(4.5px);
    -webkit-backdrop-filter: blur(4.5px);
    z-index: 9998; /* Über allem, außer dem Banner */
}

/* BANNER SICHTBAR ÜBER ALLEM! */
#cookie-monster-banner {
    z-index: 9999;
    position: fixed;
    display: block;
    max-height: 450px;
    overflow: hidden;
    overflow-y: scroll;
}


/* Fullscreen Banner geht über alles */
.cookie-position-fullwidth-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    z-index: 9999;
    text-align: left;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.cookie-position-overlay {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 600px;
    width: 90%;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 9999;
    text-align: center;
    display: none;
    background: white;
}

/* Positionen */
.cookie-position-box {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 450px;
    z-index: 9999;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    display: none;
}


/* ========== GLOBAL DARK/LIGHT MODE SETTINGS ========== */

/* White Mode */
.cookie-light {
    background: rgba(255, 255, 255, 1);
    color: black;
}

/* Dark Mode */
.cookie-dark {
    background: rgba(0, 0, 0, 0.9);
    color: white;
}

/* ========== BUTTON STYLES ========== */

.cookie-buttons {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

/* Standard Button Styling */
.cookie-buttons button {
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    border: 2px solid transparent; /* Standard: Kein Border sichtbar */
}

/* ALLE AKZEPTIEREN BUTTON */
.cookie-buttons button#cookie-accept,
 .cookie-buttons button#cookie-accept-consent {
    background: var(--contrast-color, #000000);
    color: var(--mode-text-inverted, white); /* Im Dark Mode schwarz, im Light Mode weiß */
}

/* Textfarbe für Modus setzen */
.cookie-dark {
    --mode-text-inverted: black; /* Dark Mode -> Text schwarz */
}

.cookie-light {
    --mode-text-inverted: white; /* White Mode -> Text weiß */
}

/* ABLEHNEN & ANPASSEN BUTTONS */
.cookie-buttons button#cookie-reject,
.cookie-buttons button#cookie-customize,
.cookie-buttons button#cookie-reject-consent,
.cookie-buttons button#cookie-save-consent {
    background: transparent;
    border: 2px solid var(--contrast-color, #000000);
    color: var(--contrast-color, #000000);
}

/* HOVER EFFECT für ALLE Buttons */
.cookie-buttons button#cookie-reject:hover,
.cookie-buttons button#cookie-customize:hover,
.cookie-buttons button#cookie-reject-consent:hover,
.cookie-buttons button#cookie-save-consent:hover {
    background: rgba(var(--contrast-rgb), 0.25); 
}

.cookie-buttons button#cookie-accept:hover,
.cookie-buttons button#cookie-accept-consent:hover {
    background: rgba(var(--contrast-rgb), 0.75); 
}


/* ========== TEXT & LINKS STYLES ========== */

/* Überschrift in Kontrastfarbe */
#cookie-monster-banner h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--contrast-color, #000000);
}

#cookie-monster-banner p {
    font-size: 14px;
}
/* Datenschutz-Link */
#cookie-monster-banner a {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
}

/* Datenschutz-Link Hover */
#cookie-monster-banner a:hover {
    text-decoration: underline;
}

/* WHITE MODE FIX: Links & Text */
.cookie-light #cookie-monster-banner,
.cookie-light #cookie-monster-banner a {
    color: black;
}

/* DARK MODE FIX: Links & Text */
.cookie-dark #cookie-monster-banner,
.cookie-dark #cookie-monster-banner a {
    color: white;
}

/* Zertifizierungsansicht */
#cookie-main-view, #cookie-certification-view {
    transition: opacity 0.3s ease-in-out;
}

/* Zertifizierungs-Link */
#cookie-monster-banner .cookie-certification a {
    color: var(--contrast-color, #000000);
    font-size: 12px;
    font-weight: 300; /* Dünnere Schrift */
    text-decoration: none;
    display: block;
    margin-top: 10px;
    text-align: center;
    opacity: 0.7; /* Weniger auffällig */
}

/* Hover-Effekt für bessere Sichtbarkeit */
#cookie-monster-banner .cookie-certification a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Zurück-Button */
#back-to-main {
    margin-top: 20px;
    padding: 10px;
    background: var(--contrast-color, #000000);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* Zertifizierungs-Ansicht */
#cookie-certification-view {
    display: none;
    max-width: 600px;
    width: 100%;
    padding: 15px;
    margin: 0 auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    text-align: left;
    background: white;
    max-height: 80vh; /* Maximale Höhe für Scroll */
    overflow: hidden;
    position: relative;
}

/* Scrollbarer Inhalt */
.certification-content {
    max-height: 65vh; /* 65% der Bildschirmhöhe */
    overflow-y: auto;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* Custom Scrollbar */
.certification-content::-webkit-scrollbar {
    width: 5px;
}

.certification-content::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
}

.certification-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

/* HEADINGS */
#cookie-certification-view h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

#cookie-certification-view h4 {
    font-size: 16px;
    font-weight: bold;
    margin-top: 15px;
}

/* TEXT */
#cookie-certification-view p {
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    margin: 5px 0;
}

/* ZURÜCK-BUTTON SEKTOR */
.certification-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
    padding: 10px;
    background: white;
}

/* BLUR-ÜBERGANG OBEN */
.certification-blur {
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 15px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 10%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

/* BUTTON */
.certification-footer button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease-in-out;
    background: var(--contrast-color, #000000);
    color: white;
    width: 100%;
    max-width: 300px;
}


/* Sonderstyles Type: FUll width bottom */

/* Nur für den Full-Width Banner: Titel linksbündig */
.cookie-position-fullwidth-bottom h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: var(--contrast-color, #000000);
    text-align: left;
}

/* Nur für den Full-Width Banner: Beschreibung linksbündig */
.cookie-position-fullwidth-bottom p {
    margin: 0 0 10px 0;
    text-align: left;
}

/* Datenschutz-Link direkt unter dem Text */
.cookie-position-fullwidth-bottom .cookie-privacy {
    margin-top: 5px;
    font-size: 14px;
    font-weight: bold;
    text-align: left;
}

/* BUTTONS in einer Linie */
.cookie-position-fullwidth-bottom .cookie-buttons {
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Zertifizierungs-Text nur beim Full-Width Banner unten links */
.cookie-position-fullwidth-bottom .cookie-certification {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 300;
    text-align: left;
}

/* Overlay Type Styles*/
/* Linksbündige Inhalte nur für Overlay */
.cookie-position-overlay {
    text-align: left; /* Linksbündig für Inhalt */
}

/* Aber: Zertifizierungs-Text bleibt mittig */
.cookie-position-overlay .cookie-certification {
    text-align: center;
}

#cookie-consent-view {
    display: none;
}

/* Allgemeiner Modul-Container */
#cookie-module-container {
    max-width: 600px;
    font-family: Arial, sans-serif;
}

/* Hauptmodule */
.cookie-module {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--contrast-color);
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    margin-bottom: 15px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease, transform 0.3s ease;

}

.cookie-module-header {
    display: flex;
    justify-content: space-between;
}

.cookie-module-content {
    display: flex;
    flex-direction: column;
}

.cookie-module h4 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

.cookie-module p {
    font-size: 12px;
    margin: 5px 0;
}

/* Submodule */
.cookie-module ul {
    list-style: none;
    padding-left: 5px;
    margin-top: 10px;
}

.cookie-module ul li {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 5px 0;
    border-top: .5px solid #444;
}

.cookie-submodule-content {
    display: flex;
    flex-direction: column;
}

/* Optional: Hover-Effekt für Module */
.cookie-module:hover {
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Toggle Switch Styles */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    min-width: 50px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wenn der Schalter aktiv ist */
input:checked + .slider {
    background-color: rgba(var(--contrast-rgb), 0.75);
}

input:checked.required-switch + .slider {
    background-color: rgba(var(--contrast-rgb), 0.25); 
    cursor: not-allowed;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

input:checked + .slider::before {
    content: "✓";
    color: var(--contrast-color); /* oder  */
    font-size: 16px;
  }

  input + .slider::before {
    content: "x";
    color: black; /* oder  */
    font-size: 16px;
    font-weight: 500;
  }


