/*
Theme Name:     masdemas
Theme URI:      n/a
Template:       kadence
Author:         Matthias Reinders
Author URI:     n/a
Description:    Child Theme Description
Version:        1.1
License:        GNU General Public License v3.0 (or later)
License URI:    https://www.gnu.org/licenses/gpl-3.0.html
*/

.kb-row-layout-id22_b89f37-a4 > .kt-row-column-wrap {
	padding-right: 0px;
	padding-bottom: 0;
	padding-left: 0px;
	grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 900px) {
	.has-text-align-center, .single-content p {
		font-size: 23px;
	}
}

/* ===== KADENCE NAVIGATION AUSBLENDEN ===== */

.header-menu-container.primary-menu-container {
	display: none !important;
}

/* Kadence Header komplett ausblenden – eigener Burger übernimmt */
#masthead {
	display: none !important;
}

/* ===== BURGER ICON ===== */

.masdemas-burger {
	position: fixed;
	top: 50px;
	right: 60px;
	z-index: 9998;
	background: transparent !important;
	background-color: transparent !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	cursor: pointer;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.masdemas-burger .burger-line {
	display: block;
	width: 50px;
	height: 5px;
	background-color: #fff;
	border-radius: 2px;
	transition: transform 0.4s ease, opacity 0.3s ease;
	transform-origin: center;
}

/* Burger → X Animation */
.masdemas-burger.is-active .burger-line:nth-child(1) {
	transform: translateY(15px) rotate(45deg);
}

.masdemas-burger.is-active .burger-line:nth-child(2) {
	opacity: 0;
}

.masdemas-burger.is-active .burger-line:nth-child(3) {
	transform: translateY(-15px) rotate(-45deg);
}

/* ===== FULLSCREEN OVERLAY ===== */

.masdemas-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: #6cace4;
	border: none;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow-y: auto;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
}

.masdemas-overlay.is-open {
	opacity: 1;
	visibility: visible;
}

/* Burger bleibt über dem Overlay sichtbar */
.masdemas-burger.is-active {
	z-index: 10000;
}

/* ===== OVERLAY NAV ===== */

.masdemas-overlay-nav {
	display: inline-block;
	text-align: left;
}

/* ===== MENÜ-LISTE ===== */

.masdemas-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.masdemas-menu > li {
	margin-bottom: 28px;
}

.masdemas-menu > li > a {
	font-family: 'Ubuntu', sans-serif;
	font-weight: 700;
	font-size: 30px;
	color: #fff;
	text-transform: uppercase;
	text-decoration: none;
	display: inline-block;
	position: relative;
	padding: 5px 0;
}

/* ===== HOVER: ANIMIERTE UNTERSTREICHUNG ===== */

.masdemas-menu > li > a::after {
	content: '';
	display: block;
	width: 0;
	height: 3px;
	background: #fff;
	transition: width 0.3s ease;
}

.masdemas-menu > li > a:hover::after {
	width: 100%;
}

/* ===== SUBMENÜ ===== */

.masdemas-menu .sub-menu {
	list-style: none;
	padding: 10px 0 5px 60px;
	margin: 0;
	display: block;
}

.masdemas-menu .sub-menu li {
	margin-bottom: 15px;
}

.masdemas-menu .sub-menu li a {
	font-family: 'Ubuntu', sans-serif;
	font-weight: 700;
	font-size: 30px;
	color: #fff;
	text-decoration: none;
	text-transform: none;
	display: inline-block;
	position: relative;
	padding: 3px 0;
}

.masdemas-menu .sub-menu li a::after {
	content: '';
	display: block;
	width: 0;
	height: 2px;
	background: #fff;
	transition: width 0.3s ease;
}

.masdemas-menu .sub-menu li a:hover::after {
	width: 100%;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
	.masdemas-burger {
		top: 20px;
		right: 20px;
	}

	.masdemas-burger .burger-line {
		width: 28px;
		height: 3px;
	}

	.masdemas-overlay {
		border-width: 12px;
	}

	.masdemas-overlay-nav {
		padding: 60px 30px 30px;
	}

	.masdemas-menu > li > a,
	.masdemas-menu .sub-menu li a {
		font-size: 22px;
	}

}
