/*
 Theme Name:   Hello Elementor Child
 Theme URI:    https://example.com/hello-elementor-child
 Description:  Ein Child-Theme für Hello Elementor
 Author:       Dein Name
 Author URI:   https://example.com
 Template:     hello-elementor
 Version:      1.0.1
 Text Domain:  hello-elementor-child
*/

/* Hier kannst du deine eigenen CSS-Styles hinzufügen */


* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	--spacing-large: 2.618rem;
	--spacing-medium: 1.618rem;
	--spacing-small: 1rem;
}

/* Page View Transition
***********************************************************/
@view-transition {
	navigation: auto;
}

::view-transition-group(*) {
	animation-duration: .5s;
}

::view-transition-new(root) {
	animation-name: fade-in;
}

@keyframes fade-in {
	from {
		opacity: 0;
	}
}

/* Custom Scrollbar
***********************************************************/
::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}

::-webkit-scrollbar-track {
    background: #DCDFE4;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #0094C4;
    border-radius: 10px;
    border: 3px solid #DCDFE4;
}

::-webkit-scrollbar-thumb:hover {
    background: #0094C4;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #0094C4 #DCDFE4;
}

.scrollable {
    -ms-overflow-style: scrollbar;
}

/* Main
***********************************************************/
/* Nur der Seiteninhalt. Ohne Klasse traf die Regel auch das <main> im
   eingebetteten Dynamics-Formular und zog es auf Bildschirmhoehe (27.10.2026). */
main.site-main {
	min-block-size: calc(100svh - var(--hdr-block-size, 0px) - var(--ftr-block-size, 0px));
}

/* Slider
***********************************************************/
.swiper-slide {
    padding-block-end: 1.5rem;
    padding-inline: 0.75rem;
}

/* Form
***********************************************************/
form {
    a {
        font-size: inherit !important;
    }
}

input {
	accent-color: var(--e-global-color-d92206a);
}

/* Typographie
***********************************************************/
h1.elementor-heading-title,
.h1 .elementor-heading-title,
h1, .h1,

h2.elementor-heading-title,
.h2 .elementor-heading-title,
h2, .h2,

h3.elementor-heading-title,
.h3 .elementor-heading-title,
h3, .h3,

h4.elementor-heading-title,
.h4 .elementor-heading-title,
h4, .h4,

h5.elementor-heading-title,
.h5 .elementor-heading-title,
h5, .h5,

h6.elementor-heading-title, 
.h6 .elementor-heading-title,
h6, .h6 {
	text-wrap: balance;
	margin-block-start: var(--spacing-medium);
	margin-block-end: var(--spacing-small);
	
	/* Typo Ligaturen entfernen */
	font-variant-ligatures: none;
	-webkit-font-variant-ligatures: none;
	font-feature-settings: "liga" 0, "clig" 0;
}

h1:first-child.elementor-heading-title,
.h1 .elementor-heading-title:first-child,
h1:first-child, .h1:first-child,

h2:first-child.elementor-heading-title,
.h2 .elementor-heading-title:first-child,
h2:first-child, .h2:first-child,

h3:first-child.elementor-heading-title,
.h3 .elementor-heading-title:first-child,
h3:first-child, .h3:first-child,

h4:first-child.elementor-heading-title,
.h4 .elementor-heading-title:first-child,
h4:first-child, .h4:first-child,

h5:first-child.elementor-heading-title,
.h5 .elementor-heading-title:first-child,
h5:first-child, .h5:first-child,

h6:first-child.elementor-heading-title, 
.h6 .elementor-heading-title:first-child,
h6:first-child, .h6:first-child {
	margin-block-start: 0;
}

h1.elementor-heading-title ,
.h1 .elementor-heading-title,
h1, .h1 {
	margin-block-start: var(--spacing-large);
	margin-block-end: var(--spacing-medium);
	
	font-size: clamp(2rem, 1rem + 2.5vw, 4rem) !important;
}

h2.elementor-heading-title ,
.h2 .elementor-heading-title,
h2, .h2 {
	margin-block-start: var(--spacing-large);
	margin-block-end: var(--spacing-medium);

	font-size: clamp(1.2rem, 0.8rem + 1vw, 2rem) !important;
}

h3.elementor-heading-title ,
.h3 .elementor-heading-title,
h3, .h3 {
	margin-block-start: var(--spacing-medium);
	margin-block-end: var(--spacing-small);

	font-size: clamp(1.07rem, 0.87rem + 0.53vw, 1.5rem) !important;
}

h4.elementor-heading-title ,
.h4 .elementor-heading-title,
h4, .h4 {
	margin-block-start: var(--spacing-medium);
	margin-block-end: var(--spacing-small);
}

h5.elementor-heading-title ,
.h5 .elementor-heading-title,
h5, .h5 {
	margin-block-start: var(--spacing-small);
	margin-block-end: var(--spacing-small);
}

h6.elementor-heading-title , 
.h6 .elementor-heading-title,
h6, .h6 {
	margin-block-start: var(--spacing-small);
	margin-block-end: var(--spacing-small);
}

p {
	margin-block-end: var(--spacing-small) !important;
	text-wrap: pretty;
}

/* Link */
a[class] {
  text-decoration: none !important;
}

main {
	a.elementor-button {
		margin-block-start: var(--spacing-small);
	}
}

/* Unordered List */
ul {

	&:not([class]) {
		--primary-color: var(--e-global-color-d92206a);
		list-style: none;
		--checklist-size: 1em;
		margin-block-end: var(--spacing-small);
		
		li {
			position: relative;
			margin-inline-start: calc(1.5 * var(--checklist-size)) !important;
			
			&::before {
				content: '';
				position: absolute;
				top: 3px;
				background: var(--primary-color);
				aspect-ratio: 1;
				width: var(--checklist-size);
				mask-repeat: no-repeat;
				mask-position: center center;
				margin-inline-start: calc(-1.5 * var(--checklist-size));
				mask-size: 6px;
				mask-image: url(/wp-content/themes/hello-elementor-child/assets/icons/list-icon.svg);
			}
		}
	}
}

/* Ordered List */
ol {
	
	&:not([class]) {
		--primary-color: var(--e-global-color-d92206a);
		--checklist-size: 1em;
		list-style: none;
		counter-reset: list-item;
		margin-block-end: var(--spacing-small);

		li {
			counter-increment: list-item;
			position: relative;
			margin-inline-start: calc(1.5 * var(--checklist-size));

			&::before {
				content: counters(list-item, ".") ". ";
				position: absolute;
				color: var(--primary-color);
				margin-inline-start: calc(-1.5 * var(--checklist-size));
			}

			ol {
				counter-reset: list-item;
			}
		}
	}
}

/* Text selection */
::selection {
	color: #fff;
	background-color: #004D66;
}



.headline-gradient {
    color: var( --e-global-color-d92206a );
    background: linear-gradient(135deg, var( --e-global-color-9aba949 ), var( --e-global-color-d92206a ) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Table
***********************************************************/
.table-container {
	--_table-bg: var(--e-global-color-634c751);
	--_table-color: var(--e-global-color-bda8a46);
	--_table-border-color: var(--e-global-color-634c751);
	--_table-header-bg: var(--e-global-color-ad70f44);
	--_table-header-color: var(--e-global-color-634c751);
	--_table-row-odd-bg: var(--e-global-color-7dfdb7d);
	--_table-padding: 0.5rem;
	--_table-gap: var(--spacing-small);
	--_data-cell-length: 17ch;

	max-inline-size: 100%;
	overflow-x: auto;
	margin-block-start: var(--spacing-medium);
	margin-block-end: var(--spacing-small);
	table {
		background-color: var(--_table-bg);
		color: var(--_table-color) !important;
		inline-size: 100%;
		border-collapse: collapse;
		font-size: var(--_table-font-size);
		border-radius: var(--_table-border-radius);
		overflow: hidden;

		thead,
		tbody,
		tfoot {
			tr {

				th,
				td {
					color: inherit;
					padding: var(--_table-padding) !important;
					border: 1px solid var(--_table-border-color);
					text-align: start;
				}
			}
		}

		thead {
			tr {
				th {
					background-color: var(--_table-header-bg);
					color: var(--_table-header-color);
				}
			}
		}

		tbody {
			tr {
				&:nth-child(odd) {
					td {
						background-color: var(--_table-row-odd-bg);
					}
				}

				td {
					background-color: var(--_table-bg);
				}
			}
		}

		tfoot {
			tr {
				td {
					background-color: var(--_table-footer-bg);
					color: var(--_table-footer-color);
				}
			}
		}
	}

	&.sticky {
		scroll-snap-type: x mandatory;

		table {
			--_table-col-width: calc(100% / 7);
			--_table-col-count: 7;
			width: calc(var(--_table-col-width) * var(--_table-col-count));
			table-layout: fixed;
			overflow: clip;

			th, td {
				width: var(--_table-col-width);
			}

			th {
				scroll-snap-align: start;
			}

			tr td:first-of-type,
			tr th:first-of-type {
				position: sticky;
				left: 0;

				/* Optional: leichter Schatten für bessere Trennung */
				&::after {
					content: "";
					position: absolute;
					top: 0;
					right: -1px;
					width: 1px;
					height: 100%;
					background: var(--e-global-color-634c751);
					pointer-events: none;
				}
			}

			@media (max-width: 1024px) {
					--_table-col-width: calc(100% / 3);

			}

			@media (max-width: 768px) {
					--_table-col-width: calc(100% / 2);

			}
		}
	}
}

/* Pump product sections
***********************************************************/
/* Rendered by includes/woo/product-sections.php. These sections come from PHP
   rather than Elementor because they must disappear entirely when the product
   has no such content — Elementor Pro's display conditions cannot test an ACF
   field, so an empty container would leave a coloured band behind. */

/* A heading bound to an empty ACF field would otherwise leave an empty block
   in its grid cell — a pump without a claim must not push the layout apart. */
.elementor-heading-title:empty {
	display: none;
}

/* An optional section that found nothing to render marks itself, and the whole
   grid section around it disappears — heading, background and all. :has() is
   Baseline and does the job Elementor's display conditions cannot. */
.e-con:has(> .pump-empty),
.e-con:has(> .e-con > .elementor-widget > .elementor-widget-container > .pump-empty),
.e-con:has(> .elementor-widget > .elementor-widget-container > .pump-empty) {
	display: none;
}

/* Visually hidden, still announced. Used for the corner cell of the spec
   tables, which carries the row-header label for screen readers. */
.sr-only {
	position: absolute;
	inline-size: 1px;
	block-size: 1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.pump-key-specs {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
	gap: var(--spacing-small);
	margin-block: var(--spacing-medium);

	dt {
		font-weight: 700;
	}
}

.pump-series {
	margin-block-end: var(--spacing-large);

	&__datasheet {
		display: inline-block;
		margin-block-start: var(--spacing-small);
	}

	&__dimensions {
		display: grid;
		grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
		gap: var(--spacing-small);
		margin-block-start: var(--spacing-medium);
		list-style: none;

		img {
			inline-size: 100%;
			block-size: auto;
		}
	}
}

.table-footnotes {
	font-size: 0.875em;
	margin-block-start: var(--spacing-small);
}

/* Card titles inside the PHP-rendered sections. Elementor's global typography
   targets the h3 element, so an unstyled <h3> here inherits full H3 size and
   collides with the neighbouring grid column. These pick up the kit's H5 step
   through the same custom properties the kit itself uses. */
.pump-advantages h3,
.pump-applications h3,
.pump-series h3 {
	font-family: var(--e-global-typography-42edb1f-font-family), Sans-serif;
	font-size: var(--e-global-typography-42edb1f-font-size);
	font-weight: var(--e-global-typography-42edb1f-font-weight);
	line-height: var(--e-global-typography-42edb1f-line-height);
	letter-spacing: var(--e-global-typography-42edb1f-letter-spacing);
	color: var(--e-global-color-bda8a46);
	margin-block: 0 var(--spacing-small);
}

.pump-advantages,
.pump-applications {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
	gap: var(--spacing-medium);
	margin-block: var(--spacing-medium);
	list-style: none;
}

.pump-materials {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: var(--spacing-small);
	margin-block: var(--spacing-medium);

	dt {
		font-weight: 700;
	}
}

.pump-case,
.pump-report,
.pump-comparison,
.pump-cost-comparison {
	margin-block: var(--spacing-large);
}

.pump-ai-monitoring {
	margin-block: var(--spacing-large);
	padding: var(--spacing-large);
	background-color: var(--e-global-color-ad70f44);
	color: var(--e-global-color-634c751);
}

.pump-documents {
	list-style: none;
	margin-block: var(--spacing-medium);
	display: grid;
	gap: var(--spacing-small);
}


/* German compounds break the grid without help: the original headings carried
   manual soft hyphens ("Membran&shy;pumpe"), the ACF content does not. */
.single-product .elementor-heading-title,
.single-product .pump-advantages,
.single-product .pump-applications,
.single-product .pump-key-specs,
.single-product .pump-materials,
.single-product .pump-series {
	hyphens: auto;
	overflow-wrap: break-word;
}

/* Videos — the widget brings its own aspect ratio and overlay handling,
   so only the list rhythm and the caption are ours. */
.pump-videos {
	list-style: none;
	display: grid;
	gap: var(--spacing-large);
	margin-block: var(--spacing-medium);
}

.pump-video__title {
	font-size: var(--e-global-typography-42edb1f-font-size);
	margin-block-end: var(--spacing-small);
}
}
