/* *****************************************************

    Custom Stylesheet – Galea

    Angepasst für die neue Version des Control Themes.
    Theme-Dateien möglichst nicht direkt verändern.

***************************************************** */


/* =====================================================
   1. Grundlayout und Typografie
   ===================================================== */

html {
    font-size: initial;
}

body {
    font-size: 0.85rem;
    line-height: 1.5;
}


/* =====================================================
   2. Auswahl eines Kundenkontos
   ===================================================== */

.select-account .list-item {
    position: relative;
    display: block;
    padding: 10px 15px;
    margin-bottom: -1px;
    background-color: #fff;
    border: 1px solid #ddd;
}


/* =====================================================
   3. Header und Branding
   ===================================================== */

#header {
    height: auto;
    background-color: #40505a;
}

#header .brand {
    width: 245px;
    max-width: 50%;
    height: 84px;
}

#header .logo {
    height: 84px;
}

#header .brand img,
#header .logo img {
    width: auto;
    max-width: 100%;
    height: 84px;
    object-fit: contain;
}


/* =====================================================
   4. Obere Galea-Navigation
   ===================================================== */

.custom-main-navbar {
    width: 100%;
    background-color: #fff;
}

.custom-main-navbar .user-links {
    align-items: center;
    min-height: 30px;
    margin: 0;
}

.custom-main-navbar .nav-link {
    display: block;
    padding: 0.2rem 16px;
    color: #40505a;
    font-size: 0.831rem;
    line-height: 1.5;
    text-decoration: none;
    transition:
        color 0.15s ease-in-out,
        background-color 0.15s ease-in-out,
        border-color 0.15s ease-in-out;
}

.custom-main-navbar .nav-link:hover,
.custom-main-navbar .nav-link:focus {
    color: #3598db;
    text-decoration: none;
}


/* =====================================================
   5. Navigation-Hilfsklassen
   ===================================================== */

.custom-main-navbar .nav,
.custom-main-navbar .user-links {
    display: flex;
    flex-wrap: wrap;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}

.custom-main-navbar .justify-content-end {
    justify-content: flex-end;
}


/* =====================================================
   6. Hauptinhalt ohne Sidebar
   ===================================================== */

.no-sidebar .main-content-wrapper {
    margin-left: auto;
    margin-right: auto;
}


/* =====================================================
   7. Linke Sidebar
   ===================================================== */

.sidebar-left {
    background: transparent;
}

.sidebar-left .nav-pills > li {
    float: left;
    width: 100%;
}

.sidebar-left .nav-pills > li.active > a,
.sidebar-left .nav-pills > li.active > a:focus,
.sidebar-left .nav-pills > li.active > a:hover {
    color: #000;
    background-color: transparent;
    border-left: 4px solid #3598db;
}

.sidebar-left .nav > li > a:hover,
.sidebar-left .nav > li > a:focus {
    color: #fff;
    background-color: #40505a;
    border-left: 4px solid #3598db;
}

.sidebar-left a {
    color: #40505a;
}

.sidebar-left a:focus,
.sidebar-left a:hover {
    text-decoration: none;
}

.sidebar-left .nav .nav-sub {
    display: none;
    padding: 0;
    list-style: none;
    background: transparent;
}

.sidebar-left .active > a,
.sidebar-left .active > a:focus,
.sidebar-left .active > a:hover {
    color: #000;
}


/* =====================================================
   8. Warenkorb
   ===================================================== */

#order-standard_cart .cart-body {
    width: 95% !important;
    max-width: none;
    margin-right: auto;
    margin-left: auto;
}


/* =====================================================
   9. Galea-Containerbreiten
   ===================================================== */

/*
   Nicht global alle WHMCS-.container überschreiben.
   Die Breite wird nur auf die von Header, Inhalt und
   Footer verwendeten Container angewendet.
*/

#header > .container,
.custom-main-navbar > .container,
#container > .container,
#footer .container {
    width: 100%;
    padding-right: 12px;
    padding-left: 12px;
    margin-right: auto;
    margin-left: auto;
}

@media (min-width: 576px) {
    #header > .container,
    .custom-main-navbar > .container,
    #container > .container,
    #footer .container {
        max-width: 540px;
    }
}

@media (min-width: 768px) {
    #header > .container,
    .custom-main-navbar > .container,
    #container > .container,
    #footer .container {
        max-width: 720px;
    }
}

@media (min-width: 992px) {
    #header > .container,
    .custom-main-navbar > .container,
    #container > .container,
    #footer .container {
        max-width: 960px;
    }
}

@media (min-width: 1200px) {
    #header > .container,
    .custom-main-navbar > .container,
    #container > .container,
    #footer .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    #header > .container,
    .custom-main-navbar > .container,
    #container > .container,
    #footer .container {
        max-width: 1320px;
    }
}


/* =====================================================
   10. Allgemeine Links
   ===================================================== */

a,
a:link,
a:visited,
a:active {
    color: #40505a;
}

a:hover,
a:focus {
    color: #3598db;
}


/* =====================================================
   11. Responsive Header
   ===================================================== */

@media (max-width: 767px) {
    #header .brand {
        width: auto;
        max-width: calc(100% - 120px);
        height: 64px;
    }

    #header .logo,
    #header .brand img,
    #header .logo img {
        height: 64px;
    }

    .custom-main-navbar .user-links {
        justify-content: center;
    }

    .custom-main-navbar .nav-link {
        padding-right: 8px;
        padding-left: 8px;
    }

    #order-standard_cart .cart-body {
        width: 100% !important;
    }
}


/* =====================================================
   12. Kleine Darstellungsverbesserungen
   ===================================================== */

img {
    max-width: 100%;
}

#footer {
    width: 100%;
}

#footer .panel-body {
    padding-right: 0;
    padding-left: 0;
}
