/* GENERAL CSS
    ============================= */

html, body {
    color: #646464;
    height: 100%;
    font-size: 14px;
    font-family: "Open Sans";
    padding: 0;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
}

.responsive-header {
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: cover !important;
    min-height: 25vw;
}

.title-sms-info {
    color: #a4a4a4 !important;
}

.valign-middle {
    vertical-align: middle;
}

.font-s18 {
    font-size: 18px !important;
}

#welcometext img {
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.radio-inline.no_indent,
.radio-inline.no_indent + .radio-inline.no_indent,
.checkbox-inline.no_indent,
.checkbox-inline.no_indent + .checkbox-inline.no_indent {
    margin-left: 0;
    margin-top: 0;
    margin-right: 10px;
}

.radio-inline.no_indent:last-child,
.checkbox-inline.no_indent:last-child {
    margin-right: 0;
}

.word-break-all {
    word-wrap: break-word;
}

.main-text {
    padding: 5px;
    color: #fff;
    background-color: #5c90d2;
}

span.main-text:empty {
    display: none;
}

#page-container {
    margin: 0 auto;
    width: 100%;
    min-width: 320px;
}

.archive-days-span>input {
    border-left: 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}

/* MOBILE CSS
    ============================= */

@media only screen and (max-width: 991px) {
    .mobile-btn-fix {
        display: flex;
        flex-direction: column;
    }

    .mobile-btn-margin {
        margin: 0 0 10px !important;
    }

    .mobile-whitespace {
        white-space: normal;
    }

    .mobile-btn-block {
        display: block !important;
        width: 100% !important;
    }
}

@media only screen and (max-width: 768px) {

    .mobile-top-push {
        margin-top: 1rem !important;
    }

    .mobile-left-push {
        margin-left: 1rem !important;
    }

    .mobile-line-height {
        line-height: 1.3em !important;
    }

    .mobile-border {
        border: 1px solid grey !important;
    }

    .btn, .btn-group-vertical .btn {
        display: block;
        width: 100%;
        margin: 5px 0 5px !important;
    }

    .btn-group-vertical {
        display: block;
    }
}

@media only screen and (max-width: 600px) {
    .mobile-header-img {
        background-size: 100% !important;
        background-position: top center !important;
    }
}

/* ADDITIONAL BS4 CSS
    ============================= */

.container-fluid {
    flex-grow: 1;
}

.custom-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.overflow-wordbreak {
    overflow-wrap: break-word;
    word-break: break-all;
}

/* LINKS
    ============================= */

.fancy-nav-link:hover {
    border-radius: 5px;
    background-color: white;
    color: #5c90d2 !important;
}

/* BACKGROUNDS
    ============================= */

.bg-gray {
    background-color: #eeeeee;
}

.bg-lightblue {
    background-color: #EFF6FC;
}

/* CHECKBOX SWITCHES
    Source: https://bootsnipp.com/snippets/z8b8y
    ============================= */

.switch input {
    display: none;
}

.switch {
    display: inline-block;
    width: 60px;
    height: 30px;
    margin: 8px;
    transform: translateY(50%);
    position: relative;
}

.slider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 30px;
    box-shadow: 0 0 0 2px #646464, 0 0 4px #646464;
    cursor: pointer;
    border: 4px solid transparent;
    overflow: hidden;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: #646464;
    border-radius: 30px;
    transform: translateX(-30px);
    transition: .4s;
}

input:checked + .slider:before {
    transform: translateX(30px);
    background: var(--primary);
}

input:checked + .slider {
    box-shadow: 0 0 0 2px var(--primary), 0 0 2px var(--primary);
}

.slider-always-on {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 30px;
    box-shadow: 0 0 0 2px var(--gray), 0 0 2px var(--gray);
    cursor: pointer;
    border: 4px solid transparent;
    overflow: hidden;
    transition: .4s;
}

.slider-always-on:before {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: var(--gray);
    border-radius: 30px;
    transform: translateX(30px);
    transition: .4s;
}

/* CUSTOM FILE UPLOAD BUTTON
    ============================= */

.custom-file-input ~ .custom-file-label::after {
    content: "Auswählen";
}

.input-disabled {
    opacity: .5;
    cursor: not-allowed;
}

/* INPUT RADIO BUTTONS SUBSCRIPTION FORM
    ============================= */

.index-labels {
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0);
    border: 1px solid rgba(100, 100, 100, 0.25);
    text-shadow: none;
}

.index-labels:hover {
    box-shadow: 0 0 5px rgba(20, 20, 20, 0.2);
    background-color: var(--primary);
    color: #fff;
}

.index-labels {
    position: relative;
    display: block;
    cursor: pointer;
}

.index-inputs:checked + .index-labels {
    background-color: var(--primary);
    color: #fff;
}

.index-inputs:checked + .index-labels:after {
    font-family: "Font Awesome 5 Pro";
    content: "\f00c";
    color: var(--primary);
    width: 1.5em;
    font-size: 1em;
    z-index: 999;
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #fff;
    text-align: center;
    border-radius: 50px;
}

/* MOBILE TABLES
    ============================= */

@media screen and (max-width: 800px) {
    table {
        border: 0;
    }

    table caption {
        font-size: 1.3em;
    }

    tr td:first-child {
        background-color: var(--primary);
        color: #fff;
    }

    table tbody {
        margin-bottom: 10px;
    }

    table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    table tr {
        border-bottom: 3px solid #ddd;
        display: block;
        margin-bottom: .625em;
    }

    table td {
        border-bottom: 1px solid #ddd;
        display: grid;
        font-size: .8em;
        text-align: left !important;
    }

    table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
    }

    table td:last-child {
        border-bottom: 0;
    }
}