/*
Theme Name: taxes-usa
Theme URI: https://taxes-usa.com
Author: Tax Service Corp.
Description: Schlankes, zweisprachiges Theme (DE/EN) für taxes-usa.com – US-Steuern für Nicht-US-Personen, US-LLCs und Tax Deed Surplus. Legt alle Seiten bei Aktivierung automatisch an.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: taxesusa
*/

/* ---------- Schriften (lokal) ---------- */
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/public-sans-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("assets/fonts/public-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/public-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("assets/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); }

/* ---------- Tokens ---------- */
:root {
	--paper: #f6f7f5;
	--white: #ffffff;
	--ink: #13202d;
	--ink-soft: #4a5866;
	--navy: #14324a;
	--navy-deep: #0e2436;
	--rule: #b9c2ca;
	--rule-strong: #13202d;
	--tint: #e8edf0;
	--stamp: #b23a2b;
	--link: #1d5c8a;
	--focus: #f2b134;

	--sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--serif: "Source Serif 4", Georgia, "Times New Roman", serif;

	--wrap: 1140px;
	--gutter: clamp(16px, 4vw, 32px);
	--space: clamp(56px, 8vw, 104px);
	--radius: 4px;
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 17px/1.6 var(--sans);
	font-feature-settings: "tnum" 0;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0 0 .5em; color: var(--ink); }
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); line-height: 1.08; }
h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); line-height: 1.18; }
h3 { font-size: 1.06rem; line-height: 1.35; font-weight: 600; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.2rem); color: var(--ink-soft); max-width: 60ch; }
.small { font-size: .9rem; color: var(--ink-soft); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
.visually-hidden, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--white); padding: 10px 14px; z-index: 100; }
.skip:focus { top: 12px; }
.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .5em;
	padding: .8em 1.35em;
	background: var(--navy); color: var(--white);
	border: 1.5px solid var(--navy); border-radius: var(--radius);
	font: 600 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
	transition: background-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-light { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light:hover { background: var(--paper); color: var(--navy); border-color: var(--paper); }
.btn-small { padding: .55em 1em; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* ---------- Header ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 50; }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; margin-right: auto; }
.brand-mark { display: block; width: 34px; height: 34px; color: var(--navy); }
.brand-mark svg { display: block; width: 100%; height: 100%; }
.brand-name { font: 700 1.22rem/1 var(--sans); letter-spacing: -.01em; }
.brand-tld { font-weight: 400; color: var(--ink-soft); }
.brand-logo { max-height: 44px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.site-nav ul a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { border-bottom-color: var(--stamp); color: var(--ink); }
.nav-side { display: flex; align-items: center; gap: 16px; }
.lang-switch { display: flex; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.lang-switch a { padding: 5px 9px; font-size: .82rem; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; }

@media (max-width: 920px) {
	.nav-toggle {
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; border: 1px solid var(--rule); background: var(--white); border-radius: var(--radius); cursor: pointer;
	}
	.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; content: ""; transition: transform .2s ease; }
	.nav-toggle-bar::before { position: absolute; top: -6px; }
	.nav-toggle-bar::after { position: absolute; top: 6px; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
	.site-nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		background: var(--white); border-bottom: 1px solid var(--rule); padding: 8px var(--gutter) 20px;
	}
	.site-nav.is-open { display: flex; }
	.site-nav ul { flex-direction: column; gap: 0; }
	.site-nav ul a { display: block; padding: 14px 0; border-bottom: 1px solid var(--tint); }
	.nav-side { justify-content: space-between; padding-top: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); background: var(--paper); }
.hero + .section { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--rule); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero-note { margin-top: 20px; font-size: .92rem; color: var(--ink-soft); }

/* Formular-Blatt: das prägende Element der Seite */
.formsheet {
	background: var(--white);
	border: 2px solid var(--rule-strong);
	box-shadow: 8px 8px 0 var(--tint);
}
.formsheet-head { padding: 18px 22px 16px; border-bottom: 2px solid var(--rule-strong); }
.formsheet-title { font: 600 1.35rem/1.2 var(--serif); margin: 0 0 4px; }
.formsheet-sub { margin: 0; font-size: .92rem; color: var(--ink-soft); }
.formsheet-lines { list-style: none; margin: 0; padding: 0; }
.formsheet-lines li + li { border-top: 1px solid var(--rule); }
.formsheet-lines a {
	display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: stretch;
	color: var(--ink); text-decoration: none; min-height: 76px;
}
.formsheet-lines a:hover { background: var(--paper); }
.formsheet-lines a:hover .lf { background: var(--navy); color: var(--white); }
.ln {
	display: flex; align-items: center; justify-content: center;
	border-right: 1px solid var(--rule); font-weight: 700; font-size: .95rem; color: var(--ink-soft);
}
.lq { padding: 14px 16px; align-self: center; font-size: .98rem; line-height: 1.4; }
.lf {
	display: flex; align-items: center; justify-content: center; text-align: center;
	width: 156px; padding: 0 14px; border-left: 1px solid var(--rule);
	font: 700 .86rem/1.25 var(--sans); color: var(--navy); letter-spacing: .01em;
	transition: background-color .15s ease, color .15s ease;
}
.formsheet-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 22px; border-top: 2px solid var(--rule-strong); font-size: .92rem; color: var(--ink-soft); }
.formsheet-foot a { font-weight: 600; }

/* ---------- Sektionen ---------- */
.section { padding: var(--space) 0; }
.section-tint { background: var(--tint); }
.section-lead { color: var(--ink-soft); max-width: 70ch; margin-bottom: 28px; }

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
.split-head p { color: var(--ink-soft); }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 26px 64px; }
.steps li::before {
	content: counter(step);
	position: absolute; left: 0; top: -2px;
	width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
	border: 1.5px solid var(--rule-strong); background: var(--white); font-weight: 700;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 20px; top: 40px; bottom: 0; border-left: 1.5px solid var(--rule); }
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--ink-soft); }

/* Fristen-Tabelle */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.deadlines { width: 100%; border-collapse: collapse; background: var(--white); border: 2px solid var(--rule-strong); min-width: 560px; }
.deadlines th, .deadlines td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.deadlines thead th { font-size: .88rem; font-weight: 600; color: var(--ink-soft); border-bottom: 2px solid var(--rule-strong); }
.deadlines td:first-child { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.deadlines td:nth-child(2) { font-weight: 600; color: var(--navy); white-space: nowrap; }

.facts { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
.facts-list, .checklist { list-style: none; margin: 0; padding: 0; }
.facts-list li, .checklist li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.facts-list li:first-child { border-top: 1px solid var(--rule); }
.facts-list .icon, .checklist .icon { color: var(--stamp); margin-top: .2em; }
.checklist li { padding: 9px 0; }
.plainlist { margin: 0 0 1em; padding-left: 1.2em; }
.plainlist li { margin-bottom: .45em; }

/* ---------- Unterseiten ---------- */
.page-head { padding: clamp(44px, 6vw, 84px) 0 clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--rule); }
.page-head h1 { max-width: 22ch; }
.page-head-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 64px); align-items: end; }
.page-head-grid > :only-child { grid-column: 1 / -1; }
.note-box { background: var(--white); border: 2px solid var(--rule-strong); border-left: 6px solid var(--stamp); padding: 18px 20px; }
.note-box p:last-child { margin-bottom: 0; }
.note-title { font-weight: 700; margin-bottom: .35em; }
.contact-box a { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }

.form-rows { border-top: 2px solid var(--rule-strong); }
.form-row { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.form-row:last-child { border-bottom: 2px solid var(--rule-strong); }
.form-no { font-weight: 700; color: var(--navy); margin: 0; padding-top: 2px; }
.form-row h3 { margin-bottom: .3em; }
.form-row p { margin: 0; color: var(--ink-soft); max-width: 68ch; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 5vw, 72px); }

.faq details { border-bottom: 1px solid var(--rule); }
.faq details:first-child { border-top: 1px solid var(--rule); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font: 400 1.5rem/1 var(--sans); color: var(--ink-soft); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); max-width: 68ch; }

/* Rechenbeispiel */
.calc { margin: 0; background: var(--white); border: 2px solid var(--rule-strong); box-shadow: 8px 8px 0 var(--tint); }
.calc figcaption { padding: 12px 18px; border-bottom: 2px solid var(--rule-strong); font: 600 1.1rem/1.2 var(--serif); }
.calc dl { margin: 0; }
.calc dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 18px; border-bottom: 1px solid var(--rule); }
.calc dt { color: var(--ink-soft); font-size: .95rem; }
.calc dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc .total { border-top: 1.5px solid var(--rule-strong); border-bottom: 2px solid var(--rule-strong); }
.calc .total dt { color: var(--ink); font-weight: 700; }
.calc .total dd { color: var(--stamp); font-size: 1.15rem; font-weight: 700; }
.calc-note { margin: 0; padding: 10px 18px 12px; font-size: .85rem; color: var(--ink-soft); }

.timeline { list-style: none; margin: 32px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: tl; border-top: 2px solid var(--rule-strong); }
.timeline li { counter-increment: tl; padding: 22px 18px 4px 0; position: relative; }
.timeline li::before {
	content: counter(tl); position: absolute; top: -13px; left: 0;
	width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
	background: var(--paper); border: 2px solid var(--rule-strong); border-radius: 50%; font-size: .8rem; font-weight: 700;
}
.timeline h3 { margin: 8px 0 .3em; }
.timeline p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

/* ---------- Formular ---------- */
.notice { padding: 14px 18px; border: 2px solid; margin-bottom: 28px; font-weight: 500; }
.notice-ok { border-color: #2f6b4f; background: #eaf4ee; }
.notice-err { border-color: var(--stamp); background: #f8ebe9; }
.wizard { background: var(--white); border: 2px solid var(--rule-strong); padding: clamp(20px, 4vw, 36px); }
.wizard-progress { list-style: none; display: flex; gap: 0; margin: 0 0 28px; padding: 0; border: 1px solid var(--rule); counter-reset: wp; }
.wizard-progress li { flex: 1; counter-increment: wp; padding: 10px 12px; font-size: .9rem; color: var(--ink-soft); border-right: 1px solid var(--rule); }
.wizard-progress li:last-child { border-right: 0; }
.wizard-progress li::before { content: counter(wp) ". "; font-weight: 700; }
.wizard-progress li.is-active { background: var(--navy); color: var(--white); }
.wizard-progress li.is-done { color: var(--ink); }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.js .step:not(.is-current) { display: none; }
.no-js .step + .step { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--rule); }
.step legend { font: 600 1.45rem/1.2 var(--serif); margin-bottom: 18px; padding: 0; }
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1.5px solid var(--rule); cursor: pointer; font-weight: 500; }
.choice:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); background: var(--paper); }
.choice input { width: 18px; height: 18px; accent-color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.wizard label { display: block; font-weight: 500; font-size: .95rem; }
.wizard label.full { margin-top: 18px; }
.wizard input[type="text"], .wizard input[type="email"], .wizard input[type="tel"], .wizard input[type="date"], .wizard select, .wizard textarea {
	display: block; width: 100%; margin-top: 6px; padding: 11px 12px;
	font: 400 1rem/1.4 var(--sans); color: var(--ink);
	background: var(--white); border: 1.5px solid var(--rule); border-radius: var(--radius);
}
.wizard input:focus, .wizard select:focus, .wizard textarea:focus { border-color: var(--navy); outline: 2px solid var(--focus); outline-offset: 1px; }
.js .topic-fields { display: none; }
.js .topic-fields.is-shown { display: block; }
.no-js .topic-fields { margin-bottom: 18px; }
.consent { display: flex !important; gap: 12px; align-items: flex-start; margin-top: 20px; font-weight: 400 !important; }
.consent input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--navy); }
.req { color: var(--stamp); }
.form-error { color: var(--stamp); font-weight: 600; margin: 14px 0 0; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.step-nav [data-next]:only-child, .step-nav .btn:only-child { margin-left: auto; }

/* ---------- Text-Seiten ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

/* ---------- CTA + Footer ---------- */
.cta { background: var(--navy); color: var(--white); padding: clamp(44px, 6vw, 72px) 0; }
.cta h2 { color: var(--white); margin-bottom: .3em; }
.cta p { margin: 0; color: #c9d5df; max-width: 60ch; }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.site-footer { background: var(--navy-deep); color: #c9d5df; padding: 56px 0 28px; font-size: .95rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr) minmax(0, .8fr); gap: 36px; }
.footer-brand { font: 700 1.2rem/1 var(--sans); color: var(--white); }
.footer-brand span { font-weight: 400; color: #9fb0bf; }
.footer-about p:last-child { max-width: 42ch; }
.footer-head { color: var(--white); font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer address { font-style: normal; line-height: 1.8; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: baseline; margin-top: 40px; padding-top: 22px; border-top: 1px solid #2a4459; font-size: .86rem; }
.footer-legal p { margin: 0; }
.footer-links { display: flex; gap: 20px; }
.footer-note { flex-basis: 100%; color: #8ea1b1; }

/* ---------- Responsiv ---------- */
@media (max-width: 960px) {
	.hero-grid, .split, .facts, .page-head-grid, .two-col { grid-template-columns: minmax(0, 1fr); }
	.hero h1 { max-width: 18ch; }
	.timeline { grid-template-columns: minmax(0, 1fr); border-top: 0; border-left: 2px solid var(--rule-strong); margin-left: 12px; }
	.timeline li { padding: 0 0 22px 28px; }
	.timeline li::before { left: -13px; top: 0; }
	.timeline h3 { margin-top: 0; }
	.footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.footer-about { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	body { font-size: 16px; }
	.form-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	.formsheet-lines a { grid-template-columns: 36px minmax(0, 1fr); }
	.lf { grid-column: 2; justify-content: flex-start; border-left: 0; padding: 0 16px 14px; width: auto; }
	.deadlines { min-width: 0; }
	.deadlines thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.deadlines tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
	.deadlines td { display: block; padding: 0; border: 0; white-space: normal !important; }
	.deadlines td:nth-child(2) { margin: 2px 0 4px; }
	.lq { padding-bottom: 6px; }
	.formsheet { box-shadow: 5px 5px 0 var(--tint); }
	.choices, .grid-2 { grid-template-columns: minmax(0, 1fr); }
	.cta-row { flex-direction: column; align-items: flex-start; }
	.footer-grid { grid-template-columns: minmax(0, 1fr); }
	.wizard-progress li { font-size: .8rem; padding: 8px; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}

/* =====================================================================
   v1.1 – professionellerer Auftritt: Topbar, dunkler Hero, Leistungen
   ===================================================================== */
:root { --accent: #b23a2b; --accent-deep: #8f2c20; --on-dark: #c9d5df; }

.topbar { background: var(--navy-deep); color: var(--on-dark); font-size: .84rem; }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topbar p { margin: 0; }
.topbar-contact { display: flex; gap: 22px; }
.topbar a { color: var(--white); text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { text-decoration: underline; color: var(--white); }
.topbar .icon { width: 1em; height: 1em; opacity: .8; }
.site-header { box-shadow: 0 1px 0 rgba(19, 32, 45, .04); }
.header-row { min-height: 78px; }
.brand-logo { display: block; max-height: 52px; width: auto; }

.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); color: var(--white); border-color: var(--white); }

/* Dunkler Hero */
.hero { background: var(--navy); color: var(--white); position: relative; overflow: hidden; padding: clamp(56px, 8vw, 112px) 0 clamp(64px, 8vw, 112px); }
.hero::before {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px);
	background-size: 100% 34px;
}
.hero .wrap { position: relative; }
.hero h1 { color: var(--white); }
.hero .lead { color: var(--on-dark); }
.hero-note { color: #9fb0bf; }
.hero .formsheet { box-shadow: 10px 10px 0 rgba(0, 0, 0, .22); color: var(--ink); }
.hero + .section, .hero + .trust + .section { border-top: 0; }

/* Vertrauensleiste */
.trust { background: var(--white); border-bottom: 1px solid var(--rule); }
.trust-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.trust-list li { padding: 22px 20px 22px 0; display: flex; flex-direction: column; gap: 2px; }
.trust-list li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.trust-list strong { font-weight: 700; color: var(--navy); }
.trust-list span { font-size: .9rem; color: var(--ink-soft); }

/* Leistungen */
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); max-width: 44ch; }
.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--rule-strong); background: var(--white); }
.service { padding: 28px 26px 26px; display: flex; flex-direction: column; }
.service + .service { border-left: 1px solid var(--rule); }
.service-forms { font-size: .82rem; font-weight: 600; color: var(--ink-soft); padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--rule); }
.service h3 { font: 600 1.4rem/1.2 var(--serif); margin-bottom: .45em; }
.service p:not(.service-forms) { color: var(--ink-soft); }
.service-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--navy); }
.service-link .icon { transition: transform .15s ease; }
.service-link:hover .icon { transform: translateX(3px); }

/* Dunkle Seitenköpfe */
.page-head-dark { background: var(--navy); color: var(--white); border-bottom: 0; position: relative; overflow: hidden; }
.page-head-dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px); background-size: 100% 34px; }
.page-head-dark .wrap { position: relative; }
.page-head-dark h1 { color: var(--white); }
.page-head-dark .lead { color: var(--on-dark); }
.page-head-dark .note-box, .page-head-dark .calc { color: var(--ink); box-shadow: 10px 10px 0 rgba(0, 0, 0, .22); }
.page-head-dark .contact-box a { color: var(--link); }
.breadcrumb { display: flex; gap: 10px; font-size: .86rem; color: #9fb0bf; margin-bottom: 18px; }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.cta { background: var(--navy); }
.services + .section { padding-top: 0; }
.cta .btn-light { background: var(--accent); border-color: var(--accent); color: var(--white); }
.cta .btn-light:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

@media (max-width: 960px) {
	.trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.trust-list li:nth-child(3) { padding-left: 0; border-left: 0; }
	.trust-list li:nth-child(n+3) { border-top: 1px solid var(--rule); }
	.service-grid { grid-template-columns: minmax(0, 1fr); }
	.service + .service { border-left: 0; border-top: 1px solid var(--rule); }
	.section-head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
	.topbar-place { display: none; }
	.topbar-row { justify-content: center; }
	.topbar-contact { gap: 16px; }
	.trust-list { grid-template-columns: minmax(0, 1fr); }
	.trust-list li, .trust-list li + li { padding: 14px 0; border-left: 0; }
	.trust-list li + li { border-top: 1px solid var(--rule); }
	.brand-logo { max-height: 42px; }
}

/* =====================================================================
   v1.2 – Logo (für dunklen Grund) und Markenfarben
   ===================================================================== */
:root { --accent: #d3121b; --accent-deep: #a90e15; --stamp: #d3121b; }
.topbar { background: #0b1c2a; }
.site-header { background: var(--navy-deep); border-bottom: 1px solid rgba(255,255,255,.08); box-shadow: none; }
.brand-logo { height: 60px; max-height: none; width: auto; }
.site-nav ul a { color: var(--white); }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--white); border-bottom-color: var(--accent); }
.lang-switch { border-color: rgba(255,255,255,.3); }
.lang-switch a { color: var(--on-dark); }
.lang-switch a[aria-current="true"] { background: var(--white); color: var(--navy); }
.site-header .btn-small { background: var(--accent); border-color: var(--accent); }
.site-header .btn-small:hover { background: var(--accent-deep); border-color: var(--accent-deep); }
.footer-brand img { display: block; height: 52px; width: auto; }
.formsheet-lines a:hover .lf { background: var(--accent); }
@media (max-width: 920px) {
	.nav-toggle { background: transparent; border-color: rgba(255,255,255,.3); }
	.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { background: var(--white); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
	.site-nav { background: var(--navy-deep); border-bottom-color: rgba(255,255,255,.1); }
	.site-nav ul a { border-bottom-color: rgba(255,255,255,.1); }
}
@media (max-width: 640px) { .brand-logo { height: 42px; } }

/* =====================================================================
   v1.3 – helle Kopfzeile mit Logo für hellen Grund
   ===================================================================== */
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); box-shadow: 0 1px 0 rgba(19, 32, 45, .04); }
.site-nav ul a { color: var(--ink); }
.site-nav ul a:hover, .site-nav ul a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.lang-switch { border-color: var(--rule); }
.lang-switch a { color: var(--ink-soft); }
.lang-switch a[aria-current="true"] { background: var(--navy); color: var(--white); }
.brand-logo { height: 54px; }
@media (max-width: 920px) {
	.nav-toggle { background: var(--white); border-color: var(--rule); }
	.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { background: var(--ink); }
	.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
	.site-nav { background: var(--white); border-bottom-color: var(--rule); }
	.site-nav ul a { border-bottom-color: var(--tint); }
}
@media (max-width: 640px) { .brand-logo { height: 40px; } }
