@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("../fonts/atkinson-hyperlegible-next-latin.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: "Atkinson Hyperlegible Next";
	src: url("../fonts/atkinson-hyperlegible-next-latin-ext.woff2") format("woff2");
	font-weight: 200 800;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
	color-scheme: light;

	--blau: #109BC5;
	--blau-dunkel: #0B6E8C;
	--blau-hell: #E8F5FA;
	--grau: #808080;

	--text: #2B2F33;
	--text-leise: #555B61;
	--linie: #CFE1E8;
	--grund: #FFFFFF;

	--rot: #B42318;
	--rot-hell: #FDECEA;

	--hinweis-text: #6B5000;
	--hinweis-grund: #FFF4C2;
	--hinweis-linie: #E5C547;

	--schrift: "Atkinson Hyperlegible Next", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	--breite: 72rem;
	--rand: max(1.25rem, (100% - var(--breite)) / 2);
	--abstand: clamp(2.5rem, 6vw, 4.5rem);
	--radius: .5rem;
}

*, *::before, *::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: 1rem;
	-webkit-text-size-adjust: 100%;
}

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

body {
	margin: 0;
	background: var(--grund);
	color: var(--text);
	font: 400 1.125rem/1.6 var(--schrift);
}

h1, h2, h3 {
	margin: 0 0 .75rem;
	color: var(--text);
	font-weight: 700;
	line-height: 1.2;
	text-wrap: balance;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 1.95rem); }
h3 { font-size: 1.25rem; }

p, ul, ol, dl, table, address, figure { margin: 0 0 1rem; }

a { color: var(--blau-dunkel); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
	outline: 3px solid var(--blau);
	outline-offset: 2px;
}

img { display: block; max-width: 100%; height: auto; }

svg {
	flex: none;
	width: 1.2em;
	height: 1.2em;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	vertical-align: -.2em;
}

address { font-style: normal; }

abbr[title] { text-decoration: none; }

mark {
	display: inline-block;
	padding: .1rem .45rem;
	border: 1px dashed var(--hinweis-linie);
	border-radius: .3rem;
	background: var(--hinweis-grund);
	color: var(--hinweis-text);
	font-size: .95rem;
	line-height: 1.45;
}

table { width: 100%; border-collapse: collapse; }
caption { margin-bottom: .5rem; text-align: left; font-weight: 700; }
th, td { padding: .55rem .75rem; border-bottom: 1px solid var(--linie); text-align: left; vertical-align: top; }
table > thead > tr > th { border-bottom: 2px solid var(--blau); color: var(--text-leise); font-size: 1rem; }

dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; }
dt { font-weight: 700; }
dd { margin: 0; overflow-wrap: anywhere; }

fieldset {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 0 1.25rem;
	margin: 0 0 1.5rem;
	padding: 0;
	border: 0;
}

legend {
	margin-bottom: .75rem;
	padding: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

label { display: block; margin-bottom: .3rem; font-weight: 700; }

input, select, textarea, button { font: inherit; }

input:not([type="checkbox"], [type="radio"]), select, textarea {
	width: 100%;
	min-height: 3rem;
	padding: .6rem .8rem;
	border: 1px solid var(--text-leise);
	border-radius: var(--radius);
	background: var(--grund);
	color: var(--text);
}

textarea { min-height: 8rem; resize: vertical; }

input[type="checkbox"], input[type="radio"] {
	flex: none;
	width: 1.4rem;
	height: 1.4rem;
	margin: .1rem 0 0;
	accent-color: var(--blau-dunkel);
}

button {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	min-height: 3rem;
	padding: .6rem 1.25rem;
	border: 2px solid var(--blau-dunkel);
	border-radius: var(--radius);
	background: var(--blau-dunkel);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

button:hover { background: #085A73; border-color: #085A73; }

form > fieldset > p { margin-bottom: 1rem; }
form > fieldset > p:has(> textarea) { grid-column: 1 / -1; }
form > fieldset > fieldset { grid-column: 1 / -1; display: block; margin-bottom: 1rem; }
form > fieldset > fieldset > legend { font-size: 1.125rem; margin-bottom: .4rem; }
form > fieldset > fieldset > p,
form > p:has(> input[type="checkbox"]) {
	display: flex;
	gap: .65rem;
	margin-bottom: .5rem;
}
form > fieldset > fieldset > p > label,
form > p:has(> input[type="checkbox"]) > label { margin: 0; font-weight: 400; }
form > p:last-of-type { color: var(--text-leise); font-size: 1rem; }
section > p[role="status"] {
	padding: .75rem 1rem;
	border-left: 4px solid var(--blau);
	background: var(--blau-hell);
	color: var(--text);
}
form > div[role="alert"] {
	margin-bottom: 1.5rem;
	padding: .75rem 1rem;
	border-left: 4px solid var(--rot);
	background: var(--rot-hell);
	color: var(--text);
}
form > div[role="alert"] > p { margin: 0 0 .4rem; font-weight: 700; }
form > div[role="alert"] > ul { margin: 0; padding-left: 1.1rem; }
form > div[role="alert"] > ul > li > a { color: var(--rot); }
form [aria-invalid="true"] { border-color: var(--rot); }
form strong[id$="-fehler"] { display: block; margin-top: .3rem; color: var(--rot); font-size: 1rem; }
form > strong[id$="-fehler"],
form > fieldset > fieldset > strong[id$="-fehler"] { margin: 0 0 .4rem; }

body > a:first-child {
	position: absolute;
	z-index: 10;
	top: -10rem;
	left: 1rem;
	padding: .6rem 1rem;
	border-radius: var(--radius);
	background: var(--blau-dunkel);
	color: #fff;
}

body > a:first-child:focus { top: 1rem; }

body > header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1rem 2rem;
	padding: 1.25rem var(--rand);
	border-bottom: 1px solid var(--linie);
}

body > header > a { margin-right: auto; }
body > header > a > img { width: clamp(12rem, 40vw, 16rem); }

body > header > nav > ul {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

body > header > nav > ul > li > a {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	min-height: 2.75rem;
	color: var(--text);
	font-weight: 700;
	text-decoration: none;
}

body > header > nav > ul > li > a:hover { color: var(--blau-dunkel); text-decoration: underline; }

body > header > nav > button { display: none; }

body > header > nav[aria-label="Schnellzugriff"] { flex-basis: 100%; }

body > header > nav[aria-label="Schnellzugriff"] > ul > li > a {
	padding: .45rem 1rem;
	border: 2px solid var(--blau-dunkel);
	border-radius: 999px;
	color: var(--blau-dunkel);
}

body > header > nav[aria-label="Schnellzugriff"] > ul > li:first-child > a {
	background: var(--blau-dunkel);
	color: #fff;
}

body > header > nav[aria-label="Schnellzugriff"] > ul > li > a[aria-current="page"] { background: var(--blau-hell); }
body > header > nav[aria-label="Schnellzugriff"] > ul > li > a > span:first-of-type { font-weight: 400; }

@media (max-width: 52rem) {
	body > header { gap: 1rem; padding-block: 1rem; }
	body > header > nav[aria-label="Hauptnavigation"] { display: contents; }

	@media (scripting: enabled) {
		body > header > nav > button {
			display: inline-flex;
			background: #fff;
			color: var(--blau-dunkel);
		}

		body > header > nav > button:hover,
		body > header > nav > button[aria-expanded="true"] { background: var(--blau-hell); border-color: var(--blau-dunkel); }

		body > header > nav > button[aria-expanded="false"] + ul { display: none; }
	}

	body > header > nav > button + ul {
		flex-basis: 100%;
		flex-direction: column;
		gap: 0;
		border-top: 1px solid var(--linie);
	}

	body > header > nav > button + ul > li { border-bottom: 1px solid var(--linie); }
	body > header > nav > button + ul > li > a { width: 100%; }

	body > header > nav[aria-label="Schnellzugriff"] {
		position: fixed;
		z-index: 5;
		inset: auto 0 0;
		padding: .5rem .75rem calc(.5rem + env(safe-area-inset-bottom));
		border-top: 1px solid var(--linie);
		background: #fff;
		box-shadow: 0 -4px 16px rgba(43, 47, 51, .08);
	}

	body > header > nav[aria-label="Schnellzugriff"] > ul { flex-wrap: nowrap; gap: .5rem; }
	body > header > nav[aria-label="Schnellzugriff"] > ul > li { flex: 1; }

	body > header > nav[aria-label="Schnellzugriff"] > ul > li > a {
		flex-direction: column;
		justify-content: center;
		gap: .1rem;
		width: 100%;
		padding: .35rem;
		border-radius: var(--radius);
		font-size: .9rem;
		line-height: 1.2;
		text-align: center;
	}

	body > header > nav[aria-label="Schnellzugriff"] > ul > li > a > span:first-of-type { font-weight: 700; }

	body > header > nav[aria-label="Schnellzugriff"] > ul > li > a > span:last-of-type:not(:first-of-type) {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip-path: inset(50%);
		white-space: nowrap;
	}

	body { padding-bottom: 5.5rem; }
}

body > main > header,
body > main > section,
body > main > article,
body > main > aside {
	padding: var(--abstand) var(--rand);
}

body > main > section:nth-of-type(even) { background: var(--blau-hell); }

body > main > section > h2 {
	padding-bottom: .5rem;
	border-bottom: 3px solid var(--blau);
	width: fit-content;
}

body > main > header { padding-bottom: 1rem; }
body > main > header > p { max-width: 48rem; color: var(--text-leise); font-size: 1.25rem; }

body > main > header > nav > ol {
	display: flex;
	flex-wrap: wrap;
	gap: .25rem .5rem;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-size: 1rem;
}

body > main > header > nav > ol > li + li::before { content: "›"; margin-right: .5rem; color: var(--text-leise); }
body > main > header > nav > ol > li[aria-current] { color: var(--text-leise); }

body > main > article { max-width: calc(48rem + 2 * var(--rand)); padding-top: 1rem; }
body > main > article > h2 { margin-top: 2.25rem; font-size: 1.4rem; }
body > main > article > h3 { margin-top: 1.5rem; }
body > main > article > dl { margin-bottom: 1.25rem; }
body > main > article > p:last-child { color: var(--text-leise); }

body > main:has(> aside) {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	column-gap: 2.5rem;
	padding-inline: var(--rand);
}

body > main:has(> aside) > header { grid-column: 1 / -1; padding-inline: 0; }
body > main:has(> aside) > section,
body > main:has(> aside) > aside { padding: 0 0 var(--abstand); background: none; }

body > main:has(> aside) > aside > section {
	margin-bottom: 1.5rem;
	padding: 1.25rem 1.5rem;
	border-radius: var(--radius);
	background: var(--blau-hell);
}

body > main:has(> aside) > aside > section > h2 { font-size: 1.25rem; }
body > main:has(> aside) > aside > section > ul { padding-left: 1.1rem; }
body > main:has(> aside) > aside > section > ul > li + li { margin-top: .5rem; }

@media (max-width: 52rem) {
	body > main:has(> aside) { display: block; }
	body > main:has(> aside) > aside { padding-bottom: var(--abstand); }
}

#inhalt > header:has(> img) {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-template-rows: auto auto;
	align-content: center;
	gap: 1rem 3rem;
	padding-top: 2.5rem;
}

#inhalt > header:has(> img) > h1 { align-self: end; margin: 0; }
#inhalt > header:has(> img) > p { align-self: start; margin: 0; font-size: 1.3rem; }

#inhalt > header:has(> img) > img {
	grid-column: 2;
	grid-row: 1 / span 2;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
}

@media (max-width: 47rem) {
	#inhalt > header:has(> img) { grid-template-columns: 1fr; }
	#inhalt > header:has(> img) > img { grid-column: 1; grid-row: auto; }
}

#aktuelles {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: 1rem 1.5rem;
}

#aktuelles > h2,
#aktuelles > p { grid-column: 1 / -1; }

#aktuelles > article {
	padding: 1.1rem 1.25rem;
	border-left: 5px solid var(--blau);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 1px 2px rgba(43, 47, 51, .06), 0 4px 16px rgba(43, 47, 51, .06);
}

#aktuelles > article > h3 { margin-bottom: .35rem; font-size: 1.15rem; }
#aktuelles > article > p { margin: 0; }

#sprechzeiten > table { max-width: 42rem; font-variant-numeric: tabular-nums; }
#sprechzeiten > table > tbody > tr > th { width: 4rem; }
#sprechzeiten > ul { max-width: 42rem; padding-left: 1.1rem; color: var(--text-leise); }
#sprechzeiten > ul > li + li { margin-top: .35rem; }

#willkommen > p { max-width: 48rem; }
#willkommen > p:last-child { margin-top: 1.5rem; font-style: italic; }

#leistungen > p { max-width: 48rem; }

#leistungen > ul,
#igel > ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
	gap: .75rem 2rem;
	margin-bottom: 1.5rem;
	padding: 0;
	list-style: none;
}

#leistungen > ul > li,
#igel > ul > li {
	position: relative;
	padding-left: 1.75rem;
}

#leistungen > ul > li::before,
#igel > ul > li::before {
	content: "";
	position: absolute;
	top: .55em;
	left: 0;
	width: .7rem;
	height: .7rem;
	border-radius: 50%;
	background: var(--blau);
}

#igel {
	margin-top: 2rem;
	padding: 1.5rem;
	border: 1px solid var(--linie);
	border-radius: var(--radius);
	background: #fff;
}

#igel > p { max-width: 48rem; }
#igel > ul { margin-bottom: 1rem; }

#team > ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr));
	gap: 1.5rem;
	margin-bottom: 2.5rem;
	padding: 0;
	list-style: none;
}

#team > h3 { margin-top: 1rem; }

#team > ul > li > figure { margin: 0; }

#team > ul > li > figure > img {
	width: 100%;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: top;
	border-radius: var(--radius);
	background: var(--linie);
}

#team > ul > li > figure > figcaption { padding-top: .6rem; color: var(--text-leise); font-size: 1rem; line-height: 1.4; }
#team > ul > li > figure > figcaption > strong { display: block; color: var(--text); font-size: 1.1rem; }

#praxis > p { max-width: 48rem; }

#praxis > ul {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
	gap: 1rem;
	padding: 0;
	list-style: none;
}

#praxis > ul > li > img {
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	border-radius: var(--radius);
}

#notfall > ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
	gap: 1rem;
	margin-bottom: 2rem;
	padding: 0;
	list-style: none;
}

#notfall > ul > li {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: 1.25rem;
	border-radius: var(--radius);
	background: var(--blau-hell);
	border-top: 5px solid var(--blau);
}

#notfall > ul > li:first-child { border-top-color: var(--rot); background: var(--rot-hell); }
#notfall > ul > li > strong { font-size: 1.05rem; }
#notfall > ul > li > a { font-size: 2rem; font-weight: 800; line-height: 1.2; text-decoration: none; }
#notfall > ul > li:first-child > a { color: var(--rot); }
#notfall > ul > li > span { color: var(--text-leise); }
#notfall > p, #notfall > dl { max-width: 48rem; }

#kontakt {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr));
	gap: 0 3rem;
	align-items: start;
}

#kontakt > h2 { grid-column: 1 / -1; }
#kontakt > address { font-size: 1.2rem; line-height: 1.5; }
#kontakt > dl { grid-row: span 1; }
#kontakt > dl > dd > small { display: block; color: var(--text-leise); font-size: .95rem; }

#kontakt > section { grid-column: 1 / -1; margin-top: 1.5rem; }
#kontakt > section > p { max-width: 48rem; }

#anfahrt > figure {
	display: grid;
	place-items: center;
	gap: .75rem;
	min-height: 20rem;
	margin-bottom: 1rem;
	padding: 1.5rem;
	border: 1px solid var(--linie);
	border-radius: var(--radius);
	background: #fff;
	text-align: center;
}

#anfahrt > figure > figcaption { max-width: 36rem; color: var(--text-leise); font-size: 1rem; }

#anfahrt > figure > iframe {
	width: 100%;
	height: 26rem;
	border: 0;
	border-radius: var(--radius);
}

#anfahrt > figure:has(> iframe) { padding: 0; border: 0; }
#anfahrt > p > a > svg { width: 1em; height: 1em; }

#kontaktformular > form { max-width: 48rem; }

body > footer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
	gap: 1.5rem 3rem;
	padding: 3rem var(--rand) 2rem;
	background: #1F2A30;
	color: #DCE6EA;
	font-size: 1rem;
}

body > footer > address > a,
body > footer > nav > ul > li > a { color: #fff; }

body > footer > section > h2 { color: #fff; font-size: 1.15rem; }
body > footer > section > ul,
body > footer > nav > ul { margin: 0; padding: 0; list-style: none; }
body > footer > section > ul > li + li,
body > footer > nav > ul > li + li { margin-top: .35rem; }

body > footer > p {
	grid-column: 1 / -1;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
	margin: 0;
	padding-top: 1.5rem;
	border-top: 1px solid #3A4850;
	color: #AFC0C7;
}

body > footer > p > a { display: inline-flex; align-items: center; gap: .5rem; color: #AFC0C7; text-decoration: none; }
body > footer > p > a > img { width: 6rem; padding: .25rem .4rem; border-radius: .25rem; background: #fff; }

#seiten > table { font-size: 1rem; }
#seiten > table > tbody > tr > th > span { display: block; color: var(--text-leise); font-weight: 400; }
#redaktion > ol > li + li { margin-top: .4rem; }
#redaktion > ol > li > span { color: var(--text-leise); font-size: 1rem; }
#technik > ul > li + li,
#technik > section > ul > li + li { margin-top: .4rem; }
#technik > section { margin-top: 2rem; }
