/* ==========================================================================
   Veranstaltungskalender – Frontend
   Farben, Schrift und Ecken kommen aus "Veranstaltungen → Darstellung"
   (als CSS-Variablen). Stil "Ohne Plugin-CSS" lädt diese Datei nicht.
   ========================================================================== */

.vkal {
	--vkal-akzent: #c43400;
	--vkal-tipp: #222222;
	--vkal-text: #000000;
	--vkal-grau: #666666;
	--vkal-karte: #ffffff;
	--vkal-vergangen-bg: #f0f0f0;
	--vkal-linie: #e5e5e5;
	--vkal-radius: 0px;
	--vkal-font-titel: inherit;
	--vkal-font-text: inherit;
}

/* --- Grundlayout (beide Stile) ------------------------------------------ */

.vkal:where(:not(.vkal--stil-ohne)) {
	color: var(--vkal-text);
	font-family: var(--vkal-font-text);
}

.vkal:where(:not(.vkal--stil-ohne)) .vkal-gruppe { display: flex; flex-direction: column; gap: 12px; }

.vkal:where(:not(.vkal--stil-ohne)) .vkal-item {
	display: flex;
	gap: 16px;
	padding: 16px;
	background: var(--vkal-karte);
	border-radius: var(--vkal-radius);
}

.vkal:where(:not(.vkal--stil-ohne)) .vkal-datum {
	flex: 0 0 auto;
	width: 58px;
	height: 62px;
	border-radius: var(--vkal-radius);
	background: var(--vkal-akzent);
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	line-height: 1.05;
	text-align: center;
}
.vkal:where(:not(.vkal--stil-ohne)) .vkal-tag { font-family: var(--vkal-font-titel); font-size: 26px; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-mon { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.vkal--ohne-datum .vkal-datum { display: none !important; }

.vkal:where(:not(.vkal--stil-ohne)) .vkal-inhalt { flex: 1 1 auto; min-width: 0; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-inhalt p { margin: 3px 0; }

.vkal:where(:not(.vkal--stil-ohne)) .vkal-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-badge {
	display: inline-block;
	padding: 2px 7px;
	font-size: 10px;
	line-height: 15px;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: #fff;
	background: var(--vkal-grau);
	border-radius: min(var(--vkal-radius), 3px);
}
.vkal:where(:not(.vkal--stil-ohne)) .vkal-badge--tipp { background: var(--vkal-tipp); }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-badge--laufend { background: var(--vkal-akzent); }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-badge--kat { background: var(--vkal-linie); color: var(--vkal-text); }

.vkal:where(:not(.vkal--stil-ohne)) .vkal-titel {
	margin: 0 0 4px;
	font-family: var(--vkal-font-titel);
	font-size: 22px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--vkal-text);
}
.vkal:where(:not(.vkal--stil-ohne)) .vkal-titel a { color: inherit; text-decoration: none; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-titel a:hover { color: var(--vkal-akzent); }

.vkal:where(:not(.vkal--stil-ohne)) .vkal-zeit { font-size: 14px; font-weight: 700; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-ort,
.vkal:where(:not(.vkal--stil-ohne)) .vkal-veranstalter { font-size: 13px; color: var(--vkal-grau); }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-text { font-size: 14px; line-height: 1.6; margin-top: 8px !important; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-bild img { display: block; margin: 8px 0; max-width: 100%; height: auto; border-radius: var(--vkal-radius); }

.vkal:where(:not(.vkal--stil-ohne)) .vkal-links { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px !important; font-size: 13px; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-mehr { color: var(--vkal-akzent); text-decoration: none; font-weight: 700; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-mehr:hover { text-decoration: underline; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-quelle { color: var(--vkal-grau); }

/* Vergangene Termine */
.vkal:where(:not(.vkal--stil-ohne)) .vkal-item--vergangen { background: var(--vkal-vergangen-bg); }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-item--vergangen .vkal-datum { background: var(--vkal-grau); }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-item--vergangen .vkal-titel,
.vkal:where(:not(.vkal--stil-ohne)) .vkal-item--vergangen .vkal-zeit { color: var(--vkal-grau); }
.vkal--durchstreichen .vkal-item--vergangen .vkal-titel { text-decoration: line-through; text-decoration-thickness: 1px; }

.vkal:where(:not(.vkal--stil-ohne)) .vkal-vergangen-block { margin-top: 32px; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-vergangen-block > summary { cursor: pointer; margin-bottom: 12px; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-leer { color: var(--vkal-grau); font-style: italic; }

/* Widget (kompakt) */
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget .vkal-gruppe,
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget { display: block; }
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget .vkal-item {
	padding: 12px 0;
	gap: 12px;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--vkal-linie);
	border-radius: 0;
	box-shadow: none;
}
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget .vkal-item:first-child { padding-top: 0; }
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget .vkal-datum { width: 46px; height: 50px; }
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget .vkal-tag { font-size: 20px; }
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget .vkal-titel { font-size: 17px; }
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget .vkal-zeit { font-size: 12px; font-weight: 400; }
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget .vkal-ort { font-size: 12px; }
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget .vkal-badges { margin-bottom: 3px; }
.vkal:where(:not(.vkal--stil-ohne)).vkal-widget .vkal-badge { font-size: 9px; padding: 1px 5px; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-alle { margin: 12px 0 0; font-size: 13px; font-weight: 700; }
.vkal:where(:not(.vkal--stil-ohne)) .vkal-alle a { color: var(--vkal-akzent); text-decoration: none; }

/* --- Stil: Magazin (passend zu FlatNews) --------------------------------- */

.vkal--stil-magazin .vkal-monat,
.vkal--stil-magazin .vkal-vergangen-block > summary {
	margin: 32px 0 14px;
	padding: 0;
	border-bottom: 2px solid var(--vkal-akzent);
	font-size: 16px;
	line-height: 1;
	list-style: none;
}
.vkal--stil-magazin .vkal-monat:first-child { margin-top: 0; }
.vkal--stil-magazin .vkal-monat span,
.vkal--stil-magazin .vkal-vergangen-block > summary span {
	display: inline-block;
	padding: 5px 9px;
	background: var(--vkal-akzent);
	color: #fff;
	font-family: var(--vkal-font-titel);
	font-weight: 700;
	border-radius: min(var(--vkal-radius), 4px) min(var(--vkal-radius), 4px) 0 0;
}
.vkal--stil-magazin .vkal-vergangen-block > summary::-webkit-details-marker { display: none; }
.vkal--stil-magazin .vkal-vergangen-block > summary span::after { content: " ▾"; }
.vkal--stil-magazin .vkal-vergangen-block:not([open]) > summary span::after { content: " ▸"; }
.vkal--stil-magazin .vkal-vergangen-block > summary span { background: var(--vkal-grau); }
.vkal--stil-magazin .vkal-vergangen-block > summary { border-bottom-color: var(--vkal-grau); }

.vkal--stil-magazin .vkal-item { border: 1px solid var(--vkal-linie); }
.vkal--stil-magazin .vkal-item--tipp { box-shadow: inset 4px 0 0 var(--vkal-tipp); }
.vkal--stil-magazin .vkal-item--laufend { box-shadow: inset 4px 0 0 var(--vkal-akzent); }

/* --- Stil: Modern -------------------------------------------------------- */

.vkal--stil-modern .vkal-monat {
	margin: 28px 0 12px;
	padding-bottom: 6px;
	border-bottom: 1px solid var(--vkal-linie);
	font-family: var(--vkal-font-titel);
	font-size: 20px;
	font-weight: 400;
	color: var(--vkal-akzent);
}
.vkal--stil-modern .vkal-monat:first-child { margin-top: 0; }
.vkal--stil-modern .vkal-vergangen-block > summary { font-weight: 700; color: var(--vkal-grau); }
.vkal--stil-modern .vkal-item {
	border: 1px solid var(--vkal-linie);
	box-shadow: 0 1px 3px rgba(0, 0, 0, .06);
}
.vkal--stil-modern .vkal-item--tipp { border-left: 4px solid var(--vkal-tipp); }
.vkal--stil-modern .vkal-item--laufend { border-left: 4px solid var(--vkal-akzent); }
.vkal--stil-modern .vkal-badge { border-radius: 999px; }

/* --- Mobil -------------------------------------------------------------- */

@media (max-width: 480px) {
	.vkal:where(:not(.vkal--stil-ohne)) .vkal-item { gap: 12px; padding: 12px; }
	.vkal:where(:not(.vkal--stil-ohne)) .vkal-datum { width: 48px; height: 52px; }
	.vkal:where(:not(.vkal--stil-ohne)) .vkal-tag { font-size: 21px; }
	.vkal:where(:not(.vkal--stil-ohne)) .vkal-titel { font-size: 19px; }
}
