/* Flexible Cookie Consent – Banner-Styles */

.fcc {
	position: fixed;
	z-index: 999999;
	box-sizing: border-box;
	background: var(--fcc-bg, #fff);
	color: var(--fcc-text, #1f2328);
	font-size: 15px;
	line-height: 1.5;
	box-shadow: 0 4px 30px rgba(0, 0, 0, 0.18);
}

.fcc *,
.fcc *::before,
.fcc *::after {
	box-sizing: inherit;
}

/* Layout: Leiste */
.fcc-layout-bar {
	left: 0;
	right: 0;
}

.fcc-layout-bar.fcc-pos-bottom {
	bottom: 0;
}

.fcc-layout-bar.fcc-pos-top {
	top: 0;
}

/* Layout: Modal */
.fcc-layout-modal {
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	width: min(560px, calc(100vw - 32px));
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	border-radius: 12px;
}

.fcc-overlay {
	position: fixed;
	inset: 0;
	z-index: 999998;
	background: rgba(0, 0, 0, 0.45);
}

.fcc-inner {
	max-width: 1080px;
	margin: 0 auto;
	padding: 20px 24px;
}

.fcc-title {
	margin: 0 0 8px;
	font-size: 18px;
	font-weight: 700;
	color: inherit;
}

.fcc-text {
	margin: 0 0 14px;
}

.fcc-privacy {
	color: var(--fcc-primary, #1e6f50);
	text-decoration: underline;
}

/* Kategorien */
.fcc-cats {
	display: grid;
	gap: 10px;
	margin: 0 0 16px;
	padding: 14px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
}

.fcc-cat {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	cursor: pointer;
}

.fcc-cat input {
	margin-top: 4px;
	width: 16px;
	height: 16px;
	accent-color: var(--fcc-primary, #1e6f50);
	flex: none;
}

.fcc-cat-info small {
	display: block;
	opacity: 0.75;
}

/* Buttons */
.fcc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.fcc-btn {
	font: inherit;
	font-weight: 600;
	padding: 10px 18px;
	border-radius: 8px;
	border: 2px solid var(--fcc-primary, #1e6f50);
	cursor: pointer;
	transition: filter 0.15s ease;
}

.fcc-btn:hover {
	filter: brightness(1.1);
}

.fcc-btn:focus-visible {
	outline: 3px solid var(--fcc-primary, #1e6f50);
	outline-offset: 2px;
}

.fcc-btn-primary {
	background: var(--fcc-primary, #1e6f50);
	color: #fff;
}

.fcc-btn-secondary {
	background: transparent;
	color: var(--fcc-primary, #1e6f50);
}

.fcc-btn-link {
	background: none;
	border-color: transparent;
	color: inherit;
	text-decoration: underline;
	font-weight: 400;
	padding: 10px 6px;
}

/* Schwebender Reopen-Button */
.fcc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999997;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: var(--fcc-primary, #1e6f50);
	color: #fff;
	cursor: pointer;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.fcc-reopen:hover {
	filter: brightness(1.1);
}

[hidden] {
	display: none !important;
}

@media (max-width: 600px) {
	.fcc-inner {
		padding: 16px;
	}

	.fcc-actions .fcc-btn {
		flex: 1 1 100%;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.fcc-btn {
		transition: none;
	}
}
