/* Einwilligungsbanner (CMP). Gehoert zu resources/views/partials/cmp-body.blade.php und
   wird von dort geladen, wie consent.js auch. Eigene Farbwerte: das Banner muss auch
   ohne die Token-Ebene der Anwendung stehen, es erscheint vor jeder Entscheidung und auf
   jeder Huelle (v1, v2, Landing, Rechtstexte). Heller und dunkler Modus beide hier.
   Verschoben aus der Vorlage am 14.11.2026 (FL8, Projektkonvention "CSS in eigene Dateien"). */
.cmp-banner { position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 2147483000;
    background: #ffffff; color: #111827; border: 1px solid #e5e7eb; border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.28); max-width: 760px; margin-inline: auto;
    max-height: calc(100vh - 32px); overflow-y: auto; overscroll-behavior: contain;
    animation: cmpSlideUp .35s cubic-bezier(.4,0,.2,1); }
.cmp-banner.is-hiding { animation: cmpSlideDown .25s ease-in forwards; }
@keyframes cmpSlideUp   { from { transform: translateY(30px); opacity: 0 } to { transform: translateY(0); opacity: 1 } }
@keyframes cmpSlideDown { from { transform: translateY(0);    opacity: 1 } to { transform: translateY(30px); opacity: 0 } }
.cmp-banner-inner  { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px }
.cmp-banner-title  { margin: 0 0 4px; font-size: 1.125rem; font-weight: 700 }
.cmp-banner-text   { margin: 0; font-size: .9rem; line-height: 1.55; color: #4b5563 }
.cmp-banner-link   { color: #2563eb; font-weight: 500; text-decoration: underline }
.cmp-banner-link:hover { text-decoration: none }
.cmp-options-panel[hidden] { display: none }
.cmp-cats { display: grid; gap: 8px; border: 0; padding: 0; margin: 0 }
@media (min-width: 768px) { .cmp-cats { grid-template-columns: repeat(3, 1fr) } }
.cmp-cat { display: flex; gap: 10px; padding: 10px 12px; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: .85rem; align-items: flex-start }
.cmp-cat input     { margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; accent-color: #2563eb }
.cmp-cat-body      { display: flex; flex-direction: column; gap: 2px }
.cmp-cat-name      { font-weight: 600 }
.cmp-cat-desc      { color: #6b7280; font-size: .78rem; line-height: 1.4 }
.cmp-options-save  { display: block; margin: 8px 0 0 auto }
.cmp-banner-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.cmp-options-toggle { min-height: 44px; padding: 8px 0; border: 0; background: none;
    color: #2563eb; cursor: pointer; font: inherit; font-size: .9rem; font-weight: 600;
    text-decoration: underline; text-underline-offset: 3px }
.cmp-options-toggle:hover { text-decoration: none }
.cmp-banner-actions{ display: flex; gap: 8px; justify-content: flex-end }
.cmp-btn { padding: 10px 18px; border-radius: 8px; border: 1px solid transparent; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; min-height: 44px }
.cmp-btn-secondary       { background: transparent; color: #111827; border-color: #e5e7eb }
.cmp-btn-secondary:hover { background: #f9fafb }
:where(.cmp-prefs-link) { background: none; border: none; padding: 0; color: inherit; cursor: pointer; font: inherit; text-decoration: none }
:where(.cmp-prefs-link):hover { color: #2563eb; text-decoration: underline }
.cmp-banner-title:focus { outline: none }
@supports (height: 100dvh) {
    .cmp-banner { max-height: calc(100dvh - 32px) }
}
@media (max-width: 480px) {
    .cmp-banner { bottom: 8px; left: 8px; right: 8px; max-height: calc(100vh - 16px) }
    .cmp-banner-inner { padding: 14px; gap: 10px }
    .cmp-banner-title { font-size: 1rem }
    .cmp-banner-text { font-size: .85rem; line-height: 1.45 }
    .cmp-cat { padding: 8px 10px }
    .cmp-options-save { width: 100% }
    .cmp-banner-footer { display: flex; flex-direction: column; align-items: stretch; gap: 8px }
    .cmp-options-toggle { align-self: flex-start; min-height: 40px; font-size: .85rem }
    .cmp-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .cmp-btn { padding-inline: 10px; font-size: .8rem; white-space: normal }
}
@supports (height: 100dvh) {
    @media (max-width: 480px) {
        .cmp-banner { max-height: calc(100dvh - 16px) }
    }
}
@media (prefers-color-scheme: dark) {
    .cmp-banner { background: #111827; color: #f3f4f6; border-color: #374151 }
    .cmp-banner-text  { color: #d1d5db }
    .cmp-cat          { border-color: #374151 }
    .cmp-cat-desc     { color: #9ca3af }
    .cmp-options-toggle { color: #60a5fa }
    .cmp-btn-secondary{ color: #f3f4f6; border-color: #4b5563 }
    .cmp-btn-secondary:hover { background: #1f2937 }
}
@media print { .cmp-banner { display: none } }
