/* Cookie-Hinweis (resources/views/partials/cookies.blade.php). Seit 09.10.2026 eine eigene Datei:
   Im Quelltext jeder Seite standen sonst 8,8 KB Stil und 6,2 KB Skript. */
.cb-hidden { display: none !important; }

/* LEISTE, nicht Karte (04.08.2026).
 *
 * Die Karte stand unten links, 376 breit und 381 hoch — und lag damit auf
 * dem Adressformular des Heros. Nachgemessen mit elementFromPoint auf der
 * Startseite: Bei 1280x650 waren ALLE VIER Felder und der Knopf verdeckt,
 * bei 800 noch der Knopf; frei wurde es erst ab etwa 840 Punkten Fensterhoehe.
 * Ein 1366x768-Notebook hat nach Abzug der Leisten rund 650 — die
 * verbreitetste Groesse ueberhaupt. Wer nicht wegklickt, kann also nicht
 * suchen, und der Trichter beginnt genau hier.
 *
 * Eine Leiste ueber die volle Breite bleibt flach: Es gibt keine
 * Fensterhoehe mehr, bei der sie den Hero erreicht.
 *
 * (Befund aus der Berlin-HR-Session, dort dasselbe Muster.) */
#cookie-banner {
    position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    background: #fff; border-top: 1px solid #e5e7eb;
    box-shadow: 0 -6px 24px rgba(16,24,40,.12);
    padding: 13px 20px calc(13px + env(safe-area-inset-bottom, 0px));
}
.cb-in {
    max-width: 1180px; margin: 0 auto;
    display: flex; align-items: center; gap: 26px;
}
.cb-txt { flex: 1; min-width: 0; }
.cb-title { font-size: 14px; font-weight: 800; color: #0f172a; margin: 0 0 3px; }
.cb-text { font-size: 12.5px; line-height: 1.55; color: #475569; margin: 0; }
.cb-text a, .cb-sec-text a { color: var(--acc-dark); text-decoration: underline; }
.cb-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.cb-btn {
    padding: 10px 16px; border-radius: .5rem; border: 1px solid transparent;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s;
    background: var(--acc-dark); color: #fff; white-space: nowrap;
}
.cb-btn:hover { background: var(--navy); }
.cb-btn.ghost {
    background: #fff; color: var(--acc-dark);
    border-color: #d7dde5; font-weight: 600;
}
.cb-btn.ghost:hover { background: #f4f6f9; }
/* Die Rechtslinks stehen in der Leiste hinter den Knoepfen, nicht mehr in
   einer eigenen Fusszeile — die kostete nur Hoehe. */
.cb-links { display: flex; gap: 14px; align-items: center; flex-shrink: 0; }
.cb-links a, .cb-foot-prefs { font-size: 12px; color: #64748b; text-decoration: none; }
.cb-links a:hover, .cb-foot-prefs:hover { text-decoration: underline; }
.cb-foot-prefs { background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }

/* Auf dem Handy untereinander, aber eng: Text, dann die beiden
   Entscheidungen nebeneinander. Untereinander frasse die Leiste wieder ein
   Drittel des Schirms. */
.cb-kurz { display: none; }

@media (max-width: 760px) {
    #cookie-banner { padding: 11px 13px calc(11px + env(safe-area-inset-bottom, 0px)); }
    .cb-lang { display: none; }
    .cb-kurz { display: block; }
    .cb-in { flex-direction: column; align-items: stretch; gap: 9px; }
    .cb-title { font-size: 13px; margin-bottom: 2px; }
    .cb-text { font-size: 11.5px; line-height: 1.45; }
    .cb-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
    .cb-actions .cb-btn { width: 100%; padding: 11px 10px; font-size: 13.5px; }
    /* Einstellungen und Rechtslinks in eine eigene Zeile darunter. */
    .cb-actions .cb-prefs { display: none; }
    .cb-links { grid-column: 1 / -1; justify-content: center; gap: 12px; }
}

/* DIALOG (Test „cookiebanner", Arm B): dieselbe Karte in der Mitte, die
   Seite dahinter abgedunkelt und gesperrt. Beide Knoepfe gleich gross
   nebeneinander — an der Gleichwertigkeit aendert die Form nichts. */
#cookie-sperre { position: fixed; inset: 0; z-index: 999; background: rgba(17,24,39,.45); }
#cookie-voile { position: fixed; inset: 0; z-index: 999; background: rgba(17,24,39,.38); pointer-events: none; }
#cookie-banner.cb-dialog {
    left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 16px; padding: 24px;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
#cookie-banner.cb-dialog .cb-in { flex-direction: column; align-items: stretch; gap: 16px; max-width: none; }
#cookie-banner.cb-dialog .cb-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
#cookie-banner.cb-dialog .cb-actions > .cb-btn { flex: 1 1 0; min-height: 46px; }
#cookie-banner.cb-dialog .cb-links { flex: 1 1 100%; justify-content: center; }
#cookie-banner.cb-dialog.cb-puls { animation: cb-puls .5s ease; }
@keyframes cb-puls {
    0%, 100% { box-shadow: 0 24px 60px rgba(0,0,0,.35); }
    50% { box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 6px rgba(var(--acc-rgb),.35); }
}
@media (max-width: 760px) {
    #cookie-banner.cb-dialog { padding: 20px; }
}

#cookie-prefs-overlay {
    position: fixed; inset: 0; z-index: 1001; background: rgba(15,23,42,.45);
}
#cookie-prefs {
    position: fixed; z-index: 1002; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: calc(100% - 32px); max-width: 41rem; max-height: 86vh; overflow: auto;
    background: #fff; border-radius: .75rem; box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
.cb-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid #eef1f5;
    position: sticky; top: 0; background: #fff; border-radius: .75rem .75rem 0 0;
}
.cb-head p { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0; }
.cb-close { border: 0; background: none; cursor: pointer; color: #64748b; font-size: 22px; line-height: 1; padding: 4px 8px; }
.cb-close:hover { color: #0f172a; }
.cb-body { padding: 6px 20px 8px; }
.cb-sec { padding: 14px 0; border-bottom: 1px solid #f1f5f9; }
.cb-sec:last-child { border-bottom: 0; }
.cb-sec-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cb-sec-title { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0; }
.cb-sec-text { font-size: 12.5px; line-height: 1.55; color: #475569; margin: 6px 0 0; }
.cb-badge-on { font-size: 11px; font-weight: 700; color: #15803d; background: #ecfdf3; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }

.cb-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.cb-switch input { opacity: 0; width: 0; height: 0; }
.cb-slider {
    position: absolute; inset: 0; border-radius: 99px; background: #cbd5e1;
    transition: background .15s; cursor: pointer;
}
.cb-slider:before {
    content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px;
    border-radius: 50%; background: #fff; transition: transform .15s;
    box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.cb-switch input:checked + .cb-slider { background: var(--acc-dark); }
.cb-switch input:checked + .cb-slider:before { transform: translateX(20px); }
.cb-switch input:disabled + .cb-slider { opacity: .55; cursor: not-allowed; }

.cb-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 11.5px; }
.cb-table th, .cb-table td { text-align: left; padding: 5px 8px; border: 1px solid #eef1f5; color: #475569; vertical-align: top; }
.cb-table th { background: #f8fafc; font-weight: 700; color: #334155; }

.cb-id { font-size: 10.5px; color: #94a3b8; margin: 10px 0 0; }
.cb-id span { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }

.cb-modal-actions {
    display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 20px 16px;
    border-top: 1px solid #eef1f5; position: sticky; bottom: 0; background: #fff;
    border-radius: 0 0 .75rem .75rem;
}
.cb-modal-actions .cb-btn { width: auto; flex: 1 1 30%; min-width: 150px; }

#cookie-badge {
    position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 999; width: 44px; height: 44px; border-radius: 50%;
    border: 1px solid #e0e7ee; background: #fff; color: var(--acc-dark);
    box-shadow: 0 2px 10px rgba(0,0,0,.12); display: flex; align-items: center;
    justify-content: center; cursor: pointer; padding: 0; opacity: .9;
    transition: opacity .15s, box-shadow .15s;
}
#cookie-badge:hover { opacity: 1; box-shadow: 0 3px 14px rgba(0,0,0,.18); }
#cookie-badge svg { width: 24px; height: 24px; }
@media (max-width: 575.98px) {
    #cookie-badge { width: 38px; height: 38px; left: 12px; }
    #cookie-badge svg { width: 21px; height: 21px; }
}
