body {
	margin: 0;
	font-family: Helvetica, Arial, sans-serif;
	line-height: 1.6;
	background: #f2f2f2;
	color: #444444;
	text-align: center;
}



header {
	margin-top: 20px;
	margin-bottom: 60px;
	margin-left: 15%;
	margin-right: 15%;
	padding: 20px;
	text-align: center;
	border-bottom: 2px solid #ddd;
}

header h1 {
	margin-left: auto;
	margin-right: auto;
	font-size: 2.5em;
	white-space: nowrap;
}

a {
	color: #0077cc;
	text-decoration: none;
	white-space: nowrap;
}

nav {
	display: flex;
	align-items: center;
    justify-content: center;
    max-width: min-content;
	/* evtl max-width: 1000px; wenn es zu breit wird */
	margin: 20px 0;
	margin-left: auto;
	margin-right: auto;
}

nav a {
	padding: 10px;
	margin: 0 15px;
	font-size: 1.2em;
	position: relative;
	min-width: min-content;
	max-width: 300px;
	width: 300px;
	
}

nav a.selected {
	background: #e9e9e9;
	border-radius: 10px;
}


nav a.option::after {
	content: '';
	display: block;
	height: 2px;
	width: 0;
	background: #0077cc;
	transition: width 0.3s;
	position: absolute;
	bottom: -5px;
}

#left::after {
	right: 0;
}

#center::after {
	left: 50%;
	transform: translateX(-50%);
}

#right::after {
	left: 0;
}

nav a.option:hover::after {
	width: 100%;
}





/* Basislayout */
.main-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Hamburger-Menü Button (nur bei kleiner Breite sichtbar) */
.nav-toggle {
  display: none;
}

.nav-toggle-label {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem;
}








button {
	background: #0077cc;
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1em;
	transition: background 0.3s, transform 0.3s;
}

button:hover {
	background: #005fa3;
	transform: scale(1.05);
}

button:active {
	transform: scale(0.95);
}









/* Screen size adaptation */




@media (max-width: 750px) {
	h1 {
		margin: auto;
		padding: 0;
	}
	header {
		max-width: 90%;
		margin: auto;
		margin-top: 40px;
		margin-bottom: 40px;
		padding: 0;
	}
	nav {
		flex-direction: column;
	}
	nav a {
		max-width: 200px;
		margin-bottom: 20px;
	}
	.main-nav {
		display: none;
		flex-direction: column;
		background-color: #f4f4f4;
		padding: 1rem;
	}
	.nav-toggle-label {
		display: block;
		
	}
	
	/* Wenn Checkbox gecheckt ist → Menü zeigen */
  	.nav-toggle:checked + .nav-toggle-label + .main-nav {
    	display: flex;
	}
	#left::after {
		left: 50%;
		transform: translateX(-50%);
	}

	#right::after {
		left: 50%;
		transform: translateX(-50%);
	}
	
}



@media (max-width: 430px) {
	nav a {
		max-width: 70%;
	}
}