/**
 * EBC Theme – Design 1:1 (variables, layout, components, animations)
 * Mirrors app/globals.css and Tailwind-style spacing
 */

/* ========== CSS Variables (from Next.js :root) ========== */
:root {
	--radius: 0.625rem;
	--radius-sm: calc(var(--radius) - 4px);
	--radius-md: calc(var(--radius) - 2px);
	--radius-lg: var(--radius);
	--radius-xl: calc(var(--radius) + 4px);
	--radius-2xl: calc(var(--radius) + 8px);
	--background: #ffffff;
	--foreground: #111827;
	--card: #ffffff;
	--card-foreground: #111827;
	--popover: #ffffff;
	--popover-foreground: #111827;
	--primary: #e76a89;
	--primary-foreground: #ffffff;
	--secondary: #f3f4f6;
	--secondary-foreground: #111827;
	--muted: #fde4ec;
	--muted-foreground: #4b5563;
	--accent: #fde4ec;
	--accent-foreground: #9f1239;
	--border: #e5e7eb;
	--input: #e5e7eb;
	--ring: #e76a89;
	--font-poppins: 'Poppins', system-ui, sans-serif;
}

/* ========== Base ========== */
*,
*::before,
*::after {
	box-sizing: border-box;
	border-color: var(--border);
}
html {
	scroll-behavior: auto;
	font-family: var(--font-poppins);
}
a[href^="#"] {
	scroll-behavior: smooth;
}
body,
body *,
input,
button,
textarea,
select,
.ebc-container,
.ebc-container *,
.ebc-nav,
.ebc-nav *,
.ebc-footer,
.ebc-footer *,
.ebc-card,
.ebc-btn,
.ebc-accordion-trigger,
.ebc-accordion-content,
.ebc-page-body,
.ebc-contact-form,
.ebc-contact-form * {
	font-family: inherit;
}
body {
	font-family: var(--font-poppins);
	background-color: var(--background);
	color: var(--foreground);
	margin: 0;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

/* Poppins überall erzwingen (Überschriften, WP-Blöcke, Formulare) */
h1, h2, h3, h4, h5, h6,
.ebc-h1, .ebc-h2, .ebc-h3,
p, span, label, legend,
.entry-content, .entry-content *,
.wp-block-paragraph, .wp-block-heading,
[class*="wp-block-"] {
	font-family: var(--font-poppins);
}

/* ========== Layout ========== */
.ebc-container {
	width: 100%;
	max-width: 1280px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}
@media (min-width: 640px) {
	.ebc-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
	.ebc-container { padding-left: 2rem; padding-right: 2rem; }
}

.ebc-section {
	padding-top: 3rem;
	padding-bottom: 3rem;
}
@media (min-width: 1024px) {
	.ebc-section { padding-top: 5rem; padding-bottom: 5rem; }
}

.ebc-section-muted {
	background-color: color-mix(in srgb, var(--muted) 40%, transparent);
}

/* ========== Buttons ========== */
.ebc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	height: 2.25rem;
	padding-left: 1rem;
	padding-right: 1rem;
	font-size: 0.875rem;
	font-weight: 500;
	border-radius: var(--radius-md);
	border: none;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s;
	white-space: nowrap;
}
.ebc-btn-primary {
	background-color: var(--primary);
	color: var(--primary-foreground);
}
.ebc-btn-primary:hover {
	background-color: color-mix(in srgb, var(--primary) 90%, black);
}
.ebc-btn-lg {
	height: 2.5rem;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	font-size: 1rem;
}
.ebc-btn-block {
	width: 100%;
	justify-content: center;
}

/* ========== Cards ========== */
.ebc-card {
	background-color: var(--card);
	color: var(--card-foreground);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}
.ebc-card-header {
	padding: 1.5rem 1.5rem 0;
}
.ebc-card-title {
	font-size: 1.125rem;
	font-weight: 600;
	margin: 0 0 0.5rem;
}
.ebc-card-description {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	margin: 0;
}
.ebc-card-content {
	padding: 1.5rem;
	flex: 1;
}
.ebc-card-border-primary {
	border-width: 2px;
	border-color: var(--primary);
}

/* ========== Service-Karten (z. B. Trainings-Übersicht): eigene Klassen, Content/Heading ohne Padding ========== */
.ebc-service-card {
	background-color: var(--card);
	color: var(--card-foreground);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}
.ebc-service-card.ebc-card-border-primary {
	border-width: 2px;
	border-color: var(--primary);
}
.ebc-service-card__media {
	width: 100%;
	height: 16rem;
	overflow: hidden;
	flex-shrink: 0;
}
.ebc-service-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.ebc-service-card__content {
	padding: 1.5rem;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
}
.ebc-service-card__heading {
	padding: 0;
	margin: 0 0 0.75rem;
}
.ebc-service-card__heading .ebc-card-title {
	margin: 0;
}
.ebc-service-card__body {
	padding: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
}
.ebc-service-card__body .ebc-card-description {
	flex: 1;
	margin-bottom: 1rem;
}
.ebc-service-card__body .ebc-btn {
	margin-top: auto;
}
.shadow-primary-soft {
	box-shadow: 0 20px 25px -5px rgba(231, 106, 137, 0.25), 0 10px 10px -5px rgba(231, 106, 137, 0.2);
}

/* ========== Navigation ========== */
.ebc-nav {
	position: sticky;
	top: 0;
	z-index: 50;
	width: 100%;
	border-bottom: 1px solid var(--border);
	background: #fff;
}
.ebc-nav-inner {
	display: flex;
	height: 4rem;
	align-items: center;
	justify-content: space-between;
}
.ebc-nav-brand { display: flex; align-items: center; }
.ebc-nav-logo-link { display: flex; align-items: center; }
.ebc-nav-logo { height: 4rem; width: auto; object-fit: contain; }
.ebc-nav-desktop {
	display: none;
	align-items: center;
	gap: 1.5rem;
}
@media (min-width: 768px) {
	.ebc-nav-desktop { display: flex; }
}
.ebc-nav-link {
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--foreground);
	text-decoration: none;
	transition: color 0.2s;
}
.ebc-nav-link:hover { color: var(--primary); }
.ebc-nav-dropdown { position: relative; }
.ebc-nav-dropdown-trigger {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--foreground);
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: color 0.2s;
}
.ebc-nav-dropdown-trigger:hover { color: var(--primary); }
.ebc-nav-chevron { transition: transform 0.2s; }
.ebc-nav-dropdown:hover .ebc-nav-chevron { transform: rotate(180deg); }
.ebc-nav-dropdown-menu {
	position: absolute;
	top: 100%;
	left: 0;
	padding-top: 0.5rem;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
	z-index: 50;
	width: 16rem;
}
.ebc-nav-dropdown:hover .ebc-nav-dropdown-menu {
	opacity: 1;
	visibility: visible;
}
.ebc-nav-dropdown-menu {
	background: var(--popover);
	border: 1px solid var(--border);
	border-radius: var(--radius-md);
	box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
	padding: 0.25rem 0;
}
.ebc-nav-dropdown-item {
	display: block;
	padding: 0.5rem 1rem;
	font-size: 0.875rem;
	color: var(--foreground);
	text-decoration: none;
	transition: background 0.2s;
}
.ebc-nav-dropdown-item:hover { background: var(--accent); }
.ebc-nav-mobile-toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
}
@media (min-width: 768px) {
	.ebc-nav-mobile-toggle { display: none; }
}
.ebc-nav-mobile {
	display: none;
	padding: 1rem 0;
	gap: 1rem;
	flex-direction: column;
	border-top: 1px solid var(--border);
}
.ebc-nav-mobile[hidden] { display: none !important; }
@media (min-width: 768px) {
	.ebc-nav-mobile { display: none !important; }
}
.ebc-nav-mobile.is-open { display: flex; }
.ebc-nav-mobile-link {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	color: var(--foreground);
	text-decoration: none;
}
.ebc-nav-mobile-dropdown-trigger {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.875rem;
	font-weight: 500;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	color: var(--foreground);
}
.ebc-nav-mobile-dropdown-menu {
	display: none;
	margin-top: 0.5rem;
	padding-left: 1rem;
	flex-direction: column;
	gap: 0.5rem;
}
.ebc-nav-mobile-dropdown.is-open .ebc-nav-mobile-dropdown-menu { display: flex; }
.ebc-nav-mobile-dropdown-menu a {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	text-decoration: none;
}
.ebc-nav-mobile-dropdown-menu a:hover { color: var(--foreground); }
.ebc-nav-mobile-cta { width: 100%; justify-content: center; }

/* ========== Footer ========== */
.ebc-footer {
	border-top: 1px solid var(--border);
	background: var(--background);
	padding: 3rem 0;
}
.ebc-footer-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	text-align: center;
}
@media (min-width: 768px) {
	.ebc-footer-grid {
		grid-template-columns: repeat(4, 1fr);
		text-align: left;
	}
}
.ebc-footer-logo-wrap { margin-bottom: 1rem; }
.ebc-footer-logo { height: 6rem; width: auto; object-fit: contain; }
@media (min-width: 768px) {
	.ebc-footer-logo { margin-left: 0; }
}
.ebc-footer-heading {
	font-size: 1rem;
	font-weight: 600;
	margin: 0 0 1rem;
}
.ebc-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}
.ebc-footer-links a {
	font-size: 0.875rem;
	color: var(--muted-foreground);
	text-decoration: none;
}
.ebc-footer-links a:hover { color: var(--foreground); }

/* ========== Typography ========== */
.ebc-h1 {
	font-size: 2.25rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	line-height: 1.2;
	margin: 0;
}
@media (min-width: 640px) { .ebc-h1 { font-size: 3rem; } }
@media (min-width: 768px) { .ebc-h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .ebc-h1 { font-size: 3.75rem; } }
.ebc-h2 {
	font-size: 1.875rem;
	font-weight: 600;
	letter-spacing: -0.025em;
	margin: 0 0 1rem;
}
@media (min-width: 640px) { .ebc-h2 { font-size: 2.25rem; } }
.ebc-text-muted { color: var(--muted-foreground); }
.ebc-text-lg { font-size: 1.125rem; }
.ebc-text-center { text-align: center; }
.ebc-max-w-xl { max-width: 36rem; }
.ebc-max-w-2xl { max-width: 42rem; }
.ebc-max-w-3xl { max-width: 48rem; }
.ebc-mx-auto { margin-left: auto; margin-right: auto; }

/* ========== Animations ========== */
@keyframes fadeInUp {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
	from { opacity: 0; transform: translateX(-30px); }
	to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
	from { opacity: 0; transform: translateX(30px); }
	to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.animate-fade-in-up {
	opacity: 0;
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	transform: translateY(30px);
}
.animate-fade-in-up.animate-visible {
	opacity: 1;
	transform: translateY(0);
}
.animate-fade-in-left {
	opacity: 0;
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	transform: translateX(-30px);
}
.animate-fade-in-left.animate-visible {
	opacity: 1;
	transform: translateX(0);
}
.animate-fade-in-right {
	opacity: 0;
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	transform: translateX(30px);
}
.animate-fade-in-right.animate-visible {
	opacity: 1;
	transform: translateX(0);
}
.animate-fade-in {
	opacity: 0;
	transition: opacity 0.6s ease-out;
}
.animate-fade-in.animate-visible { opacity: 1; }
@media (min-width: 1024px) {
	.animate-fade-in-left, .animate-fade-in-right { transform: translateY(30px); }
	.animate-fade-in-left.animate-visible, .animate-fade-in-right.animate-visible { transform: translateY(0); }
}
.animate-delay-100 { transition-delay: 0.1s; animation-delay: 0.1s; }
.animate-delay-200 { transition-delay: 0.2s; animation-delay: 0.2s; }
.animate-delay-300 { transition-delay: 0.3s; animation-delay: 0.3s; }
.animate-delay-400 { transition-delay: 0.4s; animation-delay: 0.4s; }
.animate-delay-500 { transition-delay: 0.5s; animation-delay: 0.5s; }

/* ========== Grids ========== */
.ebc-grid-1 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
.ebc-grid-3 { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) {
	.ebc-grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.ebc-grid-2 { display: grid; grid-template-columns: 1fr; gap: 3rem; }
@media (min-width: 1024px) {
	.ebc-grid-2 { grid-template-columns: 1fr 1fr; align-items: center; }
}

/* ========== Swiper testimonials overrides ========== */
.testimonials-swiper {
	padding-bottom: 48px !important;
	list-style: none;
	overflow: hidden;
	width: 100%;
}
.testimonials-swiper .swiper-pagination {
	position: absolute !important;
	bottom: 0 !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	display: flex !important;
	justify-content: center !important;
	gap: 8px !important;
	z-index: 10 !important;
}
.testimonials-swiper .swiper-pagination-bullet {
	background: #000 !important;
	width: 10px !important;
	height: 10px !important;
	opacity: 0.3 !important;
	margin: 0 4px !important;
}
.testimonials-swiper .swiper-pagination-bullet-active {
	background: #000 !important;
	opacity: 1 !important;
}

/* ========== Accordion (FAQ) ========== */
.ebc-accordion { border-bottom: 1px solid var(--border); }
.ebc-accordion-item { border-top: 1px solid var(--border); }
.ebc-accordion-trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1rem 0;
	font-size: 1rem;
	font-weight: 500;
	text-align: left;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--foreground);
}
.ebc-accordion-trigger:hover { color: var(--primary); }
.ebc-accordion-trigger::after {
	content: '';
	width: 16px;
	height: 16px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: rotate(45deg);
	transition: transform 0.2s;
	flex-shrink: 0;
	margin-left: 0.5rem;
}
.ebc-accordion-item.is-open .ebc-accordion-trigger::after { transform: rotate(-135deg); }
.ebc-accordion-content {
	display: none;
	padding-bottom: 1rem;
	color: var(--muted-foreground);
	font-size: 0.875rem;
	line-height: 1.6;
}
.ebc-accordion-item.is-open .ebc-accordion-content { display: block; }

/* ========== Page content (legal, etc.) ========== */
.ebc-page-main { flex: 1; padding: 3rem 0; }
@media (min-width: 1024px) { .ebc-page-main { padding: 5rem 0; } }
.ebc-page-content { max-width: 48rem; }
.ebc-page-title { font-size: 1.875rem; font-weight: 600; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .ebc-page-title { font-size: 2.25rem; } }
.ebc-page-body { color: var(--muted-foreground); font-size: 0.875rem; line-height: 1.75; }
@media (min-width: 640px) { .ebc-page-body { font-size: 1rem; } }
.ebc-page-body p { margin: 0 0 1rem; }
.ebc-page-body section { margin-bottom: 2rem; }
.ebc-page-body h2 { font-size: 1.5rem; font-weight: 600; margin: 0 0 1rem; color: var(--foreground); }
.ebc-page-body h3 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: var(--foreground); }
.ebc-page-body a { color: var(--primary); text-decoration: none; }
.ebc-page-body a:hover { text-decoration: underline; }
.ebc-link { color: var(--primary); text-decoration: none; }
.ebc-link:hover { text-decoration: underline; }
.ebc-page-body ul { list-style-type: disc; padding-left: 1.5rem; margin: 0 0 1rem; }
.ebc-page-body ul li { margin-bottom: 0.25rem; }
.ebc-page-body ul li + li { margin-top: 0.5rem; }

/* ========== Kontakt Wizard ========== */
.ebc-kontakt { min-height: 100vh; background: var(--background); padding-bottom: 5rem; }
.ebc-kontakt-thankyou { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.ebc-contact-headline { margin-bottom: 2rem; min-height: 3rem; }
.ebc-contact-title { font-size: 1.5rem; font-weight: 600; margin: 0 0 0.5rem; }
@media (min-width: 640px) { .ebc-contact-title { font-size: 1.875rem; } }
.ebc-contact-subtext { font-size: 1rem; color: var(--muted-foreground); margin: 0; }
.ebc-contact-error { margin-bottom: 1rem; padding: 0.75rem 1rem; background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: var(--radius-md); font-size: 0.875rem; }
.ebc-contact-steps { min-height: 200px; }
.ebc-step { display: flex; flex-direction: column; gap: 0.75rem; }
.ebc-step[hidden] { display: none !important; }
.ebc-radio-group, .ebc-checkbox-group { display: flex; flex-direction: column; gap: 0.75rem; }
.ebc-radio-label, .ebc-checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 500; cursor: pointer; }
.ebc-field-label { display: block; font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; }
.ebc-input { width: 100%; height: 2.75rem; padding: 0 0.75rem; font-size: 1rem; border: 1px solid var(--border); border-radius: var(--radius-md); }
.ebc-input:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ring) 50%, transparent); }
.ebc-field-error { font-size: 0.875rem; color: #b91c1c; margin-top: 0.25rem; }
.ebc-btn-outline { background: transparent; border: 1px solid var(--border); color: var(--foreground); }
.ebc-btn-outline:hover:not(:disabled) { background: var(--secondary); }
.ebc-btn-outline:disabled { opacity: 0.5; cursor: not-allowed; }
.ebc-contact-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--background); border-top: 1px solid var(--border); padding: 1rem; }
