/*  Author:   Martin Stettler (https://www.dieweberei.ch/)
    Version:  05/04/2021 // based on Bootstrap v5.0.1
*/

/* ==========================================================================
   DEV STYLES
   ========================================================================== */
section {
    border: 1px solid transparent;
}
/*
.unit {
    border: 1px dashed #f227f9;
}
*/

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

/* Bootstrap CSS */
body {
    margin: 0;
    font-family: 'Roboto', 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 {
    font-size: 36px;
    font-size: calc(25px + (36 - 25) * (100vw - 320px)/(1440 - 320));
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 300;
    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;
}

h1,
h2 {
    text-transform: uppercase;
    letter-spacing: 1px;
}

h1 strong,
h2 strong {
    font-weight: 500;
    display: block;
}

h3 {
    font-size: 28px;
    font-size: calc(21px + (28 - 21) * (100vw - 320px)/(1440 - 320));
}

b,
strong {
    font-weight: 500;
}

br {
    line-height: 1.5;
}

/* 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 ul {
    padding-left: 20px;
}

.main p + ul {
    margin-top: -30px;
}

.main ul.list-unstyled {
    padding: 0;
}

.main ul.list-unstyled li {
   line-height: 40px;
}

.main li {
    list-style: none;
}

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

.main li.list-item-none:before {
    content: '';
    left: 0;
}

.main a,
.bg-blue a,
.footer a {
    color: #000;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.main a:hover,
.bg-blue a:hover,
.footer a:hover {
    text-decoration: none;
}

.main a[href^="https://"] {
    background: url(../img/arrow-up.svg) center left no-repeat;
    padding-left: 30px;   
    text-decoration: none;
}

.main a[href^="https://"]:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* File icon */
.main a[href$=".pdf"] {
    color: #000;
    text-decoration: none;
}

.main a[href$=".pdf"]:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

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

/* Smooth animations */
a,
a:hover,
.navbar,
.navbar.shrink,
.navbar-brand,
.navbar-brand.shrink,
.navbar-brand span,
.navbar-brand.shrink span {
    -webkit-transition: all 0.5s;
    -moz-transition: all 0.5s;
    transition: all 0.5s;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header {
    position: relative;
    width: 100% !important;
}

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

.logo {
    margin: 0 auto;
    width: 100%;
    max-width: 40vw;
    min-width: 250px;
    height: auto;
}

.logo span {
    position: absolute;
    display: block;
    left: 15px;
    top: -125px;
    width: 300px;
    height: 300px;
    background: url(../img/logo-ebnitmatte.svg);
}

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

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

/* Prevent scroll on narrow devices */

body {
    padding-top: 165px;
}

.navbar {
    height: 165px;
}

.navbar.shrink {
    height: 98px;
    border-bottom: 1px solid #000;
}

@media (max-width: 991.98px) {

    body {
        padding-top: 60px;
    }

    .navbar {
        height: 60px;
    }

    .navbar.shrink {
        height: 0px;
        border-bottom: 0;
        padding: 0;
    }

    .offcanvas-collapse {
        position: fixed;
        top: 0;
        bottom: 0;
        right: 100%;
        /* left for collapse-left */
        right: -250px;
        /* left for collapse-left */
        width: 250px;
        padding-right: 15px;
        padding-left: 15px;
        border-left: 1px solid #000;
        overflow-y: auto;
        visibility: hidden;
        background-color: #FFF;
        transition-timing-function: ease-in-out;
        transition-duration: .3s;
        transition-property: right, visibility;
    }

    /* left for collapse-left */

    .offcanvas-collapse.open {
        right: 0;
        /* left for collapse-left */
        visibility: visible;
    }

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

/* Hamburger
-------------------------------------------------- */
/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */
.hamburger {
    position: absolute;
    right: 0;
    top: 15px;
    right: 15px;
    z-index: 1080;
    padding: 0;
    /* 15px 15px */
    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: transparent;
    border: 0;
    margin: 0;
    overflow: visible;
}

.hamburger:hover {
    opacity: 0.7;
}

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

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

/* -2px */

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 40px;
    height: 4px;
    background-color: #000;
    /* 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: #000;
}

.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-brand {
    position: absolute;
    display: inline-block;
    padding-top: 0px;
    padding-bottom: 0px;
    margin-right: 15px;
    margin-top: 85px;
    width: 120px;
    height: 120px;
    font-size: 20px;
    line-height: inherit;
    white-space: nowrap;
}

.navbar-brand span {
    display: block;
    width: 120px;
    height: 120px;
    background: url(../img/logo-ebnitmatte.svg);
    text-indent: -9999px;
}

.navbar-brand.shrink {
    margin-top: -120px;
}

.navbar-brand.shrink span {
    width: 120px;
    height: 120px;
}

.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);
}

.nav-link {
    display: block;
    padding: 8px 16px;
    font-size: 20px;
    font-weight: 500;
    text-transform: uppercase;
}

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

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link:focus {
    color: rgba(0, 0, 0, 0.7);
}

.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: rgba(0, 0, 0, 0.9);
}

.navbar-nav a.active {
    color: #a5bedf !important; }

.navbar-toggler {
  padding: 0;
  background:  transparent;
  border: none;
  border-radius: 0;
  -webkit-appearance: none; /* no background gradient on iOS */
    -moz-appearance: none;
}

.bg-light {
    background-color: #FFF !important;
}

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

.navbar-nav .nav-link {
    text-align: left;
    padding-right: 10px;
    padding-left: 10px;
}

@media (min-width: 576px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 25px;
        padding-left: 25px;
    }
}

.anchor {
    display: block;
    height: 55px;
    /* OPL adjust */
    margin-top: -55px;
    /* OPL adjust */
    visibility: hidden;
}

/* ==========================================================================
   MAIN CONTENT
   ========================================================================== */

.topic-container {
    padding-top: 3vw;
    padding-bottom: 3vw;
}

.unit {
    margin-top: 30px;
    margin-bottom: 30px;
}

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

.unit p,
.unit ul {
    width: 80%;
}
.unit img,
.article-half img {
    display: block;
    width: 100%;
    height: auto;
    padding-top: 15px;
    padding-bottom: 15px;
}

.unit img {
    display: block;
    margin: 0 auto;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin-bottom: 30px 
}

.video-container iframe {
    position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%; 
}

/* Cards with accordion */
.card,
.card-header,
.accordion-item {
    border: 0;
    border-radius: 0;
    background-color: transparent !important;
}

.accordion-item {
    border-bottom: 1px solid #000;
    border-radius: 0 !important;
}

.accordion-button {
    font-size: 20px;
    padding-left: 0;
    background: transparent !important;
}

.accordion-button.collapsed,
.accordion-button:not(.collapsed) {
    font-size: 20px;
    color: #000 !important;
    padding-left: 0;
    box-shadow: none;
}

.accordion-button:not(.collapsed)::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230c63e4'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
  transform: rotate(-180deg);
}

.accordion-button::after {
    position: absolute;
    right: 0;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    margin-left: auto;
    content: "";
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 1.25rem;
    color: #000 !important;
    transition: transform 0.2s ease-in-out;
}

.accordion-button:hover {
    color: #000;
}

.accordion-collapse {
    position: relative;
    background: transparent !important;
    border-radius: 0 !important;
}

.accordion-body {
    padding: 0 0 15px 0;
    border-radius: 0 !important;
}

.accordion-body h2,
.accordion-body p {
    padding-right: 10px;
    padding-top: 0;
}

/* Percentage Bar https://codepen.io/MidnightMecke/pen/GpmzgB */
.percentage-bar {
    background: #fff;
    display: block;
    height: 37px;
    position: relative;
    transition: 0.4s linear;
    -moz-transition: 0.4s linear;
    -ms-transition: 0.4s linear;
    -o-transition: 0.4s linear;
    -webkit-transition: 0.4s linear;
    transition-property: width, background-color;
    -moz-transition-property: width, background-color;
    -ms-transition-property: width, background-color;
    -o-transition-property: width, background-color;
    -webkit-transition-property: width, background-color;
    width: 50%;
    border: 1px solid black;
    padding: 0;
    margin: 10px 0 30px 0;
}
/*
.title {
    position: absolute;
    color: #ffffff;
    font-weight: 500;
    font-size: 15px;
    left: 0;
    top: 0;
    width: 150px;
}

.title span {
    background: #a0b669;
    display: block;
    height: 35px;
    line-height: 35px;
    padding: 0 20px;
    text-align: center;
}
*/
.bar {
    height: 35px;
    width: 0px;
}

.percent {
    color: #ffffff;
    color: #000;
    font-size: 20px;
    height: 35px;
    line-height: 35px;
    position: absolute;
    right: 10px;
    top: 0;
}

.percentage-bar div.title { background: #a0b669; }
.percentage-bar div.bar { background: #a0b669; }


/* ==========================================================================
   FORM
   ========================================================================== */

.text-muted {
    color: #000 !important;
}

.help-block {
    margin: 0;
}

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

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

.form-check-input {
  width: 20px;
  height: 20px;
  margin-top: 3px!important;
  background-color: transparent;
  border: 1px solid #000;
  border-radius: 0 !important;
}

.form-check-input[type=checkbox] {
  border-radius: 0;
}

.form-check-input:active {
  filter: brightness(100%);
}
.form-check-input:focus {
  border-color: #000;
  outline: 0;
  box-shadow: 0;
}
.form-check-input:checked {
  background-color: transparent;
  border-color: #000;
}
.form-check-input:checked[type=checkbox] {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

: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 {
    display: inline-block;
    margin-top: 20px;
    font-weight: 500;
    font-size: 16px;
    padding: 5px 20px;
    color: #000;
    border: 1px solid #000;
    border-radius: 0;
    background: #FFF;
    opacity: 1 !important;
    -webkit-transition: background linear 300ms;
}

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

.alert {
    margin-top: 40px;
}

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

/* ==========================================================================
   FOOTER
   ========================================================================== */

.bg-blue {
    background: #a5bedf;
}
.footer {
    padding: 30px 15px;
    max-width: 1440px;
}

.footer ul {
    margin-bottom: 0;
}

.footer li a {
    text-decoration: none;
}

.footer li a:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

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

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

img::selection {
    background: 0 0;
}

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

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

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