/* ============================================
   Cookie-Consent-Banner (js/cookie-banner.js)

   Lag bis 2026-08-12 als per JS injizierter <style>-Block in cookie-banner.js.
   Die CSP hat ihn auf jeder Seite blockiert (style-src-elem self, ohne
   unsafe-inline) — das Banner rendert dann mit position:static mitten im
   Seitenfluss statt fixiert. Im Browser aufgefallen: style.sheet war null.
   Externe Datei statt style.css/landing.css, weil das Banner auf Seiten mit
   beiden Stylesheets laeuft (Landing nutzt landing.css, die App style.css).
   ============================================ */
#cookieBanner {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    background: #161a18;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 820px;
    width: calc(100% - 32px);
    box-shadow: 0 8px 40px rgba(0,0,0,.55), 0 0 0 1px rgba(16,185,129,.08);
    animation: cookieSlideUp .35s ease;
}
@keyframes cookieSlideUp {
    from { opacity:0; transform:translateX(-50%) translateY(20px); }
    to   { opacity:1; transform:translateX(-50%) translateY(0); }
}
#cookieBanner .cb-text {
    flex: 1;
    min-width: 220px;
    font-size: 13px;
    color: #9ba8a1;
    line-height: 1.55;
}
#cookieBanner .cb-text strong { color: #eef2f0; }
#cookieBanner .cb-text a { color: #34d399; text-decoration: none; }
#cookieBanner .cb-text a:hover { text-decoration: underline; }
#cookieBanner .cb-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}
#cookieBanner .cb-btn-all {
    background: linear-gradient(135deg, #10b981, #0da271);
    color: #fff;
    border: none;
    padding: 9px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity .15s;
}
#cookieBanner .cb-btn-all:hover { opacity: .88; }
/* button.cb-btn-min steht ausserhalb des Banners: Widerrufs-Schaltflaeche in cookies.html */
#cookieBanner .cb-btn-min,
button.cb-btn-min {
    background: rgba(255,255,255,.05);
    color: #9ba8a1;
    border: 1px solid rgba(255,255,255,.1);
    padding: 9px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    white-space: nowrap;
    transition: background .15s;
}
#cookieBanner .cb-btn-min:hover,
button.cb-btn-min:hover { background: rgba(255,255,255,.09); color: #eef2f0; }
@media (max-width: 520px) {
    #cookieBanner { flex-direction: column; gap: 12px; }
    #cookieBanner .cb-actions { width: 100%; }
    #cookieBanner .cb-btn-all,
    #cookieBanner .cb-btn-min { flex: 1; text-align: center; }
}
