html {
    scroll-behavior: smooth;
}

:root {
    --space-none: 0;
    --space-xs: 5px;
    --space-s: 15px;
    --space-m: 25px;
    --space-l: 50px;
    --space-xl: 100px;
    --space-xxl: 140px;
}

body {
    hyphens: auto;
}

.auda-margin-right-small {
    margin-right: var(--space-s);
}

.auda-margin-bottom-small {
    margin-bottom: var(--space-s);
}

.auda-padding-x-small {
    padding-right: var(--space-s);
    padding-left: var(--space-s);
}

.auda-padding-y-small {
    padding-top: var(--space-s);
    padding-bottom: var(--space-s);
}

.auda-padding-top-large {
    padding-top: var(--space-l);
}

.auda-padding-bottom-large {
    padding-bottom: var(--space-l);
}

.auda-padding-bottom-medium {
    padding-bottom: var(--space-m);
}

.auda-cr-center {
    align-items: center;
    justify-content: center;
}

.auda-hv-center {
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.auda-relative {
    position: relative;
}

.auda-h-100 {
    height: 100%;
}

.auda-bg-secondary {
    background-color: #f5f5f5;
}

.hamburger {
    background-color: #c1c1c1;
}

.auda-accordion .panel-title a {
    display: block;
    position: relative;
    padding: 10px 25px;
    box-shadow:
        0 5px 5px 0 #ddd,
        0 2px 12px #fff;
}

.auda-accordion .panel-default > .panel-heading {
    background: transparent;
    border: none;
    padding: 0;
}

.auda-accordion .panel-title a::after {
    content: '\f078';
    font-family: FontAwesome;
    padding: 10px;
    color: #414141;
    display: flex;
    align-items: center;
    height: 100%;
    position: absolute;
    right: 0;
    top: 0;
}

.auda-accordion .panel-default {
    border: none;
    margin-bottom: 20px;
}

.header-menu-fixed #header {
    transform: translateY(-275px);
}

body:not(.fe-admin-area) #site-content {
    padding: 0;
}

#icons-menu .fa-volume-control-phone::before {
    content: 'Anrufen';
    background: #fff;
    padding: 10px 25px;
    border: 2px solid #fff;
    font-family: arial;
    font-size: 16px;
    font-weight: bold;
    color: #023e7c;
}

#icons-menu .fa-volume-control-phone:hover::before {
    background: #f5f5f5;
}

#icons-menu {
    display: flex;
}

#icons-menu li:first-child {
    order: 2;
}

#icons-menu a.btn-info {
    background-color: #fff;
    color: #023e7c !important;
    border: none;
    font-size: 18px;
}

#icons-menu a.btn-info:hover,
#icons-menu a.btn-info:focus {
    background-color: #e3e3e3;
}

.site-home #section-search-switcher .nav-tabs,
#section-direction-compact .col-sm-12.form-group p.small,
[data-id='location-info-request'] .phone-mail-infos p.small,
.audaris-widget .Detail .aw-vehicle-thumbs-container > div:nth-child(n + 2),
[data-id='location-selector-block'] .blocks-container,
#section-contact-form #contact_request_info [value='2'] {
    display: none;
}

#section-direction-compact .service-area-open-time {
    padding: 10px;
    background: #e3e3e3;
    margin: 20px 0 0;
}

body:not(.fe-admin-area) .well {
    box-shadow: none;
    color: #000;
    border: 4px solid #023e7c;
}

#section-vehicle-inquiry-form,
#section-vehicle-tradein-form,
body:not(.fe-admin-area) .auda-imgbox .btn-default,
#pre_area a,
.auda-imgbox a,
#header #icons-menu #menu-favorites .fa span,
.btn-primary,
#section-direction-compact .btn-primary {
    color: #fff;
}

#sss-tradein,
#section-service-brands-ajax #location-request,
#section-service-brands-ajax {
    background: #fff;
}

#section-contact-form .content-title,
.well a[href='/datenschutz/'],
.well .btn-primary,
.auda-form .btn-primary {
    color: #023e7c;
}

form input.form-control,
form textarea.form-control,
form select.form-control {
    border-width: 0 0 2px;
    border-style: solid;
    border-color: #023e7c;
    background: transparent;
}

form select.form-control option,
.auda-imgbox a.btn-default:hover {
    background: #fff;
    color: #023e7c;
}

.form-configurable,
.page-headline h1,
.page-headline .headline-h1 {
    padding-top: var(--space-m);
}

#section-vehicle-inquiry-form {
    padding-top: var(--space-m);
    padding-bottom: var(--space-m);
}

h1,
h2,
h3,
h4,
h5,
h6,
.headline-h1,
.headline-h2,
.headline-h3,
.page-headline h1,
.page-headline .headline-h1 {
    font-weight: 900;
}

#site-content h2,
#site-content h2.headline-h2,
#site-content .headline-h2,
#site-content .h2 {
    font-weight: 900;
    text-transform: inherit;
}

p {
    line-height: 1.6;
}

#site-content #conultants-content h2.headline-h2,
.btn {
    font-size: 18px;
}

.headline-h3,
.headline-h1 {
    color: #393737;
    font-size: 30px;
    line-height: 1.2;
}

#section-search-switcher .nav-tabs {
    background: #023e7c;
}

#section-search-switcher .nav-tabs > li > a,
#section-search-switcher .nav-tabs > li.active > a,
#section-search-switcher .nav-tabs > li.active > a:hover,
#section-search-switcher .nav-tabs > li.active > a:focus {
    background: transparent;
    color: #fff;
    width: fit-content;
    padding: 13px 0;
}

#section-search-switcher[data-view='4'] .search-switcher-top-container {
    max-width: 100%;
}

.auda-search #section-search-switcher .nav-tabs {
    display: block;
}

:not(.auda-search0) #section-search-switcher .nav-tabs > li {
    display: flex;
    justify-content: center;
    padding: 20px 0;
    font-weight: bold;
}

#section-search-switcher .nav-tabs > li.active a::after,
#section-search-switcher .nav-tabs > li.active:hover a::after,
#section-search-switcher .nav-tabs > li.active:focus a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 10px;
    width: 100%;
    height: 3px;
    background: #e30613;
    display: block;
}

#section-search-switcher .audaris-widget .form-select {
    border-color: transparent transparent #fff;
    background-color: transparent;
    color: #fff;
    font-weight: bold;
}

#section-search-switcher .tab-content {
    border: none;
    border-radius: 0;
    background: #023e7c;
}

#section-search-switcher .search-switcher-top-container {
    box-shadow: none;
}

#section-search-switcher .audaris-widget .btn-primary {
    color: #023e7c;
    background-color: #fff;
    width: 40%;
    margin: 0 auto;
}

#section-search-switcher .audaris-widget .btn-primary:hover {
    color: #fff;
    background-color: #e30613;
    transition: 0.3s all;
}

body:not(.fe-admin-area) .btn-default,
:not(.audaris-widget) .btn-default,
.well .btn-primary,
.auda-form .btn-primary,
#section-vehicle-inquiry-form .btn-primary {
    position: relative;
    border: 4px solid;
    font-weight: bold;
    background: transparent;
    transition: 0.3s all;
}

.btn-search .btn-primary {
    margin-top: 15px;
}

.btn-search .btn-primary:hover {
    background: transparent;
    border-color: transparent;
}

@media (min-width: 768px) {
    body:not(.fe-admin-area) .btn-default,
    :not(.audaris-widget) .btn-default,
    .well .btn-primary {
        padding: 10px 30px;
    }

    .modal-content .btn-default,
    .well .btn-primary {
        padding-right: 50px !important;
    }
}

body:not(.fe-admin-area) .btn-default:hover {
    background: #023e7c;
    color: #fff;
}

body:not(.fe-admin-area, .pageid-532) .btn.btn-default::after,
.well .btn-primary::after,
.auda-form .btn-primary::after,
#section-vehicle-inquiry-form .btn-primary::after {
    content: '\f054 ';
    position: absolute;
    font-family: FontAwesome;
    right: 25px; /* Change MS */
    top: 50%;
    transform: translate(50%, -50%);
}

body:not(.fe-admin-area) .btn-arrow,
#section-vehicle-inquiry-form .btn-primary,
.auda-form .btn-primary,
#section-contact-form .btn-submit {
    padding-right: 50px;
}

.auda-imgbox {
    position: relative;
    overflow: hidden;
}

body:not(.fe-admin-area) .auda-imgbox::before,
.parallaxIMG::before,
.entry-img-area::before {
    content: '';
    position: absolute;
    background-color: rgb(2 62 124 / 35%);
    width: 100%;
    height: 100%;
    display: block;
    transition: 0.3s ease-in;
}

body:not(.fe-admin-area) .auda-imgbox:hover::before {
    opacity: 0.1;
    z-index: -1;
}

body:not(.fe-admin-area) .auda-imgbox .img-teaser-text {
    position: absolute;
    bottom: -100%;
    transition: 0.3s all;
    width: 100%;
    padding: 30px 10px;
}

body:not(.fe-admin-area) .auda-imgbox .img-teaser-text::before,
.entry-img-area::after {
    content: '';
    width: 80%;
    height: 5px;
    background: #e30613;
    position: absolute;
    top: 0;
    transform: translate(-50%, -50%);
    display: block;
    left: 50%;
    opacity: 0;
}

body:not(.fe-admin-area) .auda-imgbox:hover .img-teaser-text::before,
.entry-img-area:hover::after {
    opacity: 1;
}

[data-container='infomanager'].infomanager-view-3[data-slider-view='1'] .im-slider-entry:hover .hover_area {
    background: transparent;
    opacity: 0;
}

#article-blog-entry .page-headline .subheadline-h1 {
    color: #393737;
}

[data-container='infomanager'].infomanager-view-2 .im-headline {
    font-size: 16px;
}

body:not(.fe-admin-area) .auda-imgbox:hover .img-teaser-text {
    bottom: 0;
    width: 100%;
    background: rgb(2 62 124 / 90%);
    color: #fff;
    transition: 0.3s all;
}

body:not(.fe-admin-area) .auda-imgbox .img-title {
    position: absolute;
    top: 50%;
    left: 50%;
    background: rgb(2 62 124 / 90%);
    color: #fff;
    padding: 30px 40px;
    transform: translate(-50%, -50%);
    transition: 0.3s all;
}

body:not(.fe-admin-area) .auda-imgbox:hover .img-title {
    top: 0;
    transform: translate(-50%, 0%);
    transition: 0.3s all;
    padding: 10px 20px;
}

body:not(.fe-admin-area) .repair .auda-imgbox .img-title {
    position: absolute;
    left: 0;
    background: transparent;
    padding: 0 15px;
    transform: translate(-0%, -0%);
    bottom: 10%;
    top: auto;
    margin-bottom: -10px;
    width: 100%;
    text-align: center;
    font-size: 13px;
}

body:not(.fe-admin-area) .repair .auda-imgbox img {
    width: 290px;
}

body:not(.fe-admin-area) .repair .auda-imgbox .img-title a {
    display: block;
}

body:not(.fe-admin-area) .repair .auda-imgbox:hover .img-title {
    height: fit-content;
}

.auda-bg-top-left::before {
    position: absolute;
    content: '';
    background: #f5f5f5;
    width: 90%;
    height: 100%;
    top: 30px;
    left: 40px;
}

.auda-bg-bottom-right::before {
    position: absolute;
    content: '';
    background: #f5f5f5;
    width: 70%;
    height: 70%;
    bottom: 0;
    right: 0;
}

.auda-bg-top-right::before {
    position: absolute;
    content: '';
    background: #f5f5f5;
    width: 80%;
    height: 95%;
    right: 0;
}

.auda-infomanager::before {
    content: '';
    position: absolute;
    background: #f5f5f5;
    width: 65%;
    height: 50%;
    display: block;
}

.auda-infomanager [data-container='infomanager'].infomanager-view-3 .prev,
.auda-infomanager [data-container='infomanager'].infomanager-view-3 .next {
    opacity: 1;
    top: -20px;
    background-color: #f5f5f5;
    font-size: 30px !important;
    height: 30px;
}

.auda-infomanager [data-container='infomanager'].infomanager-view-3 .prev {
    right: 50px;
    left: auto;
}

.auda-infomanager [data-container='infomanager'].infomanager-view-3[data-slider-view='1'] .im-headline,
#contact_request_info {
    background: transparent;
    text-align: left;
}

.auda-infomanager [data-container='infomanager'].infomanager-view-3[data-slider-view='1'] .im-headline strong {
    color: #023e7c;
}

.auda-tabs .nav-tabs::before {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 3px;
    content: '';
    background: #f5f5f5;
}

.auda-tabs .nav-tabs > li {
    border-bottom: transparent;
}

.auda-tabs .nav-tabs > li > a {
    background: transparent;
    color: #393737;
    font-weight: bold;
    margin-right: 20px;
}

.auda-tabs .nav-tabs > li.active > a,
.auda-tabs .nav-tabs > li.active > a:hover,
.auda-tabs .nav-tabs > li.active > a:focus {
    background: transparent;
    border-width: 0 0 4px;
    border-style: solid;
    border-color: #e30613;
    color: #023e7c;
}

#header .more-brands img,
#header .logos-top-right img {
    height: auto;
}

@media (max-width: 479px) {
    .repair .auda-imgbox img {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .btn-search {
        position: relative;
        z-index: 9;
        margin-top: -80px;
    }

    .btn-search .btn.btn-primary.btn-block[href='/angebote/']::before {
        position: absolute;
        content: '';
        width: 100%;
        height: 2px;
        background: #e30613;
        left: 0;
        bottom: 14px;
    }

    .btn-search > .container,
    #site-content #section-search-switcher > .container {
        background: #023e7c;
    }

    body:not(.fe-admin-area) .btn-search .btn-default {
        color: #fff;
        border: none;
        margin: 10px 0;
    }

    .site-home:not(.no_header) #site-content > #section-search-switcher {
        margin-top: 0 !important;
        z-index: 9;
        position: relative;
    }
}

@media (max-width: 767px) {
    .headline-h3 {
        font-size: 22px;
    }

    .auda-infomanager::before {
        width: 100%;
    }

    .auda-reverse {
        flex-direction: column-reverse;
    }

    .auda-bg-top-left::before {
        top: 10%;
        left: 0;
        width: 100%;
        height: 90%;
        bottom: 0;
    }
}

@media (max-width: 991px) {
    .auda-bg-bottom-right::before,
    .auda-bg-top-right::before,
    .auda-bg-top-left::before,
    .auda-infomanager::before,
    #section-search-switcher .audaris-widget .btn-primary {
        width: 100%;
    }
}

@media (min-width: 992px) {
    #header .more-brands img,
    #header .logos-top-right img {
        background: #f5f5f5;
        padding: 5px;
        width: 65px;
        height: 65px;
    }
}

@media (min-width: 1380px) {
    #header .more-brands img,
    #header .logos-top-right img {
        width: 100px;
        height: 100px;
        padding: 15px;
    }

    #header-container {
        height: 200px;
    }

    #header #logo img {
        max-height: 100px;
    }

    #header #primary-menu {
        justify-content: end;
        display: flex;
        font-weight: bold;
    }

    #header #logo {
        position: relative;
        height: 145px;
    }

    #header #logo a {
        position: absolute;
        background: #fff;
        height: 200px;
        top: 0;
        left: -15px;
        display: flex;
        align-items: center;
        padding: 30px;
    }

    #header #primary-menu > li > a:hover {
        box-shadow: 0 0 19px -5px rgb(255 255 255 / 50%);
    }

    #header #primary-menu .dropdown-menu {
        background: #023e7c;
    }

    #header #primary-menu .dropdown-menu > li > a {
        color: #fff;
        width: 100%;
        text-align: center;
        position: relative;
        border: none;
        font-weight: bold;
    }

    #header #primary-menu .dropdown-menu > li {
        display: flex;
        justify-content: center;
    }

    #header #primary-menu .dropdown-menu > li > a:hover::after {
        content: '';
        position: absolute;
        width: 100%;
        left: 0;
        bottom: 7px;
        height: 3px;
        background: #e30613;
    }
}

/* Fix for the Servicetermin Vereinbaren Form */
#fmForm-1006 .form-control::-webkit-file-upload-button,
.form-control::file-selector-button {
    background-color: #d0d0d0;
}

@media (min-width: 768px) and (max-width: 991px) {
    .col-sm-6.col-xs-12.column.col-md-7 {
        width: 100%;
    }
}

/* Fix for the Servicetermin Vereinbaren Form END  */

/* RM: Override H2 in Showroom */
#site-content .module-block.showroom h2 {
    font-size: 18px;
    font-weight: 400;
    text-transform: none;
}

@media (min-width: 992px) {
    #site-content .module-block.showroom h2 {
        font-size: 28px;
    }
}

/* RM: Override H2 in Showroom END */

/* Auflistung - AA */

.list-group .list-group-item {
    background-color: transparent;
    border: none;
    padding: 10px 25px;
}

body:not(.fe-admin-area) .list-group-item::before {
    content: '\f00c';
    position: absolute;
    color: #e30613;
    font-family: FontAwesome;
    left: 0;
}

/* Auflistung - END - AA */


/*************** CARDS ***************/
.card-container {
  display: flex;
  padding: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  overflow: hidden;
  width: 800px;
  display: flex;
  flex-direction: column;
  border: 1px solid #eaeaea;
  transition: box-shadow 0.2s;
  margin-bottom: 24px;
}

.card:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.24, 0.64, 0.28, 0.98);
}

.card:hover img {
  transform: scale(1.06);
}

.card-content {
  padding: 20px;
  flex: 1 1 auto;
}

.card-content h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 2rem;
}

.card-content p {
  color: #757575;
  margin: 0 0 16px;
}

.card-content button {
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.15s;
  font-size: 1rem;
}

.card-content button:hover {
  background: #222;
}

/* Responsiveness */
@media (max-width: 1100px) {
  .card-container {
    gap: 16px;
  }
  .card {
    width: 45%;
    min-width: 280px;
  }
}

@media (max-width: 700px) {
  .card-container {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }
  .card {
    width: 95%;
    min-width: 0;
  }
}