/*  
Theme Name: Default Theme with Mobile Header
Theme URI: 
Description: Theme with Stylesheet as Base for Brizy or Elementor
Version: 1.0
Author: 5W Verlag GmbH
Author URI: http://www.5w-verlag.de 
*/

/* Basis */
body {
	margin: 0;
	font-family: Arial, sans-serif;
	line-height: 1.5;
	color: #333;
	background-color: #fff;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	/* height: 50px; */
	background: #fff;
	min-height: 80px;
	padding: 0 20px;
	position: relative;
	z-index: 1000;
}

header .logo {
	display: flex;
	/* falls Bild/Text drin ist */
	align-items: center;
	/* Inhalt (Logo-Bild) auch mittig */
	color: #fff;
	font-weight: bold;
}

header .logo img {
	max-height: 40px;
	/* kleiner als header (50px) */
	height: auto;
	width: auto;
	display: block;
}

/* Hamburger */
.hamburger {
	display: none;
	width: 30px;
	height: 30px;
	cursor: pointer;
	position: relative;
	z-index: 1100;
}

.hamburger span {
	position: absolute;
	left: 0;
	top: 50%;
	width: 100%;
	height: 3px;
	background: #333;
	border-radius: 2px;
	transform-origin: center;
	transition: all 0.3s ease;
}

.hamburger span:nth-child(1) {
	transform: translateY(-10px);
}

.hamburger span:nth-child(2) {
	transform: translateY(0);
}

.hamburger span:nth-child(3) {
	transform: translateY(10px);
}

.hamburger.active span:nth-child(1) {
	transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
	opacity: 0;
}

.hamburger.active span:nth-child(3) {
	transform: rotate(-45deg);
}

/* Navigation Desktop */
ul.menu {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	margin: 0;
	padding: 0;
	list-style: none;
	background: #fff;
}

ul.menu li {
	margin-left: 0px;
	white-space: nowrap;
	position: relative;
}

ul.menu a {
	color: #333;
	text-decoration: none;
	display: block;
	padding: 8px 20px;
	transition: color 0.3s ease;
}

/* ul.menu a:hover,
ul.menu a:focus,
ul.menu a:active {
	color: #0073aa;
} */

/* Desktop Submenu */
ul.menu li ul {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	min-width: 150px;
	opacity: 0;
	transform: translateY(-10px);
	pointer-events: none;
	transition: opacity 0.3s ease, transform 0.3s ease;
	flex-direction: column;
	z-index: 1000;
	padding-left: 25px;
	list-style: none;
}

ul.menu li ul li {
	border-bottom: 1px solid #d6d6d6;
}

ul.menu li ul li:last-child {
	border-bottom: none;
}

ul.menu li:hover>ul,
ul.menu li.focus>ul {
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

ul.menu li ul li a {
	padding: 8px 0px;
}

/* Mobile Styles */
@media (max-width: 768px) {

	.hamburger {
		display: block;
	}

	ul.menu {
		display: none;
		flex-direction: column;
		width: 100%;
		background: #fff;
		margin: 0;
		padding: 0;
		position: absolute;
		top: 80px;
		left: 0;
		box-sizing: border-box;
		border-bottom: 1px solid #d6d6d6;
		/* border-radius: 25px; */
	}

	ul.menu.show {
		display: flex;
	}

	ul.menu li {
		margin: 0;
		width: 100%;
		border-bottom: 1px solid #d6d6d6;
	}

	ul.menu li:last-child {
		border-bottom: none;
	}

	/* Mobile Submenu */
	ul.menu li ul {
		display: none;
		flex-direction: column;
		/* padding-left: 20px; */
		background: #fff;
		width: 100%;
		box-sizing: border-box;
		list-style: none;
		/* WICHTIG: absolute entfernen damit menu nach unten geschoben wird */
		position: static;
		top: auto;
		left: auto;
		opacity: 1;
		/* Damit es sichtbar wird, wenn display: flex */
		transform: none;
		/* Keine Verschiebung */
		pointer-events: auto;
		/* padding-left: 20px; */
		/* optional für Einrückung */
	}

	ul.menu li.show-submenu>ul {
		display: flex;
		/* padding-left: 5px; */
		/* padding-top: 10px;
		padding-bottom: 10px; */
	}

	ul.menu li ul li a {
		/* padding: 8px 20px; */
		white-space: nowrap;
	}
}

/* Content & Footer */
main {
	padding: 20px;
}

footer {
	background: #333;
	color: #fff;
	text-align: center;
	padding: 10px 0;
	/* margin-top: 20px; */
}

.footer-menu {
	text-align: center;
	margin-bottom: 10px;
}

.footer-nav {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	justify-content: center;
	gap: 20px;
}

.footer-nav li a {
	color: #fff;
	text-decoration: none;
}

.footer-nav li a:hover {
	color: #0073aa;
	/* optional: Hover-Farbe */
}