/* === Cookie-Consent — Bottom-Banner + Detail-Modal === */
.fsf-consent-bar,
.fsf-consent-modal-back,
.fsf-consent-modal { box-sizing: border-box; }

.fsf-consent-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 99998;
    background: #51666f; color: #fff;
    padding: 16px 24px; display: flex; gap: 18px; align-items: center;
    justify-content: space-between; flex-wrap: wrap;
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
    font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 1.45;
}
.fsf-consent-bar p { margin: 0; flex: 1 1 320px; }
.fsf-consent-bar a { color: #fff; text-decoration: underline; }
.fsf-consent-bar .fsf-consent-actions {
    display: flex; gap: 10px; flex-wrap: wrap; flex: 0 0 auto;
}
.fsf-consent-btn {
    border: 0; border-radius: 4px; padding: 10px 20px; cursor: pointer;
    font-family: inherit; font-size: 14px; font-weight: 500;
    transition: background 0.15s, opacity 0.15s; line-height: 1.2;
}
.fsf-consent-btn-primary { background: #006883; color: #fff; }
.fsf-consent-btn-primary:hover { background: #005570; }
.fsf-consent-btn-secondary {
    background: rgba(255, 255, 255, 0.12); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.6);
}
.fsf-consent-btn-secondary:hover { background: rgba(255, 255, 255, 0.22); }
.fsf-consent-btn-link {
    background: transparent; color: #fff; text-decoration: underline; padding: 10px 8px;
}
.fsf-consent-btn-link:hover { opacity: 0.85; }

/* Detail-Modal */
.fsf-consent-modal-back {
    position: fixed; inset: 0; background: rgba(31, 41, 47, 0.55); z-index: 99999;
    display: none; align-items: center; justify-content: center; padding: 24px;
}
.fsf-consent-modal-back.is-open { display: flex; }
.fsf-consent-modal {
    background: #fff; color: #2c333a; border-radius: 6px; max-width: 540px;
    width: 100%; max-height: 88vh; overflow: auto; padding: 28px;
    font-family: 'Open Sans', sans-serif; font-size: 14px; line-height: 1.5;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}
.fsf-consent-modal h2 {
    margin: 0 0 12px; font-family: 'Crimson Text', serif; color: #51666f;
    font-size: 26px; font-weight: 600;
}
.fsf-consent-modal p { margin: 0 0 18px; }
.fsf-consent-modal a { color: #006883; }

.fsf-consent-cat {
    border: 1px solid #e3e6ea; border-radius: 5px; padding: 14px 16px;
    margin-bottom: 12px; background: #fafbfc;
}
.fsf-consent-cat-head {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.fsf-consent-cat-title { font-weight: 600; color: #2c333a; }
.fsf-consent-cat-desc { margin: 6px 0 0; font-size: 13px; color: #4a5560; }

/* Toggle */
.fsf-consent-toggle { position: relative; width: 42px; height: 22px; flex: 0 0 42px; }
.fsf-consent-toggle input { opacity: 0; width: 0; height: 0; }
.fsf-consent-toggle-slider {
    position: absolute; inset: 0; background: #c9ced3; border-radius: 22px;
    cursor: pointer; transition: background 0.2s;
}
.fsf-consent-toggle-slider:before {
    content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px;
    background: #fff; border-radius: 50%; transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.fsf-consent-toggle input:checked + .fsf-consent-toggle-slider { background: #006883; }
.fsf-consent-toggle input:checked + .fsf-consent-toggle-slider:before { transform: translateX(20px); }
.fsf-consent-toggle input:disabled + .fsf-consent-toggle-slider {
    background: #006883; opacity: 0.6; cursor: not-allowed;
}

.fsf-consent-modal-footer {
    display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 16px;
}

/* Footer-Link um Banner manuell wieder zu öffnen */
.fsf-consent-footer-link {
    background: none; border: 0; padding: 0; color: inherit; cursor: pointer;
    font: inherit; text-decoration: underline;
}

/* Maps Placeholder */
.fsf-maps-placeholder {
    background: #efefee; border: 1px dashed #006883; border-radius: 5px;
    padding: 30px 20px; text-align: center; color: #51666f;
    font-family: 'Open Sans', sans-serif;
}
.fsf-maps-placeholder p { margin: 0 0 14px; }
.fsf-maps-placeholder .fsf-consent-btn { display: inline-block; }

@media (max-width: 600px) {
    .fsf-consent-bar { padding: 14px 16px; font-size: 13px; }
    .fsf-consent-bar .fsf-consent-actions { width: 100%; justify-content: stretch; }
    .fsf-consent-btn { flex: 1 1 100%; }
    .fsf-consent-modal { padding: 20px; }
}
