/* ============================================
   Navigation & Footer — Dark Glass Theme
   Colors: dark bg, #fff text, #488ccb accent, #fff000 highlight
   ============================================ */

/* --- Reset & Base --- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-size: 0;
}

.bottombar,
.topbar {
	list-style-type: none;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color 0.25s ease;
}

a:hover,
a:focus {
	color: #488ccb;
}

.contact-details a {
	color: inherit;
}

.contact-details a:hover {
	color: #fff000;
}

/* --- Top Navigation --- */

nav,
nav-bottom {
	left: 0;
	z-index: 100;
	position: relative;
	font-size: 21px;
	color: #fff;
}

nav {
	position: sticky;
	top: 0;
	width: 100%;
	padding: 16px 20px 30px;
	height: 125px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(10, 12, 18, 0.72);
	backdrop-filter: blur(18px) saturate(1.6);
	-webkit-backdrop-filter: blur(18px) saturate(1.6);
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
	transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
	            background 0.3s ease;
}

nav.is-hidden {
	transform: translateY(-100%);
	pointer-events: none;
}

/* --- Logo --- */

.logo-container {
	margin-right: center;
	margin-left: 42%;
}

.logo {
	display: block;
	margin: 0 auto;
	max-width: 80%;
	height: auto;
	transition: opacity 0.25s ease;
}

.logo:hover {
	opacity: 0.8;
}

/* --- Top Bar Links --- */

.topbar {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-left: auto;
	padding: 0;
	gap: 8px;
}

.topbar li {
	margin: 0;
	position: relative;
}

.topbar a {
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	padding: 6px 14px;
	border-radius: 6px;
	position: relative;
	display: inline-block;
	transition: color 0.25s ease,
	            background 0.25s ease;
}

/* Underline slide-in on hover */
.topbar a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: #488ccb;
	border-radius: 1px;
	transition: width 0.3s ease, left 0.3s ease;
}

.topbar a:hover::after,
.topbar a:focus::after {
	width: 60%;
	left: 20%;
}

.topbar a:hover,
.topbar a:focus {
	color: #fff;
	background: rgba(72, 140, 203, 0.1);
	text-decoration: none;
}

/* Active / highlight variant */
.topbar a.active,
.topbar a[aria-current="page"] {
	color: #fff000;
}

.topbar a.active::after,
.topbar a[aria-current="page"]::after {
	width: 60%;
	left: 20%;
	background: #fff000;
}

/* --- Dropdown (preserved) --- */

.dropdown {
	position: relative;
}

.dropbtn {
	cursor: pointer;
}

.dropdown-content {
	min-width: 180px;
	box-sizing: border-box;
}

.dropdown-content a {
	padding: 10px 16px;
}

/* --- Sticky footer: footer an Viewport-Unterseite wenn Content kurz --- */
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
body > footer,
body > nav-bottom {
	margin-top: auto;
}

/* --- Footer / nav-bottom --- */

nav-bottom {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 32px clamp(20px, 4vw, 60px) 20px;
	background: rgba(10, 12, 18, 0.85);
	backdrop-filter: blur(14px) saturate(1.4);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	border-top: 1px solid rgba(255, 255, 255, 0.06);
	color: rgba(255, 255, 255, 0.75);
	height: auto;
	bottom: 0;
}

.logobottom-container {
	display: flex;
	justify-content: center;
	margin-bottom: 16px;
}

.logo-bottom {
	max-width: 44px;
	height: auto;
	opacity: 0.7;
	transition: opacity 0.25s ease;
}

.logo-bottom:hover {
	opacity: 1;
}

.bottombar {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	padding: 0;
	margin: 0 0 16px;
	gap: 6px;
	font-size: 0.88rem;
	width: 100%;
}

.bottombar li {
	margin: 0;
	position: relative;
}

.bottombar li:first-child {
	margin-left: 0;
}

.bottombar a {
	padding: 4px 12px;
	border-radius: 4px;
	transition: color 0.25s ease, background 0.25s ease;
}

.bottombar a:hover,
.bottombar a:focus {
	color: #fff;
	background: rgba(72, 140, 203, 0.12);
	text-decoration: none;
}

/* --- Contact Details --- */

.contact-details {
	text-align: center;
	font-size: 0.82rem;
	line-height: 1.7;
	margin-top: 8px;
	color: rgba(255, 255, 255, 0.5);
}

.contact-details p {
	margin: 3px 0;
}

/* --- Mobile Responsive --- */

@media (max-width: 640px) {
	nav {
		flex-direction: column;
		height: auto;
		padding: 12px 16px;
		gap: 8px;
		align-items: center;
	}

	.logo-container {
		margin: 0 auto;
	}

	.logo {
		height: 36px;
		max-width: 140px;
		margin-bottom: 4px;
	}

	.topbar {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		gap: 4px;
		margin: 0;
		padding: 0;
	}

	.topbar a,
	.bottombar a {
		font-size: clamp(0.72rem, 3.8vw, 0.9rem);
		padding: 4px 10px;
	}

	.topbar li,
	.bottombar li {
		margin: 0;
		list-style: none;
	}

	nav-bottom {
		padding: 24px 16px 16px;
		flex-direction: column;
		align-items: center;
	}

	.bottombar {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: center;
		gap: 4px;
		margin: 0 0 12px;
	}

	.dropdown {
		position: relative;
	}

	.dropdown-content {
		left: 0;
		right: 0;
		width: 100%;
		min-width: auto;
	}

	.dropdown-content a {
		padding: 10px 14px;
		font-size: clamp(0.7rem, 3.5vw, 0.85rem);
	}
}

/* --- Utility: Scroll-direction JS hook --- */
/* Add/remove .is-hidden on nav via JS:
   let lastScroll = 0;
   window.addEventListener('scroll', () => {
     const nav = document.querySelector('nav');
     const curr = window.scrollY;
     nav.classList.toggle('is-hidden', curr > lastScroll && curr > 80);
     lastScroll = curr;
   });
*/
