/* ============================================================
   Klaro Custom Styling – hanabyte.de
   Überschreibt Klaro-Defaults mit dem Site-Design
   ============================================================ */

/* --- Zahnrad-Button (dauerhaft sichtbar) --- */
.klaro .cookie-modal-notice,
#klaro-cookie-notice {
    /* wird weiter unten gestylt */
}

.klaro .cm-btn.cm-btn-manage-modal,
.klaro button.cm-btn-manage-modal {
    display: block !important;
}

/* Das Klaro-Icon unten links */
#klaro .cookie-modal-notice-hidden .cm-notice-hidden,
.klaro-cookie-notice-hidden {
    display: block !important;
}

/* Zahnrad / Toggle-Button */
.klaro .klaro-cookie-notice,
#cookie-notice {
    bottom: 1.5rem;
    left: 1.5rem;
}

/* Klaro "Managed by Klaro"-Button der dauerhaft sichtbar ist */
.klaro .cookie-modal-trigger,
.klaro button[aria-label="Cookie-Einstellungen öffnen"],
.klaro .cm-toggle-all {
    width: 48px !important;
    height: 48px !important;
    border-radius: 50% !important;
    background-color: #6b7280 !important; /* gray-500 */
    border: 2px solid #9ca3af !important; /* gray-400 */
    box-shadow: 0 2px 8px rgba(0,0,0,0.35) !important;
    transition: background-color 0.2s ease, border-color 0.2s ease !important;
}

.klaro .cookie-modal-trigger:hover,
.klaro button[aria-label="Cookie-Einstellungen öffnen"]:hover {
    background-color: #c026d3 !important; /* fuchsia-600 */
    border-color: #d946ef !important;     /* fuchsia-500 */
}

/* Icon im Zahnrad-Button */
.klaro .cookie-modal-trigger svg,
.klaro .cookie-modal-trigger::before {
    width: 22px !important;
    height: 22px !important;
    color: #fff !important;
    fill: #fff !important;
}

/* --- Cookie-Banner (Notice) --- */
.klaro .cookie-notice,
.klaro #cookie-notice {
    background-color: #111827 !important;   /* gray-900 */
    border-top: 1px solid #374151 !important; /* gray-700 */
    color: #f9fafb !important;              /* gray-50 */
    font-family: inherit !important;
    padding: 1.25rem 1.5rem !important;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4) !important;
}

/* Banner-Text */
.klaro .cookie-notice .cn-body p,
.klaro .cookie-notice .cn-body {
    color: #d1d5db !important; /* gray-300 */
    font-size: 0.875rem !important;
    line-height: 1.6 !important;
}

/* Links im Banner (Datenschutz, Impressum) */
.klaro .cookie-notice .cn-body a,
.klaro .cookie-notice a {
    color: #d946ef !important;  /* fuchsia-500 */
    text-decoration: underline !important;
}

.klaro .cookie-notice a:hover {
    color: #e879f9 !important;  /* fuchsia-400 */
}

/* --- Buttons im Banner --- */

/* "Alle akzeptieren" */
.klaro .cookie-notice .cn-buttons .cm-btn.cm-btn-success,
.klaro .cm-btn.cm-btn-success {
    background-color: #c026d3 !important; /* fuchsia-600 */
    color: #fff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: background-color 0.2s ease !important;
    cursor: pointer !important;
}

.klaro .cm-btn.cm-btn-success:hover {
    background-color: #a21caf !important; /* fuchsia-700 */
}

/* "Ablehnen" / "Auswahl bestätigen" */
.klaro .cookie-notice .cn-buttons .cm-btn.cm-btn-decline,
.klaro .cm-btn.cm-btn-decline,
.klaro .cm-btn.cm-btn-info {
    background-color: transparent !important;
    color: #9ca3af !important;             /* gray-400 */
    border: 1px solid #4b5563 !important;  /* gray-600 */
    border-radius: 0.5rem !important;
    padding: 0.5rem 1.25rem !important;
    font-weight: 600 !important;
    font-size: 0.875rem !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
}

.klaro .cm-btn.cm-btn-decline:hover,
.klaro .cm-btn.cm-btn-info:hover {
    border-color: #c026d3 !important;
    color: #d946ef !important;
}

/* "Einstellungen verwalten" Link */
.klaro .cookie-notice .cn-learn-more,
.klaro .cn-learn-more {
    color: #9ca3af !important;
    font-size: 0.8rem !important;
    text-decoration: underline !important;
}

/* --- Modal (Einstellungs-Overlay) --- */
.klaro .cookie-modal .cm-modal {
    background-color: #1f2937 !important; /* gray-800 */
    border: 1px solid #374151 !important; /* gray-700 */
    border-radius: 0.75rem !important;
    color: #f9fafb !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6) !important;
}

/* Modal-Header */
.klaro .cookie-modal .cm-modal .cm-header {
    border-bottom: 1px solid #374151 !important;
    padding: 1.25rem 1.5rem !important;
}

.klaro .cookie-modal .cm-modal .cm-header h1,
.klaro .cookie-modal .cm-modal h1 {
    color: #f9fafb !important;
    font-size: 1.125rem !important;
    font-weight: 700 !important;
}

/* Modal-Body Text */
.klaro .cookie-modal .cm-modal .cm-body p {
    color: #d1d5db !important;
    font-size: 0.875rem !important;
}

/* Service-Zeilen */
.klaro .cookie-modal .cm-services .cm-service,
.klaro .cm-service {
    border-bottom: 1px solid #374151 !important;
    padding: 0.75rem 0 !important;
}

.klaro .cm-service .cm-service-title {
    color: #f9fafb !important;
    font-weight: 600 !important;
}

/* Toggle-Switch */
.klaro .cm-app-input:checked + .cm-app-label .slider,
.klaro input:checked + .cm-list-label .slider {
    background-color: #c026d3 !important; /* fuchsia-600 */
}

.klaro .slider {
    background-color: #4b5563 !important; /* gray-600 */
}

/* Modal-Footer */
.klaro .cookie-modal .cm-modal .cm-footer {
    border-top: 1px solid #374151 !important;
    padding: 1rem 1.5rem !important;
}

/* Overlay-Hintergrund */
.klaro .cookie-modal-overlay {
    background-color: rgba(0,0,0,0.7) !important;
}

/* Links im Banner */
.klaro .cookie-notice a,
.klaro .cookie-notice .klaro-link {
    color: #d946ef !important;
    text-decoration: underline !important;
}

.klaro .cookie-notice a:hover,
.klaro .cookie-notice .klaro-link:hover {
    color: #e879f9 !important;
}