/* Cookie Banner Styles für TC Hugsweier */

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px;
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.cookie-text {
    flex: 1;
    min-width: 300px;
}

.cookie-text h4 {
    margin: 0 0 8px 0;
    font-size: 1.2rem;
    color: #007bff;
}

.cookie-text p {
    margin: 0;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cookie-text a {
    color: #007bff;
    text-decoration: none;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.cookie-btn-accept {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
}

.cookie-btn-accept:hover {
    background: linear-gradient(45deg, #218838, #1abc9c);
    transform: translateY(-2px);
    color: white;
}

.cookie-btn-settings {
    background: transparent;
    color: #007bff;
    border: 2px solid #007bff;
}

.cookie-btn-settings:hover {
    background: #007bff;
    color: white;
}

.cookie-btn-decline {
    background: #6c757d;
    color: white;
}

.cookie-btn-decline:hover {
    background: #5a6268;
    color: white;
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.cookie-modal-header {
    padding: 25px 30px 0;
    border-bottom: none;
}

.cookie-modal-header h3 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.5rem;
}

.cookie-modal-body {
    padding: 20px 30px;
}

.cookie-category {
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #f8f9fa;
}

.cookie-category h5 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cookie-category p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.4;
}

.cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-toggle 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: .4s;
    border-radius: 24px;
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.cookie-slider {
    background-color: #007bff;
}

input:checked+.cookie-slider:before {
    transform: translateX(26px);
}

.cookie-slider.disabled {
    background-color: #28a745 !important;
    cursor: not-allowed;
}

.cookie-modal-footer {
    padding: 0 30px 30px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        min-width: 120px;
    }

    .cookie-modal-content {
        margin: 10px;
        max-height: 90vh;
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Animation für smooth appearance */
@keyframes cookieFadeIn {
    from {
        opacity: 0;
        transform: translateY(100%);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner.show {
    animation: cookieFadeIn 0.4s ease-in-out;
}