/* Hexenstich Kurse – Frontend. Farben folgen dem Theme (theme.json-Variablen). */
.hk-kurs, .hk-kursliste-wrap, .hk-formular {
	--hk-akzent: var(--wp--preset--color--accent-1, #8e2c48);
	--hk-text: var(--wp--preset--color--contrast, #1d1d1b);
	--hk-linie: color-mix(in srgb, var(--hk-text) 15%, transparent);
	--hk-flaeche: color-mix(in srgb, var(--hk-text) 4%, transparent);
}
.hk-kurs-template { padding-block: var(--wp--preset--spacing--50, 2.5rem); }

.hk-kursliste-wrap { overflow-x: auto; margin-block: 1.5rem; }
.hk-kursliste, .hk-termine { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.hk-kursliste th, .hk-termine th {
	text-align: left; font-weight: 600; padding: 0.6em 0.75em;
	border-bottom: 2px solid var(--hk-linie); white-space: nowrap;
}
.hk-kursliste td, .hk-termine td { padding: 0.7em 0.75em; border-bottom: 1px solid var(--hk-linie); vertical-align: middle; }
.hk-kursliste tbody tr:hover { background: var(--hk-flaeche); }
.hk-kursliste .hk-titel a { font-weight: 600; text-decoration: none; }
.hk-kursliste .hk-titel a:hover { text-decoration: underline; }
.hk-meta { display: block; font-size: 0.85em; opacity: 0.7; }
td .hk-meta { display: inline; }
.hk-kursliste .hk-titel .hk-meta { display: block; }
.hk-aktion { text-align: right; white-space: nowrap; }
.hk-termine tr.hk-vorbei td { opacity: 0.5; }

.hk-button.wp-element-button { display: inline-block; text-decoration: none; padding: 0.6em 1.1em; font-size: 0.95em; }
.hk-badge {
	display: inline-block; padding: 0.3em 0.75em; border-radius: 99px; font-size: 0.85em;
	background: var(--hk-flaeche); border: 1px solid var(--hk-linie);
}
.hk-badge--voll { color: #9b1c1c; border-color: currentColor; background: transparent; }

.hk-fakten {
	display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.75rem 1.5rem;
	margin: 0 0 1.5rem; padding: 1.25rem; background: var(--hk-flaeche); border-radius: 6px;
}
.hk-fakten dt { font-size: 0.8em; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.7; margin: 0; }
.hk-fakten dd { margin: 0.15em 0 0; font-weight: 600; }
.hk-h { margin-top: 2.5rem; font-size: var(--wp--preset--font-size--large, 1.4rem); }

.hk-buchung { margin-top: 2.5rem; scroll-margin-top: 2rem; }
.hk-formular { max-width: 42rem; }
.hk-formular fieldset { border: 0; padding: 0; margin: 0 0 1.75rem; }
.hk-formular legend { font-weight: 600; font-size: 1.05em; margin-bottom: 0.75rem; padding: 0; }
.hk-feld { margin-bottom: 1rem; flex: 1 1 14rem; }
.hk-feld--klein { flex: 0 0 12.5rem; max-width: 100%; }
.hk-reihe { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.hk-reihe--plz .hk-feld:first-child { flex: 0 1 8rem; }
.hk-feld label { display: block; font-size: 0.9em; margin-bottom: 0.3em; font-weight: 500; }
.hk-feld abbr { text-decoration: none; color: var(--hk-akzent); }
.hk-formular input[type="text"], .hk-formular input[type="email"], .hk-formular input[type="tel"],
.hk-formular select, .hk-formular textarea {
	width: 100%; box-sizing: border-box; font: inherit; padding: 0.6em 0.7em;
	border: 1px solid color-mix(in srgb, var(--hk-text) 35%, transparent); border-radius: 4px;
	background: var(--wp--preset--color--base, #fff); color: inherit;
}
.hk-formular input:focus, .hk-formular select:focus, .hk-formular textarea:focus {
	outline: 2px solid var(--hk-akzent); outline-offset: 1px; border-color: transparent;
}
.hk-check { display: flex; gap: 0.6em; align-items: flex-start; }
.hk-check input { margin-top: 0.3em; width: 1.1em; height: 1.1em; flex: none; }
.hk-check label { font-size: 1em; font-weight: 400; margin: 0; }
.hk-summe { margin: 0.25rem 0 0; }
.hk-klein { font-size: 0.85em; opacity: 0.8; }
.hk-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

.hk-hinweis { padding: 1rem 1.25rem; border-radius: 6px; background: var(--hk-flaeche); border-left: 4px solid var(--hk-linie); margin-bottom: 1.5rem; }
.hk-hinweis p:first-child { margin-top: 0; } .hk-hinweis p:last-child, .hk-hinweis ul:last-child { margin-bottom: 0; }
.hk-hinweis--ok { border-left-color: #2e7d32; background: color-mix(in srgb, #2e7d32 8%, transparent); }
.hk-hinweis--fehler { border-left-color: #b3261e; background: color-mix(in srgb, #b3261e 7%, transparent); }

@media (max-width: 640px) {
	.hk-kursliste thead { position: absolute; left: -9999px; }
	.hk-kursliste, .hk-kursliste tbody, .hk-kursliste tr, .hk-kursliste td { display: block; width: 100%; }
	.hk-kursliste tr { border: 1px solid var(--hk-linie); border-radius: 6px; padding: 0.75rem; margin-bottom: 0.75rem; }
	.hk-kursliste tr, .hk-kursliste td { box-sizing: border-box; }
	.hk-kursliste td { border: 0; padding: 0.2em 0; text-align: right; overflow: hidden; }
	.hk-kursliste td::before { content: attr(data-label); float: left; opacity: 0.65; font-size: 0.85em; margin-right: 1rem; }
	.hk-kursliste td.hk-titel { font-size: 1.05em; padding-bottom: 0.4em; text-align: left; }
	.hk-kursliste td.hk-titel::before, .hk-kursliste td.hk-aktion::before { content: none; }
	.hk-kursliste td.hk-aktion { text-align: left; padding-top: 0.6em; }
	.hk-termine th, .hk-termine td { padding: 0.5em 0.4em; }
}
