/*
Theme Name: Physio Wojcicki
Theme URI: https://physiotherapie-wojcicki.de
Author: Physiotherapie Wojcicki
Author URI: https://physiotherapie-wojcicki.de
Description: Individuelles WordPress-Theme für die Physiotherapiepraxis Wojcicki in Neustadt am Rübenberge. Modernes, responsives Design auf Basis von Tailwind CSS.
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.2
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: physio-wojcicki
*/

:root {
	--color-accent: #C85A32;
	--color-accent-dark: #BD4F28;
	--color-secondary: #1E4355;
	--color-secondary-dark: #163342;
	--color-cream: #F9F6F0;
	--color-mint: #E8F2F4;
	--color-border: #E5E7EB;
	--color-text: #222222;
	--color-text-light: #555555;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Inter', Arial, sans-serif;
	color: var(--color-text);
}

.font-serif {
	font-family: 'Playfair Display', Georgia, serif;
}

.font-script {
	font-family: 'Caveat', 'Segoe Script', cursive;
}

/* Skip link for accessibility */
.skip-link {
	position: absolute;
	left: -9999px;
	top: auto;
	z-index: 100000;
	background: var(--color-secondary);
	color: #fff;
	padding: 0.75rem 1.25rem;
	border-radius: 0 0 0.5rem 0;
}

.skip-link:focus {
	left: 0;
	top: 0;
}

/* Contact Form 7 sanitizes punctuation in utility class options. */
#kontaktformular .physio-contact-wide {
	grid-column: 1 / -1;
}

#kontaktformular .grid > div {
	min-width: 0;
}

#kontaktformular .physio-contact-field {
	border-color: #C9D6E8;
	color: var(--color-text);
}

#kontaktformular .physio-contact-field::placeholder {
	color: var(--color-text-light);
	opacity: 1;
}

#kontaktformular .physio-contact-field:focus {
	border-color: var(--color-accent);
	outline: 2px solid var(--color-accent);
	outline-offset: 2px;
}

#kontaktformular .wpcf7-submit {
	max-width: 100%;
	white-space: normal;
	cursor: pointer;
}

#kontaktformular .wpcf7-submit:hover {
	background-color: var(--color-secondary);
}

#kontaktformular .wpcf7-submit:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 3px;
}

#kontaktformular .wpcf7-not-valid-tip {
	color: #a52a21;
	font-size: 0.875rem;
}

#kontaktformular .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem 1.25rem;
	border: 1px solid #C9D6E8;
	border-inline-start-width: 4px;
	border-radius: 0.75rem;
	background-color: var(--color-cream, #F9F6F0);
	color: var(--color-secondary);
	font-size: 0.9375rem;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

#kontaktformular form.sent .wpcf7-response-output {
	border-color: #487681;
	background-color: #E8F2F4;
}

#kontaktformular form.invalid .wpcf7-response-output,
#kontaktformular form.unaccepted .wpcf7-response-output,
#kontaktformular form.payment-required .wpcf7-response-output {
	border-color: #BD4F28;
	background-color: #F9F6F0;
}

#kontaktformular form.failed .wpcf7-response-output,
#kontaktformular form.aborted .wpcf7-response-output,
#kontaktformular form.spam .wpcf7-response-output {
	border-color: #A34229;
	background-color: #FBEFE9;
	color: #84351F;
}

/* Floating hero badge */
.hero-badge {
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.25);
}

/* Layered page heroes */
.home-hero,
.page-hero {
	isolation: isolate;
}

.home-hero__content,
.page-hero__content {
	position: relative;
	z-index: 2;
	box-sizing: border-box;
	width: 100%;
}

.home-hero__copy,
.page-hero__copy {
	box-sizing: border-box;
	width: 100%;
	max-width: 38rem;
	min-width: 0;
}

.home-hero__image,
.page-hero__image {
	isolation: isolate;
}

.home-hero__image img,
.page-hero__image img {
	object-position: center 52%;
}

.home-hero .hero-badge,
.page-hero .hero-badge {
	z-index: 2;
	border: 1px solid rgba(200, 90, 50, 0.3);
	box-shadow: 0 12px 30px -8px rgba(22, 51, 66, 0.3);
}

.home-hero .hero-badge {
	right: 1rem;
}

@media (min-width: 640px) {
	.home-hero .hero-badge {
		right: 1.5rem;
	}
}

@media (max-width: 639px) {
	.home-hero__copy,
	.page-hero__copy {
		width: min(100%, calc(100vw - 2rem));
	}

	.home-hero__copy > .flex,
	.page-hero__copy > .flex {
		flex-direction: column;
		align-items: stretch;
	}

	.home-hero__copy > .flex > a,
	.page-hero__copy > .flex > a {
		box-sizing: border-box;
		justify-content: center;
		width: 100%;
	}
}

@media (min-width: 1024px) {
	.home-hero .hero-badge {
		right: max(2rem, calc((100vw - 80rem) / 2 + 2rem));
	}

	.home-hero,
	.page-hero {
		min-height: 34rem;
	}

	.home-hero__content,
	.page-hero__content {
		display: flex;
		align-items: center;
		min-height: 34rem;
	}

	.home-hero__copy,
	.page-hero__copy {
		width: 52%;
	}

	.home-hero__image,
	.page-hero__image {
		position: absolute;
		inset: 0 0 0 auto;
		z-index: 0;
		width: 64%;
		max-width: 62rem;
		min-height: 0;
	}

	.home-hero::before,
	.home-hero::after,
	.page-hero::before,
	.page-hero::after {
		content: "";
		position: absolute;
		z-index: 1;
		pointer-events: none;
		border-radius: 50%;
	}

	.home-hero::before,
	.page-hero::before {
		top: -34%;
		left: -37%;
		width: 100%;
		height: 168%;
		background: rgba(232, 242, 244, 0.5);
	}

	.home-hero::after,
	.page-hero::after {
		top: -30%;
		left: -40%;
		width: 100%;
		height: 160%;
		background: var(--color-cream);
	}
}

/* Airy team cards with circular portraits */
.team-section {
	padding: 4.5rem 0 6rem;
}

.team-container {
	max-width: 68rem;
}

.team-grid {
	gap: 2rem;
	justify-items: center;
	align-items: start;
}

.team-grid + .team-grid {
	margin-top: 3.5rem;
}

.team-card {
	box-sizing: border-box;
	width: 100%;
	max-width: 20rem;
	min-width: 0;
	padding: 2.25rem 1.5rem;
	overflow-wrap: anywhere;
}

.team-portrait {
	width: 10rem;
	height: 10rem;
	margin-bottom: 1.75rem;
}

.team-portrait img {
	object-position: center;
}

.team-role,
.team-bio {
	line-height: 1.8;
}

.team-bio > * + *,
.team-intro > * + * {
	margin-top: 1rem;
}

.team-link {
	color: var(--color-accent-dark);
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.team-card a:focus-visible {
	outline: 2px solid var(--color-secondary);
	outline-offset: 4px;
}

@media (min-width: 768px) {
	.team-section {
		padding: 6rem 0 8rem;
	}

	.team-grid {
		column-gap: 3rem;
		row-gap: 3.5rem;
	}

	.team-grid--featured {
		max-width: 48rem;
		margin: 0 auto;
		align-items: stretch;
	}

	.team-grid--featured .team-card {
		max-width: 22rem;
	}

	.team-portrait {
		width: 11rem;
		height: 11rem;
	}
}

/* Mobile menu transition */
#mobile-menu {
	transition: max-height 0.3s ease-in-out;
}

/* Decorative watermark leaves for location card */
.leaf-watermark {
	pointer-events: none;
}

/* Styled lists in page content (e.g. Leistungen) */
.leistungen-intro ul,
.entry-content ul {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: grid;
	gap: 0.625rem;
}

.leistungen-intro ul li,
.entry-content ul li {
	position: relative;
	padding-left: 2.25rem;
	min-height: 1.5rem;
	color: var(--color-secondary);
	font-weight: 600;
	line-height: 1.5;
}

.leistungen-intro ul li::before,
.entry-content ul li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.125rem;
	width: 1.5rem;
	height: 1.5rem;
	border-radius: 9999px;
	background-color: var(--color-accent);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
	background-size: 0.875rem;
	background-position: center;
	background-repeat: no-repeat;
}

/* Larger logo without increasing header height */
header .custom-logo {
	height: 4.25rem;
	width: auto;
	max-width: none;
	margin: -0.75rem 0;
}

@media (min-width: 640px) {
	header .custom-logo {
		height: 4.5rem;
	}
}

#mobile-menu a {
	color: var(--color-secondary);
	font-weight: 600;
}

#mobile-menu a:hover,
#mobile-menu a:focus-visible {
	color: var(--color-accent);
}

/* Desktop navigation: active item bold with terracotta underline */
.desktop-nav ul {
	gap: 2.25rem;
	font-size: 0.9375rem;
	font-weight: 400;
}

.desktop-nav ul a {
	display: inline-block;
	padding: 0.25rem 0;
	border-bottom: 2px solid transparent;
	color: var(--color-secondary);
	font-weight: 400;
	text-decoration: none;
	transition: color 0.2s, border-color 0.2s;
}

.desktop-nav ul a:hover,
.desktop-nav ul a:focus-visible {
	color: var(--color-accent);
}

.desktop-nav ul .current-menu-item > a,
.desktop-nav ul .current_page_item > a,
.desktop-nav ul a[aria-current="page"],
.desktop-nav ul a.border-accent {
	color: var(--color-secondary);
	font-weight: 600;
	border-bottom-color: var(--color-accent);
}

.cookie-consent-banner[hidden] {
	display: none !important;
}

.cookie-consent-banner {
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	left: 1rem;
	right: 1rem;
	width: min(42rem, calc(100vw - 2rem));
}

@media (min-width: 640px) {
	.cookie-consent-banner {
		left: auto;
		right: 1.5rem;
		width: min(42rem, calc(100vw - 3rem));
	}
}


/* Typography for editor content (Tailwind preflight resets headings) */
.entry-content,
.leistungen-intro {
	line-height: 1.7;
}

.entry-content > * + * {
	margin-top: 1rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
	font-family: "Playfair Display", Georgia, "Times New Roman", serif;
	color: var(--color-secondary);
	font-weight: 700;
	line-height: 1.2;
}

.entry-content h2 {
	font-size: 1.75rem;
	margin-top: 2.5rem;
	margin-bottom: 0.75rem;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid #E8F2F4;
}

.entry-content h3 {
	font-size: 1.375rem;
	margin-top: 2rem;
	margin-bottom: 0.5rem;
}

.entry-content h4 {
	font-size: 1.125rem;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
}

.entry-content p {
	color: #222222;
}

.entry-content a {
	color: var(--color-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content a:hover {
	color: var(--color-secondary);
}

.entry-content strong {
	font-weight: 600;
	color: var(--color-secondary);
}

.entry-content ol {
	list-style: decimal;
	padding-left: 1.5rem;
}

@media (min-width: 640px) {
	.entry-content h2 {
		font-size: 2rem;
	}
}
