/**
 * Alltagshilfe – ergänzende Styles.
 * Farben, Schriften und Abstände kommen aus theme.json
 * (änderbar unter Design → Editor → Stile).
 */

/* ---------- Icons (als Masken, Farbe = currentColor) ---------- */
:root {
	--ah-i-phone: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72c.13.96.36 1.9.7 2.81a2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45c.91.34 1.85.57 2.81.7A2 2 0 0 1 22 16.92z"/%3E%3C/svg%3E');
	--ah-i-chat: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M3 20.5l1.4-4.2A8.5 8.5 0 1 1 7.8 19.6Z"/%3E%3Cpath d="M8.5 9.5c.3 2.6 2.6 5 5.5 5.6l1.2-1.3 2 .9-.5 1.6c-4.4.2-8.6-3.8-8.9-8.2l1.6-.5.9 2Z" fill="%23000" stroke-width="1"/%3E%3C/svg%3E');
	--ah-i-mail: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Crect x="2.5" y="4.5" width="19" height="15" rx="2.5"/%3E%3Cpath d="m3 6.5 9 6.5 9-6.5"/%3E%3C/svg%3E');
	--ah-i-place: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21Z"/%3E%3Ccircle cx="12" cy="9.5" r="2.5"/%3E%3C/svg%3E');
	--ah-i-time: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3E%3Ccircle cx="12" cy="12" r="9.5"/%3E%3Cpath d="M12 7v5.2l3.4 2"/%3E%3C/svg%3E');
	--ah-i-check: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="m5 12.5 4.5 4.5L19 7.5"/%3E%3C/svg%3E');
	--ah-i-heart: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23fff" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"%3E%3Cpath d="M12 20.5s-8.5-5-8.5-11A4.8 4.8 0 0 1 12 6.6a4.8 4.8 0 0 1 8.5 2.9c0 6-8.5 11-8.5 11Z"/%3E%3C/svg%3E');
	--ah-radius-s: var(--wp--custom--radius--s, 10px);
	--ah-radius-m: var(--wp--custom--radius--m, 18px);
	--ah-radius-l: var(--wp--custom--radius--l, 28px);
	--ah-whatsapp: #157A42;
	--ah-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Grundlagen ---------- */
html {
	scroll-padding-top: 6.5rem;
	-webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
	html { scroll-behavior: smooth; }
}
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
::selection { background: var(--wp--preset--color--sage); color: var(--wp--preset--color--contrast); }

img { height: auto; }

:where(a, button, summary, input, textarea, select):focus-visible {
	outline: 3px solid var(--wp--preset--color--honey);
	outline-offset: 3px;
	border-radius: 6px;
}

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; width: 1px; word-wrap: normal !important;
}

/* Keine Lücken zwischen Header, Inhalt und Footer */
.wp-site-blocks > main,
.wp-site-blocks > footer,
.wp-site-blocks > .ah-site-footer { margin-block-start: 0; }
.ah-main > .wp-block-post-content,
.wp-block-post-content > .alignfull,
.wp-block-post-content > .ah-section + * { margin-block-start: 0; }
.ah-section + .ah-section { margin-block-start: 0; }

/* ---------- Header ---------- */
.ah-site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .9);
	-webkit-backdrop-filter: saturate(1.4) blur(12px);
	backdrop-filter: saturate(1.4) blur(12px);
	border-bottom: 1px solid rgba(28, 38, 33, .07);
}
.admin-bar .ah-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ah-site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .ah-site-header { top: 0; } }

.ah-header { padding-block: .85rem; }
.ah-header__inner { gap: 1.5rem; }
.ah-brand { gap: .75rem; min-width: 0; }
.ah-brand .wp-block-site-title { margin: 0; line-height: 1.15; }
.ah-brand .wp-block-site-title a { color: var(--wp--preset--color--contrast); }
.ah-header__actions { gap: clamp(.75rem, 2vw, 2rem); }
.ah-header__buttons { gap: .75rem; flex-wrap: nowrap; }
.ah-header__buttons .wp-block-button__link { padding: .7rem 1.25rem; font-size: 1rem; }

.ah-nav .wp-block-navigation-item__content {
	text-decoration: none;
	padding-block: .35rem;
	background-image: linear-gradient(currentColor, currentColor);
	background-size: 0 2px;
	background-position: 0 100%;
	background-repeat: no-repeat;
	transition: background-size .25s var(--ah-ease), color .2s;
}
.ah-nav .wp-block-navigation-item__content:hover,
.ah-nav .wp-block-navigation-item__content:focus-visible { background-size: 100% 2px; color: var(--wp--preset--color--primary); }

/* Mobiles Menü */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
	width: 48px; height: 48px;
	align-items: center; justify-content: center;
	border-radius: 999px;
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--primary-dark);
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg { width: 28px; height: 28px; }
.wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem clamp(1.25rem, 6vw, 3rem) 2rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4.5rem;
	gap: 1.25rem;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
	font-size: 1.6rem;
	font-weight: 600;
}

/* Telefon im Header */
.ah-btn-phone .wp-block-button__link {
	display: inline-flex; align-items: center; gap: .5rem;
}
@media (max-width: 899px) {
	.ah-btn-cta { display: none; }
}
@media (max-width: 599px) {
	.ah-btn-phone .wp-block-button__link {
		font-size: 0; gap: 0; width: 48px; height: 48px; padding: 0 !important;
		justify-content: center; border-radius: 999px;
		background: var(--wp--preset--color--primary) !important; color: #fff !important;
	}
	.ah-btn-phone .wp-block-button__link::before { width: 22px; height: 22px; color: #fff; }
	.ah-brand .wp-block-site-title { font-size: 1.15rem; }
	.ah-brand .wp-block-site-logo img { width: 40px !important; }
}

/* ---------- Buttons ---------- */
.wp-block-button__link {
	box-sizing: border-box;
	min-height: 52px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .6rem;
	text-align: center;
	text-decoration: none;
	transition: background-color .2s, color .2s, box-shadow .25s var(--ah-ease), transform .25s var(--ah-ease);
}
.wp-block-button:not(.is-style-ah-textlink) .wp-block-button__link:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(30, 74, 54, .18); }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--primary);
	border: 2px solid currentColor;
	padding: calc(.95rem - 2px) calc(1.75rem - 2px);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--primary-dark);
}
.wp-block-button.is-style-ah-light > .wp-block-button__link {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--primary-dark);
}
.wp-block-button.is-style-ah-light > .wp-block-button__link:hover { background: var(--wp--preset--color--cream); }

.wp-block-button.is-style-ah-whatsapp > .wp-block-button__link {
	background: var(--ah-whatsapp);
	color: #fff;
}
.wp-block-button.is-style-ah-whatsapp > .wp-block-button__link:hover { background: #0F5F32; }

.wp-block-button.is-style-ah-textlink > .wp-block-button__link {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding-inline: .25rem;
	min-height: 48px;
	font-weight: 700;
}
.wp-block-button.is-style-ah-textlink > .wp-block-button__link:hover { color: var(--wp--preset--color--primary); }

/* Icons in Buttons */
.ah-btn-phone .wp-block-button__link::before,
.ah-btn-icon .wp-block-button__link::before,
.is-style-ah-whatsapp .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 1.2em; height: 1.2em;
	background: currentColor;
	-webkit-mask: var(--ah-i-phone) center / contain no-repeat;
	mask: var(--ah-i-phone) center / contain no-repeat;
}
.ah-btn-phone .wp-block-button__link::before { color: var(--wp--preset--color--primary); }
.is-style-ah-whatsapp .wp-block-button__link::before { -webkit-mask-image: var(--ah-i-chat); mask-image: var(--ah-i-chat); }
.ah-btn-icon--mail .wp-block-button__link::before { -webkit-mask-image: var(--ah-i-mail); mask-image: var(--ah-i-mail); }

.ah-center { justify-content: center; margin-top: var(--wp--preset--spacing--60) !important; }

.ah-buttons-stack { flex-direction: column; align-items: stretch; gap: .75rem; }
.ah-buttons-stack .wp-block-button,
.ah-buttons-stack .wp-block-button__link { width: 100%; }

/* ---------- Typografie-Helfer ---------- */
p.is-style-ah-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	margin-bottom: 0;
	padding: .4rem .95rem;
	border-radius: 999px;
	background: var(--wp--preset--color--mint);
	color: var(--wp--preset--color--primary-dark);
	font-size: .9rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	line-height: 1.3;
}
p.is-style-ah-eyebrow::before {
	content: ""; width: .5rem; height: .5rem; border-radius: 50%;
	background: var(--wp--preset--color--honey);
}
.ah-lead { color: var(--wp--preset--color--muted); }

.ah-note {
	max-width: 760px;
	margin-inline: auto !important;
	margin-top: var(--wp--preset--spacing--50) !important;
	padding: 1.1rem 1.4rem;
	border-radius: var(--ah-radius-m);
	background: var(--wp--preset--color--cream);
	border: 1px solid var(--wp--preset--color--sand);
	color: var(--wp--preset--color--muted);
	font-size: 1rem;
}

/* Häkchen-Liste */
ul.is-style-ah-checklist {
	list-style: none;
	padding-left: 0;
}
ul.is-style-ah-checklist li {
	position: relative;
	padding-left: 2.1rem;
	margin-bottom: .5rem;
}
ul.is-style-ah-checklist li::before {
	content: "";
	position: absolute; left: 0; top: .2em;
	width: 1.45rem; height: 1.45rem; border-radius: 50%;
	background: var(--wp--preset--color--primary) var(--ah-i-check) center / 62% no-repeat;
}

/* ---------- Abschnitte ---------- */
.ah-section {
	padding-block: var(--wp--preset--spacing--70);
	position: relative;
}
.ah-section-head {
	text-align: center;
	margin-bottom: var(--wp--preset--spacing--60);
}
.ah-section-head > * { margin-inline: auto !important; }
.ah-section-head > .has-large-font-size { color: var(--wp--preset--color--muted); max-width: 680px; }
.ah-section-head h2 { margin-top: 1.1rem; }

/* Raster */
.ah-grid { gap: clamp(1.25rem, 2.5vw, 2rem); }

/* ---------- Hero ---------- */
.ah-hero {
	padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--70);
	overflow: hidden;
}
.ah-hero__grid { gap: clamp(2rem, 6vw, 5rem); }
.ah-hero h1 { margin-top: 1.25rem; text-wrap: balance; }
.ah-hero .ah-lead { max-width: 36em; }
.ah-hero__buttons { margin-top: 2rem; gap: .9rem; }
.ah-hero__trust {
	display: flex; flex-wrap: wrap; gap: .35rem 1.75rem;
	margin-top: 2rem !important;
	font-size: 1rem; font-weight: 500; color: var(--wp--preset--color--muted);
}
.ah-hero__trust li { margin-bottom: 0; }
.ah-hero__media { position: relative; }
.ah-hero__image { margin: 0; }
.ah-hero__badge {
	position: absolute;
	left: clamp(-1rem, -2vw, 0rem);
	bottom: 2.5rem;
	gap: .9rem;
	padding: 1rem 1.25rem 1rem 1rem;
	background: var(--wp--preset--color--base);
	border-radius: var(--ah-radius-m);
	box-shadow: var(--wp--preset--shadow--lifted);
	max-width: 290px;
}
.ah-hero__badge::before {
	content: ""; flex: none;
	width: 48px; height: 48px; border-radius: 14px;
	background: var(--wp--preset--color--honey) var(--ah-i-heart) center / 52% no-repeat;
}
.ah-hero__badge p { margin: 0; font-size: 1rem; line-height: 1.4; color: var(--wp--preset--color--muted); }
.ah-hero__badge strong { color: var(--wp--preset--color--contrast); font-size: 1.05rem; }

@media (max-width: 781px) {
	.ah-hero__media { margin-top: 1rem; }
	.ah-hero__badge { position: relative; left: auto; bottom: auto; margin: -2.5rem auto 0 !important; }
}

/* Bild in Bogenform */
.wp-block-image.is-style-ah-blob img {
	width: 100%;
	border-radius: 999px 999px var(--ah-radius-l) var(--ah-radius-l);
	box-shadow: var(--wp--preset--shadow--soft);
}

/* ---------- Karten ---------- */
.is-style-ah-card,
.is-style-ah-card-soft {
	padding: clamp(1.5rem, 3vw, 2.25rem);
	border-radius: var(--ah-radius-l);
	background: var(--wp--preset--color--base);
	border: 1px solid rgba(28, 38, 33, .07);
	box-shadow: var(--wp--preset--shadow--soft);
	transition: transform .3s var(--ah-ease), box-shadow .3s var(--ah-ease);
}
.is-style-ah-card-soft { background: var(--wp--preset--color--mint); border-color: transparent; box-shadow: none; }
.is-style-ah-card:hover { transform: translateY(-4px); box-shadow: var(--wp--preset--shadow--lifted); }
.is-style-ah-card > :first-child { margin-top: 0; }
.is-style-ah-card h3 { margin-top: 1.25rem; margin-bottom: .6rem; }
.is-style-ah-card p { color: var(--wp--preset--color--muted); margin-top: 0; }
.is-style-ah-card > :last-child { margin-bottom: 0; }

.is-style-ah-panel { border-radius: var(--ah-radius-l); overflow: hidden; }

.wp-block-image.is-style-ah-icon {
	width: 72px; height: 72px;
	display: grid; place-items: center;
	margin: 0;
	border-radius: 22px;
	background: var(--wp--preset--color--mint);
}
.wp-block-image.is-style-ah-icon img {
	width: 40px; height: 40px;
	object-fit: contain;
	border-radius: 0 !important;
}
.is-style-ah-card:hover .wp-block-image.is-style-ah-icon { background: var(--wp--preset--color--sand); }

/* ---------- Über uns ---------- */
.ah-about__grid { gap: clamp(2rem, 6vw, 5rem); }
.ah-about h2 { margin-top: 1.1rem; }
.ah-values { margin-top: var(--wp--preset--spacing--60) !important; }
.ah-values .is-style-ah-card h3 {
	display: flex; flex-direction: column; gap: .9rem;
	margin-top: 0;
	font-size: 1.2rem;
}
.ah-values .is-style-ah-card h3::before {
	content: "";
	width: 2.5rem; height: 2.5rem; border-radius: 50%;
	background: var(--wp--preset--color--primary) var(--ah-i-check) center / 50% no-repeat;
}

/* ---------- Ablauf ---------- */
.ah-steps__grid { gap: clamp(1.25rem, 3vw, 2.5rem); counter-reset: none; }
.ah-step {
	position: relative;
	padding: 2.25rem 2rem 2rem;
	border-radius: var(--ah-radius-l);
	background: var(--wp--preset--color--cream);
}
.ah-step h3 { margin-top: 1.25rem; margin-bottom: .5rem; }
.ah-step p:not(.is-style-ah-step) { color: var(--wp--preset--color--muted); margin: 0; }
p.is-style-ah-step {
	display: grid; place-items: center;
	width: 4rem; height: 4rem; margin: 0;
	border-radius: 50%;
	background: var(--wp--preset--color--primary);
	color: #fff;
	font-size: 1.6rem; font-weight: 700; line-height: 1;
	box-shadow: 0 0 0 8px var(--wp--preset--color--mint);
}
@media (min-width: 782px) {
	.ah-step:not(:last-child)::after {
		content: "";
		position: absolute;
		top: 4.25rem; right: calc(-1 * clamp(1.25rem, 3vw, 2.5rem));
		width: clamp(1.25rem, 3vw, 2.5rem); height: 2px;
		background: repeating-linear-gradient(90deg, var(--wp--preset--color--sage) 0 6px, transparent 6px 12px);
	}
}

/* ---------- Kontakt ---------- */
.ah-contact {
	position: relative;
	overflow: hidden;
	padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 6vw, 5rem) !important;
	border-radius: clamp(24px, 3vw, 40px);
}
.ah-contact::before,
.ah-contact::after {
	content: ""; position: absolute; border-radius: 50%; pointer-events: none;
	background: rgba(255, 255, 255, .06);
}
.ah-contact::before { width: 420px; height: 420px; right: -120px; top: -160px; }
.ah-contact::after { width: 260px; height: 260px; left: -90px; bottom: -120px; background: rgba(201, 138, 62, .16); }
.ah-contact__grid { position: relative; z-index: 1; gap: clamp(2rem, 5vw, 4rem); }
.ah-contact :where(h2, p) { color: inherit; }
.ah-contact h2 { margin-top: 1.1rem; }
.ah-contact p.is-style-ah-eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.ah-contact > .wp-block-columns .has-large-font-size { opacity: .92; }
.ah-contact__card {
	padding: clamp(1.5rem, 3vw, 2.25rem) !important;
	border-radius: var(--ah-radius-l);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .18);
}
.ah-contact__card > * { max-width: none !important; }
.ah-contact > * { max-width: none !important; }
.ah-contact__label {
	margin: 0;
	font-size: .9rem !important; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
	color: var(--wp--preset--color--muted) !important;
}
.ah-contact__number { margin-top: .25rem !important; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.01em; }
.ah-contact__number a { color: var(--wp--preset--color--primary-dark); text-decoration: none; }
.ah-contact__number a:hover { text-decoration: underline; }
.ah-contact .ah-line--time { margin-top: 1.5rem; font-weight: 600; }

/* Kontaktzeilen mit Icon (Footer & Kontakt) */
.ah-line { position: relative; padding-left: 2rem; margin: .5rem 0 !important; }
.ah-line::before {
	content: ""; position: absolute; left: 0; top: .2em;
	width: 1.25rem; height: 1.25rem;
	background: currentColor; opacity: .85;
	-webkit-mask: var(--ah-i-phone) center / contain no-repeat;
	mask: var(--ah-i-phone) center / contain no-repeat;
}
.ah-line--whatsapp::before { -webkit-mask-image: var(--ah-i-chat); mask-image: var(--ah-i-chat); }
.ah-line--mail::before { -webkit-mask-image: var(--ah-i-mail); mask-image: var(--ah-i-mail); }
.ah-line--place::before { -webkit-mask-image: var(--ah-i-place); mask-image: var(--ah-i-place); }
.ah-line--time::before { -webkit-mask-image: var(--ah-i-time); mask-image: var(--ah-i-time); }

/* ---------- FAQ ---------- */
.ah-faq__list > * + * { margin-block-start: .9rem !important; }
.wp-block-details {
	background: var(--wp--preset--color--base);
	border: 1px solid rgba(28, 38, 33, .08);
	border-radius: var(--ah-radius-m);
	padding: 0;
	transition: box-shadow .25s var(--ah-ease);
}
.wp-block-details[open] { box-shadow: var(--wp--preset--shadow--soft); }
.wp-block-details summary {
	position: relative;
	list-style: none;
	cursor: pointer;
	padding: 1.25rem 4rem 1.25rem 1.5rem;
	font-size: var(--wp--preset--font-size--large);
	font-weight: 600;
	line-height: 1.35;
	border-radius: var(--ah-radius-m);
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after {
	content: "";
	position: absolute; right: 1.25rem; top: 50%;
	width: 2rem; height: 2rem; margin-top: -1rem;
	border-radius: 50%;
	background:
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 12px 2px no-repeat,
		linear-gradient(var(--wp--preset--color--primary), var(--wp--preset--color--primary)) center / 2px 12px no-repeat,
		var(--wp--preset--color--mint);
	transition: transform .3s var(--ah-ease);
}
.wp-block-details[open] summary::after {
	transform: rotate(45deg);
}
.wp-block-details summary:hover { color: var(--wp--preset--color--primary); }
.wp-block-details > :not(summary) {
	margin: 0 1.5rem 1.4rem;
	color: var(--wp--preset--color--muted);
}
.ah-faq p.is-style-ah-eyebrow { background: var(--wp--preset--color--base); }
.ah-faq__more { text-align: center; margin-top: var(--wp--preset--spacing--50) !important; }

/* ---------- Footer ---------- */
.ah-footer {
	padding-top: var(--wp--preset--spacing--70);
	padding-bottom: 2rem;
	font-size: 1.0625rem;
}
.ah-footer a { color: inherit; text-decoration: none; }
.ah-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ah-footer__cols { gap: clamp(2rem, 4vw, 3.5rem); }
.ah-footer .wp-block-site-title a { color: #fff; }
.ah-footer__about { opacity: .85; max-width: 26em; }
.ah-footer__heading {
	color: #fff !important;
	margin-bottom: 1rem;
	font-weight: 700;
}
.ah-footer__nav { gap: .55rem; }
.ah-footer__nav .wp-block-navigation-item__content { padding: .15rem 0; }
.ah-footer__bottom {
	margin-top: var(--wp--preset--spacing--60) !important;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(250, 246, 238, .18);
	font-size: .95rem;
	opacity: .8;
	gap: .5rem 2rem;
}
.ah-footer__bottom p { margin: 0; }

/* Schwebender WhatsApp-Button (nur im Frontend fixiert) */
.wp-site-blocks .ah-float {
	position: fixed;
	right: clamp(1rem, 2.5vw, 1.75rem);
	bottom: clamp(1rem, 2.5vw, 1.75rem);
	z-index: 60;
	margin: 0;
}
.ah-float .wp-block-button__link {
	box-shadow: 0 12px 30px rgba(21, 122, 66, .35);
	padding: .9rem 1.4rem;
}
.ah-float .wp-block-button__link::before { width: 1.5rem; height: 1.5rem; }
@media (max-width: 781px) {
	.wp-site-blocks .ah-float .wp-block-button__link {
		width: 60px; height: 60px; padding: 0;
		border-radius: 50%;
		font-size: 0; gap: 0;
	}
	.ah-float .wp-block-button__link::before { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
	.wp-site-blocks .ah-float { animation: ah-pop .6s .8s var(--ah-ease) both; }
}
@keyframes ah-pop { from { opacity: 0; transform: translateY(16px) scale(.9); } }

/* ---------- Unterseiten ---------- */
.ah-page-head {
	padding-block: var(--wp--preset--spacing--60);
}
.ah-page-head h1 { font-size: var(--wp--preset--font-size--xx-large); }
.ah-page-content { padding-bottom: var(--wp--preset--spacing--70); }
.ah-page-content > :first-child:not(.alignfull) { margin-top: var(--wp--preset--spacing--60); }
.ah-page-content > .alignfull:last-child { margin-bottom: calc(-1 * var(--wp--preset--spacing--70)); }
.ah-featured { margin-top: var(--wp--preset--spacing--50) !important; }
.ah-featured img { border-radius: var(--ah-radius-l); }
.ah-query { padding-block: var(--wp--preset--spacing--60); }
.ah-index-title { margin: 0; }

/* ---------- Dezente Animationen ---------- */
@media (prefers-reduced-motion: no-preference) {
	.ah-hero__text > * { animation: ah-rise .8s var(--ah-ease) both; }
	.ah-hero__text > :nth-child(2) { animation-delay: .08s; }
	.ah-hero__text > :nth-child(3) { animation-delay: .16s; }
	.ah-hero__text > :nth-child(4) { animation-delay: .24s; }
	.ah-hero__text > :nth-child(5) { animation-delay: .32s; }
	.ah-hero__media { animation: ah-fade 1s .2s var(--ah-ease) both; }

	@supports (animation-timeline: view()) {
		.ah-grid > *, .ah-step, .wp-block-details, .ah-contact {
			animation: ah-rise linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 40%;
		}
	}
}
@keyframes ah-rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes ah-fade { from { opacity: 0; transform: scale(.97); } }

/* ---------- Editor: Animationen aus ---------- */
.editor-styles-wrapper .ah-hero__text > *,
.editor-styles-wrapper .ah-hero__media,
.editor-styles-wrapper .ah-grid > *,
.editor-styles-wrapper .ah-step,
.editor-styles-wrapper .wp-block-details,
.editor-styles-wrapper .ah-contact { animation: none !important; }

/* ---------- Druck ---------- */
@media print {
	.ah-site-header, .ah-float, .wp-block-navigation { display: none !important; }
	.ah-section { padding-block: 1.5rem; }
}
