/* VPH eLecture – Darstellung des Veranstaltungsinhalts (.vph-electure)
   Bewusst gekapselt & dezent, damit es sich in jedes Theme einfügt.
   Farben/Abstände über CSS-Variablen anpassbar. */

.vph-electure {
	/* VPH-Markenfarben (virtuelle-ph.at). */
	--vph-accent: #d54d13;          /* CTA-Orange (Anmeldung) */
	--vph-accent-hover: #aa3e0f;
	--vph-accent-ink: #ffffff;
	--vph-room: #006f95;            /* VPH-Blau dunkel (Lernraum) */
	--vph-room-hover: #00567a;
	--vph-room-ink: #ffffff;
	/* Gemeinsame Neutraltöne/Tokens (identisch zum MOOC- & Showcase-Plugin). */
	--vph-ink: #353c44;
	--vph-muted: #586577;
	--vph-line: #e3e9ef;
	--vph-bg-soft: #f4f8fb;
	--vph-radius: 11px;
	--vph-shadow: 0 1px 2px rgba(15,40,70,.06), 0 6px 16px -4px rgba(15,40,70,.10);

	font-size: 16px;
	line-height: 1.6;
	color: inherit;
}

.vph-electure * { box-sizing: border-box; }

/* Kopfbereich: Logo + Aktionen */
.vph-electure__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0 0 18px;
}
.vph-electure__logo img {
	height: auto;
	max-height: 64px;
	width: auto;
	margin: 0;
	float: none;
}
.vph-electure__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

/* Buttons */
.vph-electure .vph-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	line-height: 1.1;
	text-decoration: none;
	transition: transform .08s ease, box-shadow .15s ease, opacity .15s ease;
	box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.vph-electure .vph-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.vph-electure .vph-btn:focus-visible { outline: 3px solid rgba(0,152,212,.45); outline-offset: 2px; }
/* Textfarbe in ALLEN Zuständen erzwingen – verhindert das blaue Theme-Hover. */
.vph-electure .vph-btn,
.vph-electure .vph-btn:link,
.vph-electure .vph-btn:visited,
.vph-electure .vph-btn:hover,
.vph-electure .vph-btn:focus,
.vph-electure .vph-btn:active {
	color: #fff !important;
	text-decoration: none !important;
}
.vph-electure .vph-btn--primary { background: var(--vph-accent); }
.vph-electure .vph-btn--primary:hover { background: var(--vph-accent-hover); }
.vph-electure .vph-btn--room    { background: var(--vph-room); }
.vph-electure .vph-btn--room:hover { background: var(--vph-room-hover); }
/* Button-Icons (als CSS-Hintergrund – überleben das Re-Speichern im Block-Editor). */
.vph-electure .vph-btn::before {
	content: "";
	width: 1.2em;
	height: 1.2em;
	flex: 0 0 auto;
	background: center / contain no-repeat;
}
.vph-electure .vph-btn--primary::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20330%20391%27%20fill%3D%27%23ffffff%27%3E%3Cg%20transform%3D%27matrix%281%2C0%2C0%2C1%2C0%2C-970.746%29%27%3E%3Cg%20transform%3D%27matrix%280.0938704%2C0%2C0%2C0.157602%2C0%2C970.746%29%27%3E%3Cg%20transform%3D%27matrix%281.02385%2C0%2C0%2C1%2C-8.79776%2C0%29%27%3E%3Cg%20transform%3D%27matrix%2814.9836%2C0%2C0%2C9.13727%2C-104400%2C-50354.2%29%27%3E%3Cpath%20d%3D%27M7103.62%2C5541.97C7126.08%2C5542.05%207148.36%2C5549.57%207166.18%2C5562.95L7157.5%2C5574.52C7132.17%2C5555.51%207096.71%2C5551.17%207067.51%2C5563.85C7039.62%2C5575.95%207018.6%2C5602.89%207014.12%2C5633.44C7008.75%2C5670.12%207028.12%2C5709.4%207062.31%2C5726.92C7091.99%2C5742.14%207130.12%2C5739.15%207157.31%2C5718.85L7157.5%2C5718.71L7166.18%2C5730.28C7143.7%2C5747.15%207114.23%2C5754.41%207086.45%2C5749.9C7054.44%2C5744.69%207025.36%2C5723.69%207010.3%2C5694.52C6995.29%2C5665.46%206995.01%2C5629.2%207009.73%2C5599.83C7026.87%2C5565.61%207063.76%2C5542.15%207103.01%2C5541.97C7103.21%2C5541.97%207103.42%2C5541.97%207103.62%2C5541.97Z%27%2F%3E%3C%2Fg%3E%3Cg%20transform%3D%27matrix%2810.4049%2C0%2C0%2C6.34508%2C-4159.23%2C-2694.12%29%27%3E%3Cpath%20d%3D%27M595.71%2C539.524C615.665%2C539.715%20635.455%2C547.519%20650.059%2C561.115C668.849%2C578.609%20678.436%2C605.388%20675.034%2C630.826C670.628%2C663.783%20643.91%2C692.768%20610.424%2C699.193C585.39%2C703.996%20558.268%2C696.161%20539.62%2C678.38C520.54%2C660.188%20511.331%2C632.289%20515.806%2C606.332C520.227%2C580.681%20537.931%2C557.733%20561.597%2C546.851C572.267%2C541.945%20584.171%2C539.488%20595.71%2C539.524ZM594.803%2C560.357C573.341%2C560.562%20552.376%2C573.243%20542.333%2C592.268C533.706%2C608.61%20533.297%2C628.981%20541.198%2C645.625C552.405%2C669.234%20580.086%2C683.8%20606.498%2C678.733C630.714%2C674.086%20650.904%2C652.915%20654.334%2C628.437C656.991%2C609.472%20649.883%2C589.416%20635.862%2C576.363C625.038%2C566.285%20610.296%2C560.498%20595.578%2C560.357C595.32%2C560.356%20595.061%2C560.356%20594.803%2C560.357Z%27%2F%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fg%3E%3C%2Fsvg%3E"); }
.vph-electure .vph-btn--room::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23ffffff%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Crect%20x%3D%272%27%20y%3D%276%27%20width%3D%2713%27%20height%3D%2712%27%20rx%3D%272%27%2F%3E%3Cpath%20d%3D%27M15%2010l6-3v10l-6-3z%27%2F%3E%3C%2Fsvg%3E"); }

/* Meta-Chips */
.vph-electure__meta {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.vph-electure__meta .vph-chip {
	background: var(--vph-bg-soft);
	border: 1px solid var(--vph-line);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 0.85rem;
	color: inherit;
}
.vph-electure__meta .vph-chip__label {
	color: var(--vph-muted);
	font-weight: 700;
	margin-right: 4px;
}

/* Termine (nur wenn die LV mehrere hat) */
.vph-electure__dates {
	margin: 0 0 18px;
	padding: 12px 16px;
	background: var(--vph-bg-soft);
	border: 1px solid var(--vph-line);
	border-radius: var(--vph-radius);
	box-shadow: var(--vph-shadow);
}
.vph-electure__dates-label { display: block; font-weight: 700; color: var(--vph-ink); margin-bottom: 6px; }
.vph-electure__dates ul { list-style: none; margin: 0; padding: 0; }
.vph-electure__dates li { padding: 3px 0; color: var(--vph-muted); font-size: 0.9375rem; }
.vph-electure__dates li + li { border-top: 1px solid var(--vph-line); }

/* Beschreibung */
.vph-electure__desc { margin: 0 0 18px; }
.vph-electure__desc p:last-child { margin-bottom: 0; }

/* Einklappbare Abschnitte */
.vph-electure__sec {
	border: 1px solid var(--vph-line);
	border-radius: var(--vph-radius);
	margin: 0 0 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: var(--vph-shadow);
}
.vph-electure__sec > summary {
	cursor: pointer;
	list-style: none;
	padding: 12px 16px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: var(--vph-bg-soft);
	user-select: none;
}
.vph-electure__sec > summary::-webkit-details-marker { display: none; }
.vph-electure__sec > summary::after {
	content: "▾";
	color: var(--vph-muted);
	transition: transform .15s ease;
}
.vph-electure__sec[open] > summary::after { transform: rotate(180deg); }
.vph-electure__sec-body { padding: 14px 16px; }
.vph-electure__sec-body a { word-break: break-word; }

/* Schmale Bildschirme */
@media (max-width: 600px) {
	.vph-electure__head { flex-direction: column; align-items: flex-start; }
	.vph-electure__actions { width: 100%; }
	.vph-electure .vph-btn { flex: 1 1 auto; justify-content: center; }
}
