/* ---------- Fonts (local, no Google CDN) ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-regular.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-700.woff2") format("woff2"); }

:root {
	--eg-dark: #2b2d42;
	--eg-bg: #fbfbfb;
	--eg-green: #17b890;
	--eg-green-dark: #129a78;
	--eg-mint: #a2cbc2;
	--eg-grey: #dee5e5;
	--eg-radius: 32px;
}

body {
	background: var(--eg-bg);
	color: var(--eg-dark);
	font-family: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* ---------- Header ---------- */
.eg-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
	background: #fff;
	box-shadow: 0 1px 0 rgba(43, 45, 66, .08);
}
.eg-header__inner {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.eg-header__logo { display: block; line-height: 0; }
.eg-header__logo-img { height: 52px; width: auto; }
.eg-header__title { font-weight: 700; font-size: 24px; color: var(--eg-dark); line-height: 1.2; }
.eg-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 36px; }
.eg-nav a {
	color: var(--eg-dark);
	font-weight: 600;
	text-decoration: none;
	padding: 8px 0;
	border-bottom: 2px solid transparent;
}
.eg-nav a:hover,
.eg-nav .current-menu-item > a,
.eg-nav .current_page_item > a { color: var(--eg-green); border-bottom-color: var(--eg-green); }
.eg-header__toggle { display: none; }

@media (max-width: 880px) {
	.eg-header__logo-img { height: 42px; }
	.eg-header__toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		width: 44px;
		height: 44px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}
	.eg-header__burger {
		width: 30px;
		height: 30px;
		background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%232B2D42' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") center / contain no-repeat;
	}
	.eg-header__toggle[aria-expanded="true"] .eg-header__burger {
		background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='%232B2D42' stroke-linecap='round' stroke-width='2' d='M7 7l16 16M23 7L7 23'/%3e%3c/svg%3e");
	}
	.eg-nav {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: #fff;
		box-shadow: 0 8px 16px rgba(43, 45, 66, .12);
	}
	.eg-nav.is-open { display: block; }
	.eg-nav ul { flex-direction: column; gap: 0; padding: 8px 20px 16px; }
	.eg-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--eg-grey); }
}

/* ---------- Elementor helpers ---------- */
.eg-hero-image { min-height: 520px; }
@media (max-width: 767px) { .eg-hero-image { min-height: 280px; } }


/* Optician / partner logos */
.eg-logo img { max-height: 110px; width: auto; object-fit: contain; }

/* Fluent Forms in brand style */
.fluentform .ff-el-form-control { border-radius: 8px; border-color: #c9d3d3; font-family: inherit; }
.fluentform .ff-btn-submit {
	background: var(--eg-green) !important;
	border-radius: var(--eg-radius) !important;
	padding: 14px 36px !important;
	font-weight: 600;
	font-family: inherit;
}
.fluentform .ff-btn-submit:hover { background: var(--eg-green-dark) !important; }

/* ---------- WooCommerce ---------- */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.wc-block-components-button:not(.is-link),
.wp-block-button__link {
	background: var(--eg-green) !important;
	color: #fff !important;
	border-radius: var(--eg-radius) !important;
	font-weight: 600;
	border: 0;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--eg-green-dark) !important; }
.woocommerce div.product p.price,
.woocommerce div.product span.price { color: var(--eg-dark); font-weight: 600; }
.eg-price-note { font-size: .7em; font-weight: 400; color: #5b5e73; }
body.woocommerce .site-main,
body.woocommerce-page .site-main { max-width: 1200px; margin-left: auto; margin-right: auto; padding: 40px 20px; }

/* ---------- Footer fallback ---------- */
.eg-footer-fallback { background: var(--eg-mint); color: #fff; padding: 40px 20px; text-align: center; }

/* ---------- Footer (Elementor template) ---------- */
.eg-footer a { color: #fff; text-decoration: none; }
.eg-footer a:hover { text-decoration: underline; color: #fff; }
.eg-footer .elementor-widget-text-editor p { margin-bottom: 0; line-height: 2; }

/* ---------- Legal texts ---------- */
.eg-legal h2 { font-size: 24px; margin: 32px 0 12px; }
.eg-legal h3 { font-size: 19px; margin: 24px 0 8px; }
.eg-legal p, .eg-legal li { overflow-wrap: anywhere; }

/* ---------- Two form fields per row (Vorname/Name, Telefon/E-Mail) ---------- */
.fluentform fieldset { display: flex; flex-wrap: wrap; column-gap: 20px; }
.fluentform fieldset > * { flex: 1 1 100%; }
.fluentform fieldset > .ff-el-group.eg-half { flex: 1 1 calc(50% - 10px); }
@media (max-width: 640px) { .fluentform fieldset > .ff-el-group.eg-half { flex-basis: 100%; } }


/* Logo: explicit size so shop styles (img{height:auto}) cannot collapse the SVG */
.eg-header .eg-header__logo-img { width: 160px; height: auto; max-width: none; }
@media (max-width: 880px) { .eg-header .eg-header__logo-img { width: 130px; } }

/* SVG partner logos have no intrinsic size */
.eg-logo img[src$=".svg"] { width: 200px; max-width: 100%; height: auto; }

/* Long German compounds (e.g. "Geschäftsbedingungen") must not overflow on phones */
.elementor-heading-title { overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }

/* ---------- Mobile menu toggle: neutralise global Elementor button styles ---------- */
.eg-header .eg-header__toggle,
.eg-header .eg-header__toggle:hover,
.eg-header .eg-header__toggle:focus {
	background: transparent !important;
	border: 0 !important;
	border-radius: 50% !important;
	box-shadow: none !important;
	padding: 0 !important;
	color: var(--eg-dark) !important;
}
.eg-header .eg-header__toggle:focus-visible { outline: 3px solid var(--eg-green); outline-offset: 2px; }
.eg-header .eg-header__toggle:hover { background: var(--eg-grey) !important; }
@media (min-width: 881px) { .eg-header .eg-header__toggle { display: none !important; } }

/* ---------- Montage-Anleitung: vertical step list (nested tabs) ---------- */
.eg-howto .e-n-tabs { --n-tabs-heading-width: 42%; }
.eg-howto .e-n-tabs-heading { gap: 10px !important; justify-content: center; }
.eg-howto .e-n-tab-title {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: flex-start !important;
	gap: 16px;
	width: 100%;
	padding: 16px 20px !important;
	border: 1px solid transparent !important;
	border-radius: 16px !important;
	background: transparent !important;
	color: var(--eg-dark) !important;
	text-align: left;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	transition: background .2s, box-shadow .2s, border-color .2s;
}
.eg-howto .e-n-tab-title::before {
	content: "";
	flex: 0 0 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid var(--eg-mint);
	background: #fff;
	color: var(--eg-dark);
	font-weight: 700;
	line-height: 36px;
	text-align: center;
	transition: background .2s, color .2s, border-color .2s;
}
/* Fixed numbering by position (first entry = overview/play icon). Works in tab and accordion mode. */
.eg-howto .e-n-tab-title:nth-of-type(1)::before { content: "\25B6"; font-size: 12px; padding-left: 2px; }
.eg-howto .e-n-tab-title:nth-of-type(2)::before { content: "1"; }
.eg-howto .e-n-tab-title:nth-of-type(3)::before { content: "2"; }
.eg-howto .e-n-tab-title:nth-of-type(4)::before { content: "3"; }
.eg-howto .e-n-tab-title:nth-of-type(5)::before { content: "4"; }
.eg-howto .e-n-tab-title:nth-of-type(6)::before { content: "5"; }
.eg-howto .e-n-tab-title:hover { background: rgba(255, 255, 255, .7) !important; }
.eg-howto .e-n-tab-title[aria-selected="true"] {
	background: #fff !important;
	border-color: #e3e8e8 !important;
	box-shadow: 0 10px 30px rgba(43, 45, 66, .08);
}
.eg-howto .e-n-tab-title[aria-selected="true"]::before { background: var(--eg-green); border-color: var(--eg-green); color: #fff; }
.eg-howto .e-n-tab-title-text { color: inherit !important; font: inherit !important; }
.eg-howto .e-n-tab-title:focus-visible { outline: 3px solid var(--eg-green); outline-offset: 2px; }
.eg-howto .e-n-tabs-content > .e-con { padding: 0 !important; }
.eg-step-media img { border-radius: 20px; box-shadow: 0 16px 40px rgba(43, 45, 66, .12); }
.eg-step-caption { margin-top: 20px; }
.eg-step-caption .elementor-heading-title { color: var(--eg-green) !important; }
@media (max-width: 767px) {
	.eg-howto .e-n-tab-title { font-size: 16px; padding: 14px 16px !important; }
	.eg-howto .e-n-tabs-content > .e-con { margin: 4px 0 16px; }
}
