html, body {
  overscroll-behavior: none;
}

/* Checkbox-Styling für Messungen-Auswahl */
.messung-checkbox {
  transform: scale(1.2);
  cursor: pointer;
}

#selectAll, #selectAllBottom {
  transform: scale(1.3);
  cursor: pointer;
}

.messung-checkbox:hover, #selectAll:hover, #selectAllBottom:hover {
  transform: scale(1.3);
  transition: transform 0.2s ease;
}

/* Auftragsnummer-Validierung Styles */
.validation-message {
  margin-top: 5px;
  font-size: 12px;
  font-weight: bold;
  display: none;
}

.validation-loading {
  color: #666;
}

.validation-error {
  color: #d32f2f;
}

.validation-success {
  color: #2e7d32;
}

input.validation-error {
  border-color: #d32f2f !important;
  box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

input.validation-success {
  border-color: #2e7d32 !important;
  box-shadow: 0 0 0 0.2rem rgba(46, 125, 50, 0.25);
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}
.close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
	
#notizLogbuch {
  margin-top: 20px;
  max-height: 200px;
  overflow-y: auto;
}
.log-eintrag {
  background: #f9f9f9;
  padding: 10px;
  border-left: 4px solid #04AA6D;
  margin-bottom: 10px;
  font-size: 0.95rem;
  white-space: pre-wrap;
}
	

.max-200-table .resp-table-row > .table-body-cell:first-child {
  max-width: 130px;
  width: 130px; /* optional: erzwingt feste Breite */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/*
input[type="file"] {
  display: none;
}
*/
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-size: 1.2em;
  cursor: pointer;
  user-select: none;
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #007bff; /* moderne Browser */
}

.footer {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #f8f9fa;
	padding: 5px 0;
	box-shadow: 2px 2px 2px rgba(0.1, 0.1, 0.1, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 10px 0;
}

.footer button {
	background: none;
	border: none;
	font-size: 20px;
	margin: 0 20px;
	cursor: pointer;
}

.footer button:active {
	opacity: 0.6;
}

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: #f8f9fa;
	padding: 5px 0;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
}
.navbar table {
	border-collapse: collapse;
}
.navbar td {
	padding: 0 2px;
}
.content {
	margin-top: 45px; /* Platz für fixierte Navigation */
	padding: 5px;
	padding-bottom: 70px; /* Platz für fixierten Footer, damit nichts überlappt */
}

/* Setze die Schriftart für die gesamte Webseite */
body {
    font-family: 'Helvetica', 'Arial'; /* Falls 'Arial' nicht verfügbar ist, wird eine generische sans-serif Schriftart verwendet */
}

.app-shell {
    min-height: 100vh;
    background: #f5f7fb;
}



.login-page {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(180deg, #0f172a 0%, #1f2937 100%);
    padding: clamp(12px, 2vw, 24px) clamp(16px, 4vw, 32px);
}


.login-wrapper {
    width: min(420px, 100%);
    display: flex;
    justify-content: center;
    margin-top: clamp(8px, 4vw, 24px);
}

.login-card {
    width: 100%;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, 0.35);
    padding: clamp(24px, 4vw, 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.login-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
}

.login-logo {
    width: 160px;
    height: auto;
    filter: drop-shadow(0 8px 16px rgba(15, 23, 42, 0.2));
}

.login-title {
    margin: 0;
    font-size: clamp(24px, 5vw, 30px);
    font-weight: 600;
    color: #0f172a;
}

.login-partner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.login-partner-logo {
    max-width: 120px;
    max-height: 40px;
    object-fit: contain;
}

.login-alert {
    background: rgba(220, 38, 38, 0.12);
    color: #991b1b;
    border: 1px solid rgba(248, 113, 113, 0.5);
    border-radius: 12px;
    padding: 12px 16px;
    font-size: 14px;
}


.login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    width: 100%;
}

.form-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-align: center;
}

.form-input {
    width: 100%;
    max-width: 320px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.login-button {
    width: min(100%, 320px);
    padding: 12px;
    font-size: 17px;
    font-weight: 600;
    border-radius: 12px;
}

.login-info {
    background: #fef9c3;
    border: 1px solid #facc15;
    color: #78350f;
    border-radius: 12px;
    padding: 16px;
    font-size: 14px;
    text-align: center;
    line-height: 1.4;
}

.login-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    font-size: 14px;
}

.login-links a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.login-links a:hover,
.login-links a:focus {
    text-decoration: underline;
}

.login-language {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.login-language form {
    margin: 0;
}

.login-language input[type="image"] {
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    opacity: 0.7;
    border: 2px solid transparent;
}

.login-language input[type="image"]:hover,
.login-language input[type="image"]:focus {
    opacity: 1;
    transform: scale(1.1);
    border-color: #2563eb;
}

@media (prefers-reduced-motion: reduce) {
    .login-card {
        transition: none;
    }
    
    .login-language input[type="image"] {
        transition: none;
    }
    
    .login-language input[type="image"]:hover,
    .login-language input[type="image"]:focus {
        transform: none;
    }

    .form-input,
    .login-button {
        transition: none;
    }
}

.rahmen {
	border: 1px solid black; /* Rahmenstärke, -stil und -farbe */
	padding: 5px; /* Innenabstand */
	display: inline-block; /* Damit der Rahmen korrekt angezeigt wird */
}

.custom-file-upload {
  border: 1px solid #ccc;
  display: inline-block;
  padding: 6px 12px;
  cursor: pointer;
}

input.spaltigtextbox {
  width: 120px;	
}
input.messwerte {
  width: 120px;	
}

input[type=text],[type=number],input[type=password], select {
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  font-size: 16px;
  width: 200px;
}

div {
 font-size: 16px;	
}

input[type=text]:focus {
  background-color: lightblue;
}
input[type=number]:focus {
  background-color: lightblue;
}


textarea {
  width: 100%;
  height: 150px;
  padding: 12px 20px;
  box-sizing: border-box;
  border: 2px solid #ccc;
  border-radius: 4px;
  background-color: #f8f8f8;
  resize: none;
  font-size: 16px;
}



.button {
background-color: #04AA6D; /* Green */
border: none;
border-radius: 10px;
color: white;
padding: 10px 10px;
text-align: center;
text-decoration: none;
display: inline-block;
font-size: 16px;
font-weight: bolder;
}

.button:hover {
/* Originalfarbe beibehalten, nur leichte Aufhellung */
filter: brightness(1.1);
}

/* Icon-Buttons und Messung-Buttons: KEINE Hintergründe */
.icon-button,
.messung-buttons button {
	background: none !important;
	border: none !important;
	padding: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
}

.icon-button:hover,
.icon-button:active,
.icon-button:focus,
.messung-buttons button:hover,
.messung-buttons button:active,
.messung-buttons button:focus {
	background: none !important;
	border: none !important;
	box-shadow: none !important;
	outline: none !important;
}

/* Fenstertypen Grid-Layout */
.fenster-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
	gap: 15px;
	padding: 15px;
}

.fenster-option {
	text-align: center;
	cursor: pointer;
	padding: 10px;
	border: 2px solid #ddd;
	border-radius: 8px;
	transition: all 0.3s ease;
	background: white;
}

.fenster-option:hover {
	border-color: #2c5aa0;
	box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
	transform: translateY(-2px);
}

.fenster-option input[type="radio"] {
	margin: 8px 0;
}

.fenster-option:has(input[type="radio"]:checked) {
	border-color: #2c5aa0;
	background: #f0f4fb;
	box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.fenster-img {
	width: 100%;
	height: auto;
	max-height: 150px;
	object-fit: contain;
	display: block;
	margin: 0 auto;
}

.fenster-img-placeholder {
	width: 100%;
	max-height: 150px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto;
	padding: 16px;
	box-sizing: border-box;
	background: #f6f6f8;
	border: 1px dashed #b8c2d1;
	color: #6b7a90;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.fenster-label {
	margin-top: 8px;
	font-size: 13px;
	font-weight: 500;
	color: #333;
}

.fenster-provider {
	display: block;
	font-size: 11px;
	color: #4f5d75;
	margin-top: 4px;
}

/* Lieferantenimport */
.lieferanten-import-card {
	background: #fff;
	border: 1px solid #dfe5ef;
	border-radius: 10px;
	padding: 25px;
	box-shadow: 0 10px 24px rgba(26, 64, 117, 0.08);
	margin-top: 20px;
	max-width: 1100px;
	margin-left: auto;
	margin-right: auto;
}

.lieferanten-import-description {
	margin: 10px 0 20px 0;
	color: #455065;
	line-height: 1.6;
}

.lieferanten-import-status {
	padding: 14px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
	font-weight: 500;
}

.lieferanten-import-status.success {
	background: #e8f7f0;
	border: 1px solid #89d3af;
	color: #1a7a4a;
}

.lieferanten-import-status.error {
	background: #fdecea;
	border: 1px solid #f3b6aa;
	color: #b02020;
}

.lieferanten-import-form {
	display: flex;
	align-items: flex-end;
	gap: 18px;
	flex-wrap: wrap;
	margin-bottom: 24px;
}

.lieferanten-import-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
	min-width: 260px;
}

.lieferanten-import-field label {
	font-weight: 600;
	color: #2c3a4d;
}

.lieferanten-import-actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.lieferanten-import-hint {
	flex-basis: 100%;
	margin-top: 6px;
	font-size: 12px;
	color: #5a6579;
}

.lieferanten-import-list {
	margin-top: 30px;
}

.lieferanten-import-list h4 {
	margin-bottom: 12px;
	color: #2a3141;
}

.lieferanten-import-empty {
	color: #6c7890;
	background: #f6f8fb;
	border: 1px dashed #c4ccda;
	padding: 18px;
	border-radius: 8px;
}

.lieferanten-import-table {
	width: 100%;
	border-collapse: collapse;
	background: #fcfdff;
	border: 1px solid #e1e7f2;
	border-radius: 8px;
	overflow: hidden;
}

.lieferanten-import-table th,
.lieferanten-import-table td {
	padding: 12px 14px;
	text-align: left;
	font-size: 13px;
	color: #2c3a4d;
}

.lieferanten-import-table thead tr {
	background: #eef3fb;
}

.lieferanten-import-table tbody tr:nth-child(even) {
	background: #f8fbff;
}

.lieferanten-import-table tbody tr:hover {
	background: #eef6ff;
}

.lieferanten-import-slug {
	display: inline-block;
	margin-top: 4px;
	font-size: 11px;
	color: #6c7890;
}

@media (max-width: 768px) {
	.lieferanten-import-form {
		flex-direction: column;
		align-items: stretch;
	}

	.lieferanten-import-actions {
		justify-content: flex-start;
	}
}

/* Klaes Standardtypen Export */
.klaes-standardtypen-card {
	background: #fff;
	border: 1px solid #dfe5ef;
	border-radius: 10px;
	padding: 25px;
	box-shadow: 0 12px 28px rgba(44, 90, 160, 0.08);
	margin-top: 20px;
}

.klaes-description {
	margin: 10px 0 25px 0;
	color: #4a4a4a;
	line-height: 1.6;
}

.klaes-groups details {
	margin-bottom: 12px;
	border: 1px solid #e5ebf5;
	border-radius: 8px;
	background: #f7f9fc;
	overflow: hidden;
}

.klaes-group-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
	font-weight: 600;
	padding: 14px 18px;
	cursor: pointer;
}

.klaes-group-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-weight: 400;
	background: #2c5aa0;
	padding: 6px 10px;
	border-radius: 6px;
	color: #fff !important;
}

.klaes-group-label input[type="checkbox"] {
	accent-color: #fff;
}

.klaes-group-label span,
.klaes-group-label strong {
	color: #fff !important;
}

.klaes-checkbox-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 12px;
	padding: 18px;
	background: #fff;
}

.klaes-checkbox-item {
	background: #fdfdff;
	border: 1px solid #d9e2f3;
	border-radius: 8px;
	padding: 12px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
}

.klaes-checkbox-item input[type="checkbox"] {
	margin-top: 26px;
}

.klaes-checkbox-text {
	display: inline-block;
	color: #2a2a2a;
	line-height: 1.4;
	font-size: 13px;
}

.klaes-checkbox-text small {
	color: #6e7a92;
	font-size: 11px;
}

.klaes-provider-label {
	display: block;
	margin-top: 4px;
	color: #4f5d75;
	font-size: 11px;
}

.klaes-type-thumb {
	width: 70px;
	height: 70px;
	object-fit: contain;
	border-radius: 6px;
	background: #fff;
	border: 1px solid #d6deeb;
	padding: 4px;
}

.klaes-thumb-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 80px;
}

.klaes-thumb-placeholder {
	width: 70px;
	height: 70px;
	border-radius: 6px;
	border: 1px dashed #c3cade;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #9aa3bb;
	font-size: 11px;
	background: #f6f8fc;
	padding: 6px;
	text-align: center;
}

.klaes-export-actions {
	margin-top: 20px;
	display: flex;
	gap: 12px;
	align-items: center;
}

.klaes-provider-filter {
	margin: 10px 0 20px 0;
}

.klaes-provider-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.klaes-provider-tag {
	position: relative;
	display: inline-flex;
}

.klaes-provider-tag input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.klaes-provider-tag span {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 16px;
	border: 1px solid #d0d8ea;
	background: #f0f3fa;
	color: #2c5aa0;
	font-size: 12px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.klaes-provider-tag input:checked + span {
	background: #2c5aa0;
	color: #fff;
	border-color: #2c5aa0;
}

.klaes-provider-reset {
	padding: 6px 12px;
	border-radius: 16px;
	border: 1px solid #d0d8ea;
	background: #fff;
	color: #2c5aa0;
	font-size: 12px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.klaes-provider-reset:hover {
	background: #e8eefb;
}

.klaes-export-status {
	padding: 12px 16px;
	border-radius: 8px;
	margin-bottom: 18px;
	font-weight: 500;
}

.klaes-export-status.success {
	background: #e8f6ef;
	border: 1px solid #7dcba4;
	color: #20613a;
}

.klaes-export-status.error {
	background: #fdecea;
	border: 1px solid #f5a9a1;
	color: #8a2c24;
}

.klaes-export-download {
	margin-top: 10px;
}

.klaes-empty-hint {
	padding: 20px;
	border-radius: 8px;
	background: #fff7e6;
	border: 1px solid #f7d6a1;
	color: #8a5a1c;
	margin-top: 15px;
}

@media (max-width: 768px) {
	.klaes-checkbox-grid {
		grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
		padding: 15px;
	}
	
	.klaes-provider-tags {
		gap: 8px;
	}
	
	.klaes-provider-reset {
		margin-bottom: 8px;
	}
	
	.klaes-thumb-wrapper {
		min-width: 70px;
	}

	.klaes-group-header {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* Responsive: Kleinere Bildschirme */
@media (max-width: 768px) {
	.fenster-grid {
		grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
		gap: 10px;
		padding: 10px;
	}
	
	.fenster-img {
		max-height: 120px;
	}
	
	.fenster-label {
		font-size: 11px;
	}
}

/* The container must be positioned relative: */
.custom-select {
  position: relative;
  font-family: Arial;
}

.custom-select select {
  display: none; /*hide original SELECT element: */
}

.select-selected {
  background-color: DodgerBlue;
}

/* Style the arrow inside the select element: */
.select-selected:after {
  position: absolute;
  content: "";
  top: 14px;
  right: 10px;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  border-color: #fff transparent transparent transparent;
}

/* Point the arrow upwards when the select box is open (active): */
.select-selected.select-arrow-active:after {
  border-color: transparent transparent #fff transparent;
  top: 7px;
}

/* style the items (options), including the selected item: */
.select-items div,.select-selected {
  color: #ffffff;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-color: transparent transparent rgba(0, 0, 0, 0.1) transparent;
  cursor: pointer;
}

/* Style items (options): */
.select-items {
  position: absolute;
  background-color: DodgerBlue;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 99;
}

/* Hide the items when the select box is closed: */
.select-hide {
  display: none;
}

.select-items div:hover, .same-as-selected {
  background-color: rgba(0, 0, 0, 0.1);
}

.resp-table {
	width: 100%;
	display: table;
	border-spacing: 1px;
	
}

.resp-table-caption{
display: table-caption;
text-align: center;
font-size: 20px;
font-weight: bold;
}

.resp-table-header{
display: table-header-group;
background-color: gray;
font-weight: bold;
font-size: 15px;
}

.table-header-cell{
display: table-cell;
padding: 10px;
text-align: justify;
border-bottom: 1px solid black;
	
}

.resp-table-body{
display: table-row-group;
}

.resp-table-row{
display: table-row;

}

.table-body-cell{
	display: table-cell;
	padding: 2px;
	vertical-align: middle;
}

/* Colspan-Verhalten für DIV-basierte Tabellen: Zelle über alle Spalten */
.table-body-cell-colspan-3 {
	display: table-cell;
	width: 100%;
}

.scroll {
background: #FFFFFF;
height: 400px;
overflow: auto;
overflow-y: auto;
width: 90vw;
border: 1px solid #000;
padding: 10px;
white-space: nowrap;
}


.tooltip {cursor: help;}

/* Aussehen für Tooltip Fenster */
.tooltip span { 
   position: absolute;
   width: 240px;
   color: #000000;
   margin-top: 20px;
   padding: 15px;
   background-color: #FFFFFF;
   border: 1px solid #343434;
   visibility: hidden;z-index:1900; }

/* bei Mauskontakt sichtbar */
.tooltip:hover span { visibility: visible; }


/* Customize the label (the container) */
.container {
  display: block;
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 18px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 25px;
  width: 25px;
  background-color: #eee;
  border-radius: 50%;
}

/* On mouse-over, add a grey background color */
.container:hover input ~ .checkmark {
  background-color: #ccc;
}

/* When the radio button is checked, add a blue background */
.container input:checked ~ .checkmark {
  background-color: #2196F3;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.container input:checked ~ .checkmark:after {
  display: block;
}

/* Style the indicator (dot/circle) */
.container .checkmark:after {
  top: 9px;
  left: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
}

.table-auftraege {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
}
.table-auftraege th,
.table-auftraege td {
  border: 1px solid #ccc;
  padding: 10px;
  vertical-align: middle;
  text-align: center;
}
.table-auftraege thead {
  background-color: #ddd;
}
.table-auftraege tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

/* Hervorhebung für Aufträge vom aktuellen Tag */
.table-auftraege tbody tr.heute {
  background-color: #b6fcb6 !important;
}

/* Hervorhebung für abgeschlossene Aufträge */
.table-auftraege tbody tr.abgeschlossen {
  background-color: #ffebee !important;
}

.table-auftraege tbody tr.abgeschlossen td {
  background-color: #ffebee !important;
}
/* Icon-Button Styles wurden zu themes.css verschoben für bessere Theme-Integration */
.icon-button {
  /* Basis-Styles - werden von themes.css überschrieben */
  cursor: pointer;
}
.table-auftraege img {
  max-height: 40px;
}
.messung-buttons {
  display: flex;
  gap: 8px;
  justify-content: center;
  align-items: center;
}
/* Messung-Buttons Styles wurden zu themes.css verschoben für bessere Theme-Integration */
.messung-buttons button {
  cursor: pointer;
}

@keyframes rowFlashGreen {
  0% { background-color: #b3ffb3; }
  100% { background-color: inherit; }
}
@keyframes rowFlashRed {
  0% { background-color: #ffb3b3; }
  100% { background-color: inherit; }
}
.row-flash-green {
  animation: rowFlashGreen 0.7s linear;
}
.row-flash-red {
  animation: rowFlashRed 0.7s linear;
}

/* Info-Bild-Popup (zentral für alle Info-Icons) */
.info-image-modal {
  display: none;
  position: fixed;
  z-index: 99999;
  left: 0; top: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.7);
  justify-content: center;
  align-items: center;
}
.info-image-modal.active {
  display: flex;
}
.info-image-modal-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.info-image-modal-content img {
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 0 20px #000;
  border-radius: 8px;
  display: block;
}
.info-image-modal-caption {
  margin: 12px auto 0;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  display: none;
  width: 100%;
}
.info-image-modal-close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 2.2em;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  background: rgba(0,0,0,0.4);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Footer-Icons gleich groß und mittig */
.footer-icon {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  object-fit: contain;
}

/* ----------- KI-Analyse ----------- */
.ki-analyse-button {
    background-color: #007bff;
    margin-top: 5px;
}
.ki-analyse-button:hover {
    background-color: #0056b3;
}

#ki-result-modal, #ki-analyse-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

#ki-result-modal.show, #ki-analyse-modal.show {
    display: flex;
}

.ki-modal-content, .modal-content {
    background-color: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 95%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.ki-modal-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.ki-modal-bild-container {
    flex: 0 0 400px;
    max-width: 400px;
}

.ki-modal-bild-container img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.ki-modal-ergebnis-container {
    flex: 1;
    min-width: 0;
}

.ki-modal-close, .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
}

.ki-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ki-modal-content table, .modal-content table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

.ki-modal-content th, .ki-modal-content td, .modal-content th, .modal-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.ki-modal-content th, .modal-content th {
    background-color: #f2f2f2;
}

/* ----------- Eigenschaften-Typen Design ----------- */
.eigenschaften-typ {
    margin-bottom: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background-color: #fafafa;
    transition: all 0.2s ease;
}

.eigenschaften-typ:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0,123,255,0.1);
}

.eigenschaften-typ summary {
    padding: 12px 16px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 6px 6px 0 0;
    user-select: none;
    transition: all 0.2s ease;
    position: relative;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eigenschaften-typ summary:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1976d2;
}

.eigenschaften-typ summary::-webkit-details-marker {
    display: none;
}

.eigenschaften-typ summary::after {
    content: '▶';
    font-size: 12px;
    color: #666;
    transition: transform 0.2s ease;
    margin-left: 8px;
}

.eigenschaften-typ[open] summary::after {
    transform: rotate(90deg);
}

.eigenschaften-typ[open] summary {
    border-radius: 6px 6px 0 0;
    border-bottom: 1px solid #e0e0e0;
}

.eigenschaften-content {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 0 0 6px 6px;
}

.loading-indicator {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

/* Drag & Drop Upload Styles */
.upload-section {
    margin: 20px 0;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
}

.upload-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.drag-drop-zone {
    border: 2px dashed #ccc;
    border-radius: 8px;
    padding: 40px 20px;
    text-align: center;
    background-color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.drag-drop-zone:hover {
    border-color: #007bff;
    background-color: #f8f9fa;
}

.drag-drop-zone.drag-over {
    border-color: #007bff;
    background-color: #e3f2fd;
    border-style: solid;
}

.drop-content {
    pointer-events: none;
}

.drop-content p {
    margin: 5px 0;
    color: #666;
}

.drop-hint {
    font-size: 12px;
    color: #999;
}

.file-list {
    margin: 15px 0;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    padding: 10px;
}

.file-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.file-item:last-child {
    border-bottom: none;
}

.file-name {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.file-size {
    color: #666;
    margin-left: 10px;
    font-size: 12px;
}

.remove-file {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    margin-left: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remove-file:hover {
    background: #c82333;
}

.upload-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.upload-button:hover:not(:disabled) {
    background-color: #0056b3;
}

.upload-button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* =============================================================================
   EXPORT-SEITE (Messungen Exportieren)
   ============================================================================= */

.export-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.export-section {
    margin-top: 25px;
    padding: 18px 20px;
    background: #ffffff;
    border: 1px dashed #cdd6ea;
    border-radius: 10px;
}

.export-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #2c3a4d;
}

.small-alert {
    margin-bottom: 12px;
}

.export-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.export-controls label {
    font-weight: 600;
    color: #2c3a4d;
}

.export-controls select {
    min-width: 220px;
    padding: 8px 10px;
    border: 1px solid #cfd7e6;
    border-radius: 6px;
    font-size: 13px;
    color: #2c3a4d;
}

.export-buttons {
    display: flex;
    gap: 10px;
}

.export-download {
    margin-top: 8px;
}

.export-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.export-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid #3498db;
}

.export-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.export-card.excel {
    border-left-color: #27ae60;
}

.export-card.pdf {
    border-left-color: #e74c3c;
}

.export-card.klaes {
    border-left-color: #2980b9;
}

.export-card.prologic {
    border-left-color: #3498db;
}

.export-card.adulo {
    border-left-color: #27ae60;
}

.export-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: block;
    transition: transform 0.3s ease;
}

.export-card:hover .export-icon {
    transform: scale(1.1);
}

.export-title {
    font-size: 16px;
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    line-height: 1.4;
}

.export-description {
    font-size: 13px;
    color: #7f8c8d;
    margin-bottom: 15px;
    line-height: 1.4;
}

.export-link {
    display: inline-block;
    background: #3498db;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.export-link:hover {
    background: #2980b9;
    text-decoration: none;
}

.export-link.excel {
    background: #27ae60;
}

.export-link.excel:hover {
    background: #229954;
}

.export-link.pdf {
    background: #e74c3c;
}

.export-link.pdf:hover {
    background: #c0392b;
}

.export-link.klaes {
    background-color: #2980b9;
}

.export-link.klaes:hover {
    background-color: #3498db;
}

.export-link.prologic {
    background-color: #3498db;
    color: white;
}

.export-link.prologic:hover {
    background-color: #2874a6;
}

@media (max-width: 768px) {
    .export-grid {
        grid-template-columns: 1fr;
    }
    
    .export-container {
        padding: 10px;
    }
}

/* Übersprungene Positionen - Tabelle */
.export-skipped-description {
    text-align: center;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.export-skipped-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.export-skipped-table thead {
    background: #34495e;
    color: white;
}

.export-skipped-table th {
    padding: 12px;
    text-align: left;
}

.export-skipped-table tbody tr.export-skipped-row-even {
    background: #ecf0f1;
}

.export-skipped-table tbody tr.export-skipped-row-odd {
    background: white;
}

.export-skipped-table td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.export-skipped-table td.export-skipped-grund {
    color: #e74c3c;
}

.export-skipped-success {
    text-align: center;
    margin-top: 20px;
    color: #27ae60;
    font-weight: bold;
}

/* Progress-Indikator für neue Nutzer */
.progress-indicator-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    position: relative;
}

.progress-indicator-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-congratulations {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.progress-congratulations h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: white;
}

.progress-congratulations p {
    margin: 8px 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
}

.progress-contact-info {
    margin-top: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.progress-contact-info a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.progress-contact-info a:hover {
    text-decoration: none;
}

.progress-indicator-header h3 {
    margin: 0;
    font-size: 18px;
    color: white;
}

.progress-close-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.progress-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.progress-bar-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.progress-bar {
    flex: 1;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: white;
    border-radius: 6px;
    transition: width 0.5s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.progress-percentage {
    font-size: 16px;
    font-weight: bold;
    min-width: 45px;
    text-align: right;
}

.progress-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.progress-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    transition: background 0.3s;
}

.progress-step.completed {
    background: rgba(255, 255, 255, 0.2);
}

.progress-step-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.progress-step.completed .progress-step-icon {
    background: rgba(76, 175, 80, 0.9);
    color: white;
}

.progress-step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.progress-step-content strong {
    font-size: 14px;
    color: white;
}

.progress-step-content span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .progress-indicator-container {
        padding: 15px;
    }
    
    .progress-bar-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .progress-percentage {
        text-align: center;
    }
}

/* Dokument-Toolbar für Mehrfach-Auswahl und Löschung */
.document-toolbar {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background-color: #f5f5f5;
    border-radius: 6px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
}

.select-all-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    color: #333;
    margin: 0;
}

.select-all-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.select-all-label span {
    user-select: none;
}

.btn-delete-selected,
.btn-delete-all {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-delete-selected {
    background-color: #ff6b6b;
    color: white;
}

.btn-delete-selected:hover:not(:disabled) {
    background-color: #ff5252;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.btn-delete-selected:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.btn-delete-all {
    background-color: #d32f2f;
    color: white;
}

.btn-delete-all:hover {
    background-color: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(211, 47, 47, 0.3);
}

/* Dokument-Liste Items mit Checkbox */
.document-list-item {
    margin-bottom: 8px;
    padding: 10px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.document-list-item:hover {
    background-color: #f9f9f9;
}

.document-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

/* Responsive Anpassungen für Dokument-Toolbar */
@media (max-width: 768px) {
    .document-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .select-all-label {
        justify-content: center;
    }
    
    .btn-delete-selected,
    .btn-delete-all {
        width: 100%;
        justify-content: center;
    }
}

/* Versatz-Bilder */
.versatz-bild {
	height: 60px;
	margin-left: 10px;
	vertical-align: middle;
	cursor: pointer;
	border: 2px solid #ccc;
	border-radius: 8px;
	padding: 3px;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.versatz-bild:hover {
	transform: scale(1.05);
	border-color: #666;
}

.fuenf-mass-details {
	display: block;
	font-size: 12px;
	color: var(--text-secondary, #666);
	margin-top: 4px;
}

/* Insektenschutz Popup - Floating rechts */
.insektenschutz-popup {
	display: none;
	position: fixed;
	top: 100px;
	right: 20px;
	z-index: 1000;
	max-width: 90%;
}

.insektenschutz-popup-container {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	overflow: hidden;
	transition: all 0.3s ease;
}

.insektenschutz-popup-small {
	width: 250px;
}

.insektenschutz-popup-large {
	position: fixed;
	top: 60px;
	left: 50%;
	transform: translateX(-50%);
	width: 95vw;
	max-width: 1400px;
	height: calc(100vh - 100px);
	border-radius: 8px;
	z-index: 100;
	display: flex;
	flex-direction: column;
}

.insektenschutz-popup-header {
	background: #2c5aa0;
	color: white;
	padding: 10px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.insektenschutz-popup-title {
	font-weight: bold;
	font-size: 14px;
}

.insektenschutz-popup-close {
	background: transparent;
	border: none;
	color: white;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 30px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	transition: background 0.2s ease;
}

.insektenschutz-popup-close:hover {
	background: rgba(255, 255, 255, 0.2);
}

.insektenschutz-popup-image-wrapper {
	padding: 15px;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	background: #f9f9f9;
}

.insektenschutz-popup-large .insektenschutz-popup-image-wrapper {
	flex: 1;
	padding: 20px;
	background: #1a1a1a;
}

.insektenschutz-popup-image-wrapper img {
	max-width: 100%;
	max-height: 500px;
	object-fit: contain;
	cursor: pointer;
	border-radius: 4px;
	transition: transform 0.2s ease;
}

.insektenschutz-popup-large .insektenschutz-popup-image-wrapper img {
	max-width: 100%;
	max-height: calc(80vh - 60px);
	border-radius: 0;
}

.insektenschutz-popup-image-wrapper img:hover {
	transform: scale(1.02);
}

.insektenschutz-popup-large .insektenschutz-popup-image-wrapper img:hover {
	transform: scale(1.01);
}

/* Button zum Wiederöffnen des Insektenschutz-Popups */
.insektenschutz-reopen-btn {
	display: none;
	position: fixed;
	bottom: 100px;
	right: 20px;
	width: 60px;
	height: 60px;
	background: #2c5aa0;
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 28px;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	z-index: 999;
	align-items: center;
	justify-content: center;
	transition: all 0.3s ease;
}

.insektenschutz-reopen-btn:hover {
	background: #1e4278;
	transform: scale(1.1);
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.insektenschutz-reopen-btn:active {
	transform: scale(1.05);
}

/* Responsive Anpassungen für Insektenschutz Popup */
@media (max-width: 600px) {
	.insektenschutz-popup {
		position: fixed;
		top: auto;
		bottom: 0;
		left: 0;
		right: 0;
		max-width: 100%;
	}
	
	.insektenschutz-popup-small {
		width: 100%;
	}
	
	.insektenschutz-popup-small .insektenschutz-popup-container {
		border-radius: 8px 8px 0 0;
	}
}

/* Einstellungen: Neue Struktur */
.settings-quick-panel {
	background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
	color: #333;
	padding: 20px;
	border-radius: 12px;
	margin-bottom: 30px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	border-left: 4px solid #2c5aa0;
}

.settings-quick-panel h3 {
	margin: 0 0 5px 0;
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 10px;
	color: #2c5aa0;
	font-weight: 600;
}

.settings-quick-panel p {
	color: #666;
	margin: 0 0 15px 0;
}

.settings-quick-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 15px;
}

.settings-quick-item {
	background: white;
	padding: 15px;
	border-radius: 8px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
	border: 1px solid #e0e0e0;
	transition: all 0.2s ease;
}

.settings-quick-item:hover {
	box-shadow: 0 4px 12px rgba(44, 90, 160, 0.15);
	border-color: #2c5aa0;
	transform: translateY(-2px);
}

.settings-quick-item label {
	display: block;
	font-size: 13px;
	margin-bottom: 5px;
	color: #2c5aa0;
	font-weight: 500;
}

.settings-quick-item select,
.settings-quick-item input {
	width: 100%;
	padding: 8px;
	border-radius: 6px;
	border: none;
	background: white;
	color: #333;
}

.settings-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	border-bottom: 2px solid #e0e0e0;
	padding-bottom: 10px;
}

.settings-tab-btn {
	background: white;
	border: 2px solid #e0e0e0;
	padding: 12px 20px;
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 8px;
	transition: all 0.3s ease;
	border-bottom: none;
	margin-bottom: -2px;
}

.settings-tab-btn:hover {
	background: #f5f5f5;
	border-color: #bbb;
}

.settings-tab-btn.active {
	background: white;
	border-color: #2c5aa0;
	border-bottom: 2px solid white;
	color: #2c5aa0;
}

.settings-tab-content {
	display: none;
}

.settings-tab-content.active {
	display: block;
}

.settings-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 20px;
	margin-bottom: 30px;
}

/* Erweitert-Tab: Drei Karten nebeneinander */
#tab-erweitert .settings-grid {
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-bottom: 30px;
}

@media (max-width: 1400px) {
	#tab-erweitert .settings-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 900px) {
	#tab-erweitert .settings-grid {
		grid-template-columns: 1fr;
	}
}

.settings-card {
	background: white;
	border: 2px solid #e0e0e0;
	border-radius: 12px;
	padding: 0;
	transition: all 0.3s ease;
	overflow: hidden;
}

.settings-card:hover {
	border-color: #2c5aa0;
	box-shadow: 0 4px 12px rgba(44, 90, 160, 0.1);
	transform: translateY(-2px);
}

.settings-card-header {
	background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
	padding: 15px;
	display: flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	border-bottom: 2px solid #e0e0e0;
}

.settings-card-icon {
	font-size: 28px;
	width: 45px;
	height: 45px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: white;
	border-radius: 10px;
}

.settings-card-title {
	flex: 1;
}

.settings-card-title h4 {
	margin: 0 0 3px 0;
	font-size: 16px;
	color: #333;
}

.settings-card-title p {
	margin: 0;
	font-size: 12px;
	color: #666;
}

.settings-card-content {
	padding: 20px;
	display: none;
}

.settings-card.open .settings-card-content {
	display: block;
}

.settings-card-content .checkbox-label {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 0;
	margin-bottom: 5px;
}

.settings-card-content .checkbox-label input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	flex-shrink: 0;
}

.settings-card-content label:not(.checkbox-label) {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}

.settings-card-toggle {
	font-size: 20px;
	transition: transform 0.3s ease;
}

.settings-card.open .settings-card-toggle {
	transform: rotate(180deg);
}

.settings-tip {
	background: #e3f2fd;
	border-left: 4px solid #2196f3;
	padding: 12px;
	margin: 10px 0;
	border-radius: 4px;
	font-size: 13px;
	line-height: 1.6;
}

.settings-tip strong {
	color: #1976d2;
}

/* Info-Icon & Info-Popup */
.info-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	background: #2196f3;
	color: white;
	border-radius: 50%;
	font-size: 14px;
	cursor: pointer;
	margin-left: 8px;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.info-icon:hover {
	background: #1976d2;
	transform: scale(1.1);
}

.info-popup-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	z-index: 10000;
	align-items: center;
	justify-content: center;
}

.info-popup-content {
	background: white;
	border-radius: 12px;
	max-width: 500px;
	width: 90%;
	max-height: 80vh;
	overflow: auto;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.info-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px;
	border-bottom: 2px solid #e0e0e0;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border-radius: 12px 12px 0 0;
}

.info-popup-header h3 {
	margin: 0;
	font-size: 18px;
	display: flex;
	align-items: center;
	gap: 8px;
}

.info-popup-close {
	background: rgba(255, 255, 255, 0.2);
	border: none;
	color: white;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
}

.info-popup-close:hover {
	background: rgba(255, 255, 255, 0.3);
	transform: rotate(90deg);
}

.info-popup-body {
	padding: 20px;
	line-height: 1.6;
	color: #333;
	font-size: 15px;
}

/* Responsive für Einstellungen */
@media (max-width: 768px) {
	.settings-grid {
		grid-template-columns: 1fr;
	}
	
	.settings-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
	}
	
	.settings-tab-btn {
		white-space: nowrap;
	}
	
	.settings-quick-grid {
		grid-template-columns: 1fr;
	}
}

/* =============================================================================
   THEME-AUSWAHL MIT HERSTELLER-LOGOS
   ============================================================================= */

/* Theme-Select mit visueller Darstellung */
.theme-select-wrapper {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
}

.theme-badge {
	display: inline-block;
	width: 32px;
	height: 32px;
	border-radius: 6px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.15);
	border: 2px solid #fff;
	flex-shrink: 0;
}

/* Hersteller-Logo-Badges */
.theme-badge.ammon {
	background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
	position: relative;
}

.theme-badge.ammon::after {
	content: "gelbrot";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) rotate(-15deg);
	font-size: 6px;
	font-weight: 900;
	color: #fff;
	text-shadow: 0 1px 2px rgba(0,0,0,0.3);
	white-space: nowrap;
}

.theme-badge.wuerth {
	background: #cc0000;
	position: relative;
}

.theme-badge.wuerth::after {
	content: "W";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 20px;
	font-weight: 900;
	color: #fff;
	font-family: Arial, sans-serif;
}

.theme-badge.klaes {
	background: #0066b3;
	position: relative;
}

.theme-badge.klaes::after {
	content: "K";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 20px;
	font-weight: 900;
	color: #fff;
	font-family: Arial, sans-serif;
}

.theme-badge.prologic {
	background: linear-gradient(135deg, #003366 0%, #4a5568 100%);
	position: relative;
}

.theme-badge.prologic::after {
	content: "P";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 20px;
	font-weight: 900;
	color: #fff;
	font-family: Arial, sans-serif;
}

.theme-badge.handwerker {
	background: linear-gradient(135deg, #d84315 0%, #8d6e63 100%);
	position: relative;
}

.theme-badge.handwerker::after {
	content: "🔨";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 16px;
}

.theme-badge.profi {
	background: linear-gradient(135deg, #1565c0 0%, #8d6e63 100%);
	position: relative;
}

.theme-badge.profi::after {
	content: "👔";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 16px;
}

.theme-badge.default {
	background: linear-gradient(135deg, #04AA6D 0%, #ffffff 100%);
	border: 2px solid #dee2e6;
}

/* Adress-Tag für Navigation */
.address-tag {
	display: inline-block;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	margin-left: 4px;
	vertical-align: middle;
	line-height: 1.4;
}

.address-tag.projekt {
	background-color: #28a745;
	color: white;
}

.address-tag.kunde {
	background-color: #17a2b8;
	color: white;
}

.theme-badge.dark {
	background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
}

.theme-badge.blue {
	background: #1976d2;
}

.theme-badge.green {
	background: #2e7d32;
}

.theme-badge.red {
	background: #c62828;
}

/* ==========================================
   Tourenplanung Styles
   ========================================== */

/* Button auf der Welcome-Seite */
.tourenplanung-button-container {
	margin-bottom: 15px;
	text-align: center;
}

.button-tourenplanung {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
	display: inline-flex;
	align-items: center;
}

.button-tourenplanung:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.button-tourenplanung:active {
	transform: translateY(0);
}

/* Kompakter Button neben der Suche */
.button-tourenplanung-compact {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 6px rgba(102, 126, 234, 0.25);
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

.button-tourenplanung-compact:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 10px rgba(102, 126, 234, 0.35);
	background: linear-gradient(135deg, #5568d3 0%, #653a8e 100%);
}

.button-tourenplanung-compact:active {
	transform: translateY(0);
}

/* Tourenplanung Container */
.tourenplanung-container {
	max-width: 1200px;
	margin: 0 auto;
}

.tourenplanung-header {
	background: #f8f9fa;
	padding: 20px;
	border-radius: 8px;
	margin-bottom: 20px;
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: center;
	justify-content: space-between;
}

.datum-auswahl-form {
	display: flex;
	align-items: center;
	gap: 10px;
}

.datum-auswahl-form label {
	font-size: 15px;
	color: #333;
}

.datum-auswahl-form select {
	padding: 8px 12px;
	border: 1px solid #ccc;
	border-radius: 6px;
	font-size: 14px;
	background: white;
	min-width: 250px;
}

.tourenplanung-info {
	font-size: 14px;
	color: #666;
	padding: 8px 12px;
	background: white;
	border-radius: 6px;
	border-left: 4px solid #667eea;
}

/* Keine Daten Anzeige */
.tourenplanung-keine-daten {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	padding: 30px;
	text-align: center;
	color: #856404;
}

.tourenplanung-keine-daten p {
	margin: 10px 0;
	font-size: 15px;
}

/* Zusammenfassung */
.tourenplanung-zusammenfassung {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin-bottom: 25px;
}

.zusammenfassung-item {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	padding: 20px;
	border-radius: 10px;
	text-align: center;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

/* Hervorgehobene Abfahrtszeit */
.zusammenfassung-highlight {
	background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
	box-shadow: 0 6px 16px rgba(17, 153, 142, 0.3);
	border: 2px solid rgba(255, 255, 255, 0.3);
}

.zusammenfassung-label {
	display: block;
	font-size: 14px;
	margin-bottom: 8px;
	opacity: 0.9;
}

.zusammenfassung-wert {
	display: block;
	font-size: 24px;
	font-weight: bold;
}

.zusammenfassung-detail {
	display: block;
	font-size: 12px;
	margin-top: 8px;
	opacity: 0.85;
	font-style: italic;
}

/* Routen-Details */
.tourenplanung-routen {
	background: white;
	padding: 20px;
	border-radius: 10px;
	border: 1px solid #e0e0e0;
	margin-bottom: 25px;
}

.tourenplanung-routen h3 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #333;
	font-size: 18px;
	border-bottom: 2px solid #667eea;
	padding-bottom: 10px;
}

.route-item {
	background: #f8f9fa;
	border-left: 4px solid #667eea;
	padding: 15px;
	margin-bottom: 12px;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.route-item:hover {
	background: #e9ecef;
	transform: translateX(5px);
}

.route-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

.route-nummer {
	background: #667eea;
	color: white;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	font-size: 14px;
}

.route-beschreibung {
	flex: 1;
	font-size: 15px;
	color: #333;
}

.route-pfeil {
	color: #667eea;
	font-size: 18px;
	margin: 0 5px;
}

.route-zusatzinfo {
	font-size: 13px;
	color: #666;
	font-weight: normal;
	font-style: italic;
	margin-left: 5px;
}

.route-details {
	display: flex;
	gap: 20px;
	padding-left: 40px;
	font-size: 14px;
	color: #666;
}

.route-detail-item {
	display: flex;
	align-items: center;
	gap: 5px;
}

.route-icon {
	font-size: 16px;
}

/* Zeitplan Tabelle */
.tourenplanung-zeitplan {
	background: white;
	padding: 20px;
	border-radius: 10px;
	border: 1px solid #e0e0e0;
	margin-bottom: 25px;
	overflow-x: auto;
}

.tourenplanung-zeitplan h3 {
	margin-top: 0;
	margin-bottom: 20px;
	color: #333;
	font-size: 18px;
	border-bottom: 2px solid #667eea;
	padding-bottom: 10px;
}

.zeitplan-tabelle {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.zeitplan-tabelle thead {
	background: #667eea;
	color: white;
}

.zeitplan-tabelle th {
	padding: 12px 15px;
	text-align: left;
	font-weight: 500;
}

.zeitplan-tabelle td {
	padding: 12px 15px;
	border-bottom: 1px solid #e0e0e0;
}

.zeitplan-tabelle tbody tr:hover {
	background: #f8f9fa;
}

.zeitplan-tabelle tbody tr:last-child td {
	border-bottom: none;
}

.button-small {
	padding: 6px 12px;
	font-size: 13px;
	background: #667eea;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.button-small:hover {
	background: #5568d3;
	transform: scale(1.05);
}

/* Hinweis */
.tourenplanung-hinweis {
	background: #e3f2fd;
	border-left: 4px solid #2196F3;
	padding: 15px 20px;
	border-radius: 6px;
	margin-bottom: 25px;
	font-size: 14px;
	color: #1565c0;
}

.tourenplanung-hinweis p {
	margin: 8px 0;
}

.tourenplanung-hinweis strong {
	color: #0d47a1;
}

/* Footer */
.tourenplanung-footer {
	text-align: center;
	padding-top: 20px;
}

/* Puffer-Spalte Farben */
.puffer-ok {
	color: #28a745;
	font-weight: 500;
}

.puffer-knapp {
	color: #ffc107;
	font-weight: 500;
}

.puffer-negativ {
	color: #dc3545;
	font-weight: 700;
}

/* Lade-Animation */
.tourenplanung-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.loader-content {
	background: white;
	padding: 40px;
	border-radius: 15px;
	text-align: center;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.loader-content p {
	margin: 20px 0 5px 0;
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

.loader-content small {
	color: #666;
	font-size: 13px;
}

/* Spinner Animation */
.spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid #667eea;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	margin: 0 auto;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
	.tourenplanung-header {
		flex-direction: column;
		align-items: stretch;
	}
	
	.datum-auswahl-form {
		flex-direction: column;
		align-items: stretch;
	}
	
	.datum-auswahl-form select {
		width: 100%;
	}
	
	.tourenplanung-zusammenfassung {
		grid-template-columns: 1fr;
	}
	
	.route-details {
		flex-direction: column;
		gap: 8px;
	}
	
	.zeitplan-tabelle {
		font-size: 12px;
	}
	
	.zeitplan-tabelle th,
	.zeitplan-tabelle td {
		padding: 8px 10px;
	}
	
	.button-tourenplanung {
		width: 100%;
		justify-content: center;
	}
	
	.tourenplanung-button-container {
		text-align: center;
	}
}



.lieferantenvergleich-container {
	margin-top: 25px;
}

.lieferantenvergleich-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 20px;
	padding: 18px 22px;
	background: #ffffff;
	border: 1px solid #e1e7f2;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(44, 90, 160, 0.05);
}

.lieferantenvergleich-header h2 {
	margin: 0;
	font-size: 22px;
	color: #2c3a4d;
}

.auftrag-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	font-size: 14px;
	color: #4a566b;
	margin-top: 6px;
}

.header-actions .button.secondary {
	background: #f0f3f9;
	color: #2c3a4d;
}

.lieferanten-overview {
	margin-top: 25px;
	padding: 18px 22px;
	background: #ffffff;
	border: 1px solid #e1e7f2;
	border-radius: 10px;
}

.lieferanten-overview h3 {
	margin-top: 0;
	margin-bottom: 15px;
	font-size: 18px;
	color: #2c3a4d;
}

.supplier-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
}

.supplier-list li {
	background: #f6f9ff;
	border: 1px solid #dbe4f6;
	border-radius: 8px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 13px;
	color: #2c3a4d;
}

.supplier-meta {
	color: #63708c;
	font-size: 12px;
}

.alert {
	margin-top: 18px;
	padding: 14px 18px;
	border-radius: 8px;
	border: 1px solid transparent;
	font-size: 14px;
}

.alert-success {
	background: #e8f8ef;
	border-color: #c6efd8;
	color: #1d7240;
}

.alert-error {
	background: #fdeaea;
	border-color: #f5c2c2;
	color: #973232;
}

.alert-info {
	background: #eef5ff;
	border-color: #c7ddff;
	color: #1f4a91;
}

.no-suppliers {
	margin: 0;
	color: #54627a;
}

.vergleichstabelle-wrapper {
	margin-top: 25px;
	overflow-x: auto;
}

.vergleichstabelle {
	width: 100%;
	border-collapse: collapse;
	background: #ffffff;
	border: 1px solid #e1e7f2;
	border-radius: 10px;
	overflow: hidden;
	min-width: 760px;
}

.vergleichstabelle th,
.vergleichstabelle td {
	padding: 16px;
	vertical-align: top;
	border-bottom: 1px solid #e9eef6;
}

.vergleichstabelle thead th {
	background: #f0f5ff;
	color: #2c3a4d;
	font-weight: 600;
	text-align: left;
}

.col-eigener-typ {
	width: 280px;
}

.eigener-typ-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.eigener-typ-position {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 15px;
	color: #2c3a4d;
}

.badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 2px 8px;
	border-radius: 12px;
	font-size: 11px;
	letter-spacing: 0.2px;
	text-transform: uppercase;
}

.badge-light {
	background: #eef4ff;
	color: #1f4a91;
}

.badge-muted {
	background: #eceff5;
	color: #495770;
}

.badge-success {
	background: #e8f8ef;
	color: #1d7240;
}

.badge-warning {
	background: #fff2d9;
	color: #8a5c11;
}

.eigener-typ-body {
	display: flex;
	gap: 14px;
	align-items: center;
}

.typ-image {
	width: 95px;
	height: 95px;
	border-radius: 10px;
	background: #f4f6fb;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	border: 1px solid #e1e7f2;
}

.typ-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.img-placeholder {
	font-size: 11px;
	color: #7a879c;
}

.typ-details {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.typ-name {
	font-weight: 600;
	color: #2c3a4d;
}

.typ-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #5a6579;
	font-size: 12px;
}

.typ-tags {
	font-style: italic;
	color: #7a879c;
}

.typ-metrics {
	display: flex;
	gap: 12px;
	font-size: 12px;
	color: #677389;
}

.lieferant-card {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.lieferanten-select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #cfd7e6;
	border-radius: 8px;
	font-size: 13px;
	background: #ffffff;
	color: #2c3a4d;
}

.lieferanten-select:focus {
	outline: none;
	border-color: #3f6ad8;
	box-shadow: 0 0 0 2px rgba(63, 106, 216, 0.1);
}

.suggestion-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	font-size: 12px;
	color: #4f5b72;
}

.suggestion-list strong {
	margin-right: 4px;
}

.suggestion-badge {
	cursor: pointer;
	background: #eef5ff;
	border: 1px solid #c7ddff;
	border-radius: 12px;
	padding: 4px 8px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #1f4a91;
	font-size: 11px;
	transition: background 0.2s ease;
}

.suggestion-badge img {
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #fff;
	object-fit: contain;
	padding: 2px;
	box-shadow: 0 1px 2px rgba(31, 74, 145, 0.12);
}

.suggestion-badge .suggestion-text {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.suggestion-badge .suggestion-text small {
	color: #4a80d8;
	font-size: 10px;
	margin-top: 2px;
}

.suggestion-badge:hover {
	background: #dbe7ff;
}

.selection-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	font-size: 12px;
	color: #56607a;
}

.score-info {
	padding: 2px 6px;
	background: #f2f5fb;
	border-radius: 6px;
}

.form-actions {
	margin-top: 20px;
	text-align: right;
}

.form-actions .button.primary {
	padding: 10px 22px;
	font-size: 15px;
}

@media (max-width: 768px) {

	.vergleichstabelle {
		min-width: 600px;
	}
}

.selected-typ-preview {
	margin-top: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.preview-image-wrapper {
	width: 64px;
	height: 64px;
	border-radius: 10px;
	border: 1px solid #d6deeb;
	background: #f7f9ff;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.preview-image-wrapper img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.selected-typ-preview.empty img {
	display: none;
}

.preview-placeholder {
	display: none;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #98a5c1;
	text-align: center;
	padding: 4px;
}

.selected-typ-preview.empty .preview-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	width: 100%;
}

.preview-label {
	font-size: 12px;
	color: #2a3955;
	font-weight: 500;
	max-width: 180px;
	line-height: 1.3;
}

.selected-typ-preview.empty .preview-label {
	color: #8a96af;
	font-weight: 400;
}

.button.small {
	padding: 6px 12px;
	font-size: 13px;
}

.button.button-danger {
	background-color: #e64c4c;
}

.button.button-danger:hover {
	background-color: #c63b3b;
}

/* Mandanten- und Benutzerverwaltung Styles */
.verwaltung-container {
	max-width: 1200px;
	margin: 20px auto;
	padding: 20px;
}

.verwaltung-section {
	margin-bottom: 30px;
	padding: 20px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.verwaltung-section h2 {
	margin-top: 0;
	color: #333;
	border-bottom: 2px solid #007bff;
	padding-bottom: 10px;
}

.verwaltung-form {
	margin-top: 15px;
}

.mandant-card {
	margin-bottom: 30px;
	padding: 20px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
}

.mandant-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 15px;
}

.mandant-header h3 {
	margin: 0;
	color: #007bff;
}

.mandant-info {
	margin-bottom: 20px;
	padding: 10px;
	background: #fff;
	border-radius: 4px;
}

.mandant-info p {
	margin: 5px 0;
}

.benutzer-section {
	margin-top: 20px;
}

.benutzer-section h4 {
	margin-bottom: 15px;
	color: #495057;
}

.table-benutzer {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	background: #fff;
}

.table-benutzer th,
.table-benutzer td {
	padding: 10px;
	border: 1px solid #dee2e6;
	text-align: left;
}

.table-benutzer thead {
	background-color: #007bff;
	color: #fff;
}

.table-benutzer thead th {
	font-weight: 600;
}

.table-benutzer tbody tr:nth-child(even) {
	background-color: #f8f9fa;
}

.table-benutzer tbody tr:hover {
	background-color: #e9ecef;
}

.table-benutzer tr.new-row {
	background-color: #e7f3ff;
}

.table-benutzer tr.new-row:hover {
	background-color: #d0e7ff;
}

.table-benutzer input[type="text"],
.table-benutzer input[type="email"],
.table-benutzer input[type="password"] {
	width: 100%;
	padding: 6px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 14px;
}

.table-benutzer input[type="checkbox"] {
	transform: scale(1.2);
	cursor: pointer;
}

.button-small {
	padding: 4px 8px;
	font-size: 12px;
	margin: 2px;
}

/* Such- und Filterbereich */
.search-filter-container {
	margin-bottom: 20px;
	padding: 15px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
}

.search-form {
	margin: 0;
}

.search-form input[type="text"] {
	padding: 8px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 14px;
}

.search-form input[type="text"]:focus {
	outline: none;
	border-color: #007bff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

@media (max-width: 768px) {
	.verwaltung-container {
		padding: 10px;
	}
	
	.mandant-header {
		flex-direction: column;
		align-items: flex-start;
	}
	
	.table-benutzer {
		font-size: 12px;
	}
	
	.table-benutzer th,
	.table-benutzer td {
		padding: 6px;
	}
	
	.search-filter-container {
		padding: 10px;
	}
}

/* ========================================
   GLOBALER LOADING-OVERLAY
   Optimiert für schlechten Empfang - visuelles Feedback
   ======================================== */

#global-loading-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.75);
	display: none;
	justify-content: center;
	align-items: center;
	z-index: 999999;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
}

#global-loading-overlay .loading-content {
	text-align: center;
	color: white;
	background: rgba(0, 0, 0, 0.5);
	padding: 40px 60px;
	border-radius: 15px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
	max-width: 90%;
}

#global-loading-overlay .loading-spinner {
	width: 60px;
	height: 60px;
	border: 6px solid rgba(255, 255, 255, 0.2);
	border-top-color: #007bff;
	border-right-color: #007bff;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

#global-loading-overlay .loading-text {
	font-size: 22px;
	font-weight: bold;
	margin-bottom: 10px;
	color: #fff;
	text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#global-loading-overlay .loading-hint {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.8);
	font-style: italic;
	margin-top: 10px;
}

/* Mobile Optimierung */
@media (max-width: 768px) {
	#global-loading-overlay .loading-content {
		padding: 30px 40px;
	}
	
	#global-loading-overlay .loading-spinner {
		width: 50px;
		height: 50px;
		border-width: 5px;
	}
	
	#global-loading-overlay .loading-text {
		font-size: 18px;
	}
	
	#global-loading-overlay .loading-hint {
		font-size: 12px;
	}
}

/* Pulsierender Effekt für bessere Sichtbarkeit */
#global-loading-overlay .loading-content {
	animation: pulse-overlay 2s ease-in-out infinite;
}

@keyframes pulse-overlay {
	0%, 100% {
		opacity: 0.95;
	}
	50% {
		opacity: 1;
	}
}

/* Material-Auswahl (Holz, Kunststoff, Holz-Alu, Alu) */
.material-auswahl-container {
	display: flex;
	gap: 15px;
	flex-wrap: wrap;
	margin: 15px 0;
}

.material-option {
	position: relative;
	flex: 1;
	min-width: 120px;
	max-width: 180px;
}

.material-option input[type="radio"] {
	position: absolute;
	opacity: 0;
	cursor: pointer;
}

.material-option-label {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 15px 10px;
	background: #f5f5f5;
	border: 2px solid #ddd;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.material-option input[type="radio"]:checked + .material-option-label {
	background: linear-gradient(135deg, #2196F3, #1976D2);
	color: white;
	border-color: #1976D2;
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.4);
	transform: translateY(-2px);
}

.material-option-label:hover {
	border-color: #2196F3;
	box-shadow: 0 2px 8px rgba(33, 150, 243, 0.2);
	transform: translateY(-1px);
}

.material-icon {
	font-size: 36px;
	margin-bottom: 8px;
	line-height: 1;
}

.material-icon-img {
	width: 80px;
	height: 80px;
	object-fit: contain;
	margin-bottom: 8px;
	transition: all 0.3s ease;
}

.material-option input[type="radio"]:checked + .material-option-label .material-icon {
	filter: brightness(1.2);
}

.material-option input[type="radio"]:checked + .material-option-label .material-icon-img {
	filter: brightness(1.1) contrast(1.1);
	transform: scale(1.05);
}

.material-name {
	font-weight: bold;
	font-size: 14px;
	margin-top: 5px;
}
