/* ==========================================================================
   ALMA-MED — Cookie-Consent-Banner & -Einstellungen
   Eigenständige Klassen (.cookie-btn*), damit Banner/Modal unabhängig davon
   funktionieren, ob die aktuelle Seite ihre eigenen .btn-Regeln definiert.
   Speichert die Auswahl ausschließlich im Browser (localStorage) — dieses
   Stylesheet/Skript setzt selbst kein Cookie.
   ========================================================================== */

.cookie-consent{position:fixed;left:0;right:0;bottom:0;z-index:200;background:var(--navy);box-shadow:0 -8px 30px rgba(21,42,63,.18)}
.cookie-consent[hidden]{display:none}
.cookie-consent-inner{max-width:1200px;margin:0 auto;padding:22px 24px;display:flex;flex-wrap:wrap;gap:18px;align-items:center;justify-content:space-between}
.cookie-consent-text{flex:1 1 320px;font-size:.9rem;line-height:1.5;color:#c5d2de}
.cookie-consent-text a{color:var(--teal);text-decoration:underline}
.cookie-consent-actions{display:flex;flex-wrap:wrap;gap:10px}

.cookie-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 24px;border-radius:50px;font-weight:600;font-size:.88rem;font-family:inherit;transition:.25s;cursor:pointer;border:2px solid transparent}
.cookie-btn-primary{background:var(--teal);color:var(--navy)}
.cookie-btn-primary:hover{background:var(--teal-dark);color:#fff}
.cookie-btn-outline{background:none;border-color:rgba(255,255,255,.35);color:#fff}
.cookie-btn-outline:hover{border-color:var(--teal);color:var(--teal)}

.cookie-modal{position:fixed;inset:0;z-index:210;display:flex;align-items:center;justify-content:center;padding:20px}
.cookie-modal[hidden]{display:none}
.cookie-modal-backdrop{position:absolute;inset:0;background:rgba(21,42,63,.55)}
.cookie-modal-panel{position:relative;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);max-width:520px;width:100%;padding:32px;max-height:88vh;overflow-y:auto}
.cookie-modal-panel h2{font-size:1.3rem;margin-bottom:12px;color:var(--navy)}
.cookie-modal-panel>p{font-size:.9rem;color:var(--text);margin-bottom:22px}
.cookie-modal-option{border:1.5px solid #e5edf2;border-radius:10px;padding:16px 18px;margin-bottom:14px}
.cookie-modal-option-header{display:flex;align-items:center;justify-content:space-between;gap:12px;font-weight:600;color:var(--navy);margin-bottom:6px}
.cookie-modal-option p{font-size:.85rem;color:var(--text)}
.cookie-modal-toggle-locked{font-size:.72rem;font-weight:700;color:var(--teal-dark);text-transform:uppercase;letter-spacing:.5px;flex-shrink:0}

.cookie-modal-switch{display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:600;color:var(--navy)}
.cookie-modal-switch input{position:absolute;opacity:0;width:1px;height:1px}
.cookie-modal-switch-track{position:relative;width:40px;height:22px;border-radius:20px;background:#dfe7ed;transition:.2s;flex-shrink:0}
.cookie-modal-switch-track::before{content:'';position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
.cookie-modal-switch input:checked+.cookie-modal-switch-track{background:var(--teal)}
.cookie-modal-switch input:checked+.cookie-modal-switch-track::before{transform:translateX(18px)}
.cookie-modal-switch input:focus-visible+.cookie-modal-switch-track{outline:2px solid var(--focus);outline-offset:2px}

.cookie-modal-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-end;margin-top:20px}

.footer-link-button{background:none;border:none;padding:0;font:inherit;font-size:.92rem;color:#aebdca;cursor:pointer}
.footer-link-button:hover{color:var(--teal)}

@media(max-width:680px){
  .cookie-consent-inner{padding:18px 20px}
  .cookie-consent-actions{width:100%}
  .cookie-consent-actions .cookie-btn{flex:1 1 auto}
}
