.padd-nav {
    padding: 2vw 5vw 0px 5vw;
}

/* The bar sticks so the menu stays reachable on the way down. .navbar-shadow
   is toggled by nav-sticky.js; it zeroes the padding on <nav>, but the spacing
   actually lives on .padd-nav inside it, so collapse that too or the sticky
   bar keeps the full header height. */
nav.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
}
/* The scrolling element here is <html>, so anchoring has to be switched off
   there - setting it on <body> alone left the root scroller adjusting itself. */
html,
body {
    overflow-anchor: none;
}

/* Bootstrap turns on smooth scrolling for the whole document, and the browser
   runs its scroll restoration through it: reload halfway down a page and you
   watched it glide from near the top back to where you had been - 600ms of
   travel, measured. Reloading should not move anything at all. Written as
   :root rather than html so it outweighs Bootstrap's own :root rule, which is
   otherwise the more specific of the two.
   Nothing is lost: in-page anchors are animated by app.js with jQuery, which
   sets scrollTop frame by frame - and a frame-by-frame animation fed through
   a smooth scroller is a fight between the two anyway. */
:root,
body {
    scroll-behavior: auto;
}

/* While the height of the bar is being measured, transitions would hand back
   a value from halfway through the animation. */
.nav-measuring,
.nav-measuring * {
    transition: none !important;
}
/* No padding under the row once the bar condenses: the disc hangs from the
   bottom edge of the bar, and bottom padding would push it up into the menu
   by that much. The air above is kept. */
nav.navbar.navbar-shadow .padd-nav {
    padding-top: .5vw;
    padding-bottom: 0;
}
.navbar {
    background-color: white;
    padding: 0px
}



nav {
    -webkit-transition: all ease-in-out .3s;
    -o-transition: all ease-in-out .3s;
    transition: all ease-in-out .3s;
}

.navbar-shadow {
    -webkit-box-shadow: var(--nav-shadow, 0 2px 4px 0 rgba(0, 0, 0, .07));
    box-shadow: var(--nav-shadow, 0 2px 4px 0 rgba(0, 0, 0, .07));
}

.navbar-brand img {
    width: 158px;
    height: auto !important;
    margin-top: -10px;
    padding-bottom: 18px;
}

nav.navbar.navbar-shadow {
    padding: 0px 0px;
}
/* These two decide how tall the condensed bar is - nothing else in the row
   is taller than the menu items. 1.5rem each made an 88px bar, too much of
   the screen to give to a menu you are scrolling past, and too much of it
   for the disc to hang clear of. At 1rem the bar is 65px. */
nav.navbar.navbar-shadow .nav-link {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
nav.navbar.navbar-shadow .nav-link.nav-menu-button
{
    margin-top: 6%;
}

/* The transition used to be declared on .navbar-shadow only, so the bar
   animated on the way into the condensed state and snapped straight back out
   of it - 30px in a single frame. Everything that decides how tall the bar is
   has to carry the same transition in BOTH states, or the height jumps to
   whichever child happens to be tallest at that instant. */
.navbar-brand img,
.padd-nav,
nav.navbar {
    -webkit-transition: all .28s ease-in-out;
    -o-transition: all .28s ease-in-out;
    transition: all .28s ease-in-out;
}

/* Condensed bar: the logo stays, just smaller.
   It has to be sized by WIDTH here. The base rule above carries
   height: auto !important, which no specificity can beat, so the old
   "width: auto; height: 35px" left the image with no usable dimension at all
   and it collapsed to 0px wide - the logo vanished as soon as you scrolled.
   The padding-bottom lines its optical centre up with the menu items, which
   sit in a 70px box next to it (bottom-aligned by .padd-nav). */
nav.navbar.navbar-shadow .navbar-brand img {
    width: 92px;
    margin-top: 0px;
    padding-bottom: 14px;
}

.navbar-nav .dropdown-menu {
    top: 47px;
    left: -20px;
    border: 1px solid transparent;
}

/* Hangs off the bottom of the menu item, so it follows the padding above:
   16px less of it means 16px less here. */
.navbar-shadow .navbar-nav .dropdown-menu {
    top: 52px;
}

/* Only above the burger breakpoint, where the submenu floats over the page.
   Without it the white panel sits edge to edge on the content behind and
   reads as part of it. Inside the collapsed menu it is in the flow and needs
   no shadow. */
@media (min-width: 1200px) {
    .navbar-nav .dropdown-menu {
        box-shadow: var(--nav-shadow, 0 2px 4px 0 rgba(0, 0, 0, .07));
    }
}

.dropdown-item:focus,
.dropdown-item:hover {
    background-color: transparent;
}

.dropdown-item:focus,
.dropdown-item:hover {
    color: #e73531;
}

.dropdown-menu {
    padding: 1rem 2rem 2rem 2rem;
    border-radius: 0px;
}
.dropdown-item {
    padding: .5rem 0rem;
}
.dropdown-menu:first-of-type {
    transition: opacity .15s ease-in-out;
}
body {
    position: relative;
}
@media all and (min-width:991px) {
    .no-after.dropdown:after {
        background-color: rgba(0,0,0,0);
    }
    body {
        position: relative;
    }

}
.dropdown-menu-arrow {
    top: -25px;
    left: 50%;
    width: 0;
    height: 0;
    position: relative;
}

ul.lang {
    list-style: none;
    margin-bottom: 0px;
    padding-left: 0px;
    padding: .3rem 0px;
    padding-bottom: 18px;
}
.lang li a:first-of-type {
    padding-right: 5px;
}
.lang li {
    opacity: .5;
    transition: all .3s ease-in-out;
}
.lang li:hover {
    opacity: 1;
}
.lang li.active {
    color: black;
    opacity: 1;
}
.lang li.active a {
    color: black;
}
.lang li a {
    font-size: 12px;
    text-decoration: none;
}

.navbar-light .navbar-nav .nav-link {
    font-weight: 300;
    font-size: 1.1em;
    -webkit-transition: all .28s ease-in-out;
    -o-transition: all .28s ease-in-out;
    transition: all .28s ease-in-out;
    color: black;
    padding-bottom: 18px;
}

.navbar-expand-xl .navbar-nav .nav-link {
    padding-right: 1rem;
    padding-left: 1rem;
}

li.nav-item:last-of-type a.nav-link {
    padding-right: 0;
}

.navbar-expand-xl {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
}

.navbar-light .navbar-toggler {
    color: white;
    border-color: transparent;
}

@media only screen and (max-width: 1199.98px) {
    .navbar-brand img {
        margin-top: 0;
    }
}


.navbar.fixed-top.navbar-expand-xl {
    padding-right: 0 !important;
}

@media only screen and (max-width: 991.9px) {
    .card-columns {
        -webkit-column-count: 2;
        -moz-column-count: 2;
        column-count: 2;
    }
    .carousel-item .h1-medium h1,
    .carousel-item h1 {
        font-size: 1.7em;
    }
}

/* Everything below follows the burger, which now opens at 1200px instead of
   992px: six menu items plus the button need ~1050px of their own, so on a
   1024px tablet the bar used to break into two rows whatever we shrank. */
@media only screen and (max-width: 1199.98px) {
    .navbar {
        padding: 0;
    }

    .animated-icon2 {
        padding: 20px 15px 15px 0;
    }
    a.nav-link {
        font-size: 1.6em;
    }

    .navbar-nav li.nav-item:first-of-type {
        padding-top: 20px;
    }
    .navbar-nav li.nav-item:last-of-type {
        padding-bottom: 20px;
    }
    .container.menu {
        max-width: 100% !important;
    }
    ul.navbar-nav {
        -webkit-transition: all .2s ease-in-out;
        -o-transition: all .2s ease-in-out;
        transition: all .2s ease-in-out;
    }
    a.dropdown-item {
        padding-left: 40px;
    }
}

.navbar.fixed-top.navbar-expand-xl {
    padding-right: 0 !important;
}


/*Burger Button*/
/*
   * Spring
   */
/*!
 * Hamburgers
 * @description Tasty CSS-animated hamburgers
 * @author Jonathan Suh @jonsuh
 * @site https://jonsuh.com/hamburgers
 * @link https://github.com/jonsuh/hamburgers
 */
.hamburger {
    padding: 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.is-active:hover {
    opacity: 0.7;
}
.hamburger.is-active .hamburger-inner,
.hamburger.is-active .hamburger-inner::before,
.hamburger.is-active .hamburger-inner::after {
    background-color: #000;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}
.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}
.hamburger-inner, .hamburger-inner::before, .hamburger-inner::after {
    width: 40px;
    height: 2px;
    background-color: #000;
    position: absolute;
    transition-property: transform;
    transition-duration: 0.15s;
    transition-timing-function: ease;
}
.hamburger-inner::before, .hamburger-inner::after {
    content: "";
    display: block;
}
.hamburger-inner::before {
    top: -10px;
}
.hamburger-inner::after {
    bottom: -10px;
}
.hamburger--spring .hamburger-inner {
    top: 2px;
    transition: background-color 0s 0.13s linear;
}
.hamburger--spring .hamburger-inner::before {
    top: 10px;
    transition: top 0.1s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19);
}
.hamburger--spring .hamburger-inner::after {
    top: 20px;
    transition: top 0.2s 0.2s cubic-bezier(0.33333, 0.66667, 0.66667, 1), transform 0.13s cubic-bezier(0.55, 0.055, 0.675, 0.19); }

.hamburger--spring.is-active .hamburger-inner {
    transition-delay: 0.22s;
    background-color: transparent !important;
}
.hamburger--spring.is-active .hamburger-inner::before {
    top: 0;
    transition: top 0.1s 0.15s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s 0.22s cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 10px, 0) rotate(45deg);
}
.hamburger--spring.is-active .hamburger-inner::after {
    top: 0;
    transition: top 0.2s cubic-bezier(0.33333, 0, 0.66667, 0.33333), transform 0.13s 0.22s cubic-bezier(0.215, 0.61, 0.355, 1);
    transform: translate3d(0, 10px, 0) rotate(-45deg);
}

/*

/* Icon*/
.animated-icon2 span:nth-child(1) {
    top: 0px;
}

.animated-icon2 span:nth-child(2),
.animated-icon2 span:nth-child(3) {
    top: 10px;
}

.animated-icon2 span:nth-child(4) {
    top: 20px;
}

.animated-icon2.open span:nth-child(1) {
    top: 11px;
    width: 0%;
    left: 50%;
}

.animated-icon2.open span:nth-child(2) {
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.animated-icon2.open span:nth-child(3) {
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

.animated-icon2.open span:nth-child(4) {
    top: 11px;
    width: 0%;
    left: 50%;
}
.nav-link {
    display: block;
    padding: .3rem 1rem;
}
/* //Burger Button*/

.navbar-light .navbar-nav .nav-link:hover .fas.fa-chevron-down {

}


.nav-menu-button {
    padding: 10px 20px !important;
    border-radius: 10px;
    margin-top: -3px;
    -webkit-transition: all .3s ease-in-out;
    -o-transition: all .3s ease-in-out;
    transition: all .3s ease-in-out;
}
.navbar-light .navbar-nav .nav-link .nav-menu-button:hover a{
    color: white;
}
.navbar-light .navbar-nav .nav-link:hover a{
    color: white;
}
.nav-menu-button:hover {

}

.navbar nav-link.navbarDropdown.active a {
}

.navbar nav-link.navbarDropdown.focus a {
}

.fas.fa-chevron-down {
    margin-left: 4px;
}

li.nav-item:hover .nav-link .fas.fa-chevron-down,
li.nav-item:focus .nav-link .fas.fa-chevron-down {
}

li.nav-item .nav-link.navbarDropdown.active .fas.fa-chevron-down {
}

li.nav-item a.nav-link.nav-menu-button.ml-3:hover {
    color: white !important;
}

.dropdown-item {
    color: white;
    color: black;
    font-weight: 300;
}

.nav-menu-button {
    margin-top: 15%;
}
.nav-item a {
    transition: all .3s ease-in-out;
}
/* Hover, the open submenu and the current page all read in the brand red.
   The weight stays at 300 throughout: bolding the current item made the
   whole row re-flow slightly from page to page. */
.navbar-light .navbar-nav .nav-link:focus,
.navbar-light .navbar-nav .nav-link:hover,
/* Bootstrap puts .show on the list item, and while the pointer is down in the
   submenu the link itself is no longer hovered - without these two the parent
   would fall back to black the moment you reach for its entries. */
.navbar-light .navbar-nav .nav-item:hover > .nav-link,
.navbar-light .navbar-nav .nav-item.show > .nav-link,
.navbar-light .navbar-nav .nav-link.active {
    color: var(--main-color, #e73531);
    font-weight: 300;
}

@media (max-width: 1199.9px){

    .nav-menu-button {
        margin-top: 20px;
    }
    .dropdown-item {
    }
    .nav-menu-button {
        margin-top: 20px;
        margin-left: 0px;
        text-align: center;
    }

    a.dropdown-item:hover {
    }
    .ml-3, .mx-3 {
        margin-left: 0px !important;
    }
    .dropdown-menu .dropdown-item {
        padding-left: 0px;
    }
    .dropdown-item:first-of-type {
        margin-top: 25px;
    }
    .nav-link:first-of-type{
        margin-top:20px;
    }

    .menu {
        padding: 0px 0px;
        padding-top: 0px;
    }
    nav.navbar.navbar-shadow .nav-link {
        padding-top: 0px;
        padding-bottom: .5rem;
    }
}

@media (max-width: 1199.98px) {
    li.nav-item a.nav-link {
        text-align: center;
        font-size: 30px !important;
    }
    .nav-lang ul.lang {
        align-items: initial !important;
        justify-content: center;
        margin: auto;
        margin-bottom: 20px;
        padding-bottom: 0;
    }
    .languages-cal {
        justify-content: center;
    }
    .nav-link:first-of-type {
        margin-top: 0px;
    }
}

@media (max-width: 768px){
    a.nav-link {
        padding: 10px 0;
    }
}

@media (max-width: 660px){
    a.nav-link {
        padding: 8px 0;
    }
}
@media (min-width: 991px) and (max-width: 1200px){
    .menu {
        padding: 20px 0px 0px 0px;
    }
}


/* =========================================================================
   Language switcher in the top right corner
   =========================================================================
   DE/FR is taken out of the flow and pinned to the very top edge, so it can
   never add to the height of the bar - the row below keeps exactly the
   height the menu items and the button give it. It stays a descendant of
   #navbarSupportedContent so the burger menu still shows it below 992px,
   where the rules above put it back in the flow.
   The positioning hook is .padd-nav; nothing between it and .nav-lang is
   positioned, so the absolute box resolves against the padding box of the
   bar. .padd-nav carries its side padding there, hence right: 5vw to line
   the switcher up with the logo rather than with the viewport edge. */
@media (min-width: 1200px) {
    /* Out of the flow, so condensing the bar cannot change the height of the
       document. While it was sticky it stayed in the flow, and losing ~29px
       of height pulled every pixel of the page up with it - the whole layout
       jumped on the way back to the top. --nav-height is written by
       nav-sticky.js from the expanded bar, so the space reserved here stays
       constant whatever state the bar is in. */
    nav.navbar {
        position: fixed;
        left: 0;
        right: 0;
    }
    body {
        padding-top: var(--nav-height, 117px);
    }
    .padd-nav {
        position: relative;
    }
    .nav-lang {
        position: absolute;
        top: .45rem;
        right: 5vw;
        line-height: 1;
    }
    .nav-lang ul.lang {
        margin: 0;
        padding: 0;
    }
    /* Deliberately understated: it is a fallback for the few visitors on the
       other language, not a navigation item. */
    .nav-lang .lang li {
        opacity: .35;
    }
    .nav-lang .lang li.active,
    .nav-lang .lang li:hover {
        opacity: 1;
    }
    .nav-lang .lang li a {
        font-size: 11px;
        letter-spacing: .03em;
    }
    /* The switcher belongs to the resting state of the page: it fades out as
       soon as the bar condenses and comes back only once the visitor has
       scrolled all the way up again. */
    .nav-lang {
        transition: opacity .25s ease-in-out;
    }
    nav.navbar.navbar-shadow .nav-lang {
        top: .25rem;
        opacity: 0;
        pointer-events: none;
    }
}

/* =========================================================================
   Fitting the bar between 992px and full desktop
   =========================================================================
   Six menu items plus the "Online-Service" button no longer fit on one line
   below ~1400px: items wrapped in the middle ("Kunden-" / "Service") and the
   bar grew to two rows. Keep every item on one line and take the room out of
   the spacing instead, in two steps. */
@media (min-width: 1200px) {
    .navbar-light .navbar-nav .nav-link {
        white-space: nowrap;
    }
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
    .padd-nav {
        padding-left: 3vw;
        padding-right: 3vw;
    }
    .nav-lang {
        right: 3vw;
    }
    /* Menu font and logo stay exactly as they are - the room comes out of the
       spacing only. Measured: the row needs ~1020px this way, and 1200px
       leaves ~110px of slack. */
    .navbar-expand-xl .navbar-nav .nav-link {
        padding-left: .5rem;
        padding-right: .5rem;
    }
}

/* Burger range: 2vw of top padding is ~7px on a phone, too tight under the
   logo, so give the bar a fixed, calmer inset there. */
@media (max-width: 1199.98px) {
    .padd-nav {
        padding: 1rem 5vw .5rem 5vw;
    }
    nav.navbar.navbar-shadow .padd-nav {
        padding-top: .5rem;
        padding-bottom: .5rem;
    }
}
