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

/* ==========================================================================
   DEV STYLES
   ==========================================================================

.navbar-brand {
    border: 1px dashed #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: 'Open Sans', sans-serif;
    font-size: 18px;
    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,
p,
ul,
img {
    margin-bottom: 30px;
}

.team-container img {
    margin-bottom: 15px;
}

.info-box * {
    color:  #fff;
}

h1, h2 {
    font-family: 'Libre Franklin', sans-serif;
    font-size: 48px;
    font-size: calc(41px + (48 - 41) * (100vw - 320px)/(1440 - 320));
    color:  #1a5c98;
    font-weight: 300;
}

h2 {
    font-size: 42px;
    font-size: calc(36px + (42 - 36) * (100vw - 320px)/(1440 - 320));
}

.info-box h2 {
    font-size: 28px;
    font-size: calc(24px + (28 - 24) * (100vw - 320px)/(1440 - 320));
    font-weight: 600;
}

h3 {
    font-family: 'Open Sans', sans-serif;
    font-weight: 300;
    font-size: 32px;
    font-size: calc(27px + (32 - 27) * (100vw - 320px)/(1440 - 320));
    color: #1a5c98;

}

.icon-wrap h3 {
   position: absolute;
   width: 100%;
   bottom: 15px;
   font-family: 'Libre Franklin', sans-serif;
   font-weight: 700;
   font-size: 24px;
   font-size: calc(14px + (24 - 14) * (100vw - 320px)/(1440 - 320));
   color: #fff;
   margin-bottom: 0;
}

.team-container h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 0;
}

.info-box p {
    font-size: 18px;
}

b,
strong {
    color: #1a5c98;
    font-weight: 600;
}

.team-container .part div {
    padding-bottom: 15px;
    border-bottom: 1px solid #1a5c98;
}

br {
    line-height: 1.5;
}

.main ul {
    padding: 0;
}

.main .layout-mobile ul {
    margin-bottom: 15px;
}

.main li {
    list-style: none;
    padding-left: 20px;
    margin-bottom: 5px;
    line-height: 1.5 }

.main li:before {
    position: relative;
    display: block;
    top: 0;
    left: -20px;
    height: 0;
    content: ">";
    color: #1a5c98;
    font-weight: 600; }

.main .info-box li:before {
    color: #fff;
}

.main .layout-mobile li {
    font-family: 'Libre Franklin', sans-serif;
   font-weight: 700;
   font-size: 16px;
}

.lead {
    font-size: 21px;
    font-size: calc(18px + (21 - 18) * (100vw - 320px)/(1440 - 320));
}

/* to avoid layout shift */
img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: attr(width) / attr(height); 
}

:focus {
    outline: none;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

.main a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
}

.main a:hover{
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.main .layout-mobile a {
    color: #1a5c98;
    border-bottom: 2px solid transparent;
}

.main .layout-mobile a:hover {
    color: #1a5c98;
    border-bottom: 2px solid #1a5c98;
}

.link-element a {
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-size: 20px;
    font-size: calc(16px + (20 - 16) * (100vw - 320px)/(1440 - 320));
    color: #ffd83d;
    padding: 15px 30px 10px 30px;
    background-color: #1a5c98;
    border-bottom: 0;
    -webkit-transition: background linear 300ms;
}

.info-box .link-element a {
    color: #1a5c98;
    background-color: #fff;
}

.link-element a:hover {
    color: #1a5c98;
    background-color: #ffd83d;
    border-bottom: 0;
    -webkit-transition: background linear 300ms;
}

.article-yellow .link-element a:hover {
    background-color: #FFF
}

/* File icon */
.main a[href$=".pdf"],
.main a[href$=".doc"],
.main a[href$=".docx"],
.main a[href$=".xls"],
.main a[href$=".xlsx"] {
    color: #1a5c98;
    font-weight: 600;
    border-bottom: 0 !important;
}

.main a[href$=".pdf"]:hover,
.main a[href$=".doc"]:hover,
.main a[href$=".docx"]:hover,
.main a[href$=".xls"]:hover,
.main a[href$=".xlsx"]:hover {
    color: #ffd83d;
}

.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: 35px;
    height: 35px;
    background-image: url(../img/file-icon-blue.svg);
    background-color: transparent;
    color: #000;
    position: relative;
    margin: 0 15px -8px 0;
}

.info-box a[href$=".pdf"],
.main .article-yellow a[href$=".pdf"]:hover {
    color: #FFF;
}

.info-box a[href$=".pdf"]:before {
    background-image: url(../img/file-icon-white.svg);
}

/* Phone */
a[href^="tel"]:hover {
    cursor: pointer !important;
}

/* Smooth animations */
a,
a:hover,
.navbar,
.navbar.shrink,
.navbar-expand-xl .navbar-nav .nav-link,
.link-element a,
.link-element a:hover,
.icon-wrap .bg-blue,
.icon-wrap:hover .bg-blue {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    position: relative;
    margin-top: 12px;
    padding-left: 12px;
    padding-right: 12px;
    margin-bottom: 30px;
}

.fullsize-image {
    position: relative;
}

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

.claim {
    display: none;
}

.layout-content .claim {
    display: none !important;
}

.claim p {
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-size: 80px;
    font-size: calc(20px + (80 - 20) * (100vw - 320px)/(1440 - 320));
    color: #fff;
    line-height: 1.15;
    text-shadow: 2px 2px 6px #000;
    padding-left: 50px;
}

@media (min-width: 576px) {
    .claim {
       position: absolute; 
       left: 12px;
       display:  flex !important;
    }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */

/* Bootstrap CSS */
.navbar-brand {
    position: absolute;
    left: 0;
    overflow: hidden;
    bottom: 0;
    height: 69px;
    width: 180px;
    background-image: url(../img/logo-ruoff.svg);
    background-repeat: no-repeat;
    background-position: -71px 0;
    padding: 0;
    margin: 0;
    font-size: 20px;
    text-indent: -9999px;
}

@media (min-width: 481px) {
    .navbar-brand {
        background-position: 0 0;
    }
}

.navbar-light .navbar-brand {
    color: rgba(0, 0, 0, 0.9);
}

.navbar-light .navbar-brand:hover,
.navbar-light .navbar-brand:focus {
    color: rgba(0, 0, 0, 0.9);
}

.button-24h {
    position: absolute;
    display: inline-block;
    top:  -10px;
    right: -10px;
    height: 100px;
    width: 100px;
    background-image: url(../img/button-24h.svg);
}

@media (min-width: 576px) {
    .button-24h {
        top: -20px;
        right: -20px;
        height: 150px;
        width: 150px;
    }
}

/* Offcanvas menu
-------------------------------------------------- */
html,
body {
    overflow-x: hidden;
}

/* Prevent scroll on narrow devices */

@media (max-width: 1199.98px) {
    .offcanvas-collapse {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 100%;
        left: -300px;
        width: 300px !important;
        padding-right: 16px;
        padding-left: 16px;
        overflow-y: auto;
        visibility: hidden;
        background: #1a5c98;
        transition-timing-function: ease-in-out;
        transition-duration: .3s;
        transition-property: left, visibility;
    }

    .offcanvas-collapse.open {
        left: 0;
        visibility: visible;
    }

    .navbar-nav {
        margin-top: 60px;
    }
}


/* Bootstrap CSS */
/* DELETE in HTML & set position on .hamburger */
.navbar-toggler {
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border: 1px solid transparent;
    border-radius: 0;
}

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

/* Hamburger
-------------------------------------------------- */
/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */
.hamburger {
    z-index: 1080;
    padding: 0 5px 5px 5px;
    display: inline-block;
    cursor: pointer;
    transition-property: opacity, filter;
    transition-duration: 0.15s;
    transition-timing-function: linear;
    font: inherit;
    color: inherit;
    text-transform: none;
    background-color: #ffd83d;
    border: 0;
    margin-top: 12px;
    margin-left:  -15px;
    overflow: visible;
}

.hamburger.is-active {
    background-color: transparent;
}

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

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

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #1a5c98;
    /* border-radius: 4px; */
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}

.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: #ffd83d;
}

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

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

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

/* 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);
}

/* Bootstrap CSS */
.navbar {
    margin-left: 12px;
    margin-right: 12px;
    margin-top: 12px;
    padding-left: 15px;
    padding-top: 10px;
    padding-bottom: 0;
}

@media (max-width: 1199.98px) {
    .navbar {
        height: 0;
        margin-top: 0;
        padding-top: 0;
    }

}

.navbar.shrink {
    margin-top: 0;
}

.nav-link {
    display: inline-block;
    padding: 8px 16px;
}

.navbar-light .navbar-nav .nav-link {
    color: #fff;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: #ffd83d;
}

.navbar-light .navbar-nav .nav-link.disabled {
    color: rgba(0, 0, 0, 0.3);
}

.navbar-light .navbar-nav .show>.nav-link,
.navbar-light .navbar-nav .active>.nav-link,
.navbar-light .navbar-nav .nav-link.show,
.navbar-light .navbar-nav .nav-link.active {
    color: #ffd83d;
}

.navbar-light .navbar-toggler {
    color: rgba(0, 0, 0, 0.5);
    border-color: rgba(0, 0, 0, 0.1);
}

.bg-light {
    background-color: rgba(26,92,152,0.9) !important;
}

a.bg-light:hover,
a.bg-light:focus,
button.bg-light:hover,
button.bg-light:focus {
    background-color: #ffd83d !important;
}

.navbar-nav .nav-link {
    padding-right: 0;
    padding-left: 0;
    font-family: 'Libre Franklin', sans-serif;
    font-size: 20px;
    font-size: calc(16px + (20 - 16) * (100vw - 320px)/(1440 - 320));
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    border-bottom: 0;
}


/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */
.main {
    padding-top: 0; /* 5vw */
    padding-bottom: 30px; /* 5vw */
    max-width: 1440px;
}

.main.icon-container {
    padding-bottom: 0;
}

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

.unit *:last-child,
.info-box *:last-child,
.part *:last-child  {
    margin-bottom: 0;
}

.info-container {
    position: relative;
}

.figures {
    display: none;
}

.info-box {
    background: #1a5c98;
    padding: 15px;
    margin-top: 15px;
    margin-bottom: 30px;
}

.image-box{
    margin-top: 30px;
    margin-bottom: 30px;
}

.part {
    margin-top: 20px;
    margin-bottom: 20px;
}

@media (min-width: 576px) { 
    .part:nth-last-of-type(2) {
        margin-bottom: 0;
    }
}

.layout-screen {
   display: none;
}

.article-yellow {
    background-color: #ffd83d;
    padding: 25px 15px;
}

/* Video */
video,
video[poster] {
  width: 100% !important;
  height: auto !important;
}

video[poster] {
  object-fit: cover;
}

/* Fancybox */
.fancybox-caption__body {
    font-family: Arial, sans-serif;
    font-size: 16px; }

.fb-image-container {
    position: relative; }

.fb-image-container div {
    overflow: hidden; }

.fb-image-container img {
    max-width: 100%;
    height: auto;
    margin-bottom: 0; }

.fb-image-container:hover img {
    transform: scale(1.1); }

.fb-image-container img,
.fb-image-container:hover img {
    -webkit-transition: all 0.3s cubic-bezier(0.05, 0.8, 0.5, 1);
    transition: all 0.3s cubic-bezier(0.05, 0.8, 0.5, 1); }

.fb-zoom-indicator {
    position: absolute;
    z-index: 2;
    right: 12px;
    top: 0;
    width: 50px;
    height: 50px;
    background-color: rgba(26, 92, 152, 0.5);
    background-size: 40px 40px;
    background-position: 50% 50%;
    background-repeat: no-repeat;
    background-image: url(../img/fb-zoom-white.svg);
    opacity: 0;
    -webkit-transform: scale(0);
    transform: scale(0);
    -webkit-transition: all 0.3s cubic-bezier(0.05, 0.8, 0.5, 1);
    transition: all 0.3s cubic-bezier(0.05, 0.8, 0.5, 1); }

.fb-image-container:hover .fb-zoom-indicator {
    opacity: 1;
    transform: scale(1); }

/* ==========================================================================
   FORM
   ========================================================================== */
.help-block {
    margin: 0;
}

#contact-form .form-group {
    margin-top: 20px;
}

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

:focus {
    outline: none;
    -webkit-box-shadow: none !important;
    -moz-box-shadow: none !important;
    box-shadow: none !important;
}

label {
    font-size: 18px;
    padding-bottom: 5px;
}

.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 {
    border: 0;
    border-radius: 0;
    margin-top: 30px;
    text-transform: uppercase;
    font-family: 'Libre Franklin', sans-serif;
    font-weight: 700;
    font-size: 20px;
    font-size: calc(16px + (20 - 16) * (100vw - 320px)/(1440 - 320));
    color: #ffd83d;
    padding: 15px 30px 10px 30px;
    background-color: #1a5c98;
    border-bottom: 0;
    -webkit-transition: background linear 300ms;
}

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

.alert {
    margin-top: 40px;
}

.messages {
    background: #FFF;
    color: #000;
    margin-top: 40px;
}
/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background-color: #FFF;
    padding: 12px;
    color: #fff;
}

.footer {
    background-color: #1a5c98;
    padding:  25px 20px 0 20px;
}

.footer a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.footer a:hover {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid #fff;
}

.partner-logo img {
    max-width: 250px;
    height: auto;
}
.footer a.partner-logo,
.footer a.partner-logo:hover {
    border-bottom: none !important;
}
/*
.vcard,
.footer ul {
    margin-bottom: 30px;
}
*/

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

::-moz-selection {
    text-shadow: none;
    background: #ffd83d;
    color: #000000;
}

::selection {
    text-shadow: none;
    background: #ffd83d;
    color: #000000;
}

img::selection {
    background: 0 0;
}

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

body {
    webkit-tap-highlight-color: #ffd83d;
}

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