/**
 * gw-events Frontend-Styles.
 *
 * Bewusst schlank und theme-neutral (erbt Schrift/Farben vom aktiven Theme,
 * z. B. Avada). Nur Layout/Abstände, keine aggressiven Resets.
 */

/* --- Single-Event-Seite: Titel-Umbruch + Zurück-Link ------------------------
   Avadas h1 (~48–64px) bricht lange Wörter (z. B. „Electronicmusicfestival")
   sonst über den rechten Rand. */
.single-gw_event h1 {
	overflow-wrap: break-word;
	hyphens: auto;
}

@media (max-width: 640px) {
	.single-gw_event h1 {
		font-size: 2rem !important;
		line-height: 1.2 !important;
	}
}

/* Avadas publikationsdatum-basierte Vor/Zurück-Navigation auf Event-Singles
   ausblenden — sie verlinkt nach Beitragsdatum (nicht nach Veranstaltungsdatum)
   und ist hier irreführend. Wir bieten stattdessen „← Zurück zur Übersicht". */
.single-gw_event .single-navigation {
	display: none;
}

/* Doppeltes Beitragsbild vermeiden: Avada rendert das Beitragsbild auf Singles
   automatisch oben als Post-Slideshow. Den verbindlichen, bildrechte-geprüften
   (ADR-011) Bild-Output liefert aber unser Detailblock (.gw-event .gw-event-image)
   unter dem Titel. Avadas automatische Slideshow auf Event-Singles daher ausblenden
   → genau EIN Bild (bzw. keines, wenn die Rechte abgelehnt sind). */
.single-gw_event .fusion-post-slideshow {
	display: none;
}

.gw-event-back {
	margin: 0 0 1.25em;
	font-size: 0.95em;
	font-weight: 600;
}

.gw-event-back a {
	color: var(--awb-color5, #01708e);
	text-decoration: none;
}

.gw-event-back a:hover,
.gw-event-back a:focus {
	text-decoration: underline;
}

.gw-event-details {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 0.4em 1.2em;
	margin: 0 0 1.5em;
	padding: 1.2em 1.4em;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 6px;
	background: rgba(0, 0, 0, 0.02);
}

.gw-event-details dt {
	font-weight: 600;
	opacity: 0.7;
	margin: 0;
}

.gw-event-details dd {
	margin: 0;
}

.gw-event-date {
	font-variant-numeric: tabular-nums;
}

.gw-event-image {
	display: block;
	width: 100%;
	height: auto;
	margin: 0 0 1.5em;
	border-radius: 6px;
}

/* Werbe-Kennzeichnung — bewusst deutlich sichtbar (Pflicht-Label). */
.gw-event-ad-label {
	display: inline-block;
	margin: 0 0 1em;
	padding: 0.2em 0.7em;
	font-size: 0.75em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5a3e00;
	background: #ffe08a;
	border-radius: 3px;
}

/* Redaktionelle Empfehlung — neutral, auf meinSeenland-CI (Brand-Petrol auf
   heller Petrol-Fläche), klar von der gelben Werbe-Kennzeichnung getrennt. */
.gw-event-featured-badge {
	display: inline-block;
	margin: 0 0 1em;
	padding: 0.2em 0.7em;
	font-size: 0.75em;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--primary_color, #17415f);
	background: #dbe7ef;
	border-radius: 2px;
}

.gw-event-card .gw-event-featured-badge {
	align-self: flex-start;
	margin: 0;
}

.gw-event-ical {
	margin: 1.2em 0 0;
	font-size: 0.9em;
}

.gw-event-map {
	margin: 1.5em 0;
}

.gw-event-map iframe {
	display: block;
	width: 100%;
	height: 320px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 6px;
}

.gw-event-map-link {
	display: inline-block;
	margin-top: 0.5em;
	font-size: 0.85em;
}

/* --- Listen / Shortcode --- */

.gw-events-list {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 1.5em;
	margin: 1.5em 0;
	padding: 0;
	list-style: none;
}

.gw-event-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(0, 0, 0, 0.1);
	border-radius: 8px;
	background: #fff;
	transition: box-shadow 0.18s ease;
}

.gw-event-card:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

.gw-event-card-thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.gw-event-card-thumb .gw-event-image {
	width: 100%;
	height: 100%;
	margin: 0;
	border-radius: 0;
	object-fit: cover;
}

.gw-event-card-body {
	display: flex;
	flex-direction: column;
	gap: 0.4em;
	padding: 1em 1.2em 1.3em;
}

.gw-event-card-title {
	margin: 0;
	font-size: 1.15em;
	line-height: 1.3;
}

.gw-event-card-meta {
	display: flex;
	flex-direction: column;
	gap: 0.15em;
	font-size: 0.9em;
	opacity: 0.8;
}

.gw-event-card .gw-event-ad-label {
	align-self: flex-start;
	margin: 0;
}

.gw-events-empty {
	margin: 1.5em 0;
	opacity: 0.7;
	font-style: italic;
}

/* --- Einreichungs-Formular --- */

.gw-event-form {
	max-width: 640px;
	margin: 1.5em 0;
}

.gw-field {
	display: flex;
	flex-direction: column;
	gap: 0.3em;
	margin: 0 0 1.1em;
}

.gw-field label {
	font-weight: 600;
}

.gw-field input,
.gw-field select,
.gw-field textarea {
	width: 100%;
	padding: 0.55em 0.7em;
	border: 1px solid rgba(0, 0, 0, 0.2);
	border-radius: 5px;
	font: inherit;
}

.gw-field button {
	align-self: flex-start;
	padding: 0.7em 1.6em;
	font: inherit;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	cursor: pointer;
	border: 0;
	border-radius: 2px;
	color: #fff;
	background: var(--awb-color5, #01708e);
}

.gw-field button:hover {
	background: #015f78;
}

.gw-required {
	color: #c0392b;
}

.gw-form-note {
	font-size: 0.85em;
	opacity: 0.7;
}

/* Honeypot — visuell und für AT entfernt, aber im DOM vorhanden. */
.gw-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gw-form-success,
.gw-form-error {
	margin: 0 0 1.5em;
	padding: 0.9em 1.2em;
	border-radius: 6px;
}

.gw-form-success {
	color: #14532d;
	background: #d6f5e0;
	border: 1px solid #9ad9b4;
}

.gw-form-error {
	color: #7a1f1f;
	background: #fde2e2;
	border: 1px solid #f0a8a8;
}

/* Veranstalter-Stammdaten als abgesetzter Block. */
.gw-organizer {
	margin: 0 0 1.1em;
	padding: 0.7em 1em 0.1em;
	border: 1px solid rgba(0, 0, 0, 0.15);
	border-radius: 6px;
}

.gw-organizer legend {
	padding: 0 0.4em;
	font-weight: 700;
	font-size: 0.95em;
}

/* Checkbox-Felder: Box inline neben dem Text statt volle Breite. */
.gw-field-check label {
	display: flex;
	gap: 0.5em;
	align-items: flex-start;
	font-weight: 400;
}

.gw-field-check input[type="checkbox"] {
	width: auto;
	margin-top: 0.2em;
	flex: 0 0 auto;
}
