/*  Author:   Martin Stettler (https://dieweberei.ch/)
    Version:  07/05/2021 // based on BS v5.0
*/

/* ==========================================================================
   DEV STYLES
   ========================================================================== 
nav,
.unit
 {
    border: 1px dashed #f227f9;
}

.navbar-brand,
.navbar-nav .nav-link
 {
    border: 1px solid #f227f9;
}*/

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

/* Bootstrap CSS */
html {
    font-family: sans-serif;
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -ms-overflow-style: scrollbar;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    scroll-behavior: smooth; /* do not delete */
}

body {
    margin: 0;
    font-family: 'Zilla Slab', serif;
    font-size: 18px;
    font-size: calc(16px + (18 - 16) * (100vw - 320px)/(1440 - 320));
    font-weight: 300;
    line-height: 1.5;
    color: #000;
    text-align: left;
    background-color: #fff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
        hyphens: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Istok Web', sans-serif;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
        hyphens: auto;
}

h1,
h2,
.news-wrap h3 {
    color: #3d6eb0;
    text-transform: uppercase;
    font-size: 37px;
    font-size: calc(22px + (37 - 22) * (100vw - 320px)/(1440 - 320));
}

h2 {
    text-align: center;
}

h3 {
    font-size: 18px;
    font-size: calc(16px + (18 - 16) * (100vw - 320px)/(1440 - 320));
    color: #3d6eb0;
    margin-bottom: 0;
}

.news-wrap h3 {
    color:  #fff;
    font-size: calc(16px + (37 - 16) * (100vw - 320px)/(1440 - 320));
}

.news-wrap h3,
.news-wrap span {
    white-space: nowrap;
}

.team-unit h3 {
    position: relative;
    font-size: 18px;
    font-size: calc(16px + (18 - 16) * (100vw - 320px)/(1440 - 320));
    padding-bottom: 10px;
    margin-bottom: 12px;
}

.team-unit h3:after {
    position: absolute;
    content: "";
    bottom: -3px;
    left: 0;
    width: 42px;
    height: 3px;
    background-color: #FFF;
}

.font-red h3 {
    font-size: 24px;
    font-size: calc(18px + (24 - 18) * (100vw - 320px)/(1440 - 320));
    margin-bottom: 20px;
}

p {
    margin-top: 0;
    margin-bottom: 20px;
}

.team-unit p {
    margin-bottom: 0;
}

.news-wrap p {
    font-size: 26px;
    font-size: calc(14px + (26 - 14) * (100vw - 320px)/(1440 - 320));
    margin-bottom: 0;
    white-space: nowrap;
}

.main ul {
    padding: 0;
    list-style: none;
    text-align: left;
}

.main li {
    list-style: none;
    padding-left: 20px; }

.main li:before {
    position: relative;
    display: block;
    top: 0;
    left: -20px;
    height: 0;
    content: "–";
    margin-bottom: 1px; 
}

b,
strong {
    font-weight: 600;
}

br {
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
}

a:focus,
button:focus {
    outline: none;
}

.bg-blue * {
    color: #FFF;
}

.font-red *{
    color: #aa2e22;
    font-weight: 600;
}

a,
.bg-beige a {
    color: #3d6eb0;
    text-decoration: underline;
}

a:hover,
.bg-beige a:hover {
    color:  #000;
    text-decoration: none;
}

.font-red a {
    color: #aa2e22;
}

.font-red a:hover {
    color: #3d6eb0;
    text-decoration: none;
}

.bg-blue a {
    color: #fff;
}

.bg-blue a.card-link,
.link-element a {
    display: inline-block;
    text-decoration: none;
    font-family: 'Istok Web', sans-serif;
    font-weight: 700;
    font-size: 18px;
    font-size: calc(16px + (18 - 16) * (100vw - 320px)/(1440 - 320));
    padding: 0;
    border: 0;
    opacity: 1 !important;
    -webkit-transition: background linear 300ms;
}

.bg-blue .link-element a {
    color: #FFF !important;
}

.bg-blue a.card-link:after,
.link-element a:after {
    display:block;
    content: '';
    border-bottom: solid 4px #fff;  
    transform: scaleX(1); 
    transform-origin: right; 
    transition: transform 250ms ease-in-out;
}

.bg-blue .link-element a:after {
    border-bottom: solid 4px #FFF; 
}

.bg-blue a.card-link:after {
    transform-origin: right; 
}

.link-element a:after {
    border-bottom: solid 4px #3d6eb0;  
}

.link-element a:hover {
    color: #3d6eb0;
    text-decoration: none;
}

.bg-blue a.card-link:hover,
.team-unit a:hover {
    color: #fff;
}

.team-unit a:hover {
    text-decoration: none;
}

.bg-blue a.card-link:hover:after,
.link-element a:hover:after { 
    transform: scaleX(0); 
}

a.news-wrap{
    color: #fff;
    text-decoration: none !important;
}

.main a[href$=".pdf"],
.main a[href$=".doc"],
.main a[href$=".docx"],
.main a[href$=".xls"],
.main a[href$=".xlsx"] {
    display: block;
    text-align: left;
    line-height: 1.75;
}

.main a[href$=".pdf"]:before,
.main a[href$=".doc"]:before,
.main a[href$=".docx"]:before,
.main a[href$=".xls"]:before,
.main a[href$=".xlsx"]:before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background-image: url(../img/file-icon.svg);
    background-repeat: no-repeat;
    background-color: transparent;
    color: #000;
    position: relative;
    margin: 0 8px 0 0;
}

.main a[href$=".pdf"]:hover:before,
.main a[href$=".doc"]:hover:before,
.main a[href$=".docx"]:hover:before,
.main a[href$=".xls"]:hover:before,
.main a[href$=".xlsx"]:hover:before {
    background-image: url(../img/file-icon2.svg);
}

.main .team-unit a[href$=".pdf"]:before,
.main .team-unit a[href$=".doc"]:before,
.main .team-unit a[href$=".docx"]:before,
.main .team-unit a[href$=".xls"]:before,
.main .team-unit a[href$=".xlsx"]:before {
    background-image: url(../img/file-icon3.svg);
}

.main .team-unit a[href$=".pdf"]:hover:before,
.main .team-unit a[href$=".doc"]:hover:before,
.main .team-unit a[href$=".docx"]:hover:before,
.main .team-unit a[href$=".xls"]:hover:before,
.main .team-unit a[href$=".xlsx"]:hover:before {
    background-image: url(../img/file-icon3.svg);
}

/* Phone */
a[href^="tel"]{
    color: #3d6eb0 !important;
    text-decoration:underline !important;
}
a[href^="tel"]:hover  {
    cursor: pointer !important;
    color: #000 !important;
    text-decoration:none!important;
}

.font-red a[href^="tel"]{
    color: #aa2e22 !important;
}
.font-red a[href^="tel"]:hover {
    color: #3d6eb0 !important;
}

/* Smooth animations */
a,
a:hover,
.news-container,
.news-container:hover,
.card-image img,
.card-image:hover img  {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

/* Tables */
table {
    width: 100%;
}

table {
    table-layout: fixed;
}

table:last-child {
    margin-bottom: 0;
}

table>thead>tr,
table>tbody>tr {
    padding: 10px 0;
    border-bottom: 1px solid #000;
}

table>thead>tr>th,
table>tbody>tr>td {
    width: auto;
    font-size: 12px;
    font-size: calc(12px + (18 - 12) * (100vw - 320px)/(1280 - 320));
    vertical-align: top;
    border-top: 0;
    -ms-word-break: break-all;
    word-break: break-all;
    word-break: break-word;
    /* Non standard for webkit */
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    hyphens: auto;
}

table>thead>tr>th {
    font-weight: 700;
}

table tr th,
table tr td {
    padding-left: 0;
    padding-right: 10px;
    padding: 2px 0;
}

table>tbody>tr>td:first-child {
    padding-right: 10px;
}

table>tbody>tr>td {
    width: auto;
}

/*
@media (max-width: 767px){

    // Force table to not be like tables anymore
    table, 
    thead, 
    tbody, 
    th, 
    td, 
    tr { 
        display: block; }

    // Hide table headers (but not display: none;, for accessibility)
    thead > tr { 
        position: absolute;
        top: -9999px;
        left: -9999px; }
    
    table {
        border: 1px solid #000; }

    table > thead > tr,
    table > tbody > tr {
        padding: 10px; }

    table > tbody > tr:last-child {
        border-bottom: 0; }

    table > tbody > tr > td {
        width: 100%; }
    
}
*/

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    position: relative;
    border-top: 4px solid #3d6eb0;
}

.logo {
    width: 200px;
    height: auto;
    margin: 16px 20px 20px 16px;
}

.fullsize-image img {
    width: 100%;
    height: auto;
}

.news-container {
    color: #fff;
    background: rgba(61,110,176,0.9);
    padding:  15px;
}

.news-container:hover {
    background: rgba(61,110,176,1);
}

@media (min-width: 480px) {
    .news-container {
        position: absolute;
        top: 70px;
        right: 16px;
        height: 160px;
        width: 160px;
        border-radius: 100%;
        padding:  0;
    }

    .news-wrap {
        position: absolute;
        display: inline-block;
        top:  50%;
        left:  50%;
        -webkit-transform: translate(-50%, -50%);
        transform: translate(-50%, -50%);
    }
}


/* ==========================================================================
   FULLSCREEN OVERLAY NAVIGATION (https://codepen.io/KingKabir/pen/QyPwgG)
   ========================================================================== */

/* Hamburger
-------------------------------------------------- */
/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */

.navbar-toggler {
    padding: 0;
    font-size: 24px;
    background: #FFF;
    border-radius: 0;
}

.menu {
    display: none;
}

#toggle.active.navbar-toggler {
    background: transparent;
}

#toggle.active.navbar-toggler .menu {
    color:  #fff;
}

.navbar-toggler div {
    float: left;
    margin: 5px 15px 0 0;
    font-family: 'Istok Web', sans-serif;
    font-weight: 700;
    color: #3d6eb0;
}

.navbar-toggler div.hide {
    opacity: 0;
}

.hamburger {
    position: fixed;
    top: 20px;
    right: 15px;
    height: auto;
    width: auto;
    cursor: pointer;
    transition: opacity .25s ease;
    z-index: 1081;
}

.hamburger:hover {
    opacity: 0.7;
}

.hamburger-box {
    width: 35px;
    height: 27px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: 1px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 35px;
    height: 3px;
    background-color: #3d6eb0;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

#toggle.active.navbar-toggler .hamburger-inner,
#toggle.active.navbar-toggler .hamburger-inner::before,
#toggle.active.navbar-toggler .hamburger-inner::after {
    background-color: #fff;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

#toggle.active.navbar-toggler .hamburger.is-active .hamburger-inner,
#toggle.active.navbar-toggler .hamburger.is-active .hamburger-inner::before,
#toggle.active.navbar-toggler .hamburger.is-active .hamburger-inner::after {
    background-color: #fff;
}

.hamburger-inner::before {
    top: -8px;
}

.hamburger-inner::after {
    bottom: -8px;
}

/* Spin */
.hamburger--spin .hamburger-inner {
    transition-duration: 0.22s;
    transition-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin .hamburger-inner::before {
    transition: top 0.1s 0.25s ease-in, opacity 0.1s ease-in;
}

.hamburger--spin .hamburger-inner::after {
    transition: bottom 0.1s 0.25s ease-in, transform 0.22s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.hamburger--spin.is-active .hamburger-inner {
    transform: rotate(225deg);
    transition-delay: 0.12s;
    transition-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
}

.hamburger--spin.is-active .hamburger-inner::before {
    top: 0;
    opacity: 0;
    transition: top 0.1s ease-out, opacity 0.1s 0.12s ease-out;
}

.hamburger--spin.is-active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(-90deg);
    transition: bottom 0.1s ease-out, transform 0.22s 0.12s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.overlay {
    position: fixed;
    background: rgba(61,110,176,0.9);
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s, visibility .35s, height .35s;
    overflow: hidden;
    z-index: 1080;
}

.overlay.open {
    opacity: 1;
    visibility: visible;
    height: 100%;
}

.overlay.open li {
    animation: fadeInRight .5s ease forwards;
    animation-delay: .35s;
}

.overlay.open li:nth-of-type(2) {
    animation-delay: .4s;
}

.overlay.open li:nth-of-type(3) {
    animation-delay: .45s;
}

.overlay.open li:nth-of-type(4) {
    animation-delay: .50s;
}


.overlay.open li:nth-of-type(5) {
    animation-delay: .55s;
}

.overlay.open li:nth-of-type(6) {
    animation-delay: .60s;
}

.overlay nav {
    position: relative;
    height: 70%;
    top: 70px;
    text-align: right;
    padding-right: 20px;
}

.overlay ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: inline-block;
    position: relative;
    height: 100%;
}

.overlay ul li {
    display: block;
    position: relative;
    opacity: 0;
}

.overlay ul li a {
    display: inline-block;
    position: relative;
    color: #FFF;
    font-family: 'Istok Web', sans-serif;
    font-weight: 700;
    font-size: 27px;
    font-size: calc(18px + (27 - 18) * (100vw - 320px)/(1440 - 320));
    text-decoration: none;
    overflow: hidden;
}

.overlay ul li a:hover:after,
.overlay ul li a:focus:after,
.overlay ul li.active a:after,
.overlay ul li a:active:after {
    width: 100%;
}

.overlay ul li a:after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0%;
    transform: translateX(0);
    height: 3px;
    background: #FFF;
    transition: .35s;
}

@keyframes fadeInRight {
    0% {
        opacity: 0;
        left: 20%;
    }

    100% {
        opacity: 1;
        left: 0;
    }
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
section {
    position: relative;
}

section .main {
    padding-top: 30px; /* 5vw */
    padding-bottom: 30px; /* 5vw */
}

.layout-contact section .main {
    padding-bottom: 1px;
}

section:last-of-type .main {
    padding-bottom: 40px; /* 5vw */
}

.bg-beige {
    background: #f3eee7;
}

.bg-blue {
    background: #3d6eb0;
}

.unit,
.team-unit {
    margin-bottom: 30px; /* 5vw */
}

.unit *:last-child,
.team-unit *:last-child {
    margin-bottom: 0;
}

.white-line {
    position: relative;
    margin-bottom: 30px;
}

.white-line-bottom {
    margin-top:  30px;
    margin-bottom: 0;
}

.white-line span {
    position: absolute;
    display: inline-block;
    top:  0;
    left: calc(50% - 21px);
    height: 4px;
    width: 42px;
    content: '';
    background-color: #fff;
}

/* card */
.card-group.unit {
    margin-left: -12px;
    margin-right: -12px;
}

.card-group>.card {
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 0;
    border:  0;
}

@media (max-width: 576px) {
    .card-group>.card {
        margin-bottom: 30px;
    }

    .card-group>.card:last-child {
        margin-bottom: 0;
    }
}

.card-group > .card .card-header {
    border-top-right-radius: 0;
    border-top-left-radius: 0;
  }

.card-header,
.card-body {
    padding-left: 0;
    padding-right: 0;
    border:  0;
}

.card-title {
    text-align: center;
    text-transform: uppercase;
    line-height: 1;
    margin-top: 20px;
    margin-bottom: 20px;
}

.card-body {
    text-align: right;
    padding-bottom: 20px;
    padding-right: 20px;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image:hover img {
    transform: scale(1.05);
}
/* .card */

.team-info {
    padding:  20px;
}

.bottom-icons {
    position: absolute;
    display: block;
    width: 100%;
    height: 70px;
    left: 0;
    bottom: -24px;
    background: url(../img/bottom-icons.svg) repeat-x;
}

#map {
    width: 100%;
    padding-top: 66.66%; /* 3:2 Aspect Ratio */
    /* padding-top: 56.25%; 16:9 Aspect Ratio */
    /* padding-top: 75%; 4:3 Aspect Ratio */
    /* padding-top: 100%;  1:1 Aspect Ratio */
    border-bottom: 4px solid #3d6eb0;
    margin-bottom: 20px;
}
/* ==========================================================================
   FORM
   ========================================================================== */
.help-block {
    margin: 0;
}

#contact-form .form-group input,
#contact-form .form-group textarea {
    width: 100%;
    font-size: 18px;
    padding: 10px;
    height: auto;
    background-color: #fff;
    border: 0;
    border-radius: 0;
    font-weight: normal;
    color: #000;
    margin-bottom: 10px;
}

.form-control:focus {
    outline: 0;
    box-shadow: none;
}

label {
    font-size: 16px;
    padding-top: 5px;
    padding-left: 0px;
}

.form-check-input {
    margin-top: 7px;
}

.honeypot {
    display: none;
}

#contact-form .list-unstyled li {
    /* check default list-style on line 164 */
    padding-left: 0;
    background-color: transparent !important;
}

#contact-form .list-unstyled li:before {
    content: '';
}

#success {
    font-weight: normal;
    color: #000;
    border: 0;
    border-radius: 0;
}

.alert-success,
.alert-danger {
    border-radius: 0;
}

.has-error input,
.has-error textarea {
    border: 1px solid #a40000 !important;
    margin-bottom: 10px;
}

.has-error .help-block {
    color: #a40000;
}

#contact-form ul.list-unstyled {
    /* error message without padding-left */
    padding: 0 !important;
}

.col-btn {
    width: 100%;
    padding: 0;
    margin-top: 16px;
}

.form-send {
    display: inline-block;
    text-decoration: none;
    font-family: 'Istok Web', sans-serif;
    color: #3d6eb0 !important;
    font-weight: 700;
    font-size: 18px;
    font-size: calc(16px + (18 - 16) * (100vw - 320px)/(1440 - 320));
    padding: 0;
    border: 0;
    opacity: 1 !important;
    -webkit-transition: background linear 300ms;
}

.form-send:hover,
.form-send:focus,
.form-send.active {
    background-color: #eee;
    color: #FFF;
    -webkit-transition: background linear 300ms;
}

.form-send:after {
    display:block;
    content: '';
    border-bottom: solid 4px #3d6eb0;  
    transform: scaleX(1); 
    transform-origin: right; 
    transition: transform 250ms ease-in-out;
}

.form-send:hover:after { 
    transform: scaleX(0); 
}

.messages {
    background: #FFF;
    color: #000;
}
/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background-color: #fff;
    color:  #3d6eb0;
    padding-top: 40px;
    padding-left:  5px;
    padding-right: 5px;
    border-bottom: 4px solid #3d6eb0;
}

.footer-logo {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.vcard .adr {
    margin-bottom: 12px;
}

.vcard .tel {
    margin-top: 12px;
}

.vcard .tel a[href^="tel"]{
    text-decoration:none !important;
}

.vcard .fax {
    margin-bottom: 20px;
}

.service-links li {
    display: inline-block;
    font-weight: 600;
}

.service-links li:after {
    display: inline-block;
    content: '|';
    color: #3d6eb0;
    margin-left: 10px;
    margin-right: 6px;
}

.service-links li:last-child:after {
    display: none;
}

.footer a {
    color: #3d6eb0;
    text-decoration: 0;
}

.footer a:hover {
    color: #000;
    text-decoration: 0;
}

.logo-medix {
    display: inline-block;
    content: '';
    width: 130px;
    height: 52px;
    background: url(../img/medix-logo.svg);
    margin-bottom: 20px;
}

/* ==========================================================================
   SELECTION
   ========================================================================== */

::-moz-selection {
    text-shadow: none;
    background: #3d6eb0;
    color: #FFF;
}

::selection {
    text-shadow: none;
    background: #3d6eb0;
    color: #FFF;
}

img::selection {
    background: 0 0;
}

img::-moz-selection {
    background: 0 0;
}

body {
    webkit-tap-highlight-color: #3d6eb0;
}

a[href^="tel"],
a[href^="sms"] {
    color: inherit;
    cursor: default;
    text-decoration: none;
}