/* =========================================================
   Ergotherapie-Praxis — Haupt-Stylesheet
   Farbwerte kommen als CSS-Variablen aus dem Einstellungen-Panel
   (siehe functions.php -> et_output_css_vars)
   ========================================================= */

h1, h2, h3, h4 {
	font-family: var(--et-font-heading, 'Poppins', sans-serif);
	margin: 0 0 .5em;
	line-height: 1.2;
}

.et-btn {
	display: inline-block;
	padding: .9em 1.8em;
	border-radius: 999px;
	font-weight: 600;
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease;
}
.et-btn:hover { transform: translateY(-2px); }

.et-btn-accent {
	background: var(--et-accent);
	color: #fff;
	box-shadow: 0 6px 16px rgba(0,0,0,.15);
}
.et-btn-accent:hover { background: var(--et-accent-dark); }

/* ---------- Header ---------- */
.et-header {
	background: var(--et-primary);
	position: sticky;
	top: 0;
	z-index: 50;
}
.et-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1em 1.5em;
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.et-logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}
.et-logo img {
	height: 44px;
	width: auto;
	display: block;
}
.et-nav {
	display: flex;
	align-items: center;
	gap: 1.5em;
}
.et-nav a { color: #fff; text-decoration: none; font-weight: 500; }
.et-nav ul { list-style: none; display: flex; gap: 1.5em; margin: 0; padding: 0; }

.et-nav-toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 0;
	cursor: pointer;
	padding: 0;
}
.et-nav-toggle span {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	margin: 0 auto;
	transition: transform .2s ease, opacity .2s ease;
}
.et-nav-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.et-nav-toggle.is-active span:nth-child(2) { opacity: 0; }
.et-nav-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.et-hero {
	position: relative;
	min-height: var(--et-hero-height, 60vh);
	display: flex;
	align-items: flex-end;
	background: var(--et-primary);
	overflow: hidden;
}
.et-hero-image {
	position: absolute;
	inset: 0;
}
.et-hero-image img,
.et-hero-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: linear-gradient(135deg, var(--et-primary-dark), var(--et-primary));
}
.et-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1.2s ease-in-out;
}
.et-hero-slide.is-active {
	opacity: 1;
}
.et-hero-content {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 2.5em 1.5em;
	background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 100%);
	color: #fff;
}
.et-hero-content h1 {
	font-size: clamp(1.8rem, 4vw, 3rem);
}
.et-hero-content p {
	max-width: 640px;
	font-size: 1.1rem;
	margin-bottom: 1.2em;
}

/* ---------- Leistungen ---------- */
.et-leistungen {
	max-width: 1200px;
	margin: 0 auto;
	padding: 4em 1.5em;
	text-align: center;
}
.et-leistungen h2 {
	font-size: 2rem;
	color: var(--et-primary);
	margin-bottom: 1.5em;
}
.et-leistungen-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5em;
}
.et-leistung-card {
	background: #fff;
	border: 1px solid #eee;
	border-radius: 14px;
	padding: 2em 1.5em;
	box-shadow: 0 8px 24px rgba(0,0,0,.06);
	text-align: left;
	transition: transform .2s ease;
}
.et-leistung-card:hover { transform: translateY(-4px); }
.et-leistung-icon {
	display: inline-flex;
	width: 48px;
	height: 48px;
	padding: 10px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--et-accent) 15%, transparent);
	color: var(--et-accent);
	margin-bottom: 1em;
}
.et-leistung-icon svg { width: 100%; height: 100%; }
.et-leistung-card h3 { color: var(--et-primary); font-size: 1.15rem; }
.et-leistung-card p { color: var(--et-text); line-height: 1.5; }

/* ---------- Öffnungszeiten: grüner Block mit diagonaler Kante zu Magenta ---------- */
.et-oeffnungszeiten {
	position: relative;
	background: var(--et-accent);
	color: #fff;
	padding: 5em 1.5em 6em;
	clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%);
	margin-top: -3em;
}
.et-oz-inner {
	max-width: 800px;
	margin: 0 auto;
}
.et-oeffnungszeiten h2 {
	font-size: 2rem;
	text-align: center;
	margin-bottom: 1em;
}
.et-oz-list {
	list-style: none;
	margin: 0;
	padding: 0;
	background: rgba(255,255,255,.12);
	border-radius: 14px;
	overflow: hidden;
}
.et-oz-list li {
	display: flex;
	justify-content: space-between;
	padding: .85em 1.5em;
	border-bottom: 1px solid rgba(255,255,255,.18);
}
.et-oz-list li:last-child { border-bottom: none; }
.et-oz-tag { font-weight: 600; }

/* ---------- Kontakt ---------- */
.et-kontakt {
	background: var(--et-primary);
	color: #fff;
	padding: 5em 1.5em;
	margin-top: -3.5em;
}
.et-kontakt-inner {
	max-width: 1100px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3em;
	align-items: center;
}
.et-kontakt h2 { font-size: 2rem; }
.et-kontakt a { color: #fff; }
.et-map-placeholder,
.et-kontakt-map iframe {
	width: 100%;
	min-height: 280px;
	border-radius: 14px;
	background: rgba(255,255,255,.1);
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
}

/* ---------- Footer ---------- */
.et-footer {
	background: var(--et-primary-dark);
	color: #fff;
}
.et-kontakt-logo {
	display: flex;
	justify-content: flex-start;
	margin-bottom: 1em;
}
.et-kontakt-logo img {
	height: 56px;
	width: auto;
	display: block;
}
.et-footer-bottom {
	text-align: center;
	padding: 1em;
	background: rgba(0,0,0,.15);
	font-size: .8rem;
}

.et-content-simple {
	max-width: 800px;
	margin: 0 auto;
	padding: 4em 1.5em;
}

@media (max-width: 780px) {
	.et-nav-toggle { display: flex; }

	.et-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		background: var(--et-primary-dark);
		max-height: 0;
		overflow: hidden;
		transition: max-height .3s ease;
	}
	.et-nav.is-open {
		max-height: 400px;
	}
	.et-nav ul {
		display: flex;
		flex-direction: column;
		gap: 0;
		width: 100%;
	}
	.et-nav ul li { width: 100%; }
	.et-nav ul a {
		display: block;
		padding: .9em 1.5em;
		border-bottom: 1px solid rgba(255,255,255,.1);
	}
	.et-nav > a.et-btn {
		margin: 1em 1.5em;
	}
	.et-header-inner { position: relative; flex-wrap: wrap; }

	.et-kontakt-inner { grid-template-columns: 1fr; }
}
