/**
 * FF Consent-Gate – kompaktes Start-Popup (Cookies | FF+).
 */

.ff-consent-gate {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 3vw, 24px);
	font-family: 'Barlow Semi Condensed', sans-serif;
}

.ff-consent-gate[hidden] {
	display: none !important;
}

/* Eigenes Cookie-Icon (unten links) – öffnet unser Gate */
.ff-consent-gate-open-btn {
	position: fixed;
	z-index: 99991;
	bottom: 16px;
	left: 16px;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: #b43526;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.18);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
	-webkit-tap-highlight-color: transparent;
}

.ff-consent-gate-open-btn:hover,
.ff-consent-gate-open-btn:focus-visible {
	background: #942c1f;
	transform: scale(1.04);
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
	outline: none;
}

.ff-consent-gate-open-btn:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #b43526;
}

.ff-consent-gate-open-btn__icon {
	display: block;
	width: 22px;
	height: 22px;
	background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-5-5 4 4 0 0 1-5-5'/%3E%3Ccircle cx='8.5' cy='9.5' r='1' fill='%23ffffff' stroke='none'/%3E%3Ccircle cx='12' cy='7.5' r='1' fill='%23ffffff' stroke='none'/%3E%3Ccircle cx='15.5' cy='10.5' r='1' fill='%23ffffff' stroke='none'/%3E%3C/svg%3E");
}

html.ff-consent-gate-open,
body.ff-consent-gate-open {
	overflow: hidden;
}

.ff-consent-gate__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 17, 17, 0.45);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	cursor: pointer;
}

.ff-consent-gate__dialog {
	position: relative;
	z-index: 1;
	width: min(920px, 100%);
	overflow: hidden;
	background: #fff;
	border: 1px solid #e8e8e8;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.18);
	border-radius: 12px;
	padding: clamp(20px, 4vw, 28px) clamp(18px, 3.5vw, 32px) 22px;
	box-sizing: border-box;
}

.ff-consent-gate__dialog,
.ff-consent-gate__dialog * {
	scrollbar-width: none;
}

.ff-consent-gate__dialog::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

.ff-consent-gate__logo {
	display: flex;
	justify-content: center;
	margin-bottom: 18px;
}

.ff-consent-gate__logo img {
	display: block;
	width: min(320px, 72vw);
	height: auto;
	max-height: 40px;
	object-fit: contain;
}

.ff-consent-gate__columns {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(16px, 3vw, 28px);
	align-items: start;
}

.ff-consent-gate__col {
	display: flex;
	flex-direction: column;
	min-height: 100%;
}

.ff-consent-gate__col-main {
	flex: 1 1 auto;
}

.ff-consent-gate__col-title {
	margin: 0 0 10px;
	font-family: 'Barlow Semi Condensed', sans-serif;
	font-size: 17px;
	font-weight: 400;
	color: #111;
	line-height: 24px;
}

.ff-consent-gate__col-title--ffplus {
	display: flex;
	align-items: center;
	margin-bottom: 12px;
}

.ff-consent-gate__ffplus-logo {
	display: inline-flex;
	align-items: center;
	line-height: 0;
}

.ff-consent-gate__ffplus-logo .ff-plus-mark--meinff {
	display: none !important;
}

.ff-consent-gate__ffplus-logo .ff-plus-mark--default {
	display: block !important;
	position: static;
	grid-area: unset;
	width: auto;
	max-width: min(72px, 100%);
	max-height: 34px;
	height: auto;
	object-fit: contain;
}

.ff-consent-gate__intro {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.45;
	color: #333;
}

.ff-consent-gate__accordion {
	margin: 0 0 14px;
	border: 1px solid #e8e8e8;
	border-radius: 8px;
	overflow: visible;
}

.ff-consent-gate__acc-item + .ff-consent-gate__acc-item {
	border-top: 1px solid #e8e8e8;
}

.ff-consent-gate__acc-trigger {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 0;
	background-color: #fafafa;
	color: #111 !important;
	font: inherit;
	font-size: 17px;
	font-weight: 400;
	line-height: 24px;
	text-align: left;
	cursor: pointer;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
}

.ff-consent-gate__acc-trigger:focus-visible {
	outline: 2px solid #b43526;
	outline-offset: -2px;
}

.ff-consent-gate__acc-item.is-open .ff-consent-gate__acc-trigger {
	background-color: #fff;
}

.ff-consent-gate__acc-label {
	flex: 1 1 auto;
	flex-shrink: 0;
	color: #111 !important;
	visibility: visible !important;
	opacity: 1 !important;
	white-space: normal;
}

.ff-consent-gate__acc-chevron {
	flex: 0 0 10px;
	width: 10px;
	height: 10px;
	border-right: 2px solid #b43526;
	border-bottom: 2px solid #b43526;
	transform: rotate(45deg);
}

.ff-consent-gate__acc-item.is-open .ff-consent-gate__acc-chevron {
	transform: rotate(-135deg);
}

.ff-consent-gate__acc-panel {
	display: none;
	background: #fff;
	border-top: 1px solid #f0f0f0;
}

.ff-consent-gate__acc-item.is-open .ff-consent-gate__acc-panel {
	display: block;
}

.ff-consent-gate__acc-panel-inner p {
	margin: 0;
	padding: 10px 12px 12px;
	font-size: 13px;
	line-height: 1.45;
	color: #444;
}

/* Nur ein Panel-Slot sichtbar – feste Akkordeon-Höhe, kein Springen, kein Scroll */
.ff-consent-gate__accordion {
	--ff-acc-heads: 132px;
	--ff-acc-panel-slot: 72px;
	min-height: calc(var(--ff-acc-heads) + var(--ff-acc-panel-slot));
}

.ff-consent-gate__acc-item.is-open .ff-consent-gate__acc-panel-inner {
	max-height: var(--ff-acc-panel-slot);
	overflow: hidden;
}

.ff-consent-gate__cta-row,
.ff-consent-gate__sub-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: clamp(16px, 3vw, 28px);
	align-items: start;
}

.ff-consent-gate__cta-row {
	margin-top: 16px;
	align-items: stretch;
}

.ff-consent-gate__cta-cell {
	display: flex;
	align-items: stretch;
	min-height: 42px;
}

.ff-consent-gate__sub-row {
	margin-top: 10px;
}

.ff-consent-gate__sub-col--left {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ff-consent-gate .ff-consent-gate__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 42px;
	padding: 10px 20px;
	border-radius: 999px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	border: none;
	box-sizing: border-box;
	background-image: none;
	box-shadow: none;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ff-consent-gate .ff-consent-gate__btn--secondary {
	font-weight: 400;
	font-size: 17px;
	line-height: 24px;
}

.ff-consent-gate .ff-consent-gate__btn:focus {
	outline: none;
	box-shadow: none;
}

.ff-consent-gate .ff-consent-gate__btn:focus-visible {
	outline: 2px solid #b43526;
	outline-offset: 2px;
	box-shadow: none;
}

.ff-consent-gate .ff-consent-gate__btn--primary {
	background: #b43526;
	background-color: #b43526;
	border: none;
	color: #fff;
}

.ff-consent-gate .ff-consent-gate__btn--primary:hover,
.ff-consent-gate .ff-consent-gate__btn--primary:focus-visible {
	background: #942c1f;
	background-color: #942c1f;
	border: none;
	color: #fff;
}

.ff-consent-gate .ff-consent-gate__btn--secondary {
	background: #f3f3f3;
	background-color: #f3f3f3;
	border: none;
	color: #111;
}

.ff-consent-gate .ff-consent-gate__btn--secondary:hover,
.ff-consent-gate .ff-consent-gate__btn--secondary:focus-visible {
	background: #e8e8e8;
	background-color: #e8e8e8;
	border: none;
	color: #111;
}

.ff-consent-gate .ff-consent-gate__btn--ghost {
	background: transparent;
	background-color: transparent;
	border: none;
	color: #555;
	text-decoration: underline;
	min-height: 36px;
	padding-top: 6px;
	padding-bottom: 6px;
}

.ff-consent-gate .ff-consent-gate__btn--ghost:hover,
.ff-consent-gate .ff-consent-gate__btn--ghost:focus-visible {
	background: transparent;
	color: #111;
}

.ff-consent-gate__btn--footer {
	width: 100%;
	max-width: 320px;
	margin: 0 auto;
}

.ff-consent-gate .ff-consent-gate__btn--footer.ff-consent-gate__btn--primary {
	background: #b43526;
	background-color: #b43526;
	border: none;
	color: #fff;
}

.ff-consent-gate .ff-consent-gate__btn--footer.ff-consent-gate__btn--primary:hover,
.ff-consent-gate .ff-consent-gate__btn--footer.ff-consent-gate__btn--primary:focus-visible {
	background: #942c1f;
	background-color: #942c1f;
	border: none;
	color: #fff;
}

.ff-consent-gate__legal-links {
	margin: 12px 0 0;
	font-size: 13px;
}

.ff-consent-gate__legal-links a {
	color: #b43526;
	text-decoration: underline;
}

.ff-consent-gate__ffplus-list {
	margin: 0;
	padding-left: 1.2em;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
}

.ff-consent-gate__col--ffplus {
	padding: 14px 16px;
	background: #faf8f8;
	border: 1px solid #f0e6e4;
	border-radius: 10px;
}

.ff-consent-gate__footer {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #e8e8e8;
	text-align: center;
}

.ff-consent-gate__dismiss-hint {
	margin: 10px 0 0;
	font-size: 12px;
	line-height: 1.4;
	color: #777;
	max-width: 52em;
	margin-left: auto;
	margin-right: auto;
}

@media (max-width: 720px) {
	.ff-consent-gate__columns,
	.ff-consent-gate__cta-row,
	.ff-consent-gate__sub-row {
		grid-template-columns: 1fr;
	}

	.ff-consent-gate__sub-col--right {
		display: none;
	}

}
