@import url('https://fonts.verwaltungsportal.de/css/?family=Source+Sans+3:400,600,400i,600i');

html {
    max-width: 1930px;
    margin-left: auto;
    margin-right: auto;
    background: #f5f5f5;
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
    scrollbar-color: #ce251c #ffffff;
    scrollbar-width: thin;
}

body {
    font-family: "Source Sans 3", sans-serif;
    font-weight: 400;
    color: #303030;
    background: #ffffff;
    font-size: clamp(1rem, 2vw, 1.25rem);
    /* 1rem = 16px */
    line-height: 1.5;
}

a {
    color: #ce251c;
}

#content a,
a:is(:hover, :focus) {
    color: #ce251c;
    text-decoration: underline;
}

b,
strong {
    font-weight: 600;
}

#overflow {
    overflow: hidden;
    position: relative;
}

/* ------------------------------------------- logo --------------------------------------------- */

#logo {
    display: inline-block;
}

#logo img {
    display: block;
}

@media (max-width: 991px) {
    #logo img {
        max-width: calc(100vw - 120px);
        width: 100%;
    }
}

/* #region ---------------------------------- navigation ---------------------------------------- */

/* burgermenu for tablet */

@media (max-width: 991px) {
    nav.horizontally {
        background: #303030;
        padding: 15px 0;
    }

    #burgerButton {
        font-size: 0;
        border: none !important;
        display: block;
        height: 50px;
        width: 60px;
        border-radius: 2px;
        padding: 6px 8px;
        cursor: pointer;
        background-color: #ffffff;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.08);
    }

    #burgerButton::before,
    #burgerButton::after,
    #burgerButtonInner {
        background-color: #010101;
        border-radius: 2px;
        position: absolute;
        width: 40px;
        height: 3px;
        left: 10px;
        transition: transform 200ms linear, opacity 200ms linear;
    }

    #burgerButton[aria-expanded="true"] #burgerButtonInner {
        transform: rotate(-45deg) translate(-6px, 6px);
    }

    #burgerButton[aria-expanded="true"]::before {
        opacity: 0;
    }

    #burgerButton[aria-expanded="true"]:after {
        transform: rotate(45deg) translate(-4px, -6px);
    }

    #burgerButtonInner {
        top: 16px;
    }

    #burgerButton::before {
        top: 24px;
        content: "";
    }

    #burgerButton::after {
        top: 32px;
        content: "";
    }

    .navbar-nav {
        margin: 20px 0;
    }

    .navbar-collapse {
        width: calc(100% - 90px);
        max-width: 300px;
        top: 0;
        background: #fddb53;
        position: fixed;
        left: -100%;
        bottom: 0;
        z-index: 100;
        height: auto !important;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        overflow-y: auto;
        transition: left 300ms linear, opacity 300ms linear, box-shadow 600ms linear;
        box-shadow: 250px 0 50vw 50vw rgba(255, 255, 255, 0);
    }

    .navbar-collapse:is([aria-expanded="true"], .in) {
        left: 0;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        box-shadow: 250px 0 50vw 50vw rgba(0, 0, 0, 0.6);
    }

    .navbar-header {
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 101;
    }

    .dropdown-toggle-button-wrapper {
        top: 5px;
    }

    .dropdown-toggle-button-wrapper2 {
        top: 6px;
    }
}

/* menu desktop */

@media (min-width: 992px) {

    .sticky-wrapper {
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
    }

    nav.horizontally {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        right: 0;
        top: 0;
        max-width: 1930px;
        width: 100%;
        z-index: 101;
        background: rgba(0, 0, 0, 0.6);
        transition: 150ms linear background, 150ms linear box-shadow;
    }

    .is-sticky nav.horizontally {
        background: #303030;
        box-shadow: 0 7px 12px 0 rgba(0, 0, 0, 0.08);
    }

    nav.horizontally .navbar-nav {
        display: flex;
        justify-content: space-between;
        position: relative;
    }

    nav.horizontally .navbar-nav::before {
        content: "";
        transform: skewX(-26deg);
        position: absolute;
        top: 0;
        bottom: 0;
        left: -30px;
        right: -405px;
        z-index: -1;
        background: #fddb53;
    }

    nav.horizontally .navbar-nav ul {
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 1000;
        display: block !important;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transition: opacity 300ms linear;
    }

    nav.horizontally .navbar-nav [class*="secondlevel"]>ul {
        left: 100%;
        top: 0;
    }

    nav.horizontally .navbar-nav li {
        position: relative;
    }

    nav.horizontally .navbar-nav li:is(.open, :hover)>ul,
    nav.horizontally .navbar-nav li.open:focus-within>ul,
    nav.horizontally .navbar-nav li[class*="secondlevel"]>ul[style*="block"] {
        pointer-events: auto !important;
        opacity: 1 !important;
        visibility: visible;
    }

    nav.horizontally .navbar-nav li.open>ul {
        pointer-events: none !important;
        opacity: 0 !important;
        visibility: hidden;
    }

    nav.horizontally .navbar-nav li:is(:hover, :focus)>ul {
        z-index: 1003;
    }
}

/* toplevel */

nav.horizontally a[class*="toplevel"] {
    color: #303030;
    text-align: left;
    padding: 10px 35px;
    font-size: 1rem;
    font-weight: 500;
    position: relative;
    line-height: 1.2;
    text-decoration: none;
}

@media (max-width: 991px) {
    nav.horizontally a[class*="toplevel"] {
        margin-bottom: 2px;
    }
}

@media (min-width: 992px) {
    nav.horizontally a[class*="toplevel"] {
        padding: 15px 0;
        display: flex;
        align-content: center;
        align-items: center;
        justify-content: center;
        text-align: center;
        height: 100%;
        min-height: 90px;
    }
}

@media (min-width: 1200px) {
    nav.horizontally li[class*="toplevel"]+li {
        margin-left: 1px;
    }

    nav.horizontally a[class*="toplevel"] {
        font-size: 1.125rem;
        background: #fddb53;
    }
}

.navbar-default .navbar-nav>li>a::before {
    content: "";
    position: absolute;
    pointer-events: none;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #303030;
    transition: width 300ms linear;
}

@media (min-width: 992px) {
    .navbar-default .navbar-nav>li>a::before {
        bottom: 25px;
    }
}

/* toplevel-over */

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"].open>a,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus),
nav.horizontally li[class*="toplevel"][class*="_over"]>a,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus) {
    color: #303030;
}

nav.horizontally li[class*="toplevel"]:is(:hover, :focus-within)>a::before,
nav.horizontally li[class*="toplevel"]>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"].open>a::before,
nav.horizontally li[class*="toplevel"].open>a:is(:hover, :focus)::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a::before,
nav.horizontally li[class*="toplevel"][class*="_over"]>a:is(:hover, :focus)::before {
    width: 100%;
}

/* secondlevel + thirdlevel dropdown-box */

nav.horizontally [class*="toplevel"] ul {
    background-color: #fddb53;
}

@media (max-width: 991px) {
    nav.horizontally [class*="secondlevel"]>ul {
        margin: 10px;
    }
}

@media (min-width: 992px) {
    nav.horizontally [class*="toplevel"] ul {
        padding-top: 24px;
        padding-bottom: 18px;
    }

    nav.horizontally [class*="toplevel"]>ul {
        left: -26px;
        margin-top: 26px;
    }

    nav.horizontally [class*="secondlevel"]>ul {
        margin-left: 26px;
        margin-top: -24px;
    }

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before,
    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::after {
        content: "";
        position: absolute;
        display: block;
    }

    nav.horizontally :is([class*="toplevel"], [class*="secondlevel"])>ul::before {
        background: #ffffff;
    }

    nav.horizontally [class*="toplevel"]>ul::before {
        left: 45px;
        top: -10px;
        width: 20px;
        height: 20px;
        transform: rotate(45deg);
    }

    nav.horizontally [class*="secondlevel"]>ul::before {
        left: -10px;
        top: 10px;
        width: 20px;
        height: 20px;
        transform: rotate(45deg);
    }

    nav.horizontally [class*="toplevel"]>ul::after {
        height: 26px;
        left: 0;
        right: 0;
        top: -26px;
    }

    nav.horizontally [class*="secondlevel"]>ul::after {
        width: 26px;
        top: 0;
        bottom: 0;
        left: -26px;
    }
}

/* secondlevel + thirdlevel */

nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
    background-color: transparent;
    color: #303030;
    font-weight: 400;
    text-align: left;
    padding: 10px 35px;
    position: relative;
    font-size: 1rem;
    line-height: 1.2;
    text-decoration: none;
}

@media (min-width: 992px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        padding: 7px 20px;
        text-transform: uppercase;
    }
}

@media (min-width: 1200px) {
    nav.horizontally a:is([class*="secondlevel"], [class*="thirdlevel"]) {
        font-size: 1.125rem;
    }
}

/* secondlevel + thirdlevel over */

nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]):is(:hover, :focus-within)>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"]).open>a:is(:hover, :focus),
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a,
nav.horizontally li:is([class*="secondlevel"], [class*="thirdlevel"])[class*="_over"]>a:is(:hover, :focus) {
    color: #303030;
    background-color: #ffffff;
}

/* #endregion ------------------------------- navigation ---------------------------------------- */

/* #region ------------------------------------ banner ------------------------------------------ */

#slider {
    max-height: clamp(300px, 45vw, 450px);
    overflow: hidden;
}

@media (min-width: 768px) {
    body.index #headerpic .nivo-controlNav {
        bottom: 25px;
        left: 55%;
        width: 45%;
        pointer-events: none;
    }

    body.index #headerpic .nivo-controlNav :is(a, button) {
        pointer-events: auto;
    }

    body.index #headerpic a.nivo-prevNav {
        left: 58%;
    }

    body.index #headerpic .nivo-directionNav a {
        top: auto;
        bottom: 30px;
    }

    body.index #slider {
        max-height: clamp(450px, 74vw, 740px);
    }
}

@media (min-width: 992px) {
    body.index #headerpic .nivo-controlNav {
        left: 50%;
        width: 50%;
    }

    body.index #headerpic a.nivo-prevNav {
        left: calc(50% + 65px);
    }

    #headerpic a.nivo-prevNav {
        left: 65px;
    }

    #headerpic a.nivo-nextNav {
        right: 65px;
    }
}

#headerpic {
    padding: 0;
    overflow: visible;
    position: relative;
}

.slider-wrapper,
#slider {
    height: 100%;
}

.slider-mask {
    display: none;
}

/* #endregion --------------------------------- banner ------------------------------------------ */

/* #region --------------------------------- banner overlay ------------------------------------- */

@media (max-width: 767px) {
    #bannerOverlay {
        padding: 30px 0;
        background: #fddb53;
    }
}

@media (min-width: 768px) {
    #bannerOverlay {
        position: absolute;
        z-index: 52;
        left: 0;
        bottom: -30px;
        right: 0;
        pointer-events: none;
        font-size: 1.125rem;
    }

    #slogan {
        position: relative;
        padding: clamp(30px, 4vw, 65px) 30px clamp(30px, 4vw, 65px) 0;
        pointer-events: auto;
        margin-right: 83px;
    }

    #slogan::after,
    #slogan::before {
        content: "";
        position: absolute;
        bottom: 0;
    }

    #slogan::after {
        transform: skewX(-8deg);
        top: 0;
        left: -20vw;
        right: 0;
        z-index: -1;
        background: #fddb53;
    }

    #slogan::before {
        right: 0;
        left: 0;
        height: 30px;
        background: #252525;
        z-index: -1;
        transform: skewX(-60deg);
    }
}

@media (min-width: 1200px) {
    #slogan::after {
        left: calc((100vw - 1100px) / -2);
    }
}

#bannerOverlay .sloganHeadline {
    text-transform: uppercase;
    color: #303030;
    margin: 0;
    font-size: clamp(1.75rem, 2vw, 2.125rem);
}

#bannerOverlay :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
    color: #303030;
    font-style: normal;
    margin: 0;
    text-transform: uppercase;
    font-size: clamp(1.375rem, 2vw, 1.75rem);
}

#bannerOverlay a {
    color: #010101;
    text-decoration: underline;
}

/* #endregion ------------------------------ banner overlay ------------------------------------- */

/* ------------------------------------------- videoBox ------------------------------------------ */

#videoBox {
    padding-top: clamp(40px, 5vw, 85px);
}

/* ------------------------------------------- content ------------------------------------------ */

#content {
    text-align: left;
    padding-top: clamp(40px, 4vw, 70px);
    padding-bottom: clamp(40px, 4vw, 75px);
}

/* #region ------------------------------------- breaker ---------------------------------------- */

#breaker {
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    padding-top: 160px;
    position: relative;
    background-color: rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
    #breaker {
        font-size: 1.125rem;
    }
}

#breaker::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    right: 0;
    height: 30px;
    display: block;
    background: #f7f7f7;
}

#breakerSlogan {
    position: relative;
    z-index: 1;
    padding: 30px 15px;
    color: #303030;
}

@media (max-width: 767px) {
    #breakerSlogan {
        background: #fddb53;
    }
}

@media (min-width: 768px) {
    #breakerSlogan {
        padding: clamp(30px, 4vw, 45px) 0 clamp(30px, 4vw, 55px) clamp(50px, 8vw, 100px);
    }

    #breakerSlogan::after,
    #breakerSlogan::before {
        content: "";
        position: absolute;
        bottom: 0;
    }

    #breakerSlogan::after {
        transform: skewX(8deg);
        top: 0;
        left: 0;
        right: -20vw;
        z-index: -1;
        background: #fddb53;
    }

    #breakerSlogan::before {
        right: 0;
        left: -5px;
        height: 30px;
        background: #252525;
        z-index: -1;
        transform: skewX(60deg);
    }
}

@media (min-width: 1200px) {
    #breakerSlogan::after {
        right: calc((100vw - 1100px) / -2);
    }
}

#breaker .sloganHeadline {
    color: #303030;
    text-transform: uppercase;
    margin: 0;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

#breaker :is(h1, h2, h3, h4, h5, h6) :is(em, i) {
    color: #303030;
    font-style: normal;
    margin: 0;
    text-transform: uppercase;
    font-size: clamp(1.375rem, 4vw, 1.75rem);
}

#breakerSlogan a {
    color: #303030;
}

#breakerSlogan a:is(:hover, :focus) {
    text-decoration: underline;
}

/* #endregion ---------------------------------- breaker ---------------------------------------- */

/* #region -------------------------------------- tabs ------------------------------------------ */

#tabs {
    padding: clamp(40px, 4vw, 75px) 0 clamp(40px, 4vw, 70px) 0;
    background: #f7f7f7 linear-gradient(to top, rgba(0, 0, 0, 0.05), rgba(255, 255, 255, 0) 15px);
}

#tabs>.row {
    row-gap: 30px;
}

#tabs .tab {
    padding: 30px clamp(15px, 3vw, 45px) clamp(30px, 3vw, 40px) clamp(15px, 3vw, 45px);
    background: #ffffff;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
    height: 100%;
    min-height: 100%;
}

@media (min-width: 992px) {
    #tabs .tab {
        font-size: 1.125rem;
    }
}

#tabs .tabHeadline {
    font-size: 1.375rem;
    text-transform: uppercase;
    margin-bottom: clamp(10px, 4vw, 40px);
    position: relative;
    padding-top: 145px;
}

#tabs .tabHeadline::after {
    content: "";
    display: block;
    width: 60px;
    position: absolute;
    top: 109px;
    left: calc(50% - 30px);
    border-bottom: 5px solid #ce251c;
}

#tabs .tabHeadline::before {
    content: "";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
    width: 80px;
    height: 80px;
    background: url('../img/icon-check.png') center no-repeat, #fddb53;
}

#tabs>.row>div:nth-child(2) .tabHeadline::before {
    background-image: url('../img/icon-anfertigung.png');
}

#tabs>.row>div:nth-child(3) .tabHeadline::before {
    background-image: url('../img/icon-lieferung.png');
}

/* #endregion ----------------------------------- tabs ------------------------------------------ */

/* -------------------------------------- h1 - h6, newslink ------------------------------------- */

.h4link a:is(:link, :hover, :focus, :visited),
h6,
h5,
h4,
h3,
h2,
h1 {
    color: #ce251c;
    font-weight: 600;
    line-height: 1.2;
    font-family: "Source Sans 3", sans-serif;
}

h1,
.h1,
.legacy_h1 {
    font-size: clamp(1.875rem, 5vw, 3.125rem);
}

h2,
.h2,
.legacy_h2 {
    font-size: clamp(1.75rem, 4.5vw, 2.5rem);
}

h3,
.h3,
.legacy_h3 {
    font-size: clamp(1.625rem, 4vw, 2.1875rem);

}

h4,
.h4,
.h4link a:is(:link, :hover, :focus, :visited) .legacy_h4 {
    font-size: clamp(1.5rem, 3.5vw, 1.875rem);
}

h5,
.h5,
.legacy_h5 {
    font-size: clamp(1.375rem, 3vw, 1.5625rem);
}

h6,
.h6,
.legacy_h6 {
    font-size: 22px;
}

/* #region -------------------------------------- search ---------------------------------------- */

#searchbar {
    background: #fddb53;
    color: #010101;
    padding: 20px 0;
}

#searchbar>.row {
    row-gap: 20px;
}

#searchbar a {
    color: #010101;
    text-decoration: underline;
}

#search {
    background: #010101;
    display: flex;
}

#search_input {
    color: #ffffff;
    font-size: 1rem;
    font-style: normal;
    background: transparent;
    font-weight: 400;
    border: 0;
    width: 100%;
    padding: 11px 15px;
}

@media (min-width: 768px) {
    #search_input {
        font-size: 1.125rem;
    }
}

#search_submit {
    width: 55px;
    flex-shrink: 0;
    font-size: 0;
    background: url('../img/lupe-icon.png') center no-repeat;
    padding: 0;
    cursor: pointer;
    border: none;
    transition: background-color 300ms linear;
}

#search_submit:is(:hover, :focus) {
    background-color: #1f1f1f;
}

#search input::placeholder {
    color: #ffffff !important;
    opacity: 1 !important;
    font-style: normal !important;
}

/* #endregion ----------------------------------- search ---------------------------------------- */

/* #region ----------------------------------- footer ------------------------------------------- */

#footer {
    color: #ffffff;
    background-color: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

@media (min-width: 768px) {
    #footer {
        font-size: 1.125rem;
    }
}

#footer>.row:first-child {
    row-gap: 30px;
    padding: 45px 0 35px 0;
}

#footer>.row:first-child iframe,
#footer>.row:first-child .iframe-wrapper-manual-enabling {
    min-width: 100% !important;
    width: 100% !important;
    display: block;
}

#footer>.row:first-child a {
    color: #fddb53;
    text-decoration: underline;
}

@media (max-width: 767px) {
    #footer>.row:last-child {
        padding: 20px 0 25px 0;
    }
}

#footer .footerHeadline {
    color: #fddb53;
    text-transform: uppercase;
    font-size: 1.5625rem;
    margin-bottom: 4px;
}

#footer hr {
    margin: 0 auto;
    max-width: 1170px;
    height: 2px;
    opacity: 0.4;
    background: #ffffff;
}

#innerfooter ul {
    padding: 0;
}

#innerfooter a {
    color: #ffffff;
    text-decoration: none;
    position: relative;
    display: inline-block;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    padding: clamp(6px, 4vw, 36px) 10px;
}

@media (min-width: 500px) {
    #innerfooter li {
        display: inline-block;
    }
}

#innerfooter a:is(:hover, :focus) {
    color: #303030;
    background: #fddb53;
}

/* ------------------------------------------ vernetzt ------------------------------------------ */

#vernetzt {
    gap: 12px;
    text-align: right;
    font-size: 0.9375rem;
    color: #ffffff;
    line-height: 1.4;
    text-decoration: none;
}

#vernetzt strong {
    color: #fddb53;
}

@media (max-width: 767px) {
    #vernetzt {
        margin-top: 20px;
    }
}

#vernetzt span span {
    display: block;
}