body {
	font-family: "Segoe UI", Arial, sans-serif;
	background: #f4f6fa;
	margin: 0;
	padding: 15px;
	color: #2c3e50;
	cursor: default;
}

.container {
	max-width: 950px;
	margin: auto;
}

header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	flex-wrap: wrap;  /* erlaubt Umbruch */
	gap: 10px;
}

h1 {
	font-size: 1.8rem;
	color: #2c3e50;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.btn {
	background: #3498db;
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 16px;
	cursor: pointer;
	font-size: 1rem;
	transition: background 0.3s;
	display: flex;
	align-items: center;
	gap: 8px;
}
.btn:hover {
	background: #2980b9;
}

.card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 3px 8px rgba(0,0,0,0.08);
	margin-bottom: 20px;
	padding: 15px 20px;
}

.card h2 {
	margin-top: 0;
	font-size: 1.2rem;
	margin-bottom: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #34495e;
	border-bottom: 2px solid #ecf0f1;
	padding-bottom: 6px;
}

.form-inline {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 1rem;
}
.form-inline label {
	font-weight: 600;
}
.form-inline input {
	width: 80px;
	padding: 8px;
	border: 1px solid #ccc;
	border-radius: 6px;
	text-align: center;
	font-size: 1rem;
}

#sollVB, #istVB {
	width: 110px;
	margin-right: 70px;
}

#objektName {
	width: 250px;
}
.result-line {
	display: flex;
	align-items: center;
	gap: 25px;
	font-size: 1.05rem;
	font-weight: 500;
	white-space: nowrap;
}

.badge {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border-radius: 8px;
	font-size: 1rem;
	font-weight: 600;
	white-space: nowrap;
}

.badge-vb {
	background: #fef4f3;
	color: #e74c3c;
}
.badge-spitze {
	background: #f3fbf4;
	color: #27ae60;
}

.value-soll {
	position: relative;
	display: inline-block;
	color: #888;
	margin-right: 4px;
}
.value-soll::after {
	content: "";
	position: absolute;
	top: 50%;
	left: -5%;
	width: 110%;
	border-top: 1px solid #555;
}

.value-ist {
	color: inherit;
}

.footer {
	text-align: center;
	margin-top: 15px;
	font-size: 0.85rem;
	color: #888;
}

.hidden {
	display: none;
}

/* Entfernt die Pfeile (Spinner) in Number-Feldern */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}
input[type=number] {
	-moz-appearance: textfield; /* Firefox */
}

.header-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;  /* Buttons umbrechen */
}

/* Mobile Optimierung */
@media (max-width: 600px) {
	header {
		flex-direction: column;
		align-items: flex-start;
	}
	.header-buttons {
		width: 100%;
		justify-content: flex-start;
	}
	.btn {
		flex: 1; /* Buttons gleich breit */
	}
	#sollVB, #istVB {
		width: 100%;
		margin-right: 0;
		margin-bottom: 10px;
	}

	#objektName {
		width: 100%;
		margin-right: 0;
	}	
}

/* Standard: Druckbereich unsichtbar */
#printView {
	display: none;
}

@media print {

  body * {
    display: none !important;
  }

  /* Sichtbar & Layout wiederherstellen */
  #printView, #printView * {
    display: revert !important;
    visibility: visible !important;
  }

  #printView {
    margin: 0;
    padding: 0;
    width: 100%;
  }

  /* Überschrift */
#printView h2 {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
}


  /* Meta-Info Bereich */
  #printMeta {
    width: 100%;
    display: flex !important;
    justify-content: space-between;
    font-size: 15pt;
    margin-bottom: 12px;
  }

  #printMeta div {
    font-size: 15pt;
  }

  /* Tabelle */
  table.print-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14pt;
  }

  table.print-table th {
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    background: #f0f0f0;
    font-weight: bold;
  }

  table.print-table td {
    border-bottom: 1px solid #333;
    text-align: center;
    padding: 6px;
  }

  @page {
    margin: 10mm 10mm;
  }
	/* Dezente Zebra-Streifen für die Druck-Tabelle */
	table.print-table tbody tr:nth-child(odd) {
		background: #f7f7f7 !important;
	}

	table.print-table tbody tr:nth-child(even) {
		background: #ededed !important;
	}
}





