/*
 * Allianzpraxis Teichmüller
 * Gestaltung der Abschnitte. Farben, Schriften und Größen kommen aus theme.json
 * (--wp--preset--…), damit Änderungen im Website-Editor überall greifen.
 */

:root {
	--ap-marine: var(--wp--preset--color--marine, #233567);
	--ap-rot: var(--wp--preset--color--rot, #b73942);
	--ap-rot-dunkel: var(--wp--preset--color--rot-dunkel, #98343c);
	--ap-grau: var(--wp--preset--color--grau, #989798);
	--ap-hell: var(--wp--preset--color--hell, #f1f4fa);
	--ap-nacht: var(--wp--preset--color--nacht, #1F2C51);
	--ap-text: var(--wp--preset--color--text, #1f253c);
	--ap-gedaempft: var(--wp--preset--color--text-gedaempft, #3d4560);
	--ap-leise: var(--wp--preset--color--text-leise, #4a5270);
	--ap-himmel: var(--wp--preset--color--himmel, #d5dbee);
	--ap-rahmen: var(--wp--preset--color--rahmen, #e3e6ef);
	--ap-rahmen-stark: var(--wp--preset--color--rahmen-stark, #c9cedd);
	--ap-weiss: var(--wp--preset--color--weiss, #fff);
	--ap-feldrahmen: #7c86a3;
	--ap-fokus: #5b78d6;
	--ap-kopf: var(--wp--preset--font-family--figtree, Figtree, system-ui, sans-serif);
	--ap-r-karte: var(--wp--custom--radius--karte, 22px);
	--ap-r-flaeche: var(--wp--custom--radius--flaeche, 32px);
	--ap-r-feld: var(--wp--custom--radius--feld, 8px);
	--ap-breite: var(--wp--style--global--wide-size, 1200px);
	--ap-kopfhoehe: 76px;

	--ap-icon-menue: 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'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
	--ap-icon-pfeil: 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	--ap-icon-start: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5M5.5 10v10h13V10'/%3E%3C/svg%3E");
	--ap-icon-kinder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M9 14.5c.8 1 1.8 1.5 3 1.5s2.2-.5 3-1.5M9.5 10.2v.1M14.5 10.2v.1'/%3E%3C/svg%3E");
	--ap-icon-therapien: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7Z'/%3E%3Cpath d='M3.5 12h6l.5-1 2 4.5 2-7 1.5 3.5h5'/%3E%3C/svg%3E");
	--ap-icon-termin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='15' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E");
	--ap-icon-team: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8.5' r='3.2'/%3E%3Cpath d='M3 20c0-3.3 2.7-5.5 6-5.5s6 2.2 6 5.5M16 5.6a3.2 3.2 0 0 1 0 5.8M17.5 14.8c2.1.7 3.5 2.6 3.5 5.2'/%3E%3C/svg%3E");
	--ap-icon-telefon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E");
	--ap-icon-haken: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m7.5 12.5 3 3 6-6.5'/%3E%3C/svg%3E");
}

/* ---------- Grundlagen ---------- */

html {
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--ap-kopfhoehe) + var(--wp-admin--admin-bar--height, 0px) + 8px);
}

body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1,
h2,
.ap-balance {
	text-wrap: balance;
}

p {
	text-wrap: pretty;
}

:where(a, button, input, textarea, select, summary):focus-visible {
	outline: 3px solid var(--ap-fokus);
	outline-offset: 2px;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.skip-link.screen-reader-text:focus {
	background: var(--ap-weiss);
	color: var(--ap-marine);
	padding: 12px 16px;
	border-radius: 8px;
	font-weight: 600;
	box-shadow: var(--wp--preset--shadow--menue);
	z-index: 100;
}

/* ---------- Bausteine ---------- */

/* Abschnitt in voller Breite, Inhalt auf 1200 px begrenzt. */
body .ap-section {
	margin-block: 0;
}

.ap-section--hell {
	background: var(--ap-hell);
}

.ap-section--marine {
	background: var(--ap-marine);
	color: var(--ap-weiss);
}

body .ap-wrap {
	box-sizing: border-box;
	max-width: var(--ap-breite);
	margin-inline: auto;
	padding: 96px 24px;
	display: flex;
	flex-direction: column;
	gap: 48px;
}

/* Abstände regeln die Bausteine selbst (gap), nicht der Block-Abstand. */
body :is(.ap-wrap, .ap-stack, .ap-split, .ap-grid, .ap-row, .ap-card, .ap-kachel, .ap-flaeche, .ap-stat, .ap-brand, .ap-header__bar, .ap-header__aktionen, .ap-infozeile__bar, .ap-footer__bar, .ap-footer__kopf, .ap-hero__buehne, .ap-person, .ap-person__text) > * {
	margin-block: 0;
}

.ap-stack {
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
}

.ap-stack--start {
	align-items: flex-start;
}

.ap-split {
	display: flex;
	flex-wrap: wrap;
	gap: 40px 72px;
	align-items: flex-start;
}

.ap-split > * {
	flex: 1 1 360px;
	min-width: 0;
}

.ap-split > .ap-split__breit {
	flex: 1.4 1 440px;
}

.ap-split--unten {
	align-items: flex-end;
	gap: 24px 72px;
}

.ap-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 20px;
}

.ap-grid--schmal {
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
}

.ap-grid--kontakt {
	grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
	gap: 24px;
}

/* Dachzeile über Abschnittstiteln */
.is-style-dachzeile {
	font-family: var(--ap-kopf);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.26em;
	text-transform: uppercase;
	color: var(--ap-rot-dunkel);
}

.ap-section--marine .is-style-dachzeile,
.ap-flaeche--marine .is-style-dachzeile {
	color: var(--ap-himmel);
}

/* Kennzeichen (kleine Pillen) */
.is-style-kennzeichen,
.is-style-kennzeichen-hell,
.is-style-kennzeichen-punkt {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	width: fit-content;
	border-radius: 999px;
	font-family: var(--ap-kopf);
	font-weight: 600;
}

.is-style-kennzeichen {
	padding: 6px 14px;
	background: var(--ap-rot);
	color: var(--ap-weiss);
	font-size: 0.875rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.is-style-kennzeichen-hell {
	padding: 4px 12px;
	background: var(--ap-hell);
	color: var(--ap-marine);
	font-size: 0.8125rem;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.is-style-kennzeichen-punkt {
	gap: 10px;
	padding: 8px 16px;
	background: var(--ap-hell);
	color: var(--ap-marine);
	font-size: 0.9375rem;
}

.is-style-kennzeichen-punkt::before {
	content: "";
	flex: 0 0 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--ap-rot);
}

.is-style-hinweis {
	padding: 16px 18px;
	border: 1px solid var(--ap-rahmen-stark);
	border-radius: 10px;
	font-size: 1rem;
	color: var(--ap-gedaempft);
}

.ap-section--marine .is-style-hinweis {
	border-color: #5468a6;
	color: var(--ap-himmel);
}

.ap-leise {
	font-size: 1rem;
	color: var(--ap-leise);
}

.ap-gedaempft {
	color: var(--ap-gedaempft);
}

/* Chips */
ul.is-style-chips {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

ul.is-style-chips > li {
	margin: 0;
	padding: 7px 14px;
	background: var(--ap-hell);
	border-radius: 999px;
	font-size: 1rem;
}

.ap-section--hell ul.is-style-chips {
	gap: 10px;
}

.ap-section--hell ul.is-style-chips > li {
	padding: 8px 16px;
	background: var(--ap-weiss);
	border: 1px solid var(--ap-rahmen-stark);
}

.ap-flaeche--marine ul.is-style-chips > li,
.ap-section--marine ul.is-style-chips > li {
	padding: 8px 16px;
	background: transparent;
	border: 1.5px solid #8c9bcb;
	font-weight: 600;
	color: var(--ap-weiss);
}

/* Schritte (nummerierte Liste) */
ol.is-style-schritte {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: ap-schritt;
	display: flex;
	flex-direction: column;
	gap: 18px;
}

ol.is-style-schritte > li {
	counter-increment: ap-schritt;
	position: relative;
	margin: 0;
	padding-left: 52px;
	min-height: 36px;
	font-size: 1rem;
	color: var(--ap-gedaempft);
}

ol.is-style-schritte > li strong {
	font-size: 1.0625rem;
	color: var(--ap-marine);
}

ol.is-style-schritte > li::before {
	content: counter(ap-schritt);
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: var(--ap-marine);
	color: var(--ap-weiss);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ap-kopf);
	font-weight: 700;
	font-size: 1.0625rem;
}

.ap-section--marine ol.is-style-schritte > li {
	color: var(--ap-himmel);
}

.ap-section--marine ol.is-style-schritte > li strong {
	color: var(--ap-weiss);
}

.ap-section--marine ol.is-style-schritte > li::before {
	background: var(--ap-weiss);
	color: var(--ap-marine);
}

/* Karten */
.ap-card {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding: 28px;
	border-radius: var(--ap-r-karte);
	border: 1px solid var(--ap-rahmen);
	background: var(--ap-weiss);
	min-width: 0;
}

.ap-card--hell {
	background: var(--ap-hell);
	border-color: transparent;
}

.ap-card--marine {
	background: var(--ap-marine);
	border-color: transparent;
	color: var(--ap-himmel);
}

.ap-card--marine :is(h2, h3, h4) {
	color: var(--ap-weiss);
}

.ap-card--marine a {
	color: var(--ap-weiss);
}

.ap-card--marine a:hover {
	color: var(--ap-himmel);
}

.ap-card > .ap-card__fuellen {
	flex-grow: 1;
}

.ap-card > .ap-card__unten {
	margin-top: auto;
}

.ap-card p {
	color: var(--ap-gedaempft);
}

.ap-card--marine p {
	color: var(--ap-himmel);
}

.ap-card--marine p.is-style-kennzeichen {
	color: var(--ap-weiss);
}

/* Textlink als Aktion */
.ap-link {
	font-family: var(--ap-kopf);
	font-size: 1.0625rem;
	font-weight: 600;
}

.ap-link a {
	display: inline-block;
	padding: 12px 0;
}

/* Zweiter, leiserer Link in Karten (z. B. Termin neben „Mehr zu …“) */
.ap-link--leise {
	font-size: 0.9375rem;
	font-weight: 500;
}

.ap-card > .ap-link + .ap-link--leise {
	margin-top: -20px;
}

/* ---------- Buttons ---------- */

.wp-block-button__link,
.wp-element-button {
	box-sizing: border-box;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 56px;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.12s ease;
}

.wp-block-button__link:active,
.wp-element-button:active {
	transform: scale(0.97);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	padding: calc(1.0625rem - 2px) calc(1.75rem - 2px);
	background: var(--ap-weiss);
	color: var(--ap-marine);
	border: 2px solid var(--ap-marine);
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: #eef1f8;
	color: var(--ap-marine);
}

:is(.ap-section--marine, .ap-flaeche--marine) .wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--ap-weiss);
	border-color: var(--ap-weiss);
}

:is(.ap-section--marine, .ap-flaeche--marine) .wp-block-button.is-style-outline > .wp-block-button__link:hover,
:is(.ap-section--marine, .ap-flaeche--marine) .wp-block-button.is-style-outline > .wp-block-button__link:focus-visible {
	background: var(--ap-weiss);
	color: var(--ap-marine);
}

.wp-block-button.is-klein > .wp-block-button__link {
	min-height: 48px;
	padding-block: 0.75rem;
	padding-inline: 1.375rem;
	font-size: 1rem;
}

.wp-block-button.ap-telefon-button > .wp-block-button__link {
	gap: 12px;
	font-size: 1.1875rem;
	font-variant-numeric: tabular-nums;
}

.wp-block-button.ap-telefon-button > .wp-block-button__link::before {
	content: "";
	flex: 0 0 20px;
	height: 20px;
	background: currentColor;
	-webkit-mask: var(--ap-icon-telefon) center / contain no-repeat;
	mask: var(--ap-icon-telefon) center / contain no-repeat;
}

/* ---------- Infozeile ---------- */

.ap-infozeile {
	background: var(--ap-marine);
	color: var(--ap-himmel);
	font-size: 0.9375rem;
}

.ap-infozeile__bar {
	box-sizing: border-box;
	max-width: var(--ap-breite);
	margin-inline: auto;
	padding: 8px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
	align-items: center;
}

.ap-infozeile a {
	display: inline-block;
	padding: 6px 0;
	color: var(--ap-weiss);
	font-weight: 600;
	text-decoration: none;
}

.ap-infozeile a:hover {
	text-decoration: underline;
}

.ap-infozeile__telefon {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 12px;
}

.ap-infozeile__ellie {
	margin: 0;
	padding: 3px 10px;
	border-radius: 999px;
	background: var(--ap-rot);
	color: var(--ap-weiss);
	font-size: 0.8125rem;
	font-weight: 600;
	white-space: nowrap;
}

/* ---------- Kopfzeile ---------- */

.wp-site-blocks > header.wp-block-template-part {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 20;
	background: var(--ap-weiss);
	border-bottom: 1px solid var(--ap-rahmen);
}

.ap-header__bar {
	box-sizing: border-box;
	max-width: var(--ap-breite);
	margin-inline: auto;
	padding: 12px 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.ap-header__aktionen {
	display: flex;
	align-items: center;
	gap: 10px;
}

.ap-header__aktionen .wp-block-buttons {
	margin: 0;
}

.ap-header__aktionen .wp-block-button__link {
	min-height: 48px;
	padding: 0.75rem 1.375rem;
	font-size: 1rem;
	white-space: nowrap;
}

/* Marke: Emblem und Schriftzug */
.ap-brand {
	position: relative;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 48px;
}

.ap-brand .wp-block-image {
	margin: 0;
	flex: 0 0 auto;
}

.ap-brand .wp-block-image img {
	display: block;
	height: 44px;
	width: auto;
}

.ap-brand__schrift {
	display: flex;
	flex-direction: column;
	gap: 3px;
	font-family: var(--ap-kopf);
	font-weight: 600;
	text-transform: uppercase;
	color: var(--ap-marine);
}

body .ap-brand__schrift > * {
	margin: 0;
	line-height: 1;
}

.ap-brand__schrift > :first-child {
	font-size: 0.9375rem;
	letter-spacing: 0.22em;
	padding-bottom: 3px;
	border-bottom: 2px solid var(--ap-grau);
}

.ap-brand__schrift > :last-child {
	font-size: 0.6875rem;
	letter-spacing: 0.44em;
}

.ap-brand__schrift a {
	color: inherit;
	text-decoration: none;
}

/* Der Link im Schriftzug deckt die ganze Marke ab. */
.ap-brand__schrift > :first-child a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.ap-footer .ap-brand {
	gap: 18px;
}

.ap-footer .ap-brand .wp-block-image img {
	height: 64px;
}

.ap-footer .ap-brand__schrift {
	gap: 4px;
	color: var(--ap-weiss);
}

.ap-footer .ap-brand__schrift > :first-child {
	font-size: 1.0625rem;
	padding-bottom: 4px;
	border-bottom-color: #b9bcc8;
}

.ap-footer .ap-brand__schrift > :last-child {
	font-size: 0.75rem;
	letter-spacing: 0.46em;
}

/* Menü als Dropdown (Details-Block mit Navigation) */
.wp-block-details.ap-menu {
	position: relative;
	margin: 0;
}

.wp-block-details.ap-menu > summary {
	/* Ohne Flexbox: Safari auf iPhone und iPad setzt display:flex bei summary
	   nicht überall um. Feste Höhe und Zeilenhöhe halten Rahmen und Schrift sauber. */
	position: relative;
	box-sizing: border-box;
	display: inline-block;
	vertical-align: top;
	height: 48px;
	margin: 0;
	padding: 0 40px 0 46px;
	/* Ganze Pixel: halbe Pixel zeichnet Safari oben und unten ungleich dick. */
	border: 2px solid var(--ap-marine);
	border-radius: 999px;
	background: var(--ap-weiss);
	color: var(--ap-marine);
	font-family: var(--ap-kopf);
	font-size: 1rem;
	font-weight: 600;
	line-height: 44px;
	white-space: nowrap;
	background-clip: padding-box;
	list-style: none;
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
	-webkit-tap-highlight-color: transparent;
	transition: background-color 0.18s ease;
}

.wp-block-details.ap-menu > summary:focus-visible {
	outline-offset: 3px;
}

.wp-block-details.ap-menu > summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.ap-menu > summary:hover {
	background: #eef1f8;
}

.wp-block-details.ap-menu > summary::before,
.wp-block-details.ap-menu > summary::after {
	content: "";
	position: absolute;
	top: 50%;
	background: currentColor;
}

.wp-block-details.ap-menu > summary::before {
	left: 16px;
	width: 20px;
	height: 20px;
	margin-top: -10px;
	-webkit-mask: var(--ap-icon-menue) center / contain no-repeat;
	mask: var(--ap-icon-menue) center / contain no-repeat;
}

.wp-block-details.ap-menu > summary::after {
	right: 16px;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	-webkit-mask: var(--ap-icon-pfeil) center / contain no-repeat;
	mask: var(--ap-icon-pfeil) center / contain no-repeat;
	transition: transform 0.18s ease;
}

.wp-block-details.ap-menu[open] > summary::after {
	transform: rotate(180deg);
}

body.ap-frontend .wp-block-details.ap-menu > .wp-block-navigation {
	position: absolute;
	z-index: 30;
	right: 0;
	top: calc(100% + 10px);
	box-sizing: border-box;
	width: 270px;
	max-width: calc(100vw - 32px);
	margin: 0;
	padding: 8px;
	background: var(--ap-weiss);
	border: 1px solid var(--ap-rahmen);
	border-radius: var(--ap-r-karte);
	box-shadow: var(--wp--preset--shadow--menue);
	font-size: 1.0625rem;
}

.ap-menu .wp-block-navigation,
.ap-menu .wp-block-navigation__container {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.ap-menu .wp-block-navigation-item {
	display: block;
	width: 100%;
}

.ap-menu .wp-block-navigation-item__content.wp-block-navigation-item__content {
	box-sizing: border-box;
	display: flex;
	align-items: center;
	width: 100%;
	min-height: 48px;
	padding: 0 14px;
	border-radius: 8px;
	color: var(--ap-marine);
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.ap-menu .wp-block-navigation-item__content:hover,
.ap-menu .wp-block-navigation-item__content:focus-visible {
	background: #eef1f8;
	color: var(--ap-marine);
}

/* ---------- Hero ---------- */

body .ap-hero > .ap-wrap {
	padding: clamp(20px, 4vw, 56px) 20px clamp(36px, 5vw, 64px);
	gap: clamp(28px, 4vw, 48px);
}

.ap-hero__buehne {
	display: flex;
	flex-wrap: wrap-reverse;
	align-items: center;
	gap: 28px 56px;
}

.ap-hero__text {
	flex: 1.1 1 400px;
	gap: 22px;
}

.ap-hero__text > p:not([class]) {
	max-width: 540px;
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	color: var(--ap-gedaempft);
}

.ap-hero__text .wp-block-buttons {
	gap: 12px;
	margin-top: 4px;
}

.ap-hero__anruf a {
	font-weight: 600;
	white-space: nowrap;
}

.ap-hero__logo {
	box-sizing: border-box;
	flex: 1 1 340px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	padding: 0;
}

body .ap-hero__logo > * {
	margin: 0;
}

.ap-hero__logo .wp-block-image {
	width: 100%;
	max-width: 560px;
}

.ap-hero__logo .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
}

.ap-hero__logo > p {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	font-family: var(--ap-kopf);
	font-size: clamp(0.75rem, 1.2vw, 0.9375rem);
	font-weight: 600;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	text-align: center;
	color: var(--ap-marine);
}

.ap-hero__logo > p::after {
	content: "";
	width: 180px;
	max-width: 60%;
	height: 3px;
	background: var(--ap-grau);
}

/* Kacheln der vier Standbeine */
.ap-kachel {
	position: relative;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 20px;
	border-radius: var(--ap-r-karte);
	background: var(--ap-weiss);
	border: 1.5px solid var(--ap-rahmen-stark);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ap-kachel:hover {
	transform: translateY(-4px);
	box-shadow: var(--wp--preset--shadow--karte);
}

.ap-kachel:focus-within {
	outline: 3px solid var(--ap-fokus);
	outline-offset: 2px;
}

.ap-kachel > :first-child {
	font-family: var(--ap-kopf);
	font-size: 1.25rem;
	font-weight: 700;
	line-height: 1.2;
}

.ap-kachel > :first-child a {
	color: var(--ap-marine);
	text-decoration: none;
	outline: none;
}

.ap-kachel > :first-child a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.ap-kachel > :last-child {
	font-size: 0.9375rem;
	line-height: 1.4;
	color: var(--ap-leise);
}

.ap-kachel--marine {
	background: var(--ap-marine);
	border-color: var(--ap-marine);
}

.ap-kachel--marine > :first-child a {
	color: var(--ap-weiss);
}

.ap-kachel--marine > :last-child {
	color: var(--ap-himmel);
}

/* ---------- Kinder im Zentrum ---------- */

body .ap-kinder > .ap-wrap {
	padding-top: 24px;
}

.ap-flaeche {
	box-sizing: border-box;
	display: flex;
	flex-wrap: wrap;
	gap: 36px 56px;
	align-items: center;
	padding: clamp(24px, 5vw, 64px);
	border-radius: var(--ap-r-flaeche);
}

.ap-flaeche--weiss {
	background: var(--ap-weiss);
	border: 1px solid var(--ap-rahmen);
}

.ap-flaeche--marine {
	background: var(--ap-marine);
	color: var(--ap-himmel);
}

.ap-flaeche--marine :is(h1, h2, h3, h4) {
	color: var(--ap-weiss);
}

.ap-flaeche--marine h2 {
	font-size: clamp(2.125rem, 4.8vw, 3.875rem);
	line-height: 1.02;
	letter-spacing: -0.025em;
}

.ap-flaeche > .ap-stack {
	flex: 1.2 1 380px;
	gap: 20px;
}

.ap-flaeche > .ap-stack > p:not([class]) {
	max-width: 560px;
}

.ap-flaeche > .wp-block-image,
.ap-flaeche > .ap-fotoplatz {
	flex: 1 1 300px;
	min-width: 0;
	margin: 0;
}

.ap-flaeche > .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--ap-r-karte);
}

/* Platzhalter, solange ein Foto fehlt */
.ap-fotoplatz {
	box-sizing: border-box;
	aspect-ratio: 4 / 3;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 20px;
	border-radius: var(--ap-r-karte);
	background: #1d3580;
	text-align: center;
	font-family: var(--ap-kopf);
	font-weight: 600;
	color: var(--ap-weiss);
}

body .ap-fotoplatz > * {
	margin: 0;
}

.ap-fotoplatz > :first-child {
	font-size: 1.25rem;
}

.ap-fotoplatz > :last-child:not(:first-child),
.ap-person__platz small {
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ap-himmel);
}

/* ---------- Kennzahlen ---------- */

body .ap-zahlen > .ap-wrap {
	padding: 40px 20px;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 28px 32px;
}

body .ap-zahlen + .ap-section--hell > .ap-wrap {
	padding-top: 56px;
}

.ap-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.ap-stat > :first-child {
	font-family: var(--ap-kopf);
	font-size: clamp(2.375rem, 4.4vw, 3.5rem);
	font-weight: 800;
	line-height: 1;
	letter-spacing: -0.02em;
	font-variant-numeric: tabular-nums;
	color: var(--ap-marine);
}

.ap-stat > :last-child {
	font-size: 1rem;
	color: var(--ap-gedaempft);
}

/* ---------- Qualität ---------- */

.ap-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 32px;
	padding: 22px 0;
	border-top: 1px solid var(--ap-rahmen-stark);
}

.ap-row:first-child {
	border-top: 2px solid var(--ap-grau);
}

.ap-row:last-child {
	border-bottom: 1px solid var(--ap-rahmen-stark);
}

.ap-row > :is(h3, h4) {
	flex: 0 0 220px;
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.3;
}

.ap-row > p {
	flex: 1 1 260px;
	color: var(--ap-gedaempft);
}

body .ap-rows {
	display: flex;
	flex-direction: column;
}

body .ap-rows > * {
	margin-block: 0;
}

.ap-zwischentitel {
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.4;
}

/* ---------- Leistungen ---------- */

.ap-kopf-schmal {
	max-width: 760px;
}

.ap-kasten {
	box-sizing: border-box;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: 36px 48px;
	padding: clamp(22px, 3vw, 36px);
	border: 1px solid var(--ap-rahmen);
	border-radius: var(--ap-r-karte);
}

body .ap-kasten > * {
	margin-block: 0;
}

.ap-kasten .ap-stack {
	gap: 16px;
}

.ap-kasten :is(h3, h4) {
	font-size: 1.1875rem;
	font-weight: 600;
	letter-spacing: 0;
}

/* ---------- Team ---------- */

.ap-team .wp-block-post-template {
	margin: 0;
	padding: 0;
	list-style: none;
	display: grid;
	gap: 20px;
	grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.ap-team .wp-block-post-template > li {
	margin: 0;
	min-width: 0;
}

.ap-team .wp-block-post-template > li[hidden] {
	display: none;
}

.ap-team--leitung .wp-block-post-template {
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
}

.ap-person {
	box-sizing: border-box;
	height: 100%;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	background: var(--ap-weiss);
	border: 1px solid var(--ap-rahmen);
	border-radius: var(--ap-r-karte);
}

.ap-person .wp-block-post-featured-image,
.ap-person__platz {
	margin: 0;
	/* Porträts im Hochformat, damit Gesichter vollständig zu sehen sind */
	aspect-ratio: 3 / 4;
	background: #e6eaf5;
	overflow: hidden;
}

.ap-person .wp-block-post-featured-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 15%;
}

.ap-person__platz {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-family: var(--ap-kopf);
	font-weight: 600;
	color: var(--ap-marine);
}

.ap-person__platz span {
	font-size: 2.5rem;
	line-height: 1;
}

.ap-person__platz small {
	color: var(--ap-leise);
}

.ap-person__text {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px 20px;
}

.ap-person__text :is(h3, h4) {
	font-size: 1.125rem;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: 0;
}

.ap-person__funktion {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	color: var(--ap-rot-dunkel);
}

.ap-person__qualifikationen {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--ap-leise);
}

body.ap-frontend .ap-person p:empty {
	display: none;
}

/* Große Karten für die Leitung */
.ap-person--gross {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 24px;
	padding: clamp(20px, 3vw, 32px);
	overflow: visible;
}

.ap-person--gross .wp-block-post-featured-image,
.ap-person--gross .ap-person__platz {
	flex: 0 0 150px;
	width: 150px;
	height: 200px;
	aspect-ratio: auto;
	border-radius: 10px;
}

.ap-person--gross .ap-person__platz span {
	font-size: 2.25rem;
}

.ap-person--gross .ap-person__text {
	flex: 1 1 220px;
	gap: 8px;
	padding: 0;
}

.ap-person--gross .ap-person__text :is(h3, h4) {
	font-size: 1.5625rem;
	font-weight: 700;
	line-height: 1.2;
}

.ap-person--gross .ap-person__funktion {
	font-size: 1.0625rem;
	line-height: 1.5;
}

.ap-person--gross .ap-person__qualifikationen {
	font-size: 1rem;
	color: var(--ap-gedaempft);
}

/* Filter Alle / Therapie / Empfang */
.wp-block-buttons.ap-filter {
	gap: 10px;
}

.ap-filter .wp-block-button__link {
	min-height: 46px;
	padding: 0 20px;
	font-size: 1rem;
	background: var(--ap-weiss);
	color: var(--ap-marine);
	border: 1.5px solid var(--ap-feldrahmen);
}

.ap-filter .wp-block-button__link:hover {
	background: #eef1f8;
	color: var(--ap-marine);
}

.ap-filter .wp-block-button__link[aria-pressed="true"] {
	background: var(--ap-marine);
	color: var(--ap-weiss);
	border-color: var(--ap-marine);
}

/* ---------- Termin ---------- */

.ap-termin .ap-split {
	gap: 48px 64px;
}

.ap-termin .ap-split > :first-child {
	flex: 1 1 340px;
	gap: 28px;
}

.ap-termin .ap-split > :last-child {
	flex: 1.2 1 440px;
}

.ap-section--marine :is(h1, h2, h3, h4) {
	color: var(--ap-weiss);
}

.ap-section--marine p {
	color: var(--ap-himmel);
}

.ap-form {
	box-sizing: border-box;
	padding: clamp(20px, 3vw, 36px);
	border-radius: var(--ap-r-karte);
	background: var(--ap-weiss);
	color: var(--ap-text);
}

.ap-form form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin: 0;
}

.ap-form fieldset {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.ap-form legend {
	padding: 0;
	margin-bottom: 10px;
	font-family: var(--ap-kopf);
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--ap-marine);
}

.ap-form__pillen {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.ap-form__pille {
	position: relative;
	display: inline-flex;
}

.ap-form__pille input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}

.ap-form__pille span {
	display: inline-flex;
	align-items: center;
	min-height: 48px;
	padding: 0 18px;
	border: 1.5px solid var(--ap-feldrahmen);
	border-radius: 999px;
	background: var(--ap-weiss);
	color: var(--ap-marine);
	font-size: 1rem;
	font-weight: 600;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.ap-form__pille input:hover + span {
	background: #eef1f8;
}

.ap-form__pille input:checked + span {
	background: var(--ap-marine);
	border-color: var(--ap-marine);
	color: var(--ap-weiss);
}

.ap-form__pille input:focus-visible + span {
	outline: 3px solid var(--ap-fokus);
	outline-offset: 2px;
}

.ap-form__zeile {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
	gap: 16px;
}

.ap-form__feld {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.ap-form__feld label {
	font-size: 1rem;
	font-weight: 600;
	color: var(--ap-marine);
}

.ap-form__feld label small,
.ap-form__hilfe {
	font-size: 0.9375rem;
	font-weight: 400;
	color: var(--ap-leise);
}

.ap-form__feld label small {
	font-size: 1rem;
}

.ap-form :is(input[type="text"], input[type="tel"], input[type="email"], textarea) {
	box-sizing: border-box;
	width: 100%;
	padding: 0 14px;
	height: 52px;
	border: 1.5px solid var(--ap-feldrahmen);
	border-radius: var(--ap-r-feld);
	background: var(--ap-weiss);
	color: var(--ap-text);
	font: inherit;
	font-size: 1.0625rem;
}

.ap-form textarea {
	height: auto;
	min-height: 96px;
	padding: 12px 14px;
	resize: vertical;
}

.ap-form [aria-invalid="true"] {
	border-color: var(--ap-rot);
	border-width: 2px;
}

.ap-form__fehler {
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--ap-rot-dunkel);
}

.ap-form__fehler:empty {
	display: none;
}

.ap-form__meldung {
	padding: 14px 16px;
	border: 2px solid var(--ap-rot);
	border-radius: 10px;
	background: #fdf2f3;
	color: var(--ap-text);
}

.ap-form__meldung[hidden] {
	display: none;
}

.ap-form__meldung strong {
	display: block;
	margin-bottom: 4px;
	font-family: var(--ap-kopf);
	color: var(--ap-rot-dunkel);
}

.ap-form__meldung ul {
	margin: 0;
	padding-left: 1.2em;
}

.ap-form__meldung a {
	color: var(--ap-rot-dunkel);
}

.ap-form__einwilligung {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	flex-wrap: wrap;
}

.ap-form__einwilligung input {
	flex: 0 0 24px;
	width: 24px;
	height: 24px;
	margin: 2px 0 0;
	accent-color: var(--ap-marine);
}

.ap-form__einwilligung label {
	flex: 1 1 0;
	min-width: 0;
	font-size: 1rem;
	color: var(--ap-gedaempft);
}

.ap-form__einwilligung .ap-form__fehler {
	flex: 0 0 100%;
}

.ap-form__senden {
	border: 0;
	border-radius: 999px;
	padding: 0 28px;
	background: var(--ap-rot);
	color: var(--ap-weiss);
	font-family: var(--ap-kopf);
	font-size: 1.125rem;
	font-weight: 600;
}

.ap-form__senden:hover,
.ap-form__senden:focus-visible {
	background: var(--ap-rot-dunkel);
}

.ap-form__senden[disabled] {
	opacity: 0.7;
	cursor: progress;
}

/* Honigtopf gegen Spam: für Menschen unsichtbar. */
.ap-form__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.ap-form__erfolg {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 18px;
	padding: 24px 0;
}

.ap-form__erfolg[hidden] {
	display: none;
}

.ap-form__erfolg::before {
	content: "";
	width: 56px;
	height: 56px;
	background: var(--ap-marine);
	-webkit-mask: var(--ap-icon-haken) center / contain no-repeat;
	mask: var(--ap-icon-haken) center / contain no-repeat;
}

.ap-form__erfolg h3 {
	margin: 0;
	font-size: 1.6875rem;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--ap-marine);
}

.ap-form__erfolg p {
	margin: 0;
	color: var(--ap-gedaempft);
}

.ap-form__erfolg button {
	min-height: 48px;
	padding: 0 22px;
	border: 2px solid var(--ap-marine);
	border-radius: 999px;
	background: var(--ap-weiss);
	color: var(--ap-marine);
	font-family: var(--ap-kopf);
	font-size: 1rem;
	font-weight: 600;
}

.ap-form__erfolg button:hover {
	background: #eef1f8;
}

/* ---------- Kontakt ---------- */

.ap-kontakt .ap-card {
	gap: 12px;
}

.ap-kontakt .ap-card :is(h3, h4) {
	font-size: 1.25rem;
	font-weight: 600;
	letter-spacing: 0;
}

.ap-zeiten {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 8px 16px;
	font-variant-numeric: tabular-nums;
	hyphens: manual;
	-webkit-hyphens: manual;
}

.ap-zeiten strong {
	font-weight: 600;
	color: var(--ap-text);
}

.ap-zeiten span {
	text-align: right;
	white-space: nowrap;
}

.ap-telefon-gross {
	font-family: var(--ap-kopf);
	font-size: 1.875rem;
	font-weight: 700;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}

.ap-telefon-gross a {
	display: inline-block;
	padding: 4px 0;
	text-decoration: none;
}

/* ---------- Fußzeile ---------- */

.ap-footer {
	background: var(--ap-nacht);
	color: var(--ap-himmel);
}

.ap-footer__bar {
	box-sizing: border-box;
	max-width: var(--ap-breite);
	margin-inline: auto;
	padding: 56px 24px 32px;
	display: flex;
	flex-direction: column;
	gap: 36px;
}

.ap-footer__kopf {
	display: flex;
	flex-wrap: wrap;
	gap: 32px 64px;
	justify-content: space-between;
	align-items: center;
}

.ap-footer .wp-block-navigation {
	font-family: inherit;
	font-size: 1rem;
	font-weight: 400;
}

.ap-footer .wp-block-navigation__container {
	gap: 4px 28px;
}

.ap-footer .wp-block-navigation-item__content.wp-block-navigation-item__content {
	padding: 12px 0;
	color: var(--ap-weiss);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.ap-footer .wp-block-navigation-item__content:hover {
	color: var(--ap-himmel);
}

.ap-footer__recht {
	padding-top: 24px;
	border-top: 1px solid #2b3c74;
	font-size: 0.9375rem;
	color: #b9c2dd;
}

/* ---------- Untere Leiste (mobil) ---------- */

.ap-tabbar {
	display: none;
}

.ap-tabbar .wp-block-buttons {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 4px;
	align-items: center;
	margin: 0;
}

.ap-tabbar .wp-block-button {
	width: auto;
	margin: 0;
}

.ap-tabbar .wp-block-button__link {
	width: 100%;
	min-height: 56px;
	flex-direction: column;
	gap: 4px;
	padding: 4px 2px;
	border-radius: 12px;
	background: transparent;
	color: var(--ap-marine);
	font-size: 0.75rem;
	font-weight: 600;
	line-height: 1.1;
}

.ap-tabbar .wp-block-button__link:hover,
.ap-tabbar .wp-block-button__link:active {
	background: #eef1f8;
	color: var(--ap-marine);
}

.ap-tabbar .wp-block-button__link::before {
	content: "";
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	background: currentColor;
	-webkit-mask: var(--ap-icon, var(--ap-icon-start)) center / contain no-repeat;
	mask: var(--ap-icon, var(--ap-icon-start)) center / contain no-repeat;
}

.ap-tabbar .ap-icon-start { --ap-icon: var(--ap-icon-start); }
.ap-tabbar .ap-icon-kinder { --ap-icon: var(--ap-icon-kinder); }
.ap-tabbar .ap-icon-therapien { --ap-icon: var(--ap-icon-therapien); }
.ap-tabbar .ap-icon-termin { --ap-icon: var(--ap-icon-termin); }
.ap-tabbar .ap-icon-team { --ap-icon: var(--ap-icon-team); }
.ap-tabbar .ap-icon-telefon { --ap-icon: var(--ap-icon-telefon); }

.ap-tabbar .ap-icon-termin .wp-block-button__link,
.ap-tabbar .ap-icon-termin .wp-block-button__link:hover {
	background: var(--ap-rot);
	color: var(--ap-weiss);
}

.ap-tabbar .ap-icon-termin .wp-block-button__link:active {
	background: var(--ap-rot-dunkel);
}

/* Im Editor bleibt die Leiste sichtbar, damit sie sich bearbeiten lässt. */
body:not(.ap-frontend) .ap-tabbar {
	display: block;
	max-width: 480px;
	padding: 6px 8px;
	border: 1px solid var(--ap-rahmen);
	border-radius: 12px;
}

/* ---------- Einzelseiten (Impressum, Datenschutz) ---------- */

body .ap-seite {
	box-sizing: border-box;
	max-width: var(--ap-breite);
	margin-inline: auto;
	padding: clamp(32px, 6vw, 72px) 24px clamp(48px, 8vw, 96px);
}

.ap-seite .wp-block-post-title {
	font-size: var(--wp--preset--font-size--titel);
	margin-bottom: 32px;
}

.ap-seite .wp-block-post-content :is(h2, h3) {
	margin-top: 2em;
}

.ap-seite .wp-block-post-content h2 {
	font-size: 1.75rem;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.ap-seite .wp-block-post-content h3 {
	font-size: 1.25rem;
}

/* ---------- Responsiv ---------- */

@media (max-width: 920px) {
	body.ap-frontend .ap-infozeile,
	body.ap-frontend .ap-header__aktionen > .wp-block-buttons {
		display: none;
	}

	body.ap-frontend .ap-tabbar {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 30;
		padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
		background: var(--ap-weiss);
		border-top: 1px solid var(--ap-rahmen);
		box-shadow: 0 -8px 24px rgba(35, 53, 103, 0.1);
		font-family: var(--ap-kopf);
	}

	body.ap-frontend .ap-footer__bar {
		padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
	}

	html {
		scroll-padding-bottom: 84px;
	}
}

@media (min-width: 921px) {
	.ap-hero__anruf .ap-nur-mobil {
		display: none;
	}
}

@media (max-width: 720px) {
	body .ap-wrap {
		padding: 56px 20px;
		gap: 32px;
	}

	body .ap-kinder > .ap-wrap {
		padding-top: 8px;
	}

	body .ap-zahlen > .ap-wrap {
		padding: 32px 20px;
	}

	.ap-hero__text .wp-block-buttons {
		flex-direction: column;
		align-self: stretch;
		align-items: stretch;
	}

	.ap-hero__text .wp-block-button,
	.ap-hero__text .wp-block-button__link {
		width: 100%;
	}

	.ap-row > :is(h3, h4) {
		flex-basis: 100%;
	}

	.ap-zeiten {
		grid-template-columns: 1fr auto;
	}
}

/* Sehr schmale Telefone: nur Schriftzug, ohne Emblem. */
@media (max-width: 359px) {
	.ap-header__bar .ap-brand .wp-block-image {
		display: none;
	}
}

/* Telefone: Marke und Menü-Button passen nebeneinander. */
@media (max-width: 480px) {
	.ap-header__bar {
		padding-inline: 16px;
		gap: 10px;
	}

	.ap-header__bar .ap-brand {
		gap: 8px;
		min-width: 0;
	}

	.ap-header__bar .ap-brand .wp-block-image img {
		height: 32px !important;
		width: auto !important;
	}

	.ap-header__bar .ap-brand__schrift > :first-child {
		font-size: 0.875rem;
		letter-spacing: 0.14em;
	}

	.ap-header__bar .ap-brand__schrift > :last-child {
		font-size: 0.625rem;
		letter-spacing: 0.36em;
	}

	.wp-block-details.ap-menu > summary {
		padding: 0 16px 0 42px;
	}

	.wp-block-details.ap-menu > summary::before {
		left: 14px;
	}

	.wp-block-details.ap-menu > summary::after {
		display: none;
	}

	.ap-footer .ap-brand {
		gap: 12px;
	}

	.ap-footer .ap-brand .wp-block-image img {
		height: 44px !important;
		width: auto !important;
	}

	.ap-footer .ap-brand__schrift > :first-child {
		font-size: 0.9375rem;
		letter-spacing: 0.16em;
	}

	.ap-footer .ap-brand__schrift > :last-child {
		font-size: 0.6875rem;
		letter-spacing: 0.38em;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		transition: none !important;
		animation: none !important;
	}

	.ap-kachel:hover,
	.wp-block-button__link:active,
	.wp-element-button:active {
		transform: none;
	}
}

@media print {
	.ap-tabbar,
	.ap-menu,
	.ap-infozeile {
		display: none !important;
	}
}

/* Lange Wörter mit Trennstrich umbrechen, lange Adressen (z. B. Datenschutz) notfalls hart umbrechen */
.wp-block-post-content :where(p, li, h2, h3) {
	overflow-wrap: break-word;
	hyphens: auto;
	-webkit-hyphens: auto;
}

/* ---------- Schwerpunktseiten ---------- */

body .ap-seitenkopf > .ap-wrap {
	padding-block: clamp(48px, 7vw, 88px) clamp(40px, 6vw, 72px);
}

.ap-seitenkopf__text {
	max-width: 760px;
	gap: 20px;
}

.ap-seitenkopf__text h1 {
	font-size: clamp(2.375rem, 6vw, 4rem);
	line-height: 1.02;
	letter-spacing: -0.025em;
}

.ap-seitenkopf__lead {
	font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
	line-height: 1.6;
	color: var(--ap-gedaempft);
}

.ap-seitenkopf .wp-block-buttons {
	gap: 12px;
	margin-top: 4px;
}

/* Lesespalte für längere Texte */
.ap-text {
	box-sizing: border-box;
	width: 100%;
	max-width: 760px;
	display: flex;
	flex-direction: column;
	gap: 18px;
	color: var(--ap-text);
	font-size: 1.0625rem;
	line-height: 1.7;
}

body .ap-text > * {
	margin-block: 0;
}

.ap-text h2 {
	margin-top: 32px;
	font-size: clamp(1.75rem, 3.4vw, 2.375rem);
	line-height: 1.15;
}

.ap-text > h2:first-child {
	margin-top: 0;
}

.ap-text h3 {
	margin-top: 16px;
	font-size: 1.3125rem;
	line-height: 1.3;
}

.ap-text ul {
	margin: 0;
	padding-left: 1.25em;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ap-text a {
	color: var(--ap-marine);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Aufklappbare Abschnitte (Details-Block) */
.ap-text .wp-block-details {
	border: 1px solid var(--ap-rahmen);
	border-radius: 14px;
	background: var(--ap-weiss);
}

.ap-text .wp-block-details + .wp-block-details {
	margin-top: -8px;
}

.ap-text .wp-block-details > summary {
	position: relative;
	box-sizing: border-box;
	display: block;
	min-height: 44px;
	padding: 16px 56px 16px 20px;
	font-family: var(--ap-kopf);
	font-size: 1.0625rem;
	font-weight: 600;
	line-height: 1.4;
	color: var(--ap-marine);
	cursor: pointer;
	list-style: none;
}

.ap-text .wp-block-details > summary::-webkit-details-marker {
	display: none;
}

.ap-text .wp-block-details > summary::after {
	content: "";
	position: absolute;
	right: 22px;
	top: 50%;
	width: 10px;
	height: 10px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-70%) rotate(45deg);
	transition: transform 0.18s ease;
}

.ap-text .wp-block-details[open] > summary::after {
	transform: translateY(-30%) rotate(-135deg);
}

.ap-text .wp-block-details > summary:hover {
	color: var(--ap-rot-dunkel);
}

.ap-text .wp-block-details > :not(summary) {
	margin: 0 20px 14px;
}

.ap-text .wp-block-details > :not(summary):last-child {
	margin-bottom: 20px;
}

/* Abschluss mit Termin und weiteren Schwerpunkten */
.ap-abschluss h2 {
	font-size: clamp(2rem, 4.4vw, 3rem);
}

.ap-abschluss > .ap-stack > p:not([class]) {
	max-width: 620px;
	font-size: 1.125rem;
}

.ap-abschluss .wp-block-buttons {
	gap: 12px;
}

.ap-grid--drei {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

@media (max-width: 720px) {
	.ap-text {
		font-size: 1rem;
	}

	.ap-seitenkopf .wp-block-buttons,
	.ap-abschluss .wp-block-buttons {
		flex-direction: column;
		align-self: stretch;
		align-items: stretch;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ap-text .wp-block-details > summary::after {
		transition: none;
	}
}

/* Team kompakt auf Tablet und Handy: kleines Foto links, Text rechts */
@media (max-width: 920px) {
	.ap-team .wp-block-post-template {
		gap: 8px;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	}

	.ap-team--leitung .wp-block-post-template {
		gap: 8px;
	}

	.ap-person,
	.ap-person--gross {
		flex-direction: row;
		flex-wrap: nowrap;
		align-items: flex-start;
		gap: 12px;
		padding: 10px;
		overflow: visible;
		border-radius: 14px;
	}

	.ap-person .wp-block-post-featured-image,
	.ap-person .ap-person__platz,
	.ap-person--gross .wp-block-post-featured-image,
	.ap-person--gross .ap-person__platz {
		flex: 0 0 72px;
		width: 72px;
		height: 96px;
		aspect-ratio: auto;
		border-radius: 8px;
	}

	.ap-person__platz span,
	.ap-person--gross .ap-person__platz span {
		font-size: 1.375rem;
	}

	.ap-person__platz small {
		font-size: 0.6875rem;
	}

	.ap-person .ap-person__text,
	.ap-person--gross .ap-person__text {
		flex: 1 1 auto;
		min-width: 0;
		gap: 4px;
		padding: 2px 0 0;
	}

	.ap-person .ap-person__text :is(h3, h4),
	.ap-person--gross .ap-person__text :is(h3, h4) {
		font-size: 1rem;
		font-weight: 700;
		line-height: 1.25;
	}

	.ap-person .ap-person__funktion,
	.ap-person--gross .ap-person__funktion {
		font-size: 0.875rem;
		line-height: 1.35;
	}

	.ap-person .ap-person__qualifikationen,
	.ap-person--gross .ap-person__qualifikationen {
		font-size: 0.8125rem;
		line-height: 1.45;
	}
}

/* Logo im Hero auf dem Handy kleiner, damit die Überschrift früher sichtbar ist */
@media (max-width: 720px) {
	.ap-hero__logo .wp-block-image {
		max-width: 240px;
	}
}

/* Schwerpunkt-Karten kompakt auf Tablet und Handy */
@media (max-width: 920px) {
	.ap-grid.ap-snap {
		gap: 8px;
		grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
	}

	.ap-snap > .ap-card {
		gap: 6px;
		padding: 16px 18px 10px;
		border-radius: 14px;
	}

	.ap-snap > .ap-card h3 {
		font-size: 1.125rem;
		line-height: 1.25;
	}

	.ap-snap > .ap-card > .ap-card__fuellen {
		font-size: 0.9375rem;
		line-height: 1.5;
	}

	.ap-snap > .ap-card .is-style-kennzeichen {
		align-self: flex-start;
		font-size: 0.6875rem;
	}

	.ap-snap > .ap-card > .ap-link {
		font-size: 0.9375rem;
	}

	.ap-snap > .ap-card > .ap-link a {
		padding: 10px 0;
	}

	.ap-snap > .ap-card > .ap-link + .ap-link--leise {
		margin-top: -14px;
	}

	.ap-kasten {
		gap: 24px;
		padding: 20px;
	}
}

/* ---------- Einblicke in die Praxis ---------- */

.ap-galerie {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: clamp(150px, 17vw, 230px);
	gap: 14px;
}

body .ap-galerie > .wp-block-image {
	position: relative;
	margin: 0;
	overflow: hidden;
	border-radius: 18px;
	background: var(--ap-hell);
}

.ap-galerie > .wp-block-image:first-child {
	grid-column: span 2;
	grid-row: span 2;
}

.ap-galerie > .wp-block-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ap-galerie > .wp-block-image figcaption {
	position: absolute;
	left: 12px;
	bottom: 12px;
	margin: 0;
	padding: 5px 12px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--ap-marine);
	font-family: var(--ap-kopf);
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
}

@media (max-width: 720px) {
	.ap-galerie {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		grid-auto-rows: 120px;
		gap: 8px;
	}

	body .ap-galerie > .wp-block-image {
		border-radius: 12px;
	}

	.ap-galerie > .wp-block-image figcaption {
		left: 8px;
		bottom: 8px;
		padding: 3px 9px;
		font-size: 0.75rem;
	}
}

/* Handy: Schwerpunkte als kurze Liste mit Titel und Link zur Unterseite */
@media (max-width: 720px) {
	.ap-snap > .ap-card {
		position: relative;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: baseline;
		justify-content: space-between;
		gap: 2px 12px;
		padding: 14px 16px;
	}

	.ap-snap > .ap-card > .ap-card__fuellen,
	.ap-snap > .ap-card > .ap-link--leise,
	.ap-snap > .ap-card > .is-style-kennzeichen {
		display: none;
	}

	.ap-snap > .ap-card > .ap-link {
		margin: 0;
		font-size: 0.875rem;
		font-weight: 600;
	}

	.ap-snap > .ap-card {
		flex-wrap: nowrap;
		align-items: center;
	}

	/* Linktext bleibt für Screenreader erhalten, sichtbar ist nur „Mehr ›“ */
	.ap-snap > .ap-card > .ap-link {
		flex: 0 0 auto;
	}

	.ap-snap > .ap-card > .ap-link a {
		padding: 4px 0;
		font-size: 0;
		text-decoration: none;
	}

	.ap-snap > .ap-card > .ap-link a::before {
		content: "Mehr ›";
		font-size: 0.875rem;
		text-decoration: underline;
		text-underline-offset: 3px;
	}

	/* ganze Karte antippbar */
	.ap-snap > .ap-card > .ap-link a::after {
		content: "";
		position: absolute;
		inset: 0;
		border-radius: inherit;
	}

	.ap-kasten ul.is-style-chips > li {
		font-size: 0.875rem;
		padding: 5px 11px;
	}

	.ap-kasten ul.is-style-chips {
		gap: 6px;
	}
}

/* ---------- Team: Suche und Filter ---------- */

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

.ap-team[hidden],
.ap-team-leer[hidden] {
	display: none;
}

.ap-team-werkzeug {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
}

body .ap-team-werkzeug > * {
	margin: 0;
}

.ap-team-suche {
	position: relative;
	flex: 1 1 320px;
	max-width: 480px;
}

.ap-team-suche::before {
	content: "";
	position: absolute;
	left: 18px;
	top: 50%;
	width: 18px;
	height: 18px;
	transform: translateY(-50%);
	background: var(--ap-leise);
	-webkit-mask: 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'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.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='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
	pointer-events: none;
}

.ap-team-suche input {
	box-sizing: border-box;
	width: 100%;
	min-height: 48px;
	padding: 10px 18px 10px 46px;
	border: 1px solid var(--ap-feldrahmen);
	border-radius: 999px;
	background: var(--ap-weiss);
	color: var(--ap-text);
	font: inherit;
	font-size: 1rem;
}

.ap-team-suche input::placeholder {
	color: var(--ap-leise);
	opacity: 1;
}

.ap-team-suche input:focus-visible {
	outline: 3px solid var(--ap-fokus);
	outline-offset: 2px;
	border-color: var(--ap-marine);
}

.ap-team-status {
	margin: 0;
	min-height: 1.4em;
	font-size: 0.9375rem;
	color: var(--ap-leise);
}

.ap-team-status:empty {
	display: none;
}

.ap-team-leer {
	margin: 0;
	padding: 20px;
	border: 1px dashed var(--ap-rahmen-stark);
	border-radius: 14px;
	color: var(--ap-gedaempft);
	text-align: center;
}

@media (max-width: 720px) {
	.ap-team-suche {
		flex-basis: 100%;
		max-width: none;
	}

	/* Filter in einer Reihe, bei Bedarf seitlich wischbar */
	.ap-team-werkzeug .wp-block-buttons.ap-filter {
		flex-wrap: nowrap;
		gap: 8px;
		width: calc(100% + 40px);
		margin-inline: -20px;
		padding: 2px 20px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ap-team-werkzeug .wp-block-buttons.ap-filter::-webkit-scrollbar {
		display: none;
	}

	.ap-team-werkzeug .ap-filter .wp-block-button {
		flex: 0 0 auto;
	}

	.ap-team-werkzeug .ap-filter .wp-block-button__link {
		min-height: 44px;
		padding: 0 16px;
		font-size: 0.9375rem;
	}
}

/* =========================================================
   Startseite kompakt auf dem Handy
   Gleiche Inhalte wie am Desktop, nur zusammengefasst:
   Doppeltes ausgeblendet, lange Listen eingeklappt.
   ========================================================= */
@media (max-width: 720px) {
	body .ap-wrap {
		padding: 40px 20px;
		gap: 24px;
	}

	/* Hero: Kacheln entfallen (gleiche Links wie „Unsere vier Schwerpunkte“), Logo kleiner */
	.ap-hero .ap-grid--schmal {
		display: none;
	}

	.ap-hero__logo .wp-block-image {
		max-width: 180px;
	}

	/* Kennzahlen 2 × 2 */
	body .ap-zahlen > .ap-wrap {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px 16px;
		padding: 28px 20px;
	}

	.ap-stat > :first-child {
		font-size: 2rem;
	}

	.ap-stat > :last-child {
		font-size: 0.875rem;
		line-height: 1.4;
	}

	/* Galerie als Reihe zum Wischen */
	.ap-galerie {
		display: flex;
		gap: 10px;
		margin-inline: -20px;
		padding: 0 20px 4px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.ap-galerie::-webkit-scrollbar {
		display: none;
	}

	body .ap-galerie > .wp-block-image,
	.ap-galerie > .wp-block-image:first-child {
		flex: 0 0 78%;
		height: 210px;
		scroll-snap-align: start;
	}

	/* Qualität: nur die vier Stichworte */
	body .ap-rows {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 0 16px;
	}

	.ap-row {
		padding: 12px 0;
	}

	.ap-row h3 {
		font-size: 1rem;
	}

	.ap-row > p {
		display: none;
	}

	/* Termin: Ablaufschritte entfallen, Formular und Hinweise bleiben */
	.ap-termin ol.is-style-schritte {
		display: none;
	}

	/* Eingeklappte Listen (Therapieangebot) */
	.ap-kasten.ap-eingeklappt {
		position: relative;
		max-height: 230px;
		overflow: hidden;
	}

	.ap-kasten.ap-eingeklappt::after {
		content: "";
		position: absolute;
		inset: auto 0 0;
		height: 80px;
		background: linear-gradient(rgba(255, 255, 255, 0), var(--ap-weiss));
		pointer-events: none;
	}
}

/* Button „Alle anzeigen“ (wird per JavaScript nur auf dem Handy eingefügt) */
.ap-mehr {
	align-self: center;
	min-height: 44px;
	padding: 0 22px;
	border: 1.5px solid var(--ap-feldrahmen);
	border-radius: 999px;
	background: var(--ap-weiss);
	color: var(--ap-marine);
	font-family: var(--ap-kopf);
	font-size: 0.9375rem;
	font-weight: 600;
	cursor: pointer;
}

.ap-mehr:hover {
	border-color: var(--ap-marine);
}

.ap-mehr[hidden] {
	display: none;
}

/* ---------- Miss Ellie: Hinweis bei den Telefonnummern ---------- */

.ap-ellie {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	box-sizing: border-box;
	padding: 16px 18px;
	border: 1px solid #e7c3c6;
	border-left: 4px solid var(--ap-rot);
	border-radius: 14px;
	background: #fbf3f4;
	color: var(--ap-text);
}

body .ap-ellie > * {
	margin: 0;
}

.ap-ellie .ap-ellie__marke {
	flex: 0 0 auto;
	display: grid;
	place-items: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: var(--ap-rot);
	color: var(--ap-weiss);
	font-family: var(--ap-kopf);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: 0.02em;
}

.ap-ellie__text {
	min-width: 0;
}

body .ap-ellie__text > * {
	margin: 0;
}

body .ap-ellie__text > * + * {
	margin-top: 6px;
}

.ap-ellie .ap-ellie__text p.ap-ellie__titel {
	hyphens: manual;
	-webkit-hyphens: manual;
	text-wrap: balance;
	font-family: var(--ap-kopf);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--ap-rot-dunkel);
}

.ap-ellie .ap-ellie__text p {
	font-size: 1rem;
	line-height: 1.5;
}

.ap-ellie .ap-ellie__text p.ap-ellie__rueckruf {
	color: var(--ap-gedaempft);
}

/* Im blauen Terminabschnitt */
.ap-section--marine .ap-ellie {
	border-color: rgba(255, 255, 255, 0.28);
	border-left-color: #e8a3a9;
	background: rgba(255, 255, 255, 0.1);
	color: var(--ap-weiss);
}

.ap-section--marine .ap-ellie .ap-ellie__text p.ap-ellie__titel {
	color: var(--ap-weiss);
}

.ap-section--marine .ap-ellie .ap-ellie__text p.ap-ellie__rueckruf {
	color: var(--ap-himmel);
}

/* In der Kontaktkarte etwas schmaler */
.ap-card .ap-ellie {
	margin-top: 4px;
	padding: 14px;
	gap: 12px;
}

.ap-card .ap-ellie .ap-ellie__marke {
	width: 44px;
	height: 44px;
	font-size: 0.875rem;
}

@media (max-width: 420px) {
	.ap-ellie {
		padding: 14px;
		gap: 12px;
	}

	.ap-ellie .ap-ellie__marke {
		width: 42px;
		height: 42px;
		font-size: 0.875rem;
	}
}

/* Miss Ellie: kurzer Hinweis unter der Telefonnummer im Hero */
body .ap-hero__text > p.ap-hero__ellie {
	position: relative;
	margin-top: 4px;
	padding: 10px 14px 10px 64px;
	border-radius: 12px;
	background: #fbf3f4;
	color: var(--ap-text);
	font-size: 0.9375rem;
	line-height: 1.45;
	max-width: 34rem;
}

body .ap-hero__text > p.ap-hero__ellie::before {
	content: "24/7";
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	padding: 4px 7px;
	border-radius: 999px;
	background: var(--ap-rot);
	color: var(--ap-weiss);
	font-family: var(--ap-kopf);
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
}

/* Sprungziele (z. B. /datenschutz/#terminanfrage) nicht unter der festen Kopfzeile verstecken */
:where(.wp-block-post-content, .ap-section) [id] {
	scroll-margin-top: calc(var(--ap-kopfhoehe) + 24px);
}

/* ---------- Datenschutz-Hinweis (Einwilligung) ---------- */

.ap-einwilligung {
	box-sizing: border-box;
	width: min(560px, calc(100% - 32px));
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 20px;
	background: var(--ap-weiss);
	color: var(--ap-text);
	box-shadow: 0 24px 64px rgba(31, 44, 81, 0.28);
}

.ap-einwilligung[hidden] {
	display: none;
}

.ap-einwilligung::backdrop {
	background: rgba(31, 44, 81, 0.55);
}

/* Auf Impressum und Datenschutz: unten angedockt, Seite bleibt lesbar */
.ap-rechtstext .ap-einwilligung[open]:not(:modal) {
	position: fixed;
	z-index: 200;
	inset: auto 16px 16px 16px;
	margin: 0 auto;
	max-height: 70dvh;
	border: 1px solid var(--ap-rahmen-stark);
}

.ap-einwilligung__innen {
	padding: 26px 26px 22px;
}

.ap-einwilligung__innen > * {
	margin: 0;
}

.ap-einwilligung__innen > * + * {
	margin-top: 14px;
}

.ap-einwilligung .ap-einwilligung__titel:focus {
	outline: none;
}

.ap-einwilligung .ap-einwilligung__titel {
	font-family: var(--ap-kopf);
	font-size: 1.375rem;
	line-height: 1.25;
	color: var(--ap-marine);
}

.ap-einwilligung p {
	font-size: 0.9375rem;
	line-height: 1.55;
}

.ap-einwilligung__optionen {
	display: grid;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.ap-einwilligung__optionen li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 12px 14px;
	border: 1px solid var(--ap-rahmen);
	border-radius: 12px;
	background: var(--ap-hell);
}

.ap-einwilligung__optionen input {
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	margin: 1px 0 0;
	accent-color: var(--ap-marine);
}

.ap-einwilligung__optionen label {
	font-size: 0.9375rem;
	line-height: 1.45;
}

.ap-einwilligung__optionen label strong {
	display: block;
	color: var(--ap-marine);
}

.ap-einwilligung__optionen label span {
	color: var(--ap-gedaempft);
}

.ap-einwilligung .ap-einwilligung__klein {
	font-size: 0.8125rem;
	color: var(--ap-leise);
}

.ap-einwilligung__knoepfe {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

/* Beide Antworten gleichwertig: gleiche Größe, gleiche Farbe */
.ap-einwilligung__knoepfe button {
	min-height: 48px;
	padding: 10px 16px;
	border: 2px solid var(--ap-marine);
	border-radius: 999px;
	background: var(--ap-marine);
	color: var(--ap-weiss);
	font-family: var(--ap-kopf);
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
}

.ap-einwilligung__knoepfe button:hover {
	background: var(--ap-nacht);
	border-color: var(--ap-nacht);
}

.ap-einwilligung__knoepfe .ap-einwilligung__auswahl {
	grid-column: 1 / -1;
	order: 3;
	min-height: 44px;
	border-color: var(--ap-rahmen-stark);
	background: var(--ap-weiss);
	color: var(--ap-marine);
	font-size: 0.9375rem;
}

.ap-einwilligung__knoepfe .ap-einwilligung__auswahl:hover {
	background: var(--ap-hell);
	border-color: var(--ap-marine);
}

@media (max-width: 480px) {
	.ap-einwilligung {
		width: calc(100% - 16px);
		margin-bottom: 8px;
		border-radius: 18px;
	}

	.ap-einwilligung__innen {
		padding: 20px 18px 18px;
	}

	.ap-einwilligung__knoepfe {
		grid-template-columns: 1fr;
	}
}

.ap-einwilligung-status {
	font-weight: 600;
}
