/* SchwarzMärkte – Frontend (Variablen können im Theme überschrieben werden) */
.sm, .sm-modal {
	--sm-bg: #f1f1f1;
	--sm-card: #fff;
	--sm-text: #1b1b1b;
	--sm-muted: #666;
	--sm-dark: #111;
	--sm-line: #d9d9d9;
	--sm-accent: #ffd800;
	--sm-flohmarkt: #b9d6ee;
	--sm-flohmarkt-text: #17374f;
	--sm-nacht: #111;
	--sm-nacht-text: #fff;
	--sm-sonstig: #ffe066;
	--sm-sonstig-text: #3a2e00;
	--sm-red: #c0262d;
	--sm-orange: #d97a00;
	color: var(--sm-text);
	line-height: 1.5;
	box-sizing: border-box;
}
.sm *, .sm *::before, .sm *::after { box-sizing: inherit; }
.sm [hidden] { display: none !important; }
.sm a { color: inherit; }
.sm .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Buttons */
.sm-btn, .sm-tb-btn {
	display: inline-block; cursor: pointer; font: inherit; font-size: 14px; font-weight: 600;
	padding: 8px 14px; border: 1px solid var(--sm-dark); border-radius: 3px;
	background: var(--sm-card); color: var(--sm-dark); text-decoration: none; line-height: 1.2;
}
.sm-btn:hover, .sm-tb-btn:hover { background: var(--sm-dark); color: #fff; }
.sm-btn-primary { background: var(--sm-dark); color: #fff; }
.sm-btn-primary:hover { background: #333; }
.sm-btn:disabled { opacity: .6; cursor: wait; }

/* Badges */
.sm-badge {
	display: inline-block; font-size: 12.5px; font-weight: 700; line-height: 1; padding: 5px 10px;
	border-radius: 3px; background: var(--sm-sonstig); color: var(--sm-sonstig-text); margin-right: 6px;
}
.sm-badge-flohmarkt { background: var(--sm-flohmarkt); color: var(--sm-flohmarkt-text); }
.sm-badge-nachtflohmarkt { background: var(--sm-nacht); color: var(--sm-nacht-text); }
.sm-badge-abgesagt, .sm-badge-ausgebucht {
	display: block; align-self: stretch !important; width: 100%; margin: 0 0 7px !important; padding: 8px 10px;
	background: var(--sm-red); color: #fff; border-radius: 4px; text-align: center;
	font-size: 16px; font-weight: 900; letter-spacing: 2px; line-height: 1.1; text-transform: uppercase;
}
.sm-badge-abgesagt { background: #7a1015; text-decoration: none; }
.sm-item-ausgebucht { background: #fff1f1; }
.sm-item-abgesagt { background: #f3f3f3; }
.sm-item-abgesagt .sm-thumb { filter: grayscale(1); opacity: .6; }

/* ------------------------------------------------ Kalender / Liste */
.sm-browser { background: transparent; padding: 0; }
.sm-browser-titel { text-align: center; margin: 0 0 12px; font-size: 22px; }
.sm-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.sm-search input {
	font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--sm-dark); border-radius: 3px; width: 160px; background: #fff;
}
.sm-monatnav { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.sm-monatlabel { min-width: 110px; text-align: center; font-weight: 600; font-size: 14px; }
.sm-views { display: inline-flex; gap: 0; }
.sm-views .sm-tb-btn { border-radius: 0; }
.sm-views .sm-tb-btn.is-active { background: var(--sm-dark); color: #fff; }
.sm-filter {
	display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--sm-card);
	border: 1px solid var(--sm-line); padding: 12px; margin-bottom: 8px; border-radius: 3px;
}
.sm-filter label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; gap: 3px; }
.sm-filter select, .sm-filter input[type="date"] { font: inherit; font-size: 14px; padding: 6px; border: 1px solid #999; border-radius: 3px; }
.sm-filter .sm-check { flex-direction: row; align-items: center; font-weight: 400; gap: 6px; }
.sm-merkmale { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.sm-merkmale legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 3px; }

.sm-leiste-wrap { display: flex; align-items: stretch; margin-bottom: 8px; background: #fff; border: 1px solid var(--sm-line); }
.sm-leiste-pfeil { border: 0; background: #fff; cursor: pointer; font-size: 22px; width: 28px; color: var(--sm-dark); }
.sm-leiste-pfeil:hover { background: var(--sm-dark); color: #fff; }
.sm-leiste { display: flex; flex: 1; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.sm-leiste::-webkit-scrollbar { display: none; }
.sm-tag {
	flex: 0 0 44px; border: 0; border-right: 1px solid var(--sm-line); background: #fff; padding: 6px 0 7px;
	cursor: pointer; font: inherit; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 1px; position: relative;
}
.sm-tag small { font-size: 10px; color: var(--sm-muted); }
.sm-tag b { font-size: 15px; }
.sm-tag.hat::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 3px; background: var(--sm-accent); }
.sm-tag:hover { background: #eee; }
.sm-tag.aktiv { background: var(--sm-dark); color: #fff; }
.sm-tag.aktiv small { color: #ddd; }
.sm-leiste-monat {
	flex: 0 0 50px; background: var(--sm-dark); color: #fff; display: flex; flex-direction: column;
	align-items: center; justify-content: center; font-size: 10px;
}
.sm-leiste-monat b { font-size: 14px; }

.sm-month { margin: 16px 0 8px; padding: 8px 12px; background: #dcdcdc; font-size: 17px; font-weight: 700; }
.sm-liste .sm-month:first-child { margin-top: 0; }
.sm-leer { text-align: center; color: var(--sm-muted); padding: 16px 0; }

.sm-item {
	display: flex; align-items: stretch; background: var(--sm-card); border: 1px solid var(--sm-line);
	border-radius: 3px; margin-bottom: 6px;
}
.sm-item-link { flex: 1; display: flex; gap: 10px; padding: 8px; text-decoration: none; min-width: 0; }
.sm-item-link:hover .sm-item-title { text-decoration: underline; }
.sm-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; flex: 0 0 56px; }
.sm-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 15px; }
.sm-item-body .sm-badge { align-self: flex-start; margin: 0 0 5px; }
.sm-item-sub { font-size: 15.5px; font-weight: 600; color: var(--sm-text); }
.sm-item-time, .sm-item-ort { display: flex; align-items: center; gap: 5px; }
.sm-mini { flex: 0 0 16px; width: 16px; height: 16px; opacity: .75; }
.sm-item-ausgebucht { border-left: 4px solid var(--sm-red); }
.sm-item-ausgebucht .sm-item-title { color: var(--sm-red); }
.sm-banner-ausgebucht { background: var(--sm-red); color: #fff; }
.sm-item-title { font-size: 18px; line-height: 1.25; font-weight: 700; }
.sm-item-time, .sm-item-ort, .sm-item-zusatz { color: var(--sm-muted); }
.sm-item-abgesagt .sm-item-title { text-decoration: line-through; }
.sm-item-actions { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px 0 0; position: relative; }
.sm-bell { text-decoration: none; font-size: 15px; line-height: 1.3; }
.sm-plus { position: relative; }
.sm-plus summary {
	list-style: none; cursor: pointer; font-weight: 700; font-size: 18px; line-height: 1; padding: 0 3px; user-select: none;
}
.sm-plus summary::-webkit-details-marker { display: none; }
.sm-plus-label summary {
	font-size: 14px; padding: 8px 14px; border: 1px solid var(--sm-dark); border-radius: 3px; background: var(--sm-card); font-weight: 600;
}
.sm-plus-menu {
	position: absolute; right: 0; top: 100%; z-index: 20; min-width: 230px; background: #fff; border: 1px solid var(--sm-dark);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2); display: flex; flex-direction: column;
}
.sm-plus-label .sm-plus-menu { left: 0; right: auto; }
.sm-plus-menu a { padding: 9px 12px; text-decoration: none; font-size: 14px; border-bottom: 1px solid var(--sm-line); }
.sm-plus-menu a:last-child { border-bottom: 0; }
.sm-plus-menu a:hover { background: var(--sm-accent); }

/* Monatsansicht */
.sm-monat-titel { text-align: center; margin: 6px 0 10px; }
.sm-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--sm-line); border: 1px solid var(--sm-line); }
.sm-grid-kopf { background: var(--sm-dark); color: #fff; text-align: center; padding: 5px 0; font-size: 12px; font-weight: 700; }
.sm-grid-zelle { background: #fff; min-height: 84px; padding: 3px; font-size: 11px; overflow: hidden; }
.sm-grid-zelle.leer { background: #f7f7f7; }
.sm-grid-nr { display: block; font-weight: 700; color: var(--sm-muted); margin-bottom: 2px; }
.sm-grid-zelle.hat .sm-grid-nr { color: var(--sm-dark); }
.sm-grid-ev {
	display: block; text-decoration: none; padding: 2px 4px; margin-bottom: 2px; border-radius: 2px; line-height: 1.2;
	background: var(--sm-sonstig); color: var(--sm-sonstig-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.sm-grid-ev.sm-kat-flohmarkt { background: var(--sm-flohmarkt); color: var(--sm-flohmarkt-text); }
.sm-grid-ev.sm-kat-nachtflohmarkt { background: var(--sm-nacht); color: var(--sm-nacht-text); }

/* ------------------------------------------------ Einzelseiten */
.sm-single, .sm-ort { max-width: 860px; margin: 0 auto; }
.sm-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; padding: 14px 18px; margin: 0 0 16px; color: #fff; }
.sm-banner strong { font-size: 30px; letter-spacing: .1em; line-height: 1.1; }
.sm-banner a { color: #fff; }
.sm-banner-abgelaufen { background: var(--sm-red); }
.sm-banner-abgesagt { background: #7a1015; color: #fff; }
.sm-head { display: flex; gap: 14px; align-items: center; background: var(--sm-bg); padding: 12px; border: 1px solid var(--sm-line); margin-bottom: 14px; }
.sm-head-img { width: 90px; height: 90px; object-fit: cover; border-radius: 3px; flex: 0 0 90px; }
.sm-subtitle { margin: 6px 0 4px; font-weight: 700; font-size: 17px; }
.sm-meta { margin: 0; display: flex; flex-direction: column; gap: 2px; font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--sm-text); }
.sm-meta .sm-meta-ort { font-size: 15px; }
.sm-zeit-abgelaufen .sm-head, .sm-zeit-abgelaufen .sm-countdown { opacity: .65; }

.sm-countdown { text-align: center; margin: 0 0 18px; }
.sm-cd-state { display: inline-flex; margin-bottom: 12px; }
.sm-cd-s { font-size: 19px; font-weight: 800; letter-spacing: 2px; padding: 6px 16px; background: #ddd; color: #888; }
.sm-cd-s { display: none; }
.sm-countdown[data-state="start"] .sm-cd-s-start, .sm-countdown[data-state="laeuft"] .sm-cd-s-laeuft, .sm-countdown[data-state="ende"] .sm-cd-s-ende { display: block; }
.sm-countdown[data-state="start"] .sm-cd-s-start { background: #2e9b4f; color: #fff; }
.sm-countdown[data-state="laeuft"] .sm-cd-s-laeuft { background: #2e9b4f; color: #fff; }
.sm-countdown[data-state="ende"] .sm-cd-s-ende { background: var(--sm-red); color: #fff; }
.sm-cd-zahlen { display: flex; justify-content: center; gap: 22px; }
.sm-cd-zahlen div { display: flex; flex-direction: column; min-width: 54px; }
.sm-cd-zahlen b { font-size: 34px; line-height: 1.1; }
.sm-cd-zahlen small { font-size: 13px; color: var(--sm-muted); }

.sm-h { font-size: 22px; font-weight: 700; margin: 18px 0 8px; }
.sm-h3 { font-size: 16px; font-weight: 700; margin: 16px 0 4px; }
.sm-info-text p { margin: 0 0 10px; }
.sm-adresse { background: #e6e6e6; padding: 14px 16px; margin: 20px 0; }
.sm-adresse .sm-h { margin-top: 0; font-size: 16px; }
.sm-adresse dl { display: grid; grid-template-columns: 110px 1fr; gap: 3px 10px; margin: 0 0 12px; font-size: 14px; }
.sm-adresse dt { color: var(--sm-muted); }
.sm-adresse dd { margin: 0; font-weight: 600; }
.sm-route { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.sm-route label { width: 100%; font-weight: 700; font-size: 13px; }
.sm-route input[type="text"] { flex: 1; min-width: 180px; font: inherit; padding: 8px; border: 1px solid #999; border-radius: 3px; }

.sm-files { padding-left: 20px; }
.sm-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 8px 0; }
.sm-gallery img { width: 100%; height: 130px; object-fit: cover; border-radius: 3px; display: block; }
.sm-media { margin: 10px 0; }
.sm-media audio, .sm-media video { width: 100%; max-width: 100%; display: block; }
.sm-media figcaption { font-size: 13px; font-weight: 600; margin-bottom: 4px; }

.sm-aktionen { margin: 22px 0; }
.sm-share { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 14px; }
.sm-share-label { font-weight: 700; font-size: 13px; }
.sm-share-btn {
	display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px;
	font: inherit; font-size: 12px; font-weight: 700; border: 0; border-radius: 50%; cursor: pointer;
	color: #fff; background: #444; text-decoration: none; line-height: 1;
}
.sm .sm-share-btn, .sm .sm-share-btn:hover { color: #fff; }
.sm-share-btn:hover { filter: brightness(1.15); }
.sm-share-btn.sm-copied { border-radius: 19px; }
.sm-share-btn .sm-ico { display: block; }
.sm-share-btn[hidden] { display: none; }
.sm-share-facebook { background: #1877f2; } .sm-share-whatsapp { background: #25a244; } .sm-share-x { background: #111; }
.sm-share-telegram { background: #229ed9; } .sm-share-linkedin { background: #0a66c2; } .sm-share-pinterest { background: #c8232c; }
.sm-share-reddit { background: #ff4500; } .sm-share-e-mail { background: #666; }
.sm-aktionen-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.sm-abo { border: 1px solid var(--sm-line); padding: 10px 14px; background: #fafafa; }
.sm-abo summary { cursor: pointer; font-weight: 700; }
.sm-veranstalter { border-top: 2px solid var(--sm-dark); margin-top: 24px; padding-top: 4px; font-size: 14px; }

.sm-naechste .sm-liste, .sm-liste { margin-top: 6px; }

/* ------------------------------------------------ Formulare */
.sm-form { background: var(--sm-card); padding: 14px; border: 1px solid var(--sm-line); }
.sm-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.sm-form legend { font-weight: 700; padding: 0; margin-bottom: 6px; }
.sm-field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 10px; flex: 1; min-width: 150px; }
.sm-field > span:not(.sm-input) { font-size: 13px; font-weight: 600; }
.sm-field input, .sm-field textarea, .sm-field select {
	font: inherit; font-size: 15px; padding: 8px; border: 1px solid #999; border-radius: 3px; width: 100%; background: #fff;
}
.sm-zeile { display: flex; flex-wrap: wrap; gap: 0 12px; }
.sm-check, .sm-radio { display: flex; align-items: flex-start; gap: 8px; margin: 6px 0; font-size: 14px; }
.sm-check input, .sm-radio input { margin-top: 4px; }
.sm-maerkte-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 14px; }
.sm-markt-detail { background: var(--sm-bg); padding: 12px; margin: 10px 0; border-left: 4px solid var(--sm-dark); }
.sm-markt-detail h3 { margin: 0 0 4px; font-size: 16px; }
.sm-markt-detail p, .sm-markt-detail .sm-detail-info { margin: 0 0 6px; font-size: 14px; line-height: 1.5; }
.sm-markt-detail .sm-detail-summe { font-size: 14px; }
.sm-detail-summe, .sm-gesamt { font-weight: 700; margin: 4px 0 0; }
.sm-hinweis { background: #fff8d6; padding: 8px 10px; font-size: 14px; }
.sm-msg { margin-top: 10px; font-weight: 600; }
.sm-msg-ok { color: #1c7a3b; }
.sm-msg-fehler { color: var(--sm-red); }
.sm-ergebnis { background: #e9f7ee; border: 1px solid #1c7a3b; padding: 16px; }
.sm-buchungs-id { font-size: 18px; font-weight: 700; }
.sm-zahlung { white-space: pre-wrap; background: #fff; padding: 10px; border: 1px dashed #666; font-family: inherit; }
.sm-orte-liste { list-style: none; margin: 0; padding: 0; columns: 2 240px; }
.sm-orte-liste li { margin-bottom: 6px; break-inside: avoid; }
.sm-orte-liste a { text-decoration: none; }
.sm-orte-liste a:hover strong { text-decoration: underline; }
.sm-orte-liste span { color: var(--sm-muted); font-size: 13px; }

@media (max-width: 640px) {
	.sm-monatnav { margin-left: 0; }
	.sm-search input { width: 120px; }
	.sm-head { flex-direction: column; align-items: flex-start; }
	.sm-grid-zelle { min-height: 60px; font-size: 10px; }
	.sm-cd-zahlen { gap: 12px; }
	.sm-cd-zahlen b { font-size: 26px; }
	.sm-adresse dl { grid-template-columns: 90px 1fr; }
}

/* Lightbox */
html.sm-modal-offen { overflow: hidden; }
.sm-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sm-modal[hidden] { display: none; }
.sm-modal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.sm-modal-win { position: relative; background: #fff; color: var(--sm-text); width: 100%; max-width: 860px; max-height: 100%; display: flex; flex-direction: column; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); outline: none; }
.sm-modal-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: var(--sm-dark); color: #fff; flex: 0 0 auto; }
.sm-modal-titel { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; font-size: 14px; }
.sm-modal-open { color: var(--sm-accent); font-size: 13px; white-space: nowrap; }
.sm-modal-x, .sm-modal-nav { background: transparent; border: 1px solid #555; color: #fff; width: 36px; height: 36px; font-size: 24px; line-height: 1; cursor: pointer; padding: 0; }
.sm-modal-x:hover, .sm-modal-nav:hover:not(:disabled) { background: var(--sm-accent); color: #000; border-color: var(--sm-accent); }
.sm-modal-nav:disabled { opacity: .35; cursor: default; }
.sm-modal-body { overflow-y: auto; background: #fff; padding: 14px; -webkit-overflow-scrolling: touch; }
.sm-modal-body.sm-laedt { opacity: .4; }
.sm-modal-body .sm-single { margin: 0; max-width: none; }
@media (max-width: 640px) {
	.sm-modal { padding: 0; }
	.sm-modal-win { max-height: none; height: 100%; }
	.sm-modal-open { display: none; }
}

/* Ort-Bausteine per Shortcode (Divi) und Widget */
.sm-ort-teil { max-width: none; }
.sm-naechste-liste .sm-mehr { text-align: center; margin: 10px 0 0; }
.sm-naechste-liste .sm-mehr .sm-btn { display: block; }
.sm-naechste-liste .sm-month { margin-top: 10px; }
.sm-naechste-liste .sm-item-actions { gap: 4px; padding-right: 8px; }
.sm-naechste-liste .sm-thumb { width: 38px; height: 38px; flex-basis: 38px; }

/* ------------------------------------------------ Anmeldeformular (modern) */
.sm-form-anmeldung { background: transparent; border: 0; padding: 0; }
.sm-form-anmeldung .sm-ico { flex: none; width: 20px; height: 20px; }
.sm-form-anmeldung .sm-card {
	background: var(--sm-card); border: 1px solid var(--sm-line); border-radius: 16px;
	padding: 22px 22px 14px; margin: 0 0 18px; min-width: 0; box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.sm-form-anmeldung .sm-card-head { float: left; display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; margin: 0 0 16px; }
.sm-form-anmeldung .sm-card-head ~ * { clear: both; }
.sm-step {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
	border-radius: 50%; background: var(--sm-dark); color: var(--sm-accent); font-size: 15px; font-weight: 700; line-height: 1;
}
.sm-card-titel { font-size: 18px; font-weight: 700; line-height: 1.3; }

/* Auswahl-Kacheln (Privat / Händler) */
.sm-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 8px; }
.sm-tile, .sm-chip { position: relative; display: block; cursor: pointer; margin: 0; }
.sm-tile input, .sm-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sm-tile-body {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center;
	padding: 20px 14px; border: 2px solid var(--sm-line); border-radius: 14px; background: #fafafa; min-height: 108px;
	transition: border-color .15s, background .15s, box-shadow .15s, transform .15s;
}
.sm-tile-body .sm-ico { width: 32px; height: 32px; margin-bottom: 4px; color: var(--sm-muted); }
.sm-tile-body strong { font-size: 16px; }
.sm-tile-body small { color: var(--sm-muted); font-size: 13px; }
.sm-tile:hover .sm-tile-body, .sm-chip:hover .sm-chip-body { border-color: #999; }
.sm-tile input:checked + .sm-tile-body { border-color: var(--sm-dark); background: #fffbe0; box-shadow: 0 0 0 3px var(--sm-accent); }
.sm-tile input:checked + .sm-tile-body .sm-ico { color: var(--sm-dark); }
.sm-tile input:focus-visible + .sm-tile-body, .sm-chip input:focus-visible + .sm-chip-body { outline: 3px solid #1a73e8; outline-offset: 2px; }

/* Markt-Auswahl */
.sm-form-anmeldung .sm-maerkte-liste { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.sm-chip-body {
	display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 2px solid var(--sm-line);
	border-radius: 12px; background: #fff; font-size: 15px; line-height: 1.3; transition: border-color .15s, background .15s;
}
.sm-chip-haken {
	flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px;
	border: 2px solid #bbb; border-radius: 7px; color: transparent; background: #fff; transition: all .15s;
}
.sm-chip-haken .sm-ico { width: 16px; height: 16px; stroke-width: 3; }
.sm-chip input:checked + .sm-chip-body { border-color: var(--sm-dark); background: #fffbe0; }
.sm-chip input:checked + .sm-chip-body .sm-chip-haken { background: var(--sm-dark); border-color: var(--sm-dark); color: var(--sm-accent); }

/* Detailkarte je Markt */
.sm-form-anmeldung .sm-markt-detail {
	background: #fafafa; border: 1px solid var(--sm-line); border-left: 5px solid var(--sm-accent);
	border-radius: 12px; padding: 16px 18px; margin: 14px 0 6px;
}
.sm-form-anmeldung .sm-markt-detail h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 17px; line-height: 1.3; }
.sm-detail-facts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.sm-form-anmeldung .sm-markt-detail .sm-detail-facts p { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 15px; }
.sm-detail-facts .sm-ico, .sm-detail-info > .sm-ico { color: var(--sm-muted); margin-top: 2px; }
.sm-form-anmeldung .sm-detail-info {
	display: flex; gap: 10px; background: #fff; border: 1px solid var(--sm-line); border-radius: 10px;
	padding: 10px 12px; margin: 0 0 12px; font-size: 14px;
}
.sm-detail-info > div > :last-child { margin-bottom: 0; }
.sm-form-anmeldung .sm-field-meter { max-width: 280px; margin-bottom: 8px; }
.sm-form-anmeldung .sm-markt-detail .sm-detail-summe {
	display: inline-block; margin: 4px 0 0; padding: 6px 12px; background: var(--sm-dark); color: #fff;
	border-radius: 999px; font-size: 15px; font-weight: 700;
}
.sm-form-anmeldung .sm-gesamt { margin: 4px 0 18px; padding: 14px 18px; background: var(--sm-accent); border-radius: 12px; font-size: 18px; }

/* Eingabefelder mit Icon */
.sm-form-anmeldung .sm-field { margin-bottom: 14px; }
.sm-form-anmeldung .sm-field > .sm-lbl { font-size: 13px; font-weight: 600; color: #333; }
.sm-input { position: relative; display: block; }
.sm-input > .sm-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #888; pointer-events: none; }
.sm-input-area > .sm-ico { top: 14px; transform: none; }
.sm-form-anmeldung .sm-input input, .sm-form-anmeldung .sm-input textarea {
	width: 100%; font: inherit; font-size: 16px; padding: 11px 12px 11px 40px; border: 1.5px solid #c8c8c8;
	border-radius: 10px; background: #fff; color: var(--sm-text); transition: border-color .15s, box-shadow .15s;
}
.sm-form-anmeldung .sm-input textarea { resize: vertical; min-height: 110px; }
.sm-form-anmeldung .sm-input input:hover, .sm-form-anmeldung .sm-input textarea:hover { border-color: #888; }
.sm-form-anmeldung .sm-input input:focus, .sm-form-anmeldung .sm-input textarea:focus {
	outline: 0; border-color: var(--sm-dark); box-shadow: 0 0 0 3px var(--sm-accent);
}
.sm-form-anmeldung .sm-input:focus-within > .sm-ico { color: var(--sm-dark); }
.sm-form-anmeldung .sm-input input:user-invalid { border-color: var(--sm-red); }
.sm-form-anmeldung .sm-zeile { gap: 0 16px; }

/* Einwilligungen */
.sm-form-anmeldung .sm-consent {
	align-items: flex-start; gap: 12px; padding: 12px 14px; margin: 0 0 10px; background: #fafafa;
	border: 1px solid var(--sm-line); border-radius: 12px; font-size: 14px; cursor: pointer;
}
.sm-form-anmeldung .sm-consent > input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--sm-dark); }
.sm-form-anmeldung .sm-consent > span { display: flex; gap: 10px; align-items: flex-start; }
.sm-form-anmeldung .sm-consent > span > .sm-ico { color: var(--sm-muted); margin-top: 1px; }
.sm-form-anmeldung .sm-consent:has(input:checked) { border-color: var(--sm-dark); background: #fffbe0; }
.sm-form-anmeldung .sm-hinweis { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; }

/* Absenden */
.sm-btn-lg {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 16px 24px;
	margin-top: 6px; font-size: 17px; border-radius: 12px; transition: background .15s, color .15s, transform .15s;
}
.sm-btn-lg .sm-ico { color: var(--sm-accent); width: 20px; height: 20px; }
.sm-btn-lg:hover { background: var(--sm-accent); color: var(--sm-dark); border-color: var(--sm-accent); }
.sm-btn-lg:hover .sm-ico { color: var(--sm-dark); }
.sm-form-anmeldung .sm-msg { margin: 12px 0 8px; }

@media (max-width: 640px) {
	.sm-form-anmeldung .sm-card { padding: 16px 14px 8px; border-radius: 14px; }
	.sm-card-titel { font-size: 16px; }
	.sm-tiles { grid-template-columns: 1fr; }
	.sm-tile-body { flex-direction: row; justify-content: flex-start; min-height: 0; padding: 14px; text-align: left; }
	.sm-tile-body .sm-ico { margin: 0 8px 0 0; }
	.sm-form-anmeldung .sm-zeile { display: block; }
}
@media (prefers-reduced-motion: reduce) { .sm-form-anmeldung * { transition: none !important; } }

/* Einheitliche Kachelgrößen im Anmeldeformular */
.sm-tiles { align-items: stretch; }
.sm-tile { display: flex; }
.sm-tile-body { flex: 1; width: 100%; min-height: 124px; }
.sm-form-anmeldung .sm-maerkte-liste { align-items: stretch; }
.sm-chip { display: flex; }
.sm-chip-body { flex: 1; width: 100%; min-height: 66px; }
.sm-chip-text {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
}
.sm-chip-text b { display: block; }
@media (max-width: 640px) { .sm-tile-body { min-height: 72px; } .sm-chip-body { min-height: 0; } }

/* Termin buchen (grün) */
.sm-btn-buchen, .sm .sm-btn-buchen { background: #2e9b4f; border-color: #2e9b4f; color: #fff; }
.sm-btn-buchen:hover, .sm .sm-btn-buchen:hover { background: #247c3f; border-color: #247c3f; color: #fff; }
.sm-aktionen-row .sm-btn, .sm-plus-label summary { font-size: 15px; padding: 10px 18px; }
@media (max-width: 640px) {
	.sm-cd-s { font-size: 17px; padding: 5px 12px; }
	.sm-meta { font-size: 16px; }
	.sm-item-title { font-size: 17px; }
}

/* Widget „Nächste Märkte“: Bild oben, Text darunter bündig links, kleinere Schrift */
.sm-naechste-liste .sm-item { position: relative; }
.sm-naechste-liste .sm-item-link { flex-direction: column; align-items: flex-start; gap: 6px; padding: 8px; }
.sm-naechste-liste .sm-thumb { width: 48px; height: 48px; flex: 0 0 48px; }
.sm-naechste-liste .sm-item-body { width: 100%; gap: 2px; font-size: 13px; }
.sm-naechste-liste .sm-item-title { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; hyphens: auto; }
.sm-naechste-liste .sm-item-sub { font-size: 12.5px; }
.sm-naechste-liste .sm-badge { font-size: 11px; padding: 4px 8px; }
.sm-naechste-liste .sm-badge-abgesagt, .sm-naechste-liste .sm-badge-ausgebucht { font-size: 12px; letter-spacing: 1px; padding: 6px 8px; }
.sm-naechste-liste .sm-item-time, .sm-naechste-liste .sm-item-ort { font-size: 12.5px; }
.sm-naechste-liste .sm-item-actions { position: absolute; top: 8px; right: 6px; padding: 0; }
.sm-naechste-liste .sm-month { font-size: 14px; padding: 6px 8px; }

/* Primäre Buttons: Schrift immer weiß (Theme-Linkfarben überschreiben sonst) */
.sm .sm-btn-primary:not(.sm-btn-lg), .sm .sm-btn-primary:not(.sm-btn-lg):hover, .sm .sm-btn-primary:not(.sm-btn-lg):visited { color: #fff; }
.sm .sm-btn-primary:not(.sm-btn-lg):hover { background: #333; }

/* Buttons einheitlich: schwarz, weiße Schrift, beim Darüberfahren gelbe Schrift (Route planen, mehr sehen, Absenden …) */
.sm .sm-btn:not(.sm-btn-buchen), .sm .sm-btn:not(.sm-btn-buchen):visited { background: var(--sm-dark); border-color: var(--sm-dark); color: #fff; }
.sm .sm-btn:not(.sm-btn-buchen):hover, .sm .sm-btn:not(.sm-btn-buchen):focus-visible { background: var(--sm-dark); border-color: var(--sm-dark); color: var(--sm-accent); }
.sm .sm-btn-lg:hover .sm-ico { color: var(--sm-accent); }

/* Buttons auch außerhalb von .sm-Containern (Widget, Ortsseite, Theme-Builder-Layouts): feste Farben */
a.sm-btn:not(.sm-btn-buchen), button.sm-btn:not(.sm-btn-buchen), a.sm-btn:not(.sm-btn-buchen):visited { background: #111; border: 1px solid #111; color: #fff; text-decoration: none; }
a.sm-btn:not(.sm-btn-buchen):hover, a.sm-btn:not(.sm-btn-buchen):focus-visible, button.sm-btn:not(.sm-btn-buchen):hover { background: #111; border-color: #111; color: #ffd800; }
a.sm-btn-buchen, a.sm-btn-buchen:visited, a.sm-btn-buchen:hover { color: #fff; text-decoration: none; }
a.sm-btn-buchen { background: #2e9b4f; border: 1px solid #2e9b4f; }
a.sm-btn-buchen:hover { background: #247c3f; border-color: #247c3f; }

/* Divi 5 setzt Linkfarben mit ID-Selektoren (#et-boc …): Button-Farben daher mit !important */
a.sm-btn:not(.sm-btn-buchen), a.sm-btn:not(.sm-btn-buchen):visited, button.sm-btn:not(.sm-btn-buchen) { color: #fff !important; }
a.sm-btn:not(.sm-btn-buchen):hover, a.sm-btn:not(.sm-btn-buchen):focus-visible, button.sm-btn:not(.sm-btn-buchen):hover { color: #ffd800 !important; }
a.sm-btn-buchen, a.sm-btn-buchen:visited, a.sm-btn-buchen:hover { color: #fff !important; }
a.sm-btn-lg:hover .sm-ico, button.sm-btn-lg:hover .sm-ico { color: #ffd800; }

/* Bilder-Lightbox */
.sm-gallery a.sm-gal-link { cursor: zoom-in; }
.sm-gallery a.sm-gal-link img { transition: opacity .15s; }
.sm-gallery a.sm-gal-link:hover img { opacity: .85; }
.sm-gal { position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center; padding: 56px 64px; }
.sm-gal[hidden] { display: none; }
.sm-gal-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .9); }
.sm-gal-fig { position: relative; margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.sm-gal-fig img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; display: block; background: #111; }
.sm-gal-fig figcaption { display: flex; gap: 14px; justify-content: center; margin-top: 10px; color: #fff; font-size: 15px; text-align: center; }
.sm-gal-cnt { color: #ffd800; font-weight: 700; }
.sm-gal-btn {
	position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5);
	background: rgba(0, 0, 0, .55); color: #fff; font-size: 32px; line-height: 1; cursor: pointer; padding: 0;
	display: flex; align-items: center; justify-content: center;
}
.sm-gal-btn:hover, .sm-gal-btn:focus-visible { background: #ffd800; color: #000; border-color: #ffd800; }
.sm-gal-x { top: 12px; right: 12px; }
.sm-gal-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.sm-gal-next { right: 10px; top: 50%; transform: translateY(-50%); }
.sm-gal-btn[hidden] { display: none; }
@media (max-width: 640px) { .sm-gal { padding: 56px 8px 24px; } .sm-gal-prev, .sm-gal-next { top: auto; bottom: 10px; transform: none; } .sm-gal-fig img { max-height: calc(100vh - 190px); } }

/* =====================================================================
   Modernes Design (ab 0.7.0)
   ===================================================================== */
.sm, .sm-modal { --sm-radius: 14px; --sm-shadow: 0 6px 22px rgba(0, 0, 0, .10); --sm-shadow-hover: 0 12px 30px rgba(0, 0, 0, .18); }

/* ---- Buttons */
.sm-btn, .sm-tb-btn, .sm-plus-label summary { border-radius: 10px; font-weight: 700; letter-spacing: .2px; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; }
a.sm-btn, button.sm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; box-shadow: 0 3px 10px rgba(0, 0, 0, .18); }
a.sm-btn:hover, button.sm-btn:hover, .sm-plus-label summary:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .25); }
a.sm-btn:active, button.sm-btn:active { transform: translateY(0); }
.sm-btn .sm-ico { width: 18px; height: 18px; flex: none; }
.sm-plus-label summary { display: inline-flex; align-items: center; gap: 8px; box-shadow: 0 3px 10px rgba(0, 0, 0, .10); }
.sm-plus-label summary::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='3'/><path d='M3 10h18M8 3v4M16 3v4M12 13v5M9.500 15.500h5'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='3' y='5' width='18' height='16' rx='3'/><path d='M3 10h18M8 3v4M16 3v4M12 13v5M9.500 15.500h5'/></svg>") center / contain no-repeat; }
a.sm-btn-buchen { background: linear-gradient(135deg, #34b45c, #2e9b4f) !important; box-shadow: 0 4px 14px rgba(46, 155, 79, .45); animation: smPuls 2.6s ease-out 1.2s 3; }
@keyframes smPuls { 0% { box-shadow: 0 0 0 0 rgba(46, 155, 79, .55); } 70% { box-shadow: 0 0 0 16px rgba(46, 155, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 155, 79, 0); } }

/* ---- Kopfbereich (Hero) */
.sm-hero {
	position: relative; overflow: hidden; color: #fff; border-radius: 20px; padding: 26px 26px 22px; margin: 0 0 22px;
	background: radial-gradient(120% 140% at 100% 0%, rgba(255, 216, 0, .22) 0%, rgba(255, 216, 0, 0) 55%), linear-gradient(145deg, #1c1c1c 0%, #0a0a0a 100%);
	box-shadow: 0 14px 38px rgba(0, 0, 0, .35);
}
.sm-hero::after { content: ""; position: absolute; right: -50px; top: -50px; width: 190px; height: 190px; border-radius: 50%; border: 22px solid rgba(255, 216, 0, .10); pointer-events: none; }
.sm-hero-top { display: flex; gap: 18px; align-items: center; position: relative; z-index: 1; }
.sm-hero .sm-head-img { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 16px; border: 3px solid #ffd800; background: #fff; object-fit: cover; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); }
.sm-hero .sm-badge { margin: 0 0 8px; }
.sm-hero-titel.sm-h, .sm-hero-titel { margin: 0; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.2px; color: #fff; }
.sm-hero .sm-subtitle { margin: 8px 0 0; font-size: 16px; font-weight: 600; color: #ffd800; }
.sm-chips { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.sm-chips li { display: inline-flex; align-items: center; gap: 9px; padding: 9px 15px; border-radius: 999px; background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .16); font-size: 15px; font-weight: 700; color: #fff; backdrop-filter: blur(4px); }
.sm-chips .sm-ico { width: 19px; height: 19px; color: #ffd800; flex: none; }
.sm-chips .sm-chip-datum { background: #ffd800; border-color: #ffd800; color: #111; }
.sm-chips .sm-chip-datum .sm-ico { color: #111; }
.sm-zeit-abgelaufen .sm-hero { opacity: .8; filter: grayscale(.4); }
.sm-hero .sm-countdown { margin: 20px 0 0; padding-top: 18px; border-top: 1px dashed rgba(255, 255, 255, .22); position: relative; z-index: 1; }
.sm-hero .sm-cd-zahlen { gap: 12px; flex-wrap: wrap; }
.sm-hero .sm-cd-zahlen div { min-width: 74px; padding: 10px 6px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); align-items: center; }
.sm-hero .sm-cd-zahlen b { font-size: 34px; font-weight: 800; color: #ffd800; font-variant-numeric: tabular-nums; }
.sm-hero .sm-cd-zahlen small { color: #cfcfcf; font-size: 12px; letter-spacing: .5px; text-transform: uppercase; }
.sm-hero .sm-cd-s { border-radius: 999px; font-size: 16px; padding: 7px 18px; letter-spacing: 2px; align-items: center; gap: 9px; }
.sm-hero .sm-countdown[data-state="start"] .sm-cd-s-start, .sm-hero .sm-countdown[data-state="laeuft"] .sm-cd-s-laeuft, .sm-hero .sm-countdown[data-state="ende"] .sm-cd-s-ende { display: inline-flex; }
.sm-hero .sm-countdown[data-state="start"] .sm-cd-s-start { background: #ffd800; color: #111; }
.sm-hero .sm-countdown[data-state="laeuft"] .sm-cd-s-laeuft { background: #2e9b4f; color: #fff; }
.sm-dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; display: inline-block; animation: smDot 1.4s ease-in-out infinite; }
@keyframes smDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: .45; } }
.sm-countdown[data-state="ende"] .sm-cd-zahlen { opacity: .5; }

/* ---- Banner */
.sm-banner { border-radius: 14px; box-shadow: var(--sm-shadow); }

/* ---- Info-Boxen */
.sm-beschreibung { font-size: 16px; line-height: 1.6; margin: 0 0 18px; }
.sm-boxen { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sm-box { background: #fff; border: 1px solid #e3e3e3; border-top: 5px solid #ffd800; border-radius: var(--sm-radius); padding: 18px 20px 10px; box-shadow: var(--sm-shadow); }
.sm-box-haendler { border-top-color: #111; }
.sm-box .sm-h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.sm-box .sm-h3 .sm-ico { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: #111; color: #ffd800; flex: none; }
.sm-facts { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sm-facts li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f6f6f6; }
.sm-facts .sm-ico { width: 38px; height: 38px; padding: 8px; border-radius: 50%; background: #ffd800; color: #111; flex: none; }
.sm-facts span { display: flex; flex-direction: column; font-size: 16px; font-weight: 700; line-height: 1.3; }
.sm-facts b { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #777; }

/* ---- Adresse als Hingucker */
.sm-adresse.sm-adresse-karte {
	position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 22px;
	background: linear-gradient(135deg, #ffe34d 0%, #ffd800 60%, #f5c400 100%); color: #111; border-radius: 20px; padding: 24px; margin: 22px 0;
	box-shadow: 0 12px 30px rgba(255, 190, 0, .35);
}
.sm-adresse-karte::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .22); pointer-events: none; }
.sm-adr-icon { flex: none; width: 64px; height: 64px; border-radius: 20px; background: #111; color: #ffd800; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0, 0, 0, .3); transform: rotate(-6deg); }
.sm-adr-icon .sm-ico { width: 34px; height: 34px; }
.sm-adr-body { flex: 1 1 220px; position: relative; z-index: 1; }
.sm-adresse-karte .sm-adr-kopf { margin: 0 0 4px; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; font-weight: 800; color: rgba(0, 0, 0, .6); }
.sm-adr-ort { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; }
.sm-adr-ort a { text-decoration: none; border-bottom: 3px solid #111; }
.sm-adr-zeilen { margin: 6px 0 0; font-size: 17px; font-weight: 600; line-height: 1.4; }
.sm-adr-gross { font-size: 22px; font-weight: 800; margin-top: 0; }
.sm-adr-hinweis { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, .55); font-size: 14px; font-weight: 600; }
.sm-adr-hinweis .sm-ico { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.sm-adr-aktion { margin: 0; position: relative; z-index: 1; }
.sm-adresse-karte .sm-route { flex: 1 1 100%; position: relative; z-index: 1; padding: 14px; border-radius: 14px; background: rgba(255, 255, 255, .6); }
.sm-adresse-karte .sm-route label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sm-adresse-karte .sm-route label .sm-ico { width: 20px; height: 20px; }
.sm-adresse-karte .sm-route input[type="text"] { border-radius: 10px; border: 2px solid #111; background: #fff; padding: 10px 12px; }

/* ---- Listen-Kacheln */
.sm-item { position: relative; border-radius: 14px; border: 1px solid #e0e0e0; border-left: 6px solid #9cc4e4; background: #fff; overflow: visible; margin-bottom: 10px; box-shadow: 0 2px 8px rgba(0, 0, 0, .06); transition: transform .2s ease, box-shadow .2s ease; }
.sm-item:hover { transform: translateY(-3px); box-shadow: var(--sm-shadow-hover); }
.sm-item-nachtflohmarkt { border-left-color: #111; }
.sm-item-sonstig, .sm-item-sonstiges { border-left-color: #ffd800; }
.sm-item-ausgebucht { border-left-color: var(--sm-red); }
.sm-item-abgesagt { border-left-color: #7a1015; }
.sm-item-link { border-radius: 14px; padding: 12px 12px; }
.sm-thumb { border-radius: 12px; }
.sm-item-title { letter-spacing: -.1px; }
.sm-item-time, .sm-item-ort { color: #555; font-weight: 500; }
.sm-item-time .sm-mini, .sm-item-ort .sm-mini { opacity: 1; color: #d6a800; }
.sm-badge { border-radius: 999px; padding: 5px 12px; letter-spacing: .3px; }
.sm-month { background: #111; color: #ffd800; border-radius: 12px; letter-spacing: .6px; padding: 9px 16px; box-shadow: 0 3px 10px rgba(0, 0, 0, .2); }
.sm-bell { transition: transform .2s; display: inline-block; }
.sm-bell:hover { animation: smKlingel .6s ease; }
@keyframes smKlingel { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(18deg); } 50% { transform: rotate(-16deg); } 75% { transform: rotate(8deg); } }

/* ---- Kalender-Werkzeugleiste, Filter, Formulare */
.sm-filter, .sm-abo, .sm-ergebnis, .sm-hinweis { border-radius: 14px; }
.sm-search input, .sm-filter select, .sm-filter input[type="date"] { border-radius: 10px; }
.sm-aktionen { background: #f6f6f6; border-radius: 16px; padding: 18px; }
.sm-share-btn { transition: transform .18s ease, filter .18s; }
.sm-share-btn:hover { transform: translateY(-3px) scale(1.06); }

/* ---- Einblend-Effekt */
.sm-js .sm-fx { opacity: 0; transform: translateY(18px); }
.sm-js .sm-fx.sm-in { opacity: 1; transform: none; transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1); }
.sm-js .sm-item.sm-fx.sm-in { transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease; }
@media (prefers-reduced-motion: reduce) {
	.sm-js .sm-fx { opacity: 1; transform: none; }
	.sm-dot, a.sm-btn-buchen, .sm-bell:hover { animation: none; }
	.sm-item, .sm-btn, .sm-share-btn { transition: none; }
}

@media (max-width: 640px) {
	.sm-hero { padding: 20px 16px 16px; border-radius: 16px; }
	.sm-hero-top { flex-direction: column; align-items: flex-start; gap: 12px; }
	.sm-hero-titel.sm-h, .sm-hero-titel { font-size: 23px; }
	.sm-chips li { font-size: 14px; padding: 8px 12px; }
	.sm-hero .sm-cd-zahlen { gap: 8px; }
	.sm-hero .sm-cd-zahlen div { min-width: 0; flex: 1 1 70px; }
	.sm-hero .sm-cd-zahlen b { font-size: 26px; }
	.sm-adresse.sm-adresse-karte { padding: 18px; }
	.sm-adr-ort { font-size: 21px; }
}

/* ---- 0.7.1: Lightbox breiter/dunkler, Info-Karte, Nachtflohmarkt-Hervorhebung */
.sm-modal-bg { background: rgba(0, 0, 0, .88); }
.sm-modal-win { max-width: 1080px; border-radius: 18px; overflow: hidden; }
.sm-modal-bar { padding: 10px 14px; }
.sm-modal-nav, .sm-modal-x { flex: none; border-radius: 10px; }
.sm-modal-body { padding: 18px; }
.sm-box-info { grid-column: 1 / -1; margin-bottom: 16px; border-top-color: #ffd800; }
.sm-box-info .sm-beschreibung { margin: 0 0 8px; font-size: 16px; line-height: 1.6; }
.sm-box-info .sm-beschreibung > :last-child { margin-bottom: 0; }
@media (min-width: 900px) {
	.sm-chips { flex-wrap: nowrap; }
	.sm-chips li { flex: 0 1 auto; min-width: 0; }
	.sm-chips li span { min-width: 0; }
}
.sm-badge-nachtflohmarkt {
	background: #000; color: #ffd800; border: 1.5px solid #ffd800; padding: 4px 12px;
	box-shadow: 0 0 0 2px rgba(255, 216, 0, .25), 0 0 14px rgba(255, 216, 0, .75), 0 0 28px rgba(255, 216, 0, .35);
	text-shadow: 0 0 8px rgba(255, 216, 0, .8); letter-spacing: .6px;
}
.sm-badge-flohmarkt {
	border: 1.5px solid #6fa8d6; padding: 4px 12px;
	box-shadow: 0 0 0 2px rgba(111, 168, 214, .25), 0 0 14px rgba(111, 168, 214, .75), 0 0 28px rgba(111, 168, 214, .35);
	letter-spacing: .6px;
}
.sm-hero-flohmarkt { box-shadow: 0 14px 38px rgba(0, 0, 0, .35), 0 0 0 2px rgba(111, 168, 214, .35), 0 0 36px rgba(111, 168, 214, .22); }
.sm-hero-flohmarkt .sm-badge-flohmarkt { font-size: 13px; padding: 5px 14px; }
.sm-hero-nachtflohmarkt { box-shadow: 0 14px 38px rgba(0, 0, 0, .35), 0 0 0 2px rgba(255, 216, 0, .35), 0 0 36px rgba(255, 216, 0, .22); }
.sm-hero-nachtflohmarkt .sm-badge-nachtflohmarkt { font-size: 13px; padding: 5px 14px; }

/* 0.7.4 – Orte-Übersicht */
.sm-orte-suche { position: relative; max-width: 460px; margin: 0 0 22px; }
.sm-orte-suche input { width: 100%; box-sizing: border-box; padding: 14px 18px 14px 46px; border: 2px solid #0b0b0b; border-radius: 999px; background: #fff; font-size: 16px; transition: box-shadow .2s ease, border-color .2s ease; }
.sm-orte-suche input:focus { outline: 0; border-color: #ffd800; box-shadow: 0 0 0 4px rgba(255, 216, 0, .45); }
.sm-orte-suche-ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); display: flex; color: #0b0b0b; }
.sm-orte-suche-ico svg { width: 20px; height: 20px; }
.sm-orte-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.sm-orte-grid .sm-ort-karte[hidden] { display: none; }
.sm-ort-karte { margin: 0; }
.sm-ort-karte > a, .sm-ort-karte > a:visited { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 20px; background: #fff; color: #0b0b0b !important; text-decoration: none !important;
	border-bottom: 5px solid #9cc4e4; box-shadow: 0 6px 20px rgba(0, 0, 0, .12); transition: transform .25s ease, box-shadow .25s ease; }
.sm-orte-nachtflohmarkt .sm-ort-karte > a { border-bottom-color: #ffd800; }
.sm-orte-sonstig .sm-ort-karte > a { border-bottom-color: #2e9b4f; }
.sm-ort-karte > a:hover { transform: translateY(-6px); box-shadow: 0 16px 34px rgba(0, 0, 0, .22); }
.sm-ort-bild { position: relative; display: flex; align-items: center; justify-content: center; height: 170px; background: #1a1a1a center / cover no-repeat; color: #ffd800; overflow: hidden; }
.sm-ort-bild svg { width: 46px; height: 46px; }
.sm-ort-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.sm-ort-karte > a:hover .sm-ort-bild { background-size: 108%; }
.sm-ort-bild { transition: background-size .5s ease; }
.sm-ort-pfeil { position: absolute; z-index: 1; right: 12px; bottom: 12px; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #ffd800; color: #0b0b0b; transform: translateX(8px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.sm-ort-pfeil svg { width: 18px; height: 18px; }
.sm-ort-karte > a:hover .sm-ort-pfeil, .sm-ort-karte > a:focus-visible .sm-ort-pfeil { transform: none; opacity: 1; }
.sm-ort-text { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; }
.sm-ort-text strong { font-size: 19px; line-height: 1.2; font-weight: 800; }
.sm-ort-stadt { display: flex; align-items: center; gap: 6px; font-size: 14.5px; color: #555; }
.sm-ort-stadt svg { width: 15px; height: 15px; flex: none; }
.sm-ort-next { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; margin-top: 4px; padding: 5px 12px; border-radius: 999px; background: #0b0b0b; color: #ffd800; font-size: 13px; font-weight: 700; }
.sm-ort-next i { width: 8px; height: 8px; border-radius: 50%; background: #2e9b4f; box-shadow: 0 0 0 0 rgba(46, 155, 79, .7); animation: smPulsOrt 2s infinite; }
@keyframes smPulsOrt { 70% { box-shadow: 0 0 0 7px rgba(46, 155, 79, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 155, 79, 0); } }
.sm-ort-next-leer { background: #ececec; color: #666; }
@media (max-width: 520px) { .sm-orte-grid { grid-template-columns: 1fr; } .sm-ort-bild { height: 150px; } }
@media (prefers-reduced-motion: reduce) { .sm-ort-next i { animation: none; } .sm-ort-karte > a, .sm-ort-bild, .sm-ort-pfeil { transition: none; } }

/* 0.7.5 – Barrierefreiheit */
.sm a:focus-visible, .sm button:focus-visible, .sm input:focus-visible, .sm select:focus-visible, .sm textarea:focus-visible, .sm summary:focus-visible, .sm [tabindex]:focus-visible,
.sm-modal a:focus-visible, .sm-modal button:focus-visible, .sm-modal [tabindex]:focus-visible, .sm-gal button:focus-visible, .sm-gal a:focus-visible, .sm-gal [tabindex]:focus-visible,
.sm-gal-link:focus-visible {
	outline: 3px solid #005fcc !important; outline-offset: 2px !important; box-shadow: 0 0 0 2px #fff !important; border-radius: 4px;
}
.sm-modal-win:focus, .sm-gal-bild:focus { outline: 0; }
.sm .screen-reader-text, .sm-modal .screen-reader-text { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.sm-skip { position: fixed; left: 12px; top: -80px; z-index: 2147483647; padding: 12px 18px; border-radius: 6px; background: #000; color: #ffd800 !important; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid #ffd800; transition: top .15s ease; }
.sm-skip:focus, .sm-skip:focus-visible { top: 12px; outline: 3px solid #005fcc; outline-offset: 2px; }
.sm input[aria-invalid="true"], .sm select[aria-invalid="true"], .sm textarea[aria-invalid="true"] { border-color: #d6282f !important; box-shadow: 0 0 0 3px rgba(214, 40, 47, .25); }
.sm-msg-fehler { font-weight: 700; color: #a3151b; }
.sm-bell, .sm-plus summary { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; }
.sm-ort-karte > a:focus-visible .sm-ort-bild { background-size: 108%; }
@media (prefers-reduced-motion: reduce) {
	.sm *, .sm *::before, .sm *::after, .sm-modal *, .sm-gal * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
	.sm-badge, .sm-btn, .sm-item, .sm-ort-karte > a { border: 1px solid CanvasText; }
}

/* 0.7.6 – Tastaturfokus auf der gesamten Seite (Theme/Divi setzen sonst outline:none) */
body a:focus-visible, body button:focus-visible, body input:focus-visible, body select:focus-visible, body textarea:focus-visible,
body summary:focus-visible, body [tabindex]:not([tabindex="-1"]):focus-visible, body [role="button"]:focus-visible, body .et_pb_button:focus-visible {
	outline: 3px solid #005fcc !important; outline-offset: 3px !important; box-shadow: 0 0 0 2px #fff !important; border-radius: 0;
}
#main-header a:focus-visible, .et_pb_menu a:focus-visible, .et-l--header a:focus-visible, header a:focus-visible,
#main-footer a:focus-visible, .et-l--footer a:focus-visible, footer a:focus-visible {
	outline: 3px solid #ffd800 !important; box-shadow: 0 0 0 2px #000 !important;
}

/* 0.7.7 – Aktionsbuttons gleich hoch („Termin buchen“ / „Termin merken“) */
.sm-aktionen-row { align-items: center; }
.sm-aktionen-row .sm-btn, .sm-aktionen-row .sm-plus-label summary { box-sizing: border-box; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; line-height: 1.2; padding-top: 0; padding-bottom: 0; }

/* 0.7.13 – Listenpunkte in der Orte-Übersicht entfernen (Theme-Listenstil überschreiben) */
.sm .sm-orte-grid, .sm .sm-orte-liste { list-style: none !important; margin: 0 !important; padding: 0 !important; }
.sm .sm-orte-grid > li, .sm .sm-orte-liste > li { list-style: none !important; margin-left: 0 !important; padding-left: 0 !important; }
.sm .sm-orte-grid > li::before, .sm .sm-orte-grid > li::marker, .sm .sm-orte-liste > li::before, .sm .sm-orte-liste > li::marker { content: none !important; display: none; }

/* 0.7.16 – Lade-Anzeige in der Lightbox */
.sm-lade { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 320px; padding: 40px 20px; color: #1b1b1b; font-weight: 700; font-size: 17px; }
.sm-spinner { width: 54px; height: 54px; border-radius: 50%; border: 5px solid #e6e6e6; border-top-color: #ffd800; border-right-color: #ffd800; animation: smDreh 0.9s linear infinite; }
@keyframes smDreh { to { transform: rotate(360deg); } }
.sm-modal-body.sm-laedt { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .sm-spinner { animation-duration: 3s !important; animation-iteration-count: infinite !important; } }

/* 0.7.18 – Monatsnavigation springt nicht mehr (feste Breite für „Alle Termine“ / „September 2027“) */
.sm-monatlabel { display: inline-block; min-width: 9.5em; text-align: center; white-space: nowrap; }
.sm-toolbar .sm-tb-btn, .sm-toolbar .sm-search { flex: 0 0 auto; }
@media (max-width: 520px) { .sm-monatlabel { min-width: 8em; } }

/* 0.7.19 – kein Sprung der Liste beim Monatswechsel */
.sm-liste .sm-month.sm-month-top { margin-top: 0; }

/* 0.7.25 – Galerie-Slider mit WOW-Effekt */
.sm-gallery.sm-slider { display: block; position: relative; container-type: inline-size; width: 100%; margin: 10px 0 18px; }
.sm-slider .sm-spur { display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.sm-slider .sm-spur::-webkit-scrollbar { display: none; }
.sm-slider .sm-seite { flex: 0 0 100%; box-sizing: border-box; scroll-snap-align: start; scroll-snap-stop: always; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; padding: 16px 12px; align-content: start; }
@container (max-width: 760px) { .sm-slider .sm-seite { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@container (max-width: 460px) { .sm-slider .sm-seite { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }

.sm-slider a.sm-gal-link { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 14px; background: #222; cursor: zoom-in; line-height: 0;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2); transform: translateZ(0);
	transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
.sm-slider a.sm-gal-link img { width: 100% !important; height: 100% !important; max-width: none; object-fit: cover; border-radius: 0 !important; display: block;
	transition: transform .7s cubic-bezier(.2, .8, .2, 1), filter .4s ease; }
/* Glanz-Streifen + Abdunklung */
.sm-slider a.sm-gal-link::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0;
	background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .42) 50%, transparent 65%) no-repeat -160% 0 / 260% 100%, linear-gradient(to top, rgba(0, 0, 0, .55), transparent 62%);
	transition: opacity .3s ease, background-position .9s ease; }
/* Lupe */
.sm-slider a.sm-gal-link::after { content: ""; position: absolute; left: 50%; top: 50%; z-index: 2; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; pointer-events: none;
	background: #ffd800 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6'/%3E%3Cpath d='M15 15l5.5 5.5M10.5 8v5M8 10.5h5'/%3E%3C/svg%3E") center / 26px no-repeat;
	box-shadow: 0 6px 18px rgba(0, 0, 0, .4); opacity: 0; transform: scale(.4) rotate(-40deg); transition: opacity .25s ease, transform .4s cubic-bezier(.2, 1.4, .3, 1); }
.sm-slider a.sm-gal-link:hover, .sm-slider a.sm-gal-link:focus-visible { transform: translateY(-7px) scale(1.04); z-index: 3; box-shadow: 0 16px 32px rgba(0, 0, 0, .38), 0 0 0 3px #ffd800; }
.sm-slider a.sm-gal-link:hover img, .sm-slider a.sm-gal-link:focus-visible img { transform: scale(1.14); filter: saturate(1.2) contrast(1.05); }
.sm-slider a.sm-gal-link:hover::before, .sm-slider a.sm-gal-link:focus-visible::before { opacity: 1; background-position: 160% 0, 0 0; }
.sm-slider a.sm-gal-link:hover::after, .sm-slider a.sm-gal-link:focus-visible::after { opacity: 1; transform: scale(1) rotate(0); }
.sm-slider a.sm-gal-link:active { transform: translateY(-2px) scale(.98); }
@media (hover: none) { .sm-slider a.sm-gal-link::after { opacity: .9; transform: scale(.6) rotate(0); left: auto; top: auto; right: 8px; bottom: 8px; margin: 0; width: 36px; height: 36px; background-size: 20px; } }

/* Einblenden: Kacheln poppen nacheinander auf */
.sm-slider-js .sm-seite:not(.sm-seite-an) a.sm-gal-link { opacity: 0; }
@keyframes smKachelIn { from { opacity: 0; transform: translateY(28px) scale(.86) rotate(-1.5deg); } to { opacity: 1; transform: none; } }
.sm-slider .sm-seite-an a.sm-gal-link { animation: smKachelIn .6s cubic-bezier(.2, .9, .3, 1.15) backwards; animation-delay: calc(var(--i, 0) * 55ms); }

/* Steuerung */
.sm-slider-bar { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 14px; margin-top: 6px; }
.sm-slider-btn { width: 46px; height: 46px; border-radius: 50%; border: 2px solid #111; background: #111; color: #ffd800; font-size: 30px; line-height: 1; padding: 0 0 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
	transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.sm-slider-btn:hover:not(:disabled) { background: #ffd800; color: #111; transform: scale(1.1); box-shadow: 0 6px 16px rgba(0, 0, 0, .3); }
.sm-slider-btn:disabled { opacity: .3; cursor: default; }
.sm-slider-punkte { display: flex; gap: 8px; align-items: center; }
.sm-slider-punkt { width: 12px; height: 12px; padding: 0; border-radius: 99px; border: 2px solid #111; background: transparent; cursor: pointer; transition: width .3s ease, background .3s ease; }
.sm-slider-punkt[aria-current="true"] { width: 30px; background: #ffd800; }
.sm-slider-zaehler { flex-basis: 100%; text-align: center; font-size: 13px; color: #555; }
@media (min-width: 620px) { .sm-slider-zaehler { flex-basis: auto; margin-left: 6px; } }
.sm-slider-btn:focus-visible, .sm-slider-punkt:focus-visible { outline: 3px solid #005fcc !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px #fff !important; }
@media (prefers-reduced-motion: reduce) { .sm-slider a.sm-gal-link, .sm-slider a.sm-gal-link img { transition: none !important; } .sm-slider a.sm-gal-link:hover { transform: none; } }

/* ======================================================================
 * 0.7.26 – Restplätze, Wetter, Merkliste, Live-Badge, Schnellfilter, Karte
 * ==================================================================== */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Restplätze */
.sm-kontingent { margin: 8px 0; font-size: 14px; }
.sm-kont-text { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; }
.sm-kont-badge { background: var(--sm-accent); color: #111; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .03em; }
.sm-kont-balken { height: 8px; background: #e4e4e4; border-radius: 99px; overflow: hidden; }
.sm-kont-balken span { display: block; height: 100%; background: #2e8b57; border-radius: 99px; transition: width .4s; }
.sm-kont-letzte .sm-kont-balken span { background: #e08a00; }
.sm-kont-voll .sm-kont-balken span { background: #c0392b; }
.sm-kont-voll .sm-kont-text strong { color: #c0392b; }
.sm-kont-hero { max-width: 420px; }
.sm-kont-form { margin: 4px 0 0; }
.sm-chip-voll { opacity: .6; }
.sm-chip-voll .sm-chip-body { cursor: not-allowed; }
.sm-chip-letzte .sm-chip-body { border-color: #e08a00; }

/* Wetter */
.sm-wetter, .sm-wetter strong { color: #17374f; }
.sm-wetter { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 10px 0; padding: 10px 14px; background: #eef6fc; border-left: 4px solid #4a90c2; border-radius: 4px; }
.sm-wetter-icon { font-size: 30px; line-height: 1; }
.sm-wetter-text { display: flex; flex-direction: column; flex: 1; min-width: 160px; }
.sm-wetter-text strong { color: #17374f; font-size: 16px; }
.sm-wetter-text small { color: #44525e; font-size: 13px; }
.sm-wetter-quelle { font-size: 12px; color: #44525e; }

/* Merkliste */
.sm-merk { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: transparent; border: 0; padding: 4px; cursor: pointer; color: #777; font: inherit; line-height: 1; border-radius: 4px; }
.sm-merk:hover, .sm-merk:focus-visible { color: #c0392b; }
.sm-merk-herz { font-size: 22px; transition: transform .2s; }
.sm-merk:active .sm-merk-herz { transform: scale(1.3); }
.sm-merk.ist-gemerkt { color: #c0392b; }
.sm-merk-text { border: 1px solid var(--sm-line); background: #fff; padding: 8px 12px; font-weight: 600; font-size: 15px; color: var(--sm-text); }
.sm-merk-text.ist-gemerkt { border-color: #c0392b; color: #c0392b; }
.sm-merk.sm-merk-pop .sm-merk-herz { animation: sm-herz .35s ease-out; }
@keyframes sm-herz { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* Heute live */
.sm-live-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; background: #111; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .05em; padding: 3px 9px; border-radius: 99px; margin: 0 0 5px; }
.sm-live-badge i { width: 8px; height: 8px; border-radius: 50%; background: #aaa; }
.sm-live-live { background: #c0392b; }
.sm-live-live i { background: #fff; animation: sm-puls 1.4s infinite; }
.sm-live-heute { background: var(--sm-accent); color: #111; }
.sm-live-heute i { background: #111; }
.sm-ist-live { box-shadow: 0 0 0 2px #c0392b; }
@keyframes sm-puls { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

/* Schnellfilter */
.sm-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.sm-chipbtn { border: 1px solid var(--sm-line); background: #fff; color: var(--sm-text); padding: 7px 14px; border-radius: 99px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.sm-chipbtn:hover { border-color: #111; }
.sm-chipbtn.is-active, .sm-chipbtn[aria-pressed="true"] { background: #111; color: #fff; border-color: #111; }
.sm-chipbtn[hidden] { display: none; }

/* Kalender-Abo, Girocode, Händler-Hinweis */
.sm-kal-abo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 14px 0; padding: 10px 14px; background: #fafafa; border: 1px solid var(--sm-line); border-radius: 10px; }
.sm-kal-abo-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: #fff; border: 1px solid var(--sm-line); color: #111; }
.sm-kal-abo-icon .sm-kal-ico { width: 18px; height: 18px; }
.sm-kal-abo-text { flex: 1 1 260px; min-width: 0; margin: 0 !important; padding: 0 !important; line-height: 1.35; }
.sm-kal-abo-text b { display: block; font-size: 14px; font-weight: 600; color: var(--sm-text); }
.sm-kal-abo-text span { display: block; font-size: 12.5px; font-weight: 400; color: var(--sm-muted); }
.sm-kal-abo-btns { display: inline-flex; flex-wrap: wrap; gap: 8px; flex: none; }
.sm-kal-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 1px solid #b8b8b8; border-radius: 999px; background: #fff; color: #111 !important; font: inherit; font-size: 13px; font-weight: 400; line-height: 1.2; white-space: nowrap; text-decoration: none !important; cursor: pointer; transition: background .15s, border-color .15s, box-shadow .15s; }
.sm-kal-btn:hover, .sm-kal-btn:focus-visible { background: #ffd800; border-color: #111; outline: 0; }
.sm-kal-btn:focus-visible { box-shadow: 0 0 0 2px #111; }
.sm-kal-btn.sm-copied { background: #eaf6ee; border-color: #2e8b57; }
.sm-kal-btn .sm-kal-ico { flex: none; }
.sm-girocode { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 14px 0; padding: 12px; background: #fff; border: 1px solid var(--sm-line); border-radius: 6px; }
.sm-girocode svg { width: 160px; height: 160px; flex: none; }
.sm-girocode p { margin: 0; flex: 1; min-width: 180px; font-size: 14px; }
.sm-haendler-hinweis { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 14px; padding: 10px 14px; background: #eaf6ee; border-left: 4px solid #2e8b57; border-radius: 4px; font-size: 14px; }
.sm-haendler-hinweis[hidden] { display: none; }

/* Karte (lokal, ohne Fremdserver) */
.sm-karte { margin: 16px 0; --z: 1; }
.sm-karte-flaeche { position: relative; width: 100%; max-height: 680px; background: #d9e8f3; border: 1px solid var(--sm-line); border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(0,0,0,.08); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.sm-karte-flaeche.ist-gezoomt { cursor: grab; touch-action: none; }
.sm-karte-flaeche.ist-ziehen { cursor: grabbing; }
.sm-karte-layer { position: absolute; inset: 0; transform-origin: 0 0; }
.sm-karte-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.sm-g-nachbar { fill: #e9e7e2; stroke: #fff; stroke-width: 1; vector-effect: non-scaling-stroke; }
.sm-g-kreis { fill: #fbfaf7; stroke: #e4e0d8; stroke-width: .8; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sm-g-see { fill: #cfe3f2; stroke: #b3d0e6; stroke-width: .8; vector-effect: non-scaling-stroke; }
.sm-g-fluss { fill: none; stroke: #a9cde6; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.sm-g-land { fill: none; stroke: #aaa395; stroke-width: 1.2; stroke-dasharray: 6 4; vector-effect: non-scaling-stroke; }
.sm-g-aussen { fill: none; stroke: #9d968a; stroke-width: 1.6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

.sm-klbl { position: absolute; z-index: 1; pointer-events: none; transform-origin: 0 0; white-space: nowrap; font-family: inherit; }
.sm-lbl-land { transform: translate(-50%, -50%) scale(calc(1 / var(--z))); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(110,102,88,.55); }
.sm-lbl-stadt { transform: translate(5px, -50%) scale(calc(1 / var(--z))); font-size: 12px; font-weight: 600; color: #4b4a46; text-shadow: 0 0 3px #fff, 0 0 3px #fff, 0 0 2px #fff; padding-left: 8px; }
.sm-lbl-stadt i { position: absolute; left: 0; top: 50%; width: 5px; height: 5px; margin: -2.5px 0 0 -3px; border-radius: 50%; background: #6c6a64; }
.sm-st-1 { font-size: 13px; font-weight: 700; }
.sm-st-3 { display: none; }
.sm-z2 .sm-st-3 { display: block; }

.sm-pin:not(.sm-pin-termin) { display: none; }
.sm-zeige-alle .sm-pin:not(.sm-pin-termin) { display: block; }
.sm-karte-schalter { margin: 10px 0 0; }
.sm-pin { position: absolute; width: 0; height: 0; z-index: 3; transform-origin: 0 0; transform: scale(calc(1 / var(--z))); }
.sm-pin:hover, .sm-pin.is-open, .sm-pin:focus-within { z-index: 20; }
.sm-pin-dot { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; padding: 0; border-radius: 50%; background: #2f7fc1; border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.45); cursor: pointer; box-sizing: border-box; transition: transform .15s; }
.sm-pin-dot:hover, .sm-pin.is-open .sm-pin-dot, .sm-pin-dot:focus-visible { transform: scale(1.25); outline: 0; }
.sm-pin-dot:focus-visible { box-shadow: 0 0 0 3px #111, 0 1px 5px rgba(0,0,0,.45); }
.sm-pin-nachtflohmarkt .sm-pin-dot { background: #111; }
.sm-pin-sonstig .sm-pin-dot { background: #ffd800; border-color: #fff; box-shadow: 0 0 0 1px #8a7300, 0 1px 5px rgba(0,0,0,.45); }
.sm-pin:not(.sm-pin-termin) .sm-pin-dot { background: #a9adb2; opacity: .85; }
.sm-pin-heute .sm-pin-dot { background: #c0392b; animation: sm-pin-puls 1.6s infinite; }
@keyframes sm-pin-puls { 0% { box-shadow: 0 0 0 0 rgba(192,57,43,.65), 0 1px 5px rgba(0,0,0,.45); } 70% { box-shadow: 0 0 0 14px rgba(192,57,43,0), 0 1px 5px rgba(0,0,0,.45); } 100% { box-shadow: 0 0 0 0 rgba(192,57,43,0), 0 1px 5px rgba(0,0,0,.45); } }
.sm-pin-tip { display: none; position: absolute; left: 0; bottom: 16px; transform: translateX(-50%); min-width: 160px; max-width: 240px; background: #111; color: #fff; padding: 9px 12px 10px; border-radius: 8px; font-size: 13px; line-height: 1.35; text-align: left; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.sm-pin-tip::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: #111; transform: rotate(45deg); }
.sm-pin-tip b { display: block; font-size: 14px; }
.sm-pin-tip small { display: block; color: #d6d6d6; font-size: 12px; margin-top: 1px; }
.sm-pin-link { display: inline-block; margin-top: 6px; color: #ffd800 !important; font-weight: 700; text-decoration: none; }
.sm-pin-link:hover { text-decoration: underline; }
.sm-pin-oben .sm-pin-tip { bottom: auto; top: 16px; }
.sm-pin-oben .sm-pin-tip::after { bottom: auto; top: -5px; }
.sm-pin-links .sm-pin-tip { left: -14px; transform: none; }
.sm-pin-links .sm-pin-tip::after { left: 14px; }
.sm-pin-rechts .sm-pin-tip { left: auto; right: -14px; transform: none; }
.sm-pin-rechts .sm-pin-tip::after { left: auto; right: 14px; margin-left: 0; }
.sm-pin:hover .sm-pin-tip, .sm-pin.is-open .sm-pin-tip, .sm-pin:focus-within .sm-pin-tip { display: block; }

.sm-karte-ctrl { position: absolute; right: 10px; top: 10px; z-index: 30; display: flex; flex-direction: column; gap: 1px; background: #fff; border-radius: 8px; box-shadow: 0 1px 6px rgba(0,0,0,.3); overflow: hidden; }
.sm-karte-ctrl button { width: 36px; height: 36px; border: 0; background: #fff; color: #111; font-size: 20px; line-height: 1; cursor: pointer; padding: 0; }
.sm-karte-ctrl button + button { border-top: 1px solid #e3e3e3; }
.sm-karte-ctrl button:hover, .sm-karte-ctrl button:focus-visible { background: #ffd800; outline: 0; }

.sm-karte .sm-karte-legende { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none !important; margin: 10px 0 0 !important; padding: 0 !important; font-size: 13px; color: var(--sm-muted); }
.sm-karte .sm-karte-legende li { list-style: none !important; margin: 0 !important; padding: 0 !important; display: inline-flex; align-items: center; gap: 7px; }
.sm-karte .sm-karte-legende li::before, .sm-karte .sm-karte-liste li::before { content: none !important; }
.sm-lg { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35); display: inline-block; flex: none; }
.sm-lg-flohmarkt { background: #2f7fc1; }
.sm-lg-nachtflohmarkt { background: #111; }
.sm-lg-sonstig { background: #ffd800; }
.sm-lg-heute { background: #c0392b; }
.sm-lg-hinweis { opacity: .85; }
.sm-karte-liste { margin-top: 12px; font-size: 14px; }
.sm-karte-liste summary { cursor: pointer; font-weight: 700; }
.sm-karte .sm-karte-liste ul { list-style: none !important; columns: 2; column-gap: 24px; margin: 10px 0 0 !important; padding: 0 !important; }
.sm-karte .sm-karte-liste li { list-style: none !important; margin: 0 0 5px !important; padding: 0 !important; break-inside: avoid; }
.sm-karte-liste a { font-weight: 600; }
.sm-karte-next { color: var(--sm-muted); font-size: 13px; margin-left: 4px; }
.sm-karte-liste a.ist-aktiv { background: #ffd800; color: #111; }
@media (max-width: 600px) { .sm-karte .sm-karte-liste ul { columns: 1; } }
@media (prefers-reduced-motion: reduce) { .sm-live-live i, .sm-pin-heute .sm-pin-dot { animation: none; } .sm-pin-dot { transition: none; } }

/* ======================================================================
 * Orte-Menü kompakt (mehrspaltig, kleinere Schrift) – nur Desktop-Menü
 * ==================================================================== */
@media (min-width: 981px) {
	li.sm-menu-mega > ul.sub-menu { width: 720px !important; max-width: calc(100vw - 24px); columns: 3; column-gap: 0; padding: 10px 6px 12px !important; box-sizing: border-box; }
	li.sm-menu-mega.sm-menu-cols-1 > ul.sub-menu { width: 300px !important; columns: 1; }
	li.sm-menu-mega.sm-menu-cols-2 > ul.sub-menu { width: 500px !important; columns: 2; }
	li.sm-menu-mega.sm-menu-cols-4 > ul.sub-menu { width: 940px !important; columns: 4; }
	li.sm-menu-mega > ul.sub-menu > li { display: block !important; width: auto !important; float: none !important; padding: 0 !important; margin: 0 !important; break-inside: avoid; page-break-inside: avoid; }
	li.sm-menu-mega > ul.sub-menu > li > a { display: block !important; width: auto !important; padding: 8px 14px !important; font-size: 13px !important; line-height: 1.4 !important; white-space: normal; }
	li.sm-menu-mega > ul.sub-menu > li.sm-menu-gruppe { break-after: avoid; }
}
body .et_pb_menu .nav li ul.sub-menu li.sm-menu-gruppe > a, li.sm-menu-gruppe > a { pointer-events: none; cursor: default; color: #ffd800 !important; text-transform: uppercase; letter-spacing: .12em; font-size: 15px !important; font-weight: 700; opacity: 1 !important; }
@media (min-width: 981px) { li.sm-menu-mega > ul.sub-menu > li.sm-menu-gruppe > a { padding: 14px 14px 6px !important; font-size: 15px !important; border-bottom: 1px solid rgba(255,255,255,.18); margin: 0 14px 4px; padding-left: 0 !important; padding-right: 0 !important; } li.sm-menu-mega > ul.sub-menu > li.sm-menu-gruppe:first-child > a { padding-top: 6px !important; } }
body .et_pb_menu .nav li ul.sub-menu li.sm-menu-gruppe > a:hover, li.sm-menu-gruppe > a:hover { background: transparent !important; color: #ffd800 !important; }

/* Karte als Ansicht in der Terminliste */
.sm-browser.ansicht-karte .sm-quick,
.sm-browser.ansicht-karte [data-sm="leiste"],
.sm-browser.ansicht-karte .sm-keine-treffer { display: none !important; }
.sm-kartenansicht .sm-karte { margin-top: 4px; }

/* 0.7.36 Schnellfilter dezenter (wie „Kalender abonnieren“), mobil in einer Zeile */
.sm-chipbtn { font-size: 13px; font-weight: 400; padding: 7px 14px; border-color: #b8b8b8; line-height: 1.2; white-space: nowrap; }
.sm-chipbtn.is-active, .sm-chipbtn[aria-pressed="true"] { font-weight: 500; }
@media (max-width: 640px) {
	.sm-quick { flex-wrap: nowrap; gap: 5px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
	.sm-quick::-webkit-scrollbar { display: none; }
	.sm-chipbtn { flex: 0 0 auto; font-size: 11.5px; padding: 6px 9px; }

	/* Terminkarten mobil: Bild + Art in einer Zeile, Titel/Datum/Ort darunter auf voller Breite */
	.sm-item:not(.sm-naechste-liste .sm-item) .sm-item-link { flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-right: 12px; }
	.sm-item:not(.sm-naechste-liste .sm-item) .sm-item-body { display: contents; }
	.sm-item:not(.sm-naechste-liste .sm-item) .sm-item-body > * { flex: 0 0 100%; min-width: 0; }
	.sm-item:not(.sm-naechste-liste .sm-item) .sm-item-body > .sm-badge { flex: 0 0 auto; align-self: center; margin: 0; }
	.sm-item:not(.sm-naechste-liste .sm-item) .sm-item-actions { position: absolute; top: 12px; right: 10px; padding: 0; align-items: center; }
	.sm-item .sm-item-time, .sm-item .sm-item-ort { align-items: flex-start; }
	.sm-item .sm-item-time .sm-mini, .sm-item .sm-item-ort .sm-mini { margin-top: 3px; }
}

/* 0.8.4 Anzeige „Bereits X Meter online gebucht“ */
.sm-kont-gebucht { display: inline-block; padding: 7px 12px; border-left: 4px solid #ffd800; background: #fffbe0; border-radius: 0 6px 6px 0; }
.sm-kont-gebucht .sm-kont-text { margin: 0; }
.sm-kont-gebucht .sm-kont-text strong { font-weight: 600; }

/* 1.0.3 – Marktseite mobil: Termin merken / Markt merken / Termin buchen gleich groß, untereinander über die volle Breite */
@media (max-width: 600px) {
	.sm-aktionen-row { flex-direction: column; align-items: stretch; gap: 10px; }
	.sm-aktionen-row > * { width: 100%; box-sizing: border-box; }
	.sm-aktionen-row .sm-btn,
	.sm-aktionen-row .sm-merk,
	.sm-aktionen-row .sm-plus-label summary { box-sizing: border-box; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 15px; line-height: 1.2; padding-top: 0; padding-bottom: 0; }
}
