/* Avanti-Kollektiv – passt sich Schrift und Farben des Themes an.
   Die Akzentfarbe könnt ihr im Customizer unter „Zusätzliches CSS“ ändern:
   :root { --avanti-akzent: #e4572e; } */

:root {
	--avanti-akzent: #e4572e;
	--avanti-linie: rgba(127, 127, 127, 0.25);
	--avanti-flaeche: rgba(127, 127, 127, 0.08);
	--avanti-radius: 12px;
}

/* Raster für Mitglieder und Bereiche */
.avanti-raster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
	gap: 1.5rem;
	margin: 1.5rem 0 2.5rem;
}

.avanti-karte {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--avanti-linie);
	border-radius: var(--avanti-radius);
	overflow: hidden;
	background: var(--avanti-flaeche);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.avanti-karte:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.avanti-karte__bild {
	display: block;
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.avanti-karte__bild img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.avanti-platzhalter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-size: 3.5rem;
	font-weight: 700;
	text-transform: uppercase;
	color: #fff;
	background: var(--avanti-akzent);
}

.avanti-karte__inhalt {
	padding: 1rem 1.15rem 1.25rem;
}

.avanti-karte__inhalt p {
	margin: 0.4rem 0 0;
	font-size: 0.95em;
}

.avanti-karte__titel {
	margin: 0;
	font-size: 1.2em;
}

.avanti-karte__titel a {
	text-decoration: none;
	color: inherit;
}

/* Schlagworte */
.avanti-schlagworte {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	list-style: none;
	margin: 0.75rem 0 0;
	padding: 0;
}

.avanti-schlagwort {
	display: inline-block;
	padding: 0.2em 0.7em;
	border: 1px solid var(--avanti-linie);
	border-radius: 999px;
	font-size: 0.82em;
	line-height: 1.5;
	text-decoration: none;
	color: inherit;
}

a.avanti-schlagwort:hover {
	border-color: var(--avanti-akzent);
	color: var(--avanti-akzent);
}

.avanti-meta {
	font-size: 0.88em;
	opacity: 0.75;
	margin: 0;
}

/* Veranstaltungen */
.avanti-event-liste {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin: 1.5rem 0 2.5rem;
}

.avanti-event {
	display: flex;
	gap: 1.25rem;
	padding: 1rem 1.25rem;
	border: 1px solid var(--avanti-linie);
	border-radius: var(--avanti-radius);
}

.avanti-event--kollektiv {
	border-left: 4px solid var(--avanti-akzent);
}

.avanti-event__datum {
	flex: 0 0 4rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 4rem;
	border-radius: 10px;
	background: var(--avanti-akzent);
	color: #fff;
	line-height: 1.1;
}

.avanti-event__tag {
	font-size: 1.6rem;
	font-weight: 700;
}

.avanti-event__monat {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.avanti-event__info {
	flex: 1;
	min-width: 0;
}

.avanti-event__info p {
	margin: 0.35rem 0 0;
}

.avanti-event__titel {
	margin: 0.15rem 0 0;
	font-size: 1.2em;
}

.avanti-event__titel a {
	text-decoration: none;
	color: inherit;
}

.avanti-details {
	display: grid;
	gap: 0.5rem;
	margin: 0 0 2rem;
	padding: 1.25rem;
	border-radius: var(--avanti-radius);
	background: var(--avanti-flaeche);
}

.avanti-details div {
	display: grid;
	grid-template-columns: 6rem 1fr;
	gap: 1rem;
}

.avanti-details dt {
	font-weight: 600;
}

.avanti-details dd {
	margin: 0;
}

.avanti-details .avanti-schlagworte {
	margin: 0;
}

/* Filter und Formular */
.avanti-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 0.75rem 1rem;
	margin: 1rem 0;
	padding: 1rem;
	border-radius: var(--avanti-radius);
	background: var(--avanti-flaeche);
}

.avanti-feld {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	margin: 0 0 1rem;
}

.avanti-filter .avanti-feld {
	margin: 0;
	flex: 1 1 180px;
}

.avanti-feld label {
	font-weight: 600;
	font-size: 0.92em;
}

.avanti-feld input[type="text"],
.avanti-feld input[type="email"],
.avanti-feld select,
.avanti-feld textarea {
	width: 100%;
	padding: 0.6em 0.75em;
	border: 1px solid var(--avanti-linie);
	border-radius: 8px;
	font: inherit;
	background: transparent;
	color: inherit;
	box-sizing: border-box;
}

.avanti-feld select option {
	color: #1d1d1d;
}

.avanti-feld--check label {
	font-weight: 400;
	display: flex;
	gap: 0.5rem;
	align-items: flex-start;
}

.avanti-feld--check input {
	margin-top: 0.3em;
}

.avanti-filter__aktionen {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.avanti-knopf {
	display: inline-block;
	padding: 0.65em 1.4em;
	border: 0;
	border-radius: 999px;
	background: var(--avanti-akzent);
	color: #fff;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

.avanti-knopf:hover {
	filter: brightness(0.92);
}

.avanti-anfrage {
	max-width: 640px;
	margin: 1.5rem 0 2.5rem;
}

.avanti-hinweis {
	padding: 0.85rem 1.1rem;
	border-radius: 8px;
	margin: 0 0 1rem;
}

.avanti-hinweis ul {
	margin: 0;
	padding-left: 1.2rem;
}

.avanti-hinweis--ok {
	background: rgba(46, 160, 67, 0.12);
	border: 1px solid rgba(46, 160, 67, 0.4);
}

.avanti-hinweis--fehler {
	background: rgba(228, 87, 46, 0.1);
	border: 1px solid rgba(228, 87, 46, 0.45);
}

.avanti-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.avanti-angebote {
	margin-bottom: 2rem;
}

.avanti-leer {
	opacity: 0.75;
	font-style: italic;
}

.avanti-zurueck {
	margin-top: 2.5rem;
}

@media (max-width: 560px) {
	.avanti-event {
		flex-direction: column;
		gap: 0.75rem;
	}

	.avanti-details div {
		grid-template-columns: 1fr;
		gap: 0.15rem;
	}
}
