/*
 * ERS Brand System alignment
 *
 * This layer is intentionally loaded after the component styles. It provides
 * one auditable mapping from the July 2026 brand manual to the existing block
 * theme without changing content structure or relying on external fonts.
 */

:root {
	--ers-blue: #004AAD;
	--ers-blue-700: #003C8C;
	--ers-blue-soft: #F0F4F8;
	--ers-blue-pale: #FAFBFC;
	--ers-text: #1A2B3C;
	--ers-muted: #5A6A7A;
	--ers-surface: #FAFBFC;
	--ers-surface-strong: #F0F4F8;
	--ers-line: #D9E1E8;
	--ers-gold: #E8C96D;
	--ers-black: #000000;
	--ers-white: #FFFFFF;
	--ers-shadow: 0 14px 32px rgba(26, 43, 60, 0.09);
	--ers-shadow-soft: 0 6px 18px rgba(26, 43, 60, 0.06);
	--ers-radius: 12px;
}

/*
 * Typografische Hierarchie nach Brand Design Manual 6.5.
 *
 *   Logo / H1      League Spartan   Bold      (Primaerschrift)
 *   H2             Sekundaerschrift Bold
 *   H3             Sekundaerschrift Semibold
 *   Fliesstext     Sekundaerschrift Regular
 *   Bildunterschr. Sekundaerschrift Regular
 *   Tabellen       Sekundaerschrift Regular
 *
 * Die Familien-Token stammen aus assets/css/fonts.css.
 */
body {
	background: var(--ers-white);
	color: var(--ers-text);
	font-family: var(--ers-font-text);
	font-size: clamp(1rem, 0.96rem + 0.14vw, 1.0625rem);
	font-weight: 400;
	line-height: 1.65;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: var(--ers-text);
	font-family: var(--ers-font-text);
	font-style: normal;
	letter-spacing: -0.011em;
}

/* League Spartan laeuft von Haus aus eng; zusaetzliche Negativlaufweite wuerde
 * die Wortbilder in den grossen Headlines schliessen. */
h1,
.ers-hero__title,
.ers-career-hero h1,
.ers-not-found h1 {
	color: var(--ers-blue);
	font-family: var(--ers-font-display);
	font-weight: 700;
	letter-spacing: -0.005em;
}

h2 {
	font-weight: 700;
}

h3,
h4,
h5,
h6 {
	font-weight: 600;
}

figcaption,
caption,
table,
th,
td {
	font-family: var(--ers-font-text);
}

th {
	font-weight: 600;
}

p,
li,
address,
input,
select,
textarea,
button {
	font-family: var(--ers-font-text);
	font-weight: 400;
}

strong,
b {
	font-weight: 700;
}

/* Manual 6.6: Unterstreichungen, dekorative Schrifteffekte und uebermaessiger
 * Einsatz von Grossbuchstaben sind zu vermeiden. Die Eyebrow- und Label-
 * Elemente behalten ihre Funktion, verlieren aber die Versalsetzung. */
.ers-kicker,
.ers-site-footer__label,
.ers-signal-panel__heading small,
.ers-booking__steps li > span,
.ers-notice-item__label,
.ers-team-functions__actions small,
.ers-brand__text {
	font-weight: 700;
	letter-spacing: 0.035em;
	text-transform: none;
}

.ers-kicker {
	font-size: 0.875rem;
	line-height: 1.4;
}

/* Solid, calm actions. Gold is never used as text on white. */
.ers-cta,
.ers-core-booking-cta,
a.ers-core-booking-cta,
.wp-block-button:not(.is-style-outline) .wp-block-button__link,
.ers-page--practice .ers-practice-booking,
.ers-page--contact .ers-contact-routes > .ers-card:first-child,
.ers-page--team .ers-team-lead-card,
.ers-career-contact__action {
	background: var(--ers-blue);
	background-image: none;
}

.ers-cta,
.ers-core-booking-cta,
a.ers-core-booking-cta,
.wp-block-button__link,
.ers-static-button {
	border-radius: 8px;
	box-sizing: border-box;
	box-shadow: none;
	font-weight: 700;
}

.ers-cta:hover,
.ers-cta:focus-visible,
.ers-core-booking-cta:hover,
.ers-core-booking-cta:focus-visible,
a.ers-core-booking-cta:hover,
a.ers-core-booking-cta:focus-visible,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible {
	background: var(--ers-blue-700);
	background-image: none;
	box-shadow: 0 6px 16px rgba(0, 74, 173, 0.18);
}

.wp-block-button.is-style-outline .wp-block-button__link,
.ers-static-button {
	background: var(--ers-white);
	border-color: rgba(0, 74, 173, 0.42);
	box-shadow: none;
	color: var(--ers-blue);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover,
.wp-block-button.is-style-outline .wp-block-button__link:focus-visible,
.ers-static-button:hover,
.ers-static-button:focus-visible {
	background: var(--ers-surface-strong);
	border-color: var(--ers-blue);
	box-shadow: none;
}

.ers-page--practice .ers-practice-arrival-note .ers-card-link {
	background: var(--ers-white);
	border: 1px solid rgba(0, 74, 173, 0.34);
	border-radius: 8px;
	box-sizing: border-box;
	justify-content: center;
	min-height: 48px;
	padding: 0.72rem 1rem;
	text-align: center;
}

.ers-page--practice .ers-practice-arrival-note .ers-card-link:hover,
.ers-page--practice .ers-practice-arrival-note .ers-card-link:focus-visible {
	background: var(--ers-blue-soft);
	border-color: rgba(0, 74, 173, 0.58);
	box-shadow: 0 6px 16px rgba(0, 74, 173, 0.12);
	color: var(--ers-blue-700);
	transform: translateY(-1px);
}

/* Header: complete primary lock-up on larger screens, compact fallback only
 * where the official signet asset is still outstanding. */
.ers-site-header {
	background: rgba(255, 255, 255, 0.985);
	border-bottom-color: var(--ers-line);
	box-shadow: 0 4px 16px rgba(26, 43, 60, 0.05);
}

.ers-site-header.is-scrolled {
	box-shadow: 0 6px 20px rgba(26, 43, 60, 0.07);
}

.ers-site-header__inner {
	box-sizing: border-box;
	min-height: 160px;
	padding-bottom: 0.35rem;
	padding-top: 0.35rem;
}

.ers-site-header.is-scrolled .ers-site-header__inner {
	min-height: 154px;
	padding-bottom: 0.25rem;
	padding-top: 0.25rem;
}

.ers-brand {
	height: 148px;
	width: 180px;
}

.ers-brand__picture {
	display: block;
	height: 100%;
	width: 100%;
}

.ers-brand__logo,
.ers-site-header.is-scrolled .ers-brand__logo {
	height: auto;
	left: auto;
	max-height: 148px;
	max-width: 180px;
	object-fit: contain;
	object-position: left center;
	position: static;
	top: auto;
	transform: none;
	width: 190px;
}

.ers-header-nav a,
.ers-header-nav .wp-block-navigation-item__content {
	color: var(--ers-text);
	font-weight: 600;
}

/* Footerlinks stehen auf #004AAD und bleiben deshalb hell. */
.ers-site-footer .ers-footer-nav a {
	color: rgba(255, 255, 255, 0.92);
	font-weight: 600;
}

.ers-header-nav a,
.ers-header-nav .wp-block-navigation-item__content {
	font-size: 1rem;
	line-height: 1.45;
}

.ers-header-actions .ers-core-booking-cta {
	font-size: 0.9375rem;
	min-height: 48px;
	padding: 0.72rem 0.9rem;
}

.ers-header-nav a[aria-current="page"]::after,
.ers-header-nav .current-menu-item > a::after,
.ers-header-nav .current_page_item > a::after,
.ers-header-nav .wp-block-navigation-item__content[aria-current="page"]::after {
	background: var(--ers-blue);
	border-radius: 0;
	height: 2px;
}

/* Brand-manual surfaces: white, #FAFBFC and #F0F4F8 instead of decorative
 * gradients. The component structure remains available to Gutenberg. */
.ers-hero,
.ers-current-notices,
.ers-quick-nav,
.ers-diagnostics-strip,
.ers-booking,
.ers-patient-journey,
.ers-reviews,
.ers-career-banner,
.ers-career-hero,
.ers-career-options,
.ers-career-contact,
.ers-team-teaser,
.ers-location-panel,
.ers-signal-focus,
.ers-not-found,
.ers-page-shell,
.ers-info-box,
.ers-notice {
	background: var(--ers-surface);
	background-image: none;
	border-color: var(--ers-line);
	border-radius: var(--ers-radius);
	box-shadow: none;
}

.ers-hero,
.ers-career-hero,
.ers-not-found {
	background: var(--ers-white);
	border-left: 0;
	border-right: 0;
	border-top: 3px solid var(--ers-blue);
	box-shadow: var(--ers-shadow-soft);
}

.ers-field-card,
.ers-card,
.ers-diagnostic-card,
.ers-notice-item,
.ers-quick-nav__grid a,
.ers-career-card,
.ers-career-option-card,
.ers-team-card,
.ers-contact-route,
.ers-process-list--cards li,
.ers-anchor-grid a,
.ers-signal-panel,
.ers-booking__action,
.ers-reviews__action,
.ers-patient-journey__steps li {
	background: var(--ers-white);
	background-image: none;
	border-color: var(--ers-line);
	border-radius: 10px;
	box-shadow: none;
}

.ers-field-card:hover,
.ers-field-card:focus-within,
a.ers-card:hover,
.ers-quick-nav__grid a:hover,
.ers-quick-nav__grid a:focus-visible,
.ers-career-card:hover,
.ers-career-card:focus-visible,
a.ers-career-option-card:hover,
.ers-anchor-grid a:hover,
.ers-anchor-grid a:focus-visible {
	background: var(--ers-surface-strong);
	border-color: rgba(0, 74, 173, 0.42);
	box-shadow: var(--ers-shadow-soft);
	transform: translateY(-1px);
}

.ers-notice-item--urgent,
.ers-contact-route--urgent,
.ers-career-contact__emergency {
	border-top: 1px solid var(--ers-line);
}

/* Keep the orientation strip comfortably inside the content frame. The
 * previous divider layout removed the outer padding and made the first and
 * last columns look cropped. */
.ers-current-notices {
	padding: clamp(1.6rem, 3vw, 2.35rem) clamp(1.25rem, 3vw, 2.5rem);
}

.ers-current-notices > * {
	box-sizing: border-box;
	width: 100%;
}

/* Bordered and surfaced content sections always retain a visible inner
 * gutter. Older Clinical Flow rules removed the horizontal padding from the
 * diagnostics strip and made its copy sit directly on the divider edge. */
.ers-diagnostics-strip {
	box-sizing: border-box;
	padding: clamp(2rem, 4vw, 2.7rem) clamp(1.5rem, 3vw, 2rem);
}

.ers-diagnostics-strip > *:not(.ers-diagnostics-strip__art) {
	box-sizing: border-box;
	width: 100%;
}

.ers-quick-nav__grid a,
.ers-diagnostic-card,
.ers-career-card,
.ers-team-teaser__roles li,
.ers-page--services .ers-services-diagnostics .ers-card,
.ers-page-content .ers-anchor-grid a,
.ers-career-hero__panel {
	box-sizing: border-box;
	padding: 1rem;
}

.ers-notice-grid--essential {
	gap: clamp(0.8rem, 1.6vw, 1.15rem);
}

.ers-notice-item,
.ers-notice-item:first-child {
	background: var(--ers-white);
	border: 1px solid var(--ers-line);
	border-radius: 10px;
	box-sizing: border-box;
	padding: clamp(1rem, 1.8vw, 1.25rem);
}

.ers-notice-item--urgent {
	border-top: 1px solid var(--ers-line);
}

/* Gutenberg's constrained layout capped the booking grid at the reading
 * width. This restores the intended section-wide two-column composition. */
.ers-booking > .ers-booking__layout {
	box-sizing: border-box;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
	max-width: none !important;
	width: 100%;
}

.ers-booking__action {
	box-sizing: border-box;
}

.ers-booking__action .ers-core-booking-cta {
	box-sizing: border-box;
	justify-content: center;
	width: 100%;
}

/* Reuse the former homepage location card as the principal information
 * surface on the dedicated practice page. */
.ers-page--practice .ers-location-panel {
	border: 1px solid var(--ers-line);
	border-radius: 10px;
	box-shadow: none;
	grid-template-columns: minmax(400px, 0.95fr) minmax(0, 1.05fr);
	margin-top: clamp(1.5rem, 3vw, 2.25rem);
	max-width: none !important;
	width: 100%;
}

.ers-page--practice .ers-location-card {
	box-sizing: border-box;
	padding: clamp(1.5rem, 3vw, 2rem);
}

.ers-page--practice .ers-location-fact {
	background: var(--ers-white);
	border: 1px solid var(--ers-line);
	border-radius: 10px;
	box-sizing: border-box;
	padding: 1rem;
}

.ers-page--practice .ers-location-fact:last-child {
	border-bottom: 1px solid var(--ers-line);
}

.ers-page--practice .ers-location-note {
	box-sizing: border-box;
	padding: 1rem;
}

.ers-page--practice .ers-location-route-link {
	background: var(--ers-blue);
	border-color: var(--ers-blue);
	color: var(--ers-white);
}

.ers-page--practice .ers-location-route-link:hover,
.ers-page--practice .ers-location-route-link:focus-visible {
	background: var(--ers-blue-700);
	border-color: var(--ers-blue-700);
	color: var(--ers-white);
}

.ers-page--practice .ers-map-placeholder {
	min-height: 400px;
}

.ers-page--practice .ers-practice-booking--standalone {
	align-items: center;
	display: grid;
	gap: 1.5rem;
	grid-template-columns: minmax(0, 1fr) auto;
	margin-top: clamp(1rem, 2.2vw, 1.5rem);
	max-width: none !important;
	min-height: 0;
	width: 100%;
}

.ers-page--practice .ers-practice-booking--standalone .ers-core-booking-cta {
	align-self: center;
	margin: 0;
}

/* WordPress may add empty paragraphs around shortcode output. They must not
 * become layout items or stretch the career status card. */
.ers-career-contact {
	align-items: start;
}

.ers-career-contact__intro,
.ers-career-form,
.ers-career-form-readiness {
	align-self: start;
}

.ers-career-page p:empty,
.ers-career-form-readiness > p:empty {
	display: none;
}

.ers-career-form-readiness {
	align-content: start;
	height: auto;
}

.ers-career-form-readiness__icon {
	display: flex;
	height: 46px;
	width: 46px;
}

.ers-career-form-readiness .ers-career-form-readiness__title {
	margin: 0 0 0.5rem;
}

/* Legibility floor for secondary information. These elements previously
 * dropped to roughly 12–13 px on common desktop widths. */
.ers-notice-item__label,
.ers-quick-nav__grid small,
.ers-diagnostic-card span,
.ers-career-card span,
.ers-team-teaser__roles small,
.ers-booking__emergency,
.ers-reviews__action small,
.ers-not-found__route p,
.ers-site-footer__label,
.ers-footer-back-to-top,
.ers-form-hint,
.ers-form-required-note {
	font-size: 0.875rem;
	line-height: 1.5;
}

.ers-field-card p,
.ers-career-option-card p,
.ers-contact-routes p,
.ers-practice-facts p,
.ers-services-diagnostics p {
	font-size: 0.975rem;
	line-height: 1.62;
}

.ers-notice-item__emergency-links a span,
.ers-booking__steps small,
.ers-team-functions small,
.ers-practice-arrival-note small {
	font-size: 0.875rem;
}

.ers-static-button {
	font-size: 0.9375rem;
}

.ers-signal-panel__visual,
.ers-icon,
.ers-quick-nav__icon,
.ers-booking__icon,
.ers-reviews__icon,
.ers-career-option-card__icon,
.ers-team-teaser__roles svg {
	background: var(--ers-surface-strong);
	background-image: none;
}

.ers-flow-art,
.ers-hero-visual__image,
.ers-field-card__art,
.ers-diagnostics-strip__art {
	filter: none;
}

/* Normalize older page-specific selectors that otherwise outrank the shared
 * layer. The abstract map placeholder remains the sole functional gradient. */
.ers-page--services .ers-page-shell,
.ers-page--practice .ers-page-shell,
.ers-page--contact .ers-page-shell,
.ers-page--team .ers-page-shell,
.ers-service-list,
.ers-print-actions,
.ers-legal-status,
.ers-team-functions,
.ers-team-function-card,
.ers-team-function-card--lead,
.ers-career-hero__panel,
.ers-career-form,
.ers-career-form-readiness {
	background: var(--ers-surface);
	background-image: none;
	border-color: var(--ers-line);
	border-radius: 10px;
	box-shadow: none;
}

.ers-algesiology-appointment,
.ers-page--practice .ers-practice-booking,
.ers-page--contact .ers-contact-routes > .ers-card:first-child {
	background: var(--ers-blue);
	background-image: none;
	border-radius: 10px;
	box-shadow: none;
}

.ers-page--services .ers-services-final-cta,
.ers-page--algesiology .ers-algesiology-appointment {
	background: var(--ers-blue);
	background-image: none;
	border-radius: 10px;
	box-shadow: none;
}

.ers-page--algesiology .ers-algesiology-preparation,
.ers-legal-page .ers-legal-status {
	background: var(--ers-surface);
	background-image: none;
	border-color: var(--ers-line);
	border-radius: 10px;
	box-shadow: none;
}

.ers-page--contact .ers-contact-routes > .ers-card,
.ers-team-functions__actions a,
.ers-career-visual {
	border-radius: 10px;
	box-shadow: none;
}

.ers-header-actions .ers-core-booking-cta,
.ers-page-content a.ers-core-booking-cta,
a.ers-core-booking-cta,
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
	box-shadow: none;
}

.ers-header-actions .ers-core-booking-cta:hover,
.ers-header-actions .ers-core-booking-cta:focus-visible,
.ers-page-content a.ers-core-booking-cta:hover,
.ers-page-content a.ers-core-booking-cta:focus-visible,
a.ers-core-booking-cta:hover,
a.ers-core-booking-cta:focus-visible {
	box-shadow: 0 6px 16px rgba(0, 74, 173, 0.18);
}

.ers-site-footer {
	background: transparent;
}

.ers-site-footer::before {
	display: none;
}

.ers-site-footer__inner {
	background: var(--ers-blue);
	background-image: none;
	border-radius: 10px;
	box-shadow: none;
}

/* Der globale blaue Fokusrahmen waere auf der blauen Footerflaeche unsichtbar. */
.ers-site-footer a:focus-visible {
	outline-color: var(--ers-white);
}

.ers-footer-logo {
	background: var(--ers-white);
	border-radius: 4px;
	box-sizing: border-box;
	max-width: 180px;
	padding: 0.65rem;
}

@media (max-width: 980px) {
	.ers-site-header__inner,
	.ers-site-header.is-scrolled .ers-site-header__inner {
		box-sizing: border-box;
		min-height: 196px;
	}

	.ers-brand {
		height: 148px;
		width: 180px;
	}

	.ers-brand__logo,
	.ers-site-header.is-scrolled .ers-brand__logo {
		max-height: 148px;
		max-width: 180px;
		width: 180px;
	}

	.ers-header-nav a,
	.ers-header-nav .wp-block-navigation-item__content {
		font-size: 0.9375rem;
	}
}

@media (max-width: 960px) {
	.ers-booking > .ers-booking__layout {
		grid-template-columns: 1fr;
	}

	.ers-booking__action {
		padding: clamp(1.25rem, 3vw, 1.75rem);
	}

	.ers-page--practice .ers-location-panel {
		grid-template-columns: 1fr;
	}

	.ers-page--practice .ers-map-placeholder {
		min-height: 320px;
	}
}

@media (max-width: 760px) {
	:root {
		--ers-anchor-offset: 82px;
		--ers-radius: 10px;
	}

	.ers-site-header__inner,
	.ers-site-header.is-scrolled .ers-site-header__inner {
		min-height: 72px;
		padding: 0.45rem 0.75rem;
	}

	.ers-brand {
		height: 48px;
		width: 58px;
	}

	.ers-brand__logo,
	.ers-site-header.is-scrolled .ers-brand__logo {
		height: 48px;
		max-height: 48px;
		max-width: 58px;
		object-position: left center;
		width: 58px;
	}

	.ers-header-nav .wp-block-navigation__responsive-container-open {
		border-radius: 6px;
		box-shadow: none;
	}

	.ers-header-actions .ers-core-booking-cta {
		font-size: 0.875rem;
		min-height: 48px;
	}

	.ers-header-nav .wp-block-navigation__responsive-container.is-menu-open a {
		font-size: 1.125rem;
	}

	.ers-hero,
	.ers-current-notices,
	.ers-quick-nav,
	.ers-diagnostics-strip,
	.ers-booking,
	.ers-patient-journey,
	.ers-reviews,
	.ers-career-banner,
	.ers-career-hero,
	.ers-career-options,
	.ers-career-contact,
	.ers-team-teaser,
	.ers-location-panel,
	.ers-signal-focus,
	.ers-not-found,
	.ers-page-shell {
		border-radius: 8px;
	}

	.ers-footer-logo {
		max-width: 180px;
	}

	.ers-current-notices {
		padding: 1.35rem 1rem;
	}

	.ers-hero,
	.ers-quick-nav,
	.ers-patient-journey,
	.ers-team-teaser {
		box-sizing: border-box;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.ers-diagnostics-strip {
		padding-left: 1.25rem;
		padding-right: 1.25rem;
	}

	.ers-notice-item,
	.ers-notice-item:first-child {
		border: 1px solid var(--ers-line);
		padding: 1rem;
	}

	.ers-notice-item--urgent {
		border-top: 1px solid var(--ers-line);
	}

	.ers-page--practice .ers-page-shell,
	.ers-page--services .ers-page-shell,
	.ers-page--algesiology .ers-page-shell,
	.ers-page--contact .ers-page-shell,
	.ers-page--team .ers-page-shell {
		box-sizing: border-box;
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.ers-booking {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.ers-booking__action .ers-core-booking-cta {
		max-width: none;
	}

	.ers-page--practice .ers-location-panel,
	.ers-page--practice .ers-practice-booking--standalone {
		grid-template-columns: 1fr;
	}

	.ers-page--practice .ers-location-card {
		padding: 1.25rem;
	}

	.ers-page--practice .ers-map-placeholder {
		min-height: 260px;
	}
}
