/*
Theme Name: KriyaYogaEl Child
Template: kriya-yoga-el
Description: Child theme for KriyaYogaEl. Eigene Anpassungen nur hier vornehmen.
Author: Peter Kratzer
Version: 1.1.0
Text Domain: kriya-yoga-el-child
*/

/* ===== Header: Menue links | Logo mittig | Menue rechts ===== */

.kc-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 16px;
	padding-bottom: 16px;
}

.kc-header__nav {
	flex: 1 1 0;
	min-width: 0;
}

.kc-header__nav--left .wdt-primary-nav {
	justify-content: flex-end;
}

.kc-header__nav--right .wdt-primary-nav {
	justify-content: flex-start;
}

.kc-header__logo {
	flex: 0 0 auto;
	text-align: center;
}

.kc-header__logo img {
	max-height: 110px;
	width: auto;
	height: auto;
}

/* Menueliste in einer Zeile, unabhaengig von den Parent-Styles */
.kc-header .wdt-primary-nav {
	display: flex !important;
	flex-wrap: wrap;
	gap: 8px 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	position: static !important;
	transform: none !important;
}

.kc-header .wdt-primary-nav > li {
	position: relative;
	margin: 0;
}

/* Untermenues ausgeblendet, bei Hover oder Fokus eingeblendet */
.kc-header .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	padding: 8px 0;
	background: #fff;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
	list-style: none;
	z-index: 10;
}

.kc-header .wdt-primary-nav > li:hover > .sub-menu,
.kc-header .wdt-primary-nav > li:focus-within > .sub-menu {
	display: block;
}

.kc-header .sub-menu a {
	display: block;
	padding: 6px 16px;
}

.kc-header__nav a:focus-visible {
	outline: 3px solid #2f6fed;
	outline-offset: 2px;
}

/* Kleine Bildschirme: Logo oben, Menue links, Menue rechts darunter */
@media (max-width: 767px) {
	.kc-header {
		flex-direction: column;
		gap: 12px;
	}

	.kc-header__logo {
		order: -1;
	}

	.kc-header__nav {
		width: 100%;
		flex: none;
	}

	.kc-header__nav--left .wdt-primary-nav,
	.kc-header__nav--right .wdt-primary-nav {
		justify-content: center;
	}
}
