.vw-anmeldung-wrapper {
	max-width: 960px;
	margin: 2rem auto;
	padding: 2rem;
	border: 1px solid #e5e7eb;
	border-radius: 1rem;
	background: #ffffff;
	box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
	font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	color: #111827;
}
.vw-anmeldung-form {
	width: 100%;
}
.vw-block {
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.5rem;
	background: #f9fafb;
}
.vw-block legend {
	font-size: 1rem;
	font-weight: 600;
	padding: 0 0.5rem;
}
.vw-row {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 0.75rem;
}
.vw-field {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	position: relative;
}
.vw-field-half {
	flex: 1 1 calc(50% - 0.5rem);
	min-width: 0;
}
.vw-field-full {
	flex: 1 1 100%;
}
.vw-field label,
.vw-instruction {
	font-size: 0.9rem;
	font-weight: 500;
	color: #111827;
}
.vw-instruction {
	margin: 0 0 0.25rem;
}
/* Inputs (aber NICHT Radio/Checkbox/File) */
.vw-field input:not([type="radio"]):not([type="checkbox"]):not([type="file"]),
.vw-field select,
.vw-field textarea {
	font-size: 0.95rem;
	padding: 0.55rem 0.75rem;
	border-radius: 0.6rem;
	border: 1px solid #d1d5db;
	background: #ffffff;
	outline: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s;
	width: 100%;
	box-sizing: border-box;
}
/* Radio group styling (Safari-Fix) */
.vw-radio-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem; /* etwas stabiler */
	align-items: center;
}
.vw-radio {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 0.85rem;
	white-space: nowrap;
}
.vw-radio input[type="radio"] {
	accent-color: #4f46e5;
	width: auto !important;
	padding: 0 !important;
	border: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	margin: 0;
	flex: 0 0 auto;
}
.vw-field input:focus,
.vw-field select:focus,
.vw-field textarea:focus {
	border-color: #4f46e5;
	box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.35);
}
.vw-field select {
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, #9ca3af 50%),
	                  linear-gradient(135deg, #9ca3af 50%, transparent 50%);
	background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 2rem;
}
/* Switch */
.vw-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	width: 52px;
	height: 28px;
}
.vw-switch input {
	opacity: 0;
	width: 0;
	height: 0;
	position: absolute;
}
.vw-switch-slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #e5e7eb;
	border-radius: 999px;
	transition: 0.2s;
}
.vw-switch-slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 4px;
	top: 4px;
	background-color: #ffffff;
	border-radius: 50%;
	transition: 0.2s;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}
.vw-switch input:checked + .vw-switch-slider {
	background-color: #22c55e;
}
.vw-switch input:checked + .vw-switch-slider:before {
	transform: translateX(24px);
}
/* Messages */
.vw-message {
	border-radius: 0.75rem;
	padding: 0.8rem 1rem;
	margin-bottom: 1rem;
	font-size: 0.95rem;
}
.vw-message-success {
	background: #ecfdf3;
	border: 1px solid #22c55e;
	color: #166534;
}
.vw-message-error {
	background: #fef2f2;
	border: 1px solid #ef4444;
	color: #b91c1c;
}
/* Fehler */
.vw-has-error label {
	color: #b91c1c;
}
.vw-has-error input,
.vw-has-error select,
.vw-has-error textarea {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25);
	background: #fef2f2;
}
.vw-error-msg {
	color: #b91c1c;
	font-size: 0.75rem;
	position: absolute;
	right: 0.5rem;
	top: 0.15rem;
	margin: 0;
	white-space: nowrap;
	background: rgba(254, 242, 242, 0.85);
	padding: 0 0.25rem;
	border-radius: 999px;
	pointer-events: none;
}
/* Mitglieder */
.vw-members {
	border-radius: 0.75rem;
	padding: 0.75rem 0.75rem 0.25rem;
	background: #f3f4f6;
}
.vw-members > label {
	font-size: 0.9rem;
	font-weight: 600;
	display: block;
	margin-bottom: 0.5rem;
}
.vw-member-row {
	border-radius: 0.75rem;
	border: 1px dashed #d1d5db;
	padding: 0.75rem;
	margin-bottom: 0.75rem;
	background: #ffffff;
	display: none; /* wird via JS sichtbar gemacht */
}
.vw-members-note p {
	font-size: 0.8rem;
	color: #6b7280;
	margin: 0.5rem 0 0;
}
/* Stücke Hinweis */
.vw-stuecke-hinweis p {
	font-size: 0.85rem;
	color: #4b5563;
	margin-bottom: 0.75rem;
}
/* Mittagessen Extra */
.vw-mittagessen-extra {
	display: none;
}
/* Solist/Gruppe Umschaltung */
.vw-block-group {
	display: none;
}
.vw-anmeldung-wrapper[data-type="Solist"] .vw-block-group {
	display: none;
}
.vw-anmeldung-wrapper[data-type="Solist"] .vw-field-solist-only {
	display: flex;
}
.vw-anmeldung-wrapper[data-type="Gruppe"] .vw-block-group {
	display: block;
}
.vw-anmeldung-wrapper[data-type="Gruppe"] .vw-field-solist-only {
	display: none;
}
/* Stück 4 (wird per JS sichtbar, abhängig vom Alter) */
.vw-stueckset-4 {
	display: none;
}
/* Captcha / Honeypot */
.vw-hp-field {
	position: absolute;
	left: -9999px;
	top: -9999px;
	opacity: 0;
}
/* Actions */
.vw-form-actions {
	text-align: center;
	margin-top: 1.5rem;
}
.vw-submit-btn {
	border-radius: 999px;
	border: none;
	padding: 0.65rem 1.6rem;
	font-size: 0.95rem;
	font-weight: 600;
	background-color: #007328;
	color: #ffffff;
	cursor: pointer;
	box-shadow: 0 10px 20px rgba(79, 70, 229, 0.25);
	transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s;
}
.vw-submit-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 14px 28px rgba(79, 70, 229, 0.35);
}
.vw-submit-btn:active {
	transform: translateY(0);
	box-shadow: 0 8px 18px rgba(79, 70, 229, 0.25);
}
/* Responsive */
@media (max-width: 640px) {
	.vw-field-half {
		flex-basis: 100%;
	}
}
