/* Ergotherapie Friedenau – ergänzende Styles (Grundwerte stehen in theme.json) */

/* ---------- Kopfbereich ---------- */
.ef-header {
	padding-top: 0;
	padding-bottom: 0;
	text-align: center;
}
.ef-header .wp-block-site-logo,
.ef-header .ef-logo {
	margin: 0 auto;
	margin-top: -38px; /* Logo-Blob oben angeschnitten wie auf der alten Seite */
	line-height: 0;
}
.ef-header .wp-block-site-logo img,
.ef-header .ef-logo img {
	width: 300px;
	max-width: 70vw;
	height: auto;
}
.ef-header .ef-nav {
	margin-top: -78px; /* Navigation liegt auf dem unteren Teil des Logos */
	position: relative;
	z-index: 2;
}
.ef-header .wp-block-navigation {
	justify-content: center;
	gap: 0.4rem 2rem;
}
.ef-header .wp-block-navigation-item__content {
	color: var(--wp--preset--color--text);
	text-decoration: none;
	padding: 0.35em 0.2em;
	border-bottom: 2px solid transparent;
	transition: border-color .2s, color .2s;
}
.ef-header .wp-block-navigation-item__content:hover,
.ef-header .wp-block-navigation-item__content:focus-visible {
	color: var(--wp--preset--color--salbei-dunkel);
	border-bottom-color: var(--wp--preset--color--salbei-hell);
}
.ef-header .current-menu-item > .wp-block-navigation-item__content,
.ef-header [aria-current="page"] {
	color: var(--wp--preset--color--salbei-dunkel);
	border-bottom-color: var(--wp--preset--color--salbei);
}
/* mobiles Menü */
.ef-header .wp-block-navigation__responsive-container-open {
	margin: 0 auto;
	background: var(--wp--preset--color--weiss);
	border-radius: 999px;
	padding: 0.45rem;
	box-shadow: 0 1px 6px rgba(0,0,0,.12);
}
.ef-header .wp-block-navigation__responsive-container.is-menu-open {
	padding-top: 4rem;
}
.ef-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: center;
	font-size: 1.25rem;
}

.ef-main {
	padding-top: clamp(2.5rem, 6vw, 4.5rem);
	padding-bottom: clamp(3rem, 7vw, 5rem);
}

/* ---------- allgemeine Helfer ---------- */
.ef-abschnitt { margin-top: clamp(3rem, 8vw, 6.5rem) !important; }
.ef-band {
	padding-top: clamp(2.5rem, 6vw, 4rem) !important;
	padding-bottom: clamp(2.5rem, 6vw, 4rem) !important;
}


/* Fließtext-Absätze dichter wie auf der alten Seite */
.ef-kompakt > * + * { margin-block-start: 0.7rem; }

/* runde Bilder (Porträt) */
.ef-rund img {
	border-radius: 50%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	width: 100%;
}

/* Symbol-Bilder der Fachbereiche (grüner Blob mit Strichsymbol) */
.ef-symbol { flex: 0 0 auto; margin: 0 !important; }
.ef-symbol img { width: 96px; height: auto; }
.ef-symbole { gap: 0.5rem !important; flex: 0 0 auto; }
.ef-symbole .ef-symbol img { width: 72px; }
.ef-fach h3, .ef-person h3 { margin-top: 0.4rem; }
.ef-fach, .ef-person { align-items: flex-start !important; }
.ef-fach > .wp-block-group:last-child,
.ef-person > .wp-block-group:last-child { flex: 1 1 auto; min-width: 0; }

/* Zweite Namenszeile im Team etwas absetzen */
.ef-person h3 { line-height: 1.35; }

/* Öffnungszeiten */
.ef-zeiten { border-collapse: collapse; margin: 0; }
.ef-zeiten table { border: 0; width: auto; }
.ef-zeiten td { border: 0; padding: 0.3rem 2.2rem 0.3rem 0; }
.ef-zeiten.wp-block-table { overflow: visible; }

/* Galerie „Einblicke“: quadratische Kacheln */
.ef-galerie.wp-block-gallery { --wp--style--unstable-gallery-gap: 2rem; gap: 2rem; }
.ef-galerie.wp-block-gallery .wp-block-image img {
	aspect-ratio: 1 / 1;
	object-fit: cover;
	height: 100%;
}
@media (max-width: 781px) {
	.ef-galerie.wp-block-gallery { --wp--style--unstable-gallery-gap: 1rem; gap: 1rem; }
}

/* ---------- Karte (Zwei-Klick) ---------- */
.ef-karte {
	position: relative;
	min-height: var(--ef-karte-hoehe, 380px);
	background: var(--wp--preset--color--grau-hell);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}
.ef-karte__hinweis { max-width: 26rem; padding: 1.5rem; font-size: 0.9rem; }
.ef-karte__hinweis p { margin: 0 0 0.8rem; }
.ef-karte__titel { font-size: 1.25rem; color: var(--wp--preset--color--salbei); }
.ef-karte__button {
	cursor: pointer;
	border: 0;
	font-family: inherit;
	background: var(--wp--preset--color--salbei);
	color: #fff;
	border-radius: 999px;
	padding: 0.65em 1.5em;
	font-size: 1rem;
}
.ef-karte__button:hover { background: var(--wp--preset--color--salbei-dunkel); }
.ef-karte iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

/* ---------- Fußbereich ---------- */
.ef-footer { font-size: 0.95rem; }
.ef-footer a { color: inherit; text-decoration: none; }
.ef-footer a:hover, .ef-footer a:focus-visible { text-decoration: underline; }
.ef-footer h2, .ef-footer h3 { color: #fff; }
.ef-footer .ef-claim { line-height: 1.5; }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.ef-header .ef-nav { margin-top: -70px; }
	.ef-mobil-mitte { text-align: center; }
	.ef-mobil-mitte .wp-block-image { margin-left: auto; margin-right: auto; }
	.ef-rund { max-width: 260px; margin-left: auto !important; margin-right: auto !important; }
}

/* Barrierefreiheit: sichtbarer Fokus */
:where(a, button, .wp-block-navigation-item__content):focus-visible {
	outline: 2px solid var(--wp--preset--color--salbei-dunkel);
	outline-offset: 3px;
}

.ef-abschnitt-klein { margin-top: clamp(2rem, 5vw, 3.5rem) !important; }
.ef-abstand-oben { margin-top: 2.5rem !important; }

/* Praxiseingang im Querformat wie auf der alten Seite */
.ef-bild-tuer img { aspect-ratio: 4 / 3.2; object-fit: cover; object-position: 50% 62%; width: 100%; }
@media (max-width: 781px) { .ef-bild-tuer img { aspect-ratio: 4 / 3; } }

/* kein Abstand zwischen Inhalt und Fußbereich */
.wp-site-blocks > footer { margin-block-start: 0; }
.ef-main:has(> .wp-block-post-content > .ef-band:last-child) { padding-bottom: 0; }
.ef-main > .wp-block-post-content > .ef-band.alignfull:last-child { margin-bottom: 0; }

/* Overlay des mobilen Menüs deckend */
.ef-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: var(--wp--preset--color--weiss) !important;
	color: var(--wp--preset--color--text) !important;
}
.ef-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.3rem; padding: 0.5rem 0; }
.ef-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { gap: 1rem; }
