/*!
 * curryzoom.de – Consent-Banner (Darstellung)
 * ---------------------------------------------------------------------------
 * Uebernommen aus der bisherigen cookie-banner.php. Geaendert wurde nur, was
 * rechtlich noetig war:
 *
 *  - "Ablehnen" war ein grauer Ghost-Button (#888) neben einem orangefarbenen
 *    "OK". Ablehnen muss genauso einfach und genauso sichtbar sein wie
 *    Zustimmen (Art. 4 Nr. 11, Art. 7 DSGVO; Orientierungshilfe der DSK zu
 *    Telemedien). Beide Buttons haben jetzt dieselbe Groesse, dieselbe
 *    Schriftstaerke und vergleichbaren Kontrast.
 *  - Button-Hoehe 32px -> 44px (Touch-Ziel, wie im Rest der Seite).
 */

#cc-wrapper {
    --cc-bg-base: #0a0a0a;
    --cc-bg-gloss: rgba(10, 10, 10, 0.92);
    --cc-brand-primary: #c43400;
    --cc-brand-hover: #cc3700;
    --cc-deny-bg: #3a3a3a;
    --cc-deny-hover: #4a4a4a;
    --cc-text-primary: #f0f0f0;
    --cc-text-secondary: #b8b8b8;
    --cc-border: 1px solid rgba(255, 255, 255, 0.08);
    --cc-shadow-elevation: 0 -2px 10px rgba(0, 0, 0, 0.2);
    --cc-glass-blur: blur(16px);
    --cc-radius: 3px;
    --cc-spacing-y: 12px;
    --cc-spacing-x: 20px;
    --cc-z-index: 2147483647;
    --cc-font-head: 'Oswald', sans-serif;
    --cc-font-body: 'Open Sans', sans-serif;

    all: initial;
    font-family: var(--cc-font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-size: 13px;
}

#cc-wrapper * { box-sizing: border-box }

.cc-banner {
    position: fixed; bottom: 0; left: 0; width: 100%;
    background: var(--cc-bg-gloss); border-top: var(--cc-border);
    backdrop-filter: var(--cc-glass-blur); -webkit-backdrop-filter: var(--cc-glass-blur);
    box-shadow: var(--cc-shadow-elevation); z-index: var(--cc-z-index);
    padding: var(--cc-spacing-y) var(--cc-spacing-x);
    display: flex; flex-direction: column; gap: 10px;
    transform: translateY(100%); opacity: 0;
    transition: transform .6s cubic-bezier(.16, 1, .3, 1), opacity .5s ease;
}
.cc-banner.cc-active { transform: translateY(0); opacity: 1 }
@media (prefers-reduced-motion: reduce) { .cc-banner { transition: none } }
@media (min-width: 900px) {
    .cc-banner { flex-direction: row; align-items: center; justify-content: center; gap: 2rem; padding: 12px 24px }
}

.cc-content { max-width: 900px; display: flex; align-items: center; gap: 12px }
@media (max-width: 899px) { .cc-content { flex-direction: column; align-items: flex-start; gap: 4px } }

.cc-title {
    font-family: var(--cc-font-head); font-weight: 700; text-transform: uppercase;
    font-size: .9rem; letter-spacing: .05em; color: var(--cc-text-primary);
    white-space: nowrap; flex-shrink: 0;
}
.cc-text { font-size: .8rem; line-height: 1.45; color: var(--cc-text-secondary); margin: 0 }
.cc-link { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); transition: all .2s }
.cc-link:hover { text-decoration-color: var(--cc-brand-primary) }

.cc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; width: 100% }
.cc-actions .cc-btn-options { grid-column: 1 / -1 }
@media (min-width: 900px) {
    .cc-actions { display: flex; width: auto; flex-shrink: 0 }
    .cc-actions .cc-btn-options { grid-column: auto }
}

/* Gleiche Geometrie fuer ALLE Buttons – kein Dark Pattern. */
.cc-btn {
    font-family: var(--cc-font-head); font-weight: 500; text-transform: uppercase;
    letter-spacing: .03em; font-size: .8rem; padding: 8px 18px; cursor: pointer;
    transition: all .2s ease; border-radius: 2px; white-space: nowrap; text-align: center;
    min-height: 44px; display: flex; align-items: center; justify-content: center;
}
.cc-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px }

.cc-btn-primary { background-color: var(--cc-brand-primary); color: #fff; border: 1px solid var(--cc-brand-primary) }
.cc-btn-primary:hover { background-color: var(--cc-brand-hover); box-shadow: 0 2px 8px rgba(230, 62, 0, .25) }

/* "Ablehnen" – gleiche Groesse, gleiche Schriftstaerke, voll deckend. */
.cc-btn-deny { background-color: var(--cc-deny-bg); color: #fff; border: 1px solid rgba(255, 255, 255, .35) }
.cc-btn-deny:hover { background-color: var(--cc-deny-hover); border-color: #fff }

.cc-btn-secondary { background: rgba(255, 255, 255, .04); color: #ddd; border: 1px solid rgba(255, 255, 255, .18) }
.cc-btn-secondary:hover { border-color: #fff; background: rgba(255, 255, 255, .09); color: #fff }

.cc-modal-overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(8px);
    z-index: calc(var(--cc-z-index) + 10); display: none; justify-content: center;
    align-items: center; opacity: 0; transition: opacity .3s ease;
}
.cc-modal-overlay.cc-open { display: flex; opacity: 1 }
.cc-modal {
    background: #141414; width: 95%; max-width: 500px; border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, .6); max-height: 85vh; overflow-y: auto;
    display: flex; flex-direction: column; color: var(--cc-text-primary); border-radius: 4px;
}
.cc-modal-header {
    padding: 1rem 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, .08);
    display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, .02);
}
.cc-modal-title { font-family: var(--cc-font-head); font-size: 1.1rem; margin: 0; text-transform: uppercase; letter-spacing: .05em; color: #fff }
.cc-close { background: none; border: none; color: #999; font-size: 1.5rem; cursor: pointer; padding: 0 8px; line-height: 1; min-height: 44px }
.cc-close:hover { color: #fff }
.cc-modal-body { padding: 1.5rem }
.cc-option { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255, 255, 255, .05) }
.cc-option:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0 }
.cc-opt-title { font-family: var(--cc-font-head); font-size: .9rem; font-weight: 500; color: #e0e0e0; margin: 0 0 2px }
.cc-opt-desc { font-size: .75rem; color: #9a9a9a; margin: 0; max-width: 95%; line-height: 1.35 }

.cc-switch { position: relative; display: inline-block; width: 36px; height: 20px; flex-shrink: 0; margin-left: 10px }
.cc-switch input { opacity: 0; width: 0; height: 0 }
.cc-slider { position: absolute; cursor: pointer; inset: 0; background-color: #333; transition: .3s; border-radius: 2px }
.cc-slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: #777; transition: .3s; border-radius: 1px }
.cc-switch input:checked + .cc-slider { background-color: rgba(230, 62, 0, .15); border: 1px solid var(--cc-brand-primary) }
.cc-switch input:checked + .cc-slider:before { transform: translateX(16px); background-color: var(--cc-brand-primary) }
.cc-switch input:disabled + .cc-slider { opacity: .4 }
.cc-switch input:focus-visible + .cc-slider { outline: 3px solid #fff; outline-offset: 2px }
@media (prefers-reduced-motion: reduce) { .cc-slider, .cc-slider:before { transition: none } }

.cc-modal-footer { padding: 1rem 1.5rem; background: rgba(255, 255, 255, .02); border-top: 1px solid rgba(255, 255, 255, .08); display: grid; gap: 8px }

.cc-reopen {
    position: fixed; bottom: 15px; left: 15px; width: 44px; height: 44px;
    background: rgba(10, 10, 10, .7); backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, .15); color: #aaa; display: none;
    align-items: center; justify-content: center; cursor: pointer; z-index: 1000;
    transition: all .2s; font-size: 1.1rem; border-radius: 50%;
}
.cc-reopen.cc-visible { display: flex }
.cc-reopen:hover { transform: scale(1.1); color: var(--cc-brand-primary); border-color: var(--cc-brand-primary); background: #000 }
.cc-reopen:focus-visible { outline: 3px solid #fff; outline-offset: 2px }
@media (prefers-reduced-motion: reduce) { .cc-reopen { transition: none } .cc-reopen:hover { transform: none } }
