/**
 * Mobile Drawer-Navigation (Judoverband-Pattern, Ferienvilla-Farben)
 */
.fvp-nav-mobile button {
	font: inherit;
	color: inherit;
	background: none;
	border: 0;
	padding: 0;
	margin: 0;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	box-shadow: none;
}

:root {
	--fvp-nav-brand: #045BA3;
	--fvp-nav-brand-light: #5AACF5;
	--fvp-nav-dark: #021928;
	--fvp-nav-ink: #1a1a1a;
	--fvp-nav-surface: #ffffff;
	--fvp-nav-surface-soft: #eef6fd;
	--fvp-nav-overlay: rgba(2, 25, 40, 0.55);
	--fvp-nav-drawer-max: 480px;
	--fvp-nav-pad-x: 1.5rem;
	--fvp-nav-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--fvp-nav-duration: 0.85s;
	--fvp-nav-duration-level: 0.72s;
	--fvp-nav-breakpoint: 768px;
}

/* Desktop: alte Checkbox-Nav, Mobile-Drawer aus */
@media (min-width: 768px) {
	.navi-mobile,
	.fvp-nav-mobile {
		display: none !important;
	}
}

@media (max-width: 767px) {
	.navi-desktop {
		display: none !important;
	}

	body.fvp-nav-open {
		overflow: hidden;
	}
}

/* Blaue Leiste mit Hamburger (ersetzt #toggle-menu) */
.fvp-nav-mobile__bar {
	background-color: var(--fvp-nav-brand);
	border-bottom: 1px solid #666;
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	align-items: center;
	height: 3.3em;
	padding: 0 25px;
	box-sizing: border-box;
	line-height: 0;
}

.fvp-nav-mobile__toggle {
	position: relative;
	width: 44px;
	height: 44px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.fvp-nav-mobile__toggle-icon {
	position: relative;
	width: 33px;
	height: 22px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.fvp-nav-mobile__toggle-line {
	position: relative;
	width: 100%;
	height: 4px;
	flex: 0 0 4px;
	background: var(--fvp-nav-brand-light);
	border-radius: 3px;
	transition: transform var(--fvp-nav-duration) var(--fvp-nav-ease), opacity var(--fvp-nav-duration) ease, top var(--fvp-nav-duration) var(--fvp-nav-ease), background 0.2s ease;
}

.fvp-nav-mobile.is-open .fvp-nav-mobile__toggle-icon,
body.fvp-nav-open .fvp-nav-mobile__toggle-icon {
	display: block;
}

.fvp-nav-mobile.is-open .fvp-nav-mobile__toggle-line,
body.fvp-nav-open .fvp-nav-mobile__toggle-line {
	position: absolute;
	left: 0;
	right: 0;
}

.fvp-nav-mobile.is-open .fvp-nav-mobile__toggle-line--top,
body.fvp-nav-open .fvp-nav-mobile__toggle-line--top {
	top: 9px;
	transform: rotate(45deg);
	background: #fff;
}

.fvp-nav-mobile.is-open .fvp-nav-mobile__toggle-line--middle,
body.fvp-nav-open .fvp-nav-mobile__toggle-line--middle {
	opacity: 0;
}

.fvp-nav-mobile.is-open .fvp-nav-mobile__toggle-line--bottom,
body.fvp-nav-open .fvp-nav-mobile__toggle-line--bottom {
	top: 9px;
	transform: rotate(-45deg);
	background: #fff;
}

.fvp-nav-mobile__overlay {
	position: fixed;
	inset: 0;
	background: var(--fvp-nav-overlay);
	opacity: 0;
	transition: opacity var(--fvp-nav-duration) var(--fvp-nav-ease);
	pointer-events: none;
	z-index: 2000;
}

.fvp-nav-mobile__overlay.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.fvp-nav-mobile__overlay[hidden] {
	display: block !important;
	opacity: 0;
	pointer-events: none;
}

.fvp-nav-mobile__drawer {
	position: fixed;
	top: 0;
	right: 0;
	width: min(100%, var(--fvp-nav-drawer-max));
	height: 100dvh;
	background: var(--fvp-nav-surface);
	color: var(--fvp-nav-ink);
	font-family: 'Amita', cursive;
	z-index: 2001;
	transform: translateX(100%);
	transition: transform var(--fvp-nav-duration) var(--fvp-nav-ease);
	pointer-events: auto;
	display: flex;
	flex-direction: column;
}

.fvp-nav-mobile__drawer.is-open {
	transform: translateX(0);
}

.fvp-nav-mobile__drawer[hidden] {
	display: flex !important;
	transform: translateX(100%);
	pointer-events: none;
}

.fvp-nav-mobile__drawer-inner {
	position: relative;
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	padding-top: 1rem;
	overflow: hidden;
}

.fvp-nav-mobile__level {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	padding: 0;
	overflow-y: auto;
	background: var(--fvp-nav-surface);
	transform: translateX(100%);
	transition: transform var(--fvp-nav-duration-level) var(--fvp-nav-ease);
	min-height: 100%;
}

.fvp-nav-mobile__level:not(.is-active):not(.is-left) {
	visibility: hidden;
	pointer-events: none;
}

.fvp-nav-mobile__level.is-active {
	transform: translateX(0);
	z-index: 2;
	visibility: visible;
	pointer-events: auto;
}

.fvp-nav-mobile__level.is-left {
	transform: translateX(-30%);
	z-index: 1;
	visibility: visible;
	pointer-events: none;
}

.fvp-nav-mobile__back {
	position: sticky;
	top: 0;
	z-index: 3;
	background: var(--fvp-nav-surface);
	padding: 0.5rem var(--fvp-nav-pad-x) 0.75rem;
}

.fvp-nav-mobile__back-button {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font-size: 1.05rem;
	font-weight: 500;
	color: var(--fvp-nav-brand);
}

.fvp-nav-mobile__title {
	margin: 0 0 1rem;
	padding: 0 var(--fvp-nav-pad-x);
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--fvp-nav-brand);
}

.fvp-nav-mobile__title-link {
	color: inherit;
}

.fvp-nav-mobile__title-link:hover {
	color: var(--fvp-nav-brand-light);
}

.fvp-nav-mobile__list {
	list-style: none;
	margin: 0;
	padding: 0 0 1.5rem;
	display: grid;
	gap: 0.15rem;
}

.fvp-nav-mobile__split {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid var(--fvp-nav-surface-soft);
}

.fvp-nav-mobile__split .fvp-nav-mobile__link {
	flex: 1 1 auto;
	border-bottom: 0;
}

.fvp-nav-mobile__split .fvp-nav-mobile__open {
	flex: 0 0 3rem;
	justify-content: center;
	border-bottom: 0;
	width: auto;
	padding: 0.75rem var(--fvp-nav-pad-x) 0.75rem 0.5rem;
	color: var(--fvp-nav-brand);
}

.fvp-nav-mobile__link,
.fvp-nav-mobile__open {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.75rem var(--fvp-nav-pad-x);
	font-size: 1.15rem;
	font-weight: 500;
	text-align: left;
	border-bottom: 1px solid var(--fvp-nav-surface-soft);
	color: var(--fvp-nav-ink);
	text-decoration: none;
}

.fvp-nav-mobile__link:hover,
.fvp-nav-mobile__open:hover,
.fvp-nav-mobile__link.is-current {
	color: var(--fvp-nav-brand);
	background-color: var(--fvp-nav-surface-soft);
}

.fvp-nav-mobile__link.is-current {
	font-weight: 700;
}

.fvp-nav-mobile__toggle:focus-visible,
.fvp-nav-mobile__open:focus-visible,
.fvp-nav-mobile__link:focus-visible,
.fvp-nav-mobile__back-button:focus-visible {
	outline: 3px solid var(--fvp-nav-brand-light);
	outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
	.fvp-nav-mobile__drawer,
	.fvp-nav-mobile__level,
	.fvp-nav-mobile__overlay,
	.fvp-nav-mobile__toggle-line {
		transition: none;
	}
}
