/* EUL.CH – Farben aus dem Logo (Blau #3567bb, Rot #ff120a) für Skin elastic */
:root { --eul-blau: #3567bb; --eul-blau-dunkel: #2a5398; --eul-blau-hell: #6f95d6; --eul-rot: #ff120a; }

/* Schaltflächen */
.btn-primary, .btn-primary:focus, .btn-primary.focus,
.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background-color: var(--eul-blau) !important;
    border-color: var(--eul-blau) !important;
    color: #fff !important;
}
.btn-primary:hover { background-color: var(--eul-blau-dunkel) !important; border-color: var(--eul-blau-dunkel) !important; }
.btn-primary:focus, .btn-primary.focus { box-shadow: 0 0 0 .2rem rgba(53,103,187,.4) !important; }

/* Eingabefelder mit Fokus */
.form-control:focus, input:focus, select:focus, textarea:focus,
.input-group:focus-within .input-group-text {
    border-color: var(--eul-blau) !important;
    box-shadow: 0 0 0 .2rem rgba(53,103,187,.25) !important;
}
.custom-control-input:checked ~ .custom-control-label::before,
input[type=checkbox].form-check-input:checked, input.custom-switch:checked {
    background-color: var(--eul-blau) !important;
    border-color: var(--eul-blau) !important;
}

/* Links */
a, a:hover, .link, #login-footer a { color: var(--eul-blau); }

/* Anmeldeseite: schmale Akzentlinie in Rot wie das Schweizerkreuz */
body.task-login #layout-content { border-top: 3px solid var(--eul-rot); }
body.task-login #login-footer { color: #6c757d; }

/* Auswahl/Markierungen im Postfach */
.listing li.selected, .listing tr.selected td, table.records-table tr.selected td,
.listing li.selected > a, #layout-menu .selected a, .menu .selected a {
    color: var(--eul-blau) !important;
}
table.records-table tr.selected td, .listing li.selected { background-color: rgba(53,103,187,.12) !important; }
#layout-menu a.compose, .toolbar a.compose { color: var(--eul-blau) !important; }

/* Dunkelmodus: helleres Blau für Text, Schaltflächen bleiben im Logo-Blau */
html.dark-mode a, html.dark-mode .link, html.dark-mode #login-footer a,
html.dark-mode .listing li.selected, html.dark-mode .listing tr.selected td,
html.dark-mode #layout-menu .selected a, html.dark-mode #layout-menu a.compose {
    color: var(--eul-blau-hell) !important;
}
html.dark-mode table.records-table tr.selected td, html.dark-mode .listing li.selected { background-color: rgba(111,149,214,.18) !important; }
