/*
 * CookieHint and Consent – Peter Juhle Premium Skin
 * Stand: 16.09.2026
 *
 * Einsatz:
 * /plugins/system/cookiehint/css/style-juhle-premium.css
 *
 * Der Skin veraendert ausschliesslich die Optik. Position, Consent-Logik,
 * Kategorien, Schaltflaechen und das individuelle PHP-Layout bleiben erhalten.
 */

#redim-cookiehint.redim-tpl {
    --redim-cc-skin-btn-bg: #145369 !important;
    --redim-cc-skin-btn-fg: #ffffff !important;
    --redim-cc-skin-accent: #145369 !important;
    --redim-cc-skin-surface: #eef8fb !important;
    --redim-cc-skin-surface-shadow: 0 -12px 24px -18px rgba(20, 83, 105, .38) !important;
    --redim-cc-skin-divider: #b8dce7 !important;
    --redim-cc-skin-knob: #ffffff !important;
    --redim-cc-skin-muted: #496b78 !important;

    background: #eef8fb !important;
    background: linear-gradient(135deg, #f8fcfd 0%, #eef8fb 58%, #e4f4f8 100%) !important;
    color: #173f4e !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 -10px 30px rgba(20, 83, 105, .14) !important;
}

/* Deutliche, aber ruhige Trennung vom Seiteninhalt. */
#redim-cookiehint-bottom #redim-cookiehint.redim-tpl {
    border-top: 1px solid #8fc8da !important;
}

#redim-cookiehint-top #redim-cookiehint.redim-tpl {
    border-bottom: 1px solid #8fc8da !important;
    box-shadow: 0 10px 30px rgba(20, 83, 105, .14) !important;
}

/* Falls das Layout spaeter als Dialog verwendet wird. */
#redim-cookiehint-modal #redim-cookiehint.redim-tpl {
    border: 1px solid #b8dce7 !important;
    border-radius: 18px !important;
    box-shadow: 0 22px 60px rgba(20, 83, 105, .22) !important;
}

#redim-cookiehint.redim-tpl .redim-cc-headline {
    color: #145369 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: .075em !important;
    text-transform: uppercase !important;
}

#redim-cookiehint.redim-tpl .redim-cc-content {
    color: #244f5f !important;
    font-size: 13px !important;
    line-height: 1.58 !important;
}

#redim-cookiehint.redim-tpl .redim-cc-btn {
    background: #145369 !important;
    color: #ffffff !important;
    border: 1px solid #145369 !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 12px rgba(20, 83, 105, .16) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    letter-spacing: .045em !important;
    text-transform: uppercase !important;
    transition: background-color .18s ease, border-color .18s ease,
                box-shadow .18s ease, transform .18s ease !important;
}

/* Gleiche Gestaltung fuer Akzeptieren und Ablehnen – bewusst ohne Dark Pattern. */
#redim-cookiehint#redim-cookiehint #cookiehintsubmit,
#redim-cookiehint#redim-cookiehint #cookiehintsubmitno,
#redim-cookiehint#redim-cookiehint .redim-cc-accept-all,
#redim-cookiehint#redim-cookiehint .redim-cc-reject,
#redim-cookiehint#redim-cookiehint .redim-cc-save {
    background: #145369 !important;
    color: #ffffff !important;
    border-color: #145369 !important;
}

#redim-cookiehint#redim-cookiehint .redim-cc-btn:hover {
    background: #0f4558 !important;
    color: #ffffff !important;
    border-color: #0f4558 !important;
    box-shadow: 0 6px 16px rgba(20, 83, 105, .22) !important;
    transform: translateY(-1px) !important;
}

#redim-cookiehint#redim-cookiehint .redim-cc-btn:active {
    transform: translateY(0) !important;
}

#redim-cookiehint.redim-tpl #cookiehintinfo {
    color: #496b78 !important;
    font-size: 11px !important;
}

#redim-cookiehint.redim-tpl #cookiehintinfo a,
#redim-cookiehint.redim-tpl .redim-cc-watermark a {
    color: #145369 !important;
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-underline-offset: 2px !important;
}

#redim-cookiehint.redim-tpl #cookiehintinfo a:hover,
#redim-cookiehint.redim-tpl .redim-cc-watermark a:hover {
    color: #be4d25 !important;
}

#redim-cookiehint.redim-tpl .redim-cc-cat {
    background: rgba(255, 255, 255, .46) !important;
    border: 1px solid #c7e2ea !important;
    border-radius: 10px !important;
}

#redim-cookiehint.redim-tpl .redim-cc-cat + .redim-cc-cat {
    margin-top: 8px !important;
}

#redim-cookiehint.redim-tpl .redim-cc-cat-desc,
#redim-cookiehint.redim-tpl .redim-cc-detail-toggle,
#redim-cookiehint.redim-tpl .redim-cc-cat-count,
#redim-cookiehint.redim-tpl .redim-cc-cookie-meta,
#redim-cookiehint.redim-tpl .redim-cc-watermark {
    color: #496b78 !important;
}

#redim-cookiehint.redim-tpl .redim-cc-cookie-row,
#redim-cookiehint.redim-tpl .redim-cc-cookies,
#redim-cookiehint.redim-tpl .redim-cc-noscript {
    color: #244f5f !important;
}

#redim-cookiehint.redim-tpl .redim-cc-slider {
    background-color: #6f8790 !important;
    border-radius: 999px !important;
}

#redim-cookiehint.redim-tpl .redim-cc-slider::before {
    background: #ffffff !important;
    border-radius: 50% !important;
}

#redim-cookiehint.redim-tpl .redim-cc-switch input:checked + .redim-cc-slider,
#redim-cookiehint.redim-tpl .redim-cc-switch input[aria-disabled="true"] + .redim-cc-slider {
    background-color: #145369 !important;
}

/* Gut sichtbarer Tastaturfokus in der Akzentfarbe der Website. */
#redim-cookiehint.redim-tpl a:focus-visible,
#redim-cookiehint.redim-tpl button:focus-visible,
#redim-cookiehint.redim-tpl .redim-cc-switch input:focus-visible + .redim-cc-slider {
    outline: 3px solid #be4d25 !important;
    outline-offset: 3px !important;
}

/* Der untere Balken bleibt bewusst kompakt und nicht aufdringlich. */
#redim-cookiehint-bottom #redim-cookiehint.redim-tpl-flyout-right,
#redim-cookiehint-top #redim-cookiehint.redim-tpl-flyout-right {
    padding: 14px 28px !important;
}

#redim-cookiehint-bottom #redim-cookiehint .redim-cc-head,
#redim-cookiehint-top #redim-cookiehint .redim-cc-head {
    margin-bottom: 7px !important;
}

#redim-cookiehint-bottom #redim-cookiehint .redim-cc-content,
#redim-cookiehint-top #redim-cookiehint .redim-cc-content {
    margin: 0 0 10px !important;
}

#redim-cookiehint-bottom #redim-cookiehint .redim-cc-cookiebuttons,
#redim-cookiehint-top #redim-cookiehint .redim-cc-cookiebuttons {
    gap: 10px !important;
}

@media (min-width: 700px) {
    #redim-cookiehint-bottom #redim-cookiehint #cookiehintinfo,
    #redim-cookiehint-top #redim-cookiehint #cookiehintinfo {
        margin-top: 3px !important;
        text-align: left !important;
    }
}

@media (max-width: 699px) {
    #redim-cookiehint-bottom #redim-cookiehint.redim-tpl-flyout-right,
    #redim-cookiehint-top #redim-cookiehint.redim-tpl-flyout-right {
        padding: 15px 20px 16px !important;
    }

    #redim-cookiehint.redim-tpl .redim-cc-headline {
        font-size: 14px !important;
    }

    #redim-cookiehint.redim-tpl .redim-cc-content {
        font-size: 12.5px !important;
        line-height: 1.52 !important;
    }

    #redim-cookiehint-bottom #redim-cookiehint #cookiehintinfo,
    #redim-cookiehint-top #redim-cookiehint #cookiehintinfo {
        margin-top: 4px !important;
        text-align: center !important;
    }
}

@media (max-width: 359px) {
    #redim-cookiehint-bottom #redim-cookiehint .redim-cc-btn,
    #redim-cookiehint-top #redim-cookiehint .redim-cc-btn {
        width: 100% !important;
        flex-basis: 100% !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    #redim-cookiehint.redim-tpl .redim-cc-btn {
        transition: none !important;
    }
}
