/* Auftrag einreichen – Farben aus dem Template, mit Rückfall */
.vmbrv-wrap {
	--c-rot: var(--vmb-rot, #e0003c);
	--c-anthrazit: var(--vmb-anthrazit, #505050);
	--c-grau: var(--vmb-grau, #b4b4b4);
	--c-hell: #f6f6f6;
	max-width: 52rem;
	color: var(--c-anthrazit);
}
.vmbrv-wrap *, .vmbrv-wrap *::before, .vmbrv-wrap *::after { box-sizing: border-box; }

.vmbrv-block { border: 0; padding: 0; margin: 0 0 1.75rem; min-width: 0; }
.vmbrv-block > legend { font-size: 1.15rem; font-weight: 700; padding: 0; margin-bottom: .75rem; display: flex; align-items: center; gap: .6rem; }

.vmbrv-num {
	flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
	width: 1.9rem; height: 1.9rem; border-radius: 50%;
	background: var(--c-rot); color: #fff; font-weight: 700; font-size: 1rem;
}

/* Auswahl Art des Auftrags */
.vmbrv-choice {
	display: flex; gap: .75rem; align-items: flex-start;
	border: 2px solid var(--c-grau); border-radius: .5rem; padding: .85rem 1rem; margin-bottom: .6rem;
	cursor: pointer; background: #fff; transition: border-color .15s, background .15s;
}
.vmbrv-choice:hover { border-color: var(--c-anthrazit); }
.vmbrv-choice:has(input:checked) { border-color: var(--c-rot); background: #fff5f7; }
.vmbrv-choice input { margin-top: .3rem; accent-color: var(--c-rot); width: 1.1rem; height: 1.1rem; }
.vmbrv-choice:focus-within { outline: 3px solid rgba(224, 0, 60, .35); outline-offset: 2px; }

/* Upload-Felder */
.vmbrv-slot { margin-bottom: 1.75rem; }
.vmbrv-slot-head { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .35rem; }
.vmbrv-slot-title { margin: 0; font-size: 1.15rem; font-weight: 700; }
.vmbrv-badge {
	font-size: .78rem; font-weight: 600; padding: .1rem .55rem; border-radius: 1rem;
	background: var(--c-hell); border: 1px solid var(--c-grau);
}
.vmbrv-help p { margin: 0 0 .6rem; font-size: .95rem; }
.vmbrv-help a { color: var(--c-rot); }

.vmbrv-drop {
	position: relative; border: 2px dashed var(--c-grau); border-radius: .6rem; background: var(--c-hell);
	min-height: 9rem; display: flex; transition: border-color .15s, background .15s;
}
.vmbrv-drop:hover, .vmbrv-drop:focus-within { border-color: var(--c-anthrazit); }
.vmbrv-drop.vmbrv-over { border-color: var(--c-rot); background: #fff0f3; border-style: solid; }
.vmbrv-filled .vmbrv-drop { min-height: 6.5rem; }
.vmbrv-input {
	position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0;
}
.vmbrv-drop:focus-within { outline: 3px solid rgba(224, 0, 60, .35); outline-offset: 2px; }
.vmbrv-drop-inner {
	margin: auto; padding: 1.25rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: .15rem;
	pointer-events: none;
}
.vmbrv-drop-inner strong { font-size: 1.15rem; }
.vmbrv-drop-inner small { color: #6b6b6b; margin-top: .35rem; }
.vmbrv-icon { color: var(--c-rot); margin-bottom: .25rem; }
.vmbrv-over .vmbrv-icon { transform: translateY(-3px); }

.vmbrv-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.vmbrv-file {
	display: flex; align-items: center; gap: .75rem; padding: .5rem .75rem; margin-bottom: .35rem;
	background: #fff; border: 1px solid var(--c-grau); border-left: 4px solid var(--c-rot); border-radius: .35rem;
}
.vmbrv-file-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vmbrv-file-size { flex: 0 0 auto; color: #6b6b6b; font-size: .9rem; }
.vmbrv-remove {
	flex: 0 0 auto; width: 2rem; height: 2rem; border: 0; border-radius: 50%; background: transparent;
	font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--c-anthrazit);
}
.vmbrv-remove:hover, .vmbrv-remove:focus-visible { background: var(--c-rot); color: #fff; }

.vmbrv-slot-error { margin: .5rem 0 0; color: #b00020; font-weight: 600; }
.vmbrv-has-error .vmbrv-drop { border-color: #b00020; }

/* Felder */
.vmbrv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.vmbrv-wide { grid-column: 1 / -1; }
.vmbrv-field label { display: block; font-weight: 600; margin-bottom: .25rem; }
.vmbrv-field input, .vmbrv-field textarea, .vmbrv-field select {
	width: 100%; padding: .6rem .7rem; font: inherit; border: 1px solid var(--c-grau); border-radius: .35rem; background: #fff;
}
.vmbrv-field input:focus, .vmbrv-field textarea:focus, .vmbrv-field select:focus { outline: 3px solid rgba(224, 0, 60, .35); border-color: var(--c-rot); }
.vmbrv-opt { font-weight: 400; color: #6b6b6b; font-size: .9rem; }
abbr[title] { text-decoration: none; color: var(--c-rot); }

.vmbrv-check { display: flex; gap: .7rem; align-items: flex-start; margin: 0 0 1.25rem; font-size: .95rem; }
.vmbrv-check input { margin-top: .25rem; width: 1.1rem; height: 1.1rem; accent-color: var(--c-rot); flex: 0 0 auto; }
.vmbrv-check a { color: var(--c-rot); }

.vmbrv-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.vmbrv-submit[disabled] { opacity: .6; cursor: progress; }
.vmbrv-status { margin: 0; font-weight: 600; }
.vmbrv-note { font-size: .85rem; color: #6b6b6b; margin-top: 1rem; }

/* Meldungen */
.vmbrv-errors { border: 2px solid #b00020; background: #fdecee; color: #6d0014; border-radius: .5rem; padding: 1rem 1.25rem; margin-bottom: 1.5rem; }
.vmbrv-errors ul { margin: .4rem 0 .6rem 1.2rem; padding: 0; }
.vmbrv-errors p { margin: 0; font-size: .9rem; }
.vmbrv-success { display: flex; gap: 1rem; align-items: center; border: 2px solid #1b7f3b; background: #eaf6ee; color: #14502a; border-radius: .6rem; padding: 1.25rem 1.5rem; }
.vmbrv-success svg { color: #1b7f3b; flex: 0 0 auto; }
.vmbrv-success p { margin: 0; font-size: 1.1rem; }

/* Honigtopf */
.vmbrv-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
	.vmbrv-grid { grid-template-columns: 1fr; }
	.vmbrv-drop { min-height: 7.5rem; }
}
@media (prefers-reduced-motion: reduce) { .vmbrv-wrap * { transition: none !important; } }

.vmbrv-quelle .vmbrv-field { margin-bottom: .25rem; }
.vmbrv-quelle > .vmbrv-hint { margin: .5rem 0 1rem; font-size: .92rem; color: #6b6b6b; }
