/* =====================================================================
   JHS Kurse – Widgets "Details & Buchung" und "Infos"
   Schlichtes Design: Trennlinien statt Karten, ruhige Typografie,
   Akzent- und Buttonfarbe #FF0013.
   ===================================================================== */
.jhs-ang,
.jhs-info {
	--jhs-accent: #FF0013;
	--jhs-btn-bg: #FF0013;
	--jhs-btn-bg-hover: #D60010;
	--jhs-btn-color: #ffffff;
	--jhs-text: #1f2125;
	--jhs-muted: #74777d;
	--jhs-border: #e6e7e9;
	--jhs-row-bg: transparent;
	--jhs-panel: transparent;
	--jhs-badge: #4a4d52;
	--jhs-radius: 6px;
	--jhs-card-radius: 0px;
	color: var(--jhs-text);
	font-size: 15px;
	line-height: 1.5;
}
.jhs-ang *, .jhs-info * { box-sizing: border-box; }
.jhs-ang .jhs-ico, .jhs-info .jhs-ico { flex: 0 0 auto; display: inline-block; vertical-align: middle; }
.jhs-ang [hidden], .jhs-info [hidden] { display: none !important; }

/* ---------- Ort-Umschalter ---------- */
.jhs-ang__orte { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.jhs-ang__orte-label { color: var(--jhs-muted); font-size: .9em; margin-right: 4px; }
.jhs-ang__ort {
	appearance: none; cursor: pointer; font: inherit; font-size: .92em; line-height: 1.2;
	padding: 7px 14px; border-radius: 999px;
	background: transparent; color: var(--jhs-text);
	border: 1px solid var(--jhs-border);
	transition: border-color .15s, color .15s;
}
.jhs-ang__ort:hover { border-color: var(--jhs-text); }
.jhs-ang__ort[aria-pressed="true"] { border-color: var(--jhs-accent); color: var(--jhs-accent); font-weight: 600; }
.jhs-ang__ort:focus-visible { outline: 2px solid var(--jhs-accent); outline-offset: 2px; }

/* ---------- Details & Buchung ---------- */
.jhs-ang__row {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 32px;
	padding: 24px 0;
	background: var(--jhs-row-bg);
	border-bottom: 1px solid var(--jhs-border);
	border-radius: var(--jhs-card-radius);
}
.jhs-ang__orte + .jhs-ang__row,
.jhs-ang > .jhs-ang__row:first-child { border-top: 1px solid var(--jhs-border); }

.jhs-ang__titel { font-weight: 700; font-size: 1.12em; margin-bottom: 10px; }
.jhs-ang__dl { display: flex; flex-wrap: wrap; gap: 6px 28px; margin: 0 0 10px; }
.jhs-ang__dl > div { display: flex; gap: 8px; }
.jhs-ang__dl dt { margin: 0; color: var(--jhs-muted); font-weight: 400; }
.jhs-ang__dl dd { margin: 0; }

.jhs-ang__zeiten { margin: 0 0 10px; }
.jhs-ang__zeiten summary {
	cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px;
	color: var(--jhs-text); font-size: .93em; text-decoration: underline; text-underline-offset: 3px;
	text-decoration-color: var(--jhs-border);
}
.jhs-ang__zeiten summary:hover { text-decoration-color: currentColor; }
.jhs-ang__zeiten summary::-webkit-details-marker { display: none; }
.jhs-ang__zeiten summary::after {
	content: ""; width: 6px; height: 6px; margin-top: -3px;
	border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg); transition: transform .2s;
}
.jhs-ang__zeiten[open] summary::after { transform: rotate(-135deg); margin-top: 3px; }
.jhs-ang__zeiten > div { margin-top: 6px; color: var(--jhs-muted); font-size: .93em; }

.jhs-ang__badge {
	position: relative; display: inline-flex; align-items: center; gap: 6px;
	color: var(--jhs-badge); font-size: .9em;
}
.jhs-ang__badge svg:first-child { color: var(--jhs-accent); }
.jhs-ang__badge .jhs-ico { width: 15px; height: 15px; color: var(--jhs-muted); }

/* Tooltips */
.jhs-ang [data-tip], .jhs-info [data-tip] { cursor: help; position: relative; }
.jhs-ang [data-tip]:hover::after, .jhs-ang [data-tip]:focus::after,
.jhs-info [data-tip]:hover::after, .jhs-info [data-tip]:focus::after {
	content: attr(data-tip);
	position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20;
	width: max-content; max-width: 260px;
	background: #1f2125; color: #fff; padding: 8px 11px; border-radius: 6px;
	font-size: 13px; font-weight: 400; line-height: 1.45;
}

.jhs-ang__buchung {
	background: var(--jhs-panel);
	display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 6px;
}
.jhs-ang__termin-label { display: block; color: var(--jhs-muted); font-size: .85em; }
.jhs-ang__termin-datum { display: block; font-size: .93em; }
.jhs-ang__preis { font-size: 1.6em; font-weight: 700; line-height: 1.1; margin-top: 6px; }
.jhs-ang__preis small { font-size: .5em; font-weight: 400; color: var(--jhs-muted); }
.jhs-ang__buttons { margin-top: 8px; width: 100%; }
.jhs-ang__btngroup { display: flex; flex-direction: column; gap: 6px; }
.jhs-ang__btn {
	display: block; text-align: center;
	background: var(--jhs-btn-bg); color: var(--jhs-btn-color) !important;
	font-weight: 600; text-decoration: none !important; line-height: 1.2;
	padding: 12px 16px; border-radius: var(--jhs-radius);
	transition: background .15s;
}
.jhs-ang__btn:hover { background: var(--jhs-btn-bg-hover); }
.jhs-ang__btn + .jhs-ang__btn { background: transparent; color: var(--jhs-btn-bg) !important; box-shadow: inset 0 0 0 1.5px var(--jhs-btn-bg); }
.jhs-ang__btn + .jhs-ang__btn:hover { background: var(--jhs-btn-bg); color: var(--jhs-btn-color) !important; }

@media (max-width: 767px) {
	.jhs-ang__row { grid-template-columns: 1fr; gap: 14px; padding: 20px 0; }
	.jhs-ang__dl { flex-direction: column; gap: 4px; }
	.jhs-ang__buchung {
		display: grid; grid-template-columns: 1fr auto; align-items: end; text-align: left; gap: 4px 12px;
	}
	.jhs-ang__preis { text-align: right; margin: 0; }
	.jhs-ang__buttons { grid-column: 1 / -1; }
}

/* ---------- Infos ---------- */
.jhs-info__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: .93em; color: var(--jhs-muted); }
.jhs-info__rating strong { color: var(--jhs-text); }
.jhs-info__stars { display: inline-flex; color: var(--jhs-accent); }
.jhs-info__stars .jhs-ico { width: 15px; height: 15px; }

.jhs-info__grid {
	display: grid;
	grid-template-columns: repeat(var(--jhs-info-cols, 3), minmax(0, 1fr));
	gap: 22px 28px;
}
.jhs-info__tile {
	display: flex; gap: 12px; align-items: flex-start;
	background: var(--jhs-info-bg, transparent); border-radius: var(--jhs-card-radius);
	padding: var(--jhs-info-pad, 0);
}
.jhs-info__icon { flex: 0 0 auto; color: var(--jhs-accent); padding-top: 1px; }
.jhs-info__icon .jhs-ico { width: 22px; height: 22px; }
.jhs-info__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.jhs-info__label { font-size: .85em; color: var(--jhs-muted); }
.jhs-info__val { font-weight: 600; display: block; }
.jhs-info__sub { display: block; color: var(--jhs-muted); font-size: .95em; }
.jhs-info__tip { display: inline-block; vertical-align: -3px; margin-left: 4px; color: var(--jhs-muted); }
.jhs-info__tip .jhs-ico { width: 16px; height: 16px; }
.jhs-info__link {
	display: inline-block; margin-top: 3px; font-size: .9em;
	color: var(--jhs-text) !important; text-decoration: underline !important;
	text-decoration-color: var(--jhs-border) !important; text-underline-offset: 3px;
}
.jhs-info__link:hover { color: var(--jhs-accent) !important; text-decoration-color: currentColor !important; }
.jhs-info__orte { display: flex; flex-direction: column; gap: 12px; margin-top: 2px; }
.jhs-info__ort { display: flex; flex-direction: column; }

@media (max-width: 1024px) { .jhs-info__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) {
	.jhs-info__grid { grid-template-columns: 1fr; }
	.jhs-info .jhs-info__tile--wide { grid-column: auto !important; }
}

/* ---------- Kursliste ---------- */
.jhs-liste {
	--jhs-accent: #FF0013;
	--jhs-btn-bg: #FF0013;
	--jhs-btn-bg-hover: #D60010;
	--jhs-btn-color: #ffffff;
	--jhs-text: #1f2125;
	--jhs-muted: #74777d;
	--jhs-border: #e6e7e9;
	--jhs-card-bg: #ffffff;
	--jhs-karte-radius: 10px;
	--jhs-bild-breite: 34%;
	color: var(--jhs-text); font-size: 15px; line-height: 1.5;
}
.jhs-liste * { box-sizing: border-box; }
.jhs-liste [hidden] { display: none !important; }
.jhs-liste__filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.jhs-liste__chip {
	appearance: none; cursor: pointer; font: inherit; font-size: .93em; font-weight: 600; line-height: 1.2;
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px; border-radius: 6px;
	background: transparent; color: var(--jhs-text); border: 1px solid var(--jhs-border);
	transition: border-color .15s, color .15s, background .15s;
}
.jhs-liste__chip .jhs-ico { color: var(--jhs-accent); }
.jhs-liste__chip:hover { border-color: var(--jhs-accent); }
.jhs-liste__chip[aria-pressed="true"] { background: var(--jhs-accent); border-color: var(--jhs-accent); color: #fff; }
.jhs-liste__chip[aria-pressed="true"] .jhs-ico { color: #fff; }
.jhs-liste__chip:focus-visible { outline: 2px solid var(--jhs-accent); outline-offset: 2px; }

.jhs-liste__grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.jhs-liste--zwei .jhs-liste__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.jhs-karte {
	display: grid; grid-template-columns: var(--jhs-bild-breite) minmax(0, 1fr);
	background: var(--jhs-card-bg); border: 1px solid var(--jhs-border); border-radius: var(--jhs-karte-radius);
	overflow: hidden; transition: border-color .15s;
}
.jhs-karte:hover { border-color: #cfd1d4; }
.jhs-karte__bild { position: relative; display: block; min-height: 190px; background: #f2f3f4; }
.jhs-karte__bild img, .jhs-karte__platzhalter { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.jhs-karte__badge {
	position: absolute; left: 12px; bottom: 12px;
	background: #fff; color: var(--jhs-text); font-size: .8em; font-weight: 700;
	padding: 4px 9px; border-radius: 4px; box-shadow: 0 1px 3px rgba(0,0,0,.15);
	border-left: 3px solid var(--jhs-accent);
}
.jhs-karte__body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; min-width: 0; }
.jhs-karte__titel { margin: 0; font-size: 1.1em; font-weight: 700; line-height: 1.3; }
.jhs-karte__titel a { color: inherit !important; text-decoration: none !important; }
.jhs-karte__titel a:hover { color: var(--jhs-accent) !important; }
.jhs-karte__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .9em; }
.jhs-karte__empf { display: inline-flex; align-items: center; gap: 5px; color: var(--jhs-muted); }
.jhs-karte__empf strong { color: var(--jhs-text); }
.jhs-karte__empf .jhs-ico { width: 15px; height: 15px; color: var(--jhs-accent); }
.jhs-karte__verleih { display: inline-flex; align-items: center; gap: 5px; color: var(--jhs-muted); }
.jhs-karte__verleih svg { color: var(--jhs-accent); }
.jhs-karte__fuss { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 6px; }
.jhs-karte__text { display: flex; flex-direction: column; font-size: .93em; }
.jhs-karte__lvl { color: var(--jhs-muted); }
.jhs-karte__kauf { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: 0 0 auto; }
.jhs-karte__preis { white-space: nowrap; }
.jhs-karte__preis strong { font-size: 1.45em; font-weight: 700; }
.jhs-karte__preis small { font-size: .85em; color: var(--jhs-muted); }
.jhs-karte__btn {
	display: inline-block; background: var(--jhs-btn-bg); color: var(--jhs-btn-color) !important;
	font-weight: 600; text-decoration: none !important; line-height: 1.2;
	padding: 10px 18px; border-radius: 6px; transition: background .15s; white-space: nowrap;
}
.jhs-karte__btn:hover { background: var(--jhs-btn-bg-hover); }

/* 2 nebeneinander: Inhalt kompakter */
.jhs-liste--zwei .jhs-karte { --jhs-bild-breite: 38%; }
.jhs-liste--zwei .jhs-karte__fuss { flex-direction: column; align-items: stretch; }
.jhs-liste--zwei .jhs-karte__kauf { flex-direction: row; align-items: center; justify-content: space-between; }

@media (max-width: 900px) {
	.jhs-liste--zwei .jhs-liste__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.jhs-karte, .jhs-liste--zwei .jhs-karte { grid-template-columns: 1fr; }
	.jhs-karte__bild { min-height: 0; aspect-ratio: 16 / 9; }
	.jhs-karte__fuss { flex-direction: column; align-items: stretch; }
	.jhs-karte__kauf { flex-direction: row; align-items: center; justify-content: space-between; }
	.jhs-liste__chip { padding: 8px 12px; }
}
