/* AM Gebäudereinigung · main stylesheet (design brief v4, staging board R20–R22).
   Tokens first, then base, layout, components, sections, pages, utilities. */

@font-face { font-family: Lato; font-weight: 400; font-style: normal; font-display: swap; src: url(../fonts/lato-400.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/lato-700.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url(../fonts/space-grotesk-500.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600; font-style: normal; font-display: swap; src: url(../fonts/space-grotesk-600.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url(../fonts/space-grotesk-700.woff2) format("woff2"); }

:root {
	--blue: #2563EB;
	--blue-dark: #1D4ED8;
	--navy: #0F1E33;
	--navy-2: #182B45;
	--aqua: #F2F6FC;
	--sky: #93C5FD;
	--tick: #138A4B;
	--gold: #F0C94A;
	--muted: #4A5A70;
	--line: #DDE5EF;
	--field-line: #7F8FA5;
	--white: #FFFFFF;
	--error: #B3261E;

	--font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
	--head-weight: 600;
	--font-body: Lato, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

	/* One radius family (Abdul's video, 29 Oct 2026): pills for buttons and tags, 12 px for fields and small tiles, 20 px for cards and photos */
	--r-pill: 999px;
	--r-field: 12px;
	--r-card: 20px;
	--r-sm: var(--r-field);
	--r-md: var(--r-card);
	--shadow: 0 8px 28px rgba(15, 30, 51, .07);
	--shadow-lift: 0 16px 40px rgba(15, 30, 51, .13);
	--wrap: 1200px;
	--gutter: 20px;
	--section: 64px;
}

@media (min-width: 960px) {
	:root { --gutter: 32px; --section: 96px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
	margin: 0;
	background: var(--white);
	color: var(--navy);
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.6;
	text-rendering: optimizeLegibility;
	-webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 {
	font-family: var(--font-head);
	font-weight: var(--head-weight);
	line-height: 1.2;
	letter-spacing: -.015em;
	margin: 0 0 .5em;
	hyphens: manual;
	overflow-wrap: normal;
	text-wrap: balance;
}
h1 { font-size: clamp(30px, 6vw, 50px); letter-spacing: -.025em; line-height: 1.12; }
h2 { font-size: clamp(26px, 4.2vw, 38px); }
h3 { font-size: 22px; font-weight: 600; }
h4 { font-size: 19px; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }
address { font-style: normal; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.am-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--r-sm); }
.am-skip:focus { top: 12px; color: var(--white); }

.am-icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Layout ---------- */
.am-wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.am-section { padding-block: var(--section); }
.am-section--aqua { background: var(--aqua); }
.am-section--navy { background: var(--navy); color: var(--white); }
.am-section--navy h2, .am-section--navy h3 { color: var(--white); }
.am-section--tight { padding-block: 40px; }
.am-head { max-width: 760px; margin-bottom: 40px; }
.am-head--center { margin-inline: auto; text-align: center; }
.am-lead { font-size: 20px; color: var(--muted); }
.am-section--navy .am-lead { color: #C9DCE7; }
.am-grid-2 { display: grid; gap: 32px; }
@media (min-width: 960px) { .am-grid-2 { grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; } }

/* ---------- Buttons ---------- */
.am-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: .5em;
	min-height: 48px; padding: 12px 24px; border-radius: var(--r-pill); border: 2px solid transparent;
	font-family: var(--font-head); font-weight: 600; font-size: 17px; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.am-btn .am-icon { width: 18px; height: 18px; }
.am-btn--primary { background: var(--blue); color: var(--white); }
.am-btn--primary:hover { background: var(--blue-dark); color: var(--white); box-shadow: var(--shadow); }
.am-btn--outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.am-btn--outline:hover { background: var(--aqua); color: var(--blue-dark); }
.am-btn--light { background: var(--white); color: var(--navy); }
.am-btn--light:hover { background: var(--aqua); color: var(--navy); }
.am-actions { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-top: 28px; }
.am-textlink { display: inline-flex; gap: .4em; align-items: center; font-weight: 700; text-decoration: none; }
.am-textlink .am-icon { width: 18px; height: 18px; transition: transform .15s; }
.am-textlink:hover .am-icon { transform: translateX(3px); }
.am-section--navy .am-textlink, .am-textlink--light, .am-textlink--light:hover { color: var(--white); }

/* ---------- Top bar and header ---------- */
.am-topbar { background: var(--navy); color: #C9DCE7; font-size: 15px; }
.am-topbar__inner { display: flex; gap: 8px 28px; justify-content: flex-end; align-items: center; min-height: 40px; flex-wrap: wrap; }
.am-topbar__inner > * { display: inline-flex; gap: 8px; align-items: center; color: inherit; text-decoration: none; }
.am-topbar__inner > :first-child { margin-right: auto; }
.am-topbar a:hover { color: var(--white); }
.am-topbar .am-icon { width: 16px; height: 16px; color: var(--sky); }
@media (max-width: 959px) { .am-topbar { display: none; } }

.am-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.am-header__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.am-logo { display: inline-flex; align-items: center; gap: 12px; color: var(--navy); text-decoration: none; flex: none; }
.am-logo:hover { color: var(--navy); }
.am-logo .am-mark { border-radius: 10px; }
.am-header .am-mark { width: 58px; height: 58px; }
.am-logo__text { display: flex; flex-direction: column; white-space: nowrap; font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.1; }
.am-logo__text strong { font-weight: 700; }
.am-logo__text small { font-family: var(--font-body); font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 3px; letter-spacing: .01em; }
.am-logo--light, .am-logo--light:hover { color: var(--white); }

.am-nav { margin-left: auto; }
.am-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.am-nav__list > li { position: relative; display: flex; align-items: center; }
.am-nav__list a { display: block; padding: 10px 12px; color: var(--navy); font-family: var(--font-head); font-weight: 600; font-size: 16px; text-decoration: none; border-radius: var(--r-sm); }
.am-nav__list a:hover, .am-nav__list a[aria-current="page"] { color: var(--blue); }
.am-nav__toggle { display: inline-flex; padding: 6px; margin-left: -8px; background: none; border: 0; color: var(--navy); cursor: pointer; border-radius: var(--r-sm); }
.am-nav__toggle .am-icon { width: 18px; height: 18px; transition: transform .15s; }
.am-nav__toggle[aria-expanded="true"] .am-icon { transform: rotate(180deg); }
.am-nav__sub {
	position: absolute; top: 100%; left: 0; min-width: 270px; padding: 10px; margin: 0;
	background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-lift);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
}
.am-nav__sub a { font-family: var(--font-body); font-weight: 700; font-size: 16px; }
.am-nav__sub a:hover { background: var(--aqua); }
.has-sub:hover > .am-nav__sub, .has-sub:focus-within > .am-nav__sub, .am-nav__toggle[aria-expanded="true"] + .am-nav__sub { opacity: 1; visibility: visible; transform: none; }

.am-header__actions { display: flex; align-items: center; gap: 16px; }
.am-header__phone, .am-header__phone:hover { display: inline-flex; gap: 8px; align-items: center; font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--navy); text-decoration: none; white-space: nowrap; }
.am-header__phone .am-icon { color: var(--blue); }
.am-burger { display: none; width: 48px; height: 48px; align-items: center; justify-content: center; background: var(--aqua); border: 0; border-radius: var(--r-sm); color: var(--navy); cursor: pointer; }
.am-burger__close { display: none; }
.am-burger[aria-expanded="true"] .am-burger__open { display: none; }
.am-burger[aria-expanded="true"] .am-burger__close { display: block; }
.am-drawer { border-top: 1px solid var(--line); padding: 12px var(--gutter) 24px; background: var(--white); max-height: calc(100vh - 76px); overflow-y: auto; }
.am-drawer .am-nav__list { flex-direction: column; gap: 0; }
.am-drawer .am-nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.am-drawer .am-nav__list > li > a { flex: 1; padding: 14px 4px; font-size: 18px; }
.am-drawer .am-nav__toggle { width: 48px; height: 48px; justify-content: center; margin: 0; }
.am-drawer .am-nav__sub { position: static; width: 100%; min-width: 0; box-shadow: none; border: 0; padding: 0 0 10px 8px; opacity: 1; visibility: visible; transform: none; display: none; }
.am-drawer .am-nav__toggle[aria-expanded="true"] + .am-nav__sub { display: block; }
.am-drawer__actions { display: grid; gap: 12px; margin-top: 20px; }

@media (max-width: 1259px) {
	.am-header__cta { display: none; }
}
@media (max-width: 1023px) {
	.am-nav, .am-header__phone span { display: none; }
	.am-hero--video .am-hero__sub { font-size: 18px; }
	.am-header__actions { margin-left: auto; }
	.am-header__phone { width: 48px; height: 48px; justify-content: center; border-radius: var(--r-pill); background: var(--aqua); }
	.am-burger { display: inline-flex; }
}
@media (max-width: 420px) {
	.am-logo__text small { display: none; }
	.am-logo__text { font-size: 17px; }
	.am-header .am-mark { width: 40px; height: 40px; }
}

/* ---------- Mobile call bar (carries over M23, change 10) ---------- */
.am-callbar { display: none; }
@media (max-width: 767px) {
	body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
	.am-callbar {
		position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: 1fr 1fr 1fr;
		padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; background: var(--white);
		box-shadow: 0 -4px 20px rgba(15, 30, 51, .12);
	}
	.am-callbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: var(--r-sm); font-family: var(--font-head); font-weight: 600; font-size: 14px; text-decoration: none; }
	.am-callbar__call { background: var(--blue); color: var(--white); }
	.am-callbar__call:hover { color: var(--white); }
	.am-callbar__wa { background: var(--aqua); color: var(--navy); }
	.am-callbar__quote { background: var(--aqua); color: var(--navy); }
}

/* ---------- Hero ---------- */
.am-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--aqua) 0%, var(--white) 100%); padding-block: 40px 56px; }
.am-hero__grid { position: relative; display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) {
	.am-hero { padding-block: 72px 88px; }
	.am-hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
}
.am-hero h1 { margin-bottom: .45em; }
.am-hero__sub { font-size: 20px; color: var(--muted); max-width: 36em; }
.am-hero__media { position: relative; }
.am-hero__media .am-photo { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-lift); }
.am-hero__call { margin-top: 18px; color: var(--muted); }
.am-hero__call a { font-weight: 700; color: var(--navy); }
.am-hero--page { padding-block: 40px 48px; }
@media (min-width: 960px) { .am-hero--page { padding-block: 64px 72px; } }

/* Quote starter */
.am-quote {
	display: grid; gap: 12px; margin-top: 28px; padding: 16px; background: var(--white);
	border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow);
}
.am-quote label { display: grid; gap: 4px; font-size: 14px; font-weight: 700; color: var(--muted); }
.am-quote select, .am-quote input {
	width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 17px; color: var(--navy);
	border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--white);
}
.am-quote .am-btn { width: 100%; }
@media (min-width: 640px) {
	.am-quote { grid-template-columns: 1.3fr 1fr; align-items: end; }
	.am-quote .am-btn { grid-column: 1 / -1; }
}

/* Rating bar (template: repeated Google bar) */
.am-rating { margin: 20px 0 0; }
.am-rating a { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--navy); text-decoration: none; font-size: 16px; }
.am-rating strong { font-family: var(--font-head); }
.am-rating span { color: var(--muted); }
.am-rating .am-rating__more { display: inline-flex; gap: 4px; align-items: center; color: var(--blue); font-weight: 700; }
.am-rating .am-rating__more .am-icon { width: 16px; height: 16px; }
.am-stars, .am-rating .am-stars { display: inline-flex; gap: 2px; color: var(--gold); }
.am-stars .am-icon { width: 20px; height: 20px; }
.am-stars path { stroke: #B8901C; stroke-width: 1; stroke-linejoin: round; }
.am-footer .am-stars path, .am-section--navy .am-stars path { stroke: none; }
.am-footer .am-rating a, .am-footer .am-rating span { color: #C9DCE7; }
.am-footer .am-rating .am-rating__more { color: var(--sky); }

/* Trust strip: four plain facts in a row, thin dividers, no icons */
.am-section--line { border-bottom: 1px solid var(--line); }
.am-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
@media (min-width: 960px) { .am-trust { grid-template-columns: repeat(4, 1fr); gap: 0; } .am-trust li + li { border-left: 1px solid var(--line); padding-left: 28px; } }
.am-trust li { display: grid; gap: 2px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.am-trust strong { font-family: var(--font-head); font-size: 17px; font-weight: 600; color: var(--navy); }

/* Facts row (Über uns) */
.am-stats { display: flex; flex-wrap: wrap; gap: 12px 32px; color: #C9DCE7; font-size: 17px; }
.am-stats strong { font-family: var(--font-head); font-weight: 600; color: var(--white); }

/* Rows: a heading and its text, separated by thin lines (audience, Warum AM) */
.am-rows { display: grid; }
.am-row { padding: 22px 0; border-top: 1px solid var(--line); }
.am-row:last-child { border-bottom: 1px solid var(--line); }
.am-row h3 { font-size: 20px; margin-bottom: .3em; }
.am-row p { color: var(--muted); font-size: 17px; }
.am-section--aqua .am-row { border-color: #CFE3EC; }
.am-grid-2 .wp-block-image.am-photo { margin-top: 28px; }
@media (min-width: 960px) {
	.am-why { grid-template-columns: .85fr 1.15fr; }
	.am-why__head { position: sticky; top: 110px; }
}
.am-block-icon { display: block; }

/* Ticks: core list blocks with the class am-ticks, and the AM blocks' lists */
.am-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.am-ticks li { position: relative; padding-left: 30px; }
.am-ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 20px; height: 20px; background: var(--tick); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.am-ticks--cols { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.am-section--navy .am-ticks li::before { background: var(--sky); }

/* Services: one grid, the only card grid on the site */
.am-services { display: grid; gap: 20px; }
@media (min-width: 640px) { .am-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .am-services { grid-template-columns: repeat(4, 1fr); } }
.am-service { position: relative; display: flex; flex-direction: column; padding: 28px 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 2px 10px rgba(15, 30, 51, .04); transition: box-shadow .2s, transform .2s, border-color .2s; }
.am-service.has-link:hover { box-shadow: var(--shadow-lift); transform: translateY(-3px); border-color: transparent; }
.am-service__icon { width: 52px; height: 52px; padding: 12px; margin-bottom: 16px; color: var(--white); background: var(--blue); border-radius: var(--r-field); }
.am-service h3 { font-size: 20px; margin-bottom: .35em; }
.am-service h3 a { color: var(--navy); text-decoration: none; }
.am-service h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-md); }
.am-service p { color: var(--muted); font-size: 16px; }
.am-service .am-ticks { margin-top: 14px; font-size: 16px; }
.am-service__more { display: inline-flex; gap: 6px; align-items: center; margin-top: auto; padding-top: 18px; color: var(--blue); font-weight: 700; font-size: 16px; }
.am-service__more .am-icon { width: 16px; height: 16px; }

/* Split feature block */
.am-split { display: grid; gap: 32px; align-items: center; }
.am-split + .am-split { margin-top: 72px; }
.am-split .am-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow); }
@media (min-width: 960px) {
	.am-split { grid-template-columns: 1fr 1fr; gap: 64px; }
	.am-split--reverse .am-split__media { order: 2; }
}
.am-split .am-ticks { margin-top: 18px; }

/* Before / after */

.am-vn { margin: 0; }
.am-vn__frame { position: relative; overflow: hidden; border-radius: var(--r-md); aspect-ratio: 3 / 4; box-shadow: var(--shadow); background: var(--aqua); --pos: 50%; }
.am-vn__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.am-vn__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.am-vn__before::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: var(--white); box-shadow: 0 0 8px rgba(0, 0, 0, .35); }
.am-vn__tag { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-family: var(--font-head); font-weight: 600; font-size: 13px; pointer-events: none; }
.am-vn__tag--before { left: 12px; background: rgba(15, 30, 51, .85); color: var(--white); }
.am-vn__tag--after { right: 12px; background: var(--white); color: var(--navy); }
.am-vn__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.am-vn__range:focus-visible { opacity: .01; }
.am-vn__frame:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.am-vn__frame::after {
	content: ""; position: absolute; top: 50%; left: var(--pos); width: 44px; height: 44px; margin: -22px 0 0 -22px;
	border-radius: 50%; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F1E33' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18-6-6 6-6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 24px no-repeat;
	box-shadow: 0 2px 12px rgba(0, 0, 0, .3); pointer-events: none;
}
.am-vn figcaption { margin-top: 10px; font-size: 15px; color: var(--muted); }

/* Before/after as a full-width band; the divider sweeps once from left to right (main.js) */
.am-vn-band .am-head { margin-bottom: 32px; }
.am-vn-banner { display: grid; gap: 20px; }
@media (min-width: 768px) { .am-vn-banner { grid-template-columns: repeat(3, 1fr); } }
.am-vn-banner .am-vn__frame { aspect-ratio: auto; height: clamp(380px, 36vw, 500px); border-radius: var(--r-card); box-shadow: none; }
.am-vn-banner figcaption { padding: 12px 4px 0; color: #C9DCE7; }
.am-vn-band .am-actions { margin-top: 24px; }
.am-vn-band .wp-block-button.is-style-am-link .wp-block-button__link { color: var(--white); }
@media (max-width: 767px) {
	.am-vn-banner .am-vn__frame { height: 420px; }
	.home .am-vn-banner > :nth-child(n+2) { display: none; }
}

/* Process steps */
.am-steps { display: grid; gap: 20px; counter-reset: step; list-style: none; margin: 0; padding: 0; }
@media (min-width: 768px) { .am-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .am-steps { grid-template-columns: repeat(4, 1fr); } }
.am-steps li { position: relative; padding: 28px 26px 30px; counter-increment: step; background: var(--navy-2); border: 1px solid rgba(255, 255, 255, .07); border-radius: var(--r-card); }
.am-steps li::before {
	content: counter(step, decimal-leading-zero); display: block; margin-bottom: 22px;
	color: var(--gold); font-family: var(--font-head); font-weight: 600; font-size: 46px; line-height: 1; letter-spacing: -.03em;
}
.am-steps h3 { font-size: 20px; color: var(--white); }
.am-steps p { color: #C9DCE7; font-size: 16px; }

/* Area map */
.am-area { display: grid; gap: 32px; align-items: center; }
@media (min-width: 960px) { .am-area { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.am-area__map { margin: 0; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); }
.am-area__map figcaption { margin: 4px 8px 0; font-size: 13px; color: var(--muted); text-align: right; }
.am-map { width: 100%; }
.am-map__context { fill: #F6FAFC; stroke: #C5D6DF; stroke-width: 1; }
.am-map__area { fill: #D8ECF6; stroke: var(--white); stroke-width: 1.5; stroke-linejoin: round; }
.am-map__area.is-home { fill: #A9D3EC; }
.am-map__label, .am-map__city { font-family: var(--font-body); font-weight: 700; font-size: 14px; fill: var(--navy); text-anchor: middle; paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 3px; stroke-linejoin: round; }
.am-map__label.is-small { font-size: 12px; }
.am-map__label.is-home { font-family: var(--font-head); font-size: 17px; }
.am-map__city { font-weight: 400; font-style: italic; fill: var(--muted); font-size: 13px; }
.am-map__pin { fill: var(--gold); stroke: var(--navy); stroke-width: 2.5; }
.am-area__lists { display: grid; gap: 28px; }
.am-area__lists h3 { font-size: 19px; }

/* FAQ */
.am-faq { max-width: 860px; margin-inline: auto; }
.am-faq details { border-bottom: 1px solid var(--line); }
.am-faq summary {
	display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 20px 4px; cursor: pointer; list-style: none;
	font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.35;
}
.am-faq summary::-webkit-details-marker { display: none; }
.am-faq summary::after {
	content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563EB' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 18px no-repeat;
	transition: transform .2s;
}
.am-faq details[open] summary::after { transform: rotate(45deg); }
.am-faq details > div { padding: 0 4px 22px; color: var(--muted); max-width: 70ch; }
.am-faq__more { margin-top: 28px; text-align: center; }

/* Call-to-action band */
.am-cta { background: var(--navy); color: var(--white); padding-block: 56px; position: relative; overflow: hidden; }
.am-cta__inner { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .am-cta__inner { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.am-cta h2 { color: var(--white); }
.am-cta p { color: #C9DCE7; }
.am-cta__actions { display: grid; gap: 14px; justify-items: start; }
.am-cta__phone, .am-cta__phone:hover { display: inline-flex; gap: 12px; align-items: center; color: var(--gold); text-decoration: none; font-family: var(--font-head); font-weight: 700; font-size: clamp(28px, 4.5vw, 40px); letter-spacing: -.01em; }
.am-cta__phone .am-icon { width: 32px; height: 32px; }
.am-cta__hours { font-size: 15px; }
.am-cta--quiet { background: var(--navy); }

/* Contact block */
.am-contact { display: grid; gap: 14px; }
.am-contact { gap: 12px; }
.am-contact li { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow); }
.am-contact .am-icon { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--aqua); color: var(--blue); }
.am-contact span { display: grid; }
.am-contact strong { font-family: var(--font-head); font-size: 15px; color: var(--muted); font-weight: 600; }
.am-contact a { color: var(--navy); font-weight: 700; text-decoration: none; }
.am-contact a:hover { color: var(--blue); }
.am-contact a .am-icon { display: none; }

/* ---------- Pages ---------- */
.am-pagehead { background: linear-gradient(180deg, var(--aqua), var(--white)); padding-block: 48px 32px; }
.am-pagehead p { color: var(--muted); font-size: 20px; max-width: 40em; }
.am-prose { max-width: 820px; padding-bottom: var(--section); }
.am-prose h2 { font-size: clamp(24px, 3.5vw, 32px); margin-top: 1.6em; }
.am-prose h3 { margin-top: 1.4em; }
.am-prose ul { padding-left: 1.2em; }
.am-prose li { margin-bottom: .35em; }
.am-box { padding: 28px; border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow); }
.am-sticky { position: sticky; top: 100px; }
.am-note { padding: 18px 22px; background: var(--aqua); border-radius: var(--r-md); color: var(--navy); }

/* Tatortreinigung: quieter (design brief v4) */
.am-quiet .am-hero { background: var(--white); }
.am-quiet .am-cta__phone { color: var(--white); }
.am-quiet .am-ticks li::before { background: var(--navy); }

/* ---------- Forms (Forminator) ---------- */
/* Forminator prints the form hidden and reveals it from JS; on phones the Kontakt form sits above the fold, so the late reveal shifted the page (CLS 0.26). The fields are styled here, so show it at once. */
form.forminator-custom-form[style*="display: none"] { display: block !important; }
.forminator-ui.forminator-custom-form { font-family: var(--font-body) !important; }
.forminator-ui .forminator-label { font-family: var(--font-body) !important; font-weight: 700 !important; font-size: 16px !important; color: var(--navy) !important; }
.forminator-ui .forminator-input, .forminator-ui .forminator-textarea, .forminator-ui select {
	min-height: 52px !important; padding: 12px 16px !important; font-size: 17px !important; border: 1px solid var(--field-line) !important; border-radius: var(--r-field) !important; background: #F7F9FD !important; color: var(--navy) !important;
	transition: background-color .15s, border-color .15s;
}
.forminator-ui .forminator-button-submit {
	min-height: 52px !important; padding: 12px 28px !important; border-radius: var(--r-pill) !important; background: var(--blue) !important; color: var(--white) !important;
	font-family: var(--font-head) !important; font-weight: 600 !important; font-size: 17px !important;
}
.forminator-ui .forminator-button-submit:hover { background: var(--blue-dark) !important; }
.forminator-ui .forminator-error-message { color: var(--error) !important; }

/* ---------- Footer ---------- */
.am-footer { background: var(--navy); color: #C9DCE7; font-size: 16px; }
.am-footer__grid { display: grid; gap: 40px; padding-block: 64px 48px; }
@media (min-width: 768px) { .am-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .am-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; } }
.am-footer__brand p { margin-top: 16px; max-width: 34em; }
.am-footer__title { font-family: var(--font-head); font-size: 17px; color: var(--white); margin-bottom: 14px; }
.am-footer ul[role="list"] li { margin-bottom: 8px; }
.am-footer a { color: #E3EEF4; text-decoration: none; }
.am-footer a:hover { color: var(--white); text-decoration: underline; }
.am-footer p { margin-bottom: 8px; }
.am-footer__phone, .am-footer__phone:hover { display: inline-flex; gap: 8px; align-items: center; color: var(--gold) !important; font-family: var(--font-head); font-weight: 700; font-size: 20px; text-decoration: none !important; }
.am-footer__social { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 16px; }
.am-footer__social a { display: inline-flex; gap: 8px; align-items: center; }
.am-footer__social .am-icon { color: var(--sky); }
.am-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.am-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 20px; font-size: 15px; }
.am-footer__bottom ul { display: flex; gap: 20px; }

.am-box h3:not(:first-child) { margin-top: 1.2em; }

.am-grid-2--top { align-items: start; }
.am-box--aqua { background: var(--aqua); box-shadow: none; margin-top: 28px; }
.am-photo--portrait { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--r-card); box-shadow: var(--shadow-lift); }
.am-hero .am-wrap > h1 { max-width: 20ch; }

/* ---------- Core blocks (R26) ---------- */
.wp-block-image { margin: 0; }
.wp-block-image img { display: block; width: 100%; height: auto; }
.wp-block-image.am-photo img { border-radius: var(--r-card); object-fit: cover; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.am-hero__media .wp-block-image.am-photo img { aspect-ratio: 4 / 3.4; border-radius: var(--r-card); box-shadow: var(--shadow-lift); }
.wp-block-image.am-photo--portrait img { aspect-ratio: 3 / 4; max-height: 560px; }

.wp-block-buttons.am-actions { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; margin-top: 28px; }
.wp-block-button .wp-block-button__link { display: inline-flex; align-items: center; gap: .5em; min-height: 48px; border: 2px solid transparent; text-decoration: none; transition: background-color .15s, color .15s, box-shadow .15s; }
.wp-block-button.is-style-am-primary .wp-block-button__link:hover { box-shadow: var(--shadow); }
.wp-block-button.is-style-am-outline .wp-block-button__link { background: transparent; border-color: var(--blue); color: var(--blue); }
.wp-block-button.is-style-am-outline .wp-block-button__link:hover { background: var(--aqua); color: var(--blue-dark); }
.wp-block-button.is-style-am-light .wp-block-button__link { background: var(--white); color: var(--navy); }
.wp-block-button.is-style-am-light .wp-block-button__link:hover { background: var(--aqua); color: var(--navy); }
.wp-block-button.is-style-am-link .wp-block-button__link { background: none; padding: 0; min-height: 0; color: var(--blue); font-family: var(--font-body); font-weight: 700; font-size: 18px; }
.wp-block-button.is-style-am-link .wp-block-button__link::after { content: "→"; transition: transform .15s; }
.wp-block-button.is-style-am-link .wp-block-button__link:hover::after { transform: translateX(3px); }
.am-section--navy .wp-block-button.is-style-am-link .wp-block-button__link { color: var(--white); }


.am-call { margin: 18px 0 0; color: var(--muted); }
.am-call .am-textlink { color: var(--navy); }
.am-call--light, .am-call--light .am-textlink, .am-section--navy .am-call .am-textlink { color: var(--white); }
.am-section--navy .am-call { color: #C9DCE7; }

.am-faq details > :not(summary) { margin: 0; padding: 0 4px 22px; color: var(--muted); max-width: 70ch; }
.am-note { margin-top: 28px; }

/* ---------- Audit fixes, 29 Oct 2026 ---------- */
/* Browser surfaces in the palette */
::selection { background: var(--sky); color: var(--navy); }
html { accent-color: var(--blue); caret-color: var(--blue); scrollbar-color: var(--field-line) var(--aqua); }
p, li, dd, figcaption { text-wrap: pretty; }
.am-prose { max-width: 66ch; }

/* Trust strip: one calm band instead of six boxes */
.am-trust li { padding: 4px 0; background: none; border: 0; border-radius: 0; }
.am-trust { gap: 22px 32px; }
@media (max-width: 599px) {
	.am-trust { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
	.am-trust li { flex-direction: column; gap: 8px; }
	.am-trust .am-icon { width: 40px; height: 40px; padding: 9px; }
	.am-trust strong { font-size: 16px; }
	.am-trust span { font-size: 14px; }
}


/* Services: on phones the title, one line and the link are enough */
@media (max-width: 639px) {
	.am-service .am-ticks { display: none; }
	.am-service { padding: 20px; }
	.am-service__icon { width: 44px; height: 44px; padding: 10px; margin-bottom: 12px; }
	.am-service__more { padding-top: 12px; }
	.am-services { gap: 12px; }
}

/* Area: the map's labels are unreadable at phone width; the town lists carry it there */
@media (max-width: 639px) { .am-area__map { display: none; } }

/* Footer: two columns of lists on phones */
@media (max-width: 767px) {
	.am-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
	.am-footer__brand, .am-footer__grid > :last-child { grid-column: 1 / -1; }
}

/* Touch targets of at least 44 px */
.am-textlink, .am-contact a, .am-rating a, .am-footer__social a, .am-footer__phone { min-height: 44px; }
.am-contact a { display: inline-flex; align-items: center; }
.am-footer ul[role="list"] li { margin-bottom: 0; }
.am-footer ul[role="list"] a { display: inline-flex; align-items: center; min-height: 44px; }
.am-footer__bottom ul a { display: inline-flex; align-items: center; min-height: 44px; }
.wp-block-button.is-style-am-link .wp-block-button__link { min-height: 44px; }
.am-call .am-textlink { vertical-align: middle; }
.am-head--center .am-actions { justify-content: center; }

/* Forms: one column, own fonts, a real message box (audit 29 Oct 2026) */
.forminator-ui.forminator-custom-form .forminator-row { flex-direction: column; }
.forminator-ui.forminator-custom-form .forminator-row > .forminator-col { width: 100% !important; max-width: 100% !important; flex: 1 1 auto !important; }
.forminator-ui .forminator-input, .forminator-ui .forminator-textarea, .forminator-ui select,
.forminator-ui .forminator-input::placeholder, .forminator-ui .forminator-textarea::placeholder { font-family: var(--font-body) !important; }
.forminator-ui .forminator-input::placeholder, .forminator-ui .forminator-textarea::placeholder { color: var(--muted) !important; opacity: 1; }
.forminator-ui .forminator-textarea { min-height: 160px !important; }
.forminator-ui .forminator-checkbox { min-height: 36px; align-items: center; }
.forminator-ui .forminator-checkbox-label { font-size: 17px !important; color: var(--navy) !important; }
.forminator-ui.forminator-custom-form .forminator-row > .forminator-col + .forminator-col { margin-top: 22px; }
.am-contact + p, .am-contact + .am-box { margin-top: 24px; }

/* Numbered steps inside a page (Tatortreinigung) */
.am-numbered { margin: 0; padding: 0; list-style: none; counter-reset: n; display: grid; gap: 18px; }
.am-numbered li { position: relative; padding-left: 52px; counter-increment: n; }
.am-numbered li::before { content: counter(n); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 700; font-size: 17px; }

/* Header: menu items and the button never wrap; FAQ lives in the footer */
.am-nav__list a, .am-header__cta { white-space: nowrap; }
.am-footer .am-rating .am-stars { color: var(--gold); }
.am-faq__more .am-actions { justify-content: center; }
.am-footer__bottom ul { flex-wrap: wrap; gap: 0 18px; }
.am-ticks + p { margin-top: 18px; }
@media (min-width: 1024px) {
	.am-header__inner { gap: 14px; }
	.am-nav__list { gap: 0; }
	.am-nav__list a { padding-inline: 9px; }
	.am-header__actions { gap: 12px; }
}

/* Header never squeezes: items keep their width; the row has the same 1200 px width as the top bar and the content */
.am-header__inner > *, .am-header__actions > * { flex-shrink: 0; }
@media (max-width: 479px) {
	.am-header__inner { gap: 10px; }
	.am-header__actions { gap: 8px; }
	.am-header__inner > .am-logo { flex-shrink: 1; min-width: 0; gap: 10px; }
	.am-logo__text { font-size: 16px; }
	.am-burger, .am-header__phone { width: 44px; height: 44px; }
}

/* ---------- Design language from Abdul's video, 29 Oct 2026 ---------- */
/* Home hero: background video under a navy veil, text bottom-left, the facts row along the bottom edge */
.am-hero--video { display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; min-height: clamp(560px, calc(100svh - 76px - 68px), 820px); padding-block: 0; background: var(--navy); color: var(--white); }
@media (min-width: 768px) { .am-hero--video { min-height: clamp(600px, calc(100svh - 116px), 820px); } }
.am-hero__video { position: absolute; inset: 0; z-index: 0; background: var(--navy) var(--poster-s) center / cover no-repeat; }
@media (min-width: 768px) { .am-hero__video { background-image: var(--poster-l); } }
.am-hero__video video { display: block; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s cubic-bezier(.16, 1, .3, 1); }
.am-hero__video.is-playing video { opacity: 1; }
.am-hero__video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 30, 51, .5) 0%, rgba(15, 30, 51, .72) 50%, rgba(15, 30, 51, .92) 100%); }
@media (min-width: 960px) {
	.am-hero__video::after { background: linear-gradient(90deg, rgba(15, 30, 51, .9) 0%, rgba(15, 30, 51, .66) 48%, rgba(15, 30, 51, .2) 100%), linear-gradient(0deg, rgba(15, 30, 51, .75) 0%, transparent 38%); }
}
.am-hero--video > .am-wrap { position: relative; z-index: 1; pointer-events: none; }
.am-hero--video > .am-wrap > * { pointer-events: auto; }
.am-hero__inner { padding-block: 88px 36px; }
.am-hero--video h1 { max-width: 15ch; margin-bottom: .4em; color: var(--white); font-size: clamp(36px, 6.6vw, 66px); line-height: 1.05; letter-spacing: -.03em; }
.am-hero--video .am-hero__sub { max-width: 34em; color: #E2EAF4; }
.am-hero--video .am-actions { margin-top: 30px; }
.am-hero--video .wp-block-button.is-style-am-outline .wp-block-button__link { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.am-hero--video .wp-block-button.is-style-am-outline .wp-block-button__link:hover { border-color: var(--white); background: rgba(255, 255, 255, .12); color: var(--white); }
.am-hero--video .am-call { color: #D5DFEC; }
.am-hero__facts .am-trust { padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .2); }
.am-hero__facts .am-trust li { color: #C9D6E6; }
.am-hero__facts .am-trust strong { color: var(--white); font-size: 18px; }
.am-hero__facts .am-trust li + li { border-color: rgba(255, 255, 255, .16); }
.am-hero__pause { position: absolute; top: 20px; right: var(--gutter); z-index: 2; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .35); border-radius: var(--r-pill); background: rgba(15, 30, 51, .45); color: var(--white); cursor: pointer; transition: background-color .15s; }
.am-hero__pause:hover { background: rgba(15, 30, 51, .75); }
.am-hero__pause:focus-visible { outline-color: var(--white); }
.am-hero__pause .am-icon { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.am-hero__pause .am-hero__i-play, .am-hero__video.is-stopped .am-hero__i-pause { display: none; }
.am-hero__video.is-stopped .am-hero__i-play { display: block; }

/* Contact block at the end of the home page: contact cards beside the Kontakt form */
.am-contact-band .am-lead { margin-bottom: 28px; }
.am-box--form { padding: clamp(22px, 4vw, 36px); border: 1px solid var(--line); }
.am-box--form h3 { margin-bottom: 18px; }

/* Tags: towns of the area, as pills */
.am-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.am-chips li { padding: 7px 16px; border-radius: var(--r-pill); background: var(--aqua); color: var(--navy); font-size: 16px; line-height: 1.35; }

/* Form fields: soft fill, 12 px corners; the service checkboxes become toggle pills */
.forminator-ui .forminator-input:focus, .forminator-ui .forminator-textarea:focus { background: var(--white) !important; border-color: var(--blue) !important; }
.forminator-ui .forminator-field-checkbox .forminator-field { display: flex; flex-wrap: wrap; gap: 8px; }
.forminator-ui .forminator-field-checkbox .forminator-field > :not(.forminator-checkbox) { flex-basis: 100%; }
.forminator-ui label.forminator-checkbox { position: relative; display: inline-flex !important; align-items: center; gap: 8px; min-height: 44px; margin: 0 !important; padding: 8px 16px !important; border: 1px solid var(--field-line); border-radius: var(--r-pill); background: #F7F9FD; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.forminator-ui label.forminator-checkbox:hover { border-color: var(--blue); }
.forminator-ui label.forminator-checkbox input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.forminator-ui label.forminator-checkbox .forminator-checkbox-box { display: none !important; }
.forminator-ui label.forminator-checkbox .forminator-checkbox-label { margin: 0 !important; padding: 0 !important; font-size: 16px !important; line-height: 1.3 !important; }
.forminator-ui label.forminator-checkbox:has(input:checked) { border-color: var(--blue); background: var(--blue); }
.forminator-ui label.forminator-checkbox:has(input:checked) .forminator-checkbox-label { color: var(--white) !important; }
.forminator-ui label.forminator-checkbox:has(input:checked)::before { content: ""; width: 16px; height: 16px; background: var(--white); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat; }
.forminator-ui label.forminator-checkbox:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }


/* In-page anchors (#kontakt, #leistungen) land below the sticky header */
section[id] { scroll-margin-top: 92px; }

/* Button hovers keep their text colour: the global a:hover (blue-dark) otherwise beats the theme.json
   button hover, which WordPress wraps in :where(), and the label vanished on the blue-dark fill */
.wp-block-button .wp-block-button__link:hover, .wp-block-button .wp-block-button__link:focus-visible { color: var(--white); }
.wp-block-button.is-style-am-link .wp-block-button__link:hover { color: var(--blue-dark); }
.am-section--navy .wp-block-button.is-style-am-link .wp-block-button__link:hover,
.am-hero--video .wp-block-button.is-style-am-link .wp-block-button__link:hover { color: var(--white); }
.am-footer__bottom-inner { align-items: center; }
.am-footer__bottom-inner p { margin: 0; }
.am-footer__bottom-inner p a { text-decoration: underline; text-underline-offset: 3px; }
.am-footer__bottom-inner p a:hover { text-decoration-thickness: 2px; }
