/* global-optimized.css */
/* erstellt am 25.08.2025 für wombach,de alle Seiten */
@charset "UTF-8";
/* Cookie Banner Styling */
    .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 49%;
    transform: translateX(-50%);
    background: #2c3e50;
    color: white;
    padding: 20px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 9999;
    display: none;
    width: calc(100% - 80px); /* Passt sich an die Seitenbreite an */
    max-width: 969px; /* Reduziert von 1200px */
    box-sizing: border-box;
    margin: 0 20px; /* Seitlicher Abstand */
}

.cookie-banner.show {
    display: block;
}

/* DROPDOWN-MENÜ FIX */
.ddsmoothmenu ul li ul li a {
    padding: 4px 12px !important;
    min-height: 26px !important;
    font-weight: normal !important;
    line-height: 1.2 !important;
}

.cookie-content {
    max-width: 969px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    padding: 0 20px; /* Padding hier statt im Banner */
    box-sizing: border-box;
}

.cookie-text {
    flex: 1;
    min-width: 250px; /* Reduziert für kleinere Bildschirme */
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
    white-space: nowrap; /* Verhindert Textumbruch in Buttons */
}

.cookie-btn.accept {
    background: #27ae60;
    color: white;
}

.cookie-btn.accept:hover {
    background: #219a52;
}

.cookie-btn.decline {
    background: #e74c3c;
    color: white;
}

.cookie-btn.decline:hover {
    background: #c0392b;
}

.cookie-btn.settings {
    background: #95a5a6;
    color: white;
}

.cookie-btn.settings:hover {
    background: #7f8c8d;
}

.privacy-link {
    color: #3498db;
    text-decoration: none;
}

.privacy-link:hover {
    text-decoration: underline;
}

/* COOKIE SETTINGS MODAL */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 20px; /* Padding für mobile Ansicht */
    box-sizing: border-box;
}

.cookie-modal.show {
    display: flex;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 100%; /* Geändert von 90% */
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cookie-category {
    margin: 20px 0;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.toggle-switch {
    position: relative;
    width: 50px;
    height: 24px;
    background: #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.3s;
    flex-shrink: 0; /* Verhindert Verkleinerung */
}

.toggle-switch.active {
    background: #27ae60;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: white;
    top: 2px;
    left: 2px;
    transition: left 0.3s;
}

.toggle-switch.active::after {
    left: 28px;
}

/* RESPONSIVE ANPASSUNGEN */

/* Tablets */
@media (max-width: 768px) {
    /* Dropdown kompakter */
    .ddsmoothmenu ul li ul li a {
        padding: 3px 10px !important;
        min-height: 26px !important;
        font-size: 12px !important;
    }
    
    /* Cookie Banner Anpassungen */
    .cookie-banner {
        padding: 15px 10px;
        width: 100%;
        max-width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
    }
    
    .cookie-content {
        flex-direction: column;
        text-align: center;
        padding: 0 10px;
        gap: 10px;
    }
    
    .cookie-text {
        min-width: 100%;
        margin-bottom: 10px;
    }
    
    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex: 1;
        min-width: 80px;
    }
    
    /* Modal Anpassungen */
    .modal-content {
        padding: 20px;
        max-height: 90vh;
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .cookie-category {
        padding: 10px;
        margin: 15px 0;
    }
}

/* Kleine Smartphones */
@media (max-width: 480px) {
    .cookie-banner {
        padding: 10px 5px;
    }
    
    .cookie-content {
        padding: 0 5px;
    }
    
    .cookie-text {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        margin: 2px 0;
    }
    
    /* Modal noch kompakter */
    .modal-content {
        padding: 15px;
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
        height: 100%;
    }
    
    .category-header {
        flex-wrap: wrap;
    }
    
    .category-header h3 {
        font-size: 14px;
        flex: 1;
    }
}

@media (max-width: 360px) {
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-btn {
        width: 100%;
        margin: 3px 0;
    }
}

/* Sehr kleine Bildschirme */
@media (max-width: 320px) {
    .cookie-text {
        font-size: 12px;
    }
    
    .cookie-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .modal-header h2 {
        font-size: 16px;
    }
}

/* Landscape Modus für Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .cookie-banner {
        padding: 10px;
        max-height: 50vh;
        overflow-y: auto;
    }
    
    .cookie-content {
        flex-direction: row;
    }
    
    .cookie-buttons {
        flex-direction: row;
    }
}
