/*
Theme Name:     Divi Child Theme
Theme URI:      http://www.elegantthemes.com
Description:    Child Theme for Divi Theme by Elegant Themes
Author:         3 Plus Solutions
Author URI:     https://www.3plus.solutions
Template:       Divi
Version:        1.0.2
*/

/* =Ab hier kannst du deine CSS-Anpassungen eintragen
------------------------------------------------------- */

div.et_pb_section_0 {
	padding-top: 130px !important;
}

/*--- MENÜ BUTTON ---*/

.et-menu-nav ul#menu-hautpmenue li.menu-cta a {
	background-color: var(--gcid-primary-color);
	color: #fff !important;
	font-weight: 600;
	line-height: 1.7em;
	padding: 6px 17px !important;
	margin-top: -13px;
	border-radius: 10px;
	font-size: clamp(13px,1.3vw,16px);
	cursor: pointer;
	transition: all 0.3s ease;
}
.et-menu-nav ul#menu-hautpmenue li.menu-cta a:hover {
	background-color: var(--gcid-6tgp4pgf66);
	opacity: 1;
}


/* ===== TABS LEISTUNGEN ===== */
.tabs-leistungen.et_pb_tabs.et_pb_module {
	border: none;
	display: flex;
	flex-direction: row;
}

.tabs-leistungen ul.et_pb_tabs_controls::after, .tabs-leistungen .et_pb_tabs_controls li {
	border: none;
}

.tabs-leistungen .et_pb_tabs_controls {
	display: flex;
	justify-content: center;
	flex-direction: column;
	width: 33%;
}

.tabs-leistungen ul.et_pb_tabs_controls {
	background-color: transparent;
}

.tabs-leistungen .et_pb_all_tabs {
	width: calc(100% - 35%);
	margin-left: 2%;
	display: flex;
	align-items: center;
	border-radius: 10px;
}

.tabs-leistungen .et_pb_tab_nav_item:first-of-type {
	border-radius: 10px 10px 0px 0px;
}

.tabs-leistungen .et_pb_tab_nav_item:last-of-type {
	border-radius: 0px 0px 10px 10px;
}

.tabs-leistungen .et_pb_tabs_controls .et_pb_tab_nav_item a {
	width: 100%;
}

.tabs-leistungen .et_pb_tab_active::after {
	content: "";
	width: 20px;
	height: 20px;
	background: var(--gcid-primary-color);
	position: absolute;
	top: 50%;
	right: 0;
	transform: rotate(45deg) translateY(-60%);
}

.tabs-leistungen .et_pb_tabs_controls .et_pb_tab_nav_item {
	background: var(--gcid-secondary-color);
}
.tabs-leistungen .et_pb_tabs_controls .et_pb_tab_nav_item:hover {
	background: var(--gcid-6tgp4pgf66);
}

.tabs-leistungen .et_pb_tabs_controls .et_pb_tab_active {
	background: var(--gcid-primary-color);
}
.tabs-leistungen .et_pb_tabs_controls .et_pb_tab_active:hover {
	background: var(--gcid-primary-color);
}

/* TABS DESKTOP – Controls über volle Höhe */

@media (min-width: 768px) {

	.tabs-leistungen .et_pb_tabs_controls {
		align-self: stretch;
	}

	.tabs-leistungen .et_pb_tabs_controls .et_pb_tab_nav_item {
		flex: 1 1 auto;
		display: flex;
		align-items: center;
		position: relative;
	}

	.tabs-leistungen .et_pb_tabs_controls .et_pb_tab_nav_item a {
		display: block;
	}
}

/* TABS MOBIL */

@media (max-width: 767px) {

	.tabs-leistungen {
		flex-direction: column;
	}

	.tabs-leistungen .et_pb_tabs_controls {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		gap: 2%;
	}

	.tabs-leistungen .et_pb_tab_nav_item {
		width: 49%;
		border-radius: 10px !important;
		margin-bottom: 2%;
	}

	.tabs-leistungen .et_pb_all_tabs {
		width: 100%;
		margin-left: 0px;
		margin-top: 20px;
	}

	.tabs-leistungen .et_pb_tab_active::after {
		content: none;
	}
}

/* ===== HOVER COLUMN ===== */

.wrapper-hover-col .hover-text {
	max-height: 0px;
	transition: all ease 0.6s;
	overflow: hidden;
}
.wrapper-hover-col:hover .hover-text {
	max-height: 150px;
}

/* ===== ROTATING TOGGLE ICON ===== */
.faq-toggle .et_pb_toggle_title::before {
	transition: all 0.3s ease !important;
}
.faq-toggle .et_pb_toggle_open .et_pb_toggle_title::before {
	transform: rotateZ(45deg);
}

/* ===== FAQ AKKORDEON ===== */

.faq-toggle .et_pb_toggle_close h5.et_pb_toggle_title {
	background-color: #fff !important;
}

.faq-toggle .et_pb_toggle_close:hover h5.et_pb_toggle_title {
	background-color: var(--gcid-primary-color) !important;
	color: #fff !important;
}

.faq-toggle.et_pb_accordion .et_pb_accordion_item.et_pb_toggle_open {
	border-color: var(--gcid-primary-color);
}

.faq-toggle .et_pb_toggle_title::before {
	right: 15px !important;
}

.faq-toggle .et_pb_toggle_title::before {
	display: block !important;
	content: '\4c' !important;
	font-size: 35px;
	color: #fff;
}

/* Spalte: Bild-Modul auf volle Höhe strecken statt zentrieren */
.produkt-bild-spalte {
  justify-content: stretch !important;
  align-items: stretch !important;
}
.produkt-bild-spalte .et_pb_wc_images {
  flex: 1 1 auto;
  height: 100%;
}

/* Alle Gallery-Container auf 100 % Höhe */
.produkt-bild-spalte .et_pb_module_inner,
.produkt-bild-spalte .woocommerce-product-gallery,
.produkt-bild-spalte .woocommerce-product-gallery > div,
.produkt-bild-spalte .woocommerce-product-gallery__wrapper,
.produkt-bild-spalte .woocommerce-product-gallery__image,
.produkt-bild-spalte .woocommerce-product-gallery__image > a {
  height: 100% !important;
}

/* Bild füllt die Fläche, ohne zu verzerren */
.produkt-bild-spalte .woocommerce-product-gallery__image img.wp-post-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

/* WooCommerce Warenkorb und Kasse (Divi Theme Builder) */

/* ===== WooCommerce: Hinweis-Boxen (z. B. "wurde deinem Warenkorb hinzugefügt") ===== */
html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-message,
html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-info {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 15px 40px;
  padding: 22px 30px !important;
  line-height: 1.5 !important;
  margin-bottom: 20px !important;
}
html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-message::before,
html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-message::after,
html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-info::before,
html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-info::after {
  display: none !important;
}
html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-message .button,
html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-info .button {
  float: none !important;
  margin: 0 0 0 auto !important;
  flex-shrink: 0;
  white-space: nowrap;
}
@media (max-width: 767px) {
  html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-message,
  html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-info {
    flex-wrap: wrap;
    padding: 20px !important;
  }
  html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-message .button,
  html body #et-boc .et-l .et_pb_module .woocommerce-notices-wrapper .woocommerce-info .button {
    margin: 0 !important;
  }
}

/* ===== Warenkorb: Button "Weiter zur Kasse" im Indek-Stil ===== */
.wc-proceed-to-checkout a.checkout-button,
body #page-container .wc-proceed-to-checkout a.checkout-button {
  background-color: var(--gcid-primary-color) !important;
  border: 2px solid var(--gcid-primary-color) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: background-color .3s ease, border-color .3s ease;
}
.wc-proceed-to-checkout a.checkout-button:hover,
body #page-container .wc-proceed-to-checkout a.checkout-button:hover {
  background-color: var(--gcid-6tgp4pgf66) !important;
  border-color: var(--gcid-6tgp4pgf66) !important;
  color: #ffffff !important;
}

/* ===== Warenkorb: Spaltenbreiten der Produkttabelle (Desktop/Tablet) ===== */
@media (min-width: 769px) {
  .et_pb_wc_cart_products table.shop_table th.product-remove,
  .et_pb_wc_cart_products table.shop_table td.product-remove { width: 40px; }
  .et_pb_wc_cart_products table.shop_table th.product-thumbnail,
  .et_pb_wc_cart_products table.shop_table td.product-thumbnail { width: 75px; }
  .et_pb_wc_cart_products table.shop_table th.product-price,
  .et_pb_wc_cart_products table.shop_table td.product-price { width: 120px; }
  .et_pb_wc_cart_products table.shop_table th.product-quantity,
  .et_pb_wc_cart_products table.shop_table td.product-quantity { width: 85px; }
  .et_pb_wc_cart_products table.shop_table th.product-subtotal,
  .et_pb_wc_cart_products table.shop_table td.product-subtotal { width: 140px; }
  .et_pb_wc_cart_products table.shop_table td.product-thumbnail img { width: 55px; max-width: 55px; }
}

/* ===== Kasse: Abstand unter den Überschriften (Rechnungsdaten, Deine Bestellung, Zusätzliche Informationen) ===== */
html body #et-boc .et-l .et_pb_wc_checkout_billing h3,
html body #et-boc .et-l .et_pb_wc_checkout_order_details h3,
html body #et-boc .et-l .et_pb_wc_checkout_additional_info h3,
html body #et-boc .et-l .et_pb_wc_checkout_payment_info h3 {
  margin-bottom: 20px !important;
}

/* ===== Kasse: Hinweis "keine Zahlungsarten verfügbar" kleiner ===== */
html body #et-boc .et-l .et_pb_wc_checkout_payment_info #payment .woocommerce-info,
html body #et-boc .et-l .et_pb_wc_checkout_payment_info #payment .woocommerce-notice {
  font-size: 15px !important;
  line-height: 1.6 !important;
}

/* ===== Kasse: Button "Jetzt kaufen" im Indek-Stil ===== */
#payment #place_order,
body #page-container #payment #place_order,
html body #et-boc .et-l .et_pb_module #payment #place_order {
  background-color: var(--gcid-primary-color) !important;
  border: 2px solid var(--gcid-primary-color) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  transition: background-color .3s ease, border-color .3s ease;
}
#payment #place_order:hover,
body #page-container #payment #place_order:hover,
html body #et-boc .et-l .et_pb_module #payment #place_order:hover {
  background-color: var(--gcid-6tgp4pgf66) !important;
  border-color: var(--gcid-6tgp4pgf66) !important;
  color: #ffffff !important;
}

/* ===== Bestellung abgeschlossen (Danke-Seite): Abstände ===== */
html body #et-boc .et-l .woocommerce-order ul.woocommerce-order-overview { margin-bottom: 35px !important; }
html body #et-boc .et-l .woocommerce-order > p:not(.woocommerce-notice) { margin-bottom: 30px !important; }
html body #et-boc .et-l .woocommerce-order .wc-bacs-bank-details-heading { margin-bottom: 10px !important; }
html body #et-boc .et-l .woocommerce-order .wc-bacs-bank-details-account-name { font-size: 18px !important; line-height: 1.4 !important; margin-bottom: 15px !important; }
html body #et-boc .et-l .woocommerce-order ul.wc-bacs-bank-details { margin-bottom: 40px !important; }
html body #et-boc .et-l .woocommerce-order .woocommerce-order-details__title,
html body #et-boc .et-l .woocommerce-order .woocommerce-column__title { margin-bottom: 15px !important; }
html body #et-boc .et-l .woocommerce-order .woocommerce-order-details { margin-bottom: 40px !important; }
html body #et-boc .et-l .woocommerce-order .woocommerce-order-details table.shop_table { margin-bottom: 0 !important; }
html body #et-boc .et-l .woocommerce-order .woocommerce-customer-details,
html body #et-boc .et-l .woocommerce-order .woocommerce-customer-details address { margin-bottom: 0 !important; }
