/* Hauptcontainer erbt die Schriftart der Webseite */
.cookie-banner-container * {
    font-family: inherit !important;
}

.cookie-banner-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #222;
    color: #fff;
    padding: 20px;
    z-index: 9999;
    box-sizing: border-box;
}

/* Flex-Anordnung: Erzwingt das Nebeneinanderstehen auf großen Bildschirmen */
.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Textbereich nimmt den verfügbaren Platz links ein */
.cookie-text-section {
    flex: 2;
    min-width: 280px;
}

.cookie-title {
    margin: 0 0 5px 0;
    font-weight: bold;
    font-size: 16px;
}

.cookie-desc {
    margin: 0;
    font-size: 14px;
    color: #ccc;
}

/* Schalter-Bereich nebeneinander */
.cookie-switches-section {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    white-space: nowrap;
}

.cookie-switch-group {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

/* Button-Bereich nebeneinander */
.cookie-buttons-section {
    display: flex;
    flex-direction: row;
    gap: 10px;
    white-space: nowrap;
}

/* Standardisierte Buttons */
.cookie-btn {
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    border-radius: 4px;
    transition: background 0.2s ease;
}

/* --- CSS für die On/Off Schalter --- */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

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

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

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.cookie-switch input:checked + .cookie-slider { background-color: #28a745; }
.cookie-switch input:checked + .cookie-slider:before { transform: translateX(18px); }

.cookie-switch.disabled .cookie-slider {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.7;
}

/* Mobil-Optimierung: Erst unter 768px Breite untereinander brechen */
@media (max-width: 768px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: flex-start;
    }
    .cookie-buttons-section {
        width: 100%;
        flex-wrap: wrap;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
.cookie-revoke-badge {
    position: fixed;
    bottom: 20px;
    right: 25px; 
    z-index: 9998;
    width: 44px;
    height: 44px;
    background: rgb(75, 85, 99);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: background 0.3s ease, transform 0.2s ease;
}

.cookie-revoke-badge:hover {
	background-color: var(--orange-600);
	transform: translateY(-2px);
	box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.4);
}

.cookie-revoke-badge svg {
    width: 24px;
    height: 24px;
}

/* 1. Die Sprechblase (Textbox) - Rechtsbündig ausgerichtet */
.cookie-revoke-badge::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px); /* Über dem Button */
    right: 0;                  /* Schließt exakt bündig mit der rechten Kante ab */
    background-color: #333;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    white-space: nowrap;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* 2. Die Spitze der Sprechblase - Mittig unter der Textbox oder leicht nach rechts versetzt */
.cookie-revoke-badge::after {
    content: "";
    position: absolute;
    bottom: calc(100% + 4px); /* Direkt unter der Textbox */
    right: 17px;              /* Platziert die Spitze mittig über dem Zahnrad-Icon */
    border-width: 6px 6px 0 6px; 
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.1s ease;
}

/* Sofortiges Einblenden bei Hover */
.cookie-revoke-badge:hover::before,
.cookie-revoke-badge:hover::after {
    opacity: 1;
}

/* Mobil-Optimierung: Tooltip auf Smartphones ausblenden */
@media (max-width: 768px) {
    .cookie-revoke-badge::before,
    .cookie-revoke-badge::after {
        display: none !important;
    }
}