/*
Theme Name: Vehica Child
Theme URI: https://vehicatheme.com/
Author: TangibleDesign
Author URI: https://tangibledesign.net/
description-ec: Vehica
Template: vehica
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: translation-ready
Text Domain: vehica
*/

.ec-mwst-text {
  text-align: right;
  font-size: 0.7em;
}
.ec-fin-text {
  text-align: center;
}

.elementor-widget-text-editor h1,
.elementor-widget-text-editor h2,
.elementor-widget-text-editor h3,
.elementor-widget-text-editor h4,
.elementor-widget-text-editor h5 {
  margin: 1.5em 0 0.7em 0 !important;
}

.vehica-inventory-v1__title {
  display: none !important;
}
.vehica-search-v1__tab-count {
  display: none !important;
}

.cf7-cf-turnstile {
  margin: 0 0 -25px 15px !important;
  padding: 15px 0 0 0 !important;
}

/* ============================================
       HORIZONTALES BATTERIE-WIDGET
============================================ */

.ec-battery-widget {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f2f5fb;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 18px;
  font-family: inherit;
  /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04); */
}

.ec-battery-widget * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Icon */
.ec-bsw-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: linear-gradient(135deg, #00d4aa, #00b894);
  box-shadow: 0 3px 10px rgba(0, 212, 170, 0.3);
}

.ec-bsw-icon svg {
  width: 22px;
  height: 22px;
}

/* Inhalt (Prozent + Bar) */
.ec-bsw-content {
  flex: 1;
  min-width: 0;
}

.ec-bsw-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.ec-bsw-label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.ec-bsw-percent {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: -0.5px;
}

/* Fortschrittsbalken */
.ec-bsw-bar {
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.ec-bsw-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.5s ease;
}

/* Zertifikat Button */
.ec-bsw-cert-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #6c5ce7, #5b4cdb);
  color: white;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(108, 92, 231, 0.25);
}

.ec-bsw-cert-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(108, 92, 231, 0.35);
  color: white;
}

.ec-bsw-cert-btn svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 600px) {
  .ec-battery-widget {
    padding: 12px 14px;
    gap: 12px;
  }

  .ec-bsw-icon {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }

  .ec-bsw-percent {
    font-size: 18px;
  }

  .ec-bsw-cert-btn span {
    display: none; /* Text verstecken, nur Icon */
  }

  .ec-bsw-cert-btn {
    padding: 10px;
  }
}

.vehica-car-description-ec {
  color: #222732;
  font-size: 16px;
  line-height: 30px;
}

.vehica-car-description-ec p {
  margin-bottom: 16px;
}

.vehica-car-description-ec p:last-child {
  margin-bottom: 0;
}

@media (min-width: 1025px) and (max-width: 1199px) {
  .vehica-car-description-ec {
    max-width: 964px;
  }
}

.vehica-car-description-ec h1,
.vehica-car-description-ec h2,
.vehica-car-description-ec h3,
.vehica-car-description-ec h4,
.vehica-car-description-ec h5,
.vehica-car-description-ec h6 {
  line-height: 1;
  margin-bottom: 10px;
  margin-top: 35px;
  font-weight: 700;
}

.vehica-car-description-ec h1 {
  font-size: 28px !important;
}

.vehica-car-description-ec h2 {
  font-size: 22px !important;
}

.vehica-car-description-ec h3 {
  font-size: 22px;
}

.vehica-car-description-ec h4 {
  font-size: 20px;
}

.vehica-car-description-ec h5 {
  font-size: 18px;
}

.vehica-car-description-ec h6 {
  font-size: 16px;
}

.vehica-car-description-ec__inner {
  margin-bottom: 20px;
}



/* GARAN WIDGET - EC GARAN MODAL */

.ec-garan-widget {
  display: inline-block;
  margin: 10px 0;
}
.ec-garan-widget .ec-garan-emoji {
  margin-right: 4px;
  font-style: normal;
  line-height: 1;
  text-decoration: none !important;
  text-decoration-line: none !important;
  -webkit-text-decoration-line: none !important;
  border-bottom: 0 !important;
  display: inline-block;
}

.ec-garan-widget .ec-garan-link {
  color: #1a73e8;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}
.ec-garan-widget .ec-garan-link:hover,
.ec-garan-widget .ec-garan-link:focus {
  color: #0d47a1;
}

.ecdesign-light .ec-garan-link {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 15px;
  line-height: 1.4;
  cursor: pointer;
}
.ecdesign-light .ec-garan-link:hover,
.ecdesign-light .ec-garan-link:focus {
  color: #e2e8f0;
}


.ec-garan-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.ec-garan-modal[hidden] {
  display: none;
}
.ec-garan-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(2px);
}
.ec-garan-modal-dialog {
  position: relative;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  max-width: min(1100px, 100%);
  max-height: 95vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  animation: ec-garan-fade-in 0.2s ease-out;
}
@keyframes ec-garan-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.ec-garan-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  flex: 0 0 auto;
}
.ec-garan-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}
.ec-garan-modal-close {
  background: transparent;
  border: 0;
  font-size: 28px;
  line-height: 1;
  color: #6b7280;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.15s;
}
.ec-garan-modal-close:hover,
.ec-garan-modal-close:focus {
  color: #111827;
}
.ec-garan-modal-body {
  padding: 12px;
  overflow: auto;
  text-align: center;
  background: #ffffff;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.ec-garan-modal-image {
  display: block;
  margin: 0 auto;
  width: auto;
  height: auto;
  max-width: 100%;
}
@media (max-width: 600px) {
  .ec-garan-modal {
    padding: 8px;
  }
  .ec-garan-modal-dialog {
    max-height: 100vh;
    border-radius: 6px;
  }
  .ec-garan-modal-header {
    padding: 10px 12px;
  }
  .ec-garan-modal-title {
    font-size: 14px;
  }
  .ec-garan-modal-body {
    padding: 8px;
  }
  .ec-garan-modal-image {
    max-width: 100%;
  }
}








body {
    --hr-line-offset: 25%;
    --hr-color: lightblue;
}

.vehica-car-description-ec hr {
    border-image-slice: 1;
    border-image-source: linear-gradient(
        to right,
        transparent,
        var(--hr-color) calc(50% - var(--hr-line-offset)),
        var(--hr-color) calc(50% + var(--hr-line-offset)),
        transparent
    );
    padding: 2px 0 2px 0;
    display: none;
}

/* Breadcrumb: letztes Element einzeilig halten und mit Ellipsis kuerzen */
.vehica-breadcrumbs {
    min-width: 0;
    max-width: 100%;
}

.vehica-breadcrumbs__single {
    flex: 0 0 auto;
}

.vehica-breadcrumbs__last {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 0 1 auto;
}

