/*
Theme Name: MOKA Elektrotechnik
Theme URI: https://moka-tech.de/
Author: MOKA Elektrotechnik
Description: Eigenes Theme für MOKA Elektrotechnik, Lahr. Startseite mit Leistungen, Ablauf, Über mich und Kontaktformular. Texte und Kontaktdaten unter Design → Website-Texte, Impressum und Datenschutz im Seiteneditor. Lädt keine externen Dienste.
Version: 1.1.4
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: moka
*/

@font-face {
	font-family: "Montserrat";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2-variations"),
	     url("assets/fonts/montserrat-latin-wght-normal.woff2") format("woff2");
}

:root {
	--ink: #2B2F34;
	--ink-deep: #222529;
	--text: #33383E;
	--muted: #4E545B;
	--muted-2: #5A6068;
	--line: #E0E2E5;
	--line-2: #E4E6E9;
	--tint: #F2F3F4;
	--on-dark: #C9CDD2;
	--on-dark-2: #E6E8EB;
	--chip: #3B4046;
	--accent: #FFD600;
	--accent-hover: #F2CB00;
	--field: #8D939A;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
	font-size: 17px;
	line-height: 1.6;
	color: var(--text);
	background: #FFFFFF;
	-webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--ink); }
a:hover { color: #50565E; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }

.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; background: #FFFFFF; color: var(--ink); padding: 12px 16px; border-radius: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
section[id] { scroll-margin-top: 16px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 52px; padding: 0 26px; border: 0; border-radius: 8px;
	font-family: inherit; font-size: 16px; font-weight: 700; line-height: 1.2;
	text-decoration: none; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--ink); }
.btn-outline { border: 2px solid #FFFFFF; color: #FFFFFF; }
.btn-outline:hover { background: #FFFFFF; color: var(--ink); }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }

/* Header */
.site-header { background: #FFFFFF; border-bottom: 1px solid var(--line-2); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 46px; width: auto; display: block; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; }
.main-nav .nav-link { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; padding: 10px 0; }
.main-nav .nav-link:hover { text-decoration: underline; }
@media (max-width: 680px) {
	.site-header .wrap { justify-content: center; }
	.main-nav { justify-content: center; gap: 0 20px; }
	.main-nav .nav-link { font-size: 14px; }
}

/* Hero */
.hero { background: var(--ink); color: #FFFFFF; }
.hero .wrap { padding-top: 120px; padding-bottom: 128px; }
.hero-inner { max-width: 820px; }
.hero h1 { margin: 0 0 28px; font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; color: #FFFFFF; }
.hero .lead { margin: 0 0 36px; font-size: 19px; color: var(--on-dark); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.marks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; font-weight: 500; color: var(--on-dark-2); }
.marks li, .strengths li { display: flex; align-items: center; gap: 10px; }
.bar { display: block; flex: 0 0 18px; width: 18px; height: 3px; background: var(--accent); }
@media (max-width: 680px) { .hero .wrap { padding-top: 72px; padding-bottom: 80px; } }
/* Lange Wörter (z. B. „Ansprechpartner.“) dürfen auf dem Handy nicht über den Rand laufen */
@media (max-width: 680px) {
	.hero h1 { font-size: min(2.6rem, calc((100vw - 48px) / 9.4)); }
	h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
}

/* Sections */
.section .wrap { padding-top: 104px; padding-bottom: 104px; }
.section-tint { background: var(--tint); }
@media (max-width: 680px) { .section .wrap { padding-top: 72px; padding-bottom: 72px; } }
.section-title { margin: 0 0 16px; font-size: clamp(1.9rem, 3vw, 2.5rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.intro { max-width: 680px; margin-bottom: 56px; }
.intro p { margin: 0; font-size: 18px; color: var(--muted); }

/* Leistungen */
.services { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.service-col { flex: 1 1 340px; min-width: 0; }
.col-title { display: flex; align-items: center; gap: 12px; margin: 0 0 8px; font-size: 24px; font-weight: 800; color: var(--ink); }
.col-title .bar { flex-basis: 24px; width: 24px; height: 4px; }
.service-list { list-style: none; margin: 0; padding: 0; }
.service-list li { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.icon-box { flex: 0 0 48px; height: 48px; border-radius: 8px; background: var(--tint); display: flex; align-items: center; justify-content: center; }
.icon-box svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.service-list h4 { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.service-list p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* Ablauf */
.steps-title { margin-bottom: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 40px 32px; }
.steps li { flex: 1 1 220px; min-width: 0; border-top: 3px solid var(--ink); padding-top: 24px; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--accent); color: var(--ink); font-weight: 800; font-size: 18px; border-radius: 6px; margin-bottom: 18px; }
.steps h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; color: var(--ink); }
.steps p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* Über mich */
.about { max-width: 720px; }
.about .section-title { margin-bottom: 20px; }
.about p { margin: 0 0 16px; color: var(--muted); }
.strengths { list-style: none; margin: 16px 0 32px; padding: 0; display: flex; flex-direction: column; gap: 12px; font-weight: 600; color: var(--ink); }
.strengths li { gap: 12px; }
.about .signature { margin: 0; font-size: 15px; font-weight: 600; color: var(--muted-2); }

/* Kontakt */
.contact { background: var(--ink); color: #FFFFFF; }
.contact .section-title { color: #FFFFFF; }
.contact-grid { display: flex; flex-wrap: wrap; gap: 56px 72px; }
.contact-info { flex: 1 1 360px; min-width: 0; }
.contact .lead { margin: 0 0 40px; font-size: 18px; color: var(--on-dark); }
.contact-items { display: flex; flex-direction: column; gap: 22px; margin-bottom: 44px; }
.contact-item { display: flex; align-items: center; gap: 16px; min-height: 44px; color: #FFFFFF; text-decoration: none; }
a.contact-item:hover { color: #FFFFFF; }
a.contact-item:hover .ci-value { text-decoration: underline; }
.ci-icon { flex: 0 0 44px; height: 44px; border-radius: 8px; background: var(--chip); display: flex; align-items: center; justify-content: center; }
.ci-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ci-label { display: block; font-size: 14px; color: var(--on-dark); }
.ci-value { display: block; font-size: 19px; font-weight: 700; overflow-wrap: anywhere; }
.area h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; color: #FFFFFF; }
.area p { margin: 0; font-size: 15.5px; color: var(--on-dark); max-width: 30em; }

.contact-form { flex: 1 1 440px; min-width: 0; background: #FFFFFF; color: var(--text); border-radius: 12px; padding: 36px; display: flex; flex-direction: column; gap: 18px; position: relative; }
@media (max-width: 520px) { .contact-form { padding: 24px; } }
.contact-form h3 { margin: 0 0 4px; font-size: 22px; font-weight: 800; color: var(--ink); }
.field-row { display: flex; flex-wrap: wrap; gap: 18px; }
.field { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
	width: 100%; height: 48px; padding: 0 14px;
	border: 1px solid var(--field); border-radius: 8px;
	font: inherit; font-size: 16px; color: var(--text); background: #FFFFFF;
}
.field select { padding: 0 12px; }
.field textarea { height: auto; min-height: 140px; padding: 12px 14px; resize: vertical; }
.contact-form > .field { flex: 0 0 auto; } /* verhindert die Lücke unter „Worum geht es?“ */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted-2); }
.notice { margin: 0; padding: 14px 16px; border-radius: 8px; font-size: 15px; font-weight: 600; line-height: 1.5; }
.notice-ok { background: #E8F4EA; color: #1E5128; }
.notice-err { background: #FDECEA; color: #8A1F11; }

/* Footer */
.site-footer { background: var(--ink-deep); color: var(--on-dark); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.site-footer img { height: 40px; width: auto; display: block; }
.site-footer p { margin: 0; font-size: 14px; line-height: 1.6; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 14px; font-weight: 600; }
.footer-nav a { color: #FFFFFF; text-decoration: none; padding: 10px 0; }
.footer-nav a:hover { color: #FFFFFF; text-decoration: underline; }
.footer-nav .copy { font-weight: 500; color: var(--on-dark); }

/* Unterseiten (Impressum, Datenschutz, weitere Seiten) */
.page-head { background: var(--ink); color: #FFFFFF; }
.page-head .wrap { padding-top: 72px; padding-bottom: 64px; }
.page-head h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; font-weight: 800; letter-spacing: -0.015em; color: #FFFFFF; }
.prose { max-width: 760px; padding-top: 64px; padding-bottom: 96px; }
.prose h2 { margin: 40px 0 10px; font-size: 22px; line-height: 1.3; font-weight: 800; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; color: var(--ink); }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose a { overflow-wrap: anywhere; }
.prose .meta { color: var(--muted-2); font-size: 15px; }
