/* =========================================================
   Cookie-/Einwilligungsverwaltung – fidelak.de
   Bewusst eigenständiges CSS (kein Tailwind-Rebuild nötig).
   ========================================================= */

.fd-consent-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .55);
    backdrop-filter: blur(2px);
    /* Unter den Formular-Popups (z-10000) und bewusst NICHT klickblockierend:
       der Banner darf die Seite nicht als Cookie-Wall versperren. */
    z-index: 9998;
    pointer-events: none;
    display: none;
}
.fd-consent-backdrop.is-open { display: block; }

.fd-consent {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    transform: translateX(-50%);
    width: min(56rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2.5rem);
    overflow-y: auto;
    background: #fff;
    color: #0f172a;
    border-radius: 1rem;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .30);
    z-index: 9999;
    display: none;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: .875rem;
    line-height: 1.6;
}
.fd-consent.is-open { display: block; }

.fd-consent__inner { padding: 1.5rem 1.5rem 1.25rem; }
@media (min-width: 768px) { .fd-consent__inner { padding: 2rem 2.25rem 1.75rem; } }

.fd-consent__eyebrow {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #6366f1;
    margin: 0 0 .5rem;
}
.fd-consent__title {
    font-size: 1.125rem;
    font-weight: 800;
    letter-spacing: -.01em;
    margin: 0 0 .5rem;
    color: #0f172a;
}
.fd-consent__text { margin: 0 0 1.25rem; color: #475569; }
.fd-consent__text a { color: #4f46e5; text-decoration: underline; }

.fd-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}
.fd-consent__btn {
    flex: 1 1 12rem;
    appearance: none;
    border: 1px solid transparent;
    border-radius: .625rem;
    padding: .75rem 1.25rem;
    font: inherit;
    font-weight: 700;
    font-size: .8125rem;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    text-align: center;
}
/* "Akzeptieren" und "Ablehnen" bewusst gleichrangig gestaltet. */
.fd-consent__btn--primary { background: #4f46e5; color: #fff; }
.fd-consent__btn--primary:hover { background: #4338ca; }
.fd-consent__btn--secondary { background: #1e293b; color: #fff; }
.fd-consent__btn--secondary:hover { background: #0f172a; }
.fd-consent__btn--ghost {
    flex: 0 1 auto;
    background: #fff;
    color: #475569;
    border-color: #e2e8f0;
}
.fd-consent__btn--ghost:hover { border-color: #94a3b8; color: #0f172a; }

.fd-consent__details { margin: 0 0 1.25rem; }
.fd-consent__group {
    border: 1px solid #e2e8f0;
    border-radius: .75rem;
    padding: .875rem 1rem;
    margin-bottom: .625rem;
}
.fd-consent__grouphead {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}
.fd-consent__groupname { font-weight: 700; color: #0f172a; }
.fd-consent__groupdesc { color: #64748b; margin: .375rem 0 0; font-size: .8125rem; }
.fd-consent__groupmeta {
    color: #94a3b8;
    font-size: .6875rem;
    margin: .5rem 0 0;
    letter-spacing: .02em;
}

.fd-consent__switch { display: inline-flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.fd-consent__switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.fd-consent__slider {
    width: 2.75rem;
    height: 1.5rem;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    transition: background-color .15s ease;
    cursor: pointer;
}
.fd-consent__slider::after {
    content: "";
    position: absolute;
    top: .1875rem;
    left: .1875rem;
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 999px;
    background: #fff;
    transition: transform .15s ease;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .3);
}
.fd-consent__switch input:checked + .fd-consent__slider { background: #4f46e5; }
.fd-consent__switch input:checked + .fd-consent__slider::after { transform: translateX(1.25rem); }
.fd-consent__switch input:disabled + .fd-consent__slider { background: #a5b4fc; cursor: not-allowed; }
.fd-consent__switch input:focus-visible + .fd-consent__slider { outline: 2px solid #4f46e5; outline-offset: 2px; }

.fd-consent__legal {
    margin: 1rem 0 0;
    font-size: .6875rem;
    color: #94a3b8;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}
.fd-consent__legal a { color: #64748b; text-decoration: underline; }

/* ---- Platzhalter für blockierte externe Inhalte (Zwei-Klick) ---- */
.fd-embed-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: .875rem;
    height: 100%;
    padding: 2rem 1.5rem;
    background: #f8fafc;
    color: #475569;
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: .875rem;
    line-height: 1.6;
}
.fd-embed-placeholder__icon { font-size: 1.75rem; color: #6366f1; }
.fd-embed-placeholder__title { font-weight: 800; color: #0f172a; font-size: 1rem; }
.fd-embed-placeholder__text { max-width: 30rem; margin: 0; }
.fd-embed-placeholder__text a { color: #4f46e5; text-decoration: underline; }
.fd-embed-placeholder__btn {
    appearance: none;
    border: 0;
    border-radius: .625rem;
    background: #4f46e5;
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: .75rem 1.5rem;
    cursor: pointer;
}
.fd-embed-placeholder__btn:hover { background: #4338ca; }
.fd-embed-placeholder__note { font-size: .6875rem; color: #94a3b8; margin: 0; }
