/* Cookie consent banner + settings modal (SocialMet IT Solutions) */

.cc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 99999;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 22px 40px;
	background-color: var(--tj-color-theme-dark, #051229);
	box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.18);
	font-family: var(--tj-ff-body, "Lato", sans-serif);
	transform: translateY(0);
	transition: transform 0.4s ease-in-out;
}

.cc-banner[hidden] {
	display: none;
}

.cc-banner_text {
	flex: 1 1 480px;
	max-width: 760px;
	font-size: 14px;
	line-height: 1.7;
	color: #dfe4ec;
}

.cc-banner_text strong {
	color: #ffffff;
}

/* Heller als die Theme-Farbe: #0075ff erreicht auf dem dunklen Banner
   nur 4,4:1, gefordert sind 4,5:1. */
.cc-banner_text a {
	color: #4da3ff;
	text-decoration: underline;
}

.cc-banner_actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.cc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	border-radius: 50px;
	font-size: 14px;
	font-weight: 600;
	font-family: var(--tj-ff-body, "Lato", sans-serif);
	cursor: pointer;
	border: 1.5px solid transparent;
	transition: all 0.3s ease-in-out;
	white-space: nowrap;
}

/* Etwas dunkler als die Theme-Farbe, damit weisse Schrift den
   Mindestkontrast von 4,5:1 erreicht (vorher 4,2:1). */
.cc-btn-primary {
	background-color: #0066e0;
	color: #ffffff;
}

.cc-btn-primary:hover {
	background-color: #0055bd;
	color: #ffffff;
}

.cc-btn-outline {
	background-color: transparent;
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.35);
}

.cc-btn-outline:hover {
	background-color: rgba(255, 255, 255, 0.1);
	color: #ffffff;
}

.cc-btn-outline-dark {
	background-color: transparent;
	color: var(--tj-color-heading-primary, #051229);
	border-color: rgba(5, 18, 41, 0.2);
}

.cc-btn-outline-dark:hover {
	background-color: rgba(5, 18, 41, 0.06);
}

/* Modal */
.cc-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	background-color: rgba(5, 18, 41, 0.65);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.cc-modal-overlay[hidden] {
	display: none;
}

.cc-modal {
	width: 100%;
	max-width: 620px;
	max-height: 88vh;
	overflow-y: auto;
	background-color: #ffffff;
	border-radius: 16px;
	padding: 36px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
	font-family: var(--tj-ff-body, "Lato", sans-serif);
}

.cc-modal_header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 8px;
}

.cc-modal_header h3 {
	margin: 0;
	font-size: 24px;
}

.cc-modal_close {
	flex: none;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	color: var(--tj-color-heading-primary, #051229);
	background-color: #f1f3f6;
	cursor: pointer;
}

.cc-modal_close:hover {
	background-color: #e5e9ef;
}

.cc-category {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid #edeff2;
}

.cc-category:last-of-type {
	border-bottom: none;
}

.cc-category_info h4 {
	margin: 0 0 6px;
	font-size: 17px;
	color: var(--tj-color-heading-primary, #051229);
}

.cc-category_status {
	display: inline-block;
	margin-bottom: 8px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--tj-color-text-body-2, #7e8590);
}

.cc-category_info p {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--tj-color-text-body, #364052);
}

.cc-toggle {
	flex: none;
	position: relative;
	width: 46px;
	height: 26px;
}

.cc-toggle input {
	opacity: 0;
	width: 0;
	height: 0;
}

.cc-toggle_track {
	position: absolute;
	inset: 0;
	background-color: #d7dbe2;
	border-radius: 50px;
	cursor: pointer;
	transition: background-color 0.25s ease-in-out;
}

.cc-toggle_track::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 3px;
	width: 20px;
	height: 20px;
	background-color: #ffffff;
	border-radius: 50%;
	transition: transform 0.25s ease-in-out;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.cc-toggle input:checked + .cc-toggle_track {
	background-color: var(--tj-color-theme-primary, #0075ff);
}

.cc-toggle input:checked + .cc-toggle_track::before {
	transform: translateX(20px);
}

.cc-toggle input:disabled + .cc-toggle_track {
	cursor: not-allowed;
	opacity: 0.55;
}

.cc-modal_actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.cc-modal_actions .cc-btn {
	flex: 1 1 auto;
}

/* Persistent re-open link, shown once the banner/modal are dismissed */
.cc-relaunch {
	position: fixed;
	left: 20px;
	bottom: 20px;
	z-index: 99998;
	padding: 10px 18px;
	border-radius: 50px;
	background-color: var(--tj-color-theme-dark, #051229);
	color: #ffffff;
	font-family: var(--tj-ff-body, "Lato", sans-serif);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.cc-relaunch:hover {
	background-color: #0a1c3d;
}

.cc-relaunch[hidden] {
	display: none;
}

@media (max-width: 767px) {
	.cc-relaunch {
		left: 12px;
		bottom: 12px;
		padding: 8px 14px;
		font-size: 12px;
	}
}

/* Embed consent placeholder (e.g. Google Maps) */
.cc-embed-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	text-align: center;
	padding: 24px;
	background-color: rgba(5, 18, 41, 0.88);
	color: #ffffff;
	font-family: var(--tj-ff-body, "Lato", sans-serif);
}

.cc-embed-overlay p {
	margin: 0;
	max-width: 360px;
	font-size: 14px;
	line-height: 1.6;
	color: #dfe4ec;
}

@media (max-width: 767px) {
	.cc-banner {
		padding: 20px;
		justify-content: center;
		text-align: center;
	}

	.cc-banner_actions {
		width: 100%;
		justify-content: center;
	}

	.cc-btn {
		flex: 1 1 auto;
	}

	.cc-modal {
		padding: 24px;
	}

	.cc-category {
		flex-direction: column;
	}
}
