/* SP Partner – Stil „Sammelkarte“ (Tokens wie LSDB, Teamprofil, SP Events). Breakpoints per Container Query. */
.sppa {
	--sppa-blau: var(--wp--preset--color--accent-1, #2a7de1);
	--sppa-kiste: #387be8;
	--sppa-orange: var(--wp--preset--color--accent-2, #ffc000);
	--sppa-text: #e9eefb;
	--sppa-muted: #9fb3d6;
	--sppa-panel: rgba(16, 17, 41, .72);
	--sppa-linie: rgba(100, 160, 255, .3);
	--sppa-max: 1180px;
	container: sppa / inline-size;
	color: var(--sppa-text);
	font-family: var(--wp--preset--font-family--barlow-condensed, "Barlow Condensed", sans-serif);
	overflow-x: clip;
}
.sppa *, .sppa *::before, .sppa *::after { box-sizing: border-box; }
.sppa img { max-width: 100%; height: auto; }
.sppa button { font: inherit; }
.sppa-wrap { --sppa-rand: 2rem; --sppa-bleed: max(var(--sppa-rand), (100cqi - var(--sppa-max)) / 2 + var(--sppa-rand)); max-width: var(--sppa-max); margin: 0 auto; padding: 0 var(--sppa-rand); }
@container sppa (max-width: 700px) { .sppa-wrap { --sppa-rand: 1rem; } }
.sppa:not(.alignfull) .sppa-wrap { padding: 0; --sppa-rand: 0px; }
/* Ohne volle Breite nichts abschneiden: sonst fehlt der Glow der Kacheln am Rand (Tim, 02.12.2026) */
.sppa:not(.alignfull) { overflow: visible; }
.sppa.alignfull { overflow-clip-margin: 24px; }

.sppa .sppa-h1, .sppa .sppa-h2, .sppa .sppa-h3 { font-family: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; margin: 0; line-height: 1; color: #fff; display: block; }
.sppa .sppa-h1 { font-size: clamp(2.3rem, 5.4cqi, 4.2rem); }
.sppa .sppa-h2 { font-size: 2rem; margin: 0 0 1rem; }
.sppa .sppa-h3 { font-size: 1.3rem; }
.sppa p { font-size: 1.16rem; line-height: 1.55; font-style: italic; letter-spacing: .025em; margin: 0 0 .9rem; }
.sppa .sppa-kicker { color: var(--sppa-orange); text-transform: uppercase; letter-spacing: .12em; font-size: .9rem; font-weight: 700; font-style: normal; margin: 0 0 .4rem; }
.sppa .sppa-lead { color: #c8d6f0; max-width: 62ch; margin: 1rem 0 0; }
.sppa .sppa-crumb { display: inline-flex; gap: .4rem; align-items: center; margin: 1.2rem 0 .4rem; color: #c8d6f0; text-decoration: none; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; background: rgba(255, 255, 255, .06); border: 1px solid var(--sppa-linie); border-radius: 999px; padding: .35rem .9rem; }
.sppa .sppa-crumb:hover, .sppa .sppa-crumb:focus-visible { background: rgba(100, 160, 255, .18); }
.sppa-mod { padding: 3rem 0 1rem; }
@container sppa (max-width: 700px) { .sppa-mod { padding: 2.2rem 0 .5rem; } }
.sppa-badge { display: inline-block; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding: .18rem .55rem; border-radius: 6px; background: rgba(16, 17, 41, .82); border: 1px solid rgba(100, 160, 255, .45); color: #d6e6ff; font-style: normal; white-space: nowrap; }
.sppa .sppa-pille { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255, 255, 255, .08); border: 1px solid rgba(100, 160, 255, .35); color: #e6efff; border-radius: 999px; padding: .55rem 1.2rem; text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-style: italic; text-decoration: none; white-space: nowrap; }
.sppa .sppa-pille:hover, .sppa .sppa-pille:focus-visible { background: rgba(100, 160, 255, .2); }
.sppa .sppa-pille--glas { background: linear-gradient(135deg, rgba(42, 125, 225, .45), rgba(42, 125, 225, .18)); border-color: rgba(255, 255, 255, .35); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 18px rgba(0, 0, 0, .35); }
.sppa .sppa-chip { background: rgba(255, 255, 255, .06); color: var(--sppa-muted); border: 1px solid rgba(100, 160, 255, .25); border-radius: 7px; padding: .4rem .85rem; text-transform: uppercase; letter-spacing: .04em; font-size: .82rem; line-height: 1.3; cursor: pointer; white-space: nowrap; }
.sppa .sppa-chip:hover, .sppa .sppa-chip:focus-visible { color: #fff; border-color: rgba(100, 160, 255, .55); }
.sppa .sppa-chip[aria-pressed="true"] { background: rgba(42, 125, 225, .3); color: #fff; border-color: rgba(100, 160, 255, .7); }
.sppa-chip small { opacity: .7; margin-left: .3rem; font-size: .75rem; }

/* Kiste: Label links, Wert rechts, bündig über den rechten Rand */
.sppa-kiste { background: var(--sppa-kiste); border-radius: 16px 0 0 16px; margin: 0 calc(-1 * var(--sppa-bleed)) 0 0; display: flex; overflow-x: auto; scrollbar-width: none; padding: 0; }
.sppa:not(.alignfull) .sppa-kiste { margin-right: 0; border-radius: 16px; }
.sppa-kiste__k { padding: .75rem 1.4rem; white-space: nowrap; display: flex; flex-direction: column; justify-content: center; margin: 0; }
.sppa-kiste__k + .sppa-kiste__k { border-left: 1px solid rgba(255, 255, 255, .35); }
.sppa .sppa-kiste__l { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; font-style: italic; margin: 0; color: #fff; }
.sppa .sppa-kiste__v { font-size: 1.35rem; font-weight: 700; font-style: italic; margin: 0; color: #fff; }
@container sppa (max-width: 700px) { .sppa-kiste__k { padding: .6rem 1rem; } .sppa .sppa-kiste__v { font-size: 1.1rem; } }
.sppa-rahmen { height: 100%; border: 7px solid var(--sppa-blau); border-radius: 20px; box-shadow: 0 0 34px rgba(255, 255, 255, .14), 0 0 18px rgba(42, 125, 225, .55); overflow: hidden; background: #0b0c1e; }
.sppa-rahmen img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Einblenden (Notfall nach 2,5 s, falls das Skript hakt) */
.sppa-js .sppa-rv { opacity: 0; transform: translateY(22px); transition: opacity .45s ease, transform .45s ease; transition-delay: var(--d, 0s); }
.sppa-js .sppa-rv.sppa-in, .sppa-notfall .sppa-rv { opacity: 1; transform: none; }
.block-editor-page .sppa-rv { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .sppa-js .sppa-rv { opacity: 1; transform: none; transition: none; } }

/* Logo: Originalfarben auf transparentem Grund, keine Fläche dahinter (Tim, 25.11.2026) */
.sppa .sppa-logo { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .25s; }
.sppa-logo--text { display: grid !important; place-items: center; font-weight: 700; text-transform: uppercase; text-align: center; color: #fff; font-size: .9rem; line-height: 1.1; }

/* Referenzseite: Kopf */
.sppa-rkopf { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2.4rem; align-items: end; padding-top: 1rem; padding-bottom: 1.6rem; }
.sppa-rkopf > * { min-width: 0; }
.sppa-rkopf__wand { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.sppa .sppa-rkopf__k { aspect-ratio: 5 / 2; display: grid; place-items: center; padding: .5rem .7rem; border-radius: 10px; border: 1px solid rgba(100, 160, 255, .12); text-decoration: none; transition: border-color .25s, box-shadow .25s; }
.sppa-rkopf__k:nth-child(3n+2) .sppa-logo { opacity: .55; }
.sppa a.sppa-rkopf__k:hover, .sppa a.sppa-rkopf__k:focus-visible { border-color: rgba(100, 160, 255, .8); box-shadow: 0 0 18px rgba(42, 125, 225, .5); outline: none; }
.sppa a.sppa-rkopf__k:hover .sppa-logo, .sppa a.sppa-rkopf__k:focus-visible .sppa-logo { opacity: 1; transform: scale(1.06); }
@container sppa (max-width: 760px) { .sppa-rkopf { grid-template-columns: 1fr; gap: 1.2rem; } .sppa-rkopf__wand { display: none; } }

/* Highlights */
.sppa-hl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.sppa .sppa-hl__k { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; text-decoration: none; color: #fff; border: 1px solid rgba(100, 160, 255, .2); padding: 1rem 1.1rem 0; background: #0b0c1e; }
.sppa .sppa-hl__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.sppa-hl__k::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 17, 41, .05) 20%, rgba(16, 17, 41, .92) 78%); }
.sppa-hl__k:hover .sppa-hl__bild, .sppa-hl__k:focus-visible .sppa-hl__bild { transform: scale(1.04); }
.sppa .sppa-hl__k:hover, .sppa .sppa-hl__k:focus-visible { border-color: rgba(100, 160, 255, .65); box-shadow: 0 0 24px rgba(42, 125, 225, .35); outline: none; }
.sppa-hl__logo { height: 46px; width: 150px; margin-bottom: .6rem; }
.sppa-hl__logo .sppa-logo { object-position: left center; }
.sppa-hl__claim { display: block; font-size: 1rem; line-height: 1.35; font-style: italic; letter-spacing: .025em; color: #dbe6fb; margin: .35rem 0 .7rem; }
.sppa .sppa-hl__zahlen { display: flex; margin: 0 -1.1rem 0 0; align-self: stretch; background: var(--sppa-kiste); border-radius: 10px 0 0 0; font-style: italic; }
.sppa-hl__zahlen div { padding: .3rem .8rem .35rem; display: flex; flex-direction: column; }
.sppa-hl__zahlen div + div { border-left: 1px solid rgba(255, 255, 255, .3); }
.sppa-hl__zahlen dt { font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.sppa-hl__zahlen dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.sppa .sppa-hl__zahlen--leer { background: transparent; height: 1rem; }
.sppa-hl__typ { position: absolute; top: .7rem; right: .7rem; }
@container sppa (max-width: 900px) { .sppa-hl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container sppa (max-width: 560px) {
	.sppa-hl { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-right: calc(-1 * var(--sppa-rand)); padding-right: var(--sppa-rand); }
	.sppa .sppa-hl__k { flex: 0 0 82%; scroll-snap-align: start; }
}

/* Filter: Reiter brechen am Handy um, alle sofort sichtbar (Tim, 30.11.2026) */
.sppa-filter { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: 1.1rem; }
.sppa-treffer { margin-left: auto; color: var(--sppa-muted); font-style: italic; }
@container sppa (max-width: 700px) { .sppa-filter { gap: .35rem; } .sppa .sppa-filter .sppa-chip { padding: .3rem .6rem; font-size: .76rem; } .sppa-treffer { display: none; } }

/* Kacheln nur mit Logo: dünner Rahmen, Hover = Rahmen leuchtet, Logo minimal größer */
.sppa-wand__raster, .sppa-band__spur { position: relative; display: grid; gap: .7rem; }
.sppa-wand__raster { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.sppa-band__spur { grid-template-columns: repeat(6, minmax(0, 1fr)); padding: .3rem 0; }
@container sppa (max-width: 900px) { .sppa-band__spur { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container sppa (max-width: 700px) {
	.sppa-wand__raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
	.sppa-band__spur { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
	.sppa-band__kopf .sppa-pille { display: none; }
}
.sppa .sppa-kachel, .sppa .sppa-band__k { position: relative; display: grid; place-items: center; aspect-ratio: 5 / 2; border-radius: 14px; background: transparent; border: 1px solid rgba(100, 160, 255, .15); text-decoration: none; color: inherit; transition: border-color .25s, box-shadow .25s; }
.sppa .sppa-kachel { padding: 1rem 1.4rem; }
.sppa .sppa-band__k { padding: .7rem 1rem; border-radius: 12px; }
@container sppa (max-width: 700px) { .sppa .sppa-kachel { padding: .8rem 1rem; } .sppa .sppa-band__k { padding: .5rem .7rem; } }
.sppa .sppa-kachel[hidden], .sppa .sppa-band__k[hidden] { display: none; }
.sppa a.sppa-kachel:hover, .sppa a.sppa-kachel:focus-visible, .sppa a.sppa-band__k:hover, .sppa a.sppa-band__k:focus-visible { border-color: rgba(100, 160, 255, .8); box-shadow: 0 0 18px rgba(42, 125, 225, .5); outline: none; }
.sppa a:hover > .sppa-kachel__logo .sppa-logo, .sppa a:focus-visible > .sppa-kachel__logo .sppa-logo, .sppa a.sppa-band__k:hover .sppa-logo, .sppa a.sppa-band__k:focus-visible .sppa-logo { transform: scale(1.06); }
.sppa-kachel__logo { width: 100%; height: 100%; display: block; }
.sppa-kachel__typ { position: absolute; top: .45rem; right: .45rem; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 17, 41, .85); color: #cfe2ff; opacity: .7; }
.sppa-kachel__typ svg { width: 12px; height: 12px; }

.sppa-cta { margin-top: 2.4rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; background: var(--sppa-kiste); border-radius: 0 16px 16px 0; margin-left: calc(-1 * var(--sppa-bleed)); padding: 1.2rem 1.6rem 1.2rem var(--sppa-bleed); }
.sppa:not(.alignfull) .sppa-cta { margin-left: 0; border-radius: 16px; padding-left: 1.6rem; }
.sppa-cta .sppa-h3 { font-size: 1.5rem; }
.sppa .sppa-cta p { margin: .3rem 0 0; font-size: 1.05rem; color: #eef4ff; }
.sppa-cta > div { flex: 1 1 320px; }

/* Leiste */
.sppa-band__kopf { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.sppa .sppa-band__kopf .sppa-h2 { margin: 0; }
.sppa-band__filter { margin-bottom: .8rem; }

/* Partnerseite: Kopf */
.sppa-pkopf { display: grid; grid-template-columns: 1fr 1.15fr; gap: 2.2rem; align-items: center; padding-top: .8rem; padding-bottom: 1.6rem; }
.sppa-pkopf > * { min-width: 0; }
.sppa-pkopf__bild { aspect-ratio: 3 / 2; position: relative; }
.sppa-plakette { position: absolute; left: -22px; bottom: -22px; width: 150px; aspect-ratio: 5 / 3; border-radius: 14px; background: rgba(16, 17, 41, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 4px solid var(--sppa-blau); box-shadow: 0 0 22px rgba(255, 255, 255, .18), 0 8px 26px rgba(0, 0, 0, .5); display: grid; place-items: center; padding: .6rem .8rem; z-index: 2; }
@container sppa (max-width: 760px) {
	.sppa-pkopf { grid-template-columns: 1fr; gap: 1.6rem; }
	.sppa-pkopf__bild { order: -1; }
	.sppa-plakette { left: 10px; bottom: -18px; width: 120px; }
}

/* YouTube erst nach Klick: Vorschau (lokal gespeichert) mit Titel, mehrere als Raster (Tim, 02.12.2026) */
.sppa-vid { max-width: 760px; margin: 1.2rem 0; }
.sppa-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 1rem; margin: 1.2rem 0 1.6rem; }
.sppa-videos .sppa-vid { margin: 0; max-width: none; }
.sppa .sppa-video { position: relative; isolation: isolate; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid rgba(100, 160, 255, .2); background: #0b0c1e; cursor: pointer; padding: 0; color: #fff; text-align: left; transition: border-color .25s, box-shadow .25s; }
.sppa-video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.sppa-video::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(16, 17, 41, 0) 40%, rgba(16, 17, 41, .88) 100%); }
.sppa .sppa-video:hover, .sppa .sppa-video:focus-visible { border-color: rgba(100, 160, 255, .7); box-shadow: 0 0 24px rgba(42, 125, 225, .4); outline: none; }
.sppa-video:hover img, .sppa-video:focus-visible img { transform: scale(1.04); }
.sppa-video i { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; background: rgba(42, 125, 225, .88); box-shadow: 0 0 24px rgba(42, 125, 225, .8); transition: transform .25s; }
.sppa-video i::after { content: ""; position: absolute; left: 22px; top: 16px; border-left: 17px solid #fff; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.sppa-video:hover i, .sppa-video:focus-visible i { transform: translate(-50%, -50%) scale(1.08); }
.sppa-video__info { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .9rem .7rem; display: flex; flex-direction: column; gap: .1rem; }
.sppa-video__info b { font-weight: 700; text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sppa-video__info small { font-style: italic; font-size: .8rem; color: #cfdcf5; }
.sppa-vid iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 14px; }
@media (prefers-reduced-motion: reduce) { .sppa-video img, .sppa-video i { transition: none; } }

/* Lightbox (Videos der Partner) */
.sppa-lb { position: fixed; inset: 0; z-index: 160000; background: rgba(3, 4, 12, .95); display: flex; align-items: center; justify-content: center; }
.sppa-lb[hidden] { display: none; }
.sppa-lb iframe { width: min(92vw, 1100px, 150vh); aspect-ratio: 16 / 9; border: 0; border-radius: 10px; }
.sppa-lb__x { position: absolute; top: 2vh; right: 2vw; background: rgba(255, 255, 255, .08); border: 1px solid rgba(100, 160, 255, .4); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; }
html.sppa-lb-offen { overflow: hidden; }

/* Template „Partnerseite“: Kopf/Wand direkt unter dem Seitenkopf, kein zusätzlicher Abstand */
.sppa-tpl .sp-inhalt { margin-top: 0; }
