.navigation {
	position: absolute;
	top: 0;
	right: 20px;
	padding-top: 30px;
	z-index: 999;
}

.ccm-toolbar-visible .navigation {
	top: 50px;
}

/* Checkbox für Mobile Toggle (versteckt) */
#menu-toggle {
	display: none;
}

.toggleMenu {
	display: none;
	text-decoration: none !important;
	color: #FFF !important;
}

nav {
	font-family: 'Roboto Slab', serif;
	font-weight: 400;
	text-align: right;
}

nav ul.nav {
	list-style: none;
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: flex-end;
	margin: 0;
	padding: 0;
	clear: both;
	text-align: left;
	margin-top: 25px;
}

nav .nav:before,
nav .nav:after {
	content: " ";
	display: table;
}

nav .nav:after {
	clear: both;
}

nav .nav ul {
	list-style: none;
}

nav .nav a {
	padding: 5px 15px;
	text-decoration: none;
	text-transform: uppercase;
}

nav .nav li {
	position: relative;
	white-space: nowrap;
	float: left;
}

nav .nav li ul li {
	transform: none;
	display: block;
	width: 100%;
}

nav .nav li a {
	font-size: 110%;
	display: block;
	color: #FFF;
}

nav .nav a:hover,
nav .nav a:active,
nav .nav a:focus,
nav .nav a.nav-selected {
	color: rgb(221, 207, 170);
}

/* Dropdown-Menüs */
nav .nav > li > ul {
	position: absolute;
	display: block;
	left: 0;
	max-height: 0;
	overflow: hidden;
	margin-top: 1px;
	transition: max-height 0.4s ease-out;
}

nav .nav > li:hover > ul,
nav .nav > li:focus-within > ul {
	max-height: 500px;
	transition: max-height 0.6s ease-in;
}

nav .nav li li a {
	display: block;
	position: relative;
	z-index: 100;
	font-size: 95%;
	color: #604C3E;
	background: rgb(221, 207, 170);
	text-transform: none;
}

nav .nav li li a:hover,
nav .nav li li a:active,
nav .nav li li a:focus,
nav .nav li li a.nav-selected {
	color: rgb(255, 255, 255);
}

a.toplink {
	color: #CF9;
	border: #CF9 2px solid;
	margin-right: 15px;
	padding: 5px 15px;
	text-decoration: none;
	text-align: center;
	text-transform: uppercase;
}

a.toplink:hover,
a.toplink:active,
a.toplink:focus {
	color: #FFF;
	border: #FFF 2px solid;
}

/* Mobile Styles */
@media screen and (max-width: 1280px) {
	.navigation {
		padding-top: 0;
		right: 0;
	}

	/* Hamburger Icon als Label */
	.toggleMenu {
		display: block;
		position: fixed;
		right: 20px;
		top: 20px;
		cursor: pointer;
		z-index: 999;
		width: 50px;
		height: 50px;
	}

	.toggleMenu:before {
		content: "";
		display: block;
		width: 50px;
		height: 50px;
		background: url('ham1.svg') no-repeat center;
		background-size: contain;
		transition: opacity 0.3s;
	}

	/* Hamburger Icon Wechsel bei aktivem Menü */
	#menu-toggle:checked ~ .toggleMenu:before {
		background: url('ham2.svg') no-repeat center;
		background-size: contain;
	}

	/* Navigation verstecken/zeigen */
	nav {
		position: fixed;
		top: 0;
		right: 0;
		padding: 100px 0 20px;
		background: rgb(148, 143, 130);
		margin-top: 0;
		width: 250px;
		height: 100vh;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform 0.3s ease-in-out;
	}

	#menu-toggle:checked ~ nav {
		transform: translateX(0);
	}

	nav ul.nav {
		display: block;
		margin-top: 0;
	}

	nav .nav > li {
		float: none;
		display: block;
		background: transparent;
	}

	nav .nav a {
		padding: 5px 25px;
	}

	nav .nav li li a {
		color: #FFF;
		background: transparent;
		padding: 5px 25px 5px 40px;
	}

	nav .nav a:hover,
	nav .nav a:active,
	nav .nav a:focus,
	nav .nav a.nav-selected {
		background-color: #604C3E;
		color: #FFF;
	}

	/* Dropdowns immer offen auf Mobile */
	nav .nav > li > ul {
		position: relative;
		max-height: none;
		margin-top: 0;
	}

	nav .nav ul {
		display: block;
		width: 100%;
	}

	nav .nav li ul li {
		margin: 0;
	}

	a.toplink {
		display: block;
		margin-left: 15px;
		margin-bottom: 25px;		
	}
}