/* GDPR Cookie Banner CSS */

/* Reset and base styles */
#gdpr-cookie-banner-container *,
#gdpr-settings-button-container * {
    box-sizing: border-box;
}

/* Modal overlay */
#gdpr-cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.4), rgba(0, 115, 170, 0.1));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    animation: gdprFadeIn 0.4s ease-out forwards;
}

/* Modal container */
#gdpr-cookie-modal {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 32px rgba(0, 115, 170, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    transform: scale(0.8) translateY(40px);
    animation: gdprSlideUp 0.4s ease-out 0.1s forwards;
    display: flex;
    flex-direction: column;
}

/* Modal header */
.gdpr-modal-header {
    padding: 28px 32px 24px;
    background: #fff;
    border-radius: 16px 16px 0 0;
    border-bottom: 1px solid rgba(224, 224, 224, 0.4);
    flex-shrink: 0;
}

.gdpr-modal-title {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    margin-bottom: 16px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gdpr-modal-title i {
    color: #026257;
    font-size: 20px;
}



.gdpr-modal-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555555;
    margin-bottom: 24px;
    background: rgba(248, 249, 250, 0.8);
    padding: 20px 24px;
    border-radius: 12px;
    /* border-left: 4px solid #0073aa; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gdpr-privacy-link {
    color: #0073aa;
    text-decoration: none;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.gdpr-privacy-link:hover {
    background-color: rgba(0, 115, 170, 0.1);
    text-decoration: underline;
}

.cookie-einstellungen-button-karriere-kontakt-page {
    border: solid 2px #296057;
    border-radius: 12px;
    padding: 10px 20px;
    color: #296057;
}

/* Modal body - improved scrollable */
.gdpr-modal-body {
    padding: 20px 32px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f8f9fa;
    flex: 1;
    min-height: 0;
}

.gdpr-modal-body::-webkit-scrollbar {
    width: 6px;
}

.gdpr-modal-body::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 3px;
}

.gdpr-modal-body::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.gdpr-modal-body::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Consent categories */
.gdpr-consent-categories {
    margin-bottom: 16px;
    padding: 0;
}

.gdpr-consent-category {
    border: 1px solid rgba(224, 224, 224, 0.4);
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.gdpr-consent-category:last-child {
    margin-bottom: 0;
}

.gdpr-category-header {
    padding: 18px 20px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(224, 224, 224, 0.3);
    min-height: 56px;
}

.gdpr-category-header.active {
    background: #fafafa;
}

.gdpr-category-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0;
    line-height: 1.4;
    padding-right: 12px;
}

.gdpr-category-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Toggle switch */
.gdpr-toggle-switch {
    position: relative;
    width: 48px;
    height: 26px;
    background: #ddd;
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gdpr-toggle-switch.active {
    background: #026257;
}

.gdpr-toggle-switch.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.gdpr-toggle-handle {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: left 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.cookie-einstellungen-button-karriere {
    border: solid 2px #ffffff;
    border-radius: 12px;
    padding: 10px 20px;
    color: white;
}

.gdpr-toggle-switch.active .gdpr-toggle-handle {
    left: 24px;
}

/* Accordion arrow */
.gdpr-accordion-arrow {
    color: #999;
    font-size: 16px;
    transition: transform 0.2s ease, color 0.2s ease;
    cursor: pointer;
    padding: 8px;
    margin: -8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    line-height: 1;
}

.gdpr-accordion-arrow:hover {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

.gdpr-category-header.active .gdpr-accordion-arrow {
    transform: rotate(90deg);
}

#gdpr-settings-button-container{
    /* display:none; */
}

/* Category content */
.gdpr-category-content {
    padding: 16px 20px 20px;
    background: #f9f9f9;
    display: none;
}

.gdpr-category-content.active {
    display: block;
}

.gdpr-category-description {
    font-size: 14px;
    line-height: 1.5;
    color: #666;
    margin: 0;
    padding-left: 4px;
}

/* Modal footer */
.gdpr-modal-footer {
    padding: 24px 32px;
    border-top: 1px solid rgba(224, 224, 224, 0.4);
    background: #fff;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    border-radius: 0 0 16px 16px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.gdpr-btn {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 52px;
    min-width: 140px;
    line-height: 1.2;
    position: relative;
    overflow: hidden;
    text-transform: none;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex: 1;
    max-width: 200px;
    box-shadow: none !important;
    background: transparent !important;
    color: black !important;
}



.gdpr-btn-primary {
    background-color: #026257 !important;
    color: white !important;
    border: 1px solid #026257;
    order: 3;
    font-size: 17px;
    font-weight: 600;
    box-shadow: none !important;
}


.gdpr-btn-primary:focus {
    background: #026257 !important;
    color: white !important;
    border: 1px solid #026257 !important;
    order: 3;
    font-size: 17px;
    font-weight: 600;
}

.gdpr-btn-primary:hover {
    background: #013d36;
    border-color: #013d36;
}

.gdpr-btn-secondary {
    background: transparent;
    border: 2px solid #333;
    color: #333;
    font-weight: 600;
    order: 2;
}

.gdpr-btn-secondary:hover {
    background: #333;
    color: white;
    border-color: #333;
}

.gdpr-btn-outline {
    background: transparent;
    border: 2px solid #333;
    color: #333;
    font-weight: 600;
    order: 1;
}

.gdpr-btn-outline:hover {
    background: #333;
    color: white;
    border-color: #333;
}

/* Floating settings button */
#gdpr-settings-button {
    position: fixed;
    bottom: 24px;
    left: 24px;
    background: #026257;
    color: white;
    border: none;
    border-radius: 50%;
    padding: 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999998;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#gdpr-settings-button i {
    font-size: 20px;
    transition: transform 0.2s ease;
}

#gdpr-settings-button:hover i {
    transform: rotate(45deg);
}

#gdpr-settings-button:hover {
    background: #014e44;
    transform: translateY(-4px) scale(1.05);
}

#gdpr-settings-button:focus {
    outline: 2px solid #026257;
    outline-offset: 2px;
}

/* Hide scrollbar when modal is open */
body.gdpr-modal-open {
    overflow: hidden;
}

/* Accessibility improvements */
.gdpr-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}



/* Mobile responsive */
@media screen and (max-width: 768px) {

    #gdpr-settings-button-container {
        display: none;    
    }

    #gdpr-cookie-overlay {
        padding: 0;
        align-items: flex-end;
        background: linear-gradient(135deg, rgba(0, 0, 0, 0.3), rgba(0, 115, 170, 0.05));
    }
    
    #gdpr-cookie-modal {
        max-height: 90vh;
        border-radius: 20px 20px 0 0;
        margin-bottom: 0;
        width: 100%;
        max-width: 100%;
        transform: translateY(100%);
        animation: gdprSlideUpMobile 0.4s ease-out 0.1s forwards;
    }
    
    .gdpr-modal-header {
        padding: 30px 24px 10px;
        border-radius: 20px 20px 0 0;
        position: relative;
    }
    
    .gdpr-modal-header::after {
        content: '';
        position: absolute;
        top: 12px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
    }
    
    .gdpr-modal-title {
        font-size: 18px;
        margin-top: 6px;
        margin-bottom: 10px;
    }
    
    .gdpr-modal-body {
        padding: 16px 20px 20px;
    }
    
    .gdpr-modal-footer {
        padding: 12px 20px 16px;
        flex-direction: column;
        gap: 8px;
        background: linear-gradient(135deg, rgba(248, 249, 250, 1), rgba(255, 255, 255, 1));
    }
    
    .gdpr-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 12px;
        min-height: 40px;
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        max-width: none;
        flex: none;
    }
    
    .gdpr-btn-primary {
        font-size: 14px;
        font-weight: 700;
        order: 3;
    }
    
    .gdpr-btn-secondary {
        order: 2;
    }
    
    .gdpr-btn-outline {
        order: 1;
    }
    
    .gdpr-category-header {
        padding: 12px 16px;
        min-height: 44px;
    }
    
    .gdpr-category-content {
        padding: 12px 16px 14px;
    }
    
    .gdpr-modal-description {
        padding: 12px 16px;
        margin-bottom: 14px;
        font-size: 13px;
        line-height: 1.5;
    }
    
    #gdpr-settings-button {
        bottom: 20px;
        left: 20px;
        padding: 14px;
        font-size: 14px;
        border-radius: 50%;
        width: 52px;
        height: 52px;
    }
    
    #gdpr-settings-button i {
        font-size: 18px;
    }
}

@media screen and (max-width: 480px) {

    .gdpr-modal-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .gdpr-category-title {
        font-size: 13px;
        line-height: 1.3;
    }
    
    .gdpr-toggle-switch {
        width: 48px;
        height: 26px;
    }
    
    .gdpr-toggle-handle {
        width: 22px;
        height: 22px;
    }
    
    .gdpr-toggle-switch.active .gdpr-toggle-handle {
        left: 24px;
    }
    
    .gdpr-modal-description {
        font-size: 12px;
        padding: 10px 14px;
        margin-bottom: 12px;
        line-height: 1.4;
    }
    
    .gdpr-category-content {
        padding: 10px 14px 12px;
    }
    
    .gdpr-category-header {
        padding: 10px 14px;
        min-height: 40px;
    }
    
    .gdpr-category-description {
        font-size: 11px;
        line-height: 1.4;
    }
    
    .gdpr-btn {
        padding: 8px 12px;
        min-height: 38px;
        font-size: 12px;
    }
    
    .gdpr-modal-footer {
        padding: 10px 20px 14px;
        gap: 6px;
    }
}

/* Extra small mobile */
@media screen and (max-width: 360px) {
    .gdpr-modal-header {
        padding: 28px 20px 16px !important;
    }
    
    .gdpr-modal-body {
        padding: 16px 20px 20px !important;
    }
    
    .gdpr-modal-footer {
        padding: 10px 18px 14px !important;
    }
    
    .gdpr-category-header {
        padding: 8px 12px !important;
        min-height: 36px !important;
    }
    
    .gdpr-category-content {
        padding: 8px 12px 10px !important;
    }
    
    .gdpr-modal-description {
        padding: 8px 12px !important;
        font-size: 11px !important;
        margin-bottom: 8px !important;
    }
    
    .gdpr-btn {
        padding: 8px 12px !important;
        min-height: 36px !important;
        font-size: 12px !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    #gdpr-cookie-modal {
        border: 2px solid #000;
    }
    
    .gdpr-btn {
        border: 2px solid currentColor;
    }
    
    .gdpr-toggle-switch {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .gdpr-toggle-switch,
    .gdpr-toggle-handle,
    .gdpr-accordion-arrow,
    .gdpr-btn,
    #gdpr-settings-button {
        transition: none;
    }
}

/* Animation keyframes */
@keyframes gdprFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes gdprSlideUp {
    from {
        transform: scale(0.8) translateY(40px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes gdprSlideUpMobile {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes gdprPulse {
    0%, 100% {
        box-shadow: none;
    }
    50% {
        box-shadow: none;
    }
}

@keyframes gdprBounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}



/* Floating button pulse animation */
#gdpr-settings-button {
    animation: gdprPulse 3s infinite;
}

/* Print styles */
@media print {
    #gdpr-cookie-overlay,
    #gdpr-settings-button {
        display: none !important;
    }
}
