/*========== Cookie Banner ==========*/
.consent-banner{
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999999;
    display: flex;
    justify-content: center;
    pointer-events: none;
    font-family: 'Inter', sans-serif;
}
.consent-banner[hidden]{ display: none; }
.consent-banner-inner{
    pointer-events: auto;
    width: 100%;
    max-width: 1100px;
    background: #0A1418;
    border: 1px solid rgba(71, 204, 245, 0.18);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.02) inset;
    padding: 24px 28px;
    display: flex;
    align-items: center;
    gap: 32px;
}
.consent-banner-content{
    flex: 1 1 auto;
    min-width: 0;
}
.consent-banner-title{
    font-size: 18px;
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin: 0 0 6px;
}
.consent-banner-text{
    font-size: 14px;
    line-height: 155%;
    letter-spacing: -0.01em;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}
.consent-link{
    color: #47CCF5;
    text-decoration: none;
    transition: opacity 0.15s ease;
}
.consent-link:hover{ opacity: 0.8; }
.consent-banner-actions{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

/*========== Services-Accordion (nur im Modal) ==========*/
.consent-modal-services{
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0 0 16px;
    width: 100%;
}
.consent-service{
    background: rgba(71, 204, 245, 0.04);
    border: 1px solid rgba(71, 204, 245, 0.12);
    border-radius: 10px;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.consent-service:hover{
    background: rgba(71, 204, 245, 0.07);
    border-color: rgba(71, 204, 245, 0.22);
}
.consent-service-head{
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
}
.consent-service-summary{
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 4px 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.consent-service-chevron{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    color: rgba(255,255,255,0.55);
    transition: transform 0.2s ease;
}
.consent-service.is-open .consent-service-chevron{
    transform: rotate(180deg);
}
.consent-service-title{
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}
.consent-service-body{
    padding: 0 14px 12px 30px;
}
.consent-service-body[hidden]{ display: none; }
.consent-service-desc{
    margin: 0 0 4px;
    font-size: 12px;
    line-height: 150%;
    color: rgba(255,255,255,0.7);
}
.consent-service-meta{
    margin: 0;
    font-size: 11px;
    line-height: 145%;
    color: rgba(255, 255, 255, 0.42);
}

/*========== Buttons ==========*/
.consent-btn{
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    padding: 12px 20px;
    border-radius: 10px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
    white-space: nowrap;
}
.consent-btn-primary{
    background: #47CCF5;
    color: #000506;
    box-shadow: 0 2px 12px rgba(71, 204, 245, 0.25);
}
.consent-btn-primary:hover{ background: #6FD7F7; }
.consent-btn-secondary{
    background: rgba(71, 204, 245, 0.08);
    color: #FFFFFF;
    border-color: rgba(71, 204, 245, 0.28);
}
.consent-btn-secondary:hover{ background: rgba(71, 204, 245, 0.16); }
.consent-btn-ghost{
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border-color: rgba(255, 255, 255, 0.16);
}
.consent-btn-ghost:hover{ color: #FFFFFF; border-color: rgba(255,255,255,0.3); }

/*========== Modal ==========*/
.consent-modal{
    position: fixed;
    inset: 0;
    z-index: 10000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: 'Inter', sans-serif;
}
.consent-modal[hidden]{ display: none; }
.consent-modal-backdrop{
    position: absolute;
    inset: 0;
    background: rgba(0, 5, 6, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.consent-modal-card{
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 48px);   /* Fallback */
    max-height: calc(100dvh - 48px);  /* Dynamic Viewport — In-App-Browser */
    overflow-y: auto;
    background: #0A1418;
    border: 1px solid rgba(71, 204, 245, 0.2);
    border-radius: 20px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6);
    padding: 28px 28px 24px;
}
.consent-modal-head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 8px;
}
.consent-modal-title{
    font-size: 22px;
    font-weight: 700;
    line-height: 130%;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    margin: 0;
}
.consent-modal-close{
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.consent-modal-close:hover{
    background: rgba(255,255,255,0.06);
    color: #FFFFFF;
    border-color: rgba(255,255,255,0.24);
}
.consent-modal-intro{
    font-size: 14px;
    line-height: 155%;
    color: rgba(255,255,255,0.7);
    margin: 0 0 20px;
}

/*========== Categories ==========*/
.consent-modal-categories{
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}
.consent-cat{
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    background: rgba(71, 204, 245, 0.04);
    border: 1px solid rgba(71, 204, 245, 0.12);
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.consent-cat:hover{
    background: rgba(71, 204, 245, 0.07);
    border-color: rgba(71, 204, 245, 0.22);
}
.consent-cat-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.consent-cat-title{
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #FFFFFF;
}
.consent-cat-desc{
    font-size: 13px;
    line-height: 150%;
    color: rgba(255,255,255,0.6);
    margin: 0;
}
.consent-cat-services{
    list-style: none;
    margin: 8px 0 0;
    padding: 10px 12px;
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.consent-cat-service{
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.consent-cat-service-name{
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.78);
    letter-spacing: -0.005em;
}
.consent-cat-service-meta{
    font-size: 11px;
    line-height: 145%;
    color: rgba(255, 255, 255, 0.42);
}

/*========== Toggle ==========*/
.consent-toggle{
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
}
.consent-toggle input{
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
.consent-toggle-track{
    width: 36px;
    height: 20px;
    background: rgba(255,255,255,0.14);
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
    flex: 0 0 auto;
}
.consent-toggle-thumb{
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #FFFFFF;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.consent-toggle input:checked ~ .consent-toggle-track{
    background: #47CCF5;
}
.consent-toggle input:checked ~ .consent-toggle-track .consent-toggle-thumb{
    transform: translateX(16px);
}
.consent-toggle-locked .consent-toggle-track{
    background: rgba(71, 204, 245, 0.45);
    cursor: not-allowed;
}
.consent-toggle-locked .consent-toggle-thumb{
    transform: translateX(16px);
}
.consent-toggle-label{
    font-size: 12px;
    color: rgba(255,255,255,0.55);
}

/*========== Modal Actions ==========*/
.consent-modal-actions{
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

/*========== Responsive ==========*/
@media (max-width: 900px){
    .consent-banner{ left: 12px; right: 12px; bottom: 12px; }
    .consent-banner-inner{
        flex-direction: column;
        align-items: stretch;
        gap: 18px;
        padding: 20px 22px;
    }
    .consent-banner-actions{
        flex-wrap: wrap;
    }
    .consent-banner-actions .consent-btn{ flex: 1 1 auto; text-align: center; }
}
@media (max-width: 500px){
    .consent-banner-title{ font-size: 17px; }
    .consent-banner-text{ font-size: 13px; }
    .consent-banner-actions{ gap: 8px; }
    .consent-banner-actions .consent-btn{ padding: 11px 14px; font-size: 13px; }
    .consent-modal{ padding: 12px; }
    .consent-modal-card{ padding: 22px 20px 20px; border-radius: 16px; }
    .consent-modal-title{ font-size: 19px; }
    .consent-modal-actions .consent-btn{ flex: 1 1 100%; }
}
