/* ==========================================================================
   Immenverein Core – Basis-Styles für Plugin-Ausgaben.
   Das Immenverein-Theme verfeinert diese Darstellung; diese Datei stellt
   sicher, dass alles auch mit anderen Themes ordentlich aussieht.
   ========================================================================== */

/* Icon-Grundgröße – gilt für ALLE Stile (nicht nur „Schwarm") */
.iv-ic { display: inline-block; vertical-align: -0.18em; width: 1.15em; height: 1.15em; flex: none; }

/* Hero-Karte "Nächstes Treffen" */
.iv-hero-treffen-wrap { position: relative; padding-top: 26px; }
.iv-hero-treffen { padding: 28px; position: relative; }
.iv-hero-treffen .iv-hc-label {
	font-size: 12px; font-weight: 700; letter-spacing: .12em;
	text-transform: uppercase; color: #D97706; margin-bottom: 10px;
}
.iv-hero-treffen h3 { font-size: 22px; margin: 0 0 14px; }
.iv-hero-treffen h3 a { color: inherit; text-decoration: none; }
.iv-hero-treffen .iv-hc-row {
	display: flex; align-items: center; gap: 10px; padding: 10px 0;
	border-top: 1px solid rgba(36, 28, 21, .07); font-size: 15px; color: #5C5247;
}
.iv-hc-date {
	background: #F5EBD8; border-radius: 14px; padding: 12px 18px; text-align: center;
	position: absolute; top: 0; right: 26px; z-index: 3;
	box-shadow: 0 10px 30px -12px rgba(36, 28, 21, .18); border: 1px solid rgba(36, 28, 21, .06);
}
.iv-hc-date .iv-d { font-size: 30px; font-weight: 700; line-height: 1; }
.iv-hc-date .iv-m { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #D97706; }

/* Fallbacks, falls das Immenverein-Theme nicht aktiv ist */
.iv-card { background: #fff; border-radius: 20px; box-shadow: 0 10px 30px -12px rgba(36, 28, 21, .18); }
.iv-treffen-liste { display: grid; gap: 16px; }
.iv-treffen { background: #fff; border-radius: 16px; padding: 20px 22px; display: flex; gap: 20px; align-items: center; box-shadow: 0 10px 30px -12px rgba(36, 28, 21, .12); }
.iv-treffen-datum { flex: none; width: 66px; text-align: center; background: #F5EBD8; border-radius: 12px; padding: 10px 6px; }
.iv-treffen-datum .iv-d { font-size: 24px; font-weight: 700; line-height: 1.1; }
.iv-treffen-datum .iv-m { font-size: 11px; font-weight: 700; text-transform: uppercase; color: #D97706; letter-spacing: .08em; }
.iv-treffen h3 { margin: 0 0 3px; font-size: 17.5px; }
.iv-treffen p { margin: 0; font-size: 14px; color: #5C5247; }

.iv-treffen-details { display: flex; gap: 24px; flex-wrap: wrap; margin: 8px 0 20px; color: #5C5247; }

.iv-map-wrap { border-radius: 20px; overflow: hidden; min-height: 420px; position: relative; background: #F5EBD8; box-shadow: 0 24px 60px -20px rgba(36, 28, 21, .28); }
.iv-map { position: absolute; inset: 0; z-index: 1; }
.iv-map-consent { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; text-align: center; padding: 32px; background: #F5EBD8; }
.iv-map-consent p { max-width: 380px; color: #5C5247; font-size: 14.5px; }
.iv-map-consent button { background: #241C15; color: #fff; border: 0; cursor: pointer; border-radius: 999px; padding: 12px 24px; font-weight: 600; font-size: 15px; }
@media (max-width: 920px) { .iv-map-wrap { min-height: 340px; } }

/* ==========================================================================
   Schulungen – Übersichtskarten, Detailseite mit Buchungskarte
   (Layout nach dem Vorbild moderner Buchungsseiten)
   ========================================================================== */

/* ---------- Übersicht ---------- */

.iv-schulungen { display: grid; gap: 24px; }
.iv-schulung-karte { overflow: hidden; display: flex; border-radius: 20px; }
.iv-schulung-bild { flex: 0 0 300px; position: relative; }
.iv-schulung-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iv-schulung-inhalt { padding: 28px 30px; }
.iv-schulung-inhalt h3 { margin: 0 0 10px; font-size: 22px; }
.iv-schulung-inhalt h3 a { color: inherit; text-decoration: none; }
.iv-schulung-meta { color: #5C5247; font-size: 14.5px; display: flex; flex-wrap: wrap; gap: 16px; margin: 0 0 10px; }
.iv-schulung-meta .iv-ic { color: #D97706; }
.iv-schulung-meta .iv-sm { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.iv-schulung-mehr { font-weight: 700; text-decoration: none; white-space: nowrap; }
.iv-badge { display: inline-block; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 5px 13px; border-radius: 999px; margin-right: 8px; }
.iv-badge-gruen { background: rgba(63, 98, 18, .13); color: #3F6212; }
.iv-badge-grau { background: rgba(36, 28, 21, .1); color: #5C5247; }
@media (max-width: 760px) { .iv-schulung-karte { flex-direction: column; } .iv-schulung-bild { flex: none; max-height: 220px; } }

/* ---------- Fakten-Chips unter dem Titel ---------- */

.iv-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 26px; }
.iv-chip {
	display: inline-flex; align-items: center; gap: 7px;
	background: #fff; border: 1.5px solid rgba(36, 28, 21, .1);
	border-radius: 999px; padding: 8px 16px;
	font-size: 14px; font-weight: 600; color: #241C15;
}
.iv-chip .iv-ic { color: #D97706; }

/* ---------- Zweispalten-Layout mit Buchungskarte ---------- */

.iv-sch-wrap { container-type: inline-size; }
.iv-sch-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
.iv-sch-ohne-seite { grid-template-columns: minmax(0, 1fr); }
.iv-sch-seite { position: sticky; top: 96px; }
/* Bei schmalem Inhaltsbereich (schmale Themes, Tablets, Handys): einspaltig,
   Buchungskarte nach oben. */
@container (max-width: 860px) {
	.iv-sch-layout { grid-template-columns: 1fr; gap: 24px; }
	.iv-sch-seite { position: static; order: -1; }
}
@media (max-width: 920px) {
	.iv-sch-layout { grid-template-columns: 1fr; gap: 24px; }
	.iv-sch-seite { position: static; order: -1; }
}

.iv-buch-karte { padding: 26px 26px 22px; border-radius: 18px; }
.iv-buch-preis { font-size: 34px; font-weight: 800; line-height: 1.1; }
.iv-buch-preis-sub { color: #5C5247; font-size: 14px; margin-top: 4px; }
.iv-buch-zeile {
	display: flex; gap: 10px; align-items: flex-start;
	border-top: 1px solid rgba(36, 28, 21, .08);
	padding: 13px 0; margin-top: 13px; font-size: 14.5px; color: #5C5247;
}
.iv-buch-preis + .iv-buch-zeile, .iv-buch-preis-sub + .iv-buch-zeile { margin-top: 16px; }
.iv-buch-zeile .iv-ic { color: #D97706; margin-top: 2px; }
.iv-buch-zeile strong { color: #241C15; }
.iv-buch-plaetze { border-top: 1px solid rgba(36, 28, 21, .08); padding: 14px 0 2px; margin-top: 13px; }
.iv-buch-balken { height: 8px; border-radius: 999px; background: rgba(36, 28, 21, .08); overflow: hidden; }
.iv-buch-balken span { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #FBBF24, #D97706); }
.iv-buch-plaetze-text { font-size: 13.5px; color: #5C5247; margin-top: 7px; }
.iv-buch-cta {
	display: block; text-align: center; margin-top: 16px;
	background: #EFA00B; color: #241C15 !important; text-decoration: none;
	font-weight: 800; font-size: 16.5px; padding: 15px 20px; border-radius: 999px;
	box-shadow: 0 12px 28px -10px rgba(217, 119, 6, .55);
	transition: transform .15s ease;
}
.iv-buch-cta:hover { transform: translateY(-2px); }
.iv-buch-hinweis { font-size: 12.5px; color: #8a7f70; margin-top: 11px; text-align: center; line-height: 1.5; }
.iv-buch-zu { margin-top: 14px; background: rgba(36, 28, 21, .07); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 14px; text-align: center; }

/* ---------- Detail-Inhalte ---------- */

.iv-sch-h2 { margin: 34px 0 14px; font-size: 23px; }
.iv-sch-termine { display: grid; gap: 12px; }
.iv-sch-termin {
	display: flex; gap: 16px; align-items: center;
	background: #fff; border: 1px solid rgba(36, 28, 21, .08);
	border-radius: 14px; padding: 12px 16px;
}
.iv-sch-termin span { color: #5C5247; font-size: 14px; }

ul.iv-sch-haken { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
ul.iv-sch-haken li { position: relative; padding-left: 32px; }
ul.iv-sch-haken li::before {
	content: "✓"; position: absolute; left: 0; top: 0;
	width: 22px; height: 22px; border-radius: 50%;
	background: rgba(63, 98, 18, .12); color: #3F6212;
	display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
ul.iv-sch-haken-tasche li::before { content: "•"; background: rgba(217, 119, 6, .13); color: #B45309; font-size: 18px; }

.iv-sch-zeilen { margin-top: 30px; border-top: 1px solid rgba(36, 28, 21, .1); }
.iv-sch-zeile {
	display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 18px;
	padding: 15px 0; border-bottom: 1px solid rgba(36, 28, 21, .08);
}
.iv-sch-zeile-label { font-weight: 700; font-size: 14px; color: #241C15; }
@media (max-width: 560px) { .iv-sch-zeile { grid-template-columns: 1fr; gap: 4px; } }

.iv-sch-anmeldung { margin-top: 40px; }
.iv-sch-anmeldung h2 { margin-bottom: 14px; }

/* ---------- Fallbacks, falls ein fremdes Theme aktiv ist ---------- */

.iv-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; overflow: hidden; }
.iv-form:not([data-themed]) .iv-field { margin-bottom: 16px; }
.iv-form label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.iv-form input[type="text"], .iv-form input[type="email"], .iv-form input[type="password"],
.iv-form select, .iv-form textarea {
	width: 100%; max-width: 560px; box-sizing: border-box;
	padding: 12px 15px; border-radius: 11px;
	border: 1.5px solid rgba(36, 28, 21, .14); background: #FBF6EC; font-size: 15px;
}
.iv-form input:focus, .iv-form select:focus, .iv-form textarea:focus { outline: none; border-color: #EFA00B; }
.iv-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: #5C5247; margin: 18px 0; max-width: 560px; }
.iv-consent input { width: auto; margin-top: 3px; accent-color: #D97706; }
.iv-submit {
	border: 0; cursor: pointer; border-radius: 999px; padding: 14px 30px;
	background: #241C15; color: #fff; font-weight: 700; font-size: 16px;
}
.iv-msg-ok, .iv-msg-err { border-radius: 12px; padding: 14px 18px; font-weight: 600; font-size: 14.5px; margin: 16px 0; max-width: 640px; }
.iv-msg-ok { background: rgba(63, 98, 18, .1); color: #3F6212; }
.iv-msg-err { background: rgba(180, 30, 30, .08); color: #a03030; }
