/**
 * Theme Name:     The Car Sons Theme
 * Author:         Matchplan / Kerstin
 * Template:       hello-elementor
 * Text Domain:	   carsons
 * Description:    The Car Sons custom Theme / Hello-Elementor Child
 */

/* ------------------ PAGE GENERAL ------------------------ */
/* vars */
:root {
    --color_cars_red: #cc1e28;
}
:root .elementor-element {
    --color_border: #DDD;
    --color_active: #ef702b !important;
    --color_section: #FAFCFE !important;
    --color_theme: #ef702b !important;
    --color_theme_ee: #ef702bee !important;
    --color_theme_cc: #ef702bcc !important;
    --color_theme_aa: #ef702baa !important;
    --color_theme_88: #ef702b88 !important;
    --color_theme_77: #ef702b77 !important;
    --color_theme_alter: #fff;
}

.d-none { display: none !important; }

.menu a {
    color: var(--color_cars_red);
}

.topbar-menu a {
    color: #000;
}

.wpcf7 [type=button],
.wpcf7 [type=submit],
.wpcf7 button {
    background-color: var(--color_cars_red) !important;
    color: #fff !important;
}

.wpcf7 [type=button]:focus,
.wpcf7 [type=button]:hover,
.wpcf7 [type=submit]:focus,
.wpcf7 [type=submit]:hover,
.wpcf7 button:focus,
.wpcf7 button:hover,
button.wc-block-components-button:hover,
button.wc-block-components-button:focus {
    background-color: var(--color_cars_red) !important;
    color: #fff !important;
}


body {
    max-width: 100%;
    overflow-x: hidden;
}

.page-content {
    padding: 0 0;
}
.page-content > div > div {
    margin: 0 0;
}

body #site-header + div, main#content {
    padding-bottom: 12rem !important;
}


/* ------------------ MENU ------------------------- */
.site-header {
    z-index: 99;
}
nav.site-navigation.show {
    /*border-bottom: 4px solid #000;
    padding-left: 6rem;*/
}
.site-navigation ul.menu li ul {
    min-width: 180px !important;
}
.site-navigation ul.menu li.menu-item-has-children::after {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="currentColor" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    content: "" !important;
    width: 18px !important;
    height: 24px;
    align-self: center;
    background-position: 50%;
}
.site-navigation ul.menu li ul li.menu-item-has-children:after {
    transform: rotate(-90deg) !important;
}
.site-navigation ul.menu .menu-item.current-menu-item {
    border-bottom: 3px solid #000;
}

/* Menu mobile / Dropdown */
.site-navigation-dropdown ul.menu {
    position: fixed;
}
.site-navigation-dropdown ul.menu li.current-menu-item a {
    background: #dadada;
    color: #fff;
}
@media screen and (max-width: 992px) {
    nav.site-navigation-dropdown.show ul li ul li {
        max-height: none;
        transform: none;
    }
    nav.site-navigation-dropdown.show ul ul ul {
        display: none !important;
    }
    nav.site-navigation-dropdown.show ul>li>ul {
        padding-left: 24px;
    }

    nav.site-navigation-dropdown.show .current-menu-item>ul {
        background-color: #dadada;
    }  
}


/* Top Menu */
.topbar { font-size: 14px; line-height: 1; padding: 8px 16px;  }
.topbar { position: relative; z-index: 1000;  }
#topbar {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
#topbar > div {
    justify-content: right;
    position: relative;
}
.topbar-menu { 
    display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; position: absolute;
    top: 20px;
    right: 0; padding-right: 15px; 
}
@media screen and (max-width: 768px) {
    .topbar-menu {
        padding: 1rem;        
        position: relative;
        background-color: #dadada;
        width: 100%;
        top: 0;
        flex-wrap: wrap;
        gap: 6px 6px;
        justify-content: flex-end;
    }  
    #menu-top-menu li a:after { padding: 0 8px 0 4px !important; display: none; }
    .topbar-menu li a {
        font-size: 12px; gap: 3px;
    }
    .topbar-menu li a:before {
        width: 16px !important;
        height: 16px !important;
    }

    li.icon-shirt { margin-right: auto; }

}
.topbar a { text-decoration: none; text-transform: uppercase; }
#menu-top-menu li a:after {
    content: "|";
    padding-left: 18px;
    color: #000;
}
#menu-top-menu li:last-child a:after {
    display: none;
}

.topbar a { 
    line-height: 20px;
    vertical-align: middle;
    height: 20px;
    display: inline-block;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar li.menu-item.current-menu-item a {
    text-decoration: underline !important;
    color: var(--color_cars_red);
}
.topbar a img { display: none !important; }
li.icon-shirt a:before,
li.icon-dates a:before,
li.icon-cart a:before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;
    background-repeat: no-repeat;    
    background-size: cover;
}

li.icon-shirt a:before {
    background-image: url(assets/img/icon_shirt_carsons.png);
}
li.icon-dates a:before {
    background-image: url(assets/img/icon-booking.svg);
}
li.icon-cart { display: block !important;position: relative; }

li.icon-cart a:before {
    background-image: url(assets/img/icon-cart.svg);
}
li.icon-cart span.cart-count {
    position: absolute;
    right: -22px;
    top: -8px;
    background-color: var(--color_cars_red);
    color: #fff;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: inline-block;
    line-height: 20px;
    text-align: center;
}

/* ------------- Breadcrumbs -------------- */
nav.cars-breadcrumbs {
    margin: 2rem auto -0.5rem !important;
}
ul.cars-breadcrumbs__list {
    list-style-type: none;
    display: flex;
    gap: 12px;
    padding: 0;
}

ul.cars-breadcrumbs__list li:not(:last-child):after {
    content: ">";
    padding-left: 12px;
}

/* ------- FOOTER ------------ */
footer .copyright.show {
    display: none !important;
}


/* ------------- Gallery -----------*/
.elementor-image-gallery .gallery-item {
    margin-bottom: 2rem !important;
}

/* ------------- START -----------------------*/
body.home .page-header {
    display: none;
}


h1.entry-title, .mep-default-title, h1 {
    position: relative !important;
    color: #fff !important;
    display: block !important;
    padding: 1rem 2rem !important;
    margin-top: 2rem !important;
    margin-bottom: 3rem !important;
    font-family: var(--e-global-typography-primary-font-family) !important;
    z-index: 0;
    font-size: 40px !important;
}
.mep-default-title h2 {
    color: #fff !important;
    position: relative;
    font-family: var(--e-global-typography-primary-font-family);
    font-weight: 500 !important;
    font-size: 40px !important;
    margin: 0 0 !important;
}
h1.entry-title:before, .mep-default-title:before, h1:before {
    content: "";
    position: absolute;
    left: 0;
    right: initial;
    width: 100%;
    top: 0;
    bottom: 0;
    border-right: 3px solid #ea1d2d;
    -webkit-transform: skew(-12deg, 0deg);
    transform: skew(-12deg, 0deg);
    background-color: #000000;
    z-index: -1;
}
h1.entry-title2:after, .mep-default-title2:after, h1.ols:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -6px;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    background-color: #ea1d2d;
}
h1:after {
    right: 4px;
    bottom: -4px;
}


.mep-default-title:before {
    z-index: 0;
}

@media (max-width: 768px) {
    h1.entry-title:before,
    .mep-default-title:before,
    h1:before {        
        left: 12px;
        width: calc(100% - 24px);
    }
    h1.entry-title,
    .mep-default-title,
    h1, .mep-default-title h2 {
        font-size: 24px !important;
    }
}








/* ------------------- SEATS --------------- */
.mep-sidebar-item.seats {
    padding: 0 15px;
}

.seats {
    position: relative;
}
.seats-only-mobile {
    display: none !important;
}
@media (max-width: 768px) {
    .seats-only-mobile {
        display: block !important;
    }
}
.seats .status-past {
    position: absolute;
    top: -50px;
    width: 100%;
    text-align: right;
}
.seats .status-past .seats-label {
    background: #dfdfdf;
        display: inline-block;
        border-radius: 50%;
        padding: 8px;
}

.seats-container {
    font-family: sans-serif;
    border: 1px solid #ccc;
    padding: 1em;
    border-radius: 8px;
    margin: 1em 0;
    background: #f9f9f9;
}

.seats-label {
    margin-bottom: 0.5em;
    font-weight: bold;
}

.seats-bar {
    height: 12px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5em;
}
.seats-bar-wrapper {
    position: relative;
}
.finish_line {
    position: absolute;
    top: -14px;
    right: -16px;
    width: 20px;
    height: 100%;
}

.seats-fill {
    height: 100%;
    transition: width 0.5s ease;
}

.status-warning .seats-fill {
    background: orange;
}

.status-ok .seats-fill {
    background: green;
}

.status-full .seats-fill {
    background: red;
}



.seats-counts {
    text-align: center;
    margin-top: 0.5em;
}

.seats-count-ratio span {
    font-size: 1.4em;
    font-weight: bold;
    color: #222;
}

.seats-count-ratio small {
    display: block;
    font-size: 0.75em;
    color: #777;
    margin-top: 0.2em;
}





/* ------------- MAGE EVENTS --------------- */
div.mpStyle h2,
div.mpStyle [class*="_fs_h2"] {
    font-weight: 500 !important;
}

/* Grid style */
div.mep_event_list.list_with_filter_section {
    margin: 0 auto;
}
div.mep_event_list div.mage_grid_box {
    max-width: 320px;
    max-width: 100%;
    justify-content: center;
}
.mage_grid_box .owl-stage, .mage_grid_box .owl-item {
    width: 100% !important;
}
/* List style */
.mep-event-list-loop.one_column {
    background-color: #fff;
}
.mep-event-list-loop.one_column.mep_event_list_item {
    border: 1px solid #f1f1f1;
    padding: 24px;
    margin: 10px 0;
    box-shadow: 0 0 6px 1px #ccc;
}
.mep-event-list-loop.one_column.mep_event_list_item:hover {
    border-color: #f1f1f1 !important;
}

.mep-event-list-loop.one_column .mep_list_event_details {
    display: flex !important;
    flex-direction: column;
    padding: 0 0 0 24px
}

.mep-event-list-loop.one_column .mep_list_event_details .mep-list-header {
    padding-left: 0;
}
.mep-event-list-loop.one_column .mep_list_event_details .seats {
    order: 3;
}

.mep-event-list-loop.one_column .mep_bg_thumb {
    height: 100% !important;
}

.mep-event-list-loop.one_column .mep-tags {
    flex-direction: column;
}
.mep-event-list-loop.one_column .mep-tags .mep-day {
    padding: 4px 12px;
}

.mep-event-list-loop.one_column .seats-container {
    margin: 3em 0 0;
}


/* Event Single */
.single-mep_events .mep-default-feature-content .timeline_content ul {
    margin-left: 1rem !important;
}

.mep-default-feature-cart-sec {
    margin-top: 4rem;
}
.single .fa-shopping-cart:before {
    content: "\f058" !important;
}

.mep-default-feature-content {
    margin-bottom: 4rem;
}

.mpwem_registration_area .mpwem_booking_panel .card-body {
    border: 2px solid #d81d2d;
    border-width: 0 2px;
}
.mpwem_registration_area .mpwem_booking_panel .mpwem_form_submit_area {
    border: 2px solid #d81d2d;
    border-width: 0 2px 2px;
}





/* === Racing-Streifen nur auf der ersten sichtbaren Section der Startseite === */
body.home .elementor-section:first-of-type {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  overflow: hidden;
}

/* Obere Rennstreifen-Zierleiste */
body.home .elementor-section:first-of-type::before {
  content: '';
  position: absolute;
  top: 0;
  left: -10%;
  width: 120%;
  height: 6px;
  background: repeating-linear-gradient(
    45deg,
    #e52427,
    #e52427 10px,
    #fff 10px,
    #fff 20px
  );
  transform: rotate(-1deg);
  z-index: 1;
}

/* Container-Inhalte bleiben sichtbar */
body.home .elementor-section:first-of-type > .elementor-container {
  position: relative;
  z-index: 2;
}

/* Hauptüberschrift */
body.home .elementor-section:first-of-type .elementor-heading-title {
  font-family: 'Barlow Condensed', 'Helvetica Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #e52427;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 700;
  margin-bottom: 1rem;
}

/* Subheadline */
body.home .elementor-section:first-of-type .elementor-widget-text-editor {
  color: #ffffffcc;
  font-size: 1.2rem;
  max-width: 800px;
  margin: 0 auto;
}



/* ---------------   SHOP ---------------------- */
body.woocommerce-shop .woocommerce-ordering, body.woocommerce-page .woocommerce-ordering { display: none; }
.woocommerce .woocommerce-breadcrumb {
    margin: 2rem 0 1em !important;
}

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button.alt, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button.alt {
    background-color: #d71b24;
    color: #fff;
    -webkit-font-smoothing: antialiased;
}

.wp-element-button:hover, .wp-block-button__link:hover {
    color: #fff !important;
    background-color: var(--color_cars_red);
}

.woocommerce ul.products li.product.outofstock .price { display: none; }

/* ---------- SINGLE PRODUCT */
.woocommerce-product-details__short-description {
    margin-bottom: 2rem;
}
body.single-product .product_meta .posted_in {
    display: none;
}

body.single-product .product.outofstock p.price { display: none; }
body.single-product .product.outofstock p.stock.out-of-stock { color: #000 !important; display: inline-block;
    background-color: #ebebeb;
    padding: 8px; }

section.related.products {
    clear: both;
    padding-top: 6rem;
}

body.single-product button.single_add_to_cart_button {
    height: 42px;
}
body.single-product button.single_add_to_cart_button:hover {
    background-color: #000 !important;
}




/* ------------- FORMS CF7 -------- */
.wpcf7 label, input.wpcf7-form-control {
    width: 100%;
}

.wpcf7-form-control {
    margin-top: 0.5rem;
}
.wpcf7 .wpcf7-form-control.wpcf7-submit {
    text-wrap: auto;
}