/*--------------------------------------------------------------
# Variables
--------------------------------------------------------------*/

:root {
  /* Colors */
  --primary-color: #002E3C;
  --secondary-color: #75777B;
  --white-color: #ffffff;
  --grey-color: #E6EAEC;

  /* Spacing */
  --spacing-large: 60px;
  --spacing-medium: 40px;
  --spacing-small: 30px;
  --spacing-col: 30px;
  --height-navigation: 80px;

  /* Font Sizes */
  --font-size-base: 18px;
  --font-size-base-lg: 20px;
  --font-size-h1: 30px;
  --font-size-h2: 26px;
  --font-size-h3: 22px;
  --font-size-lead: 20px;
  --font-size-small: 14px;
  --font-size-tiny: 12px;
  --font-size-number: 50px;

  --line-height-base: 26px;
  --line-height-h1: 38px;
  --line-height-h2: 32px;
  --line-height-h3: 30px;
  --line-height-lead: 28px;

  /* Sonstiges */
  color-scheme: light;
}

@media (min-width: 992px) {
:root {
  /* Spacing */
  --spacing-large: 100px;
  --spacing-medium: 50px;
  --spacing-small: 40px;
  --spacing-col: 30px;
  --height-navigation: 157px;

  /* Font Sizes */
  --font-size-base: 20px;
  --font-size-base-lg: 22px;
  --font-size-h1: 50px;
  --font-size-h2: 40px;
  --font-size-h3: 28px;
  --font-size-lead: 24px;
  --font-size-small: 16px;
  --font-size-tiny: 14px;
  --font-size-number: 100px;

  --line-height-base: 28px;
  --line-height-h1: 62px;
  --line-height-h2: 48px;
  --line-height-h3: 36px;
  --line-height-lead: 32px;
}
}

@media (min-width: 1600px) {
:root {
  /* Spacing */
  --spacing-large: 140px;
  --spacing-medium: 80px;

  /* Font Sizes */
  --font-size-h1: 62px;
  --font-size-h2: 56px;
  --font-size-h3: 32px;
  --font-size-lead: 28px;

  --line-height-h1: 70px;
  --line-height-h2: 64px;
  --line-height-h3: 40px;
  --line-height-lead: 36px;
}
}

/*--------------------------------------------------------------
# Fonts
--------------------------------------------------------------*/

@font-face {
  font-family: 'Calibri';
  font-style: normal;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/l/font?kit=J7afnpV-BGlaFfdAhLEY67FIEjg&skey=a1029226f80653a8&v=v15) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Calibri';
  font-style: normal;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/l/font?kit=J7aanpV-BGlaFfdAjAo9_pxqHxIZrCE&skey=cd2dd6afe6bf0eb2&v=v15) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*--------------------------------------------------------------
# Body
--------------------------------------------------------------*/

html {
    scroll-behavior: smooth;
}

body {
  font-family: "Calibri", sans-serif;
  font-weight: 400;
  position: relative;
  width: 100%;
  height: 100%;
  color: var(--primary-color);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
}

* {
  scroll-padding-top: var(--height-navigation);
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/

@media (min-width: 1600px) {
.container {
    max-width: 1520px!important;
}
}

@media (min-width: 2000px) {
.container {
    max-width: 1820px!important;
}
}

.section-spacing-lg {
  padding-top: var(--spacing-large);
  padding-bottom: var(--spacing-large);
}

.mt-navbar {
  margin-top: var(--height-navigation);
}

.mt-lg {
  margin-top: var(--spacing-large);
}

.mb-col {
  margin-bottom: 30px;
}

@media (max-width: 991px) {
.mb-col-lg {
  margin-bottom: 30px;
}
}

@media (max-width: 575px) {
.mb-col-sm {
  margin-bottom: 30px;
}
}

/*--------------------------------------------------------------
# Backgrounds
--------------------------------------------------------------*/

.bg-light {
  background-color: var(--grey-color)!important;
}

.bg-dark {
  background-color: var(--primary-color)!important;
}

.bg-dark a {
  color: var(--white-color)!important;
}

.bg-dark a:hover {
  color: var(--grey-color)!important;
}

.bg-half {
    background: -webkit-gradient(linear, left top, left bottom, from(var(--grey-color)), color-stop(50%, var(--grey-color)), color-stop(50%, #fff), to(#fff)) !important;
    background: linear-gradient(to bottom, var(--grey-color) 0%, var(--grey-color) 50%, #fff 50%, #fff 100%) !important;
}

/*--------------------------------------------------------------
# Links
--------------------------------------------------------------*/

a {
  color: var(--primary-color);
  text-decoration: none!important;
}

a:hover,
a:focus {
  color: var(--secondary-color);
}

a.link-white {
  color: var(--white-color);
  text-decoration: none!important;
}

a.link-white:hover,
a.link-white:focus {
  color: var(--grey-color);
}

/*--------------------------------------------------------------
# Typografie
--------------------------------------------------------------*/

h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  font-weight: 700;
}

span.tag-h1 {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-h1);
  font-weight: 300;
}

h2 {
  font-size: var(--font-size-h2);
  line-height: var(--line-height-h2);
  font-weight: 700;
}

h3 {
  font-size: var(--font-size-h3);
  line-height: var(--line-height-h3);
  font-weight: 700;
}

.lead {
  font-size: var(--font-size-lead);
  line-height: var(--line-height-lead);
  font-weight: 400;
}

strong {
  font-weight: 700;
}

.text-main {
  color: var(--primary-color);
}

h2.number {
  font-size: var(--font-size-number);
  line-height: var(--font-size-number);
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/

.btn {
  padding: .48rem 1.5rem .4rem 1.5rem;
  font-size: var(--font-size-base);
  border-radius: 30px;
}

.btn-sm {
  padding: .3rem 1rem .25rem 1rem;
  font-size: var(--font-size-small);
  border-radius: 20px;
}

.btn-main {
  color: var(--white-color);
  background: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-main:hover,
.btn-main:focus,
.btn-main:active {
  color: var(--white-color)!important;
  background: var(--secondary-color)!important;
  border-color: var(--secondary-color)!important;
}

.btn-white {
  color: var(--primary-color);
  background: var(--white-color);
  border-color: var(--white-color);
}

.btn-white:hover,
.btn-white:focus,
.btn-white:active {
  color: var(--primary-color)!important;
  background: var(--grey-color)!important;
  border-color: var(--grey-color)!important;
}

.bg-dark .btn-white {
  color: var(--primary-color)!important;
}

.bg-dark .btn-white:hover,
.bg-dark .btn-white:focus,
.bg-dark .btn-white:active {
  color: var(--primary-color)!important;
}

.btn-main-outline {
  color: var(--primary-color);
  background: var(--white-color);
  border-color: var(--primary-color);
}

.btn-main-outline:hover,
.btn-main-outline:focus,
.btn-main-outline:active {
  color: var(--white-color)!important;
  background: var(--secondary-color)!important;
  border-color: var(--secondary-color)!important;
}

.btn-arrow,
.btn-arrow-back,
.btn-arrow-down {
    position: relative;
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    gap: 15px;
}

.btn-main.btn-arrow-back::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url(../dmxDaten/icons/arrow-left-white.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-top: -3px;
}

.btn-main.btn-arrow::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url(../dmxDaten/icons/arrow-right-white.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-top: -3px;
}

.btn-white.btn-arrow::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url(../dmxDaten/icons/arrow-right.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-top: -3px;
}

.btn-white.btn-arrow-down::after {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url(../dmxDaten/icons/arrow-down.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    margin-top: -3px;
}

/*--------------------------------------------------------------
# Cards
--------------------------------------------------------------*/

.img-border-radius {
  border-radius: 20px;
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 0 20px 20px 20px;
    background: none;
    border-top: none
}

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/

.header-1 {
  min-height: 100svh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  position: relative;
  background-color: var(--primary-color);
  padding-top: var(--height-navigation);
}

.header-2,
.header-3,
.header-4 {
  width: 100%;
  height: auto;
  background-color: var(--primary-color);
  padding-top: var(--height-navigation);
}

.header-bg {
  position: relative;
  inset: 0;
  background-size: cover;
  background-position: right;
  z-index: 1;
  opacity: 1;
}

@media (max-width: 991px) {
.header-bg {
  aspect-ratio: 2/1;
}
}

@media (min-width: 992px) {
.header-2,
.header-3,
.header-4 {
  min-height: 100svh;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  position: relative;
  background-color: var(--primary-color);
  padding-top: var(--height-navigation);
}
.header-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 1;
}
.header-4 .container-fluid {
  min-height: calc(100svh - var(--height-navigation));
}
}

@media (min-width: 992px) {
.header-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  background-color: rgba(18, 46, 60, 0.6);
  -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  pointer-events: none;
}
.header-4 .header-bg::before {
  width: 100%;
}
}

@media (min-width: 1600px) {
.header-bg::before {
  width: 50%;
}
.header-4 .header-bg::before {
  width: 100%;
}
}

@media (max-width: 991px) {
  .header-2 .btn-main,
  .header-3 .btn-main {
    background: white;
    border-color: white;
    color: var(--primary-color);
  }
  .header-2 .btn-main:hover,
  .header-3 .btn-main:hover {
    background: var(--grey-color)!important;
    border-color: var(--grey-color)!important;
    color: var(--primary-color)!important;
  }
  .header-2 .btn-main.btn-arrow-back::before,
  .header-3 .btn-main.btn-arrow-back::before {
    background-image: url(../dmxDaten/icons/arrow-left.svg);
}
}

.header-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: 1;
  opacity: 0.75;
}


.header-subnav ul {
  margin: 0;
  padding: 0;
}

.header-subnav ul li {
  border-bottom: 2px solid rgba(255,255,255,.25);
  padding: 8px 0;
}

.header-subnav ul li:last-child {
  border-bottom: none;
}

.header-subnav ul li a {
  color: white;
  text-decoration: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: .5rem;
}

.header-subnav ul li a:hover {
  opacity: .85;
}

.header-subnav .link-icon {
  width: 16px;
  height: 16px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

.header-subnav .link-icon-down {
  width: 20px;
  height: 20px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

    a .solutions-card {
        border: none;
        border-radius: 20px;
        background: white;
        -webkit-transition: background 0.5s ease;
        transition: background 0.5s ease;
    }

    a:hover .solutions-card {
        background: var(--grey-color);
    }

    .solutions-card .card-body {
        padding: 30px;
    }

    .solutions-card .card-footer {
        padding: 0 30px 30px 30px;
    }

    .competences-card .card-footer,
    .loesungen-card .card-footer {
        padding: 120px 30px 30px 30px;
        background: #002E3C;
        background: -webkit-gradient(linear, left bottom, left top, from(rgba(0, 46, 60, 1)), to(rgba(0, 46, 60, 0)));
        background: linear-gradient(0deg, rgba(0, 46, 60, 1) 0%, rgba(0, 46, 60, 0) 100%);
        color: white;
        border-radius: 0 0 20px 20px;
    }

    .solutions-card .card-footer img,
    .competences-card .card-footer img,
    .loesungen-card .card-footer img {
        height: 25px;
        width: 25px;
    }

    .solutions-icon {
        height: 50px;
        width: 50px;
        margin-bottom: 20px;
    }


    a .competences-card {
        height: 100%;
        background-position: center center;
        background-size: cover;
        background-repeat: no-repeat;
        -webkit-transition: opacity 0.3s ease;
        transition: opacity 0.3s ease;
        border: none;
        border-radius: 20px;
        aspect-ratio: 1/1;
    }

    a .loesungen-card {
        height: 100%;
        background-position: center right;
        background-size: cover;
        background-repeat: no-repeat;
        -webkit-transition: opacity 0.3s ease;
        transition: opacity 0.3s ease;
        border: none;
        border-radius: 20px;
        aspect-ratio: 5/6;
    }

    a:hover .competences-card,
    a:hover .loesungen-card {
        opacity: 0.9!important;
    }


  @media (max-width: 991px) {
    .solutions-card .card-body,
    .competences-card .card-body,
    .loesungen-card .card-body {
        padding: 20px 20px 10px 20px;
    }

    .solutions-card .card-footer {
        padding: 0 20px 20px 20px;
    }

    .competences-card .card-footer,
    .loesungen-card .card-footer {
        padding: 60px 20px 20px 20px;
    }

    .solutions-card .card-footer img,
    .competences-card .card-footer img,
    .loesungen-card .card-footer img {
        height: 20px;
        width: 20px;
    }

    .solutions-icon {
        height: 40px;
        width: 40px;
        margin-bottom: 15px;
    }
  }

    a .competences-card-1 {
        background-image: url(../dmxDaten/competences/teaser/01-projektmanagement.jpg);
    }

    a .competences-card-2 {
        background-image: url(../dmxDaten/competences/teaser/02-hardware-software.jpg);
    }

    a .competences-card-3 {
        background-image: url(../dmxDaten/competences/teaser/03-konstruktion-mechanik.jpg);
    }

    a .competences-card-4 {
        background-image: url(../dmxDaten/competences/teaser/04-montage.jpg);
    }

    a .competences-card-5 {
        background-image: url(../dmxDaten/competences/teaser/05-schulungen.jpg);
    }

    a .competences-card-6 {
        background-image: url(../dmxDaten/competences/teaser/06-wartung.jpg);
    }

    .competences-wrap,
    .history-wrap {
        position: relative;
    }

    .competences-track,
    .history-track {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        gap: 1.5rem;
        overflow-x: auto;
        -ms-scroll-snap-type: x mandatory;
            scroll-snap-type: x mandatory;
        padding-bottom: 8px;
        scrollbar-width: thin;
    }

    .competences-wrap,
    .history-wrap {
      padding-left: 30px;
    }

    @media (min-width: 578px) {
        .competences-wrap,
        .history-wrap {
            padding-left: calc(50vw - 270px + 0.75rem);
        }
    }

    @media (min-width: 768px) {
        .competences-wrap,
        .history-wrap {
            padding-left: calc(50vw - 360px + 0.75rem);
        }
    }

    @media (min-width: 992px) {
        .competences-wrap,
        .history-wrap {
            padding-left: calc(50vw - 480px + 0.75rem);
        }
    }

    @media (min-width: 1200px) {
        .competences-wrap,
        .history-wrap {
            padding-left: calc(50vw - 570px + 0.75rem);
        }
    }

    @media (min-width: 1400px) {
        .competences-wrap,
        .history-wrap {
            padding-left: calc(50vw - 660px + 0.75rem);
        }

        .col-xxl-3 {
            -webkit-box-flex: 0;
                -ms-flex: 0 0 auto;
                    flex: 0 0 auto;
           width: calc((100vw - (50vw - 660px + 0.75rem) - (50vw - 660px + 0.75rem) - 3rem) / 3);
        }
    }

    @media (min-width: 1600px) {
        .competences-wrap,
        .history-wrap {
            padding-left: calc(50vw - 760px + 0.75rem);
        }

        .col-xxl-3 {
            -webkit-box-flex: 0;
                -ms-flex: 0 0 auto;
                    flex: 0 0 auto;
           width: calc((100vw - (50vw - 760px + 0.75rem) - (50vw - 760px + 0.75rem) - 3rem) / 3);
        }
    }

    @media (min-width: 2000px) {
        .competences-wrap,
        .history-wrap {
            padding-left: calc(50vw - 910px + 0.75rem);
        }

        .col-xxl-3 {
            -webkit-box-flex: 0;
                -ms-flex: 0 0 auto;
                    flex: 0 0 auto;
           width: calc((100vw - (50vw - 910px + 0.75rem) - (50vw - 910px + 0.75rem) - 3rem) / 3);
        }
    }

    .competences-track>*,
    .history-track>* {
        scroll-snap-align: start;
    }

    .c-arrow {
        right: 0;
        top: 0;
        display: none;
        gap: 12px;
    }

    @media (min-width: 992px) {
        .c-arrow {
            display: -webkit-box;
            display: -ms-flexbox;
            display: flex;
            -webkit-box-pack: end;
                -ms-flex-pack: end;
                    justify-content: end;
            padding-bottom: 20px;
        }
    }

    .c-arrow button {
        width: 44px;
        height: 44px;
        border: 0;
        border-radius: 999px;
        background: var(--primary-color);
        display: grid;
        place-items: center;
        cursor: pointer;
    }

    .c-arrow button[disabled] {
        opacity: .5;
        cursor: default;
    }

    .c-arrow svg {
        width: 22px;
        height: 22px;
    }


.history-track {
    position:relative;
}
.history-track::before {
  content:"";
  position:absolute;
  left:0;
  right:0;
  top: 14px;
  height:2px;
  background: color-mix(in oklab, #456770 100%, transparent);
  pointer-events:none;
  width: 9999px;
}

.history-card {
  position:relative;
  padding: 0;
  border: none;
  background: none;
}

.history-card .card-body {
  padding: 100px 0 0 0;
}

.history-card::before {
  content:"";
  position:absolute;
  top:0;
  left:0;
  width:28px;
  height:28px;
  border-radius:999px;
  background:#fff;
  border:2px solid #456770;
}
.history-card::after{
  content:"";
  position:absolute;
  top:28px;
  left:13px;
  width:2px;
  height:40px;
  background: color-mix(in oklab, #456770 100%, #000 0%);
}

/*--------------------------------------------------------------
# Team
--------------------------------------------------------------*/

.team-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  height: 100%;
}
.team-content {
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1; /* Inhalt flexibel */
}
.team-contact {
  margin-top: auto; /* Kontaktbereich nach unten drücken */
}

/*--------------------------------------------------------------
# Unternehmen
--------------------------------------------------------------*/

@media (min-width: 992px) {
.col-unternehmen div {
  border-left: 2px solid #456770;
  padding-left: 30px;
  padding-bottom: var(--spacing-large);
  padding-right: 50px;
}
}

.col-unternehmen div img {
  height: 50px;
  width: auto;
  margin-bottom: 20px;
}

/*--------------------------------------------------------------
# Formular
--------------------------------------------------------------*/

.card-formular {
  border-radius: 20px;
  border: none;
  background: var(--primary-color);
  color: white;
}

@media (min-width: 992px) {
.card-formular {
  padding: 60px;
}
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/

body.nav-open {
  overflow: hidden;
}

.navigation-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1002;
}

#navigation {
  padding-top: 30px;
  padding-bottom: 30px;
  background: var(--white-color);
  position: relative;
}

#navigation .container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: inherit;
      flex-wrap: inherit;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
}

.navbar-brand {
  z-index: 1002;
  padding: 0;
}

.navbar-logo {
  height: 50px;
}

.nav-link {
  color: var(--primary-color);
  font-size: var(--font-size-base);
}

.nav-link-lg {
  color: var(--primary-color);
  font-size: var(--font-size-base-lg);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

.navbar-nav .dropdown-item:hover,
.navbar-nav .dropdown-item.active {
  color: var(--white-color);
  background-color: var(--secondary-color);
}

.nav-item.dropdown.active > .nav-link {
  color: var(--secondary-color);
}

.lg-ul .nav-item .nav-link,
.lg-ul .nav-item span {
  opacity: 0.4;
}

.lg-ul .nav-item .nav-link.active,
.lg-ul .nav-item .nav-link:hover {
  opacity: 1;
}

/* Burger Icon */
#burgerToggle {
  display: none;
}


.mega-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--grey-color);
  padding: var(--spacing-medium) 0;
  display: none;
  z-index: 1001;
}

.mega-panel.show {
  display: block;
}

@media (max-width: 991px) {
  .mega-panel {
    display: none !important;
  }
}

.mega-trigger {
  background: none;
  border: 0;
  cursor: pointer;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: .35rem;
}

.mega-trigger .chevron {
  display: inline-block;
  -webkit-box-flex: 0;
      -ms-flex: 0 0 24px;
          flex: 0 0 24px;
  width: 24px;
  height: 24px;
  vertical-align: middle;
  -webkit-transform-origin: 50% 50%;
          transform-origin: 50% 50%;
  transform-box: fill-box;
  -webkit-transition: -webkit-transform .22s ease;
  transition: -webkit-transform .22s ease;
  transition: transform .22s ease;
  transition: transform .22s ease, -webkit-transform .22s ease;
  will-change: transform;
  margin-top: -3px;
}

.mega-trigger.is-open .chevron {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
}

.mega-2-item {
  display: block;
  padding: 14px 0 11px 46px;
  border-bottom: 2px solid white;
}

.mega-2-item:last-child {
  border-bottom: none;
}

.mega-2-item .mega-item {
  display: grid;
  grid-template-columns: 1fr 20px;
}

.mega-icon {
  position: absolute;
  margin-left: -46px;
  margin-top: -2px;
}

.mega-icon img {
  height: 28px;
  width: 28px;
}

.mega-go img {
  height: 18px;
  width: 18px;
  margin-top: -3px;
}

.mega-4-item {
  display: block;
  padding: 14px 0 14px;
  border-bottom: 2px solid white;
}

.mega-4-item:last-child {
  border-bottom: none;
}

.mega-4-item .mega-item {
  display: grid;
  grid-template-columns: 200px 1fr 20px;
    -webkit-box-align: center !important;
        -ms-flex-align: center !important;
            align-items: center !important;
}

.mega-image {
  height: 80px;
  width: 160px;
}

.mega-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: cover;
    object-fit: cover;
    display: block;
}

@media (max-width: 991px) {
  .mega-panel, .mega-trigger {
    display: none !important;
  }
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }
    .navbar-expand-lg .navbar-nav li:last-child .nav-link {
        padding-right: 0;
    }
}

/* Mobile Fullscreen Nav */
@media (max-width: 991px) {
  .navbar-logo {
    height: 34px;
  }

  #navigation {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  #burgerToggle {
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-shadow: none!important;
            box-shadow: none!important;
    border: none;
    background: transparent;
    padding: 0;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    height: 40px;
    width: 40px;
    z-index: 1003;
  }

  .burger-line {
    display: block;
    width: 30px;
    height: 2px;
    margin: 4px auto;
    background-color: var(--primary-color);
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }

  .burger-open .burger-line:nth-child(1) {
    -webkit-transform: rotate(45deg) translate(7px, 7px);
            transform: rotate(45deg) translate(7px, 7px);
  }

  .burger-open .burger-line:nth-child(2) {
    opacity: 0;
  }

  .burger-open .burger-line:nth-child(3) {
    -webkit-transform: rotate(-45deg) translate(7px, -7px);
            transform: rotate(-45deg) translate(7px, -7px);
  }

  .navbar-collapse {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical !important;
    -webkit-box-direction: normal !important;
        -ms-flex-direction: column !important;
            flex-direction: column !important;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    position: relative;
    top: 0;
    left: 0;
    height: calc(100svh - 10px);
    width: 100vw;
    background: white;
    margin-top: 20px;
    padding-top: 0;
    padding-bottom: 60px;
    -webkit-transform: translateY(-100%);
            transform: translateY(-100%);
    -webkit-transition: -webkit-transform 0.3s ease;
    transition: -webkit-transform 0.3s ease;
    transition: transform 0.3s ease;
    transition: transform 0.3s ease, -webkit-transform 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
  }

  .navbar-collapse.show {
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }

  .navbar-nav {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: start;
    margin-bottom: auto;
    width: 100%;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .lg-ul {
    margin-top: auto;
    margin-bottom: 40px;
    font-size: var(--font-size-lead);
    width: auto!important;
  }

  .lg-ul .nav-item .nav-link,
  .lg-ul .nav-item span {
    opacity: 0.5;
  }

  .lg-ul .nav-item .nav-link.active,
  .lg-ul .nav-item .nav-link:hover {
    opacity: 1;
    color: var(--primary-color)
  }

  .nav-link-lg {
    font-size: var(--font-size-h3);
  }

  .dropdown-menu {
    position: static !important;
    float: none;
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .dropdown-menu li {
    width: 100%;
    border-bottom: 1px solid var(--grey-color);
    padding: 4px 0 3px 0;
  }

  .dropdown-menu .dropdown-item {
    padding: 0;
    text-align: left;
    font-size: var(--font-size-base);
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-break: break-word;
    width: 100%;
  }

  .nav-item.dropdown .dropdown-toggle::after { display: none; }

  .nav-item.dropdown .dropdown-toggle {
    display: -webkit-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    gap: .45rem;
    line-height: 1;
    -webkit-box-shadow: none!important;
            box-shadow: none!important;
  }

  .nav-item.dropdown .dropdown-toggle .chevron {
    display: inline-block;
    width: 16px; height: 16px;
    -webkit-box-flex: 0;
        -ms-flex: 0 0 16px;
            flex: 0 0 16px;
    vertical-align: middle;
    -webkit-transform-origin: 50% 50%;
            transform-origin: 50% 50%;
    transform-box: fill-box;
    -webkit-transition: -webkit-transform .22s ease;
    transition: -webkit-transform .22s ease;
    transition: transform .22s ease;
    transition: transform .22s ease, -webkit-transform .22s ease;
    will-change: transform;
  }

  /* drehen, wenn geöffnet */
  .nav-item.dropdown .dropdown-toggle[aria-expanded="true"] .chevron {
    -webkit-transform: rotate(180deg);
            transform: rotate(180deg);
  }

  .navbar-nav .dropdown-item:hover,
  .navbar-nav .dropdown-item.active {
    color: var(--secondary-color);
    background: none;
  }

  .navbar-nav .dropdown-menu li:last-child {
    margin-bottom: 10px;
    border-bottom: none!important;
  }
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/

.footer-navigation li .btn-link,
.footer-navigation li {
  text-decoration: none!important;
  font-size: var(--font-size-base);
}

.footer-navigation li ul li {
  font-size: var(--font-size-small);
}

.contact-person {
  display: grid; 
  grid-template-columns: 150px 1fr; 
  grid-template-rows: 1fr; 
}

.contact-person img {
  height: 114px;
  width: 114px;
  border-radius: 57px;
}

@media (max-width: 991px) {
.contact-person {
  display: block; 
}

.contact-person img {
  height: 100px;
  width: 100px;
  border-radius: 50px;
  margin-bottom: 30px;
}
}

/*--------------------------------------------------------------
# Cookies
--------------------------------------------------------------*/

.cookie-consent-banner {
  display: none;
  bottom: 20px;
  right: 20px;
  position: fixed;
  padding: 15px 20px 15px 20px;
  width: 280px;
  text-align: left;
  max-height: 85%;
  overflow-y: auto;
  max-width: calc(100% - 40px);
  z-index: 997;
  opacity: 1;
  font-size: 14px;
  line-height: 20px;
  color: var(--text-color);
  background-color: white;
  border-radius: 20px;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

.cookie-consent-options label {
  margin: 0 10px;
  font-size: 14px;
}

.cookie-consent-options input {
  margin-right: 5px;
}

@media (max-width: 414px) {
  .cookie-consent-banner {
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px;
    border-radius: 0;
    max-width: 100%;
    font-size: 12px;
    line-height: 18px;
    background-color: white;
    text-align: center;
  }
}

/*--------------------------------------------------------------
# Tiny MCE
--------------------------------------------------------------*/

.tox-tinymce {
  top: auto!important;
  bottom: 0!important;
  position: fixed!important;
}

.tox-form__group--stretched .tox-label {
  display: none!important;
}

.tox-form__group {
  margin-bottom: 10px!important;
}