/**
 * Theme Name: Progast Child
 * Author: Brainstorm Force
 * Author URI: http://wpastra.com/about/
 * Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
 * Version: 1.0.0
 * License: GNU General Public License v2 or later
 * License URI: http://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: progast-child
 * Template: astra
 */


/* ================================================
   PROGAST DESIGN TOKENS
   Zentrale Variablen für das gesamte Progast-Design.
   Farbänderungen hier wirken auf ALLE Bereiche der Site.
   Astra-Variablen werden direkt referenziert wo möglich.
   ================================================ */
:root {
  /* Hauptfarben – basieren auf Astra Global Colors */
  --progast-primary:       var(--ast-global-color-2); /* #194a72 – Hauptblau */
  --progast-primary-hover: #1668ac;                   /* Hover-/Akzentblau */
  --progast-primary-dark:  #1a3a5c;                   /* Dunkleres Blau (Texte, Links) */
  --progast-primary-85:    rgba(25, 74, 114, 0.85);  /* Hauptblau 85% Transparenz */
  --progast-primary-15:    rgba(25, 74, 114, 0.15);  /* Hauptblau 15% (Focus-Shadow) */
  --progast-white:         var(--ast-global-color-4); /* #ffffff */
  --progast-text:          var(--ast-global-color-3); /* #313640 */
  --progast-success:       #2ecc71;                   /* Lieferstatus-Grün */

  /* Hintergründe & Rahmen */
  --progast-bg-light:      #f0f2f5; /* Inputs, leichte Hintergründe */
  --progast-bg-form:       #f5f7f9; /* Formular-Container */
  --progast-bg-table:      #f4f7f9; /* Tabellen-Streifen */
  --progast-border:        #e8eaed; /* Formular-Rahmen */
  --progast-border-list:   #e0e0e0; /* Listen / Divider */

  /* WordPress Font-Size Override */
  --wp--preset--font-size--small: 16px;
}


/* ================================================
   GLOBALE FIXES & PLUGIN-KORREKTUREN
   ================================================ */
.gform_required_legend { display: none; }

.swiper-wrapper { min-height: inherit !important; }

:root :where(.is-layout-flex) {
    gap: 42px;
}


/* ================================================
   UAGB POST GRID – Abstände & Zoom-Effekt
   ================================================ */
.uagb-post-grid .uagb-post__title { padding-bottom: 0; }
.uagb-post-grid { padding-bottom: 1.5rem; }

/* Zoom beim Hover */
.uagb-post__image a {
  display: block;
  overflow: hidden;
}
.uagb-post__image img {
  transition: transform 0.4s ease;
}
.uagb-post__image a:hover img {
  transform: scale(1.08);
}

/* Hintergrund-Abdunklung beim Hover */
.uagb-post__inner-wrap {
  transition: background 0.4s ease;
}
.uagb-post__inner-wrap:hover {
  background: #e8e8e8;
}


/* ================================================
   UAGB HEADING – Abstand
   ================================================ */
h2.uagb-heading-text { margin-bottom: 1.5rem !important; }


/* ================================================
   UAGB INFO-BOX – Slider Titel (Homepage Hero)
   ================================================ */
.uagb-ifb-title-wrap .uagb-ifb-title-prefix {
  background-color: var(--progast-white);
  display: inline-block;
  padding: 2px 6px;
}
.wp-block-uagb-info-box .uagb-ifb-title {
  margin-bottom: 10px;
  color: var(--progast-white);
  background-color: var(--progast-primary-85);
  display: table;
  padding: 4px 12px;
}


/* ================================================
   H1 HERO-ÜBERSCHRIFT – Blauer Hintergrundbalken
   Gilt für alle Cover-Block-Hero-Bereiche
   ================================================ */
.wp-block-cover h1.wp-block-heading {
  background-color: var(--progast-primary-85);
  color: var(--progast-white) !important;
  display: table;
  padding: 4px 12px;
  line-height: 1.4;
  width: auto !important;
}


/* ================================================
   NAVIGATION – Aktiver Menüpunkt Unterstrich
   ================================================ */
.ast-primary-menu-enabled .ast-nav-menu > li.current-menu-item > a,
.ast-primary-menu-enabled .ast-nav-menu > li.current_page_item > a,
.main-header-menu > li.current-menu-item > a,
.main-header-menu > li.current_page_item > a {
  text-decoration: underline !important;
  text-underline-offset: 4px;
}


/* ================================================
   KONTAKTFORMULAR (Gravity Forms) – Felder
   ================================================ */
.gform_wrapper.gravity-theme .gfield input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.gform_wrapper.gravity-theme .gfield select,
.gform_wrapper.gravity-theme .gfield textarea {
  background-color: var(--progast-bg-light) !important;
  border: 1px solid var(--progast-border) !important;
  border-radius: 3px;
  padding: 12px 14px !important;
  color: var(--progast-text);
}
.gform_wrapper.gravity-theme .gfield input:focus,
.gform_wrapper.gravity-theme .gfield textarea:focus {
  border-color: var(--progast-primary) !important;
  outline: none;
  box-shadow: 0 0 0 2px var(--progast-primary-15);
}

/* Kontaktseite – Formular-Container */
.kontakt-form-box {
  background: var(--progast-bg-form);
  padding: 32px 36px !important;
  border-radius: 4px;
}
.kontakt-form-box h3 { margin-top: 0; }

/* Submit-Button */
.gform_wrapper.gravity-theme input[type=submit],
.gform_wrapper input[type=submit] {
  background-color: var(--progast-primary) !important;
  color: var(--progast-white) !important;
  border: none !important;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  padding: 15px 30px !important;
  font-size: 13px;
  width: 100%;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.gform_wrapper.gravity-theme input[type=submit]:hover {
  background-color: var(--progast-primary-hover) !important;
}

/* Hilfsstile */


/* ================================================
   KONTAKTFORMULAR (Gravity Forms) – Alle Felder
   Gilt für Kontaktseite UND Modal gleichermassen
   ================================================ */

.gfield--type-hidden { display: none !important; }
.gfield--type-consent .gfield_consent_label {
  font-size: 13px;
  line-height: 1.5;
}

.gform-theme--foundation .gfield textarea.large {
    min-block-size: 10rem !important;
}

.gform_wrapper input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.gform_wrapper select,
.gform_wrapper textarea {
  background-color: white !important;
  border: 1px solid var(--progast-border) !important;
  border-radius: 3px !important;
  padding: 12px 14px !important;
  color: var(--progast-text) !important;
  box-shadow: none !important;
}

.gform_wrapper input:focus:not([type=submit]),
.gform_wrapper textarea:focus {
  border-color: var(--progast-primary) !important;
  outline: none !important;
  box-shadow: 0 0 0 2px var(--progast-primary-15) !important;
}


/* ================================================
   MODAL – Overlay & Box
   ================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 99999;
  justify-content: center;
  align-items: center;
}
.modal-overlay.aktiv { display: flex; }

.modal-box {
  background: var(--progast-bg-form);
  width: 90%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  border-radius: 4px;
}

.modal-schliessen {
  position: absolute;
  top: 15px; right: 20px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--progast-text);
  line-height: 1;
  padding: 0;
}
.modal-schliessen:hover { color: var(--progast-primary-dark); }

/* Modal – Formular-Styling (gleich wie Kontaktseite) */
.modal-box .gform_wrapper.gravity-theme .gfield input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.modal-box .gform_wrapper.gravity-theme .gfield select,
.modal-box .gform_wrapper.gravity-theme .gfield textarea {
  background-color: var(--progast-bg-light) !important;
  border: 1px solid var(--progast-border) !important;
  border-radius: 3px;
  padding: 12px 14px !important;
  color: var(--progast-text);
}
.modal-box h2,
.modal-box h3 {
  color: var(--progast-primary-dark);
  margin-top: 0;
  margin-bottom: 1.5rem;
}


/* ================================================
   KOLLEKTION SINGLE – Container & Layout
   ================================================ */
.kollektion-single-wrap { padding: 40px 0 60px; }

.kollektion-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 30px;
}

/* Haupt-Grid: Galerie links, Infos rechts */
.kollektion-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}


/* ================================================
   GALERIE
   ================================================ */
.kollektion-galerie-wrap {
  display: flex;
  flex-direction: row-reverse;
  gap: 12px;
}
.galerie-hauptbild-wrap { flex: 1; overflow: hidden; }
.galerie-hauptbild {
  width: 100%; height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.2s ease;
}

.galerie-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 80px;
  flex-shrink: 0;
}
.galerie-thumb-wrap {
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s ease;
  overflow: hidden;
}
.galerie-thumb-wrap:hover,
.galerie-thumb-wrap.aktiv { border-color: var(--progast-primary-dark); }

.galerie-thumb {
  width: 100%; height: 70px;
  object-fit: cover;
  display: block;
}


/* ================================================
   INFO-SPALTE RECHTS
   ================================================ */
.kollektion-info-wrap { padding-top: 10px; }

.zurueck-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--progast-primary-dark);
  text-decoration: underline;
  font-size: 14px;
  margin-bottom: 30px;
  transition: opacity 0.2s;
}
.zurueck-link:hover { opacity: 0.7; }
.zurueck-pfeil { font-size: 16px; }

.kollektion-titel {
  font-size: 32px;
  color: var(--progast-primary-dark);
  margin: 0 0 30px;
  font-weight: 400;
}


/* ================================================
   TECHNISCHE DATEN TABELLE
   ================================================ */
.technische-daten-headline {
  font-size: 20px;
  color: var(--progast-primary-dark);
  margin: 0 0 15px;
  font-weight: 500;
}
.technische-daten-tabelle {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 25px;
}
.technische-daten-tabelle tr:nth-child(odd) {
  background-color: var(--progast-bg-table);
}
.technische-daten-tabelle td {
  padding: 10px 14px;
  font-size: 15px;
  color: var(--progast-text);
}
.technische-daten-tabelle .td-label { font-weight: 500; width: 40%; }

.lieferstatus-punkt {
  display: inline-block;
  width: 10px; height: 10px;
  background-color: var(--progast-success);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}


/* ================================================
   PFLEGEICONS
   ================================================ */
.produkt-icons-wrap {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.produkt-icon { width: 40px; height: 40px; object-fit: contain; }


/* ================================================
   PRODUKT ANFRAGEN BUTTON
   ================================================ */
.produkt-anfragen-btn {
  display: inline-block;
  background-color: var(--progast-primary-dark);
  color: var(--progast-white);
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.produkt-anfragen-btn:hover { background-color: #142d48; }


/* ================================================
   WEITERE PRODUKTE
   ================================================ */
.weitere-produkte-wrap {
  border-top: 1px solid var(--progast-border-list);
  padding-top: 50px;
  margin-bottom: 60px;
}
.weitere-produkte-headline {
  font-size: 22px;
  color: var(--progast-primary-dark);
  margin: 0 0 30px;
  font-weight: 400;
}
.weitere-produkte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.weitere-produkt-item {
  text-decoration: none;
  color: inherit;
  display: block;
}
.weitere-produkt-bild {
  width: 100%; height: 220px;
  object-fit: cover;
  display: block;
  margin-bottom: 10px;
  transition: opacity 0.2s ease;
}
.weitere-produkt-item:hover .weitere-produkt-bild { opacity: 0.85; }
.weitere-produkt-titel {
  font-size: 15px;
  color: var(--progast-primary-dark);
  text-decoration: underline;
}




/* ================================================
   FOOTER
   ================================================ */
.footer-info,
.footer-info a {
  color: #ffffff;
}
.footer-info a {
  text-decoration: underline;
}
.footer-info a:hover {
  text-decoration: underline;
}
.footer-info {
  text-align: center;
}

/* Desktop: Items nebeneinander mit Trennstrich */
.footer-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
}
.footer-item {
  display: inline-flex;
  align-items: center;
}
.footer-item::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.9em;
  background-color: #ffffff;
  margin: 0 10px;
  opacity: 0.6;
  vertical-align: middle;
}
.footer-item:first-child::before {
  display: none;
}
.footer-contact {
  margin-top: 6px;
}


/* ================================================
   RESPONSIVE – Kollektion & Galerie
   ================================================ */
@media (max-width: 900px) {
  .kollektion-main-grid { grid-template-columns: 1fr; gap: 40px; }
  .galerie-thumbnails { width: 60px; }
  .galerie-thumb { height: 55px; }
  .weitere-produkte-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .kollektion-galerie-wrap { flex-direction: column; }
  .galerie-thumbnails { flex-direction: row; width: 100%; }
  .galerie-thumb-wrap { flex: 1; }
  .galerie-thumb { height: 60px; width: 100%; }
  .weitere-produkte-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 25px 20px; }
}


/* ================================================
   RESPONSIVE – Mobile allgemein (≤ 768px)
   ================================================ */
@media (max-width: 768px) {
	
	.wp-block-cover, .wp-block-cover-image {
		min-height: inherit;
		
	}	
	
	.entry-content > .wp-block-cover {
		xxpadding-left:10px;
		padding-bottom:20px;
	}
	
	.wp-block-cover .uagb-container-inner-blocks-wrap {
		justify-content:center !important;
	}
	
	.uagb-post-grid .uagb-post-grid-byline {
		padding-bottom:0 !important;
	}
	
	[data-section="section-header-mobile-trigger"] .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {
    width: 26px;
    height: 26px;
}

  /* Slider-Titel */
  .wp-block-uagb-info-box .uagb-ifb-title {
    font-size: 24px !important;
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
  }

  /* H1 Hero */
  .wp-block-cover h1.wp-block-heading {
    font-size: 28px;
    padding: 8px 16px;
  }

  /* Überschriften global */
  h1, h2, h3, h4, h5, h6,
  .wp-block-heading {
    hyphens: none !important;
    -webkit-hyphens: none !important;
    word-break: normal !important;
  }

  /* Footer Mobile */
  .footer-main {
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
  }
  .footer-item {
    line-height: 0.5rem;
  }
  .footer-item::before {
    display: none;
  }
}