/*
Theme Name: Novoltis
Theme URI: https://novoltis.de
Author: Novoltis GmbH
Description: Individuelles Theme für die Novoltis GmbH, Düsseldorf – Elektrofachbetrieb für Gebäudetechnik, Brand- und Einbruchmeldetechnik sowie Gebäudeleittechnik. Legt bei Aktivierung alle Seiten inkl. Unterseiten automatisch an.
Version: 1.0.0
Requires at least: 6.3
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: novoltis
*/

/* ==========================================================================
   Tokens
   ========================================================================== */

:root {
	--navy-950: #041a38;
	--navy-900: #062754;
	--navy-800: #0c3468;
	--navy-700: #164a8a;
	--ink: #0a1a33;
	--text: #3a4a60;
	--muted: #6a7a8d;
	--line: #e2e7ee;
	--line-dark: rgba(255, 255, 255, .12);
	--bg: #ffffff;
	--bg-alt: #f2f6fb;
	--accent: #36a5e9;
	--accent-600: #1f8fd6;
	--accent-ink: #041a38;
	--accent-soft: #e5f3fd;
	--success: #157f4a;
	--error: #b42318;

	--font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--radius: 10px;
	--radius-lg: 16px;
	--shadow: 0 1px 2px rgba(6, 39, 84, .06), 0 8px 24px rgba(6, 39, 84, .06);
	--shadow-lg: 0 2px 4px rgba(6, 39, 84, .06), 0 20px 48px rgba(6, 39, 84, .12);
	--container: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(64px, 9vw, 112px);
}

/* ==========================================================================
   Base
   ========================================================================== */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
	color: var(--ink);
	line-height: 1.15;
	letter-spacing: -.02em;
	margin: 0 0 .5em;
	font-weight: 700;
	text-wrap: balance;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); }
h3 { font-size: 1.15rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 16px; }

.icon { width: 20px; height: 20px; flex: none; }

/* ==========================================================================
   Buttons & small components
   ========================================================================== */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 20px; border-radius: var(--radius); border: 1.5px solid transparent;
	font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer;
	transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
	white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(2px); }
.btn-lg { padding: 15px 24px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-600); color: var(--accent-ink); box-shadow: 0 6px 18px rgba(54, 165, 233, .3); }
.btn-outline { border-color: var(--navy-900); color: var(--navy-900); background: transparent; }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-ghost-light { border-color: rgba(255, 255, 255, .3); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .06); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
	color: var(--navy-700); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--accent); }
.eyebrow-light { color: rgba(255, 255, 255, .75); }

.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.6; }

.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy-900); text-decoration: none; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
a:hover .link-arrow .icon, .link-arrow:hover .icon { transform: translateX(3px); }

.icon-tile {
	display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none;
	border-radius: 12px; background: var(--navy-900); color: var(--accent);
}
.icon-tile .icon { width: 24px; height: 24px; }
.icon-tile-dark { background: rgba(255, 255, 255, .08); }

/* ==========================================================================
   Topbar & header
   ========================================================================== */

.topbar { background: var(--navy-950); color: rgba(255, 255, 255, .78); font-size: 13.5px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(54, 165, 233, .18); }
.topbar-contact { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.topbar-contact a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; }
.topbar-contact a:hover { color: #fff; }
.topbar-contact .icon { width: 15px; height: 15px; color: var(--accent); }

.site-header {
	position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(6, 39, 84, .06); }
.header-inner { display: flex; align-items: center; gap: 32px; min-height: 78px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-900); }
.logo-mark { width: 40px; height: 40px; color: var(--navy-900); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 20px; letter-spacing: .14em; color: var(--ink); }
.brand-text small { font-size: 11.5px; letter-spacing: .04em; color: var(--muted); margin-top: 3px; }
.brand-light .logo-mark { color: #fff; }
.brand-light .brand-text strong { color: #fff; }
.brand-light .brand-text small { color: rgba(255, 255, 255, .6); }

.primary-nav { margin-left: auto; }
.nav-list { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; display: flex; align-items: center; }
.nav-list > li > a {
	display: block; padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: 15.5px;
	color: var(--ink); text-decoration: none; transition: background .15s, color .15s;
}
.nav-list > li > a:hover { background: var(--bg-alt); }
.nav-list > .current-menu-item > a, .nav-list > .current-menu-ancestor > a { color: var(--navy-700); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.submenu-toggle { display: none; }

.sub-menu {
	position: absolute; top: calc(100% + 10px); left: -12px; width: 380px; list-style: none; margin: 0; padding: 10px;
	background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.menu-item-has-children:hover > .sub-menu, .menu-item-has-children:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: var(--radius); text-decoration: none; color: var(--text); }
.sub-menu a:hover, .sub-menu .current-menu-item a { background: var(--bg-alt); }
.sub-menu .icon { width: 22px; height: 22px; color: var(--navy-700); margin-top: 2px; }
.sub-menu strong { display: block; color: var(--ink); font-size: 15px; }
.sub-menu small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; }

.nav-cta-mobile { display: none; }
.header-cta { flex: none; }

.nav-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff;
	border-radius: var(--radius); color: var(--ink); cursor: pointer; place-items: center;
}
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-open { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
	position: relative; overflow: hidden; color: rgba(255, 255, 255, .82);
	background: radial-gradient(1200px 500px at 85% -10%, rgba(22, 74, 138, .9), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950));
}
.hero-grid-bg {
	position: absolute; inset: 0; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
	-webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 20%, transparent 75%);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.hero h1 { color: #fff; }
.hero .hl { color: var(--accent); }
.hero .lead { color: rgba(255, 255, 255, .78); max-width: 620px; }
.badge {
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin-bottom: 24px;
	border: 1px solid var(--line-dark); border-radius: 999px; background: rgba(255, 255, 255, .04);
	font-size: 13.5px; font-weight: 600; color: #fff;
}
.badge .icon { width: 16px; height: 16px; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; margin: 0; padding: 0; font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points .icon { width: 18px; height: 18px; color: var(--accent); }

.hero-panel {
	background: rgba(255, 255, 255, .04); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
	padding: 12px; backdrop-filter: blur(6px);
}
.hero-panel-title { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; color: rgba(255, 255, 255, .55); margin: 8px 12px 8px; }
.hero-panel ul { list-style: none; margin: 0; padding: 0; }
.hero-panel a {
	display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 12px;
	color: #fff; text-decoration: none; transition: background .2s;
}
.hero-panel a:hover { background: rgba(255, 255, 255, .06); }
.hero-panel li + li a { border-top: 1px solid var(--line-dark); border-radius: 0 0 12px 12px; }
.hero-panel li + li a:hover { border-radius: 12px; }
.hero-panel strong { display: block; font-size: 15.5px; }
.hero-panel small { display: block; font-size: 13px; color: rgba(255, 255, 255, .6); line-height: 1.4; margin-top: 2px; }
.hero-panel .chev { margin-left: auto; color: rgba(255, 255, 255, .4); width: 18px; height: 18px; transition: transform .2s, color .2s; }
.hero-panel a:hover .chev { color: var(--accent); transform: translateX(3px); }

/* Norms strip */
.norms { border-bottom: 1px solid var(--line); background: #fff; }
.norms-inner { display: flex; align-items: center; gap: 32px; min-height: 76px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.norms p { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.norms ul { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 0; padding: 0; }
.norms li { font-weight: 700; color: var(--navy-800); font-size: 15px; letter-spacing: .01em; }

/* ==========================================================================
   Page hero (Unterseiten)
   ========================================================================== */

.page-hero {
	position: relative; color: rgba(255, 255, 255, .8); overflow: hidden;
	background: radial-gradient(900px 400px at 90% 0%, rgba(22, 74, 138, .85), transparent 60%), linear-gradient(160deg, var(--navy-900), var(--navy-950));
	padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 88px);
}
.page-hero::after {
	content: ""; position: absolute; right: -60px; bottom: -60px; width: 320px; height: 320px; opacity: .07;
	background: var(--accent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.page-hero h1 { color: #fff; max-width: 860px; }
.page-hero .lead { max-width: 720px; margin: 0; color: rgba(255, 255, 255, .75); }
.page-hero .eyebrow { color: rgba(255, 255, 255, .7); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 28px; color: rgba(255, 255, 255, .5); }
.breadcrumb a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: #fff; }

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding: var(--section) 0; }
.section-tight { padding-top: 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p:last-child { margin-bottom: 0; }
.section-head-split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; }
.section-foot { margin: 40px 0 0; }

/* Service cards */
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service-card {
	position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg);
	background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text);
	transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service-card::after { content: ""; position: absolute; left: 28px; right: 28px; top: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s; border-radius: 0 0 3px 3px; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; color: var(--text); }
.service-card:hover::after { transform: scaleX(1); }
.service-card .icon-tile { margin-bottom: 22px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { font-size: 15.5px; flex: 1; }
.service-card .link-arrow { margin-top: 8px; font-size: 15px; }

/* Process */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process li { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 26px 24px; border: 1px solid var(--line); }
.process li:not(:last-child)::after {
	content: ""; position: absolute; top: 44px; right: -17px; width: 18px; height: 2px; background: var(--accent); z-index: 1;
}
.process-num { display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent-ink); background: var(--accent); border-radius: 6px; padding: 3px 8px; margin-bottom: 16px; letter-spacing: .04em; }
.process h3 { margin-bottom: 8px; }
.process p { font-size: 15px; margin: 0; }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-top { align-items: start; }
.media-card { position: relative; }
.media-visual {
	aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; display: grid; place-items: center; color: rgba(255, 255, 255, .7);
	background: radial-gradient(500px 300px at 30% 20%, var(--navy-700), transparent 70%), linear-gradient(150deg, var(--navy-800), var(--navy-950));
}
.schematic { width: 82%; }
.schematic .node { color: var(--accent); stroke: var(--accent); }
.schematic .wire { stroke: var(--accent); stroke-dasharray: 6 6; animation: flow 3s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -48; } }
.media-stat {
	position: absolute; right: -20px; bottom: -28px; max-width: 260px; display: flex; gap: 14px; align-items: center;
	background: #fff; border-radius: var(--radius-lg); padding: 18px 22px; box-shadow: var(--shadow-lg);
}
.media-stat strong { font-size: 44px; line-height: 1; color: var(--navy-900); }
.media-stat span { font-size: 14px; line-height: 1.4; color: var(--text); font-weight: 500; }

.check-list { list-style: none; margin: 24px 0 32px; padding: 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; }
.check-list .icon { width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--accent-soft); color: var(--navy-900); margin-top: 2px; }
.check-list strong { color: var(--ink); }

/* Industries */
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.industry { background: #fff; padding: 32px; transition: background .2s; }
.industry:hover { background: #fcfdfe; }
.industry .icon { width: 30px; height: 30px; color: var(--navy-700); margin-bottom: 18px; }
.industry h2, .industry h3 { font-size: 1.15rem; margin-bottom: 8px; }
.industry p { font-size: 15.5px; margin: 0; }
.industry-grid-lg .industry { padding: 40px; }

.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience { background: #fff; border-radius: var(--radius-lg); padding: 32px; border-top: 3px solid var(--accent); box-shadow: var(--shadow); }
.audience p { margin: 0; font-size: 15.5px; }

/* Service rows (Leistungsübersicht) */
.service-rows { display: grid; gap: 20px; }
.service-row {
	display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px 56px; padding: clamp(28px, 4vw, 44px);
	border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
}
.service-row-head .icon-tile { margin-bottom: 20px; }
.service-row h2 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.tag-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: center; }
.tag-list li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--bg-alt); border-radius: var(--radius); font-weight: 600; color: var(--ink); font-size: 15.5px; }
.tag-list .icon { width: 18px; height: 18px; color: var(--navy-700); }
.tag-list-inline { grid-template-columns: repeat(2, 1fr); margin-bottom: 48px; }

/* Detail page */
.with-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.content h2 { margin-top: 8px; margin-bottom: 24px; }
.intro { font-size: 1.2rem; color: var(--ink); line-height: 1.6; margin-bottom: 40px; padding-left: 20px; border-left: 3px solid var(--accent); }
.entry { margin-bottom: 40px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-bottom: 56px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.feature-icon { width: 26px; height: 26px; padding: 5px; border-radius: 8px; background: var(--navy-900); color: var(--accent); margin-bottom: 14px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { font-size: 15px; margin: 0; }

.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--navy-700); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 20px 20px; margin: 0; font-size: 15.5px; }

.sidebar { position: sticky; top: 110px; display: grid; gap: 16px; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: #fff; }
.side-card-dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); border: 0; color: rgba(255, 255, 255, .75); }
.side-card-dark h2 { color: #fff; font-size: 1.35rem; }
.side-card-dark .btn { margin-top: 8px; }
.side-phone { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 16px; color: #fff; text-decoration: none; font-weight: 600; }
.side-phone .icon { width: 18px; height: 18px; color: var(--accent); }
.side-title { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.side-links a:hover { background: var(--bg-alt); }
.side-links .is-current a { background: var(--accent-soft); }
.side-links .icon { color: var(--navy-700); }
.side-note { display: flex; gap: 12px; background: var(--bg-alt); border: 0; padding: 20px; }
.side-note .icon { color: var(--navy-700); margin-top: 3px; }
.side-note p { margin: 0; font-size: 14.5px; }

/* About */
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value { padding: 28px; border-radius: var(--radius-lg); background: var(--bg-alt); }
.value .icon { width: 28px; height: 28px; color: var(--navy-700); margin-bottom: 14px; }
.value p { margin: 0; font-size: 15.5px; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 0; }
.facts div { background: #fff; border-radius: var(--radius-lg); padding: 28px; border-left: 3px solid var(--accent); }
.facts dt { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.facts dd { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* Career */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.benefits li { display: flex; align-items: center; gap: 12px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); font-weight: 600; color: var(--ink); }
.benefits .icon { width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); }
.jobs { display: grid; gap: 16px; }
.job { display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff; border-radius: var(--radius-lg); padding: 28px 32px; box-shadow: var(--shadow); }
.job h3 { margin-bottom: 4px; }
.job-meta { font-size: 14px; font-weight: 600; color: var(--navy-700); margin-bottom: 8px; }
.job p:last-child { margin: 0; font-size: 15.5px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-info { display: grid; gap: 16px; }
.b2b-notice { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); background: var(--accent-soft); border: 1px solid #b6ddf6; margin-bottom: 28px; }
.b2b-notice .icon { color: var(--accent-ink); margin-top: 3px; }
.b2b-notice p { margin: 0; color: var(--ink); font-size: 15.5px; }
.form-notice { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 24px; font-weight: 600; }
.form-notice-success { background: #e8f6ee; color: var(--success); }
.form-notice-error { background: #fdecea; color: var(--error); }
.contact-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form input[type="tel"], .contact-form select, .contact-form textarea {
	width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff;
	font: 400 16px/1.4 var(--font); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(22, 74, 138, .12); }
.contact-form .checkbox { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--text); }
.contact-form .checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--navy-900); flex: none; }
.contact-form button { justify-self: start; margin-top: 4px; }
.contact-info .footer-contact a, .contact-info .footer-contact span { color: rgba(255, 255, 255, .85); }

/* Prose */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose h2:first-child { margin-top: 0; }

/* CTA band */
.cta-band { background: var(--accent); color: var(--accent-ink); position: relative; overflow: hidden; }
.cta-band::before {
	content: ""; position: absolute; inset: 0; opacity: .12;
	background-image: radial-gradient(var(--accent-ink) 1px, transparent 1px); background-size: 18px 18px;
	mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000);
}
.cta-inner { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px 64px; align-items: center; padding-top: clamp(56px, 7vw, 88px); padding-bottom: clamp(56px, 7vw, 88px); }
.cta-band h2 { color: var(--accent-ink); }
.cta-band p { margin: 0; font-size: 1.05rem; color: rgba(4, 26, 56, .8); }
.cta-band .eyebrow { color: var(--accent-ink); }
.cta-band .eyebrow::before { background: var(--accent-ink); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.cta-band .btn-primary { background: var(--navy-900); color: #fff; }
.cta-band .btn-primary:hover { background: var(--navy-950); box-shadow: 0 8px 24px rgba(4, 26, 56, .3); }
.cta-band .btn-ghost-light { border-color: rgba(4, 26, 56, .35); color: var(--accent-ink); }
.cta-band .btn-ghost-light:hover { border-color: var(--accent-ink); background: rgba(255, 255, 255, .2); }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--navy-950); color: rgba(255, 255, 255, .65); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-top: 72px; padding-bottom: 56px; }
.footer-brand p { margin-top: 20px; max-width: 340px; }
.footer-b2b { display: flex; gap: 10px; align-items: flex-start; color: rgba(255, 255, 255, .85); font-weight: 500; }
.footer-b2b .icon { color: var(--accent); width: 18px; height: 18px; margin-top: 3px; }
.footer-title { font-size: 13px; color: #fff; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 18px; }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.footer-bottom { border-top: 1px solid var(--line-dark); }
.footer-bottom-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; padding-bottom: 22px; font-size: 14px; }
.footer-bottom p { margin: 0; }
.footer-bottom ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.footer-bottom a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }

/* WordPress core */
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.wp-block-image img { border-radius: var(--radius-lg); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1140px) {
	.service-grid { grid-template-columns: repeat(2, 1fr); }
	.process { grid-template-columns: repeat(3, 1fr); }
	.process li::after { display: none; }
	.header-cta { display: none; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
	.nav-toggle { display: grid; }
	.primary-nav {
		position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - 72px); height: calc(100dvh - 72px); background: #fff; padding: 16px var(--gutter) 32px; overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .2s, visibility .2s;
		border-top: 1px solid var(--line);
	}
	.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	.nav-list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav-list > li > a { flex: 1; padding: 16px 4px; font-size: 18px; }
	.nav-list > .current-menu-item > a { box-shadow: none; }
	.submenu-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; background: none; color: var(--ink); cursor: pointer; }
	.submenu-toggle .icon { transition: transform .2s; }
	.is-open > .submenu-toggle .icon { transform: rotate(180deg); }
	.sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; display: none; box-shadow: none; border: 0; padding: 0 0 12px; }
	.sub-menu::before { display: none; }
	.is-open > .sub-menu { display: block; }
	.nav-cta-mobile { display: flex; margin-top: 24px; }

	.hero-inner, .split, .section-head-split, .with-sidebar, .contact-grid, .cta-inner, .service-row { grid-template-columns: 1fr; }
	.sidebar { position: static; }
	.industry-grid, .audience-grid, .benefits { grid-template-columns: repeat(2, 1fr); }
	.media-stat { right: 16px; }
	.split-media { margin-bottom: 24px; }
}

@media (max-width: 640px) {
	body { font-size: 16px; }
	.topbar-contact li:last-child { display: none; }
	.topbar-b2b { font-size: 12.5px; }
	.header-inner { min-height: 72px; }
	.brand-text small { display: none; }
	.service-grid, .process, .industry-grid, .audience-grid, .benefits, .feature-grid, .values, .facts, .form-row, .tag-list-inline, .footer-grid { grid-template-columns: 1fr; }
	.hero-actions .btn { width: 100%; }
	.job { flex-direction: column; align-items: flex-start; padding: 24px; }
	.media-stat { position: relative; right: auto; bottom: auto; margin: -32px 16px 0; }
	.norms-inner { gap: 12px; }
}

@media (max-width: 420px) {
	.topbar-contact { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   Bannerbilder (Beitragsbild oder Platzhalter) unter Navy-Overlay
   ========================================================================== */

.banner-media { position: absolute; inset: 0; z-index: 0; }
.banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: center right; }
.banner-media::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(90deg, rgba(4, 26, 56, .95) 0%, rgba(6, 39, 84, .86) 38%, rgba(6, 39, 84, .5) 70%, rgba(6, 39, 84, .3) 100%);
}
.hero .hero-grid-bg { z-index: 1; }
.hero .hero-inner, .page-hero > .container { position: relative; z-index: 2; }

.page-hero.has-image { padding: clamp(48px, 7vw, 88px) 0 clamp(64px, 9vw, 120px); }
.page-hero.has-image::after { display: none; }
.page-hero.has-image .banner-media::after {
	background: linear-gradient(90deg, rgba(4, 26, 56, .94) 0%, rgba(6, 39, 84, .8) 45%, rgba(6, 39, 84, .35) 100%);
}
.page-hero.has-image::before {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; z-index: 2;
	background: linear-gradient(90deg, var(--accent) 0 120px, transparent 120px);
}

@media (max-width: 960px) {
	.banner-media::after, .page-hero.has-image .banner-media::after {
		background: linear-gradient(180deg, rgba(6, 39, 84, .78) 0%, rgba(4, 26, 56, .92) 100%);
	}
}

/* ==========================================================================
   Illustration „Vernetzte Gebäudetechnik“
   ========================================================================== */

.eco {
	--c-elektrotechnik: #36a5e9;
	--c-brandmeldetechnik: #e5484d;
	--c-einbruchmeldetechnik: #6e56cf;
	--c-gebaeudeleittechnik: #12a594;
}
.section-eco { background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.eco-figure {
	margin: 0; padding: clamp(12px, 3vw, 40px); border-radius: var(--radius-lg); background: #fff;
	border: 1px solid var(--line); box-shadow: var(--shadow);
}
.eco-svg { width: 100%; height: auto; font-family: var(--font); overflow: visible; }

.eco-hatch { stroke: #d6dde6; stroke-width: 1; }
.eco-ground { stroke: var(--navy-800); stroke-width: 2; }
.eco-basement { fill: #eef2f6; stroke: var(--navy-900); stroke-width: 2; }
.eco-building { fill: #fbfcfd; stroke: var(--navy-900); stroke-width: 3; }
.eco-roof { stroke: var(--navy-900); stroke-width: 6; stroke-linecap: round; }
.eco-shaft { fill: #f0f3f7; stroke: #c9d3de; stroke-dasharray: 4 4; }
.eco-slab { fill: var(--navy-900); }
.eco-floor { font-size: 12px; font-weight: 700; fill: var(--muted); letter-spacing: .06em; }
.eco-tag { font-size: 10px; font-weight: 700; fill: var(--ink); letter-spacing: .03em; }
.eco-tag-muted { fill: var(--muted); font-weight: 600; }
.eco-ext { font-size: 11px; font-weight: 600; fill: var(--text); }

.eco-furniture rect, .eco-furniture path { fill: #dfe5ec; stroke: none; }
.eco-furniture path { stroke: #cfd7e0; stroke-width: 2; }
.eco-furniture .eco-screen { fill: #c5cfda; }
.eco-furniture .eco-person { fill: #b9c4d1; }
.eco-furniture .eco-door { fill: #e8edf3; stroke: var(--navy-800); stroke-width: 1.5; }

.sys { --c: var(--navy-700); transition: opacity .25s; }
.sys-elektrotechnik { --c: var(--c-elektrotechnik); }
.sys-brandmeldetechnik { --c: var(--c-brandmeldetechnik); }
.sys-einbruchmeldetechnik { --c: var(--c-einbruchmeldetechnik); }
.sys-gebaeudeleittechnik { --c: var(--c-gebaeudeleittechnik); }

.eco-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eco-thin { stroke-width: 1.5; }
.eco-link { stroke-dasharray: 3 3; }
.eco-line.flow { stroke-width: 2.5; stroke-dasharray: 7 5; animation: eco-flow 1.6s linear infinite; }
@keyframes eco-flow { to { stroke-dashoffset: -24; } }
.eco-device { fill: #fff; stroke: var(--c); stroke-width: 2; }
.eco-solid, .eco-dot, .eco-fill { fill: var(--c); }
.eco-fill { stroke: none; }
.eco-dot { stroke: #fff; stroke-width: 1.5; }
.eco-glow { fill: var(--c); opacity: .12; }
.eco-fan { stroke-dasharray: 4 3; transform-box: fill-box; transform-origin: center; animation: eco-spin 3s linear infinite; }
@keyframes eco-spin { to { transform: rotate(360deg); } }
.eco-pulse { fill: var(--c); opacity: 0; transform-box: fill-box; transform-origin: center; animation: eco-pulse 2.4s ease-out infinite; }
@keyframes eco-pulse { 0% { opacity: .35; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.8); } }
.eco-screen-glt { fill: #effaf8; }
.eco-ext-node { fill: #fff; stroke: var(--c); stroke-width: 2; }
.eco-icon { fill: none; stroke: var(--c); stroke-width: 1.8; stroke-linejoin: round; }

/* Hervorhebung */
.eco[data-focus="elektrotechnik"] .sys:not(.sys-elektrotechnik),
.eco[data-focus="brandmeldetechnik"] .sys:not(.sys-brandmeldetechnik),
.eco[data-focus="einbruchmeldetechnik"] .sys:not(.sys-einbruchmeldetechnik),
.eco[data-focus="gebaeudeleittechnik"] .sys:not(.sys-gebaeudeleittechnik) { opacity: .14; }
.eco[data-focus="gebaeudeleittechnik"] .sys:not(.sys-gebaeudeleittechnik) { opacity: .3; }

/* Legende */
.eco-legend { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.eco-key {
	display: flex; gap: 14px; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
	cursor: default; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.eco-key:hover, .eco-key:focus-visible { border-color: var(--k); box-shadow: var(--shadow); transform: translateY(-2px); outline: none; }
.eco-key-elektrotechnik { --k: var(--c-elektrotechnik); }
.eco-key-brandmeldetechnik { --k: var(--c-brandmeldetechnik); }
.eco-key-einbruchmeldetechnik { --k: var(--c-einbruchmeldetechnik); }
.eco-key-gebaeudeleittechnik { --k: var(--c-gebaeudeleittechnik); }
.eco-swatch { flex: none; width: 6px; border-radius: 3px; background: var(--k); }
.eco-key strong { display: block; color: var(--ink); font-size: 15.5px; margin-bottom: 6px; line-height: 1.3; }
.eco-key p { font-size: 14.5px; line-height: 1.55; margin-bottom: 10px; }
.eco-key .link-arrow { font-size: 14px; }

.eco-compact { margin-bottom: 56px; }
.eco-compact .eco-figure { padding: 12px; box-shadow: none; }
.eco-compact .eco-legend { grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
.eco-compact .eco-key { padding: 10px 14px; align-items: center; }
.eco-compact .eco-swatch { height: 18px; }
.eco-compact .eco-key strong { margin: 0; font-size: 14px; }

@media (max-width: 1140px) {
	.eco-legend { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
	.eco-figure { margin: 0 calc(var(--gutter) * -1); border-radius: 0; border-left: 0; border-right: 0; padding: 8px; }
	.eco-compact .eco-figure { margin: 0; border-radius: var(--radius); border: 1px solid var(--line); }
	.eco-legend, .eco-compact .eco-legend { grid-template-columns: 1fr; }
}
.section-eco { padding-top: 0; }

/* Firmenlogo */
.brand .logo { height: 46px; width: auto; }
.footer-brand .brand .logo { height: 50px; }
@media (max-width: 640px) { .brand .logo { height: 36px; } }
