/* KickOff-Editor — Inhalts-Styles im Frontend (Bild-Block etc.) */
.ko-img { margin: 1.4em 0; }
.ko-img img, .ko-img .ko-img-el { max-width: 100%; height: auto; display: block; border-radius: 10px; }
.ko-img figcaption { font-size: .85em; color: #6b7280; margin-top: 6px; line-height: 1.4; }
.ko-img .ko-img-credit { font-style: italic; }

.ko-img--center { text-align: center; }
.ko-img--center img, .ko-img--center .ko-img-el { margin-left: auto; margin-right: auto; }
.ko-img--center figcaption { text-align: center; }

.ko-img--left  { float: left;  max-width: 50%; margin: .35em 1.6em 1em 0; }
.ko-img--right { float: right; max-width: 50%; margin: .35em 0 1em 1.6em; }

/* §13.1 Responsive: umlaufende Bilder werden auf schmalen Displays voll breit */
@media (max-width: 640px) {
	.ko-img--left, .ko-img--right { float: none; max-width: 100%; margin: 1.2em 0; }
	.ko-img[style] { width: 100% !important; }
}

/* Video-Block */
.ko-video { margin: 1.4em 0; }
.ko-video .ko-video-el { width: 100%; height: auto; display: block; border-radius: 10px; background: #000; }
.ko-video figcaption { font-size: .85em; color: #6b7280; margin-top: 6px; line-height: 1.4; }
.ko-video--center { text-align: center; }
.ko-video--center .ko-video-el, .ko-video--center .ko-embed { margin-left: auto; margin-right: auto; }
.ko-video--left  { float: left;  max-width: 50%; margin: .35em 1.6em 1em 0; }
.ko-video--right { float: right; max-width: 50%; margin: .35em 0 1em 1.6em; }
.ko-embed { position: relative; width: 100%; padding-bottom: 56.25%; height: 0; border-radius: 10px; overflow: hidden; background: #000; }
.ko-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 640px) {
	.ko-video--left, .ko-video--right { float: none; max-width: 100%; margin: 1.2em 0; }
	.ko-video[style] { width: 100% !important; }
}

/* Galerie-Block */
.ko-gallery { margin: 1.4em 0; }
.ko-gallery--center { text-align: center; margin-left: auto; margin-right: auto; }
.ko-gallery--left  { float: left  !important; max-width: 55%; margin: .35em 1.6em 1em 0; }
.ko-gallery--right { float: right !important; max-width: 55%; margin: .35em 0 1em 1.6em; }
.ko-gallery-item { margin: 0; }
.ko-gallery-item img { display: block; width: 100%; height: auto; border-radius: 8px; }
.ko-gallery-item figcaption { font-size: .8em; color: #6b7280; margin-top: 4px; }
/* Raster — kompakt, gleichmäßige Kacheln, adaptive Spalten */
.ko-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ko-gallery--grid .ko-gallery-item img { aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
/* Slider */
.ko-gallery--slider { position: relative; }
.ko-gallery-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch; scrollbar-width: none; }
.ko-gallery-track::-webkit-scrollbar { display: none; }
.ko-gallery--slider .ko-gallery-item { flex: 0 0 72%; scroll-snap-align: start; }
.ko-gallery--slider .ko-gallery-item img { aspect-ratio: 16/9; object-fit: cover; }
.ko-gallery-prev, .ko-gallery-next { position: absolute; top: 50%; transform: translateY(-50%);
	width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(13,27,42,.75); color: #fff;
	font-size: 22px; line-height: 1; cursor: pointer; z-index: 2; }
.ko-gallery-prev { left: 8px; } .ko-gallery-next { right: 8px; }
.ko-gallery-prev:hover, .ko-gallery-next:hover { background: #0d1b2a; }
@media (max-width: 640px) {
	.ko-gallery--left, .ko-gallery--right { float: none; max-width: 100%; margin: 1.2em 0; }
	.ko-gallery[style] { width: 100% !important; }
	.ko-gallery-grid { grid-template-columns: repeat(2, 1fr); }
	.ko-gallery--slider .ko-gallery-item { flex-basis: 85%; }
}

/* Spiel-Block (Karte) */
.ko-spiel-embed { margin: 1.4em 0; }
.ko-spielcard { display: block; text-decoration: none; color: inherit; max-width: 520px;
	border: 1px solid #e5e7eb; border-radius: 12px; padding: 14px 16px; background: #fff; }
a.ko-spielcard:hover { border-color: #e8185e; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.ko-spielcard-comp { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6b7280; margin-bottom: 10px; }
.ko-spielcard-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.ko-spielcard-team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ko-spielcard-team:last-child { flex-direction: row-reverse; text-align: right; }
.ko-spielcard-team img { width: 34px; height: 34px; object-fit: contain; flex-shrink: 0; }
.ko-spielcard-name { font-weight: 700; }
.ko-spielcard-score { font-family: 'Barlow Condensed', sans-serif; font-weight: 900; font-size: 26px; color: #0d1b2a; white-space: nowrap; }
.ko-spielcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: #6b7280; }
.ko-spielcard-badge { font-weight: 700; color: #e8185e; text-transform: uppercase; letter-spacing: .04em; }
.ko-spielcard--missing { color: #b32d2e; }
@media (max-width: 640px) { .ko-spielcard-score { font-size: 22px; } }
html[data-theme="dark"] .ko-spielcard { background: #15212f; border-color: #26374b; }
html[data-theme="dark"] .ko-spielcard-name { color: #e8edf3; }
html[data-theme="dark"] .ko-spielcard-score { color: #e8edf3; }

/* Zitat / Statement (§15) */
.ko-zitat { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--ko-pink, #e21e6d); }
.ko-zitat-text { margin: 0; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 24px; line-height: 1.3; color: var(--ko-dark, #0d1b2a); }
.ko-zitat-text p { margin: 0 0 8px; }
.ko-zitat-text p:last-child { margin-bottom: 0; }
.ko-zitat-cite { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-top: 12px; font-family: inherit; }
.ko-zitat-person { font-weight: 700; color: var(--ko-dark, #0d1b2a); }
.ko-zitat-rolle { font-size: 14px; color: #64748b; }
.ko-zitat-rolle:before { content: '·'; margin-right: 8px; color: #cbd5e1; }
html[data-theme="dark"] .ko-zitat-text,
html[data-theme="dark"] .ko-zitat-person { color: #e8edf3; }
html[data-theme="dark"] .ko-zitat-rolle { color: #9db0c2; }
.ko-zitat--left  { float: left;  max-width: 50%; margin: .35em 1.8em 1em 0; }
.ko-zitat--right { float: right; max-width: 50%; margin: .35em 0 1em 1.8em; }
@media (max-width: 640px) {
	.ko-zitat--left, .ko-zitat--right { float: none; max-width: 100%; width: auto !important; margin: 28px 0; }
}

/* §11 Vereins-Block */
.ko-verein { margin: 18px 0; }
.ko-verein--full { width: 100%; }
.ko-verein--center { max-width: 480px; margin-left: auto; margin-right: auto; }
.ko-verein--left { float: left; margin: 4px 22px 12px 0; width: 46%; }
.ko-verein--right { float: right; margin: 4px 0 12px 22px; width: 46%; }
.ko-vereincard { display: flex; width: 100%; box-sizing: border-box; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; text-decoration: none; color: #0D1B2A; box-shadow: 0 1px 2px rgba(13,27,42,.04); transition: box-shadow .15s, border-color .15s; }
a.ko-vereincard:hover { border-color: #e8185e; box-shadow: 0 6px 18px rgba(232,24,94,.12); }
.ko-vereincard-logo { flex: 0 0 auto; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; }
.ko-vereincard-logo img { max-width: 54px; max-height: 54px; object-fit: contain; }
.ko-vereincard-logo--empty { border: 1px dashed #d1d5db; border-radius: 8px; }
.ko-vereincard-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ko-vereincard-name { font-weight: 800; font-size: 17px; line-height: 1.2; }
.ko-vereincard-team { font-size: 13px; color: #6b7280; }
.ko-vereincard-link { font-size: 12px; font-weight: 700; color: #e8185e; text-transform: uppercase; letter-spacing: .03em; margin-top: 4px; }
.ko-vereincard--missing { color: #b32d2e; font-size: 14px; padding: 12px 14px; border: 1px dashed #f3c0c0; border-radius: 10px; background: #fff6f6; }
@media (max-width: 600px) { .ko-verein--left, .ko-verein--right { float: none; width: 100%; margin: 16px 0; } }

/* §16 Infobox / Hinweisbox */
.ko-infobox { border-left: 4px solid #94a3b8; border-radius: 10px; padding: 14px 16px; margin: 18px 0; background: #f8fafc; }
.ko-infobox-head { display: flex; align-items: flex-start; gap: 10px; }
.ko-infobox .ko-ib-ic { flex: 0 0 auto; margin-top: 1px; }
.ko-infobox-typ { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; opacity: .85; }
.ko-infobox-title { display: block; font-size: 16px; line-height: 1.3; color: #0f172a; margin-top: 1px; }
.ko-infobox-body { margin-top: 8px; font-size: 15px; line-height: 1.6; color: #1f2937; }
.ko-infobox-body p { margin: 0 0 8px; }
.ko-infobox-body :last-child { margin-bottom: 0; }
.ko-infobox-termin { margin-top: 8px; font-weight: 600; font-size: 14px; color: #0f172a; }
.ko-infobox--info    { border-color: #2563eb; background: #eff6ff; }
.ko-infobox--info .ko-infobox-typ, .ko-infobox--info .ko-ib-ic { color: #2563eb; }
.ko-infobox--wissen  { border-color: #16a34a; background: #f0fdf4; }
.ko-infobox--wissen .ko-infobox-typ, .ko-infobox--wissen .ko-ib-ic { color: #16a34a; }
.ko-infobox--hinweis { border-color: #d97706; background: #fffbeb; }
.ko-infobox--hinweis .ko-infobox-typ, .ko-infobox--hinweis .ko-ib-ic { color: #b45309; }
.ko-infobox--update  { border-color: #e8185e; background: #fef2f6; }
.ko-infobox--update .ko-infobox-typ, .ko-infobox--update .ko-ib-ic { color: #e8185e; }
.ko-infobox--termin  { border-color: #0D1B2A; background: #f1f5f9; }
.ko-infobox--termin .ko-infobox-typ, .ko-infobox--termin .ko-ib-ic { color: #0D1B2A; }

/* §17 Spielplan-/Ergebnis-Ausschnitt — nutzt die Original-Liga-Styles (.ko-spiel*) */
.ko-spielplan-ausschnitt { margin: 18px 0; }
a.ko-spiel--link { display: block; text-decoration: none; color: inherit; }
a.ko-spiel--link:hover { background: #f1f5f9; }
a.ko-spiel--link .ko-team-name { text-decoration: none; }
.ko-spielplan-ausschnitt--empty { color: #6b7280; font-size: 14px; padding: 12px 14px; border: 1px dashed #e5e7eb; border-radius: 10px; }
