/* ==========================================================================
   SPT Solar – WPBakery-Brücke
   Lässt Seiten, die mit WPBakery-Elementen (Row, Column, Text Block, Button,
   Single Image, Raw HTML) gebaut sind, genauso aussehen wie die Block-Vorlagen.
   Wird nur geladen, wenn WPBakery aktiv ist. Wirkt nur innerhalb der
   Seitenvorlage „SPT Landingpage“ (.spt-landing).

   Klassen für „Extra class name“ in WPBakery:
   Row ............ spt-section [spt-section--alt | --strip | --tight]
                    spt-cols (Spalten nebeneinander, 16 px Abstand)
                    spt-cols--wide (24 px) · spt-hero-row · spt-head-row
                    spt-gallery (Bilder darin öffnen die Vollansicht)
                    spt-cta-band (Band in der Leitfarbe)
   Column ......... spt-stack (Text + Buttons untereinander, Buttons nebeneinander)
                    spt-shot-big / spt-shot-stack (Mosaik) · spt-cta-action
   Text Block ..... spt-card [lead-eco …] · spt-card--neutral · spt-panel
                    spt-step [is-highlight] · spt-feature · spt-fact · spt-head-text
   Button ......... spt-vcbtn [spt-vcbtn--sekundaer]
   Single Image ... spt-shot (Bildunterschrift = Beschriftung aus der Mediathek)
   ========================================================================== */

/* 1. WPBakery-Grundabstände neutralisieren -------------------------------- */
.spt-landing .vc_row { margin-left: 0; margin-right: 0; margin-bottom: 0; }
.spt-landing .vc_row::before, .spt-landing .vc_row::after { display: none; }
.spt-landing .vc_column_container > .vc_column-inner { padding-left: 0; padding-right: 0; padding-top: 0; }
.spt-landing .wpb_content_element,
.spt-landing .vc_btn3-container,
.spt-landing .wpb_text_column :last-child,
.spt-landing .wpb_raw_code { margin-bottom: 0; }
.spt-landing .wpb_column { float: none; min-width: 0; }

/* 2. Zeilen und Spalten als Flexbox ----------------------------------------- */
.spt-landing .vc_row { display: flex; flex-wrap: nowrap; align-items: stretch; }
.spt-landing .vc_row > .wpb_column { width: auto; flex: 1 1 0; }
.spt-landing .vc_row > .vc_col-sm-2  { flex-grow: 2; }
.spt-landing .vc_row > .vc_col-sm-3  { flex-grow: 3; }
.spt-landing .vc_row > .vc_col-sm-4  { flex-grow: 4; }
.spt-landing .vc_row > .vc_col-sm-5  { flex-grow: 5; }
.spt-landing .vc_row > .vc_col-sm-6  { flex-grow: 6; }
.spt-landing .vc_row > .vc_col-sm-7  { flex-grow: 7; }
.spt-landing .vc_row > .vc_col-sm-8  { flex-grow: 8; }
.spt-landing .vc_row > .vc_col-sm-9  { flex-grow: 9; }
.spt-landing .vc_row > .vc_col-sm-10 { flex-grow: 10; }
.spt-landing .vc_row > .vc_col-sm-12 { flex-grow: 12; }
.spt-landing .vc_row:not(.spt-cols) > .wpb_column { flex: 0 0 auto; width: 100%; }
.spt-landing .vc_row.spt-cols > .wpb_column > .vc_column-inner,
.spt-landing .vc_row.spt-cols > .wpb_column > .vc_column-inner > .wpb_wrapper { height: 100%; }
.spt-landing .vc_column-inner > .wpb_wrapper { display: flex; flex-direction: column; gap: 16px; }

.spt-landing .vc_row.spt-cols { gap: 16px; flex-direction: row; }
.spt-landing .vc_row.spt-cols--wide { gap: 24px; }
.spt-landing .spt-section--strip .vc_row.spt-cols--wide { gap: 48px; }
.spt-landing .vc_row.spt-hero-row { gap: 64px; align-items: center; }
.spt-landing .vc_row.spt-head-row { gap: 24px 64px; align-items: flex-end; }
.spt-landing .vc_row.spt-cols > .wpb_column > .vc_column-inner > .wpb_wrapper > .wpb_content_element { flex: 1 1 auto; }

/* 3. Abschnitte ---------------------------------------------------------------- */
.spt-landing .vc_row.spt-section { display: flex; }
.spt-landing .vc_row.spt-section:not(.spt-cols) { flex-direction: column; gap: 0; }
.spt-landing .vc_row.spt-section > .wpb_column > .vc_column-inner > .wpb_wrapper { gap: 40px; }
.spt-landing .vc_row.spt-section--strip > .wpb_column > .vc_column-inner > .wpb_wrapper { gap: 24px; }
/* Mehrere Spalten-Reihen hintereinander: 16 px statt 40 px Abstand */
.spt-landing .vc_row.spt-section .vc_inner.spt-cols + .vc_inner.spt-cols { margin-top: -24px; }
.spt-landing .spt-section + .spt-section--alt,
.spt-landing .spt-section--alt + .spt-section--alt { border-top: 0; }

/* Text + Buttons: Texte volle Breite, Buttons nebeneinander */
.spt-landing .spt-stack > .vc_column-inner > .wpb_wrapper { flex-direction: row; flex-wrap: wrap; align-content: center; gap: 24px 12px; }
.spt-landing .spt-stack > .vc_column-inner > .wpb_wrapper > * { flex: 1 1 100%; }
.spt-landing .spt-stack > .vc_column-inner > .wpb_wrapper > .vc_btn3-container { flex: 0 0 auto; }
.spt-landing .spt-stack .wpb_text_column > .wpb_wrapper { gap: 24px; }

/* 4. Text-Blöcke als Bausteine ---------------------------------------------------- */
.spt-landing .wpb_text_column > .wpb_wrapper { display: flex; flex-direction: column; gap: 16px; }
.spt-landing .spt-cols .wpb_text_column > .wpb_wrapper { height: 100%; }
.spt-landing .wpb_text_column > .wpb_wrapper > * { margin: 0; }
.spt-landing .wpb_text_column.spt-card > .wpb_wrapper { gap: 12px; }
.spt-landing .wpb_text_column.spt-step > .wpb_wrapper { gap: 10px; }
.spt-landing .wpb_text_column.spt-fact > .wpb_wrapper { gap: 8px; }
.spt-landing .wpb_text_column.spt-card,
.spt-landing .wpb_text_column.spt-panel,
.spt-landing .wpb_text_column.spt-step,
.spt-landing .wpb_text_column.spt-feature { height: 100%; }
.spt-landing .wpb_text_column.spt-feature { display: block; }
.spt-landing .wpb_text_column.spt-feature > .wpb_wrapper {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-auto-rows: min-content; column-gap: 16px; row-gap: 6px;
}
.spt-landing .wpb_text_column.spt-feature .spt-icon-tile { grid-row: span 2; }
.spt-landing .wpb_text_column.spt-feature > .wpb_wrapper > :not(.spt-icon-tile) { grid-column: 2; }
.spt-landing .wpb_text_column .spt-quote { margin: 0; }

/* 5. Buttons (vc_btn) im SPT-Stil ------------------------------------------------- */
.spt-landing .spt-vcbtn .vc_btn3,
.spt-landing .spt-vcbtn .vc_btn3.vc_btn3-style-modern,
.spt-landing .spt-vcbtn .vc_btn3:focus {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border: 1px solid transparent; border-radius: var(--radius-md);
  background: var(--lead); background-image: none; box-shadow: none; text-shadow: none;
  color: var(--lead-on); font: 700 14px/20px var(--font-sans); letter-spacing: 0; text-transform: none; white-space: nowrap;
  transition: filter .15s ease;
}
.spt-landing .spt-vcbtn .vc_btn3:hover { background: var(--lead); background-image: none; color: var(--lead-on); filter: brightness(1.08); }
.spt-landing .spt-vcbtn--sekundaer .vc_btn3,
.spt-landing .spt-vcbtn--sekundaer .vc_btn3.vc_btn3-style-modern,
.spt-landing .spt-vcbtn--sekundaer .vc_btn3:focus { background: var(--bg-100); color: var(--ink); border-color: var(--line-200); }
.spt-landing .spt-vcbtn--sekundaer .vc_btn3:hover { background: var(--bg-200); color: var(--ink); filter: none; }
/* WPBakery 9 schreibt Button-Farben als Inline-Style – deshalb hier !important */
.spt-landing .spt-vcbtn .vc_btn3 { background-color: var(--lead) !important; color: var(--lead-on) !important; }
.spt-landing .spt-vcbtn--sekundaer .vc_btn3 { background-color: var(--bg-100) !important; color: var(--ink) !important; }
.spt-landing .spt-vcbtn--sekundaer .vc_btn3:hover { background-color: var(--bg-200) !important; }
.spt-landing .spt-cta-band .spt-vcbtn .vc_btn3 { background-color: var(--bg-000) !important; color: var(--ink) !important; }
.spt-landing .spt-cta-action > .vc_column-inner > .wpb_wrapper { align-items: flex-end; justify-content: center; }

/* 6. Galerie (vc_single_image) ------------------------------------------------------- */
.spt-landing .spt-gallery .wpb_single_image { margin: 0; }
.spt-landing .spt-gallery .wpb_single_image figure.vc_figure { display: block; width: 100%; aspect-ratio: 16 / 9; margin: 0; }
.spt-landing .spt-gallery .vc_single_image-wrapper { display: block; height: 100%; }
.spt-landing .spt-gallery .wpb_single_image img { width: 100%; height: 100%; object-fit: cover; max-width: none; }
.spt-landing .spt-shot-big .wpb_single_image,
.spt-landing .spt-shot-big .wpb_single_image figure.vc_figure { height: 100%; aspect-ratio: auto; }
.spt-landing .spt-shot-stack > .vc_column-inner > .wpb_wrapper > .wpb_single_image { flex: 0 0 auto; }

/* 7. Responsive ------------------------------------------------------------------------ */
@media (max-width: 1180px) {
  .spt-landing .vc_row.spt-hero-row { flex-wrap: wrap; }
  .spt-landing .vc_row.spt-hero-row > .wpb_column { flex: 1 1 100%; }
  .spt-landing .vc_row.spt-cols { flex-wrap: wrap; }
  .spt-landing .vc_row.spt-cols > .vc_col-sm-1\/5,
  .spt-landing .vc_row.spt-cols > .vc_col-sm-3 { flex: 0 0 calc((100% - 32px) / 3); }
}
@media (max-width: 1024px) {
  .spt-landing .vc_row.spt-cols > .vc_col-sm-1\/5,
  .spt-landing .vc_row.spt-cols > .vc_col-sm-3,
  .spt-landing .vc_row.spt-cols > .vc_col-sm-4 { flex: 0 0 calc((100% - 16px) / 2); }
}
@media (max-width: 760px) {
  .spt-landing .vc_row.spt-cols,
  .spt-landing .vc_row.spt-cta-band { flex-wrap: wrap; }
  .spt-landing .vc_row.spt-cols > .wpb_column,
  .spt-landing .vc_row.spt-cta-band > .wpb_column { flex: 1 1 100% !important; }
  .spt-landing .spt-cta-action > .vc_column-inner > .wpb_wrapper { align-items: flex-start; }
  .spt-landing .spt-shot-big .wpb_single_image figure.vc_figure { aspect-ratio: 16 / 9; }
}

/* 8. Datenfluss (Stufen + Pfeile) ------------------------------------------------
   Row: spt-section spt-section--alt · Inner Row: spt-cols spt-flow-row
   Stufe: Text Block „spt-flow__stage“ · Pfeil: Text Block „spt-flow__arrow lead-eco“ */
.spt-landing .wpb_text_column.spt-flow__stage { height: 100%; }
.spt-landing .wpb_text_column.spt-flow__stage > .wpb_wrapper { gap: 10px; }
.spt-landing .wpb_text_column.spt-flow__stage > .wpb_wrapper > p:has(> .spt-lockup) { margin-top: 8px; }
.spt-landing .wpb_text_column.spt-flow__arrow { height: 100%; display: flex; align-items: center; justify-content: center; }
.spt-landing .wpb_text_column.spt-flow__arrow > .wpb_wrapper { align-items: center; justify-content: center; text-align: center; gap: 6px; }
@media (max-width: 1180px) {
  .spt-landing .vc_row.spt-flow-row { flex-wrap: wrap; }
  .spt-landing .vc_row.spt-flow-row > .wpb_column { flex: 1 1 100%; }
  .spt-landing .wpb_text_column.spt-flow__arrow > .wpb_wrapper { flex-direction: row; }
  .spt-landing .wpb_text_column.spt-flow__arrow .spt-flow__arrow-sign { transform: rotate(90deg); font-size: 28px; }
}
