/* AMB Child-Theme — Komponenten: Hero-Basis, Sektionen, Blurbs, Formulare, Titel, Counter, Tabs, Testimonials
   Quelle: zusammenhängender Abschnitt aus der urspr. style.css (Reihenfolge bewahrt) */

/* ============================================================
   HEADER / HERO-SECTION
   ============================================================ */
.et_pb_section.et-last-child:first-child,
.et_pb_fullwidth_header {
  position: relative;
}

/* Hero-Text: AMB */
.et_pb_fullwidth_header .et_pb_title_container h1,
.et_pb_section > .et_pb_row > .et_pb_column > .et_pb_text_inner h4 {
  font-weight: 900 !important;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3) !important;
}

/* Hero CTA Box — nur gezielt per Inline-Style-Attribut */
.et_pb_column[style*="background-color:gcid"] {
  border-radius: var(--amb-radius) !important;
  box-shadow: var(--amb-shadow-lg) !important;
  backdrop-filter: blur(8px);
}

/* ============================================================
   SEKTIONEN — Helle Sektionen modernisieren
   ============================================================ */

/* Weiße Sektionen: mehr Luft */
.et_pb_section {
  padding: 60px 0 !important;
}

@media (min-width: 981px) {
  .et_pb_section { padding: 80px 0 !important; }
}

/* Abwechselnde helle Sektion (kein !important — inline style von Divi gewinnt wenn explizit gesetzt) */
.et_pb_section:nth-child(even):not(.et_pb_section_0) {
  background-color: var(--amb-gray-50);
}

/* ============================================================
   SERVICE-KARTEN (Blurb / Karte Module)
   ============================================================ */
.et_pb_blurb {
  background-color: var(--amb-white) !important;
  border-radius: 10px !important;
  box-shadow: var(--amb-shadow-sm) !important;
  padding: 30px !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  border-top: 3px solid var(--amb-orange) !important;
}

.et_pb_blurb:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--amb-shadow-lg) !important;
}

.et_pb_blurb .et_pb_main_blurb_image {
  margin-bottom: 16px !important;
}

.et_pb_blurb_container h4,
.et_pb_blurb_container h3,
.et_pb_blurb .et_pb_module_header {
  color: var(--amb-navy) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
}

.et_pb_blurb_container p {
  font-size: 14px !important;
  line-height: 1.7 !important;
  color: var(--amb-gray-500) !important;
}

/* Service-Icon Farbe */
.et_pb_blurb .et_pb_main_blurb_image .et-waypoint img,
.et_pb_blurb svg {
  filter: none !important;
}

/* ============================================================
   KONTAKT-BOX / INFO-PANEL
   ============================================================ */
.et_pb_pricing_table,
.et_pb_callout,
.et_pb_contact_form_container {
  border-radius: var(--amb-radius) !important;
  box-shadow: var(--amb-shadow-md) !important;
  overflow: hidden;
}

/* (entfernt — war zu breit und hat alle 3/5-Spalten als Card gestylt) */

/* ============================================================
   FORMULARFELDER
   ============================================================ */
.et_pb_contact input[type="text"],
.et_pb_contact input[type="email"],
.et_pb_contact input[type="tel"],
.et_pb_contact textarea,
.et_pb_contact select,
input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  border: 1.5px solid var(--amb-gray-200) !important;
  border-radius: var(--amb-radius) !important;
  background-color: var(--amb-gray-50) !important;
  color: var(--amb-navy) !important;
  padding: 12px 16px !important;
  font-size: 15px !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.et_pb_contact input:focus,
.et_pb_contact textarea:focus,
input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: var(--amb-orange) !important;
  background-color: var(--amb-white) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15) !important;
  outline: none !important;
}

/* ============================================================
   SEKTIONS-TITEL (Überschriften in Abschnitten)
   ============================================================ */
.et_pb_section .et_pb_text h2,
.et_pb_section .et_pb_text h3 {
  position: relative;
  margin-bottom: 20px !important;
}

/* Orangener Akzent-Unterstrich */
.et_pb_section .et_pb_text h2::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background-color: var(--amb-orange);
  border-radius: 2px;
  margin-top: 12px;
}

.et_pb_text_align_center h2::after {
  margin: 12px auto 0 !important;
}

/* ============================================================
   DIVIDER / TRENNER
   ============================================================ */
.et_pb_divider {
  opacity: 0.3 !important;
}

/* ============================================================
   STATISTIK / COUNTER SEKTIONEN
   ============================================================ */
.et_pb_number_counter .title,
.et_pb_counter_amount {
  color: var(--amb-orange) !important;
  font-weight: 800 !important;
}

.et_pb_number_counter .percent {
  background-color: var(--amb-orange) !important;
  border-radius: 4px;
}

/* ============================================================
   TABS & TOGGLE
   ============================================================ */
.et_pb_tab:not(.et_pb_tab_active) {
  background-color: var(--amb-gray-50) !important;
  border-radius: var(--amb-radius) var(--amb-radius) 0 0 !important;
}

.et_pb_tab_active {
  background-color: var(--amb-white) !important;
  border-top: 2px solid var(--amb-orange) !important;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.et_pb_testimonial {
  background-color: var(--amb-white) !important;
  border-radius: var(--amb-radius) !important;
  box-shadow: var(--amb-shadow-sm) !important;
  border-left: 4px solid var(--amb-orange) !important;
  padding: 28px !important;
}

.et_pb_testimonial_author {
  font-weight: 700 !important;
  color: var(--amb-navy) !important;
}


/* ============================================================
   FIX: DIVI LADE-ANIMATIONEN DEAKTIVIEREN
   ------------------------------------------------------------
   Divi versteckt Module mit .et_animated per JS (opacity:0) und
   blendet sie erst beim Scroll-Waypoint ein. Bei langsamer JS-
   Ausführung erscheint Text dadurch verspätet. Inhalt ist jetzt
   auf allen Seiten/Geräten sofort sichtbar.
   ============================================================ */
.et_animated,
.et_pb_module.et_animated,
.et_pb_text.et_animated,
.et-waypoint {
  opacity: 1 !important;
  -webkit-animation: none !important;
  animation: none !important;
  transform: none !important;
}
