/* Consent-Banner als Leiste am unteren Bildschirmrand (volle Breite) */
#gat-consent {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    background: #ffffff;
    border-top: 1px solid #e2e2e2;
    box-shadow: 0 -2px 18px rgba(0, 0, 0, 0.12);
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1f2937;
}

#gat-consent .gat-c-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px 20px;
}

#gat-consent .gat-c-text {
    flex: 1 1 420px;
    min-width: 240px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

#gat-consent .gat-c-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 3px;
}

#gat-consent .gat-c-a {
    color: var(--gat-accent, #16a34a);
    text-decoration: underline;
}

#gat-consent .gat-c-actions {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

#gat-consent .gat-c-btn {
    border: 0;
    border-radius: 6px;
    padding: 11px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
}

#gat-consent .gat-c-accept {
    background: var(--gat-accent, #16a34a);
    color: #ffffff;
}

#gat-consent .gat-c-save {
    background: #111827;
    color: #ffffff;
}

#gat-consent .gat-c-ghost {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

#gat-consent .gat-c-ghost:hover {
    background: #e5e7eb;
}

/* Kategorie-Auswahl (klappt bei „Individuelle Einstellungen" auf, volle Zeile) */
#gat-consent .gat-c-options {
    display: none;
    flex-basis: 100%;
    order: 3;
    border-top: 1px solid #eef0f2;
    padding-top: 6px;
}

#gat-consent .gat-c-options.gat-open {
    display: block;
}

#gat-consent .gat-c-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 480px;
    padding: 9px 0;
    font-size: 14px;
    border-bottom: 1px solid #f1f5f9;
}

#gat-consent .gat-c-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--gat-accent, #16a34a);
}

/* Dezenter, dauerhafter Button unten rechts (DSGVO-Widerruf) */
#gat-consent-reopen {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 999998;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #6b7280;
    border: 1px solid #d8dbe0;
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
    font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    opacity: 0.75;
}

#gat-consent-reopen:hover {
    opacity: 1;
}

#gat-consent-reopen .gat-c-gear {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 640px) {
    #gat-consent .gat-c-actions {
        width: 100%;
    }
    #gat-consent .gat-c-btn {
        flex: 1 1 auto;
        text-align: center;
    }
    #gat-consent-reopen .gat-c-reopen-text {
        display: none;
    }
}
