/**********************************************************************
 * FONTS (Libre Franklin aus dem TYPO3-Sitepackage von energy4climate.nrw;
 * lokal nicht vorhanden -> Fallback sans-serif)
 *********************************************************************/
@font-face {
	font-family: "Libre Franklin";
	font-style: normal;
	font-weight: 400;
	src:
		url("../typo3conf/ext/e4csitepackage/Resources/Public/Assets/fonts/libre-franklin-v13-latin-regular.woff2") format("woff2"),
		url("../typo3conf/ext/e4csitepackage/Resources/Public/Assets/fonts/libre-franklin-v13-latin-regular.woff") format("woff");
}

@font-face {
	font-family: "Libre Franklin";
	font-style: normal;
	font-weight: 600;
	src:
		url("../typo3conf/ext/e4csitepackage/Resources/Public/Assets/fonts/libre-franklin-v13-latin-600.woff2") format("woff2"),
		url("../typo3conf/ext/e4csitepackage/Resources/Public/Assets/fonts/libre-franklin-v13-latin-600.woff") format("woff");
}

@font-face {
	font-family: "Libre Franklin";
	font-style: normal;
	font-weight: 700;
	src:
		url("../typo3conf/ext/e4csitepackage/Resources/Public/Assets/fonts/libre-franklin-v13-latin-700.woff2") format("woff2"),
		url("../typo3conf/ext/e4csitepackage/Resources/Public/Assets/fonts/libre-franklin-v13-latin-700.woff") format("woff");
}

/**********************************************************************
 * VARIABLEN
 *********************************************************************/
:root {
	--nrw-blue: #00629b;
	--nrw-blue-heaven: #009ee0;
	--nrw-orange: #f29400;
	--nrw-white: #fff;
	--nrw-black: #000;
	--nrw-black-rgb: 0,0,0;
	--nrw-gray: #eef2fb;
	--nrw-gray-dark: #787878;
	--nrw-gray-light: rgb(203,203,203);
	--nrw-green: #007c74;
	--nrw-teal: #B1C800;
	--nrw-font-weight-bold-600: 600;
	--nrw-font-weight-bold: 700;

	--nrw-color-category-genossenschaft: var(--nrw-blue);
	--nrw-color-category-sublocation: var(--nrw-blue-heaven);

	--climateprotection-map-font-size: 16px;
	--climateprotection-map-title-font-size: 20px;
	--climateprotection-map-popover-font-size: 11px;
}

.climateprotection-nrw--wrapper {
	font-family: "Libre Franklin", sans-serif;
	font-size: var(--climateprotection-map-font-size);
}

/**********************************************************************
 * KATEGORIE-FARBEN
 *********************************************************************/
.category-genossenschaft {
	color: var(--nrw-color-category-genossenschaft) !important;
}

.category-sublocation {
	color: var(--nrw-color-category-sublocation) !important;
}

.climateprotection-nrw--location.category-genossenschaft {
	fill: var(--nrw-color-category-genossenschaft) !important;
}

.climateprotection-nrw--hassublocations.category-sublocation {
	fill: var(--nrw-color-category-sublocation) !important;
}

/**********************************************************************
 * KOPF: LEGENDE + HINWEIS
 *********************************************************************/
.climateprotection-nrw--head {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1rem;
	flex-wrap: wrap;
}

.list-group-filter {
	width: fit-content;
	padding: 1rem;
	border: 1px solid var(--nrw-white);
	background-color: var(--nrw-gray);
}

.list-group-filter .list-group-item {
	border: none;
	padding: 0;
	font-weight: var(--nrw-font-weight-bold);
	position: relative;
	background: transparent;
}

.list-group-filter .list-group-item span {
	display: inline-block;
	margin-left: 1.5rem;
}

.list-group-filter .list-group-item:before {
	height: 1rem;
	width: 1rem;
	background-color: var(--nrw-black);
	border-radius: 50%;
	display: inline-block;
	content: "";
	position: absolute;
	top: 0.25rem;
}

.list-group-filter .list-group-item.category-genossenschaft:before {
	background-color: var(--nrw-color-category-genossenschaft);
}

.list-group-filter .list-group-item.category-sublocation:before {
	background-color: var(--nrw-color-category-sublocation);
	/* weißes Plus wie auf der Karte */
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.6 8h8.8M8 3.6v8.8' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E");
	background-size: 100% 100%;
}

.climateprotection-nrw--hint {
	max-width: 20rem;
	margin: 0;
	padding: 1rem;
	border: 1px solid var(--nrw-white);
	background-color: var(--nrw-gray);
	color: var(--nrw-blue);
	font-weight: var(--nrw-font-weight-bold-600);
	text-align: left;
}

@media (max-width: 575.98px) {
	.climateprotection-nrw--hint {
		max-width: none;
		width: 100%;
	}
}

/**********************************************************************
 * KARTE
 *********************************************************************/
.climateprotection-nrw--map {
	display: flex;
	justify-content: center;
}

.mapael .map {
	position: relative;
	max-width: 930px;
	width: 100%;
}

.mapael .map svg {
	filter: drop-shadow(5px 6px 9px rgba(var(--nrw-black-rgb), 0.4));
	width: 98%;
}

.mapael .mapTooltip {
	position: absolute;
}

circle.climateprotection-nrw--location {
	stroke: unset;
	r: 3.1px;
}

.climateprotection-nrw--location {
	cursor: pointer;
}

/* Plus auf Standorten mit mehreren Genossenschaften (gezeichnet in karte.js) */
.climateprotection-nrw--plus {
	pointer-events: none;
}

/* Orientierungs-Beschriftung der großen Städte (nicht klickbar) */
circle.climateprotection-nrw--stadt {
	stroke: none;
	r: 1.4px;
}

.climateprotection-nrw--stadt,
.climateprotection-nrw--stadt + text {
	fill: var(--nrw-gray-dark);
	pointer-events: none;
}

/* Tooltip mit Ortsname beim Überfahren eines Punkts */
.mapael .climateprotection-nrw--tooltip {
	z-index: 10;
	padding: 0.25rem 0.5rem;
	border: 1px solid var(--nrw-blue-heaven);
	border-radius: 0.25rem;
	background-color: var(--nrw-white);
	color: var(--nrw-blue);
	font-size: 14px;
	font-weight: var(--nrw-font-weight-bold-600);
	max-width: 15rem;
	pointer-events: none;
}

/**********************************************************************
 * POPOVER (Auswahlliste bei mehreren Projekten)
 *********************************************************************/
.climateprotection-nrw--popover {
	--bs-popover-body-padding-x: 0.5rem;
	--bs-popover-body-padding-y: 0.5rem;
	--bs-popover-border-color: var(--nrw-blue-heaven);
}

.climateprotection-nrw--popover .list-group-sublocations .list-group-item {
	padding: 0;
	border: 0;
	position: relative;
}

.climateprotection-nrw--popover .list-group-sublocations .list-group-item .btn-link {
	padding: 0;
	text-decoration: none;
	color: var(--nrw-blue);
	font-weight: var(--nrw-font-weight-bold);
	text-align: left;
	font-size: calc(var(--climateprotection-map-popover-font-size) + 0.25vw);
}

.climateprotection-nrw--popover .list-group-sublocations .list-group-item + .list-group-item {
	margin-top: 0.35rem;
}

.climateprotection-nrw--popover .list-group-sublocations .list-group-item.category-genossenschaft .btn-link {
	color: var(--nrw-color-category-genossenschaft);
}

/**********************************************************************
 * MODAL (Steckbrief)
 *********************************************************************/
.climateprotection-nrw--modal {
	--bs-border-color: var(--nrw-gray-light);
	--bs-modal-border-color: var(--nrw-gray-light);
	--bs-modal-header-padding: 0.5rem 0.5rem;
	--bs-modal-padding: 0.5rem;
	font-family: "Libre Franklin", sans-serif;
}

.climateprotection-nrw--modal .modal-dialog {
	padding-top: 180px;
}

@media screen and (min-width: 576px) {
	.climateprotection-nrw--modal .modal-dialog {
		max-width: 500px;
	}
}

.climateprotection-nrw--modal .modal-dialog .modal-content {
	box-shadow: 11px 6px 14px -10px var(--nrw-gray-dark);
}

.climateprotection-nrw--modal .btn-close {
	color: var(--nrw-blue);
}

.climateprotection-nrw--modal .modal-header {
	border: none;
	color: #595959;
}

.climateprotection-nrw--modal .modal-header .modal-title {
	font-weight: var(--nrw-font-weight-bold);
	position: relative;
	font-size: var(--climateprotection-map-title-font-size);
}

.climateprotection-nrw--modal .modal-body table {
	margin-top: 1rem;
}

.climateprotection-nrw--modal .modal-body table tr th,
.climateprotection-nrw--modal .modal-body table tr td h3 {
	font-size: 14px;
	font-weight: 600;
	padding: 10px 0 10px;
	margin: 0;
	color: #595959;
}

.climateprotection-nrw--modal .modal-body table tr td {
	vertical-align: top;
	font-size: 12px;
	color: #595959;
}

.climateprotection-nrw--modal .modal-body table tr td:first-child {
	padding-right: 10px;
}

.climateprotection-nrw--modal .modal-body table tr td:first-child:not([colspan]) {
	width: 40%;
}

.climateprotection-nrw--modal .modal-body table tr td:not(:first-child) {
	padding-bottom: 6px;
}

/**********************************************************************
 * BUTTONS
 *********************************************************************/
.btn {
	--bs-btn-padding-x: 2rem;
	--bs-btn-padding-y: 0.6875rem;
	--bs-btn-font-family: ;
	--bs-btn-font-size: 1rem;
	--bs-btn-font-weight: 600;
	--bs-btn-line-height: 1.5;
	--bs-btn-color: var(--bs-body-color);
	--bs-btn-bg: transparent;
	--bs-btn-border-width: none;
	--bs-btn-border-color: transparent;
	--bs-btn-border-radius: 50px;
	--bs-btn-hover-border-color: transparent;
	--bs-btn-box-shadow: none;
	--bs-btn-disabled-opacity: 0.35;
	--bs-btn-focus-box-shadow: 0 0 0 0.25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);
	display: inline-block;
	padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
	font-family: var(--bs-btn-font-family);
	font-size: var(--bs-btn-font-size);
	font-weight: var(--bs-btn-font-weight);
	line-height: var(--bs-btn-line-height);
	color: var(--bs-btn-color);
	text-align: center;
	vertical-align: middle;
	cursor: pointer;
	user-select: none;
	border: var(--bs-btn-border-width) solid var(--bs-btn-border-color);
	border-radius: var(--bs-btn-border-radius);
	background-color: var(--bs-btn-bg);
	box-shadow: var(--bs-btn-box-shadow);
	transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.btn:hover {
	color: var(--bs-btn-hover-color);
	background-color: var(--bs-btn-hover-bg);
	border-color: var(--bs-btn-hover-border-color);
}

.btn-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: #00659e;
	--bs-btn-border-color: #00659e;
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: #00659e;
	--bs-btn-hover-border-color: #00659e;
	--bs-btn-focus-shadow-rgb: 38, 124, 173;
	--bs-btn-active-color: #fff;
	--bs-btn-active-bg: #00659e;
	--bs-btn-active-border-color: #00659e;
	--bs-btn-active-shadow: inset 3px 3px 6px #00659e;
	--bs-btn-disabled-color: #fff;
	--bs-btn-disabled-bg: #00659e;
	--bs-btn-disabled-border-color: #00659e;
	margin: 20px 0;
}

.btn.btn-primary.active,
.btn.btn-primary:hover {
	background-color: #009ee0;
	box-shadow: inset 3px 3px 6px #00659e;
}
