/* Veranstaltung als Karte: links dezentes Bild, rechts Text, unten Zeitraum, Ort und Links */
.jvs-card { margin: 0; }
.jvs-card-top { display: grid; grid-template-columns: minmax(150px, 26%) 1fr; gap: 1.5rem; align-items: start; }
.jvs-card-noimg .jvs-card-top { grid-template-columns: 1fr; }
.jvs-card-img { margin: 0; }
.jvs-card-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; opacity: .92; filter: saturate(.85); border: 1px solid rgba(0, 0, 0, .08); }
.jvs-card-img figcaption { font-size: .7rem; opacity: .6; margin-top: .3rem; }
.jvs-card-kicker { margin: 0 0 .25rem; font-size: .85rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #d9141e; }
.jvs-card-title { margin: 0 0 .6rem; font-size: 1.6rem; line-height: 1.2; }
.jvs-card-title a { text-decoration: none; color: inherit; }
.jvs-card-title a:hover { text-decoration: underline; }
.jvs-card-text > :first-child { margin-top: 0; }
.jvs-card-text > :last-child { margin-bottom: 0; }
.jvs-card-expired { margin: 0 0 .5rem; font-style: italic; opacity: .7; }
.jvs-card-meta { display: flex; flex-wrap: wrap; gap: .4rem 2rem; align-items: baseline; margin-top: 1.2rem; padding-top: .9rem; border-top: 1px solid rgba(0, 0, 0, .12); font-size: .95rem; }
.jvs-card-item { display: inline-flex; gap: .5rem; align-items: baseline; }
.jvs-card-label { font-weight: 600; flex: 0 0 auto; white-space: nowrap; }
.jvs-card-links { margin-left: auto; }
.jvs-card-links a { font-weight: 600; }
.jvs-more { margin: 1.2rem 0 0; display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1.2rem; font-size: .95rem; }
.jvs-more dt { font-weight: 600; }
.jvs-more dd { margin: 0; }
/* Theme-Elemente in der Liste ausblenden, weil Titel und Zeitraum in der Karte stehen */
li.wp-block-post.type-jvs_event .wp-block-post-title,
li.wp-block-post.type-jvs_event .wp-block-post-date { display: none; }
@media (max-width: 640px) {
	.jvs-card-top { grid-template-columns: 1fr; }
	.jvs-card-img { max-width: 260px; }
	.jvs-card-links { margin-left: 0; }
}
/* Markierungen: Kategorie und Online-Veranstaltung */
.jvs-card-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .5rem; }
.jvs-badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; line-height: 1.5; border: 1px solid rgba(0, 0, 0, .18); }
.jvs-badge-online { background: #1b6ec2; border-color: #1b6ec2; color: #fff; }
/* Bearbeiten-Link für Admins und Veranstaltungs-Manager */
.jvs-card-edit { font-weight: 600; }
.jvs-post-edit { margin: .5rem 0 0; font-size: .9rem; }

/* Die Karte hat ihren eigenen Titel: die Titelzeile des Themes (z. B. Twenty Seventeen) entfällt, damit er nur einmal erscheint */
article.type-jvs_event:has(> .entry-content .jvs-card) > .entry-header,
article.type-jvs_event:has(> .entry-content .jvs-card) > header.entry-header { display: none; }
.jvs-card-title a, .jvs-card-title a:hover, .jvs-card-title a:focus { box-shadow: none; }
.entry-content .jvs-card .jvs-card-title a, .entry-content .jvs-card .jvs-card-title a:hover { box-shadow: none; text-decoration: none; }
.entry-content .jvs-card .jvs-card-title a:hover { text-decoration: underline; }

/* Bild und Überschrift verweisen auf die Detailseite */
.jvs-card-img a, .jvs-card-kicker a { box-shadow: none; text-decoration: none; color: inherit; }
.jvs-card-img a { display: block; }
.jvs-card-img a:hover img { opacity: 1; }
.entry-content .jvs-card .jvs-card-kicker a { box-shadow: none; }
.jvs-card-kicker a:hover { text-decoration: underline; }
/* Nach-oben-Symbol unter jedem Beitrag der Liste */
.jvs-up { margin: 1rem 0 0; text-align: right; }
.jvs-up a.jvs-up-link, .entry-content a.jvs-up-link { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border: 1px solid rgba(0, 0, 0, .25); border-radius: 50%; color: #555; box-shadow: none; text-decoration: none; transition: background .2s, color .2s; }
.jvs-up a.jvs-up-link:hover, .jvs-up a.jvs-up-link:focus { background: #d9141e; border-color: #d9141e; color: #fff; }
html:has(body.blog) { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html:has(body.blog) { scroll-behavior: auto; } }
.entry-content .jvs-card .jvs-card-img a, .entry-content .jvs-card .jvs-card-img a:hover, .entry-content .jvs-card .jvs-card-img a:focus { box-shadow: none; text-decoration: none; }

/* Blog-Liste: kein Trenner zwischen Text und Zeitraum/Ort, dafür ein Abschluss ganz am Ende des Eintrags */
body.blog .jvs-card-meta { border-top: 0; padding-top: 0; margin-top: 1rem; }
body.blog .jvs-up { margin-top: .75rem; padding-bottom: 1.5rem; border-bottom: 1px solid rgba(0, 0, 0, .12); }
