/*
Theme Name: enjoYoga
Theme URI: https://www.enjoyoga-hersfeld.de/
Author: enjoYoga
Description: Schlankes Theme für enjoYoga – Eva Proschinger (Yoga und Pilates in Bad Hersfeld). Bildet das bisherige Oxygen-Design nach: Header mit Kontaktleiste, Logo und Hauptmenü, Bild-Slider auf der Startseite, Seiten-Header-Bilder, rosa Footer. Inhalte sind echte Gutenberg-Blöcke und lassen sich im Editor bearbeiten. Kontaktdaten, Footer-Text und Social-Links stehen im Customizer. Schriften sind lokal eingebunden (keine Verbindung zu Google).
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.9
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enjoyoga
*/

/* ==========================================================================
   Schriften (lokal, variable Fonts – siehe assets/fonts)
   ========================================================================== */
@font-face {
	font-family: 'Google Sans';
	font-style: normal;
	font-weight: 400 700;
	font-display: swap;
	src: url('assets/fonts/google-sans-latin.woff2') format('woff2');
}
@font-face {
	font-family: 'Roboto Condensed';
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url('assets/fonts/roboto-condensed-latin.woff2') format('woff2');
}

/* ==========================================================================
   Variablen & Basis
   ========================================================================== */
:root {
	--pink: #ed6c88;
	--purple: #a02183;
	--beige: rgba(222, 202, 183, 0.3);
	--text: #646363;
	--ink: #3b3c38;
	--max: 1120px;
	--gutter: 20px;
	--font-body: 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	--font-head: 'Roboto Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 18px;
	line-height: 1.6;
	font-weight: 400;
	color: var(--text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--pink); text-decoration: none; transition: color .3s ease; }
a:hover, a:focus-visible { color: var(--purple); }
a:focus-visible, button:focus-visible {
	outline: 2px solid var(--purple);
	outline-offset: 3px;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	font-weight: 600;
	line-height: 1.2;
	color: var(--purple);
	margin: 0 0 .5em;
}
h1 { font-size: 48px; color: var(--pink); }
h2 { font-size: 36px; }
h3 { font-size: 24px; }
h4, h5, h6 { font-size: 20px; }
p { margin: 0 0 1.2em; }

.container {
	width: 100%;
	max-width: var(--max);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0; border: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed !important;
	top: 8px; left: 8px;
	width: auto; height: auto;
	margin: 0; padding: 10px 16px;
	clip: auto; clip-path: none;
	background: #fff; color: var(--purple);
	z-index: 100000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: relative; z-index: 20; }

/* Zeile 1: Kontaktleiste */
.header-row--info { background: var(--beige); padding: 12px 0; }
.header-row--info .container {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	align-items: center;
	column-gap: 6px;
}
.info-text, .info-link {
	font-family: var(--font-head);
	font-size: 14px;
	line-height: 1.4;
	margin: 0;
}
.info-text { color: var(--ink); text-align: right; }
.info-link { color: var(--purple); }
.info-link:hover { color: var(--purple); text-decoration: underline; }

/* Zeile 2: Hauptmenü */
.main-nav .container { display: flex; flex-direction: column; align-items: center; }
.main-nav ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}
.main-nav li { position: relative; margin: 0; }
.main-nav a {
	display: block;
	padding: 24px 20px 22px;
	border-bottom: 2px solid transparent;
	color: var(--purple);
	font-family: var(--font-body);
	font-size: 16px;
	font-weight: 500;
	line-height: 1.6;
	letter-spacing: 1px;
	text-transform: uppercase;
	transition: background-color .3s ease, color .3s ease;
}
.main-nav a:hover,
.main-nav a:focus-visible,
.main-nav li:focus-within > a {
	background: var(--purple);
	color: #fff;
	border-bottom-color: transparent;
}
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a,
.main-nav .current-menu-ancestor > a {
	color: var(--pink);
	border-bottom-color: var(--pink);
}
.main-nav .current-menu-item > a:hover,
.main-nav .current_page_item > a:hover {
	color: #fff;
	border-bottom-color: transparent;
}
/* Untermenüs (falls später genutzt) */
.main-nav .sub-menu {
	display: none;
	position: absolute;
	left: 0; top: 100%;
	min-width: 220px;
	flex-direction: column;
	background: var(--purple);
	z-index: 30;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { display: flex; }
.main-nav .sub-menu a { color: #fff; padding: 16px 20px; border: 0; }
.main-nav .sub-menu a:hover { background: var(--pink); }

.menu-toggle {
	display: none;
	background: none;
	border: 0;
	padding: 22px;
	cursor: pointer;
}
.hamburger { display: block; width: 24px; height: 19px; position: relative; }
.hamburger i {
	position: absolute; left: 0;
	width: 100%; height: 3px;
	background: var(--purple);
	transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.hamburger i:nth-child(1) { top: 0; }
.hamburger i:nth-child(2) { top: 8px; }
.hamburger i:nth-child(3) { top: 16px; }
.menu-toggle[aria-expanded="true"] .hamburger i:nth-child(1) { top: 8px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .hamburger i:nth-child(3) { top: 8px; transform: rotate(-45deg); }

@media (max-width: 1120px) {
	.js .menu-toggle { display: block; }
	.js .main-nav ul { display: none; flex-direction: column; width: 100%; }
	.js .main-nav.is-open ul { display: flex; }
	.js .main-nav.is-open { background: var(--beige); }
	.js .main-nav a { padding: 12px 20px; border-bottom: 0; text-align: center; }
	.js .main-nav .sub-menu { position: static; display: flex; background: transparent; min-width: 0; }
	.js .main-nav .sub-menu a { color: var(--purple); }
	/* ohne JavaScript bleibt das Menü sichtbar und bricht um */
	.main-nav a { padding: 12px 14px; }
}

/* Zeile 3: Social + Logo */
.header-row--brand { padding: 12px 0; }
.header-row--brand .container {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}
.brand-left { justify-self: start; }
.brand-center { justify-self: center; }
.container--flush { padding-inline: 0; }
.site-logo { display: block; opacity: .8; transition: opacity .5s ease; line-height: 0; }
.site-logo:hover, .site-logo:focus-visible { opacity: 1; }
.site-logo img, .custom-logo { height: 150px; width: auto; max-width: 100%; }
.custom-logo-link { display: block; line-height: 0; }

@media (max-width: 767px) {
	.header-row--info .container { justify-content: center; flex-direction: column; }
	.info-text { text-align: center; }
	.header-row--brand .container { grid-template-columns: 1fr; justify-items: center; row-gap: 14px; }
	.brand-center { order: -1; }
	.brand-left { justify-self: center; }
	.brand-right { display: none; }
	.site-logo img, .custom-logo { height: 120px; }
}

/* Social Icons */
.social-icons { display: flex; gap: 8px; list-style: none; margin: 0; padding: 0; }
.social-icons li { margin: 0; }
.social-icons a {
	display: grid;
	place-items: center;
	width: 34px; height: 34px;
	border-radius: 50%;
	background: var(--purple);
	color: #fff;
	transition: background-color .3s ease, color .3s ease;
}
.social-icons a:hover, .social-icons a:focus-visible { background: var(--pink); color: #fff; }
.social-icons svg { width: 17px; height: 17px; fill: currentColor; }

/* ==========================================================================
   Seiteninhalt
   ========================================================================== */
.site-main { display: block; }
.section--hero { padding-top: 45px; }
.page-hero { margin: 0; text-align: center; }
.page-hero img { display: block; width: 100%; height: auto; }
.section--content { padding: 75px 0; }
.entry-header, .entry-content { padding-inline: 20px; }
.entry-content::after { content: ''; display: block; clear: both; }

.entry-title {
	margin: 0 0 24px;
	text-transform: uppercase;
}
.entry-content { font-family: var(--font-head); }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content h1, .entry-content h2 { text-transform: uppercase; }
.entry-content h3 { text-transform: none; }
.entry-content h2.is-small { font-size: 28px; margin-top: 1.4em; }
.entry-content h3.is-small { font-size: 20px; margin-top: 1.2em; }
.entry-content p { margin: 0 0 1em; }
.entry-content > p, .entry-content > ul.wp-block-list { max-width: 85%; }
.entry-content p.is-lead { font-size: 20px; }
.entry-content .wp-block-column p.is-lead { max-width: none; }
.entry-content h2, .entry-content h3 { margin-top: 1.2em; }
.entry-content > :first-child,
.entry-content .wp-block-column > :first-child,
.entry-content .is-narrow > :first-child { margin-top: 0; }
.entry-content p.accent { color: var(--purple); }
.entry-content p.accent-pink { color: var(--pink); }
.entry-content strong, .entry-content b { font-weight: 700; }
.entry-content ul.wp-block-list { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content ul.wp-block-list li { margin-bottom: .4em; }
.entry-content .wp-block-image { margin: 0 0 1em; }
.entry-content .wp-block-image img { display: block; width: 100%; height: auto; }
.entry-content a:hover { text-decoration: underline; }

/* Spalten */
.entry-content .wp-block-columns {
	display: flex;
	flex-wrap: nowrap;
	gap: 0 40px;
	margin: 0 0 30px;
	align-items: flex-start;
}
.entry-content .wp-block-column { min-width: 0; }
.entry-content .wp-block-column > :last-child { margin-bottom: 0; }
@media (max-width: 991px) {
	.entry-content .wp-block-columns { flex-wrap: wrap; row-gap: 30px; }
	.entry-content .wp-block-column { flex-basis: 100% !important; }
	.entry-content > p, .entry-content > ul.wp-block-list { max-width: 100%; }
}

/* schmaler Textblock (Kursplan) */
.entry-content .is-narrow { max-width: 60%; margin: 0 auto 30px; }
@media (max-width: 991px) { .entry-content .is-narrow { max-width: 100%; } }

/* Buttons */
.entry-content .wp-block-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 24px;
	margin: 30px 0 0;
	padding: 0;
}
.entry-content .wp-block-buttons.is-centered { justify-content: center; }
.entry-content .wp-block-button { margin: 0; }
.entry-content .wp-block-button .wp-block-button__link {
	display: inline-block;
	padding: 5px 18px;
	background: var(--pink);
	border: 1px solid var(--pink);
	border-radius: 3px;
	color: #fff;
	font-family: var(--font-head);
	font-size: 24px;
	font-weight: 800;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
	transition: background-color .3s ease, border-color .3s ease;
}
.entry-content .wp-block-button .wp-block-button__link:hover,
.entry-content .wp-block-button .wp-block-button__link:focus-visible {
	background: var(--purple);
	border-color: var(--purple);
	color: #fff;
	text-decoration: none;
}

/* Startseite: beiger Hintergrund wie im Original */
.home .site-main { background: var(--beige); }
.home .section--content { padding-top: 45px; }

@media (max-width: 767px) {
	h1 { font-size: 36px; }
	h2 { font-size: 28px; }
	.section--hero .container { padding-inline: 0; }
	.section--hero { padding-top: 0; }
	.section--content { padding: 40px 0; }
	.home .section--content { padding-top: 0; }
	.entry-header, .entry-content { padding-inline: 0; }
	.entry-content .wp-block-button .wp-block-button__link { font-size: 20px; }
}

/* ==========================================================================
   Slider (Galerie-Block mit Zusatz-CSS-Klasse „enjoyoga-slider“)
   ========================================================================== */
.entry-content .wp-block-gallery.enjoyoga-slider {
	display: block;
	position: relative;
	overflow: hidden;
	margin: 0 -20px 75px;
	padding: 0;
	gap: 0;
}
.entry-content .wp-block-gallery.enjoyoga-slider figure.wp-block-image {
	width: 100% !important;
	flex: 0 0 100% !important;
	margin: 0 !important;
}
.enjoyoga-slider .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1201 / 673;
	object-fit: cover;
}
.enjoyoga-slider .es-track { display: flex; transition: transform .6s ease; will-change: transform; }
.enjoyoga-slider .es-slide { flex: 0 0 100%; min-width: 0; }
.enjoyoga-slider .es-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, .6);
	color: var(--purple);
	cursor: pointer;
	transition: background-color .3s ease;
}
.enjoyoga-slider .es-arrow:hover { background: #fff; }
.enjoyoga-slider .es-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.enjoyoga-slider .es-prev { left: 10px; }
.enjoyoga-slider .es-next { right: 10px; }
.enjoyoga-slider .es-dots {
	position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3;
	display: flex; justify-content: center; gap: 10px;
}
.enjoyoga-slider .es-dot {
	width: 14px; height: 14px; padding: 0;
	border: 2px solid #fff; border-radius: 50%;
	background: transparent;
	cursor: pointer;
	box-shadow: 0 0 4px rgba(0, 0, 0, .25);
}
.enjoyoga-slider .es-dot[aria-current="true"] { background: #fff; }
@media (max-width: 767px) {
	.entry-content .wp-block-gallery.enjoyoga-slider { margin: 0 0 40px; }
	.enjoyoga-slider .es-arrow { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	.enjoyoga-slider .es-track { transition: none; }
	html { scroll-behavior: auto; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
	background: var(--pink);
	color: #fff;
	padding-top: 40px;
	font-family: var(--font-head);
}
.site-footer a { color: #fff; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.footer-top {
	display: grid;
	grid-template-columns: 4fr 1fr;
	gap: 0 20px;
	padding: 0 20px 20px;
}
.footer-title { margin: 0; color: #fff; font-size: 40px; font-weight: 600; }
.footer-address { margin: 12px 0 28px; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.6; }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a {
	display: inline-block;
	margin: 12px 0;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.1;
	letter-spacing: 1px;
	text-transform: uppercase;
}
.footer-contact {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: center;
	gap: 18px 24px;
	padding: 0 20px;
}
.footer-contact p { margin: 18px 0; font-size: 16px; line-height: 1.4; color: #fff; }
.footer-contact .mail { color: #eff4f7; }
.site-footer .social-icons a { width: 36px; height: 36px; }
.site-footer .social-icons a:hover, .site-footer .social-icons a:focus-visible { background: #fff; color: var(--purple); text-decoration: none; }
.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	padding: 18px 20px;
}
.footer-logo { display: block; line-height: 0; opacity: .9; transition: opacity .3s ease; }
.footer-logo:hover { opacity: 1; text-decoration: none !important; }
.footer-logo img { height: 80px; width: auto; }
.legal-nav { margin-left: auto; }
.legal-nav ul { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.legal-nav a { display: block; padding: 10px; font-size: 16px; font-weight: 400; }

@media (max-width: 991px) {
	.footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.site-footer { padding-top: 20px; }
	.footer-contact { flex-direction: column; text-align: center; justify-content: center; }
	.footer-bottom { flex-direction: column; text-align: center; }
	.legal-nav { margin-left: 0; }
	.legal-nav ul { justify-content: center; }
	.footer-title { font-size: 32px; }
}
@media (max-width: 479px) {
	.footer-top { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ==========================================================================
   Blog-Fallback (index.php) & 404
   ========================================================================== */
.post-list article { margin-bottom: 40px; }
.post-list .entry-title a { color: inherit; }
.not-found { text-align: center; }
