/**
 * Cookie Consent Custom Styles
 * BWG Erlebnishaus Branding
 */

/* System Colors:
   - Primary: #00a8a8 (Türkis)
   - Secondary: #3cb482 (Grün)
   - Hover: #fff054 (Gelb)
   - Text: #363635
   - Background: #ffffff
*/

/* Text colors for better readability */
#cc-main .cm,
#cc-main .pm {
    color: #1a1a1a !important;
}

#cc-main .cm__title,
#cc-main .pm__title {
    color: #000000 !important;
}

#cc-main .cm__desc,
#cc-main .pm__section-desc,
#cc-main .section__desc {
    color: #333333 !important;
}

#cc-main .section__title {
    color: #000000 !important;
}

/* Table text colors */
#cc-main .table-th,
#cc-main .table-td {
    color: #1a1a1a !important;
}

/* Primary buttons - System Türkis */
#cc-main .cm__btn.cm__btn--primary,
#cc-main .pm__btn,
.cm__btn--primary {
    background-color: #00a8a8 !important;
    color: #ffffff !important;
    border-color: #00a8a8 !important;
    font-weight: 600 !important;
}

#cc-main .cm__btn.cm__btn--primary:hover,
#cc-main .pm__btn:hover {
    background-color: #008989 !important;
    color: #ffffff !important;
}

/* Secondary buttons */
#cc-main .cm__btn--secondary {
    color: #333333 !important;
    border-color: #cccccc !important;
}

#cc-main .cm__btn--secondary:hover {
    background-color: #f0f0f0 !important;
    color: #000000 !important;
}

/* Cookie Settings Link in Footer */
.cc-settings-link {
    color: #ffffff !important;
}

.cc-settings-link:hover {
    color: #00a8a8 !important;
}

/* Links in modal - ensure readability */
#cc-main .cc-link,
#cc-main a {
    color: #0066cc !important;
    text-decoration: underline;
}

#cc-main .cc-link:hover,
#cc-main a:hover {
    color: #004499 !important;
}

/* Toggle switches - active state with system colors */
#cc-main .toggle__icon-on svg {
    stroke: #00a8a8 !important;
}

#cc-main .section__toggle:checked ~ .toggle__icon {
    background-color: #00a8a8 !important;
    box-shadow: 0 0 0 1px #00a8a8 !important;
}

/* Focus states for accessibility */
#cc-main .cm__btn:focus,
#cc-main .pm__btn:focus,
#cc-main .section__toggle:focus,
.cc-settings-link:focus {
    outline: 2px solid #00a8a8 !important;
    outline-offset: 2px;
}

/* Modal background */
#cc-main .cm-wrapper,
#cc-main .pm-wrapper {
    backdrop-filter: blur(4px);
}

/* Ensure modal content has good contrast */
#cc-main .cm,
#cc-main .pm {
    background-color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
}

/* Fix preferences modal display issue - only when modal should be shown */
.show--preferences .pm-wrapper {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 9999 !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #cc-main {
        font-size: 14px;
    }
}
