/* SV Felm Bausteine – passt zum Theme „SV Felm Anstoß“, funktioniert aber auch allein. */
.svf-termine, .svf-hallenplan, .svf-ticket-band, .svf-ticket-schild {
	--svf-schwarz: #140f0f; --svf-rot: #ed1b24; --svf-blau: #0473bb; --svf-linie: #ddd6d6;
	--svf-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}

/* ---------- Termine ---------- */
.svf-termine p { margin: 0; }
.svf-termine ul { list-style: none; margin: 0; padding: 0; }
.svf-termine a { text-decoration: none; }
.svf-termine .svf-termin-datum { font-family: var(--svf-cond); font-weight: 800; line-height: 1; }
.svf-termine .svf-termin-text { display: flex; flex-direction: column; font-size: 15px; line-height: 1.3; }
.svf-termine .svf-termine-titel, .svf-termine .svf-termine-alle a {
	font-family: var(--svf-cond); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 20px;
}
/* Leiste (blaues Band, weißer Text) */
.svf-termine.ist-leiste { display: flex; align-items: center; gap: 32px; min-height: 120px; color: #fff; }
.svf-termine.ist-leiste a { color: #fff; }
.svf-termine.ist-leiste .svf-termine-titel { padding-right: 32px; border-right: 2px solid rgba(255,255,255,0.35); align-self: center; line-height: 56px; }
.svf-termine.ist-leiste .svf-termine-reihe { display: flex; gap: 32px; flex: 1; min-width: 0; overflow: hidden; }
.svf-termine.ist-leiste li { flex-shrink: 0; }
@media (max-width: 1560px) { .svf-termine.ist-leiste li:nth-child(n+4) { display: none; } }
.svf-termine.ist-leiste li a { display: flex; align-items: center; gap: 14px; }
.svf-termine.ist-leiste .svf-termin-datum { font-size: 44px; }
.svf-termine.ist-leiste .svf-termine-alle a { font-size: 17px; border-bottom: 2px solid #fff; }
@media (max-width: 1100px) {
	.svf-termine.ist-leiste { flex-direction: column; align-items: stretch; gap: 0; padding: 28px 0 24px; }
	.svf-termine.ist-leiste .svf-termine-titel { border: 0; padding: 0 0 6px; line-height: 1.2; font-size: 18px; align-self: auto; }
	.svf-termine.ist-leiste .svf-termine-reihe { flex-direction: column; gap: 0; }
	.svf-termine.ist-leiste li a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.3); gap: 16px; }
	.svf-termine.ist-leiste .svf-termin-datum { font-size: 34px; width: 82px; flex-shrink: 0; }
	.svf-termine.ist-leiste li:nth-child(n+4) { display: none; }
	.svf-termine.ist-leiste .svf-termine-alle { margin-top: 16px; }
}
/* Liste (heller Hintergrund) */
.svf-termine.ist-liste .svf-termine-titel { display: none; }
.svf-termine.ist-liste li a { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--svf-linie); color: var(--svf-schwarz); }
.svf-termine.ist-liste .svf-termin-datum { font-size: 30px; background: var(--svf-schwarz); color: #fff; width: 84px; padding: 16px 0; text-align: center; flex-shrink: 0; }
.svf-termine.ist-liste .svf-termine-alle { margin-top: 20px; }

/* ---------- Hallenplan: Wochenraster ---------- */
.svf-hallenplan { margin: 0; }
.svf-hp-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.svf-hp-filter button {
	font-family: var(--svf-cond); font-weight: 800; font-size: 16px; letter-spacing: 0.04em; text-transform: uppercase;
	height: 40px; padding: 0 16px; background: #fff; color: var(--svf-schwarz); border: 2px solid var(--svf-schwarz); border-radius: 0; cursor: pointer;
}
.svf-hp-filter button.ist-aktiv, .svf-hp-filter button:hover { background: var(--svf-schwarz); color: #fff; }
.svf-hp-legende { display: flex; gap: 18px; justify-content: flex-end; font-size: 14px; color: #5a5252; margin: 0 0 16px; }
.svf-hp-legende span { display: inline-flex; align-items: center; gap: 8px; }
.svf-hp-legende span::before { content: ""; width: 16px; height: 16px; }
.svf-hp-leg-verein::before { background: var(--svf-blau); }
.svf-hp-leg-gast::before { border: 2px dashed #b9b0b0; width: 12px !important; height: 12px !important; }
.svf-hp-raster { position: relative; display: grid; grid-template-columns: 60px repeat(7, minmax(0, 1fr)); }
.svf-hp-zeiten { position: relative; margin-top: 52px; height: var(--svf-hp-hoehe); }
.svf-hp-zeiten span { position: absolute; right: 12px; transform: translateY(-50%); font-size: 14px; font-weight: 700; color: #7a7070; }
.svf-hp-tag p.svf-hp-tagname {
	margin: 0; height: 52px; display: flex; align-items: center; justify-content: center;
	background: var(--svf-schwarz); color: #fff; font-family: var(--svf-cond); font-weight: 800; font-size: 20px; text-transform: uppercase;
}
.svf-hp-spalte {
	position: relative; height: var(--svf-hp-hoehe); border-right: 1px solid var(--svf-linie);
	background-image: repeating-linear-gradient(180deg, var(--svf-linie) 0 1px, transparent 1px 96px);
}
.svf-hp-tag:first-of-type .svf-hp-spalte { border-left: 1px solid var(--svf-linie); }
.svf-hp-tag.ist-wochenende .svf-hp-spalte { background-color: #faf9f9; }
.svf-hp-block {
	position: absolute; left: 4px; right: 4px; box-sizing: border-box; overflow: hidden;
	padding: 6px 9px; background: var(--svf-blau); color: #fff; display: flex; flex-direction: column; gap: 1px; margin-top: 2px;
	transition: opacity .2s ease;
}
.svf-hp-block b { font-family: var(--svf-cond); font-weight: 800; font-size: 18px; line-height: 1.05; text-transform: uppercase; }
.svf-hp-block span { font-size: 13px; font-weight: 700; }
.svf-hp-block small { font-size: 12px; opacity: 0.85; }
.svf-hp-block.ist-gast { background: #fff; color: #7a7070; border: 2px dashed #b9b0b0; }
.svf-hp-block.ist-aus { opacity: 0.12; }
.svf-hp-frei { position: absolute; top: 40px; left: 0; right: 0; text-align: center; font-size: 14px; color: #9a9090; }

/* ---------- Hallenplan: Tagesliste ---------- */
.svf-hallenplan.ist-liste h3 {
	margin: 0; padding: 22px 0 6px; border-bottom: 3px solid var(--svf-schwarz);
	font-family: var(--svf-cond); font-style: italic; font-weight: 800; font-size: 34px; text-transform: uppercase; line-height: 1;
}
.svf-hallenplan.ist-liste ul { list-style: none; margin: 0; padding: 0; }
.svf-hallenplan.ist-liste li { display: flex; gap: 14px; padding: 12px 0 12px 20px; border-bottom: 1px solid var(--svf-linie); position: relative; }
.svf-hallenplan.ist-liste li::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 6px; background: var(--svf-blau); }
.svf-hallenplan.ist-liste li.ist-gast { color: #7a7070; }
.svf-hallenplan.ist-liste li.ist-gast::before { background: #b9b0b0; }
.svf-hp-uhr { width: 64px; flex-shrink: 0; display: flex; flex-direction: column; font-family: var(--svf-cond); font-weight: 800; font-size: 19px; line-height: 1.1; }
.svf-hp-uhr span { color: #9a9090; }
.svf-hp-was { display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.svf-hp-was b { font-family: var(--svf-cond); font-weight: 800; font-size: 22px; line-height: 1; text-transform: uppercase; }
.svf-hp-was span { font-size: 14px; color: #7a7070; }
.svf-hp-tagleiste { position: static; display: flex; background: var(--svf-schwarz); padding: 4px; margin: 0 0 16px; border-radius: 10px; }
.svf-hp-tagleiste a { border-radius: 7px; }
.svf-hp-tagleiste a, .svf-hp-tagleiste span {
	flex: 1; height: 48px; display: flex; align-items: center; justify-content: center;
	font-family: var(--svf-cond); font-weight: 800; font-size: 18px; text-transform: uppercase; color: #fff; text-decoration: none;
}
.svf-hp-tagleiste span { color: #6a6060; }
.svf-hp-tagleiste a.ist-heute { background: var(--svf-rot); }
/* Spartenseite: kompakte Karte */
.svf-hallenplan.ist-kompakt { display: grid; gap: 12px; }
.svf-hallenplan.ist-kompakt .svf-hp-listentag { background: #fff; border-left: 8px solid var(--svf-blau); padding: 4px 24px 8px; }
.svf-hallenplan.ist-kompakt h3 { border: 0; font-style: normal; font-size: 26px; padding: 16px 0 4px; }
.svf-hallenplan.ist-kompakt li { border: 0; padding-left: 0; }
.svf-hallenplan.ist-kompakt li::before { display: none; }

/* Umschalten Raster ↔ Liste */
.svf-hallenplan.nur-handy { display: none; }
@media (max-width: 900px) {
	.svf-hallenplan.ist-woche { display: none; }
	.svf-hallenplan.nur-handy { display: block; }
}

/* Freie Hallenzeiten [svf_hallenplan ansicht="frei"] */
.svf-hp-frei-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.svf-hp-frei-tag { background: #fff; border: 1px solid var(--wp--preset--color--linie, #ddd6d6); border-top: 5px solid #1e8e3e; border-radius: 12px; padding: 14px 16px; }
.svf-hp-frei-tag.ist-voll { border-top-color: var(--wp--preset--color--linie, #ddd6d6); opacity: .7; }
.svf-hp-frei-tag h3 { margin: 0 0 8px; font-family: var(--wp--preset--font-family--barlow-condensed, sans-serif); text-transform: uppercase; font-size: 20px; }
.svf-hp-frei-tag ul { list-style: none; margin: 0; padding: 0; }
.svf-hp-frei-tag li { margin: 4px 0; }
.svf-hp-frei-tag li b { font-family: var(--wp--preset--font-family--barlow-condensed, sans-serif); font-size: 20px; }
.svf-hp-frei-tag li span { color: #1e8e3e; font-weight: 700; font-size: 14px; }
.svf-hp-frei-tag p { margin: 0; color: var(--wp--preset--color--text-leise, #5a5252); }
.svf-hp-frei-hinweis { font-size: 15px; color: var(--wp--preset--color--text-leise, #5a5252); }

.svf-hp-weiter { margin: 16px 0 0; font-size: 15px; }
.svf-hp-weiter a { font-weight: 700; }
.svf-hp-block.ist-schmal { padding-left: 6px; padding-right: 4px; }
.svf-hp-block.ist-schmal b { font-size: 15px; }

/* ---------- Eventfrog: Ticket-Schild + Startseiten-Band ---------- */
.svf-ticket-schild { display: inline-block; align-self: flex-start; margin-top: 6px; padding: 3px 10px; background: var(--svf-rot); color: #fff; font-family: var(--svf-cond); font-weight: 800; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.3; border-radius: 3px; }
.svf-ticket-band + .svf-ticket-band { border-top: 2px solid rgba(255,255,255,0.35); }
.svf-ticket-schild.ist-aus { background: var(--svf-schwarz); }
.svf-termine.ist-leiste .svf-ticket-schild { background: #fff; color: var(--svf-rot); }
.tribe-events .svf-ticket-schild { margin: 4px 0 6px; }
.svf-ticket-band { margin: 0 !important; background: var(--svf-rot); color: #fff; padding: 22px var(--svf-rand, 20px); }
.svf-ticket-innen { max-width: var(--wp--style--global--wide-size, 1340px); margin: 0 auto; display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.svf-ticket-text { display: flex; flex-direction: column; flex: 1 1 320px; color: #fff !important; text-decoration: none; }
.svf-ticket-kicker { font-family: var(--svf-cond); font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; font-size: 17px; opacity: 0.9; }
.svf-ticket-titel { font-family: var(--svf-cond); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 46px); line-height: 1; }
.svf-ticket-zahl { font-family: var(--svf-cond); font-weight: 800; text-transform: uppercase; font-size: 22px; white-space: nowrap; }
.svf-ticket-zahl b { font-size: clamp(44px, 4.5vw, 60px); line-height: 1; vertical-align: -0.12em; }
.svf-ticket-knopf { display: inline-block; background: #fff; color: var(--svf-rot) !important; font-family: var(--svf-cond); font-weight: 800; font-size: 20px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; padding: 14px 28px; white-space: nowrap; }
.svf-ticket-knopf:hover { background: var(--svf-schwarz); color: #fff !important; }
.svf-ticket-knopf.ist-aus { background: var(--svf-schwarz); color: #fff !important; }
@media (max-width: 781px) {
	.svf-ticket-band { padding: 20px; }
	.svf-ticket-innen { gap: 14px; }
	.svf-ticket-knopf { width: 100%; text-align: center; }
}

/* ---------- Bilder-Film (Galerie mit Klasse svf-film) + Erfolge je Jahr ---------- */
.wp-block-gallery.svf-film { display: flex !important; flex-wrap: nowrap !important; gap: 12px !important; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 8px; }
.wp-block-gallery.svf-film > .wp-block-image { flex: 0 0 auto !important; width: auto !important; margin: 0 !important; scroll-snap-align: start; }
.wp-block-gallery.svf-film > .wp-block-image img { height: clamp(220px, 34vw, 380px) !important; width: auto !important; max-width: none; object-fit: cover; }
.svf-film-steuerung { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.svf-film-steuerung button { width: 44px; height: 44px; border: 2px solid currentColor; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; }
.svf-film-steuerung button:hover { background: #ed1b24; border-color: #ed1b24; color: #fff; }
.wp-block-details.svf-erfolg { border-top: 2px solid #ddd6d6; padding: 14px 0; margin: 0 !important; }
.wp-block-details.svf-erfolg:last-of-type { border-bottom: 2px solid #ddd6d6; }
.wp-block-details.svf-erfolg > summary { font-family: "Barlow Condensed", "Arial Narrow", sans-serif; font-weight: 800; font-size: 28px; text-transform: uppercase; cursor: pointer; }
.wp-block-details.svf-erfolg > summary small { font-size: 17px; font-weight: 600; letter-spacing: 0.04em; color: #6b6363; margin-left: 10px; }
.wp-block-details.svf-erfolg p { margin: 14px 0 4px; font-weight: 700; }
.wp-block-details.svf-erfolg ul { margin: 0; padding-left: 20px; }
.wp-block-details.svf-erfolg li { margin: 2px 0; }
.wp-block-gallery.has-nested-images.svf-parcours-bilder figure.wp-block-image img { aspect-ratio: 4 / 3; height: auto !important; object-fit: cover; }
.wp-block-details.svf-erfolg .svf-medaille { font-size: 1.35em; line-height: 1; vertical-align: -0.12em; margin-right: 2px; }
