/* NetProMK – main.css
   Farben: Dunkelblau, Hellblau und Lavendel aus dem NetProMK-Logo. */

@font-face {
	font-family: "Bricolage Grotesque";
	src: url("../fonts/bricolage.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("../fonts/atkinson-400.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: "Atkinson Hyperlegible";
	src: url("../fonts/atkinson-700.woff2") format("woff2");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

:root {
	--paper: #f5f8fc;
	--white: #ffffff;
	--tint: #e8f0fb;
	--ink: #142b4d;
	--ink-soft: #44587a;
	--line: #c9d6ea;
	--signal: #2563c9;
	--signal-deep: #1b4fa6;
	--sky: #bedcf9;
	--lavender: #ded6f6;
	--ok: #1c7347;
	--err: #a4262c;

	--f-head: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
	--f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1120px;
	--gutter: clamp(16px, 4vw, 40px);
	--space: clamp(56px, 8vw, 104px);
	--radius: 6px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--f-body);
	font-size: 1.125rem;
	line-height: 1.6;
}

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

a { color: var(--ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal-deep); }

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

h1, h2, h3 {
	font-family: var(--f-head);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 0.5em;
	text-wrap: balance;
}
p { margin: 0 0 1em; }

/* Schutz gegen fremde Vorgaben von Plugins (z. B. Elementor) */
#inhalt h1, #inhalt h2, #inhalt h3 {
	font-family: var(--f-head);
	font-style: normal;
	text-transform: none;
	color: var(--ink);
	line-height: 1.1;
	letter-spacing: -0.02em;
}
#inhalt .hero__title { font-size: clamp(2.4rem, 5.4vw, 4.25rem); font-weight: 760; }
#inhalt .page-head__title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 760; }
#inhalt .section__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 720; }
#inhalt .section__title--small { font-size: 1.5rem; }
#inhalt .cta__title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 760; }
#inhalt p, #inhalt li, #inhalt label { font-family: var(--f-body); font-style: normal; }

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

.sr-only {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip { position: absolute; left: -9999px; top: 8px; background: var(--sky); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.muted { color: var(--ink-soft); font-size: 1rem; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	font-family: var(--f-body);
	font-weight: 700;
	font-size: 1.0625rem;
	line-height: 1.2;
	padding: 15px 22px;
	border-radius: var(--radius);
	border: 2px solid transparent;
	text-decoration: none;
	text-align: center;
	cursor: pointer;
}
.btn--signal { background: var(--signal); color: var(--white); border-color: var(--signal); }
.btn--signal:hover { background: var(--signal-deep); border-color: var(--signal-deep); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--ink:hover { background: #0b1c36; }
.btn--small { padding: 10px 16px; font-size: 1rem; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand__logo { width: 40px; height: 40px; }
.brand__name { font-family: var(--f-head); font-weight: 750; font-size: 1.375rem; letter-spacing: -0.02em; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 24px; }
.site-nav__list a { text-decoration: none; font-size: 1rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav__list a:hover,
.site-nav__list .current-menu-item > a,
.site-nav__list .current_page_item > a { border-bottom-color: var(--signal-deep); }
.site-nav__phone { font-weight: 700; font-size: 1rem; white-space: nowrap; }

.nav-toggle {
	display: none;
	margin-left: auto;
	align-items: center;
	gap: 10px;
	background: none;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	padding: 8px 12px;
	font: 700 1rem var(--f-body);
	color: var(--ink);
	cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.nav-toggle__bars::before,
.nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.site-nav {
		display: none;
		position: absolute;
		left: 0; right: 0; top: 100%;
		background: var(--white);
		border-bottom: 1px solid var(--line);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 8px var(--gutter) 20px;
	}
	.site-nav.is-open { display: flex; }
	.site-nav__list { flex-direction: column; gap: 0; }
	.site-nav__list a { display: block; padding: 14px 0; border-bottom: 1px solid var(--tint); }
	.site-nav__phone { padding-top: 14px; }
}

/* ---------- Hero ---------- */
.hero { background: var(--white); border-bottom: 1px solid var(--line); padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 112px); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero__title { font-size: clamp(2.4rem, 5.4vw, 4.25rem); font-weight: 760; max-width: 13ch; }
.hero__lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); color: var(--ink-soft); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.hero__trust { font-size: 1rem; color: var(--ink-soft); margin: 0; }

/* Prüfprotokoll – das eine auffällige Element der Seite */
.protocol {
	position: relative;
	margin: 0;
	background: var(--paper);
	border: 1px solid var(--line);
	border-top: 8px solid var(--ink);
	border-radius: var(--radius);
	padding: 24px 24px 72px;
	transform: rotate(1.2deg);
	box-shadow: 0 24px 48px -28px rgba(21, 49, 59, 0.45);
}
.protocol__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 6px; }
.protocol__title { font-family: var(--f-head); font-weight: 700; font-size: 1.375rem; margin: 0; }
.protocol__site { font-size: 0.9375rem; color: var(--ink-soft); margin: 0; }
.protocol__list { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.protocol__list li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 12px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 1rem;
}
.protocol__list span { flex: 1; }
.protocol__list b {
	color: var(--ok);
	font-size: 0.9375rem;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.protocol__list b::before {
	content: "";
	width: 16px; height: 16px;
	border-radius: 50%;
	background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
	flex: none;
}

.protocol .seal { position: absolute; right: -34px; bottom: -46px; width: 132px; height: 132px; transform: rotate(-14deg); }
.protocol .seal svg { width: 100%; height: 100%; overflow: visible; }
.protocol .seal__bg { fill: var(--sky); stroke: var(--ink); stroke-width: 2.5; }
.protocol .seal__ring { fill: none; stroke: var(--ink); stroke-width: 2; }
.protocol .seal__text { font-family: var(--f-head); font-weight: 700; font-size: 11.5px; letter-spacing: 0.08em; fill: var(--ink); }
.protocol .seal__tick { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }

@media (prefers-reduced-motion: no-preference) {
	.protocol .seal { animation: stamp 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) 0.6s both; }
	@keyframes stamp {
		from { opacity: 0; transform: rotate(-30deg) scale(1.6); }
		to { opacity: 1; transform: rotate(-14deg) scale(1); }
	}
}

@media (max-width: 860px) {
	.hero__grid { grid-template-columns: 1fr; }
	.protocol { transform: none; margin-right: 28px; }
	.protocol .seal { width: 104px; height: 104px; right: -28px; bottom: -40px; }
}

/* ---------- Sektionen ---------- */
.section { padding: var(--space) 0; }
.section--tint { background: var(--tint); }
.section--flush { padding-top: 0; }
.section__title { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 720; }
.section__title--small { font-size: 1.5rem; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.split--form { grid-template-columns: 0.8fr 1.2fr; }
@media (max-width: 860px) { .split, .split--form { grid-template-columns: 1fr; } }

.more { margin: 28px 0 0; font-weight: 700; }

/* Probleme */
.pain { list-style: none; margin: 0 0 24px; padding: 0; }
.pain li { padding: 14px 0 14px 34px; border-bottom: 1px solid var(--line); position: relative; }
.pain li::before {
	content: "";
	position: absolute; left: 4px; top: 25px;
	width: 14px; height: 2px;
	background: var(--err);
	box-shadow: 0 0 0 0 transparent;
}
.pain__close { font-family: var(--f-head); font-size: 1.375rem; font-weight: 650; margin: 0; }

/* Preisliste */
.pricelist { border-top: 2px solid var(--ink); }
.pricelist__row {
	display: grid;
	grid-template-columns: 14rem 1fr auto;
	gap: 8px 32px;
	align-items: baseline;
	padding: 24px 0;
	border-bottom: 1px solid var(--line);
}
.pricelist__name { font-size: 1.375rem; margin: 0; }
.pricelist__for { margin: 0; color: var(--ink-soft); max-width: 40em; }
.pricelist__price { font-family: var(--f-head); font-weight: 720; font-size: 1.5rem; margin: 0; white-space: nowrap; text-align: right; }
@media (max-width: 760px) {
	.pricelist__row { grid-template-columns: 1fr auto; }
	.pricelist__for { grid-column: 1 / -1; grid-row: 2; }
}

/* Messwerte */
.measure { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.measure th, .measure td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.measure thead th { font-size: 0.9375rem; color: var(--ink-soft); font-weight: 700; background: var(--paper); }
.measure tbody th { font-weight: 400; }
.measure td { font-family: var(--f-head); font-weight: 700; font-size: 1.25rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.measure td:last-child { color: var(--ok); }
.measure tr:last-child th, .measure tr:last-child td { border-bottom: 0; }

/* Ablauf */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(step); display: block; font-family: var(--f-head); font-weight: 760; font-size: 2.75rem; line-height: 1; margin-bottom: 12px; }
.steps h3 { font-size: 1.25rem; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Häkchen-Liste */
.ticks { list-style: none; margin: 0 0 8px; padding: 0; }
.ticks li { position: relative; padding: 6px 0 6px 30px; }
.ticks li::before {
	content: "";
	position: absolute; left: 0; top: 13px;
	width: 18px; height: 10px;
	border-left: 3px solid var(--ok);
	border-bottom: 3px solid var(--ok);
	transform: rotate(-45deg) translate(2px, -2px);
}
.ticks--small li { font-size: 1rem; padding: 4px 0 4px 28px; }
.ticks--small li::before { top: 10px; width: 15px; height: 8px; }

/* Person */
.person { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.photo { margin: 0; position: relative; }
.photo img, .photo__placeholder { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); position: relative; z-index: 1; }
.photo::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; background: var(--lavender); border-radius: var(--radius); }
.photo__placeholder { display: grid; place-content: center; text-align: center; background: var(--tint); border: 2px dashed var(--line); color: var(--ink-soft); font-weight: 700; }
.photo__placeholder small { font-weight: 400; font-size: 0.875rem; }
@media (max-width: 760px) { .person { grid-template-columns: 1fr; } .photo { max-width: 260px; } }

/* CTA */
.cta { background: linear-gradient(120deg, var(--sky), var(--lavender)); padding: clamp(48px, 7vw, 88px) 0; }
.cta__inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.cta__title { font-size: clamp(1.75rem, 3.4vw, 2.75rem); font-weight: 760; }
.cta__inner p { max-width: 34em; }
.cta__actions { justify-self: end; text-align: right; }
.cta__phone { margin: 14px 0 0; font-size: 1rem; }
.cta__phone a { font-weight: 700; }
@media (max-width: 860px) { .cta__inner { grid-template-columns: 1fr; } .cta__actions { justify-self: start; text-align: left; } }

/* ---------- Unterseiten ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 4vw, 48px); }
.page-head__title { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 760; max-width: 20ch; }
.page-head__lead { font-size: 1.25rem; color: var(--ink-soft); max-width: 38em; }

.packages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-bottom: 32px; }
.package { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 24px 20px; }
.package--free { border-left: 8px solid var(--sky); }
.package__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; margin-bottom: 12px; }
.package__name { font-size: 1.375rem; margin: 0; }
.package__price { font-family: var(--f-head); font-weight: 760; font-size: 1.5rem; margin: 0; white-space: nowrap; }
.package__for { color: var(--ink-soft); font-size: 1rem; margin-bottom: 10px; }
.package .btn { margin-top: 12px; }
@media (max-width: 760px) { .packages { grid-template-columns: 1fr; } }

.legal-note { font-size: 0.9375rem; color: var(--ink-soft); max-width: 46em; border-left: 3px solid var(--line); padding-left: 14px; }
.aside-note { margin-top: 24px; padding: 16px 18px; background: var(--tint); border-radius: var(--radius); font-size: 1rem; }

.prose { max-width: 42em; }
.prose h2 { font-size: 1.625rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.25rem; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }

/* Kontaktliste */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { padding: 4px 0; }
.contact-list span { display: inline-block; min-width: 6.5em; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- Formular ---------- */
.form-box { background: var(--white); border: 1px solid var(--line); border-top: 8px solid var(--ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); scroll-margin-top: 24px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form__row--wide { grid-column: 1 / -1; }
.form label { font-size: 1rem; font-weight: 700; }
.form .req { font-weight: 400; color: var(--ink-soft); font-size: 0.875rem; }
.form input[type="text"],
.form input[type="email"],
.form input[type="tel"],
.form textarea {
	width: 100%;
	font: inherit;
	font-size: 1.0625rem;
	color: var(--ink);
	background: var(--paper);
	border: 2px solid var(--line);
	border-radius: var(--radius);
	padding: 12px 14px;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: var(--white); }
.form__consent { flex-direction: row; align-items: flex-start; gap: 12px; }
.form__consent input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.form__consent label { font-weight: 400; font-size: 0.9375rem; }
.form .btn { grid-column: 1 / -1; justify-self: start; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } .form .btn { width: 100%; } }

.notice { padding: 14px 16px; border-radius: var(--radius); font-weight: 700; margin-bottom: 18px; }
.notice--ok { background: #e3f2ea; color: var(--ok); border: 1px solid #b8dcc8; }
.notice--err { background: #fbe9ea; color: var(--err); border: 1px solid #efc2c5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #dbe5f3; padding: 56px 0 24px; font-size: 1rem; }
.site-footer a { color: var(--white); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer__brand { font-family: var(--f-head); font-weight: 750; font-size: 1.375rem; color: var(--white); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.site-footer__head { font-weight: 700; color: var(--white); margin-bottom: 8px; }
.site-footer .contact-list span { color: #a8b9d4; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { padding: 4px 0; }
.site-footer__base { border-top: 1px solid #2d4670; margin-top: 40px; padding-top: 20px; }
.site-footer__base p { margin: 0; color: #a8b9d4; font-size: 0.9375rem; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* Gutenberg-Grundformate für Impressum/Datenschutz */
.prose .wp-block-heading { font-family: var(--f-head); }
.prose a { word-break: break-word; }
