/* Anmeldung der Web-Leitstelle im Stil des Java-Leitstellenclients (Farben wie leitstelle_cobra.css in EMD) */

* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	height: 100%;
}

body {
	display: flex;
	flex-direction: column;
	background: #c9ced6;
	color: #1d2227;
	font: 12px/1.25 Tahoma, "Segoe UI", Arial, sans-serif;
	-webkit-font-smoothing: subpixel-antialiased;
	user-select: none;
	cursor: default;
}

body.warten,
body.warten * {
	cursor: progress !important;
}

/* Arbeitsfläche hinter dem Fenster */
.desk {
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background:
		linear-gradient(rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 40%),
		repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.018) 0 1px, transparent 1px 3px),
		#c9ced6;
}

/* Fenster */
.fenster {
	width: 100%;
	max-width: 470px;
	background: #e3e6eb;
	border: 1px solid #7d8794;
	box-shadow: 3px 4px 14px rgba(0, 0, 0, 0.35);
}

.titelleiste {
	height: 28px;
	display: flex;
	align-items: center;
	gap: 8px;
	padding-left: 8px;
	background: #fff;
	border-bottom: 1px solid #d5d9df;
	color: #2b2f35;
}

.titelleiste span:first-of-type {
	flex: 1 1 auto;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.app {
	width: 14px;
	height: 14px;
	flex: 0 0 auto;
}

.knopf {
	width: 44px;
	height: 28px;
	display: grid;
	place-items: center;
	flex: 0 0 auto;
}

.knopf:hover {
	background: #e5e8ec;
}

.knopf--zu:hover {
	background: #e81123;
	color: #fff;
}

.knopf svg {
	width: 10px;
	height: 10px;
	stroke: currentColor;
	fill: none;
	stroke-width: 1.1;
}

/* grauer Kopf mit großer Schrift */
.banner {
	height: 58px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 0 14px;
	background: linear-gradient(180deg, #8d9299 0%, #b4b8be 55%, #c9ccd1 100%);
	color: #fff;
	font-size: 29px;
	font-weight: bold;
	letter-spacing: 0.2px;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.banner__ls {
	font-size: 12px;
	font-weight: bold;
	color: #f4f5f7;
	text-align: right;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

form {
	padding: 10px 14px 0;
}

.hinweis {
	color: #4b535d;
	margin: 2px 0 10px;
}

/* Fehlermeldung vom Server */
.meldung {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	padding: 6px 8px 6px 30px;
	background: #fdecea url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='7' fill='%23d10000'/%3E%3Cpath d='M8 4v5M8 11v1.2' stroke='%23fff' stroke-width='1.8'/%3E%3C/svg%3E") 8px center / 16px 16px no-repeat;
	border: 1px solid #e3a3a0;
	color: #a00000;
	font-weight: bold;
}

.raster {
	display: grid;
	grid-template-columns: 92px 1fr;
	align-items: center;
	gap: 6px 10px;
	padding: 10px 12px;
	background: #eef0f3;
	border: 1px solid #c3c9d1;
}

label {
	color: #1d2227;
	text-align: right;
}

/* Eingabefeld im Java-Stil: Symbol vorn */
.feld {
	display: flex;
	align-items: center;
	height: 23px;
	background: #fff;
	border: 1px solid #a9b1bc;
	border-radius: 2px;
}

.feld:focus-within {
	border-color: #5e8ab5;
	box-shadow: 0 0 0 1px #b9d0e7;
}

.feld--aus {
	background: #eceef1;
}

.feld__vor {
	width: 22px;
	height: 21px;
	padding: 3px 4px;
	flex: 0 0 auto;
	border-right: 1px solid #d7dbe2;
	fill: none;
	stroke: #4b6d8f;
	stroke-width: 1.3;
}

.feld input {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	padding: 0 6px;
	border: 0;
	outline: none;
	background: transparent;
	color: #1d2227;
	font: inherit;
	user-select: text;
	cursor: text;
}

.feld--aus input {
	color: #4b535d;
	cursor: default;
}

.info {
	display: flex;
	gap: 8px;
	margin: 10px 0 0;
	color: #4b535d;
	font-size: 11px;
	line-height: 15px;
}

.info svg {
	width: 15px;
	height: 15px;
	flex: 0 0 auto;
	margin-top: 1px;
	fill: none;
	stroke: #3d6a90;
	stroke-width: 1.4;
}

.fuss {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	padding: 12px 0 12px;
	margin-top: 10px;
	border-top: 1px solid #c3c9d1;
}

.btn {
	min-width: 86px;
	height: 24px;
	padding: 0 11px;
	background: linear-gradient(#fdfdfd, #e1e5ea);
	border: 1px solid #8d97a4;
	border-radius: 3px;
	color: #1d2227;
	font: inherit;
	cursor: default;
}

.btn:hover:not(:disabled) {
	background: linear-gradient(#fff, #d6dee8);
	border-color: #6f8eaf;
}

.btn:active:not(:disabled) {
	background: linear-gradient(#d3d9e1, #e8ebef);
}

.btn:disabled {
	color: #a3a9b1;
	border-color: #c3c9d1;
}

/* Standardschaltfläche mit blauem Rahmen */
.btn--std {
	border-color: #3d6a90;
	box-shadow: inset 0 0 0 1px #9fbcd8;
	font-weight: bold;
}

.btn:focus-visible {
	outline: 1px dotted #1d2227;
	outline-offset: -4px;
}

/* Statusleiste wie im Client */
.statusleiste {
	flex: 0 0 auto;
	display: flex;
	height: 22px;
	align-items: center;
	background: linear-gradient(#f6f7f9, #e2e5ea);
	border-top: 1px solid #a9b1bc;
	color: #2b2f35;
	font-size: 11px;
	white-space: nowrap;
	overflow: hidden;
}

.zelle {
	padding: 0 8px;
}

.zelle + .zelle {
	border-left: 1px solid #b9c0c9;
}

.zelle--frei {
	flex: 1;
}

.warnung {
	color: #d10000;
	font-weight: bold;
}

@media (max-width: 480px) {
	.banner {
		font-size: 22px;
	}

	.banner__ls {
		display: none;
	}

	.raster {
		grid-template-columns: 1fr;
	}

	label {
		text-align: left;
	}

	.statusleiste .zelle:nth-child(3) {
		display: none;
	}
}
