/*
 Theme Name:     Wein Stork
 Template:       Divi
 Version:        1.0.0
*/
 
/* =Ab hier kannst du deine CSS-Anpassungen eintragen
------------------------------------------------------- */
:root {
  --primary-color: #c00418;
  --primary-color-shaded: #73020E;
  --secondary-color: #9c9e9f;
  --background-color: #f9f8f4;
}

h1, h2, h3, h4, h5, h6, .title {
	font-family: yorkten-slab-condensed, sans-serif;
	font-weight: 500;
	font-style: normal;
	line-height: 1.4em;
}

body, h1, h2, h3, h4, h5, h6, .title, p { 
	hyphens: auto; 
}

html, body, p {
	font-family: komet, sans-serif;
	font-weight: 500;
	font-style: normal;
}

.et_overlay {
	border: none;
}

.stork-ball {
    background: url(https://www.stork-geniessen.de/wp-content/uploads/2025/07/icon.png);
    width: 30px;
    height: 30px;
    display: block;
    background-size: cover;
    display: block;
    margin: 5px auto 10px;
}

.section_subtitle {
	text-transform: uppercase;
	letter-spacing: 5px;
	color: var(--primary-color);
	margin: 0 0 20px 0;
	display: block;
}

button:after, .button:after, .woocommerce .button:after, .woocommerce a.button:after, .woocommerce button.button:after {
	display: none;
}

button.single_add_to_cart_button, button.wcpf-ewl-open, button.wcpf-ewl-submit, #review_form #respond .comment-form .form-submit input#submit {
    border: none !important;
    background: var(--primary-color) !important;
	color: #fff !important;
    border-radius: 0 !important;
    font-size: 1.2rem !important;
    padding: 11px 20px !important;
	cursor: pointer !important;
	transition: background ease .5s, color ease .5s !important;
}

button.single_add_to_cart_button:hover, button.wcpf-ewl-open:hover, button.wcpf-ewl-submit:hover, #review_form #respond .comment-form .form-submit input#submit:hover {
    background: var(--primary-color-shaded) !important;
	color: #fff !important;
}

a.wc-forward {
    border: none !important;
    background: #fff !important;
	color: var(--primary-color) !important;
    border-radius: 0 !important;
    font-size: 1.2rem !important;
    padding: 11px 20px !important;
	cursor: pointer !important;
	transition: background ease .5s, color ease .5s !important;
}

a.wc-forward:hover {
    background: var(--primary-color-shaded) !important;
	color: #fff !important;
}

.sidebar-btn {
    border: none !important;
    background: var(--primary-color) !important;
	color: #fff !important;
    border-radius: 0 !important;
    font-size: 1.2rem !important;
    padding: 11px 20px !important;
	cursor: pointer !important;
	transition: background ease .5s, color ease .5s !important;
}

.sidebar-btn:hover {
    background: var(--primary-color-shaded) !important;
	color: #fff !important;
}

.inline-text-btn {
	color: var(--primary-color);
	font-weight: 700;
	display: flex;
	margin: 20px 0 10px 0;
	align-items: center;
	transition: color ease-in-out .3s;
}

.inline-text-btn:after {
	font-family: 'ETMODULES';
	content: '\24';
	font-size: 18px;
	color: var(--primary-color);
	margin: 5px 7px 0 10px;
	transition: color ease-in-out .3s;
}

.inline-text-btn:hover, .inline-text-btn:hover:after {
	color: #000;
}

#page-container .et-boc #main-content {
  padding-top: 0 !important;
}

#stork_header {
	overflow: hidden;
}

#stork_header:after {
	content: "";
	width: 100%;
	height: 230px;
	position: absolute;
	bottom: 0;
	left: 0;
	background: url(https://www.stork-geniessen.de/wp-content/uploads/2025/09/header-shape_2.svg);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center bottom;
	border-bottom: 1px solid #f9f8f4;
	z-index: 10;
}

@media (max-width: 820px) {
	#stork_header:after {
		width: 280%;
		transform: translateX(-24%);
	}
}

@media (max-width: 430px) {
	#stork_header:after {
		width: 330%;
		transform: translateX(-28%);
	}
}

body.home #stork_header .et_pb_fullwidth_header {
    position: relative !important;
    overflow: hidden !important;
}

body.home .stork-bg-video {
    z-index: 0 !important;
}

body.home #stork_header .et_pb_fullwidth_header_overlay {
    z-index: 1 !important;
}

body.home #stork_header {
    background: transparent !important;
}


@media (min-width: 430px) and (max-width: 1530px) {
	.linke-nav {
		text-align: left !important;
	}

	.rechte-nav {
		text-align: right !important;
	}
}

.custom-cart-icon {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 0 10px;
}
.custom-cart-icon .et-pb-icon {
	color: #fff;
	font-size: 25px !important;
	text-decoration: none;
	transition: color 0.2s ease;
}
.unterseite .custom-cart-icon .et-pb-icon, .dd-fixed-header-styling .custom-cart-icon .et-pb-icon {
	color: #000;
}
.custom-cart-icon .et-pb-icon:hover, .dd-fixed-header-styling .custom-cart-icon .et-pb-icon:hover {
	color: var(--primary-color);
}
.custom-cart-icon .cart-count {
	position: absolute;
	top: -6px;
	right: 2px;
	background: #e02b20;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	border-radius: 999px;
	padding: 2px 6px;
	line-height: 1;
	min-width: 16px;
	text-align: center;
}

/*------------Produkt Slider styling---------------------*/
#stork-produkt-slider .et_pb_slide_image, #stork-produkt-slider .et_pb_slide:first-child .et_pb_slide_image img.active, #stork-produkt-slider .et_pb_slide_description {
	animation-timing-function: ease-in-out;
	animation-name: fadeIn;
	animation-duration: .7s;
	animation-delay: .7s;
}
#stork-produkt-slider .et_pb_slide_title {
	font-family: komet, sans-serif;
	font-weight: 500;
	font-style: normal;
	margin: 0 0 20px 0;
}
#stork-produkt-slider .slider_subtitle {
	font-size: 30px;
	font-family: yorkten-slab-condensed, sans-serif;
	font-weight: 500;
	font-style: normal;
	line-height: 1.2em;
}
@media (min-width: 1200px) {
	#stork-produkt-slider .slider_subtitle {
		font-size: 40px;
	}
}
@media (min-width: 1920px) {
	#stork-produkt-slider .slider_subtitle {
		font-size: 50px;
	}
}
#stork-produkt-slider .et_pb_slide_description {
	text-shadow: none;
}
#stork-produkt-slider .et_pb_button {
	font-weight: 700;
	display: flex;
	align-items: center;
	transition: color ease-in-out .3s;
}
#stork-produkt-slider .et_pb_button:after {
	opacity: 1 !important;
    position: relative !important;
	font-weight: 700 !important;
	text-shadow: none !important;
	font-family: 'ETMODULES' !important;
	content: '\24' !important;
	font-size: 18px !important;
	color: var(--primary-color) !important;
	margin: 3px 7px 0 10px !important;
	transition: color ease-in-out .3s !important;
}
#stork-produkt-slider .et_pb_button:hover:after {
	color: #000 !important;
}
#stork-produkt-slider .et_pb_button:hover, #stork-produkt-slider .et_pb_button:hover:after {
	color: #000;
}
#stork-produkt-slider.et_pb_slider {
	display: flex;
	align-items: center;
}
#stork-produkt-slider .et_pb_slides {
	order: 2;
	flex: 1;
}
@media (min-width: 1200px) {
	#stork-produkt-slider .et_pb_slide.et-pb-active-slide:after {
		animation-name: fadeIn;
	  	animation-duration: 0.7s;
	  	animation-delay: 0.7s;
	  	animation-timing-function: ease-in-out;
	  	animation-fill-mode: both;
	}
	#stork-produkt-slider .et_pb_slide_1:after {
		content: "";
		background: url(https://www.stork-geniessen.de/wp-content/uploads/2025/06/bluberry.png);
		height: 100%;
		width: 100%;
		display: block;
		top: 0;
		left: 0;
		background-size: auto;
		background-repeat: no-repeat;
		z-index: 1;
		background-position: 15% center;
	}
	#stork-produkt-slider .et_pb_slide_2:after {
		content: "";
		background: url(https://www.stork-geniessen.de/wp-content/uploads/2025/06/bluberry.png);
		height: 100%;
		width: 100%;
		display: block;
		position: absolute;
		top: 0;
		left: 0;
		background-size: auto;
		background-repeat: no-repeat;
		z-index: 1;
		background-position: 15% center;
	}
}
#stork-produkt-slider .et-pb-slider-arrows {
	order: 3;
	bottom: 0;
	right: 0;
	z-index: 11;
	background: transparent;
}
#stork-produkt-slider .et-pb-arrow-next, #stork-produkt-slider .et-pb-arrow-prev, #stork-produkt-slider.et_pb_slider:hover .et-pb-arrow-prev , #stork-produkt-slider.et_pb_slider:hover .et-pb-arrow-next {
	opacity: 1;
	position: relative;
	display: flex;
	bottom: 0;
	left: auto;
	right: auto;
	font-size: 35px;
	margin: 12px !important;
	padding: 3px;
	background: transparent;
	text-shadow: none !important;
}
#stork-produkt-slider .et-pb-controllers {
	order: 1;
	position: relative;
	bottom: 50%;
	left: 0;
	width: auto;
	transform: rotate(90deg);
	height: 0;
}
#stork-produkt-slider .et-pb-controllers a {
    background-color: var(--secondary-color);
}
#stork-produkt-slider .et-pb-controllers .et-pb-active-control {
    background-color: var(--primary-color);
}
#stork-produkt-slider .et-pb-arrow-prev:before {
	content: "\21";
	color: var(--primary-color);
}
#stork-produkt-slider .et-pb-arrow-next:before {
	content: "\22";
	color: var(--primary-color);
}

/*------------Bildergallerie styling---------------------*/
@media (min-width: 981px) {
#stork-gallery .et_pb_gutters4 .et_pb_column_4_4 .et_pb_grid_item {
    width: calc(33.5666% - 15px);
    margin-right: 15px;
    margin-bottom: 15px;
  }
}
#stork-gallery .et_pb_gutters4 .et_pb_column_4_4 .et_pb_grid_item.last_in_row {
  margin-right: 0 !important;
}

/*------------WP Forms---------------------*/
.wpforms-container input.wpforms-field-medium, .wpforms-container select.wpforms-field-medium, .wpforms-container .wpforms-field-row.wpforms-field-medium, .wp-core-ui div.wpforms-container input.wpforms-field-medium, .wp-core-ui div.wpforms-container select.wpforms-field-medium, .wp-core-ui div.wpforms-container .wpforms-field-row.wpforms-field-medium {
    max-width: 100% !important;
}

/*------------WooCommerce---------------------*/

.woocommerce a.button.alt, .woocommerce-page a.button.alt, .woocommerce button.button.alt, .woocommerce button.button.alt.disabled, .woocommerce-page button.button.alt, .woocommerce-page button.button.alt.disabled, .woocommerce input.button.alt, .woocommerce-page input.button.alt, .woocommerce #respond input#submit.alt, .woocommerce-page #respond input#submit.alt, .woocommerce #content input.button.alt, .woocommerce-page #content input.button.alt, .woocommerce a.button, .woocommerce-page a.button, .woocommerce button.button, .woocommerce-page button.button, .woocommerce input.button, .woocommerce-page input.button, .woocommerce #respond input#submit, .woocommerce-page #respond input#submit, .woocommerce #content input.button, .woocommerce-page #content input.button, .woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] {
    font-size: 16px;
}

/* Zusätzliche-Informationen-Tab im Divi WC Tabs Modul ausblenden */
.et_pb_wc_tabs .additional_information_tab,
.et_pb_wc_tabs #tab-additional_information {
    display: none !important;
}

/* Wein/Spirituosen Hinweise auf Event-Seiten ausblenden */
.prod-cat-tastings .no_event_info,
.prod-cat-veranstaltungen .no_event_info,
.prod-cat-shoptastings .no_event_info {
	display: none !important;
}

.prod-cat-gluehwein .no_product_info,
.prod-cat-weisswein .no_product_info,
.prod-cat-rotwein .no_product_info,
.prod-cat-wein .no_product_info {
	display: none !important;
}

th.woocommerce-product-attributes-item__label {
    text-align: left;
}

.wc-block-components-product-details__name, .wc-block-components-product-details__value {
    display: block !important;
}

/* Wrapper */
.woocommerce .quantity {
    display: inline-flex !important;
    align-items: center;
    position: relative;
}

/* Input */
.woocommerce .quantity input.qty {
    width: 70px;
    height: 48px;
    border: none !important;
    border-left: 0;
    border-right: 0;
    text-align: center;
    font-size: 18px;
    padding: 0;
    appearance: textfield;
}

/* Standard-Spinner entfernt */
.quantity input.qty::-webkit-inner-spin-button,
.quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Buttons */
body.woocommerce .quantity .qty-btn.plus,
body.woocommerce .quantity .qty-btn.minus {
    background: #bdbdbd !important;
    color: #333 !important;
    box-shadow: none !important;
    border: none !important;
    width: 48px !important;
    height: 48px !important;
    font-size: 24px !important;
    font-weight: 600 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
	cursor: pointer;
}

/* Hover-Effekt */
body.woocommerce .quantity .qty-btn.plus:hover {
    background: #266A35 !important;
    color: #fff !important;
}

body.woocommerce .quantity .qty-btn.minus:hover {
    background: var(--primary-color) !important;
    color: #fff !important;
}

/* PayPal Buttons */
.ppc-button-wrapper {
  margin: 40px 0 0;
  max-width: 50%;
}
.ppcp-place-order-description {
	text-align: left !important;
}

/* Einheitliche quadratische Bildbox (in der Produktübersicht) */
.et_shop_image {
	width: 100%;
	aspect-ratio: 1 / 1;      /* quadratisch */
	background: #fff;         /* neutraler Hintergrund */
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 20px;
}

/* Bild vollständig anzeigen, nicht beschneiden (in der Produktübersicht) */
.et_shop_image img {
	width: 100% !important;
	height: 100% !important;
	margin: 0 !important;
	object-fit: contain;      /* zeigt ganze Flasche */
	object-position: center;  /* mittig ausrichten */
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    padding: 1.5em 0;
}

/* ================================
   SINGLE PRODUCT – HAUPTBILD
   Quadrat + contain, kein Zuschnitt
   ================================ */

/* Der einzelne Slide (Figure/Anchor) bekommt einen festen, quadratischen Rahmen */
.woocommerce div.product div.images .woocommerce-product-gallery__image,
.woocommerce div.product div.images .woocommerce-product-gallery__image a {
  display: flex;
  align-items: stretch;
  justify-content: center;
  aspect-ratio: 1 / 1;     /* quadratisch – wie im Grid */
  background: #fff;        /* oder #f9f9f9/transparent */
  overflow: hidden;
}

/* Das eigentliche Bild passt sich ein (ohne Cropping) */
.woocommerce div.product div.images .woocommerce-product-gallery__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;      /* WICHTIG: ganze Flasche sichtbar */
  object-position: center;
}

/* Falls Divi / FlexSlider das UL/Wrapper auf Höhe kollabieren lässt */
.woocommerce div.product div.images .woocommerce-product-gallery__wrapper {
  /* sorgt dafür, dass der Wrapper die Slide-Höhe akzeptiert */
  display: block;
}

/* ================================
   SINGLE PRODUCT – THUMBNAILS
   Gleich große Quadrate + contain
   ================================ */

.woocommerce div.product div.images .flex-control-thumbs li {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Optional: definierte Thumbnail-Höhe (wenn du feste Pixel willst) */
@media (min-width: 981px) {
  .woocommerce div.product div.images .flex-control-thumbs li { height: 90px; }
}
@media (max-width: 980px) {
  .woocommerce div.product div.images .flex-control-thumbs li { height: 72px; }
}

/* ================================
   FALLBACKS (falls aspect-ratio fehlt)
   ================================ */
.no-aspect-ratio .woocommerce div.product div.images .woocommerce-product-gallery__image,
.no-aspect-ratio .woocommerce div.product div.images .woocommerce-product-gallery__image a {
  height: 300px;            /* wie dein Grid, z. B. 300 */
}
.no-aspect-ratio .woocommerce div.product div.images .flex-control-thumbs li {
  height: 80px;
}
