/*
Theme Name: Elektro Heilmeier
Theme URI: https://www.elektro-heilmeier-gmbh.de/
Author: Elektro Heilmeier GmbH
Description: WordPress-Theme für die Elektro Heilmeier GmbH, Dorfen. Legt beim Aktivieren automatisch alle Seiten (Startseite, Leistungen, Referenzen, So finden Sie uns, Stellenangebote, Kontakt, Impressum, Datenschutz) samt Hauptmenü an.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: elektro-heilmeier
*/

:root {
	--eh-blue: #0b3a68;
	--eh-blue-dark: #072849;
	--eh-yellow: #f5b800;
	--eh-text: #1f2933;
	--eh-muted: #5b6770;
	--eh-bg: #f4f6f8;
	--eh-white: #ffffff;
	--eh-border: #dde3e8;
	--eh-radius: 6px;
	--eh-max: 1140px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.65;
	color: var(--eh-text);
	background: var(--eh-bg);
}

img { max-width: 100%; height: auto; }

a { color: var(--eh-blue); }
a:hover, a:focus { color: var(--eh-blue-dark); }

h1, h2, h3, h4 { line-height: 1.25; color: var(--eh-blue-dark); margin: 1.4em 0 .5em; }
h1 { font-size: 2.1rem; margin-top: 0; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }

.eh-container { max-width: var(--eh-max); margin: 0 auto; padding: 0 20px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 10px; left: 10px; z-index: 1000; width: auto; height: auto; clip: auto;
	background: var(--eh-white); padding: 10px 16px; border-radius: var(--eh-radius);
}

/* ---------- Topbar ---------- */
.eh-topbar { background: var(--eh-blue-dark); color: #cfd9e3; font-size: .88rem; }
.eh-topbar .eh-container { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
.eh-topbar a { color: var(--eh-white); text-decoration: none; }

/* ---------- Header ---------- */
.eh-header { background: var(--eh-white); border-bottom: 4px solid var(--eh-yellow); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.eh-header .eh-container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.eh-brand { display: flex; align-items: center; text-decoration: none; }
.eh-brand img, .custom-logo { max-height: 64px; width: auto; display: block; }
.eh-brand-text { font-weight: 800; font-size: 1.35rem; color: var(--eh-blue-dark); letter-spacing: .01em; }
.eh-brand-text span { color: var(--eh-yellow); }

.eh-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; }
.eh-nav a {
	display: block; padding: 10px 14px; text-decoration: none; color: var(--eh-text);
	font-weight: 600; font-size: .97rem; border-radius: var(--eh-radius);
}
.eh-nav a:hover, .eh-nav a:focus { background: var(--eh-bg); color: var(--eh-blue); }
.eh-nav .current-menu-item > a, .eh-nav .current_page_item > a { color: var(--eh-white); background: var(--eh-blue); }

.eh-nav-toggle {
	display: none; background: var(--eh-blue); color: var(--eh-white); border: 0;
	padding: 10px 14px; border-radius: var(--eh-radius); font-size: 1rem; font-weight: 600; cursor: pointer;
}

@media (max-width: 900px) {
	.eh-nav-toggle { display: block; }
	.eh-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--eh-white); border-bottom: 4px solid var(--eh-yellow); }
	.eh-nav.is-open { display: block; }
	.eh-nav ul { flex-direction: column; padding: 10px 20px 16px; }
	.eh-header .eh-container { position: relative; }
}

/* ---------- Hero ---------- */
.eh-hero {
	background: linear-gradient(135deg, var(--eh-blue-dark) 0%, var(--eh-blue) 100%);
	color: var(--eh-white); padding: 64px 0 56px; position: relative; overflow: hidden;
}
.eh-hero::after {
	content: ""; position: absolute; right: -60px; top: -40px; width: 340px; height: 340px;
	background: radial-gradient(circle, rgba(245,184,0,.35) 0%, rgba(245,184,0,0) 70%);
}
.eh-hero h1 { color: var(--eh-white); font-size: 2.5rem; margin-bottom: .3em; }
.eh-hero p { font-size: 1.15rem; max-width: 720px; color: #e3ebf3; margin: 0 0 1.4em; }
.eh-hero .eh-hero-claim { color: var(--eh-yellow); font-weight: 700; }

.eh-btn {
	display: inline-block; background: var(--eh-yellow); color: var(--eh-blue-dark) !important; text-decoration: none;
	font-weight: 700; padding: 12px 24px; border-radius: var(--eh-radius); margin: 0 10px 10px 0; border: 0; cursor: pointer; font-size: 1rem;
}
.eh-btn:hover, .eh-btn:focus { background: #ffcb2e; }
.eh-btn--ghost { background: transparent; color: var(--eh-white) !important; border: 2px solid rgba(255,255,255,.6); }
.eh-btn--ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Page heading ---------- */
.eh-pagehead { background: var(--eh-blue); color: var(--eh-white); padding: 36px 0 30px; }
.eh-pagehead h1 { color: var(--eh-white); margin: 0; }
.eh-breadcrumb { font-size: .88rem; color: #c6d3e0; margin-bottom: 6px; }
.eh-breadcrumb a { color: #e3ebf3; }

/* ---------- Layout ---------- */
.eh-main { padding: 44px 0 60px; }
.eh-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 36px; align-items: start; }
@media (max-width: 900px) { .eh-layout { grid-template-columns: 1fr; } }

.eh-content {
	background: var(--eh-white); border-radius: var(--eh-radius); padding: 34px 38px;
	box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
@media (max-width: 600px) { .eh-content { padding: 24px 20px; } }
.eh-content > *:first-child { margin-top: 0; }

/* ---------- Sidebar ---------- */
.eh-sidebar { display: grid; gap: 20px; }
.eh-box { background: var(--eh-white); border-radius: var(--eh-radius); padding: 22px 24px; border-top: 4px solid var(--eh-yellow); box-shadow: 0 1px 3px rgba(0,0,0,.05); }
.eh-box h2 { font-size: 1.1rem; margin: 0 0 .6em; }
.eh-box p { margin: 0 0 .6em; }
.eh-box table { width: 100%; border-collapse: collapse; }
.eh-box td { padding: 3px 0; vertical-align: top; }
.eh-box td:first-child { padding-right: 12px; font-weight: 600; white-space: nowrap; }
.eh-box--accent { background: var(--eh-blue); color: var(--eh-white); border-top-color: var(--eh-yellow); }
.eh-box--accent h2 { color: var(--eh-yellow); }
.eh-box--accent a { color: var(--eh-white); }

/* ---------- Leistungen-Kacheln ---------- */
.eh-content .eh-services, .eh-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; list-style: none; padding: 0; margin: 1.2em 0 1.6em; }
.eh-services li {
	background: var(--eh-bg); border-left: 4px solid var(--eh-yellow); border-radius: var(--eh-radius);
	padding: 14px 16px; font-weight: 700; color: var(--eh-blue-dark); margin: 0; overflow-wrap: anywhere; hyphens: auto;
}

.eh-service { border-bottom: 1px solid var(--eh-border); padding: 4px 0 14px; }
.eh-service:last-of-type { border-bottom: 0; }
.eh-service h3 { margin-top: 1em; }
.eh-service h3::before { content: "⚡"; margin-right: 8px; }

/* ---------- Referenzen ---------- */
.eh-content h2.eh-year { border-bottom: 3px solid var(--eh-yellow); padding-bottom: 4px; display: inline-block; }
.eh-content ul { padding-left: 1.2em; }
.eh-content li { margin-bottom: .25em; }
.eh-note { font-size: .92rem; color: var(--eh-muted); }

/* ---------- Formular ---------- */
.eh-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; margin-top: 1.4em; }
.eh-form .eh-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .eh-form { grid-template-columns: 1fr; } }
.eh-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .95rem; }
.eh-form input[type=text], .eh-form input[type=email], .eh-form input[type=tel], .eh-form textarea {
	width: 100%; padding: 11px 12px; border: 1px solid #c3ccd4; border-radius: var(--eh-radius); font: inherit; background: #fff;
}
.eh-form input:focus, .eh-form textarea:focus { outline: 2px solid var(--eh-yellow); border-color: var(--eh-blue); }
.eh-form textarea { min-height: 160px; resize: vertical; }
.eh-form .eh-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.eh-form .eh-check input { margin-top: 6px; }
.eh-hp { position: absolute; left: -9999px; }
.eh-alert { padding: 14px 18px; border-radius: var(--eh-radius); margin: 1em 0; }
.eh-alert--ok { background: #e6f6ea; border: 1px solid #9fd5ad; }
.eh-alert--err { background: #fdecec; border: 1px solid #f0a8a8; }

/* ---------- Karte ---------- */
.eh-map { position: relative; background: #e4e9ee; border-radius: var(--eh-radius); overflow: hidden; aspect-ratio: 16 / 10; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.eh-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.eh-map p { max-width: 460px; margin: 0 0 14px; font-size: .93rem; color: var(--eh-muted); }

/* ---------- Footer ---------- */
.eh-footer { background: var(--eh-blue-dark); color: #b9c6d3; padding: 40px 0 26px; font-size: .93rem; }
.eh-footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-bottom: 26px; }
.eh-footer h2 { color: var(--eh-yellow); font-size: 1rem; margin: 0 0 .6em; }
.eh-footer a { color: var(--eh-white); text-decoration: none; }
.eh-footer a:hover { text-decoration: underline; }
.eh-footer ul { list-style: none; margin: 0; padding: 0; }
.eh-footer li { margin-bottom: 4px; }
.eh-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

.eh-totop {
	position: fixed; right: 18px; bottom: 18px; width: 44px; height: 44px; border-radius: 50%;
	background: var(--eh-yellow); color: var(--eh-blue-dark); border: 0; font-size: 1.3rem; cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .2s;
}
.eh-totop.is-visible { opacity: 1; pointer-events: auto; }

@media (max-width: 700px) {
	.eh-topbar span:not(:nth-child(2)) { display: none; }
	.eh-hero h1 { font-size: 2rem; }
	.eh-brand-text { font-size: 1.1rem; }
}
