/* IGR Mitglieder — Kartenfinder-Layout (05.08.2026) + Modal */

/* ---------- Hinweis-Box (nur solange in Abstimmung) ---------- */
.igr-m-hinweisbox {
	background: #e6ecf4;
	border-radius: 12px;
	padding: 15px 20px;
	font-size: 13.5px;
	color: #55617a;
	margin-bottom: 26px;
}
.igr-m-hinweisbox strong { color: #032863; }

/* ---------- Zweispaltiges Layout: Karte links (sticky), Liste rechts ---------- */
.igr-m-layout {
	display: grid;
	grid-template-columns: minmax(360px, 44%) 1fr;
	gap: 26px;
	align-items: start;
}
.igr-m-map-wrap {
	position: sticky;
	top: 24px;
}
#igr-map {
	height: min(72vh, 640px);
	border-radius: 20px;
	border: 1px solid #e2e8f1;
	z-index: 1;   /* unter Header-Dropdown und Modal bleiben */
}

/* Marker: IGR-Tropfen */
.igr-marker span {
	display: block;
	width: 26px; height: 26px;
	background: #239B30;
	border: 2.5px solid #fff;
	border-radius: 50% 50% 50% 4px;
	transform: rotate(-45deg);
	box-shadow: 0 6px 14px -4px rgba(1,20,58,.5);
}
.igr-marker.ist-aktiv span { background: #032863; }
.igr-marker-standort span {
	display: block;
	width: 16px; height: 16px;
	background: #0D9DE5;
	border: 2.5px solid #fff;
	border-radius: 50%;
	box-shadow: 0 0 0 5px rgba(13,157,229,.25);
}
.igr-popup .leaflet-popup-content-wrapper {
	border-radius: 14px;
	box-shadow: 0 20px 40px -14px rgba(12,52,61,.4);
}
.igr-popup .leaflet-popup-content {
	font-family: 'Nunito Sans', system-ui, sans-serif;
	font-size: 13.5px;
	line-height: 1.5;
	color: #55617a;
	margin: 14px 16px;
}
.igr-popup strong {
	display: block;
	font-family: 'Comfortaa', cursive;
	font-size: 14px;
	color: #032863;
	margin-bottom: 3px;
}
.igr-popup a { color: #239B30; font-weight: 700; text-decoration: none; }

/* ---------- Suche ---------- */
.igr-m-suche {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
}
.igr-m-suche input {
	flex: 1;
	border: 1.5px solid #c8d2e2;
	border-radius: 40px;
	padding: 12px 18px;
	font-size: 14.5px;
	font-family: 'Nunito Sans', system-ui, sans-serif;
	outline: none;
	background: #fff;
}
.igr-m-suche input:focus { border-color: #04549E; }
.igr-m-suche .igr-btn { white-space: nowrap; }

/* ---------- Gruppen + kompakte Karten ---------- */
.igr-m-ergebnisse { display: flex; flex-direction: column; gap: 10px; }

/* hidden-Attribut muss gegen display:grid/flex gewinnen (Suchfilter) */
.igr-mliste [hidden] { display: none !important; }

.igr-m-gruppenkopf {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 14px 0 2px;
}
.igr-m-gruppenkopf:first-child { margin-top: 0; }
.igr-m-gruppenkopf h2 {
	font-family: 'Comfortaa', cursive;
	font-size: 15px;
	font-weight: 700;
	color: #032863;
	margin: 0;
	padding: 0;
	white-space: nowrap;
}
.igr-m-linie { flex: 1; height: 1px; background: #dbe3ee; }

.igr-m-card {
	background: #fff;
	border: 1px solid #e2e8f1;
	border-radius: 14px;
	padding: 14px 18px;
	display: grid;
	grid-template-columns: 86px 1fr auto;
	gap: 16px;
	align-items: center;
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
	cursor: default;
}
.igr-m-card:hover,
.igr-m-card.ist-aktiv {
	transform: translateY(-2px);
	border-color: #c8d2e2;
	box-shadow: 0 18px 36px -24px rgba(1,20,58,.5);
}

.igr-m-logo-bild {
	display: block;
	background-size: contain;
	background-position: left center;
	background-repeat: no-repeat;
}
.igr-m-logo-folgt {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	border: 1px dashed #c8d2e2;
	border-radius: 8px;
	font-size: 11px;
	font-weight: 600;
	color: #9fb0d6;
}

.igr-m-branche {
	font-size: 10.5px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #0D9DE5;
	margin: 0 0 2px;
}
.igr-m-daten h3 {
	font-family: 'Comfortaa', cursive;
	font-size: 15px;
	font-weight: 700;
	color: #032863;
	margin: 0;
	padding: 0;
	line-height: 1.3;
}
.igr-m-adresse {
	font-size: 12.5px;
	line-height: 1.45;
	color: #55617a;
	margin: 3px 0 0;
}
.igr-m-adresse a {
	color: inherit;
	text-decoration: underline;
	text-decoration-color: rgba(85, 97, 122, .4);
	text-underline-offset: 2px;
}
.igr-m-adresse a:hover { color: #04549E; }
.igr-m-dist {
	color: #1c7d28;
	font-weight: 700;
	margin-left: 6px;
}
.igr-m-website {
	display: inline-block;
	font-size: 12px;
	font-weight: 600;
	color: #04549E !important;
	text-decoration: none;
	margin-top: 3px;
}
.igr-m-pruefhinweis {
	background: #fdf3e2;
	border-radius: 8px;
	padding: 5px 9px;
	font-size: 11.5px;
	line-height: 1.45;
	color: #a06a1e;
	margin: 6px 0 0;
}

.igr-m-btn {
	border: none;
	cursor: pointer;
	font-family: 'Nunito Sans', system-ui, sans-serif;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 18px;
	white-space: nowrap;
}

.igr-m-keine-treffer {
	font-size: 14px;
	color: #55617a;
	padding: 18px 4px;
	margin: 0;
}

@media (max-width: 1024px) {
	.igr-m-layout { grid-template-columns: 1fr; }
	.igr-m-map-wrap { position: static; }
	#igr-map { height: 320px; }
}
@media (max-width: 600px) {
	.igr-m-card { grid-template-columns: 1fr; gap: 10px; }
	.igr-m-suche { flex-wrap: wrap; }
}

/* ---------- Modal ---------- */
.igr-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(1,16,45,.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	z-index: 200;
}
.igr-modal-overlay[hidden] { display: none; }

.igr-modal {
	position: relative;
	background: #fff;
	max-width: 560px;
	width: 100%;
	max-height: 88vh;
	overflow: auto;
	border-radius: 22px;
	padding: 34px 34px 30px;
	box-shadow: 0 40px 80px -30px rgba(1,20,58,.7);
}
.igr-modal-close {
	position: absolute;
	top: 16px; right: 16px;
	width: 34px; height: 34px;
	border: none;
	border-radius: 50%;
	background: #eef2f7;
	color: #55617a;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}
.igr-modal-eyebrow {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.6px;
	color: #0D9DE5;
	margin: 0 0 6px;
}
.igr-modal h3 {
	font-family: 'Comfortaa', cursive;
	font-size: 23px;
	font-weight: 700;
	color: #032863;
	margin: 0;
	padding: 0;
}
.igr-modal-sub { font-size: 14px; color: #55617a; margin: 4px 0 22px; }

.igr-modal-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.igr-modal-grid .igr-voll { grid-column: 1 / -1; }

.igr-modal-grid label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: #032863;
}
.igr-modal-grid input[type="text"],
.igr-modal-grid input[type="tel"],
.igr-modal-grid input[type="email"],
.igr-modal-grid textarea {
	border: 1.5px solid #c8d2e2;
	border-radius: 12px;
	padding: 13px 16px;
	font-size: 15px;
	font-family: 'Nunito Sans', system-ui, sans-serif;
	outline: none;
	width: 100%;
}
.igr-modal-grid .igr-check {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	font-size: 13.5px;
	color: #55617a;
}
.igr-modal-grid .igr-check input {
	width: 16px; height: 16px;
	margin-top: 2px;
	accent-color: #239B30;
	flex: 0 0 auto;
}
.igr-modal-grid .igr-check a { color: #04549E; }

.igr-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px; height: 1px;
	opacity: 0;
}

.igr-modal-senden {
	border: none;
	cursor: pointer;
	font-family: 'Nunito Sans', system-ui, sans-serif;
	font-size: 15.5px;
	font-weight: 700;
	padding: 14px 34px;
	margin-top: 18px;
}
.igr-modal-fehler {
	color: #b3261e;
	font-size: 13.5px;
	margin: 12px 0 0;
}
.igr-modal-fussnote {
	text-align: center;
	font-size: 12.5px;
	line-height: 1.5;
	color: #8b9ac0;
	margin: 16px 0 0;
}
.igr-modal-danke {
	font-size: 15px;
	color: #1c7d28;
	font-weight: 600;
	margin: 20px 0 0;
}

body.igr-modal-offen { overflow: hidden; }
