/* Auftrag einreichen – Farben aus dem Template, mit Rückfall */
.vmbup-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);
}
.vmbup-wrap *, .vmbup-wrap *::before, .vmbup-wrap *::after { box-sizing: border-box; }

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

.vmbup-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 */
.vmbup-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;
}
.vmbup-choice:hover { border-color: var(--c-anthrazit); }
.vmbup-choice:has(input:checked) { border-color: var(--c-rot); background: #fff5f7; }
.vmbup-choice input { margin-top: .3rem; accent-color: var(--c-rot); width: 1.1rem; height: 1.1rem; }
.vmbup-choice:focus-within { outline: 3px solid rgba(224, 0, 60, .35); outline-offset: 2px; }

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

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

.vmbup-list { list-style: none; margin: .6rem 0 0; padding: 0; }
.vmbup-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;
}
.vmbup-file-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.vmbup-file-size { flex: 0 0 auto; color: #6b6b6b; font-size: .9rem; }
.vmbup-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);
}
.vmbup-remove:hover, .vmbup-remove:focus-visible { background: var(--c-rot); color: #fff; }

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

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

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

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

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

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

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