/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* ==========================================================================
   Ehlers und Pfeiffer GmbH – Komponenten-CSS für den Elementor-Nachbau
   Quelle: Claude-Design-Export (export/README.md, assets/css/site.css).
   Präfix ep-. Farben/Schriften/Abstände liegen nativ in Kit und Widgets;
   hier steht nur, was Elementor nicht als Einstellung kennt.
   Umschaltpunkte = Kit-Breakpoints: Tablet ≤ 999 px (Hamburger), Mobil ≤ 699 px.
   Das Design hat keine Animationen → Hover wechselt sofort (transition: none).
   ========================================================================== */

/* 1. Basis ---------------------------------------------------------------- */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Kontur-Icons (Pfeil, Telefon, Menü, Bild): Elementor setzt fill aufs svg */
.elementor svg[stroke="currentColor"],
.elementor svg[fill="none"] {
	fill: none !important;
}

/* Text-Editor: Absätze ohne Theme-Abstand, mehrere Absätze mit 1em */
.elementor-widget-text-editor p {
	margin-block: 0;
}
.elementor-widget-text-editor p + p {
	margin-block-start: 1em;
}

/* Kind-Container, die nur so breit wie ihr Inhalt sein sollen (Zeilen) */
.e-con.ep-w-auto {
	--width: auto !important;
}

.ep-balance .elementor-heading-title { text-wrap: balance; }
.ep-pretty,
.ep-pretty p { text-wrap: pretty; }

/* Max-Breiten aus dem Design (Elementor setzt max-width:100% an Widgets) */
.elementor-widget.ep-mw-420 { max-width: 420px !important; }
.elementor-widget.ep-mw-520 { max-width: 520px !important; }
.elementor-widget.ep-mw-540 { max-width: 540px !important; }
.elementor-widget.ep-mw-560 { max-width: 560px !important; }
.e-con.ep-mw-540 { max-width: 540px !important; }
.e-con.ep-mw-560 { max-width: 560px !important; }
.e-con.ep-mw-640 { max-width: 640px !important; }

/* Editor: leere Drop-Fläche nicht als zusätzliche Rasterzelle zählen */
body.elementor-editor-active .e-con.e-grid:has(> .elementor-element) > .elementor-empty-view,
body.elementor-editor-active .e-con.e-grid > .e-con-inner:has(> .elementor-element) > .elementor-empty-view {
	display: none !important;
}

/* 2. Header ---------------------------------------------------------------- */
.elementor-location-header {
	position: sticky;
	top: 0;
	z-index: 50;
}
body.admin-bar .elementor-location-header { top: 32px; }
@media (max-width: 782px) {
	body.admin-bar .elementor-location-header { top: 46px; }
}
@media (max-width: 600px) {
	body.admin-bar .elementor-location-header { top: 0; }
}

.ep-header {
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
}

/* Logo (Header + Footer): Bild-Link ohne Zeilen-Unterlänge, Breite aus Höhe */
.ep-logo a,
.ep-logo img {
	display: block;
}
.ep-logo img {
	width: auto;
	max-width: none;
}

/* Desktop-Navigation */
.ep-nav .elementor-nav-menu {
	gap: clamp(20px, 2.4vw, 36px);
}
.ep-nav .elementor-nav-menu::after {
	display: none !important;
}
.ep-nav .elementor-nav-menu > li.ep-menu-cta {
	display: none;
}
.ep-nav .elementor-item {
	transition: none !important;
}
/* Anker-Menüpunkte: kein Aktiv-Stil (Design), Hover bleibt blau */
.ep-nav .elementor-item.elementor-item-active:not(:hover),
.ep-nav .elementor-item.highlighted:not(:hover) {
	color: #141A26 !important;
}

/* Hamburger + Dropdown (< 1000 px) */
.ep-burger .elementor-menu-toggle {
	width: 44px;
	height: 44px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: none;
}
.ep-burger .elementor-nav-menu--dropdown.elementor-nav-menu__container {
	transition: none !important;
	background: #FFFFFF;
	border-bottom: 1px solid #EEEEEE;
	padding: 8px 20px 24px;
	box-sizing: border-box;
}
.ep-burger .elementor-menu-toggle.elementor-active + .elementor-nav-menu__container {
	max-height: none !important;
}
.ep-burger .elementor-nav-menu--dropdown a.elementor-item {
	line-height: normal !important;
	transition: none !important;
	border-inline-start: 0 !important;
}
.ep-burger .elementor-nav-menu--dropdown li.ep-menu-cta > a.elementor-item {
	margin-top: 20px;
	justify-content: center;
	background: #C4501A !important;
	color: #FFFFFF !important;
	font-size: 17px !important;
	padding: 16px 20px !important;
	border-radius: 12px;
}

/* 3. Bausteine ------------------------------------------------------------- */

/* Kicker / Eyebrow: Marker-Quadrat 8×8 #EA6720, Abstand 10 px */
.ep-kicker .elementor-heading-title {
	display: flex;
	align-items: center;
	gap: 10px;
}
.ep-kicker .elementor-heading-title::before {
	content: "";
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	background: #EA6720;
	border-radius: 2px;
}

/* Bild-Badge (KI-Kennzeichnung) */
.elementor-widget.ep-badge {
	position: absolute;
	z-index: 2;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	pointer-events: none;
}
.ep-badge--band { top: clamp(12px, 1.6vw, 20px); right: clamp(12px, 1.6vw, 20px); }
.ep-badge--14 { top: 14px; right: 14px; }
.ep-badge--16 { top: 16px; right: 16px; }

/* Buttons + Pfeil-Links: kein Zeilen-Strut, Icon 18 px, kein Übergang */
.elementor-widget-button.ep-btn,
.elementor-widget-button.ep-link {
	line-height: 0;
}
/* Buttons in Zeilen auf gleiche Höhe strecken (Design: a.btn ist Flex-Item) */
.elementor-widget-button.ep-btn {
	display: flex;
}
.ep-btn .elementor-button {
	display: inline-flex;
	align-items: center;
}
.ep-btn .elementor-button,
.ep-link .elementor-button {
	vertical-align: top;
	transition: none !important;
}
.ep-btn .elementor-button-content-wrapper,
.ep-link .elementor-button-content-wrapper {
	align-items: center;
}
.ep-btn .elementor-button-icon svg,
.ep-link .elementor-button-icon svg {
	width: 18px;
	height: 18px;
}

/* Footer-Links: Hover sofort (Elementor blendet Icon-Listen sonst 0,3 s über) */
.ep-footer .elementor-icon-list-text {
	transition: none !important;
}

/* Icons (USP, Kreis-Pfeile, Telefon, Bild-Platzhalter) */
.ep-icon .elementor-icon-wrapper {
	display: flex;
}
.ep-icon .elementor-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	transition: none;
}
.ep-icon--sm .elementor-icon svg {
	width: 16px;
	height: 16px;
}

/* Platzhalter-Markierung [PLATZHALTER] (vor Livegang ersetzen) */
.ep-ph {
	background: #FFF1CC;
	color: #6B4A00;
	padding: 1px 6px;
	border-radius: 4px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
}

/* Akzent im Statement (Über uns) */
.ep-accent { color: #36549D; }

/* Karten als Link (Leistungen, Materialien): Hover ohne Übergang */
.e-con.ep-card {
	transition: none !important;
}
.e-con.ep-card,
.e-con.ep-card:hover {
	color: #141A26;
	text-decoration: none;
}

/* Chips (Materialkarten) */
.elementor-widget.ep-chips {
	margin-top: auto !important;
}
.ep-chips .elementor-icon-list-items {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.ep-chips .elementor-icon-list-item {
	margin: 0 !important;
	padding: 6px 12px !important;
	background: #F3F5F9;
	border-radius: 999px;
}
.ep-chips .elementor-icon-list-item:has(.ep-ph) {
	background: #FFF1CC;
}
.ep-chips .elementor-icon-list-item:has(.ep-ph) .elementor-icon-list-text {
	color: #6B4A00 !important;
	font-family: 'IBM Plex Mono', monospace !important;
}
.ep-chips .ep-ph {
	background: none;
	padding: 0;
	border-radius: 0;
	font-size: inherit;
	color: inherit;
}

/* Nummerierte Liste (Wasserstrahlschneiden) */
.ep-numlist .elementor-icon-list-items {
	border-top: 1px solid #E3E7EF;
}
.ep-numlist .elementor-icon-list-item {
	margin: 0 !important;
	padding: 14px 0 !important;
	border-bottom: 1px solid #E3E7EF;
}
.ep-numlist .elementor-icon-list-text {
	display: flex;
	gap: 14px;
	align-items: baseline;
	padding: 0 !important;
}
.ep-numlist .ep-num {
	flex: 0 0 auto;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 13px;
	color: #36549D;
}

/* Checkliste (Infobox Anfrage) */
.ep-checklist .elementor-icon-list-items {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 10px;
}
.ep-checklist .elementor-icon-list-item {
	margin: 0 !important;
	padding: 14px 16px !important;
	background: #FFFFFF;
	border-radius: 12px;
	display: flex;
	align-items: center;
	gap: 12px;
}
.ep-checklist .elementor-icon-list-item::before {
	content: "";
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: #36549D;
}

/* Prozess-Schritte: Kreis 44 px */
.ep-step-num .elementor-heading-title {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	border: 1.5px solid #36549D;
	border-radius: 999px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.ep-step-num--filled .elementor-heading-title {
	border: 0;
	background: #36549D;
}

/* Preis-Hinweis: fetter Anfang in Archivo */
.ep-price strong {
	font-family: 'Archivo', sans-serif;
	font-weight: 600;
}

/* Eilband: große Telefonnummer, Hover unterstrichen */
.ep-phone .elementor-heading-title {
	white-space: nowrap;
}
.ep-phone .elementor-heading-title a:hover {
	color: #FFFFFF;
	text-decoration: underline;
	text-decoration-thickness: 3px;
	text-underline-offset: 8px;
}

/* 4. Bilder und Bänder ---------------------------------------------------- */

/* Hero + CTA: ein Rasterfeld mit Ebenen wie im Design (Bild · Badge · Inhalt).
   Höhe = max(Mindesthöhe des Bildes, natürliches Bildformat, Inhalt). */
.ep-hero-frame > .elementor-element,
.ep-cta-frame > .elementor-element {
	grid-area: 1 / 1;
}
.ep-hero-frame > .elementor-widget-image,
.ep-cta-frame > .elementor-widget-image {
	position: relative;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
}
.ep-hero-frame > .elementor-widget-image img,
.ep-cta-frame > .elementor-widget-image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
}
.ep-hero-frame > .elementor-widget-image img {
	min-height: clamp(560px, 50vw, 760px);
	object-position: 35% 40%;
}
@media (max-width: 699.98px) {
	.ep-hero-frame > .elementor-widget-image img { object-position: 58% 40%; }
}
.ep-cta-frame > .elementor-widget-image img {
	min-height: clamp(420px, 36vw, 540px);
	object-position: 80% 50%;
}
.ep-cta-frame > .elementor-widget-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(20, 26, 38, 0.42);
}
.e-con.ep-hero-content { align-self: end; }
.e-con.ep-cta-content { align-self: center; max-width: 720px !important; }
.e-con.ep-hero-card { max-width: max(340px, min(560px, 40vw)) !important; }

/* Bild mit festem Seitenverhältnis (Über uns 16:10, Wasserstrahl 4:5) */
.ep-media > .elementor-widget-image img {
	display: block;
	width: 100%;
	height: auto;
	max-width: none;
	object-fit: cover;
}
.ep-media--16x10 > .elementor-widget-image img { aspect-ratio: 16 / 10; }
.ep-media--4x5 > .elementor-widget-image img { aspect-ratio: 4 / 5; border-radius: 24px; }

/* Bild-Platzhalter Karriere (4:3, gestrichelt) – durch Teamfoto ersetzen */
.e-con.ep-media-ph { aspect-ratio: 4 / 3; }
.ep-media-ph .elementor-icon { opacity: 0.45; }
.e-con.ep-media-ph > .elementor-widget-heading { opacity: 0.75; max-width: 90% !important; }

/* 5. Unterseiten (2026-11-26) ---------------------------------------------- */
/* Seitenkopf: wie Hero, aber kompakter. Bildausschnitt je Seite per Widget-CSS. */
/* Höhe = max(Mindesthöhe, Inhalt) – das Bildformat zählt hier nicht mit (Stockfotos 3:2) */
.ep-hero-frame.ep-hero-frame--sub > .elementor-widget-image {
	min-height: clamp(440px, 38vw, 580px);
}
.ep-hero-frame.ep-hero-frame--sub > .elementor-widget-image img {
	position: absolute;
	inset: 0;
	height: 100%;
	min-height: 0;
}
/* Merkmal-Karten mit Nummer statt Icon: Kreis wie Prozess-Schritte */
.e-con .ep-step-num { width: auto; }
/* Downloads (Qualität) */
.ep-downloads .elementor-icon-list-items {
	border-top: 1px solid #E3E7EF;
}
.ep-downloads .elementor-icon-list-item {
	margin: 0 !important;
	padding: 14px 0 !important;
	border-bottom: 1px solid #E3E7EF;
}
.ep-downloads .elementor-icon-list-item a { width: 100%; }
.ep-downloads .elementor-icon-list-text { transition: none !important; }
.ep-downloads .elementor-icon-list-text::after {
	content: "PDF ↓";
	float: right;
	margin-left: 16px;
	font-family: 'IBM Plex Mono', monospace;
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 0.08em;
	color: #4A5162;
}
/* Kontaktkarten + Fließtext-Links */
.ep-contact a,
.elementor-widget-text-editor a {
	color: #36549D;
	text-decoration: none;
}
.ep-contact a:hover,
.elementor-widget-text-editor a:hover {
	color: #C4501A;
}
/* Formulare (Kontakt, Anfrage) */
.ep-form .elementor-field-group .elementor-field-textual {
	min-height: 48px;
	padding: 12px 14px;
	box-shadow: none;
}
.ep-form .elementor-field-group textarea.elementor-field-textual {
	min-height: 120px;
}
.ep-form .elementor-field-textual:focus {
	border-color: #36549D !important;
	outline: 2px solid rgba(54, 84, 157, 0.18);
	outline-offset: 0;
}
.ep-form .elementor-field-type-upload input[type="file"] {
	width: 100%;
	padding: 10px 12px;
	background: #FFFFFF;
	border: 1px dashed #C9D0DD;
	border-radius: 12px;
	font-size: 14px;
}
.ep-form .elementor-field-type-acceptance .elementor-field-subgroup label {
	font-weight: 400;
	font-size: 14px;
	line-height: 1.5;
	color: #333333;
}
.ep-form .elementor-field-type-acceptance a { color: #36549D; }
.ep-form .elementor-button { transition: none !important; }
.ep-form .elementor-button .elementor-button-icon svg { width: 18px; height: 18px; }
.ep-form .elementor-message { margin-top: 12px; }

/* 6. Lange Wörter / Überlauf (2026-11-26) -------------------------------------------- */
/* Deutsche Komposita („Wasserstrahlschneiden“, „Dichtungsmaterialien“) sprengen sonst
   Karten und Spalten. Getrennt wird nur, was nicht in die Zeile passt und mind. 10 Zeichen hat. */
.elementor-heading-title {
	-webkit-hyphens: auto;
	hyphens: auto;
	hyphenate-limit-chars: 10 4 4;
	overflow-wrap: break-word;
}
/* Fließtext: keine Trennung (Zeilenfall wie im Design), nur Notumbruch bei Überlänge */
.elementor-widget-text-editor,
.elementor-icon-list-text {
	overflow-wrap: break-word;
}
/* Telefonnummer, Buttons und Chips nie trennen */
.ep-phone .elementor-heading-title,
.ep-chips .elementor-icon-list-text,
.elementor-button {
	-webkit-hyphens: manual;
	hyphens: manual;
}
/* Checkliste in weißer Infobox (auf grauer Sektion): Kacheln grau */
.ep-infobox--white .ep-checklist .elementor-icon-list-item {
	background: #F3F5F9;
}
/* Werkstoffkarten auf weißem Grund (Verfahrensseiten): Rahmen wie Leistungskarten, Hover bleibt blau */
.ep-on-white .e-con.ep-card:not(:hover) {
	border-color: #E3E7EF !important;
}
