/* snöw HGI - Anmeldeformular
 *
 * Design: eckig (keine Radien), Button erbt Breakdance-Styles (button-atom--primary).
 * Farben bewusst neutral/geerbt, damit das Formular dem Theme folgt.
 */

.snoew-anmeldung-form {
	--snoew-line: rgba(0, 0, 0, 0.1);
	--snoew-muted: rgba(0, 0, 0, 0.55);
	max-width: none;
	margin: 0;
}

/* Abschnitt = eine Zeile im selben Raster wie die Kursdaten-Tabelle:
   Titel links (Versalien), Felder rechts. */
.snoew-fieldset {
	display: grid;
	grid-template-columns: minmax(160px, 220px) 1fr;
	gap: 8px 24px;
	align-items: start;
	border: 0;
	border-top: 1px solid var(--snoew-line);
	padding: 22px 0;
	margin: 0;
	min-width: 0;
}

.snoew-fieldset:last-of-type {
	border-bottom: 1px solid var(--snoew-line);
}

.snoew-fieldset--actions {
	border-bottom: 0;
}

.snoew-fieldset__title {
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--snoew-muted);
	line-height: 1.6;
}

.snoew-fieldset__fields {
	min-width: 0;
}

.snoew-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 14px;
}

.snoew-row:last-child {
	margin-bottom: 0;
}

.snoew-field {
	display: flex;
	flex-direction: column;
	flex: 1 1 190px;
	gap: 5px;
	font-size: 0.9em;
	min-width: 0;
}

.snoew-field--small {
	flex: 0 1 170px;
}

.snoew-field--medium {
	flex: 0 1 240px;
}

.snoew-field > span {
	font-weight: 500;
	color: var(--snoew-muted);
}

.snoew-field input,
.snoew-field select,
.snoew-field textarea {
	width: 100%;
	padding: 11px 12px;
	border: 1px solid var(--snoew-line);
	border-radius: 0;
	font: inherit;
	color: inherit;
	background: #fff;
	box-sizing: border-box;
	transition: border-color 0.15s ease;
}

.snoew-field input:hover,
.snoew-field select:hover,
.snoew-field textarea:hover {
	border-color: rgba(0, 0, 0, 0.3);
}

.snoew-field input:focus,
.snoew-field select:focus,
.snoew-field textarea:focus {
	outline: 0;
	border-color: currentColor;
	box-shadow: inset 0 0 0 1px currentColor;
}

.snoew-field textarea {
	min-height: 110px;
	resize: vertical;
}

/* Mobil: Titel über die Felder stapeln - wie die Kursdaten-Tabelle */
@media (max-width: 640px) {
	.snoew-fieldset {
		grid-template-columns: 1fr;
		gap: 10px;
		padding: 18px 0;
	}
}

.snoew-req {
	color: #b32d2e;
}

/* Bedingter Pflichtmarker (Bundesland): nur sichtbar, wenn aktiv (Staat = Österreich) */
.snoew-req--conditional {
	display: none;
}

[data-snoew-bundesland].snoew-required-active .snoew-req--conditional {
	display: inline;
}

.snoew-consent {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 10px;
	font-size: 0.9em;
	line-height: 1.5;
}

.snoew-consent:last-child {
	margin-bottom: 0;
}

.snoew-consent input {
	margin-top: 3px;
	flex: 0 0 auto;
}

.snoew-field--error input,
.snoew-field--error select,
.snoew-field--error textarea {
	border-color: #b32d2e;
	background: #fff7f7;
}

.snoew-field-error {
	color: #b32d2e;
	font-size: 0.85em;
}

.cf-turnstile {
	margin: 0 0 16px;
}

/* Button: trägt zusätzlich Breakdance-Klassen (button-atom--primary) und erbt
 * damit das Theme-Design. Hier nur Verhalten, keine Farben. */
.snoew-submit {
	cursor: pointer;
	font: inherit;
}

.snoew-submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

/* Fallback, falls die Breakdance-Button-Styles nicht vorhanden sind
 * (z.B. Formular außerhalb eines Breakdance-Templates eingebunden). */
.snoew-submit:not(.button-atom) {
	background: #111;
	color: #fff;
	border: 0;
	border-radius: 0;
	padding: 14px 32px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.snoew-anmeldung-messages {
	margin-bottom: 16px;
	padding: 0;
}

.snoew-anmeldung-messages:empty {
	display: none;
}

.snoew-anmeldung-messages--info,
.snoew-anmeldung-messages--error {
	padding: 12px 14px;
	border-radius: 0;
}

.snoew-anmeldung-messages--info {
	background: rgba(0, 0, 0, 0.05);
	color: inherit;
	border-left: 3px solid rgba(0, 0, 0, 0.4);
}

.snoew-anmeldung-messages--error {
	background: #fdecec;
	color: #8a1f1f;
	border-left: 3px solid #b32d2e;
}

.snoew-anmeldung-notice {
	padding: 14px 16px;
	border-radius: 0;
	background: #f3f4f6;
	color: #374151;
}

.snoew-anmeldung-notice--success {
	background: #ecfdf3;
	color: #12653a;
	border-left: 3px solid #12653a;
}

.snoew-anmeldung-notice--cancelled,
.snoew-anmeldung-notice--full,
.snoew-anmeldung-notice--closed {
	background: #fef6ec;
	color: #7a4a11;
	border-left: 3px solid #c98a2e;
}

/* Honeypot - visuell und für Screenreader ausgeblendet, aber nicht display:none */
.snoew-hp {
	position: absolute !important;
	left: -9999px !important;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Kursdaten-Shortcodes */
.snoew-hoteldaten--list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.snoew-hoteldaten--list > li {
	padding: 6px 0;
	border-bottom: 1px solid #e6e6e6;
}

.snoew-hoteldaten--list > li:last-child {
	border-bottom: 0;
}

.snoew-hoteldaten__label {
	font-weight: 600;
}

.snoew-restplaetze--full {
	font-weight: 600;
	color: #b32d2e;
}

.snoew-hoteldaten--address {
	font-style: normal;
	line-height: 1.5;
}

.snoew-hoteldaten--address > span {
	display: block;
}

.snoew-hoteldaten__name {
	font-weight: inherit;
}

/* ============================================
   Kursdaten-Übersicht ([snoew_kursdaten])
   ============================================ */

.snoew-kursdaten {
	--snoew-line: rgba(0, 0, 0, 0.1);
	--snoew-muted: rgba(0, 0, 0, 0.55);
	margin: 0 0 28px;
}

.snoew-kursdaten__row {
	display: grid;
	grid-template-columns: minmax(160px, 220px) 1fr;
	gap: 8px 24px;
	padding: 16px 0;
	border-bottom: 1px solid var(--snoew-line);
	align-items: start;
}

.snoew-kursdaten__row:first-child {
	border-top: 1px solid var(--snoew-line);
}

.snoew-kursdaten__label {
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--snoew-muted);
	line-height: 1.6;
}

.snoew-kursdaten__value {
	line-height: 1.6;
}

/* Fett nur bei Termin und Preis - sonst einheitlich */
.snoew-kursdaten__row--termin .snoew-kursdaten__value {
	font-weight: 700;
}

.snoew-kursdaten__preis {
	font-weight: 700;
	display: block;
}

.snoew-kursdaten__preis-text {
	margin-top: 8px;
	color: var(--snoew-muted);
}

.snoew-kursdaten__preis-text p {
	margin: 0 0 8px;
}

.snoew-kursdaten__preis-text p:last-child {
	margin-bottom: 0;
}

/* Häkchen-/Kreuz-Listen */
.snoew-checklist {
	margin: 0;
	padding: 0;
	list-style: none;
}

.snoew-checklist > li {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 3px 0;
}

.snoew-checklist__icon {
	flex: 0 0 auto;
	font-weight: 700;
	line-height: 1;
}

.snoew-checklist--no {
	color: var(--snoew-muted);
}

/* Mobil: Label über Wert */
@media (max-width: 640px) {
	.snoew-kursdaten__row {
		grid-template-columns: 1fr;
		gap: 4px;
		padding: 14px 0;
	}
}
