/* Hinweis-Popup Praxisauflösung – große Schrift für bessere Lesbarkeit */

.hb-hinweis {
	--hb-rot: #a52d32;
	--hb-text: #333;
	--hb-flaeche: #f7f4f4;

	box-sizing: border-box;
	inline-size: 100%;
	max-inline-size: none;
	max-block-size: calc(100dvh - 2rem);
	--hb-rand: clamp(1rem, 4vw, 4rem);
	padding: 0 var(--hb-rand) 2rem;
	border: 0;
	border-top: 6px solid var(--hb-rot);
	border-radius: 0;
	background: #fff;
	color: var(--hb-text);
	font-size: 1.25rem;
	line-height: 1.6;
	box-shadow: 0 1rem 3rem rgb(0 0 0 / .35);
}

.hb-hinweis:modal {
	overscroll-behavior: contain;
}

.hb-hinweis::backdrop {
	background: rgb(20 20 20 / .9);
	overflow: hidden;
	overscroll-behavior: contain;
}

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

.hb-hinweis p,
.hb-hinweis li,
.hb-hinweis address {
	font-size: inherit;
	line-height: 1.6;
}

/* Kopfzeile bleibt beim Scrollen sichtbar */
.hb-hinweis__kopf {
	position: sticky;
	top: 0;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	margin: 0 calc(-1 * var(--hb-rand)) 1.5rem;
	padding: .75rem var(--hb-rand);
	background: #fff;
	border-bottom: 1px solid #e5dede;
}

.hb-hinweis .hb-hinweis__kicker {
	display: inline-block;
	margin: 0 0 1rem;
	padding: .375rem 1rem;
	background: var(--hb-rot);
	color: #fff;
	font-size: 1.125rem;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	border-radius: 3px;
}

.hb-hinweis__kopf form {
	margin: 0;
}

.hb-hinweis button {
	font: inherit;
	cursor: pointer;
}

.hb-hinweis .hb-hinweis__schliessen {
	min-block-size: 3rem;
	padding: .5rem 1.25rem;
	border: 2px solid var(--hb-text);
	border-radius: 4px;
	background: #fff;
	color: var(--hb-text);
	font-size: 1.125rem;
	font-weight: 700;
}

.hb-hinweis .hb-hinweis__schliessen:hover {
	background: var(--hb-text);
	color: #fff;
}

.hb-hinweis button:focus-visible,
.hb-hinweis a:focus-visible,
.hb-hinweis-oeffnen:focus-visible {
	outline: 3px solid #1a5fb4;
	outline-offset: 3px;
}

.hb-hinweis .hb-hinweis__titel {
	margin: 0;
	padding: 0 0 1.25rem;
	color: var(--hb-text);
	font-size: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
	font-weight: 600;
	line-height: 1.2;
	text-wrap: balance;
	hyphens: auto;
}

.hb-hinweis .hb-hinweis__lead {
	max-inline-size: 75ch;
	padding: 0 0 1rem;
	font-size: 1.5rem;
	line-height: 1.55;
	text-wrap: pretty;
}

.hb-hinweis__aerzte {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
	gap: 1.5rem;
	margin: 1rem 0 1.5rem;
}

.hb-hinweis .hb-arzt {
	padding: 1.5rem;
	background: var(--hb-flaeche);
	border-top: 4px solid var(--hb-rot);
	border-radius: 0 0 4px 4px;
}

.hb-hinweis .hb-arzt__foto {
	display: block;
	inline-size: 100%;
	max-inline-size: 180px;
	block-size: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	margin: 0 0 1rem;
	border-radius: 4px;
}

.hb-hinweis .hb-arzt__name {
	padding: 0 0 .75rem;
	color: var(--hb-rot);
	font-size: 1.75rem;
	line-height: 1.25;
	text-wrap: balance;
}

.hb-hinweis .hb-arzt p {
	padding: 0 0 1rem;
}

.hb-hinweis .hb-kontakt {
	display: grid;
	gap: .5rem;
	margin: 0 0 1rem;
	padding: 1.25rem;
	background: #fff;
	border-left: 4px solid var(--hb-rot);
	font-style: normal;
	overflow-wrap: anywhere;
}

.hb-hinweis .hb-kontakt a {
	color: var(--hb-rot);
	font-weight: 700;
	text-decoration: underline;
}

.hb-hinweis .hb-kontakt a[href^="tel:"] {
	white-space: nowrap;
}

.hb-hinweis .hb-alt {
	padding: 1.5rem;
	border: 2px solid var(--hb-rot);
	border-radius: 4px;
}

.hb-hinweis .hb-alt__titel {
	padding: 0 0 1rem;
	color: var(--hb-rot);
	font-size: 1.5rem;
	line-height: 1.3;
	text-wrap: balance;
}

.hb-hinweis .hb-alt__liste {
	margin: 0;
	padding: 0 0 1rem;
	list-style: none;
}

.hb-hinweis .hb-alt__liste li {
	text-decoration: line-through;
	text-decoration-color: var(--hb-rot);
}

.hb-hinweis .hb-alt p {
	padding: 0;
}

.hb-hinweis__fuss {
	display: flex;
	justify-content: center;
	margin: 1.5rem 0 0;
}

.hb-hinweis .hb-hinweis__ok {
	min-block-size: 3.5rem;
	padding: .75rem 2rem;
	border: 0;
	border-radius: 4px;
	background: var(--hb-rot);
	color: #fff;
	font-size: 1.25rem;
	font-weight: 700;
}

.hb-hinweis .hb-hinweis__ok:hover {
	background: #7f2226;
}

/* Schaltfläche zum erneuten Öffnen */
.hb-hinweis-oeffnen {
	position: fixed;
	z-index: 99999;
	left: 1rem;
	bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
	min-block-size: 3rem;
	padding: .625rem 1.25rem;
	border: 0;
	border-radius: 999px;
	background: #a52d32;
	color: #fff;
	font: inherit;
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.3;
	box-shadow: 0 .25rem 1rem rgb(0 0 0 / .3);
	cursor: pointer;
}

.hb-hinweis-oeffnen:hover {
	background: #7f2226;
}

/* Platz am Seitenende, damit der Button den Footer nicht verdeckt */
body:has(.hb-hinweis-oeffnen:not([hidden])) {
	padding-bottom: 5rem;
}

@media (max-width: 479px) {
	.hb-hinweis-oeffnen {
		left: .75rem;
		bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
		min-block-size: 2.75rem;
		padding: .5rem 1rem;
		font-size: 1rem;
		white-space: nowrap;
	}

	.hb-hinweis {
		max-block-size: calc(100dvh - 1rem);
		padding-block-end: 1.5rem;
		font-size: 1.125rem;
	}

	.hb-hinweis .hb-hinweis__lead {
		font-size: 1.25rem;
	}

	.hb-hinweis .hb-arzt,
	.hb-hinweis .hb-alt {
		padding: 1.25rem;
	}
}
