/* Allgemeiner Stil */
body {
	font-family: 'Montserrat', sans-serif;
	margin: 0;
	padding: 0;
	background: url("pickup_wallpaper.jpg") no-repeat center center fixed;
	background-size: cover;
	color: #333;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* Header-Stil */
header {
	display: flex;
	background-color: rgba(0, 0, 0, 0.6);
	padding: 1rem 1.5rem;
	color: #fff;
	text-align: right;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	justify-content: space-around;
	align-items: center;
	position: sticky;
	top: 8px;
	z-index: 2;
	backdrop-filter: blur(5px);
}

header img {
	width: 40%;
	max-width: 135px;
	float: left;
}

h1 {
	margin: 0;
	font-size: 1.8rem;
	font-weight: 700;
}

/* Hauptinhalt und Formular-Stil */
main {
	background: rgba(255, 255, 255, 0.4);
	padding: 1.5rem;
	border-radius: 1rem;
	max-width: 600px;
	margin: 2rem auto;
	box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
	backdrop-filter: blur(3px);
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

form {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
p{margin:0;}
h2 {
	color: #2c3e50;
	margin-top: 1.5rem;
	margin-bottom: 0.8rem;
	border-top: 2px solid #000;
	padding-bottom: 0.5rem;
}
h3 {
	color: #2c3e50;
	margin-top: 1.5rem;
	margin-bottom: 0.8rem;
	border-top: 2px solid #e0e0e0;
	padding-bottom: 0.5rem;
}

/* Label und Input-Stile */
label {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	gap: 5px;
	font-weight: 600;
	font-size: 0.95rem;
	align-items: center;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select {
	width: 100%;
	padding: 0.4rem 0.6rem;
	border: 1px solid #ccc;
	border-radius: 0.5rem;
	margin-top: 0.4rem;
	font-size: 1rem;
	box-sizing: border-box;
	transition: border-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
select:focus {
	border-color: #007bff;
	outline: none;
}

input[type="number"] {
	width: auto; /* Allow auto width for number inputs in lists */
	max-width: 80px; /* Limit width for consistency */
}

/* Spezielle Layouts für Datumsauswahl */
.date-selection {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

@media (min-width: 480px) {
	.date-selection {
		flex-direction: row;
	}
	.date-selection label {
		flex: 1;
	}
}

/* Fieldset für Buffets */
fieldset {
	border: 1px solid #ddd;
	border-radius: 0.8rem;
	padding: 1rem;
	margin-bottom: 1rem;
	background-color: #0000002e;
	box-shadow: 0 0 10px black;
}

legend {
	font-size: 1.1rem;
	font-weight: 700;
	padding: 0.5rem 1rem;
	background: darkred;
	border-radius: 6px;
	color: white;
}

fieldset label {
	flex-direction: row;

	font-weight: 400;
	margin-bottom: 0.5rem;
	cursor: pointer;
}

fieldset label input[type="checkbox"] {
	margin-right: 0;
	transform: scale(1.2); /* Make checkbox slightly larger */
}

/* Hinweise und Infos */
.hinweis {
	font-size: 0.85rem;
	color: #a00;
	margin-top: 0;
	line-height: 1.4;
}

.hinweis.green {
	color: #007100;
}

.frei-info {
	text-align: center;
	font-size: 1.1rem;
	font-weight: 600;
	margin-bottom: 1.5rem;
	padding: 0.8rem;
	border-radius: 0.5rem;
	background-color: rgba(255, 255, 255, 0.8);
}

.frei-info.frei {
	color: green;
}
.frei-info.belegt {
	color: red;
}

p strong {
	color: #2c3e50;
}

/* Summenanzeige */
.summary-item {
	display: flex;
	gap: 10px;
	margin: 0;
	font-size: 0.95rem;
	justify-content: center;
}

.summary-total {
	font-size: 1.2rem;
	font-weight: 700;
	margin-top: 0;
	padding-top: 1rem;
	display: flex;
	justify-content: space-between;
	color: #2c3e50;
	border-bottom: 6px double #2c3e50;
}

/* Button-Stil */
button {
	padding: 1rem;
	width: 100%;
	background: #007bff;
	color: white;
	font-size: 1.2rem;
	font-weight: 600;
	border: none;
	border-radius: 0.5rem;
	cursor: pointer;
	margin-top: 1.5rem;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

button:hover {
	background: #0056b3;
	transform: translateY(-2px);
}

button:active {
	transform: translateY(0);
}

/* Footer-Stil */
footer {
	text-align: center;
	margin-top: 2rem;
	padding: 1rem;
	background-color: rgba(0, 0, 0, 0.6);
	color: #f0f0f0;
	border-radius: 0 0 1rem 1rem; /* Only bottom corners rounded */
}

footer a {
	color: #f0f0f0;
	text-decoration: none;
	transition: color 0.3s ease;
}

footer a:hover {
	color: #a7d9ff;
}

/* Honeypot für Spamschutz */
.honeypot {
	display: none;
}

/* Zusätzliche Anpassungen für kleine Bildschirme */
@media (max-width: 600px) {
	body {
		padding: 0.5rem;
	}
	main {
		margin: 1rem auto;
		padding: 1rem;
		border-radius: 0.5rem;
	}
	h1 {
		font-size: 1.5rem;
	}
	button {
		font-size: 1rem;
		padding: 0.8rem;
	}
	.frei-info {
		font-size: 1rem;
		padding: 0.6rem;
	}
}