/*
Theme Name: Wolf
Description: Redesign für Haustechnik Service Wolf nach Codex-Mockup – Boxed-Layout, Sanitär, Elektro, Schlüsseldienst, 24h-Notdienst.
Author: Toni
Version: 2.0.0
Text Domain: wolf
*/

/* ---------- Fonts (self-hosted, Latin-Subsets; Open Sans variabel 400-800) ---------- */
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Poppins'; src: url('fonts/Poppins-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Open Sans'; src: url('fonts/OpenSans-Var.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

/* ---------- Design-Tokens (aus Logo/Mockup) ---------- */
:root {
	--blau: #024a77;          /* Markenblau: Band, Footer, Icons */
	--blau-dunkel: #0f2d47;   /* Überschriften, Fußzeile unten */
	--blau-hell: #eaf1f7;
	--orange: #fd4504;
	--orange-dark: #d93a02;
	--grau-bg: #f3f4f6;       /* Hero-/Kontakt-Fläche */
	--ink: #253746;
	--muted: #5c6b78;
	--line: #e3e8ed;
	--radius: 12px;
	--shadow: 0 12px 32px rgba(2, 51, 82, .12);
	--shadow-soft: 0 4px 16px rgba(2, 51, 82, .08);
}

/* ---------- Basis + Boxed-Rahmen ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	font-family: 'Open Sans', system-ui, sans-serif;
	font-size: 16.5px;
	line-height: 1.7;
	color: var(--ink);
	background: #f2f5f8 url('images/hintergrund.webp?v=2') center top / cover no-repeat fixed;
}
.box {
	max-width: 1320px; margin: 0 auto; background: #fff;
	box-shadow: 0 0 46px rgba(15, 45, 71, .22);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blau); }
h1, h2, h3, h4 { font-family: 'Poppins', 'Open Sans', sans-serif; line-height: 1.22; color: var(--blau-dunkel); }
h1 { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; }
h2 { font-size: clamp(25px, 2.9vw, 34px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
:target, [id] { scroll-margin-top: 96px; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 30px; }
.section { padding: 84px 0; }
.kicker {
	display: block; font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 13.5px;
	letter-spacing: .14em; text-transform: uppercase; color: var(--orange);
	margin-bottom: 10px;
}
.mittig { text-align: center; }
.sektion-kopf { max-width: 760px; margin: 0 auto 44px; }
.sektion-kopf p { color: var(--muted); margin: 14px 0 0; }
.ico { width: 24px; height: 24px; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15.5px;
	padding: 13px 24px; border-radius: 8px; text-decoration: none;
	border: 2px solid transparent; cursor: pointer; transition: background .18s, color .18s, border-color .18s;
}
.btn-orange { background: var(--orange); color: #fff; box-shadow: 0 8px 18px rgba(253, 69, 4, .28); }
.btn-orange:hover { background: var(--orange-dark); }
.btn-kontur { border-color: #c7d2db; color: var(--blau-dunkel); background: #fff; }
.btn-kontur:hover { border-color: var(--blau); color: var(--blau); }
.btn-kontur-blau { border-color: var(--blau); color: var(--blau); background: transparent; }
.btn-kontur-blau:hover { background: var(--blau); color: #fff; }
.btn .ico { width: 18px; height: 18px; }

/* ---------- Topbar (orange) ---------- */
.topbar { background: var(--orange); color: #fff; font-size: 14px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.topbar-links, .topbar-rechts { display: flex; align-items: center; gap: 24px; }
.topbar .ico { width: 15px; height: 15px; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); }
.site-header.scrolled { box-shadow: var(--shadow-soft); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 13px 0; }
.site-logo { display: flex; align-items: center; text-decoration: none; }
.site-logo img { height: 54px; width: auto; }

.hauptnav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.hauptnav > ul > li { position: relative; }
.hauptnav a {
	display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 8px;
	font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 15px;
	color: var(--ink); text-decoration: none; transition: color .15s, background .15s;
}
.hauptnav a:hover { color: var(--blau); background: var(--blau-hell); }
.header-btn { white-space: nowrap; }

.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; color: var(--blau-dunkel); }
.nav-burger svg { width: 28px; height: 28px; }
.hauptnav a.nav-tel-mobil { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--grau-bg); overflow: hidden; }
.hero-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); align-items: center; min-height: 540px; }
.hero-text { padding: 72px 0 150px; position: relative; z-index: 2; max-width: 560px; }
.hero-text h1 { margin-bottom: 18px; }
.hero-sub { font-size: 17.5px; color: var(--muted); margin-bottom: 28px; max-width: 470px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--blau-dunkel); }
.hero-trust .ico { width: 17px; height: 17px; color: var(--orange); }
.hero-foto { position: absolute; inset: 0; }
.hero-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 100% 32%; }
.hero-foto::before {
	content: ''; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(243, 244, 246, .55) 0%, rgba(243, 244, 246, 0) 52%);
	z-index: 1;
}

/* ---------- USP-Karte (überlappt Hero) ---------- */
.usp-wrap { position: relative; z-index: 5; margin-top: -92px; padding-bottom: 8px; }
.usp-karte {
	background: #fff; border-radius: 14px; box-shadow: var(--shadow);
	display: grid; grid-template-columns: repeat(4, 1fr); padding: 26px 6px;
}
.usp-item { display: flex; align-items: flex-start; gap: 14px; padding: 6px 24px; min-width: 0; }
.usp-item + .usp-item { border-left: 1px solid var(--line); }
.usp-icon { color: var(--blau); margin-top: 3px; }
.usp-icon .ico { width: 30px; height: 30px; }
.usp-item.notdienst .usp-icon { color: var(--orange); }
.usp-item h3 { font-size: 15.5px; margin-bottom: 3px; }
.usp-item p { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin: 0; }

/* ---------- Leistungen ---------- */
.l-karten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.l-karte {
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
	box-shadow: var(--shadow-soft); display: flex; flex-direction: column;
	transition: transform .18s, box-shadow .18s;
}
.l-karte:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.l-bild { position: relative; }
.l-bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
/* Bildausschnitte der quadratischen Fotos: Gesichter/Motiv im Bild halten */
#sanitaer .l-bild img { object-position: 50% 22%; }
#elektro .l-bild img { object-position: 50% 10%; }
#schluesseldienst .l-bild img { object-position: 50% 38%; }
.l-badge {
	position: absolute; top: 14px; left: 14px; width: 52px; height: 52px; border-radius: 50%;
	background: #fff; color: var(--blau); box-shadow: var(--shadow-soft);
	display: flex; align-items: center; justify-content: center;
}
.l-badge .ico { width: 24px; height: 24px; }
.l-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.l-body h3 { margin-bottom: 8px; }
.l-body p { color: var(--muted); font-size: 15px; }
.l-link {
	margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
	font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14.5px;
	color: var(--orange); text-decoration: none;
}
.l-link:hover { color: var(--orange-dark); }
.l-link .ico { width: 16px; height: 16px; transition: transform .15s; }
.l-link:hover .ico { transform: translateX(3px); }

/* ---------- Blaues Band „Handwerk mit Verantwortung" ---------- */
.band { background: var(--blau); color: #fff; padding: 64px 0 58px; }
.band h2 { color: #fff; text-align: center; margin-bottom: 44px; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr) 1.35fr; align-items: start; }
.band-item { text-align: center; padding: 4px 22px; }
.band-item + .band-item, .band-notdienst { border-left: 1px solid rgba(255, 255, 255, .22); }
.band-item .ico { width: 34px; height: 34px; color: #fff; margin: 0 auto 12px; display: block; }
.band-item h3 { color: #fff; font-size: 16px; margin-bottom: 6px; }
.band-item p { color: #c3d7e6; font-size: 13.5px; line-height: 1.55; margin: 0; }
.band-notdienst { text-align: center; padding: 0 24px; }
.band-247 {
	font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 52px; line-height: 1;
	color: var(--orange); display: inline-flex; align-items: center; gap: 8px;
}
.band-247 .ico { width: 40px; height: 40px; color: var(--orange); }
.band-notdienst-titel { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 20px; color: var(--orange); margin: 4px 0 10px; }
.band-notdienst p { color: #c3d7e6; font-size: 14px; margin: 0; }

/* ---------- Über uns ---------- */
.ueber-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 56px; align-items: center; }
.ueber-bild { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.ueber-bild img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.ueber-text h2 { margin-bottom: 16px; }
.ueber-text p { color: var(--muted); }
.ueber-text .btn { margin-top: 10px; }

/* ---------- Kontakt ---------- */
.kontakt { background: var(--grau-bg); }
.kontakt-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.kontakt-info h2 { margin-bottom: 14px; }
.kontakt-info > p { color: var(--muted); margin-bottom: 28px; max-width: 440px; }
.kontakt-wege { list-style: none; display: grid; gap: 18px; }
.kontakt-weg { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.kontakt-weg .ico { color: var(--orange); width: 26px; height: 26px; }
.kontakt-weg-tel { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 27px; color: var(--orange); text-decoration: none; }
.kontakt-weg-tel:hover { color: var(--orange-dark); }
.kontakt-weg span, .kontakt-weg a:not(.kontakt-weg-tel) { font-size: 16px; font-weight: 600; color: var(--blau-dunkel); text-decoration: none; }
.kontakt-weg a:hover { color: var(--blau); }
.kontakt-weg small { display: block; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.formular-karte { background: #fff; border-radius: 14px; box-shadow: var(--shadow); padding: 34px; }
.form-meldung { border-radius: 8px; padding: 13px 16px; margin-bottom: 16px; font-weight: 600; font-size: 14.5px; }
.form-meldung.ok { background: #e8f5e4; color: #2f6323; }
.form-meldung.fehler { background: #fdeaea; color: #94272b; }
.form-zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-feld { margin-bottom: 14px; }
.form-feld label { display: block; font-weight: 600; font-size: 13.5px; margin-bottom: 5px; color: var(--blau-dunkel); }
.form-feld input, .form-feld textarea {
	width: 100%; font: inherit; font-size: 15px; color: var(--ink);
	border: 1px solid #cfd8df; border-radius: 8px; padding: 11px 13px;
	background: #fff; transition: border-color .15s, box-shadow .15s;
}
.form-feld input:focus, .form-feld textarea:focus {
	outline: none; border-color: var(--blau); box-shadow: 0 0 0 3px rgba(2, 74, 119, .12);
}
.form-feld textarea { min-height: 120px; resize: vertical; }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-senden { width: 100%; }
/* Contact Form 7 an das Kartendesign angleichen */
.wpcf7 .form-feld .wpcf7-form-control-wrap { display: block; }
.wpcf7-not-valid-tip { display: block; font-size: 13px; color: #94272b; margin-top: 5px; }
.wpcf7 form .wpcf7-response-output {
	border: 0; border-radius: 8px; padding: 13px 16px; margin: 16px 0 0;
	font-weight: 600; font-size: 14.5px; background: #fdeaea; color: #94272b;
}
.wpcf7 form.sent .wpcf7-response-output { background: #e8f5e4; color: #2f6323; }
.wpcf7-spinner { display: block; margin: 8px auto 0; }
.form-fuss {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	font-size: 12.5px; color: var(--muted); margin: 14px 0 0; text-align: center;
}
.form-fuss .ico { width: 14px; height: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blau); color: #c3d7e6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr .9fr 1.1fr; gap: 40px; padding: 58px 0 44px; }
.footer-marke img { height: 62px; width: auto; margin-bottom: 16px; }
.footer-marke p { font-size: 14.5px; margin: 0; }
.site-footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 600; }
.footer-liste { list-style: none; display: grid; gap: 10px; font-size: 14.5px; }
.footer-liste a { color: #c3d7e6; text-decoration: none; display: inline-flex; align-items: center; gap: 9px; }
.footer-liste a:hover { color: #fff; }
.footer-liste .ico { width: 15px; height: 15px; color: var(--orange); }
.footer-schluss {
	position: relative;
	background: #01183b url('images/pacman.webp') right center / auto 68% no-repeat;
	padding: 16px 0; font-size: 13.5px;
}
.pac-spruch {
	position: absolute; right: 132px; top: 50%; transform: translateY(-50%);
	font-size: 11.5px; font-style: italic; color: #6d84a8; white-space: nowrap;
}
@media (max-width: 1120px) {
	.footer-schluss { background-image: none; }
	.pac-spruch { display: none; }
}
.footer-schluss-inner { display: flex; justify-content: center; align-items: center; gap: 8px 22px; flex-wrap: wrap; color: #9db4c6; }
.footer-schluss a { color: #9db4c6; text-decoration: none; }
.footer-schluss a:hover { color: #fff; }

/* ---------- Sticky-Tel (mobil) ---------- */
.sticky-cta {
	position: fixed; right: 20px; bottom: 20px; z-index: 70;
	display: none; align-items: center; justify-content: center;
	width: 58px; height: 58px; border-radius: 50%;
	background: var(--orange); color: #fff;
	box-shadow: 0 12px 26px rgba(253, 69, 4, .4);
}
.sticky-cta .ico { width: 24px; height: 24px; }

/* ---------- Unterseiten (Impressum/Datenschutz) ---------- */
.seiten-hero { background: var(--blau); color: #fff; padding: 56px 0; }
.seiten-hero h1 { color: #fff; font-size: clamp(28px, 3.4vw, 38px); }
.seiten-hero p { color: #c3d7e6; margin: 8px 0 0; }
.content-schmal { max-width: 820px; margin: 0 auto; padding: 56px 30px 84px; }
.content-schmal h2 { font-size: 23px; margin: 38px 0 12px; }
.content-schmal h3 { font-size: 18px; margin: 26px 0 10px; }
.content-schmal p, .content-schmal li { color: var(--muted); }
.content-schmal ul { margin: 0 0 1em 1.3em; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.band-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 0; }
	.band-item:nth-child(3) { border-left: 0; }
	.band-notdienst { grid-column: 1 / -1; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 26px; }
	.ueber-grid, .kontakt-grid { grid-template-columns: 1fr; gap: 40px; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.usp-karte { grid-template-columns: 1fr 1fr; row-gap: 18px; }
	.usp-item:nth-child(3) { border-left: 0; }
}
@media (max-width: 991px) {
	.topbar-rechts { display: none; }
	.hauptnav {
		display: none; position: absolute; top: 100%; left: 0; right: 0;
		background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
		padding: 12px 26px 20px;
	}
	.hauptnav.offen { display: block; }
	.hauptnav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
	.hauptnav a { padding: 11px 10px; font-size: 16.5px; }
	.header-btn { display: none; }
	.nav-burger { display: block; }
	.hauptnav a.nav-tel-mobil {
		display: flex; justify-content: center; margin-top: 12px; padding: 13px 24px;
		background: var(--orange); color: #fff; border-radius: 8px;
	}
	.hauptnav a.nav-tel-mobil:hover { background: var(--orange-dark); color: #fff; }
	.hero-inner { grid-template-columns: 1fr; min-height: 0; }
	.hero-text { padding: 52px 0 44px; max-width: none; }
	.hero-foto { position: relative; inset: auto; width: auto; height: 320px; margin: 0; }
	.hero-foto::before { display: none; }
	.usp-wrap { margin-top: 28px; }
	.sticky-cta { display: flex; }
}
@media (max-width: 640px) {
	.section { padding: 60px 0; }
	.topbar-links { width: 100%; justify-content: center; gap: 12px; }
	.topbar-item { white-space: nowrap; }
	.topbar-links .topbar-item:nth-child(2) { display: none; }
	.usp-karte { grid-template-columns: 1fr; }
	.usp-item + .usp-item { border-left: 0; border-top: 1px solid var(--line); padding-top: 18px; }
	.l-karten { grid-template-columns: 1fr; }
	.band-grid { grid-template-columns: 1fr; }
	.band-item + .band-item { border-left: 0; }
	.band-item { border-top: 1px solid rgba(255, 255, 255, .22); padding-top: 22px; }
	.band-item:first-child { border-top: 0; }
	.form-zeile { grid-template-columns: 1fr; gap: 0; }
	.footer-grid { grid-template-columns: 1fr; gap: 30px; }
	.formular-karte { padding: 24px 20px; }
	.kontakt-weg-tel { font-size: 23px; }
}
