/* ==========================================================================
   Auto Bögl – site styles
   Values are taken from the computed styles of the original BeTheme site.
   Breakpoints: 1240 (desktop menu), 960, 768, 480.
   ========================================================================== */

@font-face {
    font-family: "Corporate S Regular";
    src: url("/wp-content/uploads/2018/10/Daimler-CS-Reg-eu.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Corporate A Condensed";
    src: url("/wp-content/uploads/2018/10/Daimler-CAC-Reg-eu.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --font-body: "Corporate S Regular", Arial, Tahoma, sans-serif;
    --font-heading: "Corporate A Condensed", Arial, Tahoma, sans-serif;
    --color-text: #000;
    --color-heading: #161922;
    --color-link-hover: #3d3d3d;
    --color-footer-bg: #0c0c0d;
    --color-footer-text: #a6a6a6;
    --color-submenu-bg: #f2f2f2;
    --color-submenu-link: #5f5f5f;
    --color-submenu-link-hover: #2e2e2e;
    --color-button-bg: #f7f7f7;
    --color-button-text: #747474;
    --topbar-height: 60px;
    --container: 1060px;
    --gutter: 1%;
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font: 400 15px/25px var(--font-body);
    color: var(--color-text);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 15px;
    color: var(--color-heading);
    font-family: var(--font-heading);
}

h1 { font-size: 52px; line-height: 57px; font-weight: 500; }
h2 { font-size: 40px; line-height: 50px; font-weight: 400; }
h3 { font-size: 30px; line-height: 36px; font-weight: 400; }
h4 { font-size: 21px; line-height: 25px; font-weight: 700; }
h5 { font-size: 15px; line-height: 25px; font-weight: 700; font-family: var(--font-body); }
h6 { font-size: 14px; line-height: 25px; font-weight: 400; font-family: var(--font-body); }

p {
    margin: 0 0 15px;
}

ul, ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-link-hover);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border: 0;
}

b, strong {
    font-weight: 700;
}

button {
    font: inherit;
}

.icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    vertical-align: -0.15em;
}

/* Inline icons keep the spacing of the old icon font. */
p .icon,
.team-card__mail .icon {
    margin: 0 0.2em;
}

/* Glyph box placed where the old icon font put it (22px font, 34px line). */
.menu-toggle .icon {
    display: block;
    width: 22px;
    height: 22px;
    margin: 2.3px auto 0;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
}

#content {
    padding-top: 30px;
    background: #fff;
}

.band {
    position: relative;
}

/* 12-ish column grid reproducing BeTheme's 1% side gutters. */
.grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

.grid > *,
.col {
    width: var(--w, 98%);
    margin: 0 var(--gutter) 40px;
}

.grid > .w-1-6 { --w: 14.666%; }
.grid > .w-1-5 { --w: 18%; }
.grid > .w-1-4 { --w: 23%; }
.grid > .w-1-3 { --w: 31.333%; }
.grid > .w-2-5 { --w: 38%; }
.grid > .w-1-2 { --w: 48%; }
.grid > .w-3-5 { --w: 58%; }
.grid > .w-2-3 { --w: 64.666%; }

.text-center { text-align: center; }

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

.site-header {
    position: relative;
    z-index: 30;
}

.topbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(var(--topbar-height) + 1px);
    display: flex;
    align-items: flex-start;
    background: url("/wp-content/uploads/2018/10/car2-headerbg.png") repeat left top;
    border-bottom: 1px solid #1f1f1f;
}

.topbar.is-sticky {
    position: fixed;
    background: #000;
    opacity: 0.97;
    animation: topbar-in 0.3s ease-out;
}

@keyframes topbar-in {
    from { transform: translateY(-60px); }
    to { transform: none; }
}

.logo {
    display: block;
    height: var(--topbar-height);
    margin: 0 30px 0 20px;
}

/* Offsets match the old inline, vertically "middle" aligned logo. */
.logo img {
    width: auto;
    height: 37px;
    margin-top: 12.94px;
}

.topbar.is-sticky .logo img {
    height: 35px;
    margin-top: 13.94px;
}

.main-nav {
    margin-left: auto;
}

.main-nav > ul {
    display: flex;
}

.main-nav li {
    position: relative;
}

.main-nav > ul > li > a {
    display: block;
    padding: 0 30px;
    line-height: var(--topbar-height);
    color: #fff;
}

.main-nav > ul > li > a:hover {
    color: #fff;
    text-decoration: none;
}

@media (min-width: 1240px) {
    .main-nav > ul > li:hover > a,
    .main-nav > ul > li > a[aria-current] {
        background: #000;
    }
}

/* Dropdown arrow next to items with a submenu. */
.main-nav > ul > .has-sub > a::after {
    content: "";
    position: absolute;
    top: 30px;
    right: 10px;
    margin-top: -2px;
    opacity: 0.6;
    border-top: 5px solid #fff;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.sub-toggle,
.menu-toggle {
    display: none;
    padding: 0;
    border: 0;
    background: none;
    color: #fff;
    cursor: pointer;
}

.main-nav .sub {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 205;
    background: var(--color-submenu-bg);
    box-shadow: 2px 2px 2px 0 rgba(0, 0, 0, 0.03);
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
}

.main-nav .has-sub:hover > .sub,
.main-nav .has-sub:focus-within > .sub {
    visibility: visible;
    opacity: 1;
}

.main-nav .sub li {
    width: 200px;
}

.main-nav .sub a {
    display: block;
    padding: 10px 20px;
    color: var(--color-submenu-link);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.main-nav .sub a:hover {
    color: var(--color-submenu-link-hover);
    text-decoration: none;
}

@media (max-width: 1239px) {
    .menu-toggle {
        display: block;
        position: absolute;
        top: 13px;
        right: 20px;
        width: 34px;
        height: 34px;
        font-size: 22px;
        line-height: 34px;
        text-align: center;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        right: 1px;
        width: 300px;
        background: #000;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav > ul {
        display: block;
    }

    .main-nav > ul > li > a {
        padding: 0 25px;
        line-height: 44px;
    }

    .main-nav > ul > .has-sub > a::after {
        display: none;
    }

    .sub-toggle {
        display: block;
        position: absolute;
        top: 0;
        right: 15px;
        width: 44px;
        height: 44px;
        font-size: 30px;
        font-weight: 300;
        line-height: 44px;
        opacity: 0.33;
    }

    .sub-toggle::after {
        content: "+";
    }

    .sub-toggle[aria-expanded="true"]::after {
        content: "-";
    }

    .main-nav .sub {
        position: static;
        display: none;
        visibility: visible;
        opacity: 1;
        box-shadow: none;
        transition: none;
    }

    .main-nav .sub.is-open {
        display: block;
    }

    .main-nav .sub li {
        width: 100%;
    }

    .main-nav .sub a {
        padding: 0 20px 0 35px;
        line-height: 44px;
        border: 0;
    }
}

@media (max-width: 767px) {
    /* Keeps the page from jumping when the bar becomes fixed. */
    .site-header {
        min-height: 60px;
    }

    .topbar {
        position: relative;
        background-color: #000;
    }

    .topbar.is-sticky {
        position: fixed;
        background: #000 url("/wp-content/uploads/2018/10/car2-headerbg.png") repeat left top;
        opacity: 1;
    }

    /* On phones the open menu sits in the bar and pushes the page down. */
    .topbar {
        flex-wrap: wrap;
        height: auto;
        min-height: 61px;
    }

    .main-nav {
        position: static;
        width: 100%;
        max-height: calc(100vh - 60px);
        padding-bottom: 10px;
        overflow-y: auto;
    }

    .logo {
        margin-left: 15px;
    }

    .menu-toggle {
        right: 10px;
    }
}

/* --- Page title (BeTheme "Subheader") ------------------------------------ */

.page-title {
    padding: 200px 0 150px;
    background: #000 var(--bg, none) no-repeat center bottom / cover;
    text-align: center;
}

.page-title h1 {
    width: 98%;
    margin: 0 1%;
    font-size: 48px;
    line-height: 58px;
    font-weight: 500;
    color: #fff;
}

.grid > :is(h2, h3, p) {
    margin-bottom: 55px; /* text margin + column margin */
}

.grid--halves > .w-1-2 {
    --w: 49%;
    margin: 0 0.5% 40px;
}

.grid > .offset-1-6 { margin-left: 17.666%; }
.grid > .offset-1-5 { margin-left: 21%; }
.grid > .offset-1-4 { margin-left: 26%; }
.grid > .offset-1-3 { margin-left: 34.333%; }
.grid > .offset-1-2 { margin-left: 51%; }

/* A column filling a centered 3/5 wrap (BeTheme "wrap" + inner column). */
.grid > .centered-3-5 {
    width: 58.8%;
    margin-left: auto;
    margin-right: auto;
}
.grid > .offset-3-5 { margin-left: 61%; }

.flow {
    display: flow-root;
}

.page-title--shadow h1 {
    text-shadow: 1px 1px 0 #000;
}

/* --- Info box (black list box) ------------------------------------------- */

.infobox {
    padding: 25px 30px;
    background: #000;
    color: #fff;
}

.infobox h3 {
    color: #fff;
}

.infobox--centered h3 {
    text-align: center;
}

.infobox li {
    position: relative;
    padding: 13px 0 13px 40px;
    line-height: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.infobox li:last-child {
    border-bottom: 0;
}

.infobox li::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 5px;
    width: 13.34px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -850 667 1000'%3E%3Cpath fill='%23fff' transform='scale(1,-1)' d='M249 0q-34 0-56 28l-180 236q-16 24-12 52t26 46 51 14 47-28l118-154 296 474q16 24 43 30t53-8q24-16 30-43t-8-53l-350-560q-20-32-56-32z'/%3E%3C/svg%3E") no-repeat;
}


/* --- Icon box (icon in a circle with a title) ---------------------------- */

.icon-box {
    padding: 10px 0;
    text-align: center;
}

.icon-box__icon {
    position: relative;
    display: block;
    width: 110px;
    height: 115px;
    margin: 0 auto 25px;
    padding-top: 5px;
}

.icon-box__icon .icon {
    display: block;
    width: 80px;
    height: 80px;
    margin: 12.5px auto 0;
}

.icon-box h4 {
    margin-bottom: 20px;
    padding-top: 2px;
}

/* --- Full-width bands and backgrounds ------------------------------------ */

/* Edge-to-edge on desktop; normal container on phones. */
.band--full > .container {
    max-width: none;
}

.grid--flush > * {
    margin-bottom: 0;
}

.band--line {
    padding-top: 125px;
    background: url("/wp-content/uploads/2018/10/car2_section1_line.png") no-repeat center top;
}

.band--dark {
    background-color: #000;
    color: #fff;
}

.full-image {
    display: block;
    width: 100.1%;
    max-width: 100.1%;
}

.band--efamily {
    padding-top: 700px;
    background: #000 url("/wp-content/uploads/2018/12/E-Family.jpg") no-repeat 0 0 / cover;
}

/* Section with a background image on one half and white on the other. */
.band--highlight {
    background: var(--bg) no-repeat left top;
}

.band--highlight-left {
    background-position: center;
}

.band--highlight::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 1;
    width: 50%;
    background: #fff;
}

.band--highlight-right::after { right: 0; }
.band--highlight-left::after { left: 0; }

.band--highlight > .container {
    position: relative;
    z-index: 2;
}

.band--pt { padding-top: 50px; }
.band--pt40 { padding-top: 40px; }
.band--pb { padding-bottom: 50px; }

/* --- Content elements ---------------------------------------------------- */

.list {
    margin: 0 0 15px 30px;
    list-style: disc outside;
}

.button {
    position: relative;
    display: inline-block;
    overflow: hidden;
    margin: 0 7px 15px 0;
    padding: 11px 20px;
    background: var(--color-button-bg);
    color: var(--color-button-text);
}

.button::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.07);
    opacity: 0;
    transition: opacity 0.3s;
}

.button:hover {
    color: var(--color-button-text);
    text-decoration: none;
}

.button:hover::after {
    opacity: 1;
}

/* BeTheme scaled content images to 100.1% inside a clipping frame. */
.content-image {
    display: block;
}

.grid > .content-image:not(.content-image--center) {
    width: calc(var(--w, 98%) * 1.001);
    max-width: none;
    margin-right: calc(var(--gutter) - var(--w, 98%) * 0.001);
}

.grid > .content-image--center,
.stack > .content-image--center {
    margin-left: auto;
    margin-right: auto;
}

.mb-0 {
    margin-bottom: 0;
}

.grid > .stack {
    margin-bottom: 0;
}

.stack > * {
    margin-bottom: 40px;
}

.quote {
    position: relative;
    width: 580px;
    margin: 19px 0 10.5px;
    padding: 4.5px 40px;
    color: #383838;
    font-size: 18px;
    font-style: italic;
    line-height: normal;
}

.quote::before {
    content: "\201C";
    position: absolute;
    top: -20px;
    left: -20px;
    color: #7a7a7a;
    font-size: 80px;
}


/* --- Trailer box (image teaser with title) ------------------------------- */

.trailer-box {
    position: relative;
    display: block;
    line-height: 0;
    text-align: center;
}

.trailer-box img {
    width: 100%;
    vertical-align: baseline;
}

.trailer-box::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.15);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.trailer-box__desc {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    width: 100%;
    padding: 27px 15px 30px;
}

.trailer-box__subtitle,
.trailer-box__title {
    position: relative;
    bottom: 0;
    transition: bottom 0.3s ease-in-out;
}

.trailer-box__subtitle {
    display: inline-block;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.7);
    line-height: normal;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.trailer-box__title {
    display: block;
    color: #fff;
    font: 30px/30px var(--font-heading);
}

.trailer-box--shadow .trailer-box__title {
    text-shadow: 1px 1px 0 #000;
}

.trailer-box:hover {
    text-decoration: none;
}

.trailer-box:hover::after {
    opacity: 1;
}

.trailer-box:hover .trailer-box__subtitle,
.trailer-box:hover .trailer-box__title {
    bottom: 20px;
}

/* --- Team card (contact person) ------------------------------------------ */

.team-card {
    text-align: center;
}

.team-card h4 {
    margin-bottom: 3px;
}

.team-card__phone a {
    color: inherit;
}

.team-card hr {
    width: 40%;
    height: 1px;
    margin: 0 auto 15px;
    border: 0;
    background: #0095eb;
}


.team-card__role {
    color: #a8a8a8;
}

/* Photo in a light frame, text left aligned. */
.team-card--vertical {
    text-align: left;
}

.team-card__photo {
    display: block;
    flex-shrink: 0;
    border: 8px solid #f8f8f8;
    line-height: 0;
}

.team-card--vertical .team-card__photo {
    width: 165px;
    max-width: 100%;
    margin-bottom: 15px;
}

.team-card--vertical .team-card__photo img {
    width: 100.1%; /* BeTheme scale-with-grid */
    max-width: 100.1%;
}

.team-card--vertical hr,
.team-card--horizontal hr {
    margin-left: 0;
}

.team-card--horizontal {
    display: flex;
    align-items: flex-start;
    text-align: left;
}

.team-card--horizontal .team-card__photo {
    width: 48%;
    margin-right: 4%;
}

.team-card--horizontal .team-card__body {
    width: 48%;
}

.team-card__mail {
    display: inline-block;
    text-align: center;
    width: 43px;
    height: 43px;
    margin: 0 2px 2px 0;
    background: #f0f0f0;
    color: #444;
    font-size: 15px;
    line-height: 43px;
    vertical-align: top;
}

.team-card__mail:hover {
    color: #444;
}

/* --- Opening hours ------------------------------------------------------ */

.opening-hours {
    margin-top: 0;
    text-align: center;
}

.opening-hours dt {
    float: left;
    clear: left;
    width: 130px;
    font-weight: 700;
    text-align: left;
}

.opening-hours dd {
    margin: 0;
}

/* --- Mercedes page ------------------------------------------------------- */

.mercedes-intro {
    align-items: center;
}

/* Images that sit on a text line, like the old inline images. */
.inline-media img,
.mercedes-intro__image img {
    vertical-align: baseline;
}

.grid > .mercedes-intro__image {
    width: 58.8%;
    margin: 0 0.6% 40px;
    text-align: right;
}

.grid > .mercedes-intro__text {
    width: 35.28%;
    margin: 0 2.36% 40px;
}

.mercedes-services {
    padding: 150px 0 125px;
    background-color: #0c0c0d;
    background-position: left center;
    background-size: contain;
}

.grid > .mercedes-services__text {
    width: 39.2%;
    margin-left: 55.4%;
}

.mercedes-services h2 {
    margin-bottom: 26px; /* heading margin + invisible rule */
}

.zoom-boxes {
    display: flex;
}

.zoom-box {
    position: relative;
    overflow: hidden;
    width: 33.333%;
    line-height: 0;
}

.zoom-box img {
    width: 100.1%;
    max-width: 100.1%;
    transition: transform 0.3s ease-in-out;
}

.zoom-box__desc {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
    background: rgba(204, 204, 204, 0.8);
    opacity: 0;
    transform: scale(1.15);
    transition: all 0.3s ease-in-out;
}

.zoom-box__desc h3 {
    margin: 0;
}

.zoom-box:hover img {
    transform: scale(1.1);
}

.zoom-box:hover .zoom-box__desc {
    opacity: 1;
    transform: none;
}

.mercedes-sales__title {
    margin: 0 1% 40px;
    padding: 60px 0 450px;
    background: url("/wp-content/uploads/2018/10/handschlag.jpg") no-repeat left top;
    text-align: center;
}

.mercedes-sales__title h2 {
    margin-bottom: 15px;
}

.mercedes-sales > .grid {
    padding-top: 30px;
}

.mercedes-repair {
    display: flow-root;
    padding: 30px;
    background: url("/wp-content/uploads/2018/10/truck.jpg") no-repeat left top;
}

.mercedes-repair__text {
    width: 48%;
    margin: 0 1% 40px 51%;
    padding: 20px;
    background: #000;
    color: #fff;
}

.mercedes-repair__text h2 {
    color: #fff;
}

/* --- Home: hero slider --------------------------------------------------- */

/* --s is the old slider's scale factor, set by slider.js. */
.hero-slider {
    --s: 1;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s;
}

.hero-slider__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slider__layers {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s, visibility 0.6s;
}

.hero-slider__layers.is-visible {
    opacity: 1;
    visibility: visible;
}

.hero-slider__title {
    position: absolute;
    top: calc((100% - 868px * var(--s)) / 2 + 150px);
    left: calc(50% - 305px * var(--s) + 40px);
    width: calc(610px * var(--s));
    margin: 0;
    color: #fff;
    font-size: calc(100px * var(--s));
    line-height: calc(22px * var(--s));
    white-space: nowrap;
    text-shadow: 1px 1px 0 #000;
}

.hero-slider__button {
    position: absolute;
    top: calc((100% - 868px * var(--s)) / 2 + 300px * var(--s));
    padding: 0 calc(14px * var(--s));
    background: #000;
    color: #fff;
    font: 500 calc(16px * var(--s)) / calc(35px * var(--s)) Roboto;
    white-space: nowrap;
    transform: translateX(-50%);
    transition: color 0.2s, background-color 0.2s, filter 0.2s;
}

.hero-slider__button--service {
    left: calc(50% - 140px * var(--s));
}

.hero-slider__button--stock {
    left: calc(50% + 50px * var(--s));
    padding: 0 calc(22px * var(--s));
    background: #007aff;
}

.hero-slider__button:hover {
    text-decoration: none;
}

.hero-slider__button--service:hover {
    background: #fff;
    color: #000;
}

.hero-slider__button--stock:hover {
    color: #fff;
    filter: brightness(120%);
}

@media (max-width: 777px) {
    .hero-slider__button {
        display: none;
    }
}

/* --- Home: content ------------------------------------------------------- */

.grid > .home-intro {
    width: 82.32%;
    margin: 0 8.84% 55px;
}

.grid > .home-vehicles__title {
    width: 100%;
    margin: 0 0 15px;
}

.home-mazda {
    padding: 200px 0 175px;
    background: #000 url("/wp-content/uploads/2018/10/Web-Footer-CX-5_2017_Sportliche_Anbauteile_Seite.jpg") no-repeat left top / cover;
}

.grid > .home-mazda__text {
    width: 39.2%;
    margin: 0 0.4% 40px;
}

.home-mazda h2 {
    margin-bottom: 21px; /* heading margin + invisible rule */
    color: #fff;
}

.home-mazda p {
    margin-bottom: 21px;
}

.home-mazda a,
.home-mazda a:hover {
    color: #fff;
}

/* --- Home: job popup ----------------------------------------------------- */

.job-popup {
    position: absolute;
    top: 100px;
    max-width: none;
    max-height: none;
    margin: 0 auto;
    padding: 18px;
    border: 0;
    background: #000;
    box-shadow: 0 10px 25px 0 rgba(2, 2, 2, 0.5);
    opacity: 0.8;
    line-height: 0;
}

.job-popup[open] {
    animation: popup-in 0.35s;
}

@keyframes popup-in {
    from { opacity: 0; }
}

.job-popup::backdrop {
    background: rgba(0, 0, 0, 0.5);
}

.job-popup__close {
    position: absolute;
    top: 0;
    right: 7px;
    width: 32px;
    height: 24px;
    padding: 0;
    border: 0;
    background: #fff;
    box-shadow: -1px 1px 1px 0 rgba(2, 2, 2, 0.1);
    color: #1e73be;
    font: 100 32px/24px "Times New Roman", serif;
    cursor: pointer;
}

/* --- Über uns & Kontakt --------------------------------------------------- */

#content.no-padding {
    padding-top: 0;
}

.about-hero {
    padding: 200px 0;
    background: url("/wp-content/uploads/2018/10/car2-contacr-headerbg.jpg") no-repeat left top / cover;
}

.about-hero h1 {
    color: #fff;
}

.grid > .about-hero h1,
.about-hero .grid > h1 {
    margin-bottom: 55px;
}

.about-intro {
    flex-wrap: nowrap;
    align-items: flex-start;
}

.grid > .contact-box {
    flex-shrink: 0;
    width: 40%;
    margin: 0 0 40px;
}

.contact-box {
    padding: 25px 30px;
    background: #000 url("/wp-content/uploads/2018/10/car2_section1_bg2.jpg") no-repeat right bottom;
    color: #fff;
}

.contact-box h3 {
    color: #fff;
}

.contact-box li {
    position: relative;
    padding: 13px 0 13px 50px;
    line-height: normal;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-box li:last-child {
    border-bottom: 0;
}

.contact-box li .icon {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 30px;
    height: 30px;
    padding: 3.5px;
    color: rgba(0, 0, 0, 0.7);
}

.contact-box a,
.contact-box a:hover {
    color: #fff;
}

.grid > .about-intro__image {
    position: relative;
    z-index: 28;
    width: 60.06%;
    max-width: none;
    margin: -125px 0 40px;
}

.band--logos {
    padding: 20px 0;
}

.logo-cell {
    line-height: 0;
    text-align: center;
}

.about-details {
    padding: 50px 0 100px;
}

.grid > .about-details__hours {
    width: 24.5%;
    margin: 0 0.25%;
}

.about-details__hours > * {
    margin-bottom: 40px;
}

.hours-list dl {
    margin: 0;
}

.hours-list dt {
    display: inline-block;
    margin-bottom: 8px;
    padding: 10px 0;
    border-bottom: 1px solid #000;
    line-height: 18px;
}

.hours-list dd {
    margin: 0;
    padding: 10px 0;
    font-size: 32px;
    line-height: 32px;
}

.grid > .about-details__text {
    width: 29.4%;
    margin: 0 5.3% 40px;
}

.grid > .about-details__promise {
    width: 32.666%;
    margin: 0 0.333% 40px;
}

.contact-section {
    margin: 0 1%;
}

.contact-section h2 {
    margin-bottom: 35px;
}

.contact-row {
    display: flex;
    margin: 0 -15px;
}

.contact-row > * {
    padding: 0 15px;
}

.contact-row__map {
    width: 33.333%;
}

.contact-row__map img {
    margin-bottom: 70px;
}

.contact-row__form {
    width: 66.667%;
}

.contact-row__form .site-form {
    margin-bottom: 35px;
}

.contact-row__form form {
    display: flow-root;
}

/* --- Error pages -------------------------------------------------------- */

.error-page__code {
    margin: 0 0 10px;
    color: #161922;
    font: 160px/1 var(--font-heading);
    letter-spacing: 4px;
}

.button--dark,
.button--dark:hover {
    background: #000;
    color: #fff;
}

.button--dark::after {
    background: rgba(255, 255, 255, 0.15);
}

.trailer-box--cover img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* Darkens the lower part so the title stays readable on light photos. */
.trailer-box--cover .trailer-box__desc {
    padding-top: 60px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55));
}

/* --- Karriere ------------------------------------------------------------ */

/* Black box overlapping the page title. */
.teaser-box {
    position: relative;
    z-index: 28;
    margin-top: -50px;
    padding: 30px;
    background: #000;
    text-align: center;
}

.teaser-box h3 {
    color: #fff;
}

.job-card {
    display: block;
    padding-bottom: 10px;
    border: 1px solid #999;
    text-align: center;
}

.job-card img {
    vertical-align: baseline;
}

/* --- Forms (look of the old Contact Form 7 forms) ------------------------ */

.site-form p {
    display: flow-root;
    margin: 0 0 15px;
}

.site-form label {
    display: block;
    font-weight: 700;
}

.site-form input[type="text"],
.site-form input[type="email"],
.site-form textarea {
    display: block;
    width: 100%;
    margin: 0 0 3px;
    padding: 10px;
    border: 1px solid #ebebeb;
    border-radius: 0;
    background: #fff;
    color: #626262;
    font: 14px/normal var(--font-body);
    appearance: none;
}

.site-form textarea {
    margin-bottom: 8px; /* the old inline textarea sat on the text baseline */
    line-height: 20px;
    resize: vertical;
}

.site-form input[type="file"] {
    display: block;
    margin: 2px auto 5px;
    font: 13.3333px Arial, sans-serif;
}

.site-form .form-consent {
    padding-bottom: 3px;
}

.site-form .form-consent label {
    display: inline-block;
    margin: 0 0 5px 15px;
}

.site-form input[type="checkbox"] {
    margin: 3px 3px 3px 4px;
}

.form-website {
    position: absolute;
    left: -9999px;
}

.form-submit {
    position: relative;
    display: inline-block;
    overflow: hidden;
    /* The old form reserved room for a hidden spinner right of the button. */
    margin: 0 27px 0 0;
    padding: 11px 20px;
    border: 0;
    border-radius: 0;
    background: #000;
    color: #fff;
    font: inherit;
    line-height: normal;
    cursor: pointer;
}

.form-submit::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: rgba(0, 0, 0, 0.05);
    transition: width 0.3s;
}

.form-submit:hover::after {
    width: 100%;
}

.form-error {
    display: block;
    color: #dc3232;
    font-weight: 400;
}

.form-message {
    margin: 0 0 20px;
    padding: 0.2em 1em;
    border: 2px solid #46b450;
}

.form-message--error {
    border-color: #dc3232;
}

/* --- Scroll-in animation ------------------------------------------------- */

[data-animate].is-pending {
    opacity: 0;
}

[data-animate="zoomIn"].is-pending {
    transform: scale(0.8);
}

[data-animate].is-visible {
    opacity: 1;
    transform: none;
    transition: opacity 1s, transform 1s;
}

/* --- Prose (legal pages) ------------------------------------------------- */

.prose {
    display: flow-root;
    margin: 0 var(--gutter);
}

.prose--narrow {
    width: 64.666%;
    margin-left: 17.666%;
    margin-bottom: 40px;
}

.prose ul {
    margin: 0 0 15px 30px;
    list-style: disc outside;
}

.prose li {
    margin-bottom: 10px;
}

.prose li > ul {
    margin: 10px 0 15px 30px;
}

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

.site-footer {
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
}

.site-footer a {
    color: #fff;
}

.site-footer a:hover {
    color: #fff;
}

.site-footer h4 {
    color: #fff;
}

.footer-widgets {
    display: flex;
    padding: 70px 0;
}

.footer-widgets > * {
    width: 31.333%;
    margin: 0 var(--gutter);
    padding: 15px 0;
}

.footer-widgets p {
    margin: 0;
    padding-top: 11px; /* BeTheme had an invisible <hr> here */
}

.footer-widgets img {
    vertical-align: baseline;
}

.footer-menu {
    background: rgba(0, 0, 0, 0.03);
}

.footer-menu li {
    position: relative;
}

.footer-menu li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-menu a {
    display: block;
    padding: 5px 0 5px 3px;
}

.footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-copy .container {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
}

.copyright {
    min-height: 33px;
    margin: 30px 1% 20px;
}

.back-to-top {
    width: 42px;
    height: 42px;
    margin: 21px 1% 0 0;
    font-size: 20px;
    line-height: 42px;
    text-align: center;
}

/* --- Cookie notice ------------------------------------------------------- */

.cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100000;
    padding: 15px 30px;
    background: #000;
    color: #fff;
    font: 13px/20px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    text-align: center;
    animation: cookie-in 0.5s ease-out;
}

@keyframes cookie-in {
    from { transform: translateY(100%); }
}

.cookie-notice__text {
    display: inline-block;
    margin-bottom: 6px;
}

.cookie-notice__button {
    display: inline-block;
    margin-left: 10px;
    padding: 11px 20px;
    border: 0;
    border-radius: 5px;
    background: var(--color-button-bg);
    color: var(--color-button-text);
    font: inherit;
    cursor: pointer;
}

.cookie-notice__button:hover {
    color: var(--color-button-text);
    text-decoration: none;
}

.cookie-notice__close {
    position: absolute;
    top: 50%;
    right: 15px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    padding: 0;
    border: 0;
    background: none;
    opacity: 0.5;
    cursor: pointer;
}

.cookie-notice__close::before,
.cookie-notice__close::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 9px;
    width: 2px;
    height: 15px;
    background: #808080;
    transform: rotate(45deg);
}

.cookie-notice__close::after {
    transform: rotate(-45deg);
}

/* --- Responsive ---------------------------------------------------------- */

@media (max-width: 1239px) {
    :root { --container: 940px; }
}

@media (max-width: 959px) {
    :root { --container: 708px; }

    .logo img { margin-top: 12.42px; }

    body { font-size: 13px; line-height: 21px; }
    h1 { font-size: 44px; line-height: 48px; }
    h2 { font-size: 34px; line-height: 43px; }
    h3 { font-size: 26px; line-height: 31px; }
    h4 { font-size: 18px; line-height: 21px; }
    h5 { font-size: 13px; line-height: 21px; }
    h6 { font-size: 13px; line-height: 21px; }
    .page-title h1 { font-size: 41px; line-height: 49px; }
    .trailer-box__title { font-size: 27px; line-height: 27px; }
}

@media (min-width: 768px) and (max-width: 959px) {
    .infobox li { padding-left: 0; }
    .infobox li::before { display: none; }
    .site-form textarea { margin-bottom: 7px; }
    .site-form input[type="file"] { margin: 0 auto 4px; }
}

@media (max-width: 767px) {
    :root { --container: 546px; }

    .container {
        padding-left: 33px;
        padding-right: 33px;
    }

    body { line-height: 19px; }
    h1 { font-size: 39px; line-height: 43px; }
    h2 { font-size: 30px; line-height: 38px; }
    h3 { font-size: 23px; line-height: 27px; }
    h4 { font-size: 16px; line-height: 19px; }
    h5, h6 { line-height: 19px; }

    .page-title {
        padding: 80px 0;
    }

    .trailer-box__title { font-size: 24px; line-height: 24px; }
    .error-page__code { font-size: 110px; }

    .page-title h1 {
        width: 100%;
        margin: 0;
        font-size: 36px;
        line-height: 44px;
    }

    .grid > *,
    .grid > [class*="w-"],
    .col,
    .prose--narrow {
        --w: 100%;
        width: 100%;
        margin: 0 0 20px;
    }

    .grid > .content-image:not(.content-image--center) {
        margin-right: -0.1%;
    }

    .grid > :is(h2, h3, p, p[class]) {
        margin-bottom: 35px;
    }

    .site-form textarea {
        margin-bottom: 6px;
    }

    .site-form input[type="file"] {
        margin: 0 auto 3px;
    }

    /* BeTheme kept empty spacer columns around offset content on phones. */
    .grid > [class*="offset-"] {
        margin-top: 20px;
    }

    .grid > .spacer-after {
        margin-bottom: 40px;
    }

    .grid > .stack {
        margin-bottom: 0;
    }

    .grid > .mercedes-intro__image {
        width: 100%;
        margin: 0 0 20px;
    }

    .grid > .mercedes-intro__text {
        width: 96%;
        margin: 0 2% 20px;
    }

    .mercedes-services > .container {
        max-width: none;
        padding: 0;
    }

    .grid > .mercedes-services__text {
        width: 100%;
        margin: 20px 0 0;
        padding: 0 5% 20px;
        background: #fff;
    }

    .zoom-boxes {
        flex-direction: column;
    }

    .zoom-box {
        width: 100%;
    }

    .grid > .home-intro {
        width: 84%;
        margin: 0 8% 35px;
    }

    .grid > .home-mazda__text {
        width: 100%;
        margin: 0 0 20px;
    }

    .about-hero .grid > h1 {
        margin-bottom: 35px;
    }

    .about-intro {
        flex-wrap: wrap;
    }

    .grid > .contact-box {
        width: 100%;
        margin: 0 0 20px;
    }

    .grid > .about-intro__image {
        width: 100.1%;
        margin: 0 0 20px;
    }

    .grid > .about-details__hours {
        width: 100%;
        margin: 0;
    }

    .about-details__hours > * {
        margin-bottom: 20px;
    }

    .grid > .about-details__text {
        width: 90%;
        margin: 0 5% 20px;
    }

    .grid > .about-details__promise {
        width: 100%;
        margin: 0 0 20px;
    }

    .contact-row {
        display: block;
    }

    .contact-row > * {
        width: auto;
    }
    .mercedes-sales__title {
        margin: 0 0 20px;
    }

    .team-card--horizontal {
        display: block;
    }

    .team-card--horizontal .team-card__photo {
        width: 100%;
        margin: 0 0 15px;
    }

    .team-card--horizontal .team-card__body {
        width: 100%;
    }

    .mercedes-repair__text {
        width: 100%;
        margin: 20px 0;
    }

    .stack > * {
        margin-bottom: 20px;
    }

    .band--highlight {
        background-image: none;
    }

    .band--highlight::after {
        display: none;
    }

    .band--full > .container {
        max-width: var(--container);
    }

    .grid--flush > * {
        margin-bottom: 20px;
    }

    .full-image {
        width: 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }

    .grid > .centered-3-5 {
        width: 100%;
        margin-top: 20px;
        margin-bottom: 40px;
    }


    /* BeTheme kept empty 1/6 spacer columns around the text on phones. */
    .prose--narrow {
        margin-top: 20px;
        margin-bottom: 40px;
    }

    .footer-widgets {
        display: block;
    }

    .footer-widgets > * {
        width: 100%;
        margin: 0;
    }

    .footer-copy .container {
        display: block;
        text-align: center;
    }

    .footer-copy .container {
        padding-top: 20px;
        padding-bottom: 20px;
    }


    .copyright {
        min-height: 0;
        margin: 0 0 10px;
    }

    .back-to-top {
        display: inline-block;
        margin: 0 0 16px;
    }

    .cookie-notice__text {
        display: block;
    }
}

@media (max-width: 479px) {
    h1 { font-size: 31px; line-height: 34px; }
    h2 { font-size: 24px; line-height: 30px; }
    h3 { font-size: 18px; line-height: 22px; }
    h4 { font-size: 13px; line-height: 19px; }
    .page-title h1 { font-size: 29px; line-height: 35px; }
    .trailer-box__title { font-size: 21px; line-height: 21px; }
}
