/*
 * Dokumenteneingang form. Uses the site fonts and colours of verteidiger.berlin.
 * Override the variables in Lay Options > Custom CSS if needed.
 */
.vbe {
	--vbe-color: #4c5870;
	--vbe-bg: #fcf8ef;
	--vbe-field: #ffffff;
	--vbe-line: rgba(76, 88, 112, 0.35);
	--vbe-line-strong: #4c5870;
	--vbe-error: #bd4b53;
	--vbe-radius: 8px;
	--vbe-font: "GT-Planar-Light", helvetica, sans-serif;
	--vbe-font-strong: "GT-Planar-Medium", helvetica, sans-serif;
	color: var(--vbe-color);
	font-family: var(--vbe-font);
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
}

.vbe *,
.vbe *::before,
.vbe *::after {
	box-sizing: border-box;
}

.vbe [hidden] {
	display: none !important;
}

.vbe-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px 20px;
}

.vbe-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 0;
}

.vbe-wide {
	grid-column: 1 / -1;
}

.vbe-label {
	font-size: 16px;
}

.vbe-help {
	font-size: 13px;
	opacity: 0.75;
}

.vbe-input {
	width: 100%;
	margin: 0;
	padding: 13px 16px;
	border: 1px solid var(--vbe-line);
	border-radius: var(--vbe-radius);
	background: var(--vbe-field);
	color: var(--vbe-color);
	font-family: var(--vbe-font);
	font-size: 18px;
	line-height: 1.3;
	outline: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.vbe-input[type="date"] {
	min-height: 50px;
}

textarea.vbe-input {
	min-height: 150px;
	resize: vertical;
}

.vbe-input::placeholder {
	color: var(--vbe-color);
	opacity: 0.45;
}

.vbe-input:focus {
	border-color: var(--vbe-line-strong);
	box-shadow: 0 0 0 3px rgba(76, 88, 112, 0.12);
}

.vbe-drop {
	position: relative;
	margin-top: 28px;
	border: 1px dashed var(--vbe-line-strong);
	border-radius: var(--vbe-radius);
	background: rgba(255, 255, 255, 0.5);
	transition: background 0.15s ease;
}

.vbe-drop.vbe-dragover {
	background: rgba(76, 88, 112, 0.08);
}

.vbe-file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

.vbe-file:focus-visible + .vbe-drop-inner {
	box-shadow: 0 0 0 3px rgba(76, 88, 112, 0.25);
	border-radius: var(--vbe-radius);
}

.vbe-drop-inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 34px 24px;
	text-align: center;
	cursor: pointer;
}

.vbe-drop-title {
	font-size: 20px;
}

.vbe-drop-title u {
	text-underline-offset: 3px;
}

.vbe-list {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
}

.vbe-list li {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid var(--vbe-line);
	font-size: 16px;
}

.vbe-list-name {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vbe-list-size {
	flex: none;
	opacity: 0.7;
	font-variant-numeric: tabular-nums;
}

.vbe-list-remove {
	flex: none;
	width: 30px;
	height: 30px;
	padding: 0;
	border: 1px solid var(--vbe-line);
	border-radius: 50%;
	background: transparent;
	color: var(--vbe-color);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.vbe-list-remove:hover {
	border-color: var(--vbe-line-strong);
}

.vbe-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin-top: 28px;
	font-size: 15px;
	cursor: pointer;
}

.vbe-check input {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--vbe-color);
}

.vbe-check a {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.vbe-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vbe-error {
	margin: 20px 0 0;
	padding: 12px 16px;
	border-left: 3px solid var(--vbe-error);
	background: rgba(189, 75, 83, 0.07);
	color: var(--vbe-error);
	font-size: 15px;
}

.vbe-invalid,
.vbe-invalid.vbe-input {
	border-color: var(--vbe-error) !important;
}

.vbe-check.vbe-invalid {
	color: var(--vbe-error);
}

.vbe-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px 24px;
	margin-top: 28px;
}

.vbe-submit {
	margin: 0;
	padding: 16px 24px;
	border: 1px solid var(--vbe-color);
	border-radius: var(--vbe-radius);
	background: var(--vbe-color);
	color: var(--vbe-bg);
	font-family: var(--vbe-font);
	font-size: 20px;
	line-height: 1.2;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease;
}

.vbe-submit:hover:not(:disabled) {
	background: var(--vbe-bg);
	color: var(--vbe-color);
}

.vbe-submit:disabled {
	opacity: 0.55;
	cursor: progress;
}

.vbe-status {
	font-size: 15px;
	font-variant-numeric: tabular-nums;
}

.vbe-progress {
	height: 3px;
	margin-top: 16px;
	background: var(--vbe-line);
	border-radius: 3px;
	overflow: hidden;
}

.vbe-progress span {
	display: block;
	width: 0;
	height: 100%;
	background: var(--vbe-color);
	transition: width 0.2s ease;
}

.vbe-note {
	margin: 20px 0 0;
	font-size: 13px;
	opacity: 0.75;
}

.vbe-done {
	padding: 32px 0;
	outline: none;
}

.vbe-done-title {
	margin: 0 0 24px;
	font-size: 26px;
	line-height: 1.2;
}

.vbe-done-list {
	display: grid;
	grid-template-columns: max-content 1fr;
	gap: 8px 32px;
	margin: 0 0 24px;
	padding: 16px 0;
	border-top: 1px solid var(--vbe-line);
	border-bottom: 1px solid var(--vbe-line);
	font-size: 18px;
}

.vbe-done-list dt {
	opacity: 0.7;
}

.vbe-done-list dd {
	margin: 0;
	font-family: var(--vbe-font-strong);
	letter-spacing: 0.02em;
}

.vbe-done-text {
	margin: 0 0 28px;
	font-size: 16px;
}

@media (max-width: 1100px) {
	.vbe-grid {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.vbe-input {
		font-size: 16px;
	}

	.vbe-drop-title {
		font-size: 18px;
	}

	.vbe-submit {
		width: 100%;
		font-size: 18px;
	}

	.vbe-done-title {
		font-size: 22px;
	}
}
