/* Closed on small screens. .open shows it. From the lg breakpoint it stays visible. */
#links {
	display: none;
	flex-direction: column;
}
#links.open {
	display: flex;
}
@media (min-width: 1024px) {
	#links {
		display: flex;
		flex-direction: row;
	}
}

button:focus-visible {
	outline: 2px solid #d6d3d1;
	outline-offset: 2px;
}

/* Equal bars. The open state turns them into an X. */
#hamburger .bar {
	transform-origin: center;
}
#hamburger.active .bar:nth-of-type(1) {
	transform: translateY(8px) rotate(45deg);
}
#hamburger.active .bar:nth-of-type(2) {
	opacity: 0;
}
#hamburger.active .bar:nth-of-type(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Spine behind the treatment text. No rectangle: the image fades out at the ends. */
.spine-watermark {
	position: fixed;
	z-index: 0;
	left: 50%;
	top: 56%;
	height: 92vh;
	width: auto;
	max-width: none;
	transform: translate(-50%, -50%);
	object-fit: contain;
	opacity: 0.42;
	pointer-events: none;
	user-select: none;
	filter: drop-shadow(0 0 22px rgba(244, 244, 245, 0.22));
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 82%, transparent 100%);
}
@media (max-width: 767px) {
	.spine-watermark {
		height: 70vh;
		opacity: 0.3;
	}
}

/* The spine stays visible around the copy. This veil keeps the letters off the bright bone. */
main.relative::before {
	content: "";
	position: absolute;
	z-index: 0;
	left: 50%;
	top: 0;
	bottom: 0;
	width: 100%;
	transform: translateX(-50%);
	background: radial-gradient(
		ellipse 48% 72% at 50% 42%,
		rgba(15, 23, 42, 0.84) 0%,
		rgba(15, 23, 42, 0.58) 40%,
		rgba(15, 23, 42, 0.22) 62%,
		transparent 80%
	);
	pointer-events: none;
}
main.relative > * {
	position: relative;
	z-index: 1;
}
main.relative {
	text-shadow: 0 1px 2px rgba(15, 23, 42, 0.85);
}

/* Change language menu: the closed control shows the topic, the open list shows a flag and a name. */
.lang-menu {
	position: relative;
}
.lang-menu-button {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.15rem 0;
	color: inherit;
	background: transparent;
	border: 0;
	cursor: pointer;
	font: inherit;
	letter-spacing: inherit;
	line-height: 1.2;
}
.lang-menu-button:hover,
.lang-menu-button[aria-expanded="true"] {
	color: #e7e5e4;
}
.lang-menu-globe {
	width: 1.35rem;
	height: 1.35rem;
	display: block;
	flex: none;
}
.lang-menu-chevron {
	width: 0.7rem;
	height: 0.45rem;
	display: block;
	flex: none;
}
.lang-menu-button[aria-expanded="true"] .lang-menu-chevron {
	transform: rotate(180deg);
}
.lang-menu-panel {
	position: absolute;
	z-index: 30;
	top: calc(100% + 0.45rem);
	inset-inline-start: 0;
	min-width: 12.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.35rem;
	background: #1e293b;
	border: 1px solid #94a3b8;
	border-radius: 0.4rem;
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}
.lang-menu-panel[hidden] {
	display: none;
}
@media (min-width: 1024px) {
	.lang-menu-panel {
		inset-inline-start: auto;
		inset-inline-end: 0;
	}
}
.lang-option {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	direction: ltr;
	padding: 0.4rem 0.55rem;
	border-radius: 0.25rem;
	color: #e7e5e4;
	text-decoration: none;
	white-space: nowrap;
}
.lang-option:hover {
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}
.lang-option[aria-current="page"] {
	background: rgba(255, 255, 255, 0.16);
	outline: 1px solid #e4e4e7;
	color: #ffffff;
}
.lang-flag-svg {
	width: 1.75rem;
	height: 1.15rem;
	display: block;
	flex: none;
	direction: ltr;
	border-radius: 2px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* Same frame for the three portraits on the entry page. */
.doctor-photo {
	width: 8rem;
	height: 10rem;
	object-fit: cover;
	object-position: center center;
	border: 1px solid #d1d5db;
}

/* Content links: light grey, white on hover */
.site-link {
	color: #d1d5db;
}
.site-link:hover {
	color: #ffffff;
}

/* Leistungen / Schwerpunkte section */
.services {
	margin-top: 2.5rem;
	text-align: center;
}
.services-title {
	color: #e7e5e4;
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: 0.03em;
	margin-bottom: 1rem;
}
.services-list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.services-list li {
	margin-bottom: 0.75rem;
	color: #f4f4f5;
	line-height: 1.5;
}
.services-list li::before {
	content: "";
	display: inline-block;
	width: 0.5rem;
	height: 0.5rem;
	margin-inline-end: 0.5rem;
	border-radius: 9999px;
	background: #a6a09b;
	vertical-align: middle;
}
