@keyframes slideInCookiebanner {
	from { transform: translate(-50%, -110%); }
}
@keyframes slideInCookiebannerMobile {
	from { transform: translate(-50%, 110%); }
}

/* Stil für den Cookie-Banner */
#cookie-banner {
	position: fixed;
	top: 0;
	left: 50%;
	transform: translate(-50%, 0);
	width: 800px;
	max-width: 100%;
	background-color: #fffa;
	backdrop-filter: blur(20px);
	color: #000;
	padding: 1.5rem;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
	z-index: 10000;
	display: none; /* Standardmäßig ausgeblendet */
	border-bottom-left-radius: 25px;
	border-bottom-right-radius: 25px;
	box-sizing: border-box; /* Sicherstellen, dass Padding innerhalb der Breite liegt */
	animation: slideInCookiebanner .8s cubic-bezier(.25, 0, .25, 1);
}
@media (max-width: 1200px) { 
	#cookie-banner {
		top: unset;
		bottom: 0;
		box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.2);
		border-top-left-radius: 25px;
		border-top-right-radius: 25px;
		border-bottom-left-radius: 0;
		border-bottom-right-radius: 0;
		animation: slideInCookiebannerMobile .8s cubic-bezier(.25, 0, .25, 1);
	}
}

#cookie-banner-inner {
	display: flex;
	flex-direction: column; /* Buttons stehen immer unter dem Text */
}

#cookie-text-content {
	margin-bottom: 1.5rem; /* Abstand nach dem Text zum Options-Bereich */
}

#cookie-banner h2 {
	font-size: 1.5rem;
	font-weight: bold;
	margin-bottom: 0.75rem;
}

#cookie-banner p {
	margin-bottom: 1rem;
	line-height: 1.6;
	font-size: 0.875rem;
}

#cookie-banner a {
	color: #e10816;
	text-decoration: underline;
}

/* Stil für die Checkboxen */
.cookie-options {
	margin-top: 1rem;
	margin-bottom: 1.5rem; /* Mehr Platz vor den Buttons */
	text-align: left; /* Text der Checkboxen linksbündig */
	font-size: 0.9rem;
	width: 100%; /* Nimmt volle Breite ein */
}
.cookie-option-item {
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
}
.cookie-option-item input[type="checkbox"] {
	margin-right: 0.5rem;
	width: 1.15rem;
	height: 1.15rem;
	cursor: pointer;
}
.cookie-option-item label {
	cursor: pointer;
}

/* Stil für die Buttons */
#cookie-buttons {
	display: flex;
	flex-direction: column; /* Buttons stapeln standardmäßig */
	gap: 0.75rem; /* Abstand zwischen gestapelten Buttons */
	width: 100%; /* Buttons nehmen volle Breite ein */
}

@media (min-width: 640px) {
	#cookie-buttons {
		flex-direction: row; /* Buttons nebeneinander auf größeren Bildschirmen */
		gap: 1rem; /* Abstand zwischen nebeneinander liegenden Buttons */
		justify-content: center; /* Zentriert die Button-Gruppe */
	}
	#cookie-buttons > button {
		flex-grow: 0; /* Verhindert, dass Buttons sich ausdehnen */
		width: auto; /* Buttons passen sich dem Inhalt an */
	}
}

#cookie-banner button {
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 600;
	cursor: pointer;
	transition: filter 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	border: 1px solid #e10816;
	white-space: nowrap;
}

#cookie-banner button:hover {
	filter: grayscale(1);
	transform: translateY(-2px);
}

#save-selection-cookies {
	background-color: #fff;
	color: #e10816;
}
#accept-all-cookies {
	background-color: #e10816;
	color: white;
}
#decline-all-cookies {
	background-color: #fff;
	color: #e10816;
}

/* Toggle Switch */
.toggle-switch input[type="checkbox"] {
	visibility: hidden;
	width: 0;
	height: 0;
	font-size: 0;
}
.toggle-switch label {
	cursor: pointer;
	position: relative;
	user-select: none;
}
.toggle-switch label::before {
	content: '';
	display: inline-block;
	width: 3em;
	height: 1.5em;
	background-color: #e10816;
	vertical-align: middle;
	margin-right: .5em;
	border-radius: 100px;
	transition: all .2s;
	box-shadow: inset 2px 2px 2px #0005;
}
.toggle-switch label::after {
	content: '';
	display: inline-block;
	position: absolute;
	left: 0;
	top: 50%;
	transform: translate(.25em, -50%);
	height: 1em;
	width: 1em;
	background-color: #fffe;
	vertical-align: middle;
	border-radius: 100%;
	transition: all .2s;
	box-shadow: 2px 2px 2px #0005;
}
.toggle-switch input:checked + label::before {
	background-color: green;
}
.toggle-switch input:checked + label::after {
	transform: translate(1.75em, -50%);
}
.toggle-switch input:disabled + label::before,
.toggle-switch input:disabled + label::after {
	filter: grayscale(1) opacity(0.6);
}