@import "reset.css";
@import "fonts/Panton-Bold/styles.css";
@import "fonts/Panton-Light/styles.css";
@import url('https://fonts.googleapis.com/css?family=Roboto:400,500,700&display=swap');

* {
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	font-smoothing: antialiased;
}

html, body {
	font-family: 'Roboto', sans-serif;
	font-size: 16px;
	font-weight: 400;
	line-height: 120%;
}

h1, h2, h3, h4 {
	font-family: 'Panton-Light', sans-serif;
	line-height: 120%;
	margin: 2em 0 0.75em 0;
}

	* > h1:first-child,
	* > h2:first-child,
	* > h3:first-child,
	* > h4:first-child {
		margin-top: 0;
	}

	h1 {
		font-size: 2rem;
		line-height: 120%;
		color: #003a5c;
	}

	h1+.customer-id {
		margin-top: -1.25rem;
	}

	.customer-id {
		display: block;
		margin-top: -1rem;
		margin-bottom: 2rem;
		color: #003a5c;
		font-weight: bold;
	}

	h3 {
		font-family: 'Panton-Bold', sans-serif;
		font-size: 1.2rem;
		line-height: 120%;
		color: #003a5c;
	}

header {
	position: fixed;
	width: 100%;
	background: #fff;
	height: 50px;
	display: flex;
	flex-flow: row wrap;
	justify-content: space-between;
	box-shadow: 2px 0px 5px rgba(0, 0, 0,  0.4);
	padding: 0 20px;
	z-index: 9999;
}

	header .logo {
		width: 200px;
		background: url(../img/logo.svg) no-repeat left center;
		background-size: contain;
	}

	header .actions {
		font-size: 14px;
	}

	header .actions a {
		line-height: 50px;
		color: #003a5c;
		font-size: 14px;
		font-weight: bold;
	}

	header .title {
		font-family: 'Panton-Bold', sans-serif;
		font-size: 1.25rem;
		line-height: 100%;
		line-height: 50px;
		color: #003a5c;
		position: absolute;
		left: 50%;
		transform: translateX(-50%);
		display: none;
	}

		@media (min-width: 500px) {
			header .title {
				display: block;
			}
		}

.view {
	padding-top: 50px;
	display: flex;
	flex-flow: row wrap;
	height: 100vh;
}

	.view .customer-list {
		background: #f8f8f8;
		flex: 1;
		height: 100%;
		overflow-y: scroll;
		border-right: 2px solid #b2d5e4;
		position: relative;
		padding-top: 40px;
		/* padding-bottom: 80px; */
	}

	.view .customer-detail {
		background: #e5ebee;
		width: 50%;
		max-width: 750px;
		height: 100%;
		overflow-y: scroll;
		padding: 40px;
		position: relative;
		display: none;
	}

	.customer-detail:empty::before {
		content: "Wähle einen Kunden aus der Liste";
		color: #003a5c;
		font-size: 2rem;
		line-height: 110%;
		font-weight: bold;
		opacity: 0.2;
		width: 80%;
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translateX(-50%) translateY(-50%);
		text-align: center;
	}

.customer-line {
	display: flex;
	flex-flow: row wrap;
	padding: 10px 20px;
	border-bottom: 1px solid #f0f5f7;
	transition: all 0.2s ease-in-out;
	color: #111;
	background: #fff;
}

	.customer-line.is-done {
		/* text-decoration: line-through; */
	}

	.customer-line.is-list-header {
		color: #005e6e;
		background: #f0f5f7;
		border-bottom: 1px solid #d2dee3;
		padding: 10px 20px;
		cursor: default;
		pointer-events: none;
		position: fixed;
		top: 50px;

		width: calc(100% - 2px);
		z-index: 9;
		/* box-shadow: 0 1px 3px rgba(0,0,0,0.15); */
	}

	.is-list-footer {
		color: #005e6e;
		background: #f0f5f7;
		padding: 10px 20px;
		cursor: default;
		position: fixed;
		bottom: 0;
		width: calc(100% - 752px);
		min-width: calc(50% - 2px);
		z-index: 9;
		display: flex;
		flex-flow: row wrap;
		border-top: 1px solid #d2dee3;
		/* box-shadow: 0 3px 6px rgba(0,0,0,0.2); */
	}

	.is-list-footer input.text {
		background: #fff;
		border: 1px solid #ccc;
		font: inherit;
		padding: 0.5rem 1rem;
		margin-right: 5px;
		outline: none;
		flex: 1;
	}

	.is-list-footer .go-button {
		background: #d2dee3;
		font: inherit;
		padding: 0.5rem 1rem;
		font-weight: bold;
		cursor: pointer;
	}

	.customer-line:hover {
		background: #f0f5f7;
	}

	.customer-line.is-selected {
		background: #b2d5e4;
	}

	.customer-line div {
		margin-right: 1rem;
	}

	.customer-line .status {
		width: 20px;
		position: relative;
	}

		.customer-line .status span {
			display: block;
			width: 13px;
			height: 13px;
			border-radius: 100%;
			background: #ccc;
			border: 2px solid #fff;
			position: absolute;
			top: 50%;
			margin-top: -7px;
		}

			.customer-line.is-done .status span {
				background: #32cf3d;
			}

	.customer-line .id {
		width: 100px;
	}

	.customer-line .name {
		flex: 1;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
	}

	.customer-line .city {
		width: 100px;
		white-space: nowrap;
		overflow: hidden;
		text-overflow: ellipsis;
		display: none;
	}

		@media (min-width: 1400px) {
			.customer-line .city { display: block; }
		}

	.customer-line .phone {
		text-align: right;
		margin-left: auto;
		width: 100px;
		margin-right: 0;
	}


.form {

}

	.form-row {
		margin-bottom: 10px;
	}

	.view-kunde .form-row {
		margin-bottom: 20px;
	}

	.form-row label {
		font-weight: bold;
		color: #0073a6;
		font-size: 14px;
		margin-bottom: 0.2rem;
		display: block;
	}

	.form-row label.has-checkbox {
		padding-left: 30px;
		position: relative;
	}

		.form-row label.has-checkbox input {
			position: absolute;
			left: 0;
		}

	.view-kunde .form-row label {
		font-size: 1rem;
		margin-bottom: 0.35rem;
	}

	.form-row.side-by-side {
		display: flex;
		flex-flow: row wrap;
		align-items: flex-start;
	}

	.form-row.side-by-side label {
		width: 100%;
	}

		@media (min-width: 600px) {
			.form-row.side-by-side label {
				width: 50%;
				margin-right: 1rem;
			}
		}

	.input-holder {
		position: relative;
	}

	.form-row.side-by-side .input-holder {
		width: 100%;
	}

		@media (min-width: 600px) {
			.form-row.side-by-side .input-holder {
				flex: 1
			}
		}


.text-input {
	font: inherit;
	font-size: inherit;
	padding: 0.75rem 1rem;
	background: #fff;
	border: 1px solid #b2d5e4;
	border-radius: 5px;
	width: 100%;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	transition: all 0.25s ease-in-out;
}

	.text-input.js-customer-url {
		opacity: 1;
		color: #0073a6;
		background: rgba(255,255,255,0.6);
		border: 2px dashed #b2d5e4;
	}

	textarea.text-input {
		height: 6.5rem;
	}

	select.text-input {
		width: auto;
		padding-right: 4rem;
	}

	.text-input.w25 { width: 25%; margin-right: 10px; }
	.text-input.w33 { width: 33.33%; margin-right: 10px; }
	.text-input.w50 { width: 50%; margin-right: 10px; }
	.text-input.wauto { width: auto; flex: 1; }


	.input-holder.has-multiple {
		display: flex;
		flex-flow: row wrap;
	}

	.text-input:focus {
		border-color: #338fb8;
		box-shadow: 0 0 10px rgba(0, 115, 166, 0.5);
	}

	.text-input.js-customer-url:focus {
		border-color: #b2d5e4;
		box-shadow: none;
	}

input.submit-button {
	margin-top: 1rem;
	font: inherit;
	font-size: inherit;
	padding: 0.75rem 1rem;
	font-size: 1.1rem;
	background: #0073a6;
	border: 1px solid #0073a6;
	border-radius: 5px;
	color: #fff;
	width: auto;
	font-weight: bold;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	transition: all 0.25s ease-in-out;
}

	input.submit-button:focus {
		border-color: #338fb8;
		box-shadow: 0 0 10px rgba(0, 115, 166, 0.5);
	}

	.success-message {
		background: #b2e4b6;
		color: #025c00;
		font-size: 1rem;
		line-height: 120%;
		border-radius: 5px;
		padding: 1rem;
		text-align: center;
		margin-bottom: 5px;
	}

		.success-message .dot,
		.info-message .dot {
			width: 0.7rem;
			height: 0.7rem;
			display: inline-block;
			background: #fff;
			border-radius: 100%;
			margin-right: 0.5rem;
		}

			.dot.orange {
				background: rgb(228, 137, 16);
			}

			.dot.green {
				background: rgb(0, 92, 45)
			}

	.info-message {
		background: #b2cfe4;
		color: #002d5c;
		font-size: 1rem;
		line-height: 120%;
		border-radius: 5px;
		padding: 1rem;
		text-align: center;
		margin-bottom: 5px;
	}

.success-message+h1,
.info-message+h1 {
	margin-top: 1.5rem;
}

.area-first {
	padding-top: 50px;

}

.area-intro {
	background: #b2d5e4;
	color: #003a5c;
	font-size: 1.25rem;
	line-height: 120%;
}

.area-success {
	background: #b2e4b6;
	color: #025c00;
	font-size: 1.25rem;
	line-height: 120%;
}

.area-error {
	background: #e4b2b2;
	color: #5c0000;
	font-size: 1.25rem;
	line-height: 120%;
}

.area-inner {
	padding: 2rem 20px;
	margin: 0 auto;
	max-width: 800px;
}

	@media (min-width: 860px) {
		.area-inner {
			padding: 4rem 20px;
		}
	}

.login-view {
	background: #b2d5e4;
}

	.login-window {
		background: #fff;
		box-shadow: 0 3px 12px rgba(0,0,0,0.2);
		width: 400px;
		max-width: 90%;
		position: absolute;
		left: 50%;
		top: 50%;
		transform: translateX(-50%) translateY(-50%);
		padding: 20px;
		border-radius: 6px;
	}

.open-customer-link {
	width: 3rem;
	height: 100%;
	display: block;
	background: #b2d5e4 url(../img/external.svg) no-repeat center;
	background-size: 35% auto;
	position: absolute;
	right: 0;
	top: 0;
	border-radius: 0 5px 5px 0;
}


.js-refresh {
	text-decoration:underline;
	cursor: pointer;
}
