/* ═══════════════════════════════════════════════════════════════
   AUTOHAUS LIENESCH – Custom CSS für Enfold
   Farben: #00368f (Blau), #de0039 (Rot), #edf2f5 (Hell), 
           #2b2d42 (Text), #021535 (Footer)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --blue: #00368f;
  --red: #de0039;
  --light: #edf2f5;
  --text: #2b2d42;
  --dark: #021535;
  --white: #ffffff;
  --blue-dark: #001e52;
  --blue-mid: #003d9e;
  --blue-light: #1a5fc9;
  --shadow: 0 4px 30px rgba(0, 54, 143, 0.12);
}


/* ════════════════════════════════════════════
   GLOBALE TYPOGRAFIE
   ════════════════════════════════════════════ */

body,
.avia-section,
.avia-cell,
p {
  font-family: 'DM Sans', sans-serif !important;
  color: var(--text);
}

h1, h2, h3, h4, h5, h6,
.av-special-heading .av-special-heading-tag {
  font-family: 'Bebas Neue', sans-serif !important;
  color: var(--text);
}


/* ════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════ */

#header_main,
#header,
.html_header_transparency #header_main,
.header_color,
#header_main_alternate,
.header_bg {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 40%, var(--blue-light) 100%) !important;
  border-bottom: none !important;
}

#header .logo img,
.header_color .logo img {
  filter: brightness(0) invert(1);
}

/* Navigation Links */
.main_menu .menu > li > a,
.main_menu .menu > li > a span,
#header .main_menu .menu > li > a,
.av-main-nav > li > a,
.av-main-nav > li > a span {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.82) !important;
}

.main_menu .menu > li > a:hover span,
.main_menu .menu > li.current-menu-item > a span,
.av-main-nav > li > a:hover span,
.av-main-nav > li.current-menu-item > a span {
  color: #fff !important;
}

/* ── CTA-Button "Anrufen" im Menü ── 
   Funktioniert mit CSS-Klasse "nav-cta" am Menüeintrag.
   Zusätzlich: Selektoren für den letzten Menüpunkt als Fallback. */

.main_menu .menu > li.nav-cta > a,
.av-main-nav > li.nav-cta > a,
#header .main_menu .menu > li.nav-cta > a {
  background: var(--red) !important;
  border-radius: 50px !important;
  padding: 8px 22px !important;
  transition: all 0.3s;
  margin-left: 8px;
}

.main_menu .menu > li.nav-cta > a span,
.av-main-nav > li.nav-cta > a span {
  color: #fff !important;
}

.main_menu .menu > li.nav-cta > a:hover,
.av-main-nav > li.nav-cta > a:hover {
  background: #ff1a50 !important;
  transform: scale(1.04);
}

/* Sticky Header Schatten */
.header_scrolled #header_main,
#header.header_scrolled {
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.3) !important;
}


/* ════════════════════════════════════════════
   HERO SECTION
   ════════════════════════════════════════════ */

.hero-section,
.avia-section.hero-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%) !important;
  position: relative;
  overflow: hidden;
}

/* Halbtransparenter Bogen – groß (Nissan-Style) */
.hero-section::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -5%;
  width: 75%;
  height: 120%;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  transform: rotate(-8deg);
  pointer-events: none;
  z-index: 0;
}

/* Halbtransparenter Bogen – mittel */
.hero-section::after {
  content: '';
  position: absolute;
  top: 5%;
  right: 8%;
  width: 55%;
  height: 90%;
  border-radius: 50%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  transform: rotate(-5deg);
  pointer-events: none;
  z-index: 0;
}

/* Alle Hero-Inhalte über den Shapes */
.hero-section > .container,
.hero-section > .av_section_color_wrap,
.hero-section .av_section_color_wrap {
  position: relative;
  z-index: 1;
}

/* Hero Texte weiß */
.hero-section h1,
.hero-section h2,
.hero-section h3,
.hero-section .av-special-heading-tag,
.hero-section .av_textblock_section h1,
.hero-section .av_textblock_section h2 {
  color: #fff !important;
}

/* ── "Wallenhorst" rot färben ──
   Methode 1: <span> mit Klasse hero-red im Heading
   Methode 2: <span style="color:#de0039"> direkt im Enfold-Editor
   Methode 3: Alle <span> im H1 der Hero-Section */
.hero-section .av-special-heading-tag span,
.hero-section h1 span,
.hero-section .hero-red,
.hero-section span.hero-red {
  color: var(--red) !important;
}

/* Hero-Beschreibungstext */
.hero-section p,
.hero-section .avia_textblock p,
.hero-section .avia_textblock {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 1.15rem;
  line-height: 1.7;
}

/* Hero Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 7px 16px;
  border-radius: 50px;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.88) !important;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 16px;
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
  animation: lienesch-pulse 2s infinite;
}

@keyframes lienesch-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}


/* ════════════════════════════════════════════
   HERO STAT-BOXEN (Icon Boxes ohne Icon)
   ════════════════════════════════════════════ */

.hero-stat-box,
.hero-section .hero-stat-box {
  text-align: center;
  padding: 24px 32px;
  background: rgba(255, 255, 255, 0.05) !important;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Icon in den Stat-Boxen komplett ausblenden */
.hero-stat-box .iconbox_icon,
.hero-stat-box .avia-icon-list,
.hero-stat-box .av-icon-char,
.hero-stat-box .iconbox_icon_container,
.hero-stat-box i[class*="icon"],
.hero-stat-box .avia_image_container {
  display: none !important;
}

/* Wrapper-Padding zurücksetzen wenn Icon weg */
.hero-stat-box .iconbox_content {
  padding-left: 0 !important;
  padding-top: 0 !important;
}

.hero-stat-box .iconbox_content_title,
.hero-stat-box h3,
.hero-stat-box .av-special-heading-tag {
  font-family: 'Bebas Neue', sans-serif !important;
  font-size: 2.6rem !important;
  color: #fff !important;
  line-height: 1 !important;
  margin-bottom: 4px !important;
}

.hero-stat-box .iconbox_content_title ~ *,
.hero-stat-box p,
.hero-stat-box .iconbox_content p,
.hero-stat-box .avia_textblock p {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.78rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 !important;
}

/* Enfold Icon Box: Hintergrund und Border entfernen */
.hero-stat-box .avia-icon-list li,
.hero-stat-box.avia_iconbox {
  background: transparent !important;
  border: none !important;
}


/* ════════════════════════════════════════════
   BUTTONS – Enfold Standard-Selektoren
   Runde Buttons (border-radius: 50px)
   ════════════════════════════════════════════ */

/* Primär-Button (rot, rund) */
.hero-section .avia-button,
.hero-section a.avia-button,
.avia-button.btn-primary,
a.avia-button.btn-primary,
.btn-primary,
.hero-section .avia-button.avia-color-custom {
  background: var(--red) !important;
  background-color: var(--red) !important;
  border: none !important;
  border-radius: 50px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  padding: 14px 32px !important;
  color: #fff !important;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.hero-section .avia-button:hover,
.btn-primary:hover,
.hero-section a.avia-button:hover {
  background: #ff1a50 !important;
  background-color: #ff1a50 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(222, 0, 57, 0.35);
}

/* Sekundär-Button (transparent mit weißem Rand, rund) */
.hero-section .avia-button:nth-of-type(2),
.hero-section .avia-button.btn-secondary,
.avia-button.btn-secondary,
a.avia-button.btn-secondary,
.btn-secondary {
  background: rgba(255, 255, 255, 0.1) !important;
  background-color: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 50px !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600 !important;
  font-size: 0.92rem !important;
  padding: 14px 32px !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: all 0.3s;
  text-decoration: none;
}

.btn-secondary:hover,
.hero-section .avia-button:nth-of-type(2):hover,
.hero-section .avia-button.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18) !important;
  background-color: rgba(255, 255, 255, 0.18) !important;
  transform: translateY(-2px);
}

/* ALLE Enfold-Buttons in der Hero-Section rund machen */
.hero-section .avia-button,
.hero-section .avia-buttonblock .avia-button {
  border-radius: 50px !important;
  -webkit-border-radius: 50px !important;
}


/* ════════════════════════════════════════════
   SECTION LABELS & HEADINGS
   ════════════════════════════════════════════ */

.section-label,
.section-label p {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.75rem !important;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--red) !important;
  font-weight: 600;
  margin-bottom: 8px;
}


/* ════════════════════════════════════════════
   SERVICE CARDS (Icon-Boxen)
   ════════════════════════════════════════════ */

.service-card,
.service-card.avia_iconbox,
.service-card .avia_iconbox {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.service-card:hover,
.service-card .avia_iconbox:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(0, 54, 143, 0.06);
}

.service-card .iconbox_icon,
.service-card .avia_iconbox .iconbox_icon,
.service-card .iconbox_icon_container {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px;
  background: var(--light);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.35s;
  margin-bottom: 1.2rem;
}

.service-card .service-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .iconbox_icon,
.service-card:hover .service-icon,
.service-card:hover .iconbox_icon_container {
  background: var(--blue);
  color: #fff;
}

.service-card h3,
.service-card .iconbox_content_title {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.service-card p,
.service-card .iconbox_content p {
  font-size: 0.9rem;
  color: #6b6e85;
  line-height: 1.65;
}

.service-card .arrow {
  position: absolute;
  top: 2rem;
  right: 2rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  color: var(--text);
  transition: all 0.3s;
}

.service-card:hover .arrow {
  background: var(--blue);
  color: #fff;
}


/* ════════════════════════════════════════════
   ÜBER UNS
   ════════════════════════════════════════════ */

.value-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.value-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  margin-top: 6px;
  flex-shrink: 0;
}

.value-item h4 {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.value-item p {
  font-size: 0.82rem;
  color: #6b6e85;
  line-height: 1.55;
  margin-top: 3px;
}


/* ════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════ */

.testimonial-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: all 0.3s;
}

.testimonial-card:hover {
  border-color: rgba(0, 54, 143, 0.06);
  box-shadow: var(--shadow);
}

.testimonial-card .stars {
  color: #f5a623;
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 0.95rem;
  color: #5a5e7a;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 1.2rem;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
}


/* ════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════ */

.cta-section,
.avia-section.cta-section {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 50%, var(--blue-light) 100%) !important;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -15%;
  right: -5%;
  width: 75%;
  height: 120%;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
  transform: rotate(-8deg);
  pointer-events: none;
}

.cta-section h2,
.cta-section .av-special-heading-tag {
  color: #fff !important;
}

.cta-section p,
.cta-section .avia_textblock p {
  color: rgba(255, 255, 255, 0.72) !important;
}

/* CTA Buttons auch rund */
.cta-section .avia-button {
  border-radius: 50px !important;
  -webkit-border-radius: 50px !important;
}


/* ════════════════════════════════════════════
   FOOTER – #021535
   ════════════════════════════════════════════ */

#footer,
.socket_color,
#socket {
  background: var(--dark) !important;
  border-top: none !important;
}

#footer .widget-title {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.85rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.9) !important;
}

#footer,
#footer p,
#footer .textwidget {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 0.88rem;
  line-height: 1.65;
}

#footer a {
  color: rgba(255, 255, 255, 0.55) !important;
  text-decoration: none;
  transition: color 0.2s;
}

#footer a:hover {
  color: var(--red) !important;
}

#footer .logo img,
#footer .footer-brand img {
  filter: brightness(0) invert(1);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: all 0.3s;
  margin-right: 6px;
}

.footer-social a:hover {
  background: var(--red) !important;
  color: #fff !important;
}

#socket .container {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.5rem;
}

#socket,
#socket p,
#socket a {
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 0.82rem;
}

#socket a:hover {
  color: rgba(255, 255, 255, 0.7) !important;
}


/* ════════════════════════════════════════════
   SCROLL-ANIMATIONEN
   ════════════════════════════════════════════ */

.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: all 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up:nth-child(2) { transition-delay: 0.08s; }
.fade-up:nth-child(3) { transition-delay: 0.16s; }
.fade-up:nth-child(4) { transition-delay: 0.22s; }
.fade-up:nth-child(5) { transition-delay: 0.28s; }
.fade-up:nth-child(6) { transition-delay: 0.34s; }


/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */

@media (max-width: 768px) {
  .hero-section::before,
  .hero-section::after {
    display: none;
  }

  .hero-stat-box {
    padding: 16px 20px;
  }

  .hero-stat-box .iconbox_content_title,
  .hero-stat-box h3 {
    font-size: 2rem !important;
  }
}
