/* ============================================================
   Stadtwerke Mühlhausen – Portal-Theme (kid 77 · muehlhausen)
   Corporate Design (Stand 16.04.2015):
     Blau  #607DBF  (Pantone 300 / HKS 39)  – STADTWERKE
     Grün  #B3D736  (Pantone 375 / HKS 66)  – MÜHLHAUSEN / Akzent
     Grau  #A0A1A1  (50 % Schwarz)          – Bildmarke / Subline
   ============================================================ */

:root {
    --bsw-primary: #607DBF;          /* Stadtwerke-Blau */
    --primary: #607DBF;
    --bsw-secondary: #B3D736;        /* Stadtwerke-Grün */
    --bsw-green: #B3D736;
    --bsw-green-dark: #9dbe28;
    --bsw-grey: #A0A1A1;
    --bsw-primary-hover: #4e6aa8;    /* dunkleres Blau für Hover */
    --bsw-border-color: #A0A1A1;
    --bsw-grey-light: #eaeaea;

    --bsw-transition: all .3s ease;

    --bsw-text-color: #37476f;       /* dunkles Markenblau, gut lesbar */
}

html .bg-color-primary {
    background-color: var(--bsw-primary) !important;
}

html .text-color-dark, html .text-dark {
    color: var(--bsw-text-color) !important;
}

html .table {
    color: var(--bsw-text-color) !important;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--bsw-text-color) !important;
}

p {
    color: var(--bsw-text-color) !important;
}

body {
    color: var(--bsw-text-color) !important;
}

/* theme.css – Links */
a {
    color: var(--bsw-primary-hover);
    transition: var(--bsw-transition);
    text-decoration: underline;
}
a:hover {
    color: var(--bsw-primary);
}

/* all.min.css – Icons */
a .fa {
    color: var(--bsw-primary);
    transition: color .3s ease;
}
a:hover .fa {
    color: var(--bsw-primary-hover);
}

/* theme-elements.css – Buttons */
.btn {
    border-radius: 4px;
}
.btn.btn-xs {
    border-radius: 2px;
}
.btn.btn-circle {
    border-radius: 10% !important;
}
.btn-info {
    background-color: var(--bsw-primary-hover);
    border-color: var(--bsw-primary-hover);
    color: #ffffff;
}
.btn-danger {
    background-color: var(--bsw-grey);
    border-color: var(--bsw-grey);
    color: #ffffff;
}
.btn-info:hover, .btn-info.hover,
.btn-danger:hover, .btn-danger.hover {
    background-color: var(--bsw-primary);
    border-color: var(--bsw-primary);
    color: #FFF;
}

/* default.css */
html.boxed .body {
    border-top-color: var(--bsw-green);
}
button, input, optgroup, select, textarea {
    accent-color: var(--bsw-primary-hover);
}
html button.btn {
    border-radius: 4px !important;
}
html .btn-primary {
    background-color: var(--bsw-primary);
    border-color: var(--bsw-primary);
}

html .btn-success {
    background-color: var(--bsw-primary);
    border-color: var(--bsw-primary);
}

html body .tabs .nav-tabs .nav-link:hover, html.dark body .tabs .nav-tabs .nav-link:hover, html body .tabs .nav-tabs .nav-link:focus, html.dark body .tabs .nav-tabs .nav-link:focus, html body .tabs .nav-tabs .nav-link.active, html.dark body .tabs .nav-tabs .nav-link.active, html body .tabs .nav-tabs.nav-justified .nav-link.active, html.dark body .tabs .nav-tabs.nav-justified .nav-link.active, html body .tabs .nav-tabs.nav-justified .nav-link:hover, html.dark body .tabs .nav-tabs.nav-justified .nav-link:hover, html body .tabs .nav-tabs.nav-justified .nav-link:focus, html.dark body .tabs .nav-tabs.nav-justified .nav-link:focus {
    border-top-color: var(--bsw-primary);
}
html body .tabs .nav-tabs .nav-link, html.dark body .tabs .nav-tabs .nav-link, html body .tabs .nav-tabs .nav-link:hover, html.dark body .tabs .nav-tabs .nav-link:hover, html body .tabs .nav-tabs .nav-link.active, html.dark body .tabs .nav-tabs .nav-link.active {
    color: var(--bsw-primary);
}

/* custom.css – Kopf/Fuß */
.title {
    background-color: var(--bsw-primary);
}
/* Subtitle in Markengrün mit dunkelblauer Schrift (kontraststark) */
html .subtitle {
    background-color: var(--bsw-green) !important;
}
html .subtitle h4 {
    color: var(--bsw-text-color) !important;
}

.footer {
    background-color: var(--bsw-primary) !important;
}
.footer-copyright {
    background-color: var(--bsw-primary) !important;
}

/* grüner Trenner als Markenakzent */
html .divider_m {
    border-bottom-color: var(--bsw-green);
}

html .progress-bar-primary {
    background-color: var(--bsw-primary);
}

html .btn-tertiary.disabled:not(.bg-transparent), html .btn-tertiary:disabled:not(.bg-transparent) {
    background-color: var(--bsw-primary);
}
html .btn-tertiary.disabled, html .btn-tertiary:disabled {
    border-color: var(--bsw-primary);
}

html .btn-primary:hover:not(.bg-transparent), html .btn-primary.hover:not(.bg-transparent),
html .btn-primary:active:not(.bg-transparent), html .btn-primary.active:not(.bg-transparent),
html .btn-primary:focus:not(.bg-transparent), html .btn-primary.focus:not(.bg-transparent) {
    background-color: var(--bsw-primary-hover) !important;
    border-color: var(--bsw-primary-hover) !important;
}
html .btn-outline.btn-primary {
    color: var(--bsw-primary);
    border-color: var(--bsw-primary);
}
html .bg-color-light-scale-1 {
    background-color: transparent !important;
}

input[type="text"],
input[type="password"],
input[type="datetime"],
input[type="datetime-local"],
input[type="date"],
input[type="month"],
input[type="time"],
input[type="week"],
input[type="number"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="color"],
textarea {
    border-radius: 2px;
    border-color: var(--bsw-grey);
}
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
textarea:focus {
    border-color: var(--bsw-primary);
    box-shadow: 0 4px 10px 0 rgba(0, 0, 0, .1);
}

select, .form-select {
    border-radius: 2px !important;
    border-color: var(--bsw-grey);
}
