.aak-form, #aak-buchung {
	--aak-ink: #24192f;
	--aak-accent: #69378a;
	font-family: inherit;
	box-sizing: border-box;
	color: var(--aak-ink);
	background: #fff;
}
.aak-form {
	position: relative;
	margin-block: clamp(1.4rem, 3vw, 2.3rem) .9rem;
	padding: clamp(1.15rem, 3.2vw, 2.35rem);
	border: 1px solid #dfd5e6;
	border-radius: 1.1rem;
	box-shadow: 0 5px 22px rgb(65 34 80 / 6%);
	scroll-margin-block-start: 6rem;
}
.aak-form h2 { color: var(--aak-ink); margin: 0; line-height: 1.2; }
.aak-form > p { margin: .5rem 0 1.2rem; }
.aak-form form, .aak-form .aak-field, .aak-form .aak-fields { display: grid; }
.aak-form form { gap: 1rem; }
.aak-form .aak-fields { gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.aak-form .aak-field { gap: .4rem; min-width: 0; align-content: start; }
.aak-form label { font-weight: 650; }
.aak-form label span { font-size: .85em; color: #62546c; font-weight: 400; }
.aak-form :is(input:not([type="hidden"]), select, textarea) {
	box-sizing: border-box;
	width: 100%;
	font: inherit;
	font-size: max(1rem, 16px);
	line-height: 1.5;
	background: #fff;
	color: var(--aak-ink);
	border: 1px solid #998ba3;
	border-radius: .48rem;
	padding: .65rem .8rem;
}
.aak-form textarea { resize: vertical; min-height: 6rem; }
.aak-form form p { margin-block: 0; }
.aak-form button, #aak-buchung button {
	width: fit-content;
	font: inherit;
	font-weight: 650;
	border: 1px solid transparent;
	border-radius: .55rem;
	min-height: 44px;
	padding: .55rem 1.05rem;
	background: var(--aak-accent);
	color: #fff;
	cursor: pointer;
}
.aak-form button:hover { background: #4f286a; }
.aak-form a, #aak-buchung a, .aak-kontakthinweis a { color: #583174; text-decoration: underline; }
.aak-form :focus-visible, #aak-buchung :focus-visible { outline: 3px solid #6b44ac; outline-offset: 3px; }
.aak-form .aak-error { color: #842323; font-weight: 650; }
.aak-form [aria-invalid="true"] { border-color: #842323; }
.aak-form .aak-trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.aak-kontakthinweis { font-size: .94rem; line-height: 1.5; }
#aak-buchung:not([open]) { display: none; }
#aak-buchung {
	position: fixed;
	inset: 0;
	margin: auto;
	width: min(70rem, calc(100% - 2.5rem));
	max-width: none;
	height: min(53rem, 92vh);
	height: min(53rem, 92dvh);
	max-height: 100%;
	overflow: hidden;
	border: 1px solid #ece7f0;
	border-radius: 1rem;
	padding: 0;
	box-shadow: 0 24px 100px #180b2745;
}
#aak-buchung[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
#aak-buchung::backdrop { background: rgb(25 15 34 / 63%); }
.aak-dialog-kopf { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .45rem .65rem .45rem 1.15rem; border-bottom: 1px solid #eee8f0; }
#aak-buchung h2 { color: var(--aak-ink); font-size: clamp(1.05rem, 2.4vw, 1.35rem); line-height: 1.2; margin: 0; }
#aak-buchung .aak-dialog-kopf button { display: grid; place-content: center; flex: none; width: 44px; height: 44px; min-height: 44px; padding: 0; color: #362441; border-radius: 50%; background: #f5eff8; }
#aak-buchung .aak-dialog-kopf button:hover { background: #e9dfee; }
#aak-buchung .aak-dialog-kopf button span { font-size: 1.65rem; font-weight: 400; line-height: 1; }
#aak-buchung [data-aak-frame] { min-width: 0; min-height: 0; }
#aak-buchung iframe { display: block; width: 100%; height: 100%; border: 0; }
.aak-dialog-fuss { font-size: .83rem; line-height: 1.4; padding: .45rem 1.15rem; text-align: end; border-top: 1px solid #eee8f0; }
@media (max-width: 700px) {
	body.page-id-34 main.ai-inhalt .ai-v5-hero { grid-template-areas: "titel" "intro" "termin" "beispiel"; }
	.aak-form .aak-fields { grid-template-columns: minmax(0, 1fr); }
	#aak-buchung { width: calc(100% - .75rem); height: 95vh; height: 95dvh; border-radius: .8rem; }
}

/* Das Buchungsziel steht bereits am Link und funktioniert auch auf Touchscreens. */
main.ai-inhalt a[data-aak-service]::after {
	content: attr(data-aak-service);
	content: attr(data-aak-service) / "";
	display: inline-block;
	vertical-align: middle;
	flex: none;
	white-space: nowrap;
	font-family: inherit;
	font-size: .74rem;
	font-weight: 550;
	line-height: 1.4;
	letter-spacing: 0;
	margin-inline-start: .4em;
	padding: .12em .48em;
	border: 1px solid currentColor;
	border-radius: .35rem;
}
main.ai-inhalt a.ai-v5-hero-cta[data-aak-service] { flex-wrap: wrap; gap: .4rem .65rem; }
main.ai-inhalt a.ai-v5-hero-cta[data-aak-service]::after { margin-inline-start: 0; color: #5b3172; }
