.vm-box {
	max-width: 480px;
	margin: 0 0 1.5em;
	padding: 0;
	border: none;
	border-radius: 0;
	background-color: transparent;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	box-shadow: none;
	box-sizing: border-box;
	color: var(--vm-text-color, inherit);
}

/* Sobald ein Hintergrundbild gesetzt ist, wird die Box als Karte mit
 * ausreichend Kontrast dargestellt (die Deckkraft der weißen Überblendung
 * kommt direkt als Inline-style von der Vereinsmeldung selbst). */
.vm-box[style*="background-image"] {
	padding: 1.5em;
	border-radius: 10px;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08);
}

/* Die Vereinsmeldung übernimmt für ihr Anmelde-Widget bewusst KEINE eigene
 * Kasten-Optik (Hintergrund/Rahmen/Schatten), da die TownPress-eigenen
 * Widgets ebenfalls transparent ohne Rahmen dargestellt werden. Ein evtl.
 * dennoch sichtbarer Rahmen/Hintergrund um das Widget stammt von der
 * Theme-eigenen Widget-Box (".widget") und wird hier gezielt zurückgesetzt.
 * Falls TownPress für Widget-Container eine andere CSS-Klasse als das
 * WordPress-Standardschema "widget_<id_base>" verwendet, muss diese Regel
 * ggf. um den passenden Selektor ergänzt werden. */
.widget_vm_login_widget {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
}

.vm-box-title {
	margin: 0 0 1em;
	font-size: 1.2em;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	color: var(--vm-text-color, inherit);
}

.vm-message {
	padding: 0.75em 1em;
	margin-bottom: 1em;
	border-radius: 6px;
	font-size: 0.95em;
}

.vm-message-success {
	background: #e6f6ea;
	color: #1e6b30;
}

.vm-message-error {
	background: #fbeaea;
	color: #8a1f1f;
}

.vm-field {
	margin-bottom: 1em;
}

.vm-field label,
.vm-field-label {
	display: block;
	font-weight: 600;
	margin-bottom: 0.3em;
}

/* Nur für Screenreader sichtbares Label (z.B. Anmeldeformular): das Feld
 * zeigt seine Beschriftung stattdessen als Platzhaltertext im Feld selbst
 * an, der beim Eintippen automatisch verschwindet. */
.vm-visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.vm-field-floating {
	margin-bottom: 0.75em;
}

.vm-field input[type="text"],
.vm-field input[type="password"],
.vm-field input[type="email"],
.vm-field input[type="datetime-local"],
.vm-field select,
.vm-field textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.55em 0.7em;
	border: 1px solid #dcdcde;
	border-radius: 0;
	background: #fff;
	color: #1d2327;
}

.vm-char-counter {
	display: block;
	text-align: right;
	font-size: 0.8em;
	color: #757575;
	margin-top: 0.2em;
}

.vm-required-mark {
	color: #d63638;
}

.vm-checkbox {
	display: block;
	font-weight: normal;
	margin-bottom: 0.3em;
}

.vm-category-fixed {
	background: #f6f7f7;
	padding: 0.5em 0.75em;
	border-radius: 6px;
}

.vm-remaining-posts {
	font-size: 0.9em;
	margin-bottom: 1em;
}

.vm-button {
	display: inline-block;
	padding: 0.8em 1.75em;
	border: 0;
	border-radius: 2px;
	cursor: pointer;
	font-size: 0.95em;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
}

.vm-button-primary {
	background: var(--vm-accent-color, #2271b1);
	color: #fff;
}

.vm-button-primary:hover {
	filter: brightness(0.9);
}

.vm-button-secondary {
	background: #f0f0f1;
	color: #1d2327;
}

.vm-button-secondary:hover {
	background: #dcdcde;
}

.vm-button[disabled] {
	background: #dcdcde !important;
	color: #a7aaad !important;
	cursor: not-allowed;
}

.vm-form-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
}

.vm-form-actions .vm-button {
	flex: 1 1 auto;
	min-width: 12em;
}

.vm-posts-items {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vm-posts-item {
	display: flex;
	justify-content: space-between;
	gap: 1em;
	padding: 0.6em 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.vm-posts-item:last-child {
	border-bottom: none;
}

.vm-posts-item-title {
	color: var(--vm-link-color, #2271b1);
}

.vm-posts-item-date {
	color: #757575;
	font-size: 0.85em;
	white-space: nowrap;
}

.vm-info {
	color: #444;
}

.vm-error {
	color: #8a1f1f;
}

/* --------------------------------------------------------------------
 * Modal/Overlay für das Eingabeformular
 * ------------------------------------------------------------------ */

.vm-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5em;
}

.vm-modal-overlay[hidden] {
	display: none;
}

.vm-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 20, 20, 0.55);
}

.vm-modal-box {
	position: relative;
	z-index: 1;
	max-height: 90vh;
	overflow-y: auto;
	width: 100%;
	max-width: 520px;
}

/* Innerhalb des Overlays braucht die Box immer einen deckenden Hintergrund,
 * unabhängig vom sonst transparenten Standard, da sie über einem
 * abgedunkelten Hintergrund schwebt. Eckig statt abgerundet, passend zum
 * übrigen Formular. Oben wird Platz für den Schließen-Button reserviert,
 * damit dieser vollständig innerhalb der Box liegt (kein Verdecken/Scrollen
 * nötig). */
.vm-modal-box .vm-box {
	max-width: none;
	width: 100%;
	margin-bottom: 0;
	padding: 2.75em 1.5em 1.5em;
	background-color: #fff;
	border-radius: 0;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
	color: #1d2327;
	box-sizing: border-box;
}

.vm-modal-close {
	position: absolute;
	top: 0.6em;
	right: 0.6em;
	width: 2em;
	height: 2em;
	line-height: 2em;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: #f0f0f1;
	color: #1d2327;
	font-size: 1.2em;
	text-align: center;
	cursor: pointer;
	z-index: 2;
}

.vm-modal-close:hover {
	background: #dcdcde;
}

/* --------------------------------------------------------------------
 * Nebeneinander stehende Feld-Paare (z.B. Datum/Uhrzeit + Ort bei Events),
 * damit das Formular nicht unnötig hoch wird.
 * ------------------------------------------------------------------ */

.vm-field-row {
	display: flex;
	gap: 1em;
	align-items: flex-start;
}

.vm-field-row .vm-field {
	flex: 1 1 0;
	min-width: 0;
}

@media (max-width: 480px) {
	.vm-field-row {
		flex-direction: column;
		gap: 0;
	}
}

/* --------------------------------------------------------------------
 * Beitrag/Event-Umschalter (Schieberegler)
 * ------------------------------------------------------------------ */

.vm-switch-row {
	display: flex;
	align-items: center;
	gap: 0.7em;
	margin-top: 0.4em;
}

.vm-switch {
	position: relative;
	display: inline-block;
	width: 2.75em;
	height: 1.5em;
	flex: 0 0 auto;
}

.vm-switch input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 1;
}

.vm-switch-track {
	position: absolute;
	inset: 0;
	background: #c3c4c7;
	border-radius: 3px;
	transition: background-color 0.15s ease;
}

.vm-switch-thumb {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 1.25em;
	height: 1.25em;
	background: #fff;
	border-radius: 2px;
	transition: transform 0.15s ease;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Die Track-Farbe bleibt bewusst in beiden Stellungen gleich – nur der
 * Schieber-Knopf bewegt sich, die feste Beschriftung links/rechts (siehe
 * .vm-switch-label) zeigt den Zustand an. */
.vm-switch input:checked ~ .vm-switch-track .vm-switch-thumb {
	transform: translateX(1.25em);
}

.vm-switch-label {
	font-weight: 600;
}

/* --------------------------------------------------------------------
 * Kategorie-Auswahl als Dropdown mit Ankreuzkästchen
 * ------------------------------------------------------------------ */

.vm-dropdown-checklist {
	border: 1px solid #dcdcde;
	border-radius: 0;
	background: #fff;
}

.vm-dropdown-checklist summary {
	padding: 0.55em 0.7em;
	cursor: pointer;
	list-style: none;
	color: #1d2327;
}

.vm-dropdown-checklist summary::-webkit-details-marker {
	display: none;
}

.vm-dropdown-checklist summary::after {
	content: "▾";
	float: right;
}

.vm-dropdown-checklist[open] summary::after {
	content: "▴";
}

.vm-dropdown-checklist-panel {
	padding: 0.6em 0.7em;
	border-top: 1px solid #dcdcde;
}

/* Die Beschriftungen der Kategorien-Checkboxen sollen unabhängig von
 * Theme-eigenen Label-Stilen (z.B. eines pauschal fett formatierten
 * "label"-Selektors, wie ihn manche Themes für Formularfelder mitbringen)
 * immer normal statt fett erscheinen – ".vm-checkbox" allein hat dafür zu
 * wenig Spezifität, um sich zuverlässig gegen so eine Theme-Regel
 * durchzusetzen. Zwei Klassen sind mehr als eine Klasse+Element, daher
 * greift diese Regel stattdessen zuverlässig (analog zur selben Lösung im
 * Plugin "bachlertal.de Abo-Kalender"). */
.vm-dropdown-checklist-panel .vm-checkbox {
	margin-bottom: 0.4em;
	font-weight: normal;
}

.vm-dropdown-checklist-panel .vm-checkbox:last-child {
	margin-bottom: 0;
}
