/**
 * Berlintherapie — visual system aligned to live site.
 */

@font-face {
	font-family: "Raleway";
	font-style: normal;
	font-weight: 300 700;
	font-display: swap;
	src: url("../fonts/raleway-latin.woff2") format("woff2");
	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;
}

:root {
	--bt-primary: #66b1aa;
	/* AA-safe ink for white-on-teal / teal-on-white text (brand teal alone is ~2.5:1). */
	--bt-primary-ink: #2a6b64;
	--bt-secondary: #f7b267;
	--bt-accent: #f4d9d0;
	--bt-neutral-900: #4a5a57;
	--bt-neutral-500: #7b918c;
	--bt-neutral-100: #f6f8f7;
	--bt-white: #ffffff;
	--bt-container: 1080px;
	--bt-container-padding: 1.5rem;
	--bt-font-heading: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--bt-font-body: "Raleway", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	--bt-header-height: 4.8rem;
	--bt-focus: 0 0 0 3px rgba(102, 177, 170, 0.55);
	--bt-section-card-radius: 8px;
	--bt-section-card-shadow: 0 16px 30px rgba(74, 90, 87, 0.08);
	--bt-section-card-padding: 2rem;
	--bt-section-card-gap: 3rem;
	--wp--preset--color--primary: var(--bt-primary);
	--wp--preset--color--secondary: var(--bt-secondary);
	--wp--preset--color--neutral-900: var(--bt-neutral-900);
	--wp--preset--color--neutral-500: var(--bt-neutral-500);
	--wp--preset--color--neutral-100: var(--bt-neutral-100);
	--wp--preset--font-family--heading: var(--bt-font-heading);
	--wp--style--global--wide-size: 1080px;
}

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

html {
	scroll-behavior: smooth;
}

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	font-family: var(--bt-font-body);
	font-size: 1.125rem;
	color: var(--bt-neutral-900);
	background: var(--bt-neutral-100);
	-webkit-font-smoothing: antialiased;
	line-height: 1.7;
}

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

a {
	color: var(--bt-primary-ink);
}

a:hover,
a:focus-visible {
	color: var(--bt-neutral-900);
}

:focus-visible {
	outline: none;
	box-shadow: var(--bt-focus);
}

.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	white-space: nowrap;
}

.screen-reader-text:focus {
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	padding: 0.75rem 1rem;
	left: 0.75rem;
	top: 0.75rem;
	background: var(--bt-white);
	color: var(--bt-neutral-900);
	z-index: 10000;
	border-radius: 4px;
	box-shadow: var(--bt-focus);
}

.container {
	max-width: var(--bt-container);
	margin: 0 auto;
	padding: 0 var(--bt-container-padding);
	width: 100%;
}

/*
 * Section cards — match live gutenberg-group wrappers:
 * white surface, soft shadow, 8px radius on neutral page background.
 * Hero / availability stay outside this pattern.
 */
.wp-block-bt-intro > .container,
.wp-block-bt-article-umlauf > .container,
.wp-block-bt-service-cards > .container,
.wp-block-bt-practitioner > .container,
.wp-block-bt-testimonials > .container,
.wp-block-bt-faq > .container,
.wp-block-bt-location > .container,
.wp-block-bt-cta > .container,
.wp-block-bt-pricing-table > .container,
.wp-block-bt-video > .container,
.wp-block-bt-contact-form > .container {
	width: calc(100% - (2 * var(--bt-container-padding)));
	max-width: var(--bt-container);
	margin-top: var(--bt-section-card-gap);
	margin-bottom: 0;
	padding: var(--bt-section-card-padding);
	background: var(--bt-white);
	border-radius: var(--bt-section-card-radius);
	box-shadow: var(--bt-section-card-shadow);
}

/* Practitioner card is intentionally narrower (live gutenberg-group-me). */
.wp-block-bt-practitioner > .container {
	max-width: 400px;
	margin-left: auto;
	margin-right: auto;
}

/* Header — fixed bar height, content vertically centered in the bar */
.site-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	width: 100%;
	height: var(--bt-header-height);
	display: flex;
	align-items: center;
	background-color: rgba(255, 255, 255, 0.97);
	border-bottom: 1px solid rgba(102, 177, 170, 0.25);
	padding: 0;
	backdrop-filter: blur(10px);
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
	box-sizing: border-box;
}

/* WP admin bar sits above fixed headers — without this, content looks top-stuck */
body.admin-bar .site-header {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: 46px;
	}
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
	width: 100%;
}

.site-branding {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-title {
	margin: 0;
	font-family: var(--bt-font-heading);
	font-size: clamp(1.75rem, 2.5vw, 2.5rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	line-height: 1;
	text-transform: uppercase;
}

.site-title a {
	color: var(--bt-neutral-900);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	line-height: 1;
}

.site-navigation {
	margin-left: auto;
	display: flex;
	align-items: center;
	flex-shrink: 1;
	min-width: 0;
}

.site-navigation .menu {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: clamp(0.85rem, 1.6vw, 1.75rem);
	list-style: none;
	margin: 0;
	padding: 0;
}

.site-navigation .menu > li {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

.site-navigation a {
	color: var(--bt-neutral-900);
	text-decoration: none;
	font-size: clamp(0.95rem, 1.15vw, 1.125rem);
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
}

.site-navigation .current-menu-item > a,
.site-navigation a:hover,
.site-navigation a:focus-visible {
	color: var(--bt-primary);
}

.nav-toggle {
	display: none;
	position: relative;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	padding: 0;
	border-radius: 50%;
	border: 2px solid var(--bt-neutral-900);
	background: transparent;
	color: var(--bt-neutral-900);
	cursor: pointer;
	margin-left: auto;
	z-index: 1001;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.nav-toggle__bar {
	display: block;
	position: absolute;
	left: 50%;
	width: 1.25rem;
	height: 2px;
	border-radius: 2px;
	background: currentColor;
	transform: translateX(-50%);
	transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease;
}

.nav-toggle__bar:nth-child(1) {
	top: calc(50% - 8px);
}

.nav-toggle__bar:nth-child(2) {
	top: 50%;
	transform: translateX(-50%) translateY(-50%);
}

.nav-toggle__bar:nth-child(3) {
	top: calc(50% + 6px);
}

.nav-overlay {
	display: none;
}

.site-main {
	padding-top: var(--bt-header-height);
	padding-bottom: var(--bt-section-card-gap);
	min-height: 50vh;
}

/* Only the home full-bleed hero sits under the fixed header. */
.site-main:has(> .bt-hero--home:first-child),
.site-main:has(> .page-entry > .bt-hero--home:first-child),
.page-entry:has(> .bt-hero--home:first-child) {
	padding-top: 0;
}

.site-main > .bt-hero--home:first-child,
.page-entry > .bt-hero--home:first-child {
	margin-top: 0;
}

.site-main > .bt-hero--page:first-child,
.page-entry > .bt-hero--page:first-child {
	margin-top: 1rem;
}

/* Footer — live: dark, 4 columns (Über mich + Info stacked in col 2) */
.site-footer {
	margin-top: 0;
	padding: 4rem 0 0;
	background-color: var(--bt-neutral-900);
	color: #fff;
	font-size: 0.95rem;
}

.footer-widgets {
	display: grid;
	gap: 2.5rem;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	padding-bottom: 3rem;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-column__title {
	font-family: var(--bt-font-heading);
	font-size: clamp(1rem, 2vw, 1.2rem);
	font-weight: 600;
	margin: 0 0 0.75rem;
	color: #fff;
}

.footer-column--split {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.footer-subcolumn {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.footer-column--split .footer-column__title {
	margin-bottom: 0;
}

.footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-list li + li {
	margin-top: 0.35rem;
}

.footer-values {
	margin-top: 1.25rem;
}

.site-footer a {
	color: inherit;
	opacity: 0.85;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
	opacity: 1;
}

.site-footer a.footer-route-link {
	/* Light teal on dark footer (AA); not primary-ink. */
	color: #b7e0db;
	opacity: 1;
	font-weight: 500;
}

.site-footer a.footer-route-link:hover,
.site-footer a.footer-route-link:focus-visible {
	text-decoration: underline;
	opacity: 1;
}

.footer-contact {
	margin: 0;
	line-height: 1.7;
}

.site-footer__copy {
	margin: 0;
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.9rem;
	opacity: 0.7;
}

@media (max-width: 900px) {
	.footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 560px) {
	.footer-widgets {
		grid-template-columns: 1fr;
	}
}

.bt-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.7rem 1.5rem;
	border-radius: 50px;
	background: var(--bt-primary-ink);
	color: var(--bt-white);
	text-decoration: none;
	font-weight: 600;
	border: 2px solid transparent;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.bt-button:hover,
.bt-button:focus-visible {
	color: var(--bt-neutral-900);
	background: var(--bt-secondary);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 177, 170, 0.3);
}

.bt-button--ghost {
	background: transparent;
	color: var(--bt-primary-ink);
	border-color: var(--bt-primary-ink);
}

.bt-button--ghost:hover,
.bt-button--ghost:focus-visible {
	background: var(--bt-primary-ink);
	color: #fff;
}

/* Section headings — live scale (~21.6px) */
.bt-intro__heading,
.bt-service-cards__heading,
.bt-faq__heading,
.bt-testimonials__heading,
.bt-pricing__heading,
.bt-location__heading,
.bt-cta__heading,
.bt-video__heading,
.bt-contact-form__heading {
	position: relative;
	font-size: 1.35rem;
	font-weight: 600;
	line-height: 1.2;
}

@media (max-width: 860px) {
	.nav-toggle {
		display: inline-flex;
		align-self: center;
	}

	.nav-overlay {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 998;
		margin: 0;
		padding: 0;
		border: 0;
		background: rgba(74, 90, 87, 0.5);
		opacity: 0;
		visibility: hidden;
		pointer-events: none;
		cursor: pointer;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}

	.site-navigation {
		position: fixed;
		top: 0;
		right: 0;
		width: min(220px, 85vw);
		height: 100vh;
		height: 100dvh;
		z-index: 999;
		display: block;
		margin: 0;
		padding: calc(var(--bt-header-height) + 1rem) 1.5rem 2rem;
		overflow-y: auto;
		background: var(--bt-neutral-100);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		transform: translateX(100%);
		visibility: hidden;
		pointer-events: none;
		transition: transform 0.3s ease, visibility 0.3s ease;
	}

	.site-navigation.is-open {
		transform: translateX(0);
		visibility: visible;
		pointer-events: auto;
	}

	body.nav-open {
		overflow: hidden;
	}

	body.nav-open .nav-overlay {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	body.nav-open .nav-toggle {
		color: var(--bt-primary);
		border-color: var(--bt-primary);
	}

	body.nav-open .nav-toggle__bar:nth-child(1) {
		top: 50%;
		transform: translateX(-50%) translateY(-50%) rotate(45deg);
	}

	body.nav-open .nav-toggle__bar:nth-child(2) {
		opacity: 0;
	}

	body.nav-open .nav-toggle__bar:nth-child(3) {
		top: 50%;
		transform: translateX(-50%) translateY(-50%) rotate(-45deg);
	}

	.site-navigation .menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.site-navigation .menu > li {
		width: 100%;
	}

	.site-navigation a {
		display: block;
		width: 100%;
		min-height: 44px;
		padding: 1rem 0;
		border-bottom: 1px solid rgba(102, 177, 170, 0.15);
		font-size: 1.125rem;
		line-height: 1.3;
		transition: color 0.2s ease, transform 0.2s ease;
	}

	.site-navigation .current-menu-item > a,
	.site-navigation a:hover,
	.site-navigation a:focus-visible {
		color: var(--bt-primary);
		transform: translateX(5px);
	}

	body.nav-open .contact-fab {
		display: none;
	}
}

@media (max-width: 860px) and (prefers-reduced-motion: reduce) {
	.nav-overlay,
	.site-navigation,
	.nav-toggle__bar,
	.site-navigation a {
		transition: none;
	}
}

/*
 * Layout primitives — white section cards + text/image umlauf
 * (translated from live gutenberg-group / artikel-umlauf patterns).
 */
.bt-section-card {
	width: calc(100% - (2 * var(--bt-container-padding)));
	max-width: var(--bt-container);
	margin: var(--bt-section-card-gap) auto 0;
	padding: var(--bt-section-card-padding);
	background: var(--bt-white);
	border-radius: var(--bt-section-card-radius);
	box-shadow: var(--bt-section-card-shadow);
	color: var(--bt-neutral-900);
	box-sizing: border-box;
}

.bt-section-card h2,
.bt-section-card h3 {
	font-family: var(--bt-font-heading);
	margin: 0 0 1rem;
	color: var(--bt-neutral-900);
}

.bt-section-card p {
	margin: 0 0 1rem;
	line-height: 1.7;
	text-align: left;
}

.bt-section-card p:last-child {
	margin-bottom: 0;
}

.bt-section-card ul {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
	line-height: 1.7;
}

@media (max-width: 768px) {
	.bt-section-card {
		padding: 1.5rem;
	}
}

/* Kosten: form + location closer together */
.bt-kontakt-stack .wp-block-bt-contact-form > .container,
.bt-kontakt-stack .wp-block-bt-location > .container {
	margin-top: 1.5rem;
}

.bt-rich {
	width: calc(100% - (2 * var(--bt-container-padding)));
	max-width: var(--bt-container);
	margin: var(--bt-section-card-gap) auto 0;
	padding: var(--bt-section-card-padding);
	background: var(--bt-white);
	border-radius: var(--bt-section-card-radius);
	box-shadow: var(--bt-section-card-shadow);
	color: var(--bt-neutral-900);
	box-sizing: border-box;
}

.bt-rich h2,
.bt-rich h3 {
	font-family: var(--bt-font-heading);
	margin: 1.75rem 0 0.75rem;
}

.bt-rich h2:first-child,
.bt-rich h3:first-child {
	margin-top: 0;
}

.bt-rich p,
.bt-rich li {
	line-height: 1.75;
}

.bt-rich ul {
	padding-left: 1.2rem;
}

/* Complianz Cookie-Richtlinie — same card chrome + readable type as Impressum */
.page-entry > #cmplz-document,
.page-entry > .cmplz-document {
	width: calc(100% - (2 * var(--bt-container-padding)));
	max-width: var(--bt-container);
	margin: var(--bt-section-card-gap) auto 2.5rem;
	padding: var(--bt-section-card-padding);
	background: var(--bt-white);
	border-radius: var(--bt-section-card-radius);
	box-shadow: var(--bt-section-card-shadow);
	box-sizing: border-box;
}

.page-entry .bt-section-card #cmplz-document,
.page-entry .bt-section-card .cmplz-document {
	width: 100%;
	/* Match WP constrained layout used by Impressum/Datenschutz headings */
	max-width: var(--wp--style--global--content-size, 720px);
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	background: transparent;
	border-radius: 0;
	box-shadow: none;
}

.page-entry .bt-section-card #cmplz-document,
.page-entry .bt-section-card .cmplz-document,
.page-entry > #cmplz-document,
.page-entry > .cmplz-document {
	color: var(--bt-neutral-900);
	font-family: var(--bt-font-body, "Raleway", system-ui, sans-serif);
	font-size: 1.125rem;
	line-height: 1.7;
}

#cmplz-document h2,
.cmplz-document h2 {
	font-family: var(--bt-font-heading);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--bt-neutral-900);
	margin: 1.75rem 0 0.75rem;
	line-height: 1.3;
}

#cmplz-document h3,
.cmplz-document h3 {
	font-family: var(--bt-font-heading);
	font-size: 1.15rem;
	font-weight: 600;
	color: var(--bt-neutral-900);
	margin: 1.35rem 0 0.65rem;
	line-height: 1.3;
}

#cmplz-document > p:first-child {
	margin-top: 0.25rem;
	opacity: 0.9;
}

#cmplz-document p,
.cmplz-document p,
#cmplz-document li,
.cmplz-document li {
	color: var(--bt-neutral-900);
	line-height: 1.7;
	text-align: left;
}

#cmplz-document p,
.cmplz-document p {
	margin: 0 0 1rem;
}

#cmplz-document a,
.cmplz-document a {
	color: var(--bt-primary-ink);
}

#cmplz-document ul,
.cmplz-document ul {
	margin: 0 0 1rem;
	padding-left: 1.5rem;
}

#cmplz-document .cmplz-dropdown,
.cmplz-document .cmplz-dropdown {
	margin: 0.75rem 0;
	border: 1px solid rgba(74, 90, 87, 0.15);
	border-radius: 8px;
	overflow: hidden;
	background: #f6f8f7;
}

#cmplz-document .cmplz-dropdown summary,
.cmplz-document .cmplz-dropdown summary {
	padding: 0.75rem 1rem;
	cursor: pointer;
	font-weight: 600;
}

#cmplz-document .cmplz-dropdown summary::-webkit-details-marker {
	display: none;
}

@media (max-width: 768px) {
	.page-entry > #cmplz-document,
	.page-entry > .cmplz-document {
		padding: 1.5rem;
	}
}

.bt-kontakt-anchor {
	padding: 1.5rem 0 2rem;
}

.alignfull {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

/* Contact FAB — live: always flush to the right viewport edge */
.contact-fab {
	position: fixed;
	top: calc(-2rem + 87.5vh);
	right: 0;
	z-index: 900;
	padding: 1rem 2rem;
	border: 0;
	border-radius: 50px 0 0 50px;
	background: var(--bt-primary-ink);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 4px 12px rgba(102, 177, 170, 0.4);
	transform: translateX(100%);
	opacity: 0;
	pointer-events: none;
	transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-fab.is-visible {
	opacity: 1;
	pointer-events: auto;
	transform: translateX(0);
}

.contact-fab.is-visible:hover,
.contact-fab.is-visible:focus-visible {
	color: #fff;
	background: var(--bt-secondary);
	transform: translateX(-3px);
	box-shadow: 0 6px 16px rgba(102, 177, 170, 0.6);
}

body.nav-open .contact-fab {
	display: none;
}

@media (max-width: 768px) {
	.contact-fab {
		padding: 0.65rem 1.3rem;
		font-size: 0.65rem;
	}
}

/* Complianz Free — brand alignment (plugin optional). */
.cmplz-btn.cmplz-accept,
.cmplz-btn.cmplz-deny,
.cmplz-btn.cmplz-save,
.cmplz-btn.cmplz-view-preferences {
	border-radius: 50px !important;
}

.cmplz-btn.cmplz-accept,
.cmplz-btn.cmplz-save {
	background-color: var(--bt-primary-ink) !important;
	border-color: var(--bt-primary-ink) !important;
	color: #fff !important;
}

.cmplz-btn.cmplz-accept:hover,
.cmplz-btn.cmplz-save:hover {
	background-color: var(--bt-secondary) !important;
	border-color: var(--bt-secondary) !important;
}

.cmplz-manage-consent,
a.bt-cookie-trigger {
	cursor: pointer;
}

#cmplz-manage-consent .cmplz-header,
.cmplz-cookiebanner .cmplz-header {
	font-family: var(--bt-font-heading);
}
