.gfa-hidden-input {
	display: none;
}

.gfa-camera-icon {
	height: 50px;
	cursor: pointer;
}

.gfa-photo-preview {
	cursor: pointer;
}

.gfa-photo-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.gfa-rahmenart-image {
	max-width: 360px;
	height: auto;
	border: 1px solid #ddd;
	border-radius: 4px;
}

.gfa-rahmenart-popup-toggle {
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 5px;
	margin-left: 10px;
	vertical-align: middle;
	border-radius: 4px;
	transition: background 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 30px;
}

.gfa-rahmenart-popup-toggle:hover {
	background: #f0f0f0;
}

.gfa-rahmenart-popup-toggle-icon {
	font-size: 18px;
	color: #666;
	line-height: 1;
}

.gfa-rahmenart-popup {
	position: fixed;
	right: 20px;
	top: 120px;
	z-index: 9999;
	background: #fff;
	padding: 10px;
	border-radius: 6px;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
	display: none;
}

.gfa-rahmenart-popup.is-visible {
	display: block;
}

.gfa-rahmenart-popup-close {
	position: absolute;
	top: 5px;
	right: 5px;
	background: transparent;
	border: none;
	font-size: 20px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 25px;
	height: 25px;
	line-height: 25px;
	text-align: center;
	border-radius: 4px;
	z-index: 10000;
}

.gfa-rahmenart-popup-close:hover {
	background: #e0e0e0;
	color: #000;
}

/* GFA Dichtungstyp Popup */
.gfa-dichtungstyp-popup {
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	z-index: 10000;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
	display: none;
	max-width: 90vw;
	max-height: 90vh;
	overflow: hidden;
	flex-direction: column;
}

.gfa-dichtungstyp-popup.is-visible {
	display: flex;
}

.gfa-dichtungstyp-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid #ddd;
	background: #f5f5f5;
}

.gfa-dichtungstyp-popup-header h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.gfa-dichtungstyp-popup-close {
	background: transparent;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 4px;
}

.gfa-dichtungstyp-popup-close:hover {
	background: #e0e0e0;
	color: #000;
}

.gfa-dichtungstyp-popup-content {
	padding: 20px;
	overflow-y: auto;
	max-height: calc(90vh - 70px);
}

.gfa-dichtungstyp-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 15px;
}

.gfa-dichtungstyp-item {
	cursor: pointer;
	border: 2px solid #ddd;
	border-radius: 6px;
	padding: 10px;
	text-align: center;
	transition: all 0.2s;
	background: #fff;
}

.gfa-dichtungstyp-item:hover {
	border-color: #4CAF50;
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
	transform: translateY(-2px);
}

.gfa-dichtungstyp-item.selected {
	border-color: #4CAF50;
	background: #f1f8f4;
	box-shadow: 0 2px 8px rgba(76, 175, 80, 0.4);
}

.gfa-dichtungstyp-item img {
	max-width: 100%;
	height: auto;
	max-height: 120px;
	border-radius: 4px;
	margin-bottom: 8px;
}

.gfa-dichtungstyp-item-name {
	font-size: 12px;
	color: #333;
	word-break: break-word;
	line-height: 1.3;
}

/* Overlay für Popup-Hintergrund */
.gfa-dichtungstyp-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9999;
	display: none;
}

.gfa-dichtungstyp-popup-overlay.is-visible {
	display: block;
}

/* GFA Bild-Skizze Modal (Markierungen im Popup) */
.gfa-bild-skizze-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10050;
	display: none;
	align-items: center;
	justify-content: center;
}

.gfa-bild-skizze-modal.is-visible {
	display: flex;
}

.gfa-bild-skizze-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.gfa-bild-skizze-modal-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	width: 95%;
	max-width: 1200px;
	height: 85vh;
	max-height: 85vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.gfa-bild-skizze-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #ddd;
	background: #f5f5f5;
	flex-shrink: 0;
}

.gfa-bild-skizze-modal-title {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.gfa-bild-skizze-modal-close {
	background: transparent;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	border-radius: 4px;
}

.gfa-bild-skizze-modal-close:hover {
	background: #e0e0e0;
	color: #000;
}

.gfa-bild-skizze-iframe {
	flex: 1;
	width: 100%;
	height: 100%;
	min-height: 0;
	border: none;
}

/* Skizze Editor Modal (Eigene Zeichnung / Konstruktionseditor) */
.skizze-editor-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10050;
	display: none;
	align-items: center;
	justify-content: center;
}

.skizze-editor-modal.is-visible {
	display: flex;
}

.skizze-editor-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.6);
	cursor: pointer;
}

.skizze-editor-modal-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
	width: 95%;
	max-width: 1200px;
	height: 90vh;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.skizze-editor-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #ddd;
	background: #f5f5f5;
	flex-shrink: 0;
}

.skizze-editor-modal-header h3 {
	margin: 0;
	font-size: 18px;
	color: #333;
}

.skizze-editor-modal-close {
	background: transparent;
	border: none;
	font-size: 22px;
	cursor: pointer;
	color: #666;
	padding: 0;
	width: 32px;
	height: 32px;
	line-height: 32px;
	text-align: center;
	border-radius: 4px;
}

.skizze-editor-modal-close:hover {
	background: #e0e0e0;
	color: #000;
}

.skizze-editor-iframe {
	flex: 1;
	width: 100%;
	height: 100%;
	min-height: 0;
	border: none;
}

@media (max-width: 1024px) {
	.skizze-editor-modal-content {
		width: 98%;
		height: 95vh;
		max-height: 95vh;
		border-radius: 4px;
	}
}

.gfa-holz-ausfuehrung-option {
	margin-left: 20px;
}

.gfa-compact-select {
	width: fit-content;
	max-width: 100%;
}

.gfa-messpunkt-hinweis-box {
	background-color: #f8d7da;
	border: 1px solid #dc3545;
	color: #721c24;
	padding: 10px 14px;
	margin-bottom: 8px;
	border-radius: 4px;
	font-weight: 500;
}

.gfa-messpunkt-hinweis-wrapper {
	width: 100%;
	margin-bottom: 8px;
}

/* GFA-Messpunkt-Hinweis direkt über Fenstermaterial mit Hinweisschild */
.gfa-messpunkt-hinweis-row {
	background-color: #f8d7da;
	border: 1px solid #dc3545;
	border-radius: 4px;
	margin-bottom: 8px;
}

.gfa-messpunkt-hinweis-row .gfa-messpunkt-hinweis-icon-cell {
	width: 44px;
	min-width: 44px;
	padding: 10px 8px;
	vertical-align: middle;
	text-align: center;
	border: none;
	background: transparent;
}

.gfa-messpunkt-hinweis-row .gfa-messpunkt-hinweis-text-cell {
	color: #721c24;
	padding: 10px 14px;
	font-weight: 500;
	vertical-align: middle;
	border: none;
	background: transparent;
}

.gfa-messpunkt-hinweis-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	background-color: #dc3545;
	color: white;
	border-radius: 4px;
	font-size: 18px;
	line-height: 1;
}
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);
}

/* RegelAir Validierungsfehler-Styles */
.regelair-field-error {
  border: 2px solid #dc3545 !important;
  background-color: #fff5f5 !important;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.regelair-field-error:focus {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 0.3rem rgba(220, 53, 69, 0.35) !important;
}

.regelair-label-error {
  color: #dc3545 !important;
  font-weight: bold !important;
}

.regelair-fensterfluegel-input-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.regelair-fensterfluegel-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: #1e88e5;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: help;
}

.regelair-systemwarnung {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.regelair-systemwarnung--error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.regelair-systemwarnung--ok {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.regelair-systembedarf-block {
  margin-top: 18px;
  padding: 14px;
  border: 2px solid #dc3545;
  border-radius: 6px;
  background: #fff5f5;
}

.regelair-systembedarf-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}

.regelair-systembedarf-total {
  font-size: 28px;
  font-weight: 800;
  color: #dc3545;
  margin-bottom: 10px;
}

.regelair-systembedarf-table {
  margin-top: 8px;
}

.regelair-systembedarf-missing {
  color: #721c24;
}

.regelair-debug-details {
  margin: 16px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #f9f9f9;
}

.regelair-debug-details summary {
  padding: 10px 14px;
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}

.regelair-debug-details > div {
  padding: 14px;
  font-size: 0.9em;
}

.regelair-debug-details h4 {
  margin: 0 0 8px 0;
}

.regelair-debug-details .resp-table {
  margin-bottom: 12px;
}

.regelair-debug-details p {
  margin: 0 0 8px 0;
}

.regelair-debug-details .regelair-debug-indizes {
  font-family: monospace;
  font-size: 0.85em;
}

.regelair-windzone-info {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.9em;
  min-height: 20px;
}
.regelair-windzone-info.regelair-windzone-info--success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
  color: #155724;
}
.regelair-windzone-info.regelair-windzone-info--error {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
}
.regelair-windzone-info.regelair-windzone-info--loading {
  background: #e2e3e5;
  border: 1px solid #d6d8db;
  color: #383d41;
  font-weight: 600;
}

select.regelair-field-error {
  border: 2px solid #dc3545 !important;
  background-color: #fff5f5 !important;
}

#regelair-validation-errors {
  animation: shake 0.5s;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.regelair-page-wrapper {
  position: relative;
}
.regelair-watermark {
  position: absolute;
  top: 0;
  right: 0;
  height: 80px;
  width: auto;
  opacity: 0.15;
  pointer-events: none;
  z-index: 0;
}

.welcome-regelair-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  position: relative;
}
.welcome-regelair-logo {
  height: 55px;
  border-radius: 10px;
}
.welcome-regelair-preview-badge {
  position: absolute;
  bottom: -2px;
  right: -5px;
  background: #ff9800;
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.regelair-din18017-label {
  margin-left: 10px;
}

.regelair-laufzeit-input {
  width: 55px;
  padding: 3px;
}

.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);
}

/* Plausibilität Innen vs. Außen (Breite/Höhe) */
input.plausi_warnung,
textarea.plausi_warnung {
  border: 2px solid #c62828 !important;
  background-color: #ffebee;
}
.plausi-innen-aussen-modal .plausi-innen-aussen-list {
  margin: 12px 0;
  padding-left: 1.2em;
  text-align: left;
}
.plausi-innen-aussen-modal .plausi-innen-aussen-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

/* Inline-Hinweis Plausibilität Innen/Außen (über Messwerten bzw. nach Verschattung/Höhenzugabe) */
.plausi-innen-aussen-hinweis {
  display: none;
  margin: 10px 0 12px 0;
  padding: 12px 14px;
  border: 1px solid #c62828;
  border-radius: 6px;
  background: #fff8f8;
  box-shadow: 0 1px 4px rgba(198, 40, 40, 0.12);
}
.plausi-innen-aussen-hinweis .plausi-hinweis-title {
  display: block;
  margin-bottom: 6px;
  color: #b71c1c;
  font-size: 1.05em;
}
.plausi-innen-aussen-hinweis .plausi-hinweis-einleitung {
  margin: 0 0 8px 0;
  font-size: 0.95em;
  line-height: 1.45;
  color: var(--text-primary, #333);
}
.plausi-innen-aussen-hinweis .plausi-hinweis-liste {
  margin: 0;
  padding-left: 1.25em;
  font-size: 0.95em;
  line-height: 1.5;
  text-align: left;
}
#plausi-innen-aussen-hinweis-oben {
  position: sticky;
  top: 0;
  z-index: 40;
}
.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 */
}

/* Layout-Maße: dynamische Footer-Höhe (JS), Zusatz unten bei Tastatur */
html {
	--footer-height: 80px;
	--vk-padding-extra: 0px;
	scroll-behavior: smooth;
}

/* Neues Layout-Konzept: Footer fixed, Content scrollt mit Padding */
/* KEIN overflow auf body: sonst wird body auf iOS zum Scroll-Container
   und position:fixed Elemente folgen dem Rubber-Band-Scroll mit */
body:not(.login-page) {
	margin: 0;
	padding: 0;
}

/* Content-Bereich scrollt normal */
body:not(.login-page) .content {
	overflow-x: auto;
	position: relative;
}

/* Fixiert am Viewport-Boden auf allen Browsern und iOS (auch Rubber-Band) */
.footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 100%;
	background: #f8f9fa;
	padding: 0;
	box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
	border: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	z-index: 1500;
	box-sizing: border-box;
	overflow-x: hidden;
	/* Safe Area: Home-Indikator (iPhone/iPad ohne Home-Taste) */
	padding-bottom: constant(safe-area-inset-bottom);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	/* Eigener GPU-Compositing-Layer: verhindert Mitbewegen beim iOS-Rubber-Band-Scroll */
	-webkit-transform: translateZ(0);
	transform: translateZ(0);
}

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

.footer button:active {
	opacity: 0.6;
}

/* Footer-Inhalt: keine Inline-Styles (zentrale Klassen) */
.footer-buttons {
	width: 100%;
	background: #f8f9fa;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 40px;
	box-sizing: border-box;
}

.footer-buttons form {
	display: inline;
	margin: 0;
}

.footer .footer-buttons .footer-btn {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	cursor: pointer;
	font-size: inherit;
}

.footer-image-sync {
	position: relative;
	cursor: pointer;
	display: none;
}

.footer-image-sync.footer-image-sync--visible {
	display: inline-block;
}

.footer-image-sync .footer-icon {
	height: 35px;
	width: auto;
	display: block;
}

.footer-sync-badge {
	display: none;
	position: absolute;
	top: -5px;
	right: -5px;
	background: #ff4444;
	color: white;
	border-radius: 50%;
	width: 20px;
	height: 20px;
	font-size: 12px;
	font-weight: bold;
	line-height: 20px;
	text-align: center;
	border: 2px solid #f8f9fa;
	z-index: 10;
	box-sizing: border-box;
}

.footer-sync-badge.footer-sync-badge--visible {
	display: block;
}

/* Ausstehende Fotos: Badge in der Kopfzeile (Navigation) */
.navbar-image-sync-wrap {
	display: none;
	align-items: center;
	margin-right: 12px;
}

.navbar-image-sync-wrap.navbar-image-sync-wrap--visible {
	display: flex;
}

.navbar-image-sync-btn {
	position: relative;
	cursor: pointer;
	border: none;
	background: transparent;
	padding: 4px;
	min-width: 28px;
	min-height: 28px;
}

.navbar-sync-badge {
	display: none;
	position: absolute;
	top: -4px;
	right: -4px;
	background: #ff4444;
	color: white;
	border-radius: 50%;
	min-width: 20px;
	height: 20px;
	font-size: 12px;
	font-weight: bold;
	line-height: 20px;
	text-align: center;
	border: 2px solid #f8f9fa;
	z-index: 10;
	box-sizing: border-box;
	padding: 0 4px;
}

.navbar-sync-badge.navbar-sync-badge--visible {
	display: block;
}

/* Diagnose-Modal ausstehende Fotos (image_offline_storage.js) */
.image-pending-diag-overlay {
	display: none;
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 10050;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.image-pending-diag-overlay.is-open {
	display: flex;
}

.image-pending-diag-dialog {
	background: #fff;
	border-radius: 10px;
	max-width: 640px;
	width: 100%;
	max-height: 85vh;
	overflow: auto;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.image-pending-diag-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	border-bottom: 1px solid #e5e7eb;
}

.image-pending-diag-close {
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 4px 8px;
}

.image-pending-diag-body {
	padding: 12px 16px;
}

.image-pending-diag-foot {
	padding: 12px 16px;
	border-top: 1px solid #e5e7eb;
	text-align: right;
}

.btn-image-pending-sync {
	cursor: pointer;
	padding: 8px 16px;
	border-radius: 6px;
	border: 1px solid #2563eb;
	background: #2563eb;
	color: #fff;
	font-weight: 600;
}

.image-pending-diag-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.image-pending-diag-table th,
.image-pending-diag-table td {
	border: 1px solid #e5e7eb;
	padding: 6px 8px;
	text-align: left;
	vertical-align: top;
}

.image-pending-diag-table th {
	background: #f3f4f6;
}

.footer-ble-row {
	width: 100%;
	text-align: center;
	font-size: 0.8em;
	padding: 2px 0;
	background: #f8f9fa;
	box-sizing: border-box;
}

.footer-ble-status-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	border: 1px solid #cbd5e1;
	background: #ffffff;
}

.footer-ble-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #64748b;
	display: inline-block;
}

.footer-ble-text {
	color: #0369a1;
}

.footer-ble-live {
	display: none;
	margin-left: 6px;
	font-weight: bold;
	color: #0369a1;
}

.footer-ble-ref {
	display: none;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 4px;
	font-weight: bold;
	font-size: 0.9em;
	background: #e7f3ff;
	color: #004085;
}

.footer-links {
	width: 100%;
	text-align: center;
	font-size: 0.95em;
	line-height: 1.25;
	/* Kein zusätzliches Padding unten: Abstand zum unteren Rand kommt nur aus .footer (Safe Area) */
	padding: 2px 0 0;
	background: #f8f9fa;
	box-sizing: border-box;
}

/* Messungen-Popup oberhalb der Fußleiste (inkl. Safe Area + gemessene Footer-Höhe) */
#messungenPopup.messungen-popup {
	display: none;
	position: fixed;
	right: 20px;
	/* Safe-Area ist bereits in --footer-height (gemessener Footer) enthalten */
	bottom: calc(var(--footer-height, 80px) + 12px);
	background: white;
	border: 1px solid #ccc;
	padding: 15px;
	/* Über fixem Footer (1500) und ggf. Lade-Overlays */
	z-index: 10050;
	box-shadow: 0 0 10px rgba(0,0,0,0.2);
	max-height: 300px;
	overflow-y: auto;
	box-sizing: border-box;
}

#messungenPopup.messungen-popup.is-open {
	display: block;
}

.navbar {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100vw;
	background: #f8f9fa;
	padding-top: calc(5px + constant(safe-area-inset-top));
	padding-top: calc(5px + env(safe-area-inset-top, 0px));
	padding-bottom: 5px;
	padding-left: 0;
	padding-right: 0;
	box-shadow: 0 2px 2px rgba(0, 0, 0, 0.1);
	display: flex;
	justify-content: center;
	align-items: center;
	z-index: 1000;
	box-sizing: border-box;
	overflow: hidden;
}

/* Haupt-Navigation (include/navigation.inc.php): flacheres Layout ohne doppelten Schatten */
.navbar.navbar-app {
	box-shadow: none;
	padding-top: calc(0px + constant(safe-area-inset-top));
	padding-top: calc(0px + env(safe-area-inset-top, 0px));
	padding-bottom: 0;
	min-height: 40px;
}

.navbar-separator {
	position: fixed;
	left: 0;
	width: 100%;
	margin: 0;
	z-index: 1001;
	border: 0;
	border-top: 1px solid #ccc;
	height: 0;
	top: calc(40px + constant(safe-area-inset-top));
	top: calc(40px + env(safe-area-inset-top, 0px));
	box-sizing: border-box;
}

.navbar .navbar-left-meta {
	position: absolute;
	left: 0;
	min-width: 150px;
	padding-top: 2px;
	background: #f8f9fa;
	border: none;
	box-sizing: border-box;
}

.navbar.navbar-app .navbar-main-links {
	margin: 0 auto;
	background: transparent;
	border: none;
}

.navbar-links-table {
	background: transparent;
	border: none;
}

.navbar-form {
	float: left;
	margin: 0;
}

.navbar-offline-link {
	float: left;
}

.navbar-offline-link img {
	cursor: pointer;
}

.navbar-left-meta {
	z-index: 3;
}

.navbar-main-links {
	position: relative;
	z-index: 3;
}

.navbar-right-logo {
	position: absolute;
	right: 0;
	top: 0;
	bottom: 0;
	padding: 0 15px;
	background: transparent;
	border: none;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	max-width: min(220px, 35vw);
	box-sizing: border-box;
	overflow: hidden;
	z-index: 1;
	pointer-events: none;
}

.navbar-right-logo img {
	display: block;
	max-height: 100%;
	height: auto;
	width: auto;
	max-width: 100%;
	object-fit: contain;
}
.navbar table {
	border-collapse: collapse;
}
.navbar td {
	padding: 0 2px;
}
.content {
	/* Navbar (40px) + Trennlinie (~1px) + Safe-Area oben */
	margin-top: calc(41px + constant(safe-area-inset-top));
	margin-top: calc(41px + env(safe-area-inset-top, 0px));
	padding: 5px;
	/* Safe-Area ist bereits in --footer-height (gemessener Footer) enthalten */
	padding-bottom: calc(var(--footer-height, 80px) + var(--vk-padding-extra, 0px));
}

/* 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;
    min-height: 100dvh;
    background: #f5f7fb;
}

/* Review-Workflow: zweite fixierte Leiste (messung_bearbeiten_review) — Safe Area wie Haupt-Footer */
.review-nav-footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background: #ffffff;
	padding: 10px 24px;
	padding-bottom: calc(10px + constant(safe-area-inset-bottom));
	padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
	border-top: 2px solid #e0e0e0;
	display: flex;
	gap: 60px;
	justify-content: space-around;
	align-items: center;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 10000;
	box-sizing: border-box;
}

/* Touch-freundlicher Klickbereich für die Review-Navigations-Buttons */
.review-nav-btn {
	padding: 6px 14px;
	border-radius: 8px;
}

.review-nav-footer-spacer {
	min-height: calc(70px + constant(safe-area-inset-bottom));
	min-height: calc(70px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 480px) {
	.review-nav-footer {
		gap: 28px;
		padding: 10px 12px;
	}
	.review-nav-btn {
		padding: 6px 8px;
	}
}

/* „Messungen durchgehen“: Checkbox im Kopf + Start-Modal */
.review-header-kopieren-wrap {
	margin-top: 10px;
	width: 100%;
	flex-basis: 100%;
}

.review-header-kopieren-label {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
}

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

.review-kopieren-modal-overlay {
	position: fixed;
	inset: 0;
	z-index: 10020;
	background: rgba(15, 23, 42, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px 16px;
	box-sizing: border-box;
}

.review-kopieren-modal-inner {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
	max-width: 520px;
	width: 100%;
	padding: 22px 24px 20px 24px;
	box-sizing: border-box;
}

.review-kopieren-modal-title {
	margin: 0 0 14px 0;
	font-size: 1.35rem;
	color: #1e3a6f;
}

.review-kopieren-modal-lead {
	margin: 0 0 10px 0;
	font-size: 15px;
	line-height: 1.45;
	color: #334155;
}

.review-kopieren-modal-text {
	margin: 0 0 10px 0;
	font-size: 14px;
	line-height: 1.5;
	color: #475569;
}

.review-kopieren-modal-hint {
	margin: 0 0 18px 0;
	font-size: 13px;
	line-height: 1.45;
	color: #64748b;
}

.review-kopieren-modal-actions {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	gap: 10px;
	justify-content: stretch;
	align-items: stretch;
}

.review-kopieren-modal-form {
	margin: 0;
	flex: 1 1 0;
	min-width: 0;
}

.review-kopieren-modal-actions .button {
	width: 100%;
	box-sizing: border-box;
	text-align: center;
}

.review-kopieren-modal-btn-secondary {
	background: #64748b;
	border-color: #64748b;
	color: #fff;
}

.review-kopieren-modal-btn-secondary:hover {
	background: #475569;
	border-color: #475569;
	color: #fff;
}



.login-page {
    min-height: 100vh;
    min-height: 100dvh;
    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-row {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	flex-wrap: wrap;
}

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

.login-subdomain-logo {
	max-height: 64px;
	width: auto;
	max-width: 180px;
	object-fit: contain;
}

.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-wrapper {
    position: relative;
    width: 100%;
    max-width: 320px;
}

.form-input-password {
    max-width: 100%;
    padding-right: 52px;
}

.form-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #2563eb;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.form-password-toggle-icon {
    width: 20px;
    height: 20px;
    line-height: 1;
}

.form-password-toggle-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    fill: currentColor;
}

.form-password-toggle:hover,
.form-password-toggle:focus {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.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;
}

/* ── Passkey-Login ── */
.passkey-login-section {
    margin-top: 4px;
}
.login-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: #94a3b8;
    font-size: 14px;
}
.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #cbd5e1;
}
.login-divider span {
    padding: 0 12px;
}
.passkey-login-button {
    background: #4f46e5 !important;
    color: #fff !important;
}
.passkey-login-button:hover {
    background: #4338ca !important;
}

.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;
    }

    .form-password-toggle {
        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;
}

/* Auswahllisten: Breite an längsten Optionstext anpassen, damit Auswahl vollständig lesbar ist */
select {
  width: max-content;
  min-width: 150px;
  max-width: 100%;
}

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;
}

/* Anschluss unten + Bezug (inkl./zzgl.) bzw. Tür: zwei Selects nebeneinander */
.aufmass-anschluss-inline-selects {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	vertical-align: middle;
}

.aufmass-anschluss-hoehenbezug-wrap.is-hidden {
	display: none;
}

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

/* neue_messung_1: Weiter-Button und Footer – Überlagerung vermeiden */
.modul-neue_messung_1 .neue-messung-1-weiter-row {
	margin-top: 15px;
	margin-bottom: 20px;
}
.modul-neue_messung_1 .neue-messung-1-weiter-row .table-body-cell {
	text-align: center;
	padding: 10px 2px;
}

/* Fussbodenaufbau-Feld breiter */
input[name="fbaufbau"] {
	min-width: 280px;
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
}

.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;
}

/* Messungen-Tabelle: aufgeräumtes Design */
.messungen-table {
  background: #ffffff;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(44, 90, 160, 0.08);
  table-layout: auto;
}

.messungen-table thead {
  background: #f0f4fb;
}

.messungen-table th,
.messungen-table td {
  font-size: 13px;
  color: #2c3a4d;
}

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

/* Erste 5 Spalten: nur Inhaltsbreite */
.messungen-table th:nth-child(-n+5),
.messungen-table td:nth-child(-n+5) {
  white-space: nowrap;
  width: 1%;
}

.cell-center {
  text-align: center;
}

.inline-form {
  display: inline-block;
  margin: 0;
}

.messung-position-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.position-value {
  font-weight: 600;
  color: #1f2a44;
}

.messung-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.messung-media__link {
  display: inline-flex;
}

.messung-thumb {
  max-height: 60px;
  width: auto;
  border-radius: 6px;
  border: 1px solid #e0e6f2;
  background: #fff;
  padding: 2px;
}

.messung-mass-wrapper {
  background: #f8fbff;
  border: 1px dashed #cbd6ea;
  border-radius: 8px;
  padding: 6px 8px;
  width: 100%;
  max-width: 200px;
}

.messung-mass-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.messung-mass-table th,
.messung-mass-table td {
  padding: 2px 4px;
  text-align: left;
  border: none;
}

.text-right {
  text-align: right;
}

.dxf-export-btn {
  margin-left: 5px;
}

/* 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;
}

/* ——— Aufträge verwalten (modul-auftrag_verwalten) ——— */
body.modul-auftrag_verwalten .auftraege-verwalten {
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  padding: 0 12px;
  box-sizing: border-box;
}

body.modul-auftrag_verwalten .auftraege-verwalten .hidden {
  display: none !important;
}

body.modul-auftrag_verwalten .auftraege-toolbar {
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44, 90, 160, 0.05);
  padding: 10px 14px;
  margin-bottom: 12px;
}

body.modul-auftrag_verwalten .auftraege-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  width: 100%;
}

body.modul-auftrag_verwalten .auftraege-toolbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1f2a44;
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

body.modul-auftrag_verwalten .auftraege-suche-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  min-width: 200px;
}

body.modul-auftrag_verwalten .auftraege-suche-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 15px;
  line-height: 1;
  opacity: 0.5;
  pointer-events: none;
}

body.modul-auftrag_verwalten .auftraege-suche-input {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px 8px 36px;
  font-size: 15px;
  border: 1px solid #cbd6ea;
  border-radius: 8px;
  background: #f8faff;
  margin: 0;
}

body.modul-auftrag_verwalten .auftraege-suche-input:focus {
  outline: 2px solid #4a7fd4;
  outline-offset: 1px;
  background: #fff;
}

body.modul-auftrag_verwalten .auftraege-tabs {
  display: inline-flex;
  gap: 2px;
  background: #eef2f8;
  border-radius: 8px;
  padding: 3px;
  flex: 0 0 auto;
}

body.modul-auftrag_verwalten .auftraege-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: #2c3a4d;
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

body.modul-auftrag_verwalten .auftraege-tab:hover {
  background: #dde6f3;
}

body.modul-auftrag_verwalten .auftraege-tab.is-active {
  background: #2c5aa0;
  color: #fff;
  box-shadow: 0 1px 3px rgba(44, 90, 160, 0.3);
}

body.modul-auftrag_verwalten .auftraege-tab:focus-visible {
  outline: 2px solid #4a7fd4;
  outline-offset: 2px;
}

body.modul-auftrag_verwalten .auftraege-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  background: rgba(44, 58, 77, 0.12);
  color: inherit;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

body.modul-auftrag_verwalten .auftraege-tab.is-active .auftraege-tab-badge {
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
}

body.modul-auftrag_verwalten .auftraege-toolbar-meta {
  min-height: 0;
  margin-top: 6px;
  font-size: 13px;
  color: #5a6a7e;
}

body.modul-auftrag_verwalten .auftraege-toolbar-meta:empty {
  display: none;
}

body.modul-auftrag_verwalten .auftraege-block {
  min-height: 2rem;
}

body.modul-auftrag_verwalten .auftraege-empty {
  text-align: center;
  padding: 18px 12px;
  margin-bottom: 8px;
  color: #6a7a8c;
  font-size: 14px;
  border: 1px dashed #cbd6ea;
  border-radius: 8px;
  background: #fafbfd;
}

body.modul-auftrag_verwalten .auftraege-table-wrap {
  width: 100%;
  background: #fff;
  border: 1px solid #dfe5ef;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44, 90, 160, 0.05);
}

body.modul-auftrag_verwalten .auftraege-liste.messungen-table {
  width: 100%;
  margin: 0;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  background: transparent;
}

body.modul-auftrag_verwalten .table-auftraege tbody tr:nth-child(even) {
  background-color: transparent;
}

/* Generische .messungen-table-Regel (erste 5 Spalten nowrap) für Auftragsliste lockern */
body.modul-auftrag_verwalten .auftraege-liste.messungen-table th,
body.modul-auftrag_verwalten .auftraege-liste.messungen-table td {
  white-space: normal;
  width: auto;
  max-width: none;
}

body.modul-auftrag_verwalten .auftraege-liste thead th {
  background: #f0f4fb;
  border-bottom: 1px solid #dfe5ef;
  text-align: left;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body.modul-auftrag_verwalten .auftraege-liste thead tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

body.modul-auftrag_verwalten .auftraege-liste thead tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

body.modul-auftrag_verwalten .auftraege-liste th.auftraege-col-num,
body.modul-auftrag_verwalten .auftraege-liste th.auftraege-col-actions {
  text-align: center;
}

body.modul-auftrag_verwalten .auftraege-liste tbody td {
  padding: 10px 12px;
  vertical-align: middle;
  border-bottom: 1px solid #eef2f7;
}

body.modul-auftrag_verwalten .auftraege-liste tbody tr:last-child td {
  border-bottom: 0;
}

body.modul-auftrag_verwalten .auftraege-liste .auftraege-col-vorgang {
  font-weight: 600;
  color: #1f2a44;
  white-space: nowrap;
}

body.modul-auftrag_verwalten .auftraege-vorgang-form {
  display: inline;
}

body.modul-auftrag_verwalten button.auftraege-vorgang-link,
body.modul-auftrag_verwalten button[type="submit"].auftraege-vorgang-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  background: transparent;
  background-color: transparent;
  border: 0;
  box-shadow: none;
  font: inherit;
  font-weight: 600;
  color: #2c5aa0;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}

body.modul-auftrag_verwalten .auftraege-vorgang-link::after {
  content: "\270E";
  font-weight: 400;
  font-size: 0.85em;
  opacity: 0;
  transition: opacity 0.15s;
  color: #5a6a7e;
}

body.modul-auftrag_verwalten .auftraege-vorgang-link:hover {
  color: #1e4280;
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.modul-auftrag_verwalten .auftraege-vorgang-link:hover::after {
  opacity: 1;
}

body.modul-auftrag_verwalten .auftraege-vorgang-link:focus-visible {
  outline: 2px solid #4a7fd4;
  outline-offset: 2px;
  border-radius: 2px;
}

body.modul-auftrag_verwalten .auftraege-liste .auftraege-col-datum,
body.modul-auftrag_verwalten .auftraege-liste .auftraege-col-lc {
  white-space: nowrap;
  color: #5a6a7e;
  font-size: 13px;
}

body.modul-auftrag_verwalten .auftraege-liste .auftraege-col-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  width: 1%;
}

body.modul-auftrag_verwalten .auftraege-liste .auftraege-col-zug {
  max-width: 240px;
  color: #334155;
}

body.modul-auftrag_verwalten .auftraege-liste .auftraege-col-actions {
  text-align: right;
  white-space: nowrap;
  width: 1%;
}

body.modul-auftrag_verwalten .auftraege-liste tbody tr {
  transition: background 0.1s;
}

body.modul-auftrag_verwalten .auftraege-liste tbody tr:hover {
  background: #f4f8ff;
}

body.modul-auftrag_verwalten .auftraege-mobil-meta {
  display: none;
  font-size: 12px;
  color: #5a6a7e;
  font-weight: normal;
  line-height: 1.35;
  margin-top: 3px;
}

body.modul-auftrag_verwalten .auftraege-aktionen-zelle {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

body.modul-auftrag_verwalten .auftraege-form {
  margin: 0;
  display: inline-flex;
}

body.modul-auftrag_verwalten .auftraege-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

body.modul-auftrag_verwalten .auftraege-btn-icon {
  font-size: 14px;
  line-height: 1;
}

body.modul-auftrag_verwalten .auftraege-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #cbd6ea;
  background: #fff;
  color: #334155;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

body.modul-auftrag_verwalten .auftraege-icon-btn:hover {
  background: #eef4fc;
  border-color: #4a7fd4;
  color: #2c5aa0;
}

body.modul-auftrag_verwalten .auftraege-icon-btn:focus-visible {
  outline: 2px solid #4a7fd4;
  outline-offset: 1px;
}

body.modul-auftrag_verwalten .auftraege-icon-btn-danger:hover {
  background: #fdecec;
  border-color: #c0392b;
  color: #c0392b;
}

@media screen and (max-width: 1100px) {
  body.modul-auftrag_verwalten .auftraege-liste th.auftraege-col-secondary,
  body.modul-auftrag_verwalten .auftraege-liste td.auftraege-col-secondary {
    display: none;
  }
  body.modul-auftrag_verwalten .auftraege-mobil-meta {
    display: block;
  }
}

@media screen and (max-width: 780px) {
  body.modul-auftrag_verwalten .auftraege-liste th.auftraege-col-zug,
  body.modul-auftrag_verwalten .auftraege-liste td.auftraege-col-zug {
    display: none;
  }
  body.modul-auftrag_verwalten .auftraege-btn-primary .auftraege-btn-text {
    display: none;
  }
  body.modul-auftrag_verwalten .auftraege-btn-primary {
    width: 32px;
    height: 32px;
    padding: 0;
    justify-content: center;
  }
  body.modul-auftrag_verwalten .auftraege-verwalten {
    padding: 0 6px;
  }
}

@media screen and (max-width: 560px) {
  body.modul-auftrag_verwalten .auftraege-toolbar {
    padding: 10px;
  }
  body.modul-auftrag_verwalten .auftraege-toolbar-main {
    gap: 8px;
  }
  body.modul-auftrag_verwalten .auftraege-toolbar-title {
    flex: 1 1 100%;
  }
  body.modul-auftrag_verwalten .auftraege-suche-wrap {
    flex: 1 1 100%;
  }
  body.modul-auftrag_verwalten .auftraege-tabs {
    flex: 1 1 100%;
    justify-content: stretch;
  }
  body.modul-auftrag_verwalten .auftraege-tab {
    flex: 1 1 auto;
    justify-content: center;
    padding: 7px 10px;
    font-size: 13px;
  }
  body.modul-auftrag_verwalten .auftraege-liste thead {
    display: none;
  }
  body.modul-auftrag_verwalten .auftraege-liste,
  body.modul-auftrag_verwalten .auftraege-liste tbody,
  body.modul-auftrag_verwalten .auftraege-liste tr {
    display: block;
    width: 100%;
  }
  body.modul-auftrag_verwalten .auftraege-liste tbody tr {
    padding: 10px 12px;
    border-bottom: 1px solid #eef2f7;
  }
  body.modul-auftrag_verwalten .auftraege-liste tbody td {
    display: block;
    padding: 2px 0;
    border: 0;
  }
  body.modul-auftrag_verwalten .auftraege-liste tbody td[data-label]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: #5a6a7e;
    margin-right: 4px;
  }
  body.modul-auftrag_verwalten .auftraege-liste tbody td.auftraege-col-vorgang::before {
    display: none;
  }
  body.modul-auftrag_verwalten .auftraege-liste .auftraege-col-actions {
    text-align: left;
    margin-top: 6px;
  }
  body.modul-auftrag_verwalten .auftraege-aktionen-zelle {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@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;
}

/* Klaes: Hinweis-Banner bei übersprungenen Positionen (oben auf Export-Seite) */
.export-error-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 0 0 20px 0;
    padding: 14px 18px;
    background: #fdecea;
    border: 1px solid #f5c6cb;
    border-left: 5px solid #c0392b;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(192, 57, 43, 0.12);
    position: sticky;
    top: 0;
    z-index: 10;
}

.export-error-banner-icon {
    font-size: 26px;
    line-height: 1;
    color: #c0392b;
    flex-shrink: 0;
}

.export-error-banner-body {
    flex: 1 1 200px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #2c3e50;
    font-size: 14px;
    line-height: 1.45;
}

.export-error-banner-count {
    display: inline-block;
    min-width: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #c0392b;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    text-align: center;
}

.export-error-banner-link {
    flex-shrink: 0;
    display: inline-block;
    padding: 10px 16px;
    background: #c0392b;
    color: #fff !important;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.export-error-banner-link:hover {
    background: #a93226;
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
}

/* 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;
    }
}

/* Welcome: kompakte Statusleiste (offene Arbeiten, Montage-Dokumentation) */
.welcome-status-bar {
    margin: 0 0 12px 0;
}

.welcome-status-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

@media (min-width: 900px) {
    .welcome-status-bar-inner {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .welcome-status-card-details {
        flex: 1 1 calc(50% - 6px);
        min-width: 280px;
    }
}

/* details/summary-Statuskarte (aufklappbare Detailliste) */
.welcome-status-card-details {
    min-width: 0;
    margin: 0;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: #fafafa;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.welcome-status-card-details.welcome-status-card--oa {
    border-color: #e0c36a;
    background: #fffdf5;
}

.welcome-status-card-details.welcome-status-card--montage {
    border-color: #9ec5fe;
    background: #f0f6ff;
}

.welcome-status-card-summary {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.welcome-status-card-summary::-webkit-details-marker {
    display: none;
}

.welcome-status-card-chevron {
    flex-shrink: 0;
    width: 1.25em;
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.2;
}

.welcome-status-card-chevron::before {
    content: '▶';
    display: inline-block;
    transition: transform 0.15s ease;
}

.welcome-status-card-details[open] .welcome-status-card-chevron::before {
    content: '▼';
}

.welcome-status-card-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.welcome-status-card-title {
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    color: #333;
}

.welcome-status-card-sub {
    font-size: 12px;
    line-height: 1.3;
    color: #4a5a6a;
}

.welcome-status-card-meta {
    font-size: 12px;
    color: #555;
    line-height: 1.35;
}

.welcome-status-details-inner {
    padding: 0 10px 10px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.4);
}

.welcome-status-auftrag-block {
    margin-top: 10px;
}

.welcome-status-auftrag-block:first-child {
    margin-top: 8px;
}

.welcome-status-auftrag-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 6px;
    padding: 0 2px;
}

.welcome-status-auftrag-vorgang {
    font-size: 13px;
    color: #222;
}

.welcome-status-auftrag-kunde {
    font-size: 12px;
    color: #555;
    word-break: break-word;
}

.welcome-status-messung-list {
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.welcome-status-messung-list li {
    margin: 0;
    padding: 0;
}

.welcome-status-messung-form {
    display: block;
    margin: 0;
}

.welcome-status-messung-btn {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 12px;
    padding: 6px 10px;
    box-sizing: border-box;
}

.welcome-status-card-form {
    flex-shrink: 0;
    margin: 0;
}

.welcome-status-card-btn {
    font-size: 12px;
    padding: 6px 10px;
    white-space: nowrap;
}

/* 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;
}

.document-icon {
    height: 20px;
    width: 20px;
    margin-right: 8px;
    vertical-align: middle;
}

.document-link {
    text-decoration: none;
    color: #333;
}

.document-filesize {
    font-size: 0.9em;
    color: #888;
}

.abnahme-badge {
    margin-left: 8px;
    padding: 2px 6px;
    background: #e8f5e9;
    border-radius: 4px;
    font-size: 0.85em;
}

.abnahme-pdf-link {
    margin-left: 4px;
}

.document-download-link {
    margin-left: 10px;
}

.document-action-icon {
    height: 20px;
    vertical-align: middle;
}

.btn-rename-inline,
.btn-delete-inline {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    margin-left: 10px;
}

.btn-abnahme-start {
    background: #1976d2;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.85em;
    cursor: pointer;
    margin-left: 8px;
}

.btn-abnahme-start:hover {
    background: #1565c0;
}

.btn-alle-monteure {
    margin-top: 6px;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,123,255,0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-alle-monteure:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.4);
}

.btn-alle-monteure:disabled {
    background: #b0b0b0;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.delete-success-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-weight: bold;
    border: 1px solid #c8e6c9;
}

/* 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;
}

/* Review Messungen durchgehen: Link „Rollonutgrund nicht messbar“ */
.review-rollonutgrund-nicht-messbar {
	color: #007bff;
	cursor: pointer;
	text-decoration: underline;
}

.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);
}

/* Fenster-Vorschau Popup - analog zu Insektenschutz */
.fenster-vorschau-popup {
	display: none;
	position: fixed;
	top: 80px;
	right: 20px;
	z-index: 1000;
	max-width: 90%;
	width: 480px;
}

.fenster-vorschau-popup-container {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	overflow: hidden;
}

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

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

.fenster-vorschau-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;
}

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

.fenster-vorschau-tabs {
	display: flex;
	border-bottom: 1px solid #ddd;
	background: #f5f5f5;
}

.fenster-vorschau-tab {
	flex: 1;
	padding: 10px 15px;
	border: none;
	background: transparent;
	cursor: pointer;
	font-size: 13px;
	font-weight: 500;
	color: #666;
	transition: all 0.2s ease;
}

.fenster-vorschau-tab:hover {
	background: #eee;
	color: #333;
}

.fenster-vorschau-tab-ausgeblendet {
	display: none !important;
}

.fenster-vorschau-tab.active {
	background: #fff;
	color: #2c5aa0;
	border-bottom: 2px solid #2c5aa0;
	margin-bottom: -1px;
}

.fenster-vorschau-content {
	padding: 15px;
	min-height: 320px;
	background: #fafafa;
}

.fenster-vorschau-tab-panel {
	display: none;
}

.fenster-vorschau-tab-panel.active {
	display: block;
}

.fenster-vorschau-svg-container {
	width: 100%;
	overflow: auto;
	background: transparent;
	border-radius: 4px;
	padding: 8px;
}

.fenster-vorschau-svg-container svg {
	display: block;
}

.fenster-vorschau-hinweis {
	font-size: 12px;
	color: #666;
	margin-top: 10px;
	text-align: center;
}

.fenster-vorschau-wandanschluss-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	grid-template-rows: repeat(2, auto);
	gap: 12px;
	max-width: 700px;
	margin: 0 auto;
}

.fenster-vorschau-wandanschluss-grid .wandanschluss-diagramm {
	background: #f8f9fa;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 8px;
	min-height: 140px;
}

.fenster-vorschau-reopen-btn {
	display: flex;
	position: fixed;
	bottom: 170px;
	right: 20px;
	width: 56px;
	height: 56px;
	background: #2c5aa0;
	color: white;
	border: none;
	border-radius: 50%;
	font-size: 24px;
	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;
}

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

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

/* Typbedingte Insektenschutz-Felder: initial versteckt, per JS (loadInsektenschutzAuflagen) sichtbar gemacht */
.resp-table-row.insektenschutz-feld-versteckt {
	display: none;
}

/* Kopplungsprofil: Info-Icon und Infobox */
.kopplungsprofil-info-icon {
	display: inline-block;
	width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	font-size: 14px;
	font-weight: bold;
	color: #2c5aa0;
	background: #e8eef5;
	border-radius: 50%;
	cursor: help;
	margin-left: 2px;
	vertical-align: middle;
}
.kopplungsprofil-info-icon:hover {
	background: #d0dcec;
	color: #1a3a6a;
}
.kopplungsprofil-infobox {
	font-size: 0.85em;
	color: #555;
	background: #f5f8fa;
	border: 1px solid #d0dcec;
	border-radius: 4px;
	padding: 6px 10px;
	margin-left: 4px;
	max-width: 280px;
}

/* 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-search {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 10px 0 15px 0;
}

.settings-search-input {
	flex: 1;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid #d0d0d0;
	background: #fff;
	color: #333;
	font-size: 14px;
}

.settings-search-input:focus {
	outline: none;
	border-color: #2c5aa0;
	box-shadow: 0 0 0 2px rgba(44, 90, 160, 0.15);
}

.settings-search-clear {
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #d0d0d0;
	background: #f5f5f5;
	color: #333;
	cursor: pointer;
	font-size: 14px;
	min-width: 40px;
}

.settings-search-clear:disabled {
	opacity: 0.5;
	cursor: default;
}

.settings-search-empty {
	display: none;
	margin: 5px 0 15px 0;
	color: #666;
	text-align: center;
}

.settings-language-flags {
	display: flex;
	justify-content: center;
	margin: 15px 0 10px 0;
}

.settings-language-flags table {
	border-collapse: collapse;
}

.settings-language-flags td {
	padding: 0 6px;
}

.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;
}

/* ProLogic-Stammdaten-Import: Zusammenfassung (Einstellungen / Affiliate) */
.prologic-import-stats {
	background: #e8f4ea;
	border: 1px solid #b7dfb8;
	border-radius: 6px;
	padding: 12px 14px;
	margin-bottom: 16px;
}
.prologic-import-stats-title {
	margin: 0 0 10px 0;
	font-size: 15px;
}
.prologic-import-stats-file {
	font-weight: normal;
	color: #333;
	font-size: 13px;
}
.prologic-import-stats-table {
	width: 100%;
	max-width: 520px;
	border-collapse: collapse;
	margin: 0;
	font-size: 13px;
}
.prologic-import-stats-table th,
.prologic-import-stats-table td {
	border: 1px solid #c5e0c7;
	padding: 6px 10px;
	text-align: left;
}
.prologic-import-stats-table th {
	background: #d4edd6;
	font-weight: 600;
}
.prologic-import-stats-num {
	text-align: right;
	white-space: nowrap;
	width: 5em;
}
.prologic-import-stats-highlight td {
	background: #f4fbf4;
}
.prologic-import-stats-warn {
	color: #8a4a00;
	font-size: 13px;
}

.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;
}

/* Einstellungen: Toggle-Schalter (Tab Arbeitsbereich, AJAX-Speichern) */
.toggle-switch {
	display: flex !important;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	margin-bottom: 4px;
	cursor: pointer;
	user-select: none;
	flex-wrap: nowrap;
	font-weight: 500;
}
.toggle-switch input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	pointer-events: none;
}
.toggle-switch-slider {
	position: relative;
	flex-shrink: 0;
	width: 44px;
	height: 24px;
	background: #cbd5e1;
	border-radius: 999px;
	transition: background 0.2s ease;
}
.toggle-switch-slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
	transition: transform 0.2s ease;
}
.toggle-switch input:checked + .toggle-switch-slider {
	background: var(--primary-color, #04aa6d);
}
.toggle-switch input:checked + .toggle-switch-slider::after {
	transform: translateX(20px);
}
.toggle-switch input:focus-visible + .toggle-switch-slider {
	outline: 2px solid var(--primary-color, #04aa6d);
	outline-offset: 2px;
}
.toggle-switch-text {
	flex: 1;
	min-width: 0;
	font-weight: 500;
	color: var(--text-primary, #333);
}
.toggle-switch-status {
	font-size: 12px;
	color: #64748b;
	min-width: 0;
	text-align: right;
	flex-shrink: 0;
}
.toggle-switch[data-state="saving"] .toggle-switch-status,
.toggle-switch[data-state="saved"] .toggle-switch-status,
.toggle-switch[data-state="error"] .toggle-switch-status {
	min-width: 7em;
	margin-left: 8px;
}
.toggle-switch[data-state="saving"] .toggle-switch-status::before {
	content: "";
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 6px;
	vertical-align: -2px;
	border: 2px solid #94a3b8;
	border-top-color: var(--primary-color, #04aa6d);
	border-radius: 50%;
	animation: settings-toggle-spin 0.7s linear infinite;
}
.toggle-switch[data-state="saved"] .toggle-switch-status {
	color: #15803d;
}
.toggle-switch[data-state="saved"] .toggle-switch-status::before {
	content: "✓ ";
	color: #15803d;
	animation: none;
	border: none;
}
.toggle-switch[data-state="error"] .toggle-switch-status {
	color: #b91c1c;
}
@keyframes settings-toggle-spin {
	to {
		transform: rotate(360deg);
	}
}
.settings-toggle-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-bottom: 12px;
}
.settings-toggle-grid .toggle-switch {
	padding: 6px 0;
	margin-bottom: 0;
	flex: 1 1 220px;
}
.settings-toggle-grid .toggle-switch-slider {
	width: 38px;
	height: 22px;
}
.settings-toggle-grid .toggle-switch-slider::after {
	width: 16px;
	height: 16px;
	top: 3px;
	left: 3px;
}
.settings-toggle-grid .toggle-switch input:checked + .toggle-switch-slider::after {
	transform: translateX(16px);
}
.settings-quick-item .toggle-switch {
	padding: 6px 0;
}
.settings-quick-item .toggle-switch--stack {
	margin-top: 8px;
}
.settings-hint-box {
	margin-top: 10px;
	padding: 8px 10px;
	border-radius: 4px;
	font-size: 12px;
	line-height: 1.5;
}
.settings-hint-box__title {
	display: inline;
}
.settings-hint-box--info {
	background: #e3f2fd;
	border-left: 3px solid #2196f3;
}
.settings-hint-box--info .settings-hint-box__title {
	color: #1976d2;
}
.settings-hint-box--accent {
	background: #f3e5f5;
	border-left: 3px solid #9c27b0;
}
.settings-hint-box--accent .settings-hint-box__title {
	color: #7b1fa2;
}
.settings-hint-box--success {
	background: #e8f5e9;
	border-left: 3px solid #2e7d32;
}
.settings-hint-box--success .settings-hint-box__title {
	color: #1b5e20;
}
.settings-autosave-hint {
	font-size: 12px;
	color: #64748b;
	margin-top: 2px;
}
.is-hidden {
	display: none !important;
}
.settings-inline-logo {
	vertical-align: middle;
	margin-left: 4px;
}
.settings-felder-ausblenden-lead {
	margin: 0 0 12px 0;
	font-size: 13px;
	color: #555;
}
.settings-subfield-indent {
	margin: 10px 0 15px 25px;
}
.settings-subfield-block {
	margin-bottom: 10px;
}
.settings-subfield-label {
	display: block;
	margin-bottom: 5px;
	font-weight: 500;
}
.settings-subfield-row {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 5px;
}
.settings-subfield-input {
	width: 150px;
	max-width: 100%;
}
.settings-subfield-select {
	width: 100%;
	max-width: 320px;
	margin-top: 4px;
}
.settings-reekon-row {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	align-items: center;
}
.settings-reekon-thumb {
	cursor: pointer;
	max-height: 60px;
	border: 2px solid transparent;
	border-radius: 4px;
	transition: border-color 0.2s ease, transform 0.2s ease;
}
.settings-reekon-thumb:hover {
	border-color: var(--primary-color, #04aa6d);
	transform: scale(1.05);
}
.settings-card-divider {
	margin: 15px 0;
	border: none;
	border-top: 1px solid #ddd;
}
.settings-ble-device-wrap {
	margin-top: 8px;
	margin-bottom: 8px;
}
.settings-hint--below-toggle {
	margin-top: 6px;
	color: #666;
	font-size: 0.9em;
}
.settings-hint--muted {
	margin-top: 5px;
	color: #666;
	font-size: 0.9em;
}
.settings-tip--spaced {
	margin-top: 10px;
}
.settings-ki-provider-row {
	margin-top: 12px;
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	align-items: center;
}
.settings-ki-provider-label {
	margin: 0;
}
.settings-ki-provider-select {
	max-width: 180px;
}
.settings-ki-msg {
	margin-top: 10px;
	padding: 10px;
	border-radius: 6px;
}
.settings-ki-msg--ok {
	background: #e8f6e8;
	border: 1px solid #91d391;
	color: #1f6f1f;
}
.settings-ki-msg--err {
	background: #fdeaea;
	border: 1px solid #e3a3a3;
	color: #8f1f1f;
}
.settings-ki-actions {
	margin-top: 12px;
}
.settings-toggle-spaced {
	margin-top: 12px;
}

.settings-card-content label:not(.checkbox-label):not(.toggle-switch) {
	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);
}

.bauart-fugen-block {
	border: 1px solid #d0d7e2;
	border-radius: 8px;
	padding: 12px 15px 15px 15px;
	margin: 12px 0;
	background: #fafbfd;
}

.bauart-fugen-block + .bauart-fugen-block {
	margin-top: 15px;
}

.bauart-fugen-block .bauart-fugen-title {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #2c5aa0;
}

.bauart-fugen-block table {
	margin: 5px auto 0 auto;
}

.bauart-select-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 8px 0 12px 0;
}

.bauart-select-row select {
	min-width: 140px;
}

.verschattung-provider-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
}

.verschattung-provider-row .checkbox-label {
	margin-bottom: 0;
}

.growe-credentials {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.growe-credentials input[type="text"],
.growe-credentials input[type="password"] {
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 6px;
	min-width: 120px;
}

.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;
}

.ki-fenstertyp-sync-status {
	margin-top: 12px;
	padding: 10px;
	border: 1px solid #d9e2ec;
	border-radius: 8px;
	background: #f8fbff;
}

.ki-fenstertyp-sync-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 12px;
	color: #4c6278;
	margin-bottom: 6px;
}

.ki-fenstertyp-sync-track {
	width: 100%;
	height: 10px;
	background: #e7edf3;
	border-radius: 999px;
	overflow: hidden;
}

.ki-fenstertyp-sync-bar {
	height: 100%;
	width: 0;
	background: linear-gradient(90deg, #3b82f6 0%, #22c55e 100%);
	transition: width 0.25s ease;
}

.ki-fenstertyp-sync-bar.is-error {
	background: #dc2626;
}

.ki-fenstertyp-sync-text {
	margin-top: 8px;
	font-size: 12px;
	color: #3f5870;
	word-break: break-word;
}

.ki-fenstertyp-sync-text.is-error {
	color: #b42318;
}

/* 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;
}

.mandant-logo-vorschau {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 12px;
}

.mandant-logo-vorschau img {
	max-height: 60px;
	max-width: 200px;
	object-fit: contain;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 4px;
	background: #fff;
}

/* 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);
}

/* Ideenpool */
.ideenpool-container {
	max-width: 1400px;
	margin: 20px auto;
}

.ideenpool-master-view {
	max-width: calc(100vw - 30px);
	width: calc(100vw - 30px);
}

.ideenpool-title {
	margin-bottom: 6px;
}

.ideenpool-hinweis {
	margin-bottom: 15px;
	color: #444;
	max-width: 1000px;
}

.ideenpool-stats-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.ideenpool-stat-card {
	background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
	border: 1px solid #dce6f3;
	border-radius: 10px;
	padding: 12px;
	box-shadow: 0 2px 8px rgba(18, 62, 120, 0.06);
}

.ideenpool-stat-label {
	display: block;
	font-size: 12px;
	color: #4b5a73;
	margin-bottom: 6px;
}

.ideenpool-stat-value {
	font-size: 24px;
	font-weight: 700;
	color: #0f2f63;
}

.ideenpool-form-card,
.ideenpool-list-card {
	background: #fff;
	border: 1px solid #dbe5f1;
	border-radius: 12px;
	padding: 18px;
	margin-bottom: 20px;
	box-shadow: 0 2px 10px rgba(15, 47, 99, 0.06);
}

.ideenpool-message {
	padding: 10px 12px;
	border-radius: 6px;
	margin: 10px 0 15px 0;
}

.ideenpool-message-success {
	background: #e9f7ee;
	border: 1px solid #b7e4c7;
	color: #1b5e20;
}

.ideenpool-message-error {
	background: #fdecea;
	border: 1px solid #f5c6cb;
	color: #8a1f2d;
}

.ideenpool-duplikate {
	padding: 8px 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	background: #f9f9f9;
	font-size: 13px;
}

.ideenpool-duplikate ul {
	margin: 8px 0 0 16px;
}

.ideenpool-duplikate-ok {
	background: #edf7ed;
	border-color: #b5ddb7;
	color: #1f5f24;
}

.ideenpool-duplikate-warning {
	background: #fff8e6;
	border-color: #ecd17d;
	color: #6d5500;
}

.ideenpool-duplikate-error {
	background: #fdecea;
	border-color: #f0b4b9;
	color: #8a1f2d;
}

.ideenpool-toolbar {
	display: flex;
	gap: 10px;
	margin: 10px 0 12px 0;
	flex-wrap: wrap;
}

.ideenpool-toolbar input[type="text"],
.ideenpool-toolbar select {
	border: 1px solid #c8d4e3;
	border-radius: 8px;
	padding: 8px 10px;
	min-width: 200px;
}

.ideenpool-table-wrap {
	overflow-x: auto;
}

.ideenpool-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 920px;
}

.ideenpool-table th,
.ideenpool-table td {
	border: 1px solid #e1e1e1;
	padding: 10px;
	vertical-align: top;
	font-size: 13px;
}

.ideenpool-table th {
	background: #f4f7fb;
	color: #1e3558;
	font-weight: 700;
}

.ideenpool-table tbody tr:nth-child(even) {
	background: #fafcff;
}

.ideenpool-table tbody tr:hover {
	background: #f1f7ff;
}

.ideenpool-title-cell {
	font-weight: 600;
	color: #1e3558;
	min-width: 180px;
	word-break: break-word;
	width: 22%;
}

.ideenpool-idee-cell {
	line-height: 1.45;
	min-width: 280px;
	max-width: 520px;
	word-break: break-word;
	width: 36%;
}

.ideenpool-video-cell {
	min-width: 110px;
	text-align: center;
}

.ideenpool-youtube-icon {
	height: 24px;
	width: auto;
	vertical-align: middle;
}

.ideenpool-col-status,
.ideenpool-col-stimmen {
	width: 1%;
	white-space: nowrap;
	text-align: center;
}

.ideenpool-th-sort-stimmen {
	cursor: pointer;
	user-select: none;
	-webkit-user-select: none;
}

.ideenpool-th-sort-stimmen:hover {
	text-decoration: underline;
}

.ideenpool-sort-indicator {
	display: inline-block;
	min-width: 1em;
	margin-left: 2px;
	font-size: 0.75em;
	vertical-align: middle;
}

.ideenpool-master-view .ideenpool-table-wrap {
	overflow-x: visible;
}

.ideenpool-master-view .ideenpool-table {
	min-width: 0;
	table-layout: auto;
}

.ideenpool-master-view .ideenpool-title-cell,
.ideenpool-master-view .ideenpool-idee-cell,
.ideenpool-master-view .ideenpool-video-cell {
	min-width: 0;
	max-width: none;
}

.ideenpool-master-view .ideenpool-table th,
.ideenpool-master-view .ideenpool-table td {
	word-break: break-word;
	overflow-wrap: anywhere;
}

.ideenpool-master-view .ideenpool-inline-form input[type="text"] {
	width: 100%;
	max-width: 220px;
}

.ideenpool-inline-form {
	margin-bottom: 8px;
}

.ideenpool-inline-form select,
.ideenpool-inline-form textarea {
	width: 100%;
	margin-bottom: 6px;
}

.ideenpool-editor-container {
	border: 1px solid #d6deea;
	border-radius: 8px;
	background: #fff;
}

.ideenpool-editor-toolbar {
	display: flex;
	gap: 6px;
	padding: 8px;
	border-bottom: 1px solid #dfe6f1;
	background: #f7faff;
	flex-wrap: wrap;
}

.ideenpool-editor-toolbar button {
	border: 1px solid #c7d4e7;
	background: #fff;
	border-radius: 4px;
	padding: 4px 8px;
	cursor: pointer;
	font-size: 12px;
}

.ideenpool-editor-toolbar button:hover {
	background: #edf3ff;
}

.ideenpool-editor-content {
	min-height: 120px;
	padding: 10px;
	line-height: 1.45;
	outline: none;
}

.ideenpool-editor-content:focus {
	box-shadow: inset 0 0 0 1px #7aa7eb;
}

.ideenpool-audio-controls {
	margin-top: 8px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.ideenpool-audio-status {
	font-size: 12px;
	color: #4a5568;
}

.ideenpool-vote-form {
	margin: 0;
	display: inline-block;
	margin-right: 6px;
}

.ideenpool-vote-count {
	display: inline-block;
	min-width: 42px;
	text-align: center;
	padding: 6px 8px;
	border-radius: 999px;
	background: #eef2ff;
	color: #1e3a8a;
	font-weight: 700;
}

.ideenpool-icon-button {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	appearance: none;
	-webkit-appearance: none;
	padding: 0;
	cursor: pointer;
}

.ideenpool-icon-button:focus,
.ideenpool-icon-button:active {
	background: transparent !important;
	border: none !important;
	outline: none;
}

.ideenpool-icon-image {
	height: 28px;
	width: auto;
	vertical-align: middle;
}

.ideenpool-no-results {
	margin-top: 10px;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fff8e6;
	border: 1px solid #ecd17d;
	color: #6d5500;
}

.ideenpool-hidden {
	display: none;
}

.audio-record-btn {
	background: #4caf50;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 8px 12px;
	cursor: pointer;
}

.audio-record-btn.recording {
	background: #d64545;
}

.audio-record-btn.processing {
	background: #ff9800;
	cursor: wait;
}

.audio-notiz-controls {
	margin-top: 8px;
}

.ideenpool-status {
	display: inline-block;
	padding: 4px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
}

.ideenpool-status-eingereicht {
	background: #e3f2fd;
	color: #0d47a1;
}

.ideenpool-status-in-pruefung {
	background: #fff8e1;
	color: #8a6100;
}

.ideenpool-status-in-umsetzung {
	background: #ede7f6;
	color: #4a148c;
}

.ideenpool-status-umgesetzt {
	background: #e8f5e9;
	color: #1b5e20;
}

.ideenpool-status-nicht-durchfuehrbar {
	background: #fbe9e7;
	color: #7f1d1d;
}

.ideenpool-antwort-hinweis {
	font-size: 12px;
	color: #2f5d2f;
}

@media (max-width: 768px) {
	.ideenpool-stats-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ideenpool-form-card,
	.ideenpool-list-card {
		padding: 12px;
	}

	.ideenpool-toolbar input[type="text"],
	.ideenpool-toolbar select {
		width: 100%;
		min-width: unset;
	}

	.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;
	/* Tablet: sofortiger Tap ohne Verzögerung/Scroll */
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
}

.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;
	/* Tablet: Tap geht an Label, nicht an Bild (verhindert „komisches“ Verhalten) */
	pointer-events: none;
}

.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;
}

/* GFA: Abschnittsueberschrift + Fenstermaterial ueber volle Breite */
.gfa-section-title {
	font-size: 16px;
	font-weight: 700;
	color: #1e293b;
	margin: 2px 0 6px;
}

.gfa-main-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0 6px;
}

.gfa-head-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
}

.gfa-head-table td {
	padding: 0;
	vertical-align: top;
}

.gfa-head-colspan {
	padding: 2px 0;
}

.gfa-fenstermaterial-full.material-auswahl-container {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	margin: 8px 0 12px;
}

.gfa-fenstermaterial-full .material-option {
	min-width: 0;
	max-width: none;
}

/* GFA: Ausführung Holz – 3 Optionen in einer Zelle, gleiches Layout wie Fenstermaterial */
.gfa-holz-ausfuehrung-full.material-auswahl-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
	margin: 8px 0 12px;
}

.gfa-holz-ausfuehrung-full .material-option {
	min-width: 0;
	max-width: none;
}

/* KLAES Import Button - Logo und Text nebeneinander */
.klaes-import-btn {
	padding: 8px 12px;
}

/* WAREMA Editor */
.warema-editor-container {
	max-width: 1400px;
	margin: 20px auto;
	padding: 20px;
}

.warema-editor-header h1 {
	margin: 0 0 8px 0;
}

.warema-editor-header p {
	margin: 0 0 20px 0;
	color: #555;
}

.warema-editor-message {
	padding: 12px 16px;
	margin: 10px 0 20px 0;
	border-radius: 6px;
	border: 1px solid transparent;
}

.warema-editor-message-success {
	background: #d4edda;
	color: #155724;
	border-color: #c3e6cb;
}

.warema-editor-message-error {
	background: #f8d7da;
	color: #721c24;
	border-color: #f5c6cb;
}

/* Felder ausblenden (konfigurierbar in Einstellungen) */
.nm-feld-hidden {
	display: none !important;
}

.warema-editor-filters {
	background: #f9f9f9;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 16px;
	margin-bottom: 20px;
}

.warema-editor-filter-form {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: end;
}

.warema-editor-filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 220px;
}

.warema-editor-filter-group label {
	font-weight: 600;
	color: #333;
}

.warema-editor-filter-actions {
	margin-left: auto;
}

.warema-editor-table {
	width: 100%;
	border-collapse: collapse;
}

.warema-editor-table th {
	background: #2c5aa0;
	color: #fff;
	text-align: left;
	padding: 12px;
}

.warema-editor-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #ddd;
	vertical-align: middle;
}

.warema-editor-table tr:hover {
	background: #f5f5f5;
}

.warema-editor-input {
	width: 140px;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.warema-editor-inline-form {
	display: flex;
	gap: 10px;
	align-items: center;
	margin: 0;
}

.warema-editor-save {
	background: #2c5aa0;
	color: #fff;
}

.warema-editor-empty {
	text-align: center;
	color: #666;
	padding: 20px;
}

/* Admin-Buttons Startseite */
.admin-module-form {
	display: inline-block;
	margin-left: 10px;
}

.button-warema-editor {
	background: #3d7c47;
	color: #fff;
}

.button-warema-editor:hover {
	background: #2f6037;
}

.button-insektenschutz-editor {
	background: #8b6914;
	color: #fff;
}

.button-insektenschutz-editor:hover {
	background: #6d5210;
}

.button-duschkabinen-eigenschaften-editor {
	background: #0d6e7a;
	color: #fff;
}

.button-duschkabinen-eigenschaften-editor:hover {
	background: #0a5660;
}

.button-offline-restore {
	background: #6f42c1;
	color: #fff;
	display: inline-block;
	margin-left: 10px;
	text-decoration: none;
}

.button-offline-restore:hover {
	background: #563098;
	color: #fff;
}

/* Duschkabinen-Eigenschaften-Editor (Tabs) */
.duschkabinen-eigenschaften-editor-container {
	max-width: 100%;
}

.dk-editor-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 6px;
	overflow-x: auto;
	padding: 8px 4px 14px;
	margin: 0 0 8px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	border-bottom: 1px solid #dee2e6;
}

.dk-editor-tab {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	border-radius: 10px 10px 0 0;
	border: 1px solid #dee2e6;
	border-bottom: none;
	background: #f4f6f8;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	white-space: nowrap;
	transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.dk-editor-tab:hover {
	background: #e8eef2;
	border-color: #cfd8dc;
}

.dk-editor-tab:focus-visible {
	outline: 2px solid #0d6e7a;
	outline-offset: 2px;
}

.dk-editor-tab.active {
	background: #fff;
	border-color: #0d6e7a;
	border-bottom: 1px solid #fff;
	margin-bottom: -1px;
	box-shadow: 0 -2px 8px rgba(13, 110, 122, 0.12);
}

.dk-editor-tab-label {
	max-width: 12rem;
	overflow: hidden;
	text-overflow: ellipsis;
}

.dk-editor-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.5rem;
	padding: 2px 7px;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	background: #0d6e7a;
	color: #fff;
}

.dk-editor-tab.active .dk-editor-tab-count {
	background: #0a5660;
}

.dk-editor-table-panel {
	margin-top: 4px;
}

.dk-editor-mandant-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 0.85rem;
	font-weight: 600;
}

.dk-editor-mandant-badge--global {
	background: #e3f2fd;
	color: #1565c0;
	border: 1px solid #90caf9;
}

.dk-editor-mandant-badge--own {
	background: #e8f5e9;
	color: #2e7d32;
	border: 1px solid #a5d6a7;
}

.dk-editor-readonly {
	color: #555;
}

.dk-editor-add-row {
	background: #fafbfc;
}

.dk-editor-add-row td {
	border-top: 2px dashed #dee2e6;
}

.insektenschutz-zuweisung-block {
	margin-bottom: 30px;
}

.insektenschutz-abhaengigid-select {
	min-width: 180px;
	height: 100px;
	padding: 4px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 13px;
}

.insektenschutz-mass-input {
	width: 100px;
}

.insektenschutz-hinweise-input {
	min-width: 200px;
}

.insektenschutz-typen-table input.warema-editor-input {
	width: 100%;
	box-sizing: border-box;
}

.insektenschutz-typen-table input.insektenschutz-mass-input {
	width: 100px;
}

.insektenschutz-aktion-cell {
	white-space: nowrap;
}

.insektenschutz-aktion-form {
	display: inline-block;
	margin-right: 6px;
}

.insektenschutz-icon-btn {
	background: none;
	border: none;
	padding: 2px;
	cursor: pointer;
	vertical-align: middle;
}

.insektenschutz-icon-btn:hover {
	opacity: 0.8;
}

.insektenschutz-icon {
	width: 24px;
	height: 24px;
	display: block;
}

.insektenschutz-typen-editor-container {
	max-width: 100%;
}

.insektenschutz-typen-table-wrapper {
	width: 100%;
	overflow-x: auto;
}

.insektenschutz-welcome-buttons {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.insektenschutz-nicht-berechnen-hinweis {
	padding: 12px 16px;
	margin: 10px 0;
	background-color: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 4px;
	color: #856404;
	line-height: 1.5;
}

.form-inline {
	display: inline;
}

.warema-editor-delete-form {
	margin-left: 8px;
}

.warema-editor-bild-cell {
	vertical-align: top;
}

.warema-editor-bild-input {
	width: 200px;
	display: block;
	margin-bottom: 4px;
}

.warema-editor-oder {
	display: block;
	font-size: 12px;
	color: #666;
	margin: 4px 0;
}

.warema-editor-file-input {
	display: block;
	font-size: 12px;
	margin-bottom: 4px;
	max-width: 200px;
}

.warema-editor-bild-preview {
	min-height: 60px;
	margin-top: 4px;
}

.warema-editor-preview-img {
	max-width: 80px;
	max-height: 80px;
	object-fit: contain;
	border: 1px solid #ddd;
	border-radius: 4px;
}

/* Verschattung Modal */
.verschattung-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.7);
	justify-content: center;
	align-items: center;
}

.verschattung-modal.is-visible {
	display: flex;
}

.verschattung-modal-content {
	background: #fff;
	padding: 12px;
	border-radius: 8px;
	box-shadow: 0 0 20px #000;
}

.verschattung-modal-img {
	max-width: 90vw;
	max-height: 90vh;
	display: block;
}

/* Bild-Skizze Editor */
.bild-skizze-canvas-container {
	position: relative;
	overflow-x: auto;
}

/* Bild-Skizze im GFA-Modal: Zeichenfläche auf ca. 70 % Viewport begrenzen (Touch-Geräte) */
.bild-skizze-canvas-container.bild-skizze-in-modal {
	max-height: 70vh;
	max-width: 70vw;
	overflow: auto;
}

/* Messungsskizze im iframe (Modal): volle Fläche, flex-Layout — nicht mit .skizze-editor-modal-layout kombinieren */
.skizze-editor-modal-layout .bild-skizze-canvas-container.bild-skizze-in-modal {
	max-height: none;
	max-width: none;
	overflow: hidden;
}

/* Messungsskizze iframe: volle Höhe, vertikaler Scroll im Inhaltsbereich (nicht clippen) */
html:has(body.messungsskizze-in-modal) {
	height: 100%;
}
body.app-shell.messungsskizze-in-modal {
	margin: 0;
	padding: 0;
	height: 100vh;
	height: 100dvh;
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-sizing: border-box;
}

.skizze-iframe-fullpage {
	flex: 1 1 0;
	min-height: 0;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	box-sizing: border-box;
	padding: 4px 6px 6px;
	width: 100%;
	max-height: none;
}

.skizze-editor-modal-layout {
	flex: 0 0 auto;
	min-height: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
	overflow: visible;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.skizze-editor-modal-canvas-area {
	/* ~70 % der sichtbaren iframe-Höhe (Modal-Inhalt); bei Scroll des äußeren Wrappers bleibt Historie erreichbar */
	flex: 0 0 auto;
	height: 70vh;
	max-height: 70vh;
	min-height: 140px;
	position: relative;
	background: #e8ecf2;
	border: 1px solid #c5d0e3;
	border-radius: 8px;
	box-sizing: border-box;
}

.skizze-editor-modal-layout .skizze-editor-modal-history-wrap {
	flex: 0 0 auto;
	min-height: 9.5rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	padding: 10px 12px;
	margin-top: 0;
}

.skizze-editor-modal-layout .skizze-editor-modal-history-wrap .bild-skizze-log-list {
	flex: none;
	min-height: 0;
	max-height: min(32vh, 260px);
	overflow-y: auto;
	overflow-x: hidden;
	-webkit-overflow-scrolling: touch;
}

.skizze-editor-modal-canvas-area .bild-skizze-canvas-container {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
}

.skizze-editor-modal-canvas-area .bild-skizze-canvas {
	display: block;
	/* Puffergröße = Anzeige (per JS); kein CSS-Stretch nötig */
}

.skizze-editor-modal-layout .bild-skizze-controls,
.skizze-editor-modal-layout .bild-skizze-history {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

.skizze-editor-modal-layout .skizze-editor-modal-history-wrap .bild-skizze-history-head {
	flex: 0 0 auto;
}

.skizze-editor-modal-layout .skizze-editor-modal-controls {
	margin-top: 0;
	flex: 0 0 auto;
	padding: 10px 12px;
}

.skizze-iframe-fullpage .skizze-iframe-full-actions {
	flex: 0 0 auto;
	padding-top: 6px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
}

.bild-skizze-canvas {
	border: 1px solid #222;
	background: #fff;
}

.bild-skizze-controls {
	margin-top: 20px;
	background-color: #fff;
	padding: 12px;
	border: 1px solid #d8e1ee;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(18, 49, 87, 0.08);
	max-width: 760px;
}

.bild-skizze-label {
	margin-right: 8px;
	font-weight: 600;
}

.bild-skizze-button-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bild-skizze-tool-btn {
	background: #eef3fb;
	border: 1px solid #cfdcf0;
	color: #1b2e4b;
	padding: 8px 12px;
	border-radius: 8px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

.bild-skizze-tool-btn:hover {
	background: #e1ebfa;
	border-color: #adc3e8;
}

.bild-skizze-tool-btn:active {
	transform: translateY(1px);
}

.bild-skizze-tool-btn.is-active {
	background: #2f7bf6;
	border-color: #2f7bf6;
	color: #fff;
}

.bild-skizze-tool-btn-danger {
	background: #fff2f2;
	border-color: #f0c2c2;
	color: #8b1f1f;
}

.bild-skizze-tool-btn-danger:hover {
	background: #ffe5e5;
	border-color: #e59b9b;
}

.bild-skizze-prompt {
	display: none;
	position: fixed;
	top: 30%;
	left: 50%;
	transform: translateX(-50%);
	background: #fff;
	padding: 20px;
	border: 1px solid #ccc;
	z-index: 1000;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
	border-radius: 8px;
}

.bild-skizze-prompt-message {
	margin-bottom: 10px;
}

.bild-skizze-prompt-input {
	width: 100%;
	padding: 8px;
	box-sizing: border-box;
}

.bild-skizze-prompt-actions {
	text-align: right;
	margin-top: 10px;
}

.bild-skizze-history {
	max-width: 760px;
	background: #fff;
	border: 1px solid #d8e1ee;
	border-radius: 10px;
	padding: 12px;
	box-shadow: 0 2px 10px rgba(18, 49, 87, 0.08);
}

.bild-skizze-history-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
}

.bild-skizze-log-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.bild-skizze-log-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid #dce5f3;
	border-radius: 8px;
	background: #f9fbff;
}

.bild-skizze-log-text {
	font-size: 14px;
	color: #243956;
}

.bild-skizze-log-remove {
	border: 1px solid #c8d5ea;
	background: #fff;
	color: #2a4268;
	border-radius: 7px;
	padding: 5px 10px;
	cursor: pointer;
	font-weight: 600;
}

.bild-skizze-log-remove:hover {
	background: #eef4ff;
}

.bild-skizze-log-empty {
	padding: 8px 10px;
	border: 1px dashed #d6e1f2;
	border-radius: 8px;
	color: #5a6f90;
	background: #fcfdff;
}

/* =========================================================
   Schnellaufmaß AJAX – Formular-Layout
   ========================================================= */

.sa-form-wrapper {
	max-width: 860px;
	margin: 0 auto;
	padding: 8px 8px 40px;
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Freie Messungstyp-Vorlagen: volle Seitenbreite, linksbündig
   (überschreibt das zentrierte 860px-Layout vom Schnellaufmaß). */
.modul-neue_messung_freier_typ_ajax .sa-form-wrapper,
.modul-freie_messungstyp_messung_bearbeiten .sa-form-wrapper,
.modul-neue_messung_freier_typ_save .sa-form-wrapper,
.modul-messung_bearbeiten .sa-form-wrapper {
	max-width: none;
	margin: 0;
	align-items: stretch;
}
.modul-neue_messung_freier_typ_ajax .sa-card,
.modul-freie_messungstyp_messung_bearbeiten .sa-card,
.modul-neue_messung_freier_typ_save .sa-card,
.modul-messung_bearbeiten .sa-card {
	width: 100%;
	box-sizing: border-box;
}

/* Karten */
.sa-card {
	background: #fff;
	border: 1px solid #e0e6ef;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.06);
	overflow: hidden;
}

.sa-card-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 14px;
	background: linear-gradient(135deg, #f0f4fb 0%, #e8eef7 100%);
	border-bottom: 1px solid #d8e2f0;
	font-weight: 600;
	font-size: 14px;
	color: #2c3a4d;
}

.sa-card-icon {
	font-size: 18px;
	line-height: 1;
}

.sa-card-body {
	padding: 12px 14px;
}

.sa-fv-notizen-stamm-row {
	margin-top: 8px;
}

.fv-freie-typ-ajax-form .fv-freie-notizen-footer-row {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid #e0e0e0;
}

/* Freie Messung (Vorlage) – AJAX-Formular: keine Inline-Styles */
.fv-freie-typ-ajax-form .fv-validation-error {
	border-color: #c0392b;
	background: #fdeaea;
	color: #7b241c;
}
.fv-freie-typ-ajax-form .fv-paar-row-header {
	font-weight: 600;
	color: #555;
	font-size: 12px;
	border-bottom: 1px solid #ddd;
	margin-top: 6px;
}
.fv-freie-typ-ajax-form .fv-input-narrow {
	min-width: 100px;
}
.fv-freie-typ-ajax-form .fv-input-messwert {
	min-width: 120px;
}
.fv-freie-typ-ajax-form .fv-input-text-wide {
	min-width: 200px;
}
.fv-freie-typ-ajax-form .fv-fenstertyp-block {
	width: 100%;
	margin-top: 6px;
}
.fv-freie-typ-ajax-form .fv-fenstertyp-title {
	font-weight: 600;
	margin-bottom: 6px;
}
.fv-freie-typ-ajax-form .fv-fenstertyp-current {
	margin-bottom: 8px;
}
.fv-freie-typ-ajax-form .fv-fenstertyp-preview-img {
	border: 1px solid #ccc;
}
.fv-freie-typ-ajax-form .fv-fenstertyp-change-btn {
	margin-top: 6px;
}
.fv-freie-typ-ajax-form .fv-ft-search-wrap {
	margin-bottom: 10px;
}
.fv-freie-typ-ajax-form .fv-ft-search-input {
	padding: 4px 8px;
	width: 240px;
	box-sizing: border-box;
}
.fv-freie-typ-ajax-form .fv-ft-search-btn {
	padding: 4px 12px;
}
.fv-freie-typ-ajax-form .fv-ft-scroll {
	width: 100%;
	max-height: 480px;
	overflow-y: auto;
	overflow-x: hidden;
	border: 1px solid #ddd;
	padding: 8px;
	box-sizing: border-box;
}
.fv-freie-typ-ajax-form .fv-eig-empty-hint {
	color: #c00;
	font-size: 11px;
	margin-top: 4px;
}
.fv-freie-typ-ajax-form .fv-foto-preview {
	cursor: pointer;
}
.fv-freie-typ-ajax-form .fv-foto-action-icon {
	height: 50px;
	cursor: pointer;
}
.fv-freie-typ-ajax-form .fv-foto-action-icon--spaced {
	margin-left: 5px;
}
.fv-freie-typ-ajax-form .fv-file-input-hidden {
	display: none;
}
.fv-zusatzfoto-item {
	border: 1px solid #ccc;
	padding: 10px;
	margin: 10px 0;
	border-radius: 5px;
	background: #f9f9f9;
}
.fv-zusatzfoto-toolbar {
	display: flex;
	align-items: center;
	margin-bottom: 10px;
}
.fv-zusatzfoto-toolbar input[type="checkbox"] {
	margin-right: 10px;
}
.fv-zusatzfoto-toolbar .fv-zusatzfoto-label {
	margin-right: 10px;
	font-weight: bold;
}
.fv-btn-zusatzfoto-remove {
	margin-left: 10px;
	background: #ff4444;
	color: #fff;
	border: none;
	padding: 5px 10px;
	border-radius: 3px;
	cursor: pointer;
}
.fv-btn-add-zusatzfoto {
	margin-top: 10px;
}
.fv-btn-add-zusatzfoto .fv-btn-plus {
	font-size: 18px;
	font-weight: bold;
	margin-right: 5px;
}
.fv-skizze-hint-wait {
	margin-top: 6px;
	font-size: 12px;
	color: #a60;
}
.fv-skizze-upload-label {
	margin-top: 10px;
	font-size: 12px;
	color: #555;
}
.fv-skizze-loeschen-label {
	display: block;
	font-size: 12px;
	margin-top: 6px;
}
.fv-skizze-action-btn {
	margin-top: 6px;
}
.fv-datei-add-btn {
	margin-top: 10px;
}
.fv-datei-add-btn .fv-btn-plus {
	font-size: 18px;
	font-weight: bold;
	margin-right: 5px;
}
.fv-freie-typ-ajax-form .fv-form-actions-row {
	margin: 16px 0;
}
.fv-zusatzfoto-icon {
	height: 40px;
	cursor: pointer;
}
.fv-zusatzfoto-icon--spaced {
	margin-left: 5px;
}
.fv-zusatzfoto-preview-wrap {
	display: none;
}
.fv-fallback-unimplemented {
	color: #888;
	font-style: italic;
	font-size: 12px;
}

.fv-hidden {
	display: none !important;
}

/* Bild-Modal (freie Messung AJAX) */
.fv-image-modal {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.7);
	align-items: center;
	justify-content: center;
}
.fv-image-modal-close {
	position: absolute;
	top: 30px;
	right: 40px;
	font-size: 2.5em;
	color: #fff;
	cursor: pointer;
	z-index: 10001;
}
.fv-image-modal-img {
	max-width: 90vw;
	max-height: 85vh;
	box-shadow: 0 0 30px #000;
	border-radius: 8px;
	z-index: 10000;
}

/* Messungsskizze-Modal (freie Messungstyp-Vorlage, iframe) */
.fv-skizze-modal {
	display: none;
	position: fixed;
	z-index: 10002;
	left: 0;
	top: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.65);
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	padding: 12px;
}
.fv-skizze-modal-inner {
	position: relative;
	width: calc(100vw - 16px);
	height: calc(100vh - 16px);
	max-width: none;
	max-height: none;
	padding-top: 36px;
	box-sizing: border-box;
	background: #f5f5f5;
	border-radius: 8px;
	box-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.fv-skizze-modal-close {
	position: absolute;
	top: 6px;
	right: 10px;
	z-index: 10004;
	margin: 0;
	padding: 2px 12px;
	font-size: 1.75rem;
	line-height: 1.2;
	border: none;
	background: transparent;
	color: #333;
	cursor: pointer;
	border-radius: 4px;
}
.fv-skizze-modal-close:hover {
	background: rgba(0, 0, 0, 0.08);
}
.fv-skizze-modal-iframe {
	flex: 1;
	width: 100%;
	min-height: 0;
	border: 0;
	background: #fff;
}
.fv-skizze-preview-wrap {
	margin-bottom: 6px;
}
.fv-skizze-param-form {
	display: none;
}
.fv-skizze-saved-ack {
	padding: 12px;
	font-size: 14px;
}
.fv-skizze-modal-close-btn {
	margin-left: 8px;
}

/* Fensterauswahl in Karten-Layouts (neue_messung_ajax, schnellaufmass_ajax):
   .scroll darf die Karte nicht überragen – fenster-grid bricht selbst um. */
.sa-card .scroll {
	width: 100%;
	box-sizing: border-box;
	white-space: normal;
	overflow-x: hidden;
}

/* Position-Badge */
.sa-position-badge {
	margin-left: auto;
	background: #2c5aa0;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	padding: 3px 12px;
	border-radius: 20px;
	min-width: 32px;
	text-align: center;
}

/* Suchzeile */
.sa-search-row {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
}

.sa-search-input {
	flex: 1;
	padding: 7px 10px;
	border: 1px solid #c8d4e8;
	border-radius: 6px;
	font-size: 14px;
}

.sa-search-input:focus {
	outline: none;
	border-color: #2c5aa0;
	box-shadow: 0 0 0 2px rgba(44,90,160,0.15);
}

/* Lade-Animation Fensterauswahl */
.sa-loading {
	opacity: 0.5;
	pointer-events: none;
	transition: opacity 0.2s;
}

/* Maße Grid */
.sa-mass-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 16px;
}

.sa-mass-field,
.sa-fuge-field {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sa-label {
	font-size: 12px;
	font-weight: 600;
	color: #5a6f90;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.sa-input-unit {
	display: flex;
	align-items: stretch;
	border: 1px solid #c8d4e8;
	border-radius: 6px;
	overflow: hidden;
}

.sa-input-unit input[type="number"] {
	flex: 1;
	border: none;
	padding: 7px 8px;
	font-size: 15px;
	background: #fff;
	min-width: 0;
}

.sa-input-unit input[type="number"]:focus {
	outline: none;
	background: #f5f8ff;
}

.sa-unit {
	background: #eef1f7;
	border-left: 1px solid #c8d4e8;
	padding: 0 10px;
	font-size: 12px;
	font-weight: 600;
	color: #7a8fa6;
	display: flex;
	align-items: center;
}

/* Anschlussfugen – Kompass-Layout */
.sa-section-label {
	font-size: 12px;
	font-weight: 700;
	color: #5a6f90;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 10px;
	padding-top: 4px;
	border-top: 1px solid #eef1f7;
}

.sa-fuge-grid {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	grid-template-rows: auto auto;
	gap: 8px;
	align-items: center;
	max-width: 440px;
}

.sa-fuge-oben  { grid-column: 2; grid-row: 1; text-align: center; }
.sa-fuge-links { grid-column: 1; grid-row: 2; }
.sa-fuge-mitte { grid-column: 2; grid-row: 2; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 90px; }
.sa-fuge-rechts{ grid-column: 3; grid-row: 2; }
.sa-fuge-unten { grid-column: 2; grid-row: 3; text-align: center; }

.sa-fuge-grid {
	grid-template-rows: auto auto auto;
}

/* Fenstertyp in der Mitte der Anschlussfugen */
.sa-fenstertyp-placeholder {
	font-size: 11px;
	color: #9aa8bd;
	text-align: center;
	padding: 8px 4px;
	line-height: 1.2;
}

.sa-fenstertyp-preview {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}

.sa-fenstertyp-img {
	width: 56px;
	height: 56px;
	object-fit: contain;
	border-radius: 6px;
	border: 1px solid #c8d4e8;
	background: #fff;
}

.sa-fenstertyp-label {
	font-size: 10px;
	color: #5a6f90;
	text-align: center;
	max-width: 90px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Insektenschutz */
.sa-insekt-row {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.sa-insekt-row .sa-checkbox-label {
	gap: 6px;
	font-weight: 500;
}

.sa-insekt-label {
	color: #4a5568;
}

.sa-checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 600;
	color: #2c3a4d;
	user-select: none;
	position: relative;
}

.sa-checkbox {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 22px;
	height: 22px;
	opacity: 0;
	cursor: pointer;
	margin: 0;
	z-index: 1;
}

.sa-checkbox-custom {
	width: 22px;
	height: 22px;
	border: 2px solid #b0bec5;
	border-radius: 5px;
	background: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	flex-shrink: 0;
}

.sa-checkbox:checked + .sa-checkbox-custom {
	background: #04AA6D;
	border-color: #04AA6D;
}

.sa-checkbox:checked + .sa-checkbox-custom::after {
	content: '✓';
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
}

.sa-notiz-input {
	flex: 1;
	min-width: 160px;
	padding: 7px 10px;
	border: 1px solid #c8d4e8;
	border-radius: 6px;
	font-size: 13px;
}

.sa-notiz-input:focus {
	outline: none;
	border-color: #2c5aa0;
	box-shadow: 0 0 0 2px rgba(44,90,160,0.15);
}

/* Verschattung ROMA/WAREMA/Standard */
.sa-verschattung-block {
	margin-bottom: 12px;
}
.sa-verschattung-block img[alt="ROMA"],
.sa-verschattung-block img[alt="WAREMA"] {
	margin-bottom: 10px;
}
.sa-verschattung-row {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	flex-wrap: wrap;
}
.sa-verschattung-row label {
	min-width: 120px;
	font-weight: 500;
	font-size: 13px;
}
.sa-verschattung-row select,
.sa-verschattung-row input[type="text"],
.sa-verschattung-row input[type="number"] {
	min-width: 160px;
	padding: 6px 8px;
	border: 1px solid #c8d4e8;
	border-radius: 6px;
}
.sa-verschattung-panzer .sa-unit {
	margin-left: 4px;
}

/* Verschattung: Form links, Bild rechts wenn Platz */
.sa-verschattung-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-start;
}
.sa-verschattung-form {
	flex: 1;
	min-width: 260px;
}
.sa-verschattung-bild-row {
	flex-shrink: 0;
	margin-top: 0;
}
.sa-verschattung-bild-row img {
	display: block;
}

/* Speicher-Bereich */
.sa-save-area {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	padding: 4px 0;
}

.sa-save-btn {
	font-size: 16px;
	padding: 13px 20px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border-radius: 8px;
	letter-spacing: 0.02em;
	transition: transform 0.15s, box-shadow 0.15s;
}

.sa-save-btn:not(:disabled):hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 14px rgba(4,170,109,0.35);
}

.sa-save-btn:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.sa-save-icon {
	font-size: 20px;
	line-height: 1;
}

/* Status-Meldung */
.sa-save-status {
	padding: 0;
	font-size: 14px;
	font-weight: 600;
	border-radius: 7px;
	text-align: center;
	transition: all 0.3s;
	min-height: 0;
}

.sa-save-status:not(:empty) {
	padding: 10px 14px;
}

.sa-save-status[data-status-type="success"] {
	background: #e8f8f0;
	color: #1a7a4a;
	border: 1px solid #a3d9bc;
}

.sa-save-status[data-status-type="error"] {
	background: #fdf0f0;
	color: #c0392b;
	border: 1px solid #f5bcbc;
}

.sa-save-status-top {
	margin-bottom: 1em;
}

.gfa-seitenanfang-btn {
	margin-left: 10px;
}

/* Responsive */
@media (max-width: 500px) {
	.sa-mass-grid {
		grid-template-columns: 1fr;
	}
	.sa-fuge-grid {
		max-width: 100%;
	}
	.sa-card-body {
		padding: 10px;
	}
}

/* =========================================================
   Foto-Upload-Bereich (Schnellaufmaß AJAX)
   ========================================================= */

/* Verstecktes File-Input */
.sa-foto-file-input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	pointer-events: none;
}

/* Zweier-Raster Innen/Außen */
.sa-foto-section {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
	margin-bottom: 4px;
}

/* Einzelner Foto-Slot */
.sa-foto-slot {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Klickbarer Bereich */
.sa-foto-slot-inner {
	position: relative;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	background: #f5f8ff;
	border: 2px dashed #b8cbe8;
	aspect-ratio: 4 / 3;
	transition: border-color 0.2s, background 0.2s;
}

.sa-foto-slot-inner:hover,
.sa-foto-slot-inner:focus-within {
	border-color: #2c5aa0;
	background: #edf2fb;
}

/* Platzhalter (kein Foto gewählt) */
.sa-foto-placeholder {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 8px;
	text-align: center;
	pointer-events: none;
}

.sa-foto-cam-icon {
	font-size: 36px;
	line-height: 1;
	filter: grayscale(0.3);
}

.sa-foto-label {
	font-size: 13px;
	font-weight: 700;
	color: #2c3a4d;
}

.sa-foto-hint {
	font-size: 11px;
	color: #7a8fa6;
}

/* Vorschau-Bild */
.sa-foto-preview-wrap {
	position: absolute;
	inset: 0;
}

.sa-foto-preview-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Hover-Overlay mit Aktions-Buttons */
.sa-foto-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0);
	display: flex;
	align-items: flex-start;
	justify-content: flex-end;
	gap: 6px;
	padding: 6px;
	transition: background 0.2s;
}

.sa-foto-preview-wrap:hover .sa-foto-overlay {
	background: rgba(0,0,0,0.35);
}

.sa-foto-overlay-btn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: none;
	font-size: 15px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s, transform 0.15s;
	-webkit-tap-highlight-color: transparent;
}

.sa-foto-preview-wrap:hover .sa-foto-overlay-btn {
	opacity: 1;
}

/* Auf Touch-Geräten immer sichtbar */
@media (hover: none) {
	.sa-foto-overlay {
		background: rgba(0,0,0,0.22);
	}
	.sa-foto-overlay-btn {
		opacity: 1;
	}
}

.sa-foto-delete-btn {
	background: rgba(200,40,40,0.88);
	color: #fff;
}

.sa-foto-delete-btn:hover {
	transform: scale(1.12);
	background: #c0392b;
}

.sa-foto-view-btn,
.sa-foto-view-btn-zusatz {
	background: rgba(44,90,160,0.88);
	color: #fff;
}

.sa-foto-view-btn:hover,
.sa-foto-view-btn-zusatz:hover {
	transform: scale(1.12);
	background: #2c5aa0;
}

/* Markieren-Button */
.sa-foto-actions {
	display: flex;
	justify-content: flex-end;
}

.sa-foto-markieren-btn {
	font-size: 12px;
	padding: 4px 10px;
}

/* Footer: Notiz & Montageinfos volle Breite */
.sa-footer-fullwidth-row {
	display: block;
	width: 100%;
	margin-bottom: 12px;
}
.sa-footer-fullwidth-label {
	display: block;
	font-weight: 600;
	color: #2c3a4d;
	margin-bottom: 6px;
	font-size: 13px;
}
.sa-montageinfos-wrap {
	width: 100%;
}
.sa-montageinfos-wrap select[name="montageinfos[]"] {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Textarea */
.sa-textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #c8d4e8;
	border-radius: 6px;
	font-size: 14px;
	resize: vertical;
	min-height: 80px;
	box-sizing: border-box;
}
.sa-textarea-fullwidth {
	width: 100%;
	max-width: 100%;
}

.sa-textarea:focus {
	outline: none;
	border-color: #2c5aa0;
	box-shadow: 0 0 0 2px rgba(44,90,160,0.15);
}

/* ─── Zusatzfotos ─────────────────────────────────────────────────────── */

.sa-zusatzfoto-section {
	padding-top: 8px;
}

.sa-zusatzfoto-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.sa-zusatzfoto-title {
	font-size: 13px;
	font-weight: 700;
	color: #2c3a4d;
}

.sa-zusatzfoto-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
	gap: 10px;
	margin-bottom: 10px;
}

/* Einzelne Zusatzfoto-Karte */
.sa-zusatzfoto-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.sa-zusatzfoto-dropzone {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	cursor: pointer;
	background: #f5f8ff;
	border: 2px dashed #b8cbe8;
	aspect-ratio: 1 / 1;
	transition: border-color 0.2s, background 0.2s;
}

.sa-zusatzfoto-dropzone:hover {
	border-color: #2c5aa0;
	background: #edf2fb;
}

.sa-zusatzfoto-remove-btn {
	position: absolute;
	top: 4px;
	left: 4px;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	border: none;
	background: rgba(200,40,40,0.85);
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	transition: transform 0.15s;
}

.sa-zusatzfoto-remove-btn:hover {
	transform: scale(1.15);
	background: #c0392b;
}

/* Drag-Over-Highlight für Messung-Foto-Slots (genutzt von drag_drop_upload.js) */
.sa-foto-slot-inner.sa-foto-dropzone--over,
.sa-zusatzfoto-dropzone.sa-zusatzfoto-dropzone--over {
	border-color: #007bff;
	border-style: solid;
	background: #e3f2fd;
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

/* D&D-Toast – unauffälliger Hinweis oben rechts */
.dnd-toast-container {
	position: fixed;
	top: 60px;
	right: 16px;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	gap: 8px;
	pointer-events: none;
}

.dnd-toast {
	background: rgba(33, 37, 41, 0.92);
	color: #fff;
	padding: 10px 16px;
	border-radius: 6px;
	font-size: 14px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
	max-width: 360px;
	opacity: 0;
	transform: translateY(-6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	pointer-events: auto;
}

.dnd-toast--visible {
	opacity: 1;
	transform: translateY(0);
}

/* Gespeicherte Zusatzfotos nach dem Upload */
.sa-zusatzfoto-saved-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 8px;
}

.sa-zusatzfoto-saved-card {
	position: relative;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid #c8d4e8;
	background: #f0f4fb;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sa-zusatzfoto-thumb {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	cursor: pointer;
	transition: opacity 0.2s;
}

.sa-zusatzfoto-thumb:hover {
	opacity: 0.85;
}

.sa-zusatzfoto-saved-card .sa-foto-markieren-btn {
	width: 100%;
	text-align: center;
	border-radius: 0;
	padding: 4px;
	font-size: 11px;
}

/* ─── Vollbild-Modal ──────────────────────────────────────────────────── */

.ajax-image-modal {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.88);
	z-index: 9000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.ajax-image-modal[hidden] {
	display: none;
}

.ajax-image-modal-content {
	position: relative;
	max-width: min(96vw, 900px);
	max-height: 92vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ajax-image-modal-content img {
	max-width: 100%;
	max-height: 88vh;
	border-radius: 6px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.6);
	display: block;
}

.ajax-image-modal-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: none;
	font-size: 20px;
	font-weight: 700;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #2c3a4d;
	box-shadow: 0 2px 8px rgba(0,0,0,0.3);
	z-index: 1;
	transition: transform 0.15s, background 0.15s;
}

.ajax-image-modal-close:hover {
	background: #fee;
	transform: scale(1.1);
}

/* ─── Kamera-Aufnahme-Modal (Desktop/Windows: getUserMedia) ─────────────────── */

.sa-camera-capture-modal {
	position: fixed;
	inset: 0;
	z-index: 9100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.sa-camera-capture-modal[hidden] {
	display: none;
}

.sa-camera-capture-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.75);
}

.sa-camera-capture-content {
	position: relative;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 12px 48px rgba(0,0,0,0.4);
	overflow: hidden;
	max-width: min(96vw, 640px);
	width: 100%;
	display: flex;
	flex-direction: column;
}

.sa-camera-capture-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 16px;
	background: #2c5aa0;
	color: #fff;
}

.sa-camera-capture-title {
	font-weight: 600;
	font-size: 16px;
}

.sa-camera-capture-close {
	background: transparent;
	border: none;
	color: #fff;
	font-size: 24px;
	cursor: pointer;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 6px;
	transition: background 0.2s;
}

.sa-camera-capture-close:hover {
	background: rgba(255,255,255,0.2);
}

.sa-camera-capture-body {
	position: relative;
	background: #000;
	aspect-ratio: 4 / 3;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sa-camera-capture-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.sa-camera-capture-error {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	color: #e74c3c;
	text-align: center;
	font-size: 14px;
}

.sa-camera-capture-select-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: #f0f4f8;
	border-top: 1px solid #ddd;
}

.sa-camera-capture-select-wrap[hidden] {
	display: none;
}

.sa-camera-capture-select-wrap label {
	font-size: 13px;
	font-weight: 600;
	color: #2c3a4d;
}

.sa-camera-capture-select {
	flex: 1;
	max-width: 280px;
	padding: 6px 10px;
	font-size: 13px;
	border: 1px solid #b8cbe8;
	border-radius: 6px;
	background: #fff;
}

.sa-camera-capture-footer {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 16px;
	background: #f5f5f5;
	border-top: 1px solid #ddd;
}

.sa-camera-capture-btn {
	font-size: 16px;
	padding: 10px 24px;
}

.sa-camera-capture-file-btn {
	font-size: 13px;
	font-weight: 500;
}

/* =========================================================
   GFA AJAX - Mobile/Tablet UX Verbesserungen
   Nur fuer neue_messung_gfa_ajax und gfa_messung_bearbeiten_ajax

   Design-Vorgaben (Recherche Handwerks-/Field-Service-Apps):
   - Touch-Ziele mind. 44–48px (Apple/Google), Inputs 48–56px hoch
   - Einspaltig auf Mobile, Label ueber Feld
   - Klare Fokus-States, 16px Schrift (vermeidet iOS-Zoom)
   - Card-Optik fuer Gruppen, weiche Schatten, abgerundete Ecken
   - Wenig Ablenkung, hoher Kontrast, native Tastaturtypen nutzen
   ========================================================= */

.modul-neue_messung_gfa_ajax #ajax_gfa_form,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 8px;
}

.modul-neue_messung_gfa_ajax #ajax_gfa_form #resp-table,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form #resp-table {
	background: #f8fafc;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.modul-neue_messung_gfa_ajax #ajax_gfa_form .table-body-cell,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .table-body-cell {
	padding: 8px 10px;
}

/* Labels: lesbar, klar zugeordnet */
.modul-neue_messung_gfa_ajax #ajax_gfa_form .resp-table-row > .table-body-cell:first-child,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .resp-table-row > .table-body-cell:first-child {
	font-weight: 600;
	color: #334155;
	font-size: 0.95rem;
}

/* Einheitliches Feld-Design (Inputs, Selects, Textarea) */
.modul-neue_messung_gfa_ajax #ajax_gfa_form input[type="text"],
.modul-neue_messung_gfa_ajax #ajax_gfa_form input[type="number"],
.modul-neue_messung_gfa_ajax #ajax_gfa_form select,
.modul-neue_messung_gfa_ajax #ajax_gfa_form textarea,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form input[type="text"],
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form input[type="number"],
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form select,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form textarea {
	min-height: 46px;
	font-size: 16px;
	line-height: 1.4;
	padding: 10px 14px;
	box-sizing: border-box;
	max-width: 100%;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	background: #fff;
	color: #1e293b;
	transition: border-color 0.2s, box-shadow 0.2s;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.modul-neue_messung_gfa_ajax #ajax_gfa_form textarea,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form textarea {
	min-height: 80px;
	background-image: none;
	padding-right: 14px;
}

.modul-neue_messung_gfa_ajax #ajax_gfa_form input[type="text"],
.modul-neue_messung_gfa_ajax #ajax_gfa_form input[type="number"],
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form input[type="text"],
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form input[type="number"] {
	background-image: none;
	padding-right: 14px;
}

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

.modul-neue_messung_gfa_ajax #ajax_gfa_form .button,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .button {
	min-height: 46px;
	padding: 10px 18px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	transition: transform 0.15s, box-shadow 0.15s;
}

.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-photo-actions,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-photo-actions {
	flex-wrap: wrap;
	gap: 10px;
}

.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-photo-preview,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-photo-preview {
	max-width: min(100%, 360px);
	height: auto;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-camera-icon,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-camera-icon {
	height: 56px;
}

/* Speichern-Button hervorgehoben */
.modul-neue_messung_gfa_ajax #ajax_gfa_form .sa-save-btn,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .sa-save-btn {
	background: linear-gradient(180deg, #16a34a 0%, #15803d 100%);
	color: #fff;
	border-color: #15803d;
	box-shadow: 0 2px 6px rgba(22, 163, 74, 0.35);
}

.modul-neue_messung_gfa_ajax #ajax_gfa_form .sa-save-btn:hover,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .sa-save-btn:hover {
	box-shadow: 0 4px 12px rgba(22, 163, 74, 0.4);
}

.modul-neue_messung_gfa_ajax #ajax_gfa_form .sa-save-btn:active,
.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .sa-save-btn:active {
	transform: scale(0.98);
}

/* Tablet: klare Struktur, mehr Touch-Flaeche */
@media (max-width: 1024px) {
	.modul-neue_messung_gfa_ajax #ajax_gfa_form .resp-table-row,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .resp-table-row {
		display: grid;
		grid-template-columns: minmax(130px, 200px) minmax(0, 1fr);
		column-gap: 10px;
		row-gap: 6px;
		margin-bottom: 10px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .resp-table-row > .table-body-cell:first-child,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .resp-table-row > .table-body-cell:first-child {
		font-weight: 600;
		color: #2c3a4d;
	}

	/* colspan-Verhalten fuer GFA-Zeilen mit table-body-cell-colspan-3 */
	.modul-neue_messung_gfa_ajax #ajax_gfa_form .resp-table-row > .table-body-cell-colspan-3,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .resp-table-row > .table-body-cell-colspan-3 {
		grid-column: 1 / -1;
		display: block;
		width: 100%;
		max-width: 100%;
		padding: 4px 2px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .material-auswahl-container,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .material-auswahl-container {
		gap: 10px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .material-option,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .material-option {
		min-width: 140px;
		max-width: 190px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-fenstermaterial-full .material-option,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-fenstermaterial-full .material-option {
		min-width: 0;
		max-width: none;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-holz-ausfuehrung-full .material-option,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-holz-ausfuehrung-full .material-option {
		min-width: 0;
		max-width: none;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .material-option-label,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .material-option-label {
		min-height: 148px;
		justify-content: center;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .material-icon-img,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .material-icon-img {
		width: 74px;
		height: 74px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-dichtungstyp-popup {
		width: min(94vw, 860px);
		max-height: 92vh;
	}

	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-dichtungstyp-popup {
		width: min(94vw, 860px);
		max-height: 92vh;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-dichtungstyp-grid,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-dichtungstyp-grid {
		grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
		gap: 12px;
	}

	/* Inhaltsspalte bei mittleren Breiten weniger "verschoben" wirken lassen */
	.modul-neue_messung_gfa_ajax #ajax_gfa_form .resp-table-row > .table-body-cell:last-child,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .resp-table-row > .table-body-cell:last-child {
		width: 100%;
		max-width: 760px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form textarea,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form textarea {
		width: 100%;
		max-width: 760px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form select[multiple],
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form select[multiple] {
		width: 100%;
		max-width: 760px;
	}
}

/* Handy: einspaltig, grosse Touch-Flaechen */
@media (max-width: 768px) {
	.modul-neue_messung_gfa_ajax #ajax_gfa_form .resp-table-row,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .resp-table-row {
		display: block;
		margin: 0 0 12px;
		padding: 10px;
		background: #fff;
		border: 1px solid #e2e8f0;
		border-radius: 10px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .resp-table-row > .table-body-cell,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .resp-table-row > .table-body-cell {
		display: block;
		width: 100%;
		padding: 4px 2px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .resp-table-row > .table-body-cell-colspan-3,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .resp-table-row > .table-body-cell-colspan-3 {
		display: block;
		width: 100%;
		padding: 4px 2px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .resp-table-row > .table-body-cell:first-child,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .resp-table-row > .table-body-cell:first-child {
		font-weight: 700;
		margin-bottom: 4px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-messpunkt-hinweis-row,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-messpunkt-hinweis-row {
		display: flex;
		align-items: flex-start;
		gap: 8px;
		padding: 10px;
	}

	/* Etappe A: echtes table/tr/td fuer Hinweis/Fenstermaterial beibehalten */
	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-head-table .gfa-messpunkt-hinweis-row,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-head-table .gfa-messpunkt-hinweis-row {
		display: table-row;
		padding: 0;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-messpunkt-hinweis-row .gfa-messpunkt-hinweis-icon-cell,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-messpunkt-hinweis-row .gfa-messpunkt-hinweis-icon-cell {
		width: 34px;
		min-width: 34px;
		padding: 0;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-head-table .gfa-messpunkt-hinweis-icon-cell,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-head-table .gfa-messpunkt-hinweis-icon-cell {
		display: table-cell;
		width: 38px;
		min-width: 38px;
		padding: 8px 6px;
		vertical-align: top;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-messpunkt-hinweis-row .gfa-messpunkt-hinweis-text-cell,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-messpunkt-hinweis-row .gfa-messpunkt-hinweis-text-cell {
		padding: 0;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-head-table .gfa-messpunkt-hinweis-text-cell,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-head-table .gfa-messpunkt-hinweis-text-cell {
		display: table-cell;
		padding: 8px 8px 8px 0;
		vertical-align: top;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .material-auswahl-container,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .material-auswahl-container {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
		margin: 8px 0 0;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .material-option,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .material-option {
		min-width: 0;
		max-width: none;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .material-option-label,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .material-option-label {
		padding: 10px 6px;
		min-height: 126px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .material-icon-img,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .material-icon-img {
		width: 60px;
		height: 60px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .material-name,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .material-name {
		font-size: 13px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-photo-actions .button,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-photo-actions .button {
		width: 100%;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .sa-save-btn,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .sa-save-btn {
		width: 100%;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-dichtungstyp-popup-header,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-dichtungstyp-popup-header {
		padding: 12px 14px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-dichtungstyp-popup-header h3,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-dichtungstyp-popup-header h3 {
		font-size: 16px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-dichtungstyp-popup-content,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-dichtungstyp-popup-content {
		padding: 12px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-dichtungstyp-grid,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-dichtungstyp-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 10px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-dichtungstyp-item,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-dichtungstyp-item {
		padding: 8px;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-dichtungstyp-item img,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-dichtungstyp-item img {
		max-height: 100px;
	}
}

/* Sehr kleine Handys */
@media (max-width: 420px) {
	.modul-neue_messung_gfa_ajax #ajax_gfa_form .material-auswahl-container,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .material-auswahl-container {
		grid-template-columns: 1fr;
	}

	.modul-neue_messung_gfa_ajax #ajax_gfa_form .gfa-dichtungstyp-grid,
	.modul-gfa_messung_bearbeiten_ajax #ajax_gfa_form .gfa-dichtungstyp-grid {
		grid-template-columns: 1fr;
	}
}

/* Responsive Fotos */
@media (max-width: 480px) {
	.sa-foto-section {
		grid-template-columns: 1fr;
	}
	.sa-zusatzfoto-grid {
		grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	}
}

/* Vollversion bestellen – Fehlermeldung bei fehlgeschlagener Übermittlung */
.bestellung-fehler-box {
	color: #721c24;
	background: #f8d7da;
	border: 1px solid #f5c6cb;
	padding: 12px;
	border-radius: 4px;
}

/* ========== Vollversion bestellen – Modul-Layout (state of the art) ========== */
.modul-vollversion_bestellen .vb-page {
	width: 100%;
	max-width: min(1120px, calc(100vw - 32px));
	margin: 0 auto;
	padding: 0 16px 32px;
	box-sizing: border-box;
}

.modul-vollversion_bestellen .vb-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1a1a1a;
	margin: 0 0 0.5rem;
	letter-spacing: -0.02em;
}

.modul-vollversion_bestellen .vb-lead {
	color: #555;
	font-size: 0.95rem;
	line-height: 1.5;
	margin: 0 0 1.5rem;
}

.modul-vollversion_bestellen .vb-lead a {
	color: #2c5aa0;
	text-decoration: none;
	font-weight: 500;
}

.modul-vollversion_bestellen .vb-lead a:hover {
	text-decoration: underline;
}

.modul-vollversion_bestellen .vb-card {
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	border: 1px solid #e8e8e8;
	padding: 1.25rem 1.5rem;
	margin-bottom: 1.25rem;
}

.modul-vollversion_bestellen .vb-card-heading {
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #2c5aa0;
	margin: 0 0 0.75rem;
}

.modul-vollversion_bestellen .vb-address {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #333;
	margin: 0;
}

.modul-vollversion_bestellen .vb-form-table {
	width: 100%;
	border-collapse: collapse;
}

.modul-vollversion_bestellen .vb-form-table tr {
	border-bottom: 1px solid #eee;
}

.modul-vollversion_bestellen .vb-form-table tr:last-child {
	border-bottom: none;
}

.modul-vollversion_bestellen .vb-form-table td {
	padding: 0.85rem 0;
	vertical-align: top;
}

.modul-vollversion_bestellen .vb-form-table td:first-child {
	width: 160px;
	padding-right: 1rem;
}

.modul-vollversion_bestellen .vb-form-table label {
	display: block;
	font-weight: 500;
	color: #333;
	font-size: 0.9rem;
}

.modul-vollversion_bestellen .vb-form-table input[type="text"],
.modul-vollversion_bestellen .vb-form-table select,
.modul-vollversion_bestellen .vb-form-table textarea {
	width: 100%;
	max-width: min(720px, 100%);
	padding: 0.5rem 0.75rem;
	font-size: 0.95rem;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.modul-vollversion_bestellen .vb-form-table input[type="text"]:focus,
.modul-vollversion_bestellen .vb-form-table select:focus,
.modul-vollversion_bestellen .vb-form-table textarea:focus {
	outline: none;
	border-color: #2c5aa0;
	box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.15);
}

.modul-vollversion_bestellen .vb-form-table textarea {
	min-height: 80px;
	resize: vertical;
}

.modul-vollversion_bestellen .vb-form-table .vb-hint {
	font-size: 0.85rem;
	color: #666;
	line-height: 1.4;
	padding: 0.25rem 0 0;
}

.modul-vollversion_bestellen .vb-form-table .vb-hint + .vb-hint {
	margin-top: 0.35rem;
	padding-top: 0;
}

.modul-vollversion_bestellen .vb-form-table .vb-legal {
	padding: 1rem 0 0.5rem;
}

.modul-vollversion_bestellen .vb-form-table .vb-legal--compact {
	padding-top: 0.75rem;
}

.modul-vollversion_bestellen .vb-form-table .vb-legal-summary:not(.vb-legal-summary--callout) {
	margin: 0 0 0.35rem 0;
	font-size: 0.88rem;
	font-weight: 500;
	color: #444;
	line-height: 1.45;
}

.modul-vollversion_bestellen .vb-form-table .vb-legal-doclinks {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.4;
	color: #555;
}

.modul-vollversion_bestellen .vb-form-table .vb-legal-doclinks a {
	font-weight: 600;
}

.modul-vollversion_bestellen .vb-form-table .vb-legal a {
	color: #2c5aa0;
	text-decoration: none;
}

.modul-vollversion_bestellen .vb-form-table .vb-legal a:hover {
	text-decoration: underline;
}

.modul-vollversion_bestellen .vb-submit-wrap .button {
	padding: 0.65rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 8px;
	background: #2c5aa0;
	color: #fff;
	border: none;
	cursor: pointer;
	transition: background 0.2s, transform 0.05s;
}

.modul-vollversion_bestellen .vb-submit-wrap .button:hover {
	background: #234a8a;
}

.modul-vollversion_bestellen .vb-submit-wrap .button:active {
	transform: scale(0.98);
}

.modul-vollversion_bestellen .vb-success-card {
	background: linear-gradient(135deg, #f0f7ee 0%, #e8f4e5 100%);
	border: 1px solid #c8e6c9;
	border-radius: 12px;
	padding: 1.5rem 1.75rem;
	margin-bottom: 1.5rem;
}

.modul-vollversion_bestellen .vb-success-card .vb-success-title {
	font-size: 1.1rem;
	font-weight: 600;
	color: #1b5e20;
	margin: 0 0 0.5rem;
}

.modul-vollversion_bestellen .vb-success-card p {
	margin: 0 0 0.75rem;
	color: #333;
	line-height: 1.5;
}

.modul-vollversion_bestellen .vb-success-card p:last-of-type {
	margin-bottom: 0;
}

.modul-vollversion_bestellen .vb-success-card a {
	color: #2c5aa0;
	text-decoration: none;
	font-weight: 500;
}

.modul-vollversion_bestellen .vb-success-card a:hover {
	text-decoration: underline;
}

.modul-vollversion_bestellen .vb-success-card .button {
	margin-top: 1rem;
	padding: 0.6rem 1.25rem;
	font-size: 0.95rem;
	border-radius: 8px;
	background: #2c5aa0;
	color: #fff;
	border: none;
	cursor: pointer;
}

.modul-vollversion_bestellen .vb-success-card .button:hover {
	background: #234a8a;
}

.modul-vollversion_bestellen .vb-submit-wrap {
	padding-top: 1.25rem;
}

.modul-vollversion_bestellen .vb-zahlungsrhythmus-row--hidden {
	display: none;
}

/* Messgerät-Grid direkt in der Tabellenzelle — kein Scroll-Wrapper (sonst Abschneiden durch overflow-y) */
.modul-vollversion_bestellen .vb-messgeraet-cell {
	min-width: 0;
	overflow: visible;
}

.modul-vollversion_bestellen .vb-device-card-caption {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	text-align: center;
}
.modul-vollversion_bestellen .vb-device-card-name {
	font-size: 13px;
	line-height: 1.35;
	font-weight: 500;
}
.modul-vollversion_bestellen .vb-device-card-price {
	font-size: 14px;
	font-weight: 700;
	color: #2c5aa0;
	line-height: 1.2;
}

/* Breite Viewports: Messgerät-Karten (5 Geräte); schmal 2 Spalten (globales .vb-device-grid) */
@media (min-width: 900px) and (max-width: 1099px) {
	.modul-vollversion_bestellen .vb-device-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 12px;
	}
}
@media (min-width: 1100px) {
	.modul-vollversion_bestellen .vb-device-grid {
		grid-template-columns: repeat(5, minmax(0, 1fr));
		gap: 12px;
	}
}

@media (max-width: 520px) {
	.modul-vollversion_bestellen .vb-form-table td:first-child {
		width: 100%;
		padding-right: 0;
		padding-bottom: 0.25rem;
	}
	.modul-vollversion_bestellen .vb-form-table input[type="text"],
	.modul-vollversion_bestellen .vb-form-table select,
	.modul-vollversion_bestellen .vb-form-table textarea {
		max-width: none;
	}
}

/* GUTMANN Cora Renovierungsprofile */
.modul-neue_messung_alurenovierungsprofile .gutmann-cora-title {
	margin: 0 0 1rem 0;
	font-size: 1.4rem;
	color: #2c3a4d;
	font-weight: 600;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-cora-card-wrapper {
	margin-bottom: 1rem;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-cora-table {
	background: transparent;
	border-spacing: 0;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-cora-field-row .table-body-cell:first-child {
	font-weight: 500;
	color: #334155;
	min-width: 200px;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-cora-field-row .table-body-cell label {
	margin-right: 1rem;
	cursor: pointer;
}

/* Touch-optimierte Option-Boxen (Pill-Style) */
.modul-neue_messung_alurenovierungsprofile .gutmann-option-group {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-option-pill {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	min-width: 72px;
	padding: 0 1rem;
	border: 2px solid #cbd5e1;
	border-radius: 22px;
	background: #fff;
	cursor: pointer;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-option-pill span {
	pointer-events: none;
	font-size: 1rem;
	font-weight: 500;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-option-pill input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-option-pill:has(input:checked) {
	border-color: #2c5aa0;
	background: #2c5aa0;
	color: #fff;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-option-pill:active {
	transform: scale(0.98);
}

.modul-neue_messung_alurenovierungsprofile .gutmann-option-pill-wide {
	min-width: 140px;
}

/* Touch-optimierte Inputs und Selects */
.modul-neue_messung_alurenovierungsprofile .gutmann-input-touch,
.modul-neue_messung_alurenovierungsprofile .gutmann-select-touch {
	min-height: 44px;
	padding: 0.5rem 0.75rem;
	font-size: 1rem;
	-webkit-appearance: none;
	appearance: none;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-select-touch {
	min-width: 180px;
	border-radius: 8px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23475569' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.75rem center;
	padding-right: 2rem;
}

/* Mehr Abstand zwischen Zeilen für Touch */
.modul-neue_messung_alurenovierungsprofile .gutmann-cora-field-row {
	padding: 0.5rem 0;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-cora-field-row .table-body-cell {
	padding: 0.5rem 0.75rem;
	vertical-align: middle;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-hinweis {
	display: block;
	font-size: 0.9rem;
	color: #64748b;
	margin-bottom: 0.5rem;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-search-row {
	margin-bottom: 0.75rem;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-cora-submit-row {
	margin-top: 1.25rem;
	padding-top: 1rem;
	border-top: 1px solid #e2e8f0;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-cora-submit-row .button {
	margin-right: 0.5rem;
	min-height: 44px;
	padding: 0.6rem 1.25rem;
	font-size: 1rem;
	touch-action: manipulation;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-search-row .button,
.modul-neue_messung_alurenovierungsprofile .gutmann-search-row .sa-search-input {
	min-height: 44px;
	font-size: 1rem;
	touch-action: manipulation;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-back-form {
	display: none;
}

/* Touch: Inputs/Selects in Position & Ort Card */
.modul-neue_messung_alurenovierungsprofile .sa-card-body input[type="text"],
.modul-neue_messung_alurenovierungsprofile .sa-card-body input[type="number"],
.modul-neue_messung_alurenovierungsprofile .sa-card-body select {
	min-height: 44px;
	font-size: 1rem;
	padding: 0.5rem 0.75rem;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-cora-submit-row .button-secondary {
	background: #e2e8f0;
	color: #475569;
	border: 1px solid #cbd5e1;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-cora-submit-row .button-secondary:hover {
	background: #cbd5e1;
	color: #334155;
}

/* Fenstertyp mit Blendrahmen-Auswahl drumherum (table layout) */
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-rahmen {
	border-collapse: collapse;
	margin: 0 auto;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-rahmen td {
	vertical-align: middle;
	padding: 0.5rem;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-ecke {
	width: 1%;
	min-width: 60px;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-mitte {
	text-align: center;
	padding: 1rem;
	background: #f8fafc;
	border-radius: 8px;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-fenstertyp-preview {
	text-align: center;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-fenstertyp-preview-img {
	max-width: 200px;
	max-height: 200px;
	object-fit: contain;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-fenstertyp-preview-placeholder {
	width: 200px;
	height: 140px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f5f9;
	border: 1px dashed #cbd5e1;
	border-radius: 8px;
	color: #64748b;
	font-size: 0.9rem;
	margin: 0 auto;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-fenstertyp-bezeichnung {
	margin-top: 0.5rem;
	font-weight: 500;
	color: #334155;
	font-size: 0.95rem;
}

/* Oben / Unten: horizontal */
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-oben,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-unten {
	text-align: center;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-oben .gutmann-blendrahmen-label,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-unten .gutmann-blendrahmen-label,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-oben .gutmann-select-touch,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-unten .gutmann-select-touch,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-oben .gutmann-blendrahmen-preview,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-unten .gutmann-blendrahmen-preview,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-oben .gutmann-mess-btn-seite,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-unten .gutmann-mess-btn-seite {
	display: inline-block;
	vertical-align: middle;
	margin: 0 0.25rem;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-oben .gutmann-select-touch,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-unten .gutmann-select-touch {
	min-width: 220px;
}

/* Links / Rechts: vertikal */
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-links,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-rechts {
	width: 1%;
	min-width: 140px;
	text-align: center;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-links .gutmann-blendrahmen-label,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-rechts .gutmann-blendrahmen-label,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-links .gutmann-select-touch,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-rechts .gutmann-select-touch,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-links .gutmann-blendrahmen-preview,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-rechts .gutmann-blendrahmen-preview,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-links .gutmann-mess-btn-seite,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-rechts .gutmann-mess-btn-seite {
	display: block;
	margin: 0.25rem auto;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-links .gutmann-select-touch,
.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-rechts .gutmann-select-touch {
	width: 100%;
	min-width: 120px;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-label {
	font-weight: 500;
	color: #334155;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-preview {
	max-width: 80px;
	max-height: 60px;
	object-fit: contain;
	border: 1px solid #e2e8f0;
	border-radius: 4px;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-preview.gutmann-img-zoomable {
	cursor: pointer;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-mess-btn-seite {
	margin: 0.25rem 0;
	min-height: 36px;
	padding: 0.35rem 0.75rem;
	font-size: 0.9rem;
}

.modul-neue_messung_alurenovierungsprofile .gutmann-blendrahmen-hinweis {
	font-size: 0.85rem;
	color: #64748b;
	margin: 0 0 1rem 0;
}

/* GUTMANN Modals */
.gutmann-modal {
	display: none;
	position: fixed;
	z-index: 99999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	align-items: center;
	justify-content: center;
}

.gutmann-modal.gutmann-modal-visible {
	display: flex;
}

.gutmann-modal-overlay {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.6);
	cursor: pointer;
}

.gutmann-modal-content {
	position: relative;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 8px 32px rgba(0,0,0,0.3);
	max-width: 95vw;
	max-height: 95vh;
	overflow: auto;
	z-index: 1;
}

.gutmann-modal-content.gutmann-modal-zoom {
	padding: 0;
}

.gutmann-modal-zoom img {
	max-width: 700px;
	max-height: 700px;
	display: block;
	border-radius: 8px;
}

.gutmann-modal-close {
	position: absolute;
	top: 8px;
	right: 12px;
	font-size: 2em;
	color: #fff;
	background: rgba(0,0,0,0.5);
	border: none;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	z-index: 2;
}

.gutmann-modal-close:hover {
	background: rgba(0,0,0,0.7);
}

/* Mess-Modal Layout */
.gutmann-modal-mess .gutmann-modal-content {
	padding: 1.5rem;
	min-width: 320px;
	max-width: 700px;
}

.gutmann-mess-title {
	margin: 0 0 1rem 0;
	font-size: 1.2rem;
}

.gutmann-mess-layout {
	display: flex;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.gutmann-mess-bild {
	flex: 0 0 auto;
}

.gutmann-mess-bild img {
	max-width: 700px;
	max-height: 700px;
	object-fit: contain;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
}

.gutmann-mess-felder {
	flex: 1;
	min-width: 200px;
}

.gutmann-mess-feld-row {
	margin-bottom: 0.75rem;
}

.gutmann-mess-feld-row label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.25rem;
}

.gutmann-mess-feld-row input {
	width: 100%;
	min-height: 44px;
	padding: 0.5rem 0.75rem;
}

.gutmann-mess-keine {
	color: #64748b;
	font-style: italic;
}

.gutmann-mess-schliessen {
	margin-top: 1rem;
}

/* Breite/Höhe Tabelle */
.modul-neue_messung_alurenovierungsprofile .gutmann-breite-hoehe-table {
	width: 100%;
	max-width: 400px;
}

/* GUTMANN Cora: Speicher-Bestätigung */
.modul-neue_messung_alurenovierungsprofile .gutmann-cora-save-msg,
.modul-neue_messung_alurenovierungsprofile_save .gutmann-cora-save-msg {
	padding: 1rem 1.25rem;
	border-radius: 8px;
	margin: 0.5rem 0;
}
.modul-neue_messung_alurenovierungsprofile .gutmann-cora-save-msg-ok,
.modul-neue_messung_alurenovierungsprofile_save .gutmann-cora-save-msg-ok {
	background: #ecfdf5;
	border: 1px solid #10b981;
}
.modul-neue_messung_alurenovierungsprofile .gutmann-cora-save-msg-error,
.modul-neue_messung_alurenovierungsprofile_save .gutmann-cora-save-msg-error {
	background: #fef2f2;
	border: 1px solid #ef4444;
}
.modul-neue_messung_alurenovierungsprofile .gutmann-cora-save-actions-table,
.modul-neue_messung_alurenovierungsprofile_save .gutmann-cora-save-actions-table {
	width: 100%;
	max-width: 520px;
	margin-top: 0.75rem;
}
.modul-neue_messung_alurenovierungsprofile .gutmann-cora-save-actions-table td,
.modul-neue_messung_alurenovierungsprofile_save .gutmann-cora-save-actions-table td {
	padding: 0.35rem 0.5rem 0.35rem 0;
	vertical-align: middle;
}

/* GUTMANN Cora: Anzeige in Messung bearbeiten */
.gutmann-cora-mb-card {
	margin: 0.75rem 0 1rem 0;
	max-width: 720px;
}
.gutmann-cora-mb-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.95rem;
}
.gutmann-cora-mb-table th,
.gutmann-cora-mb-table td {
	border: 1px solid #e2e8f0;
	padding: 0.35rem 0.5rem;
	text-align: left;
	vertical-align: top;
}
.gutmann-cora-mb-table th {
	background: #f8fafc;
}
.gutmann-cora-mb-indent {
	padding-left: 1.25rem !important;
}

/* GUTMANN-Logo im Messungstypen-Button: Seitenverhältnis erhalten, keine Verzerrung */
.button-grid form button img.gutmann-logo-img {
	width: auto;
	height: 64px;
	max-width: 120px;
	object-fit: contain;
	object-position: center;
}

/* Regiebericht PDF Download Button */
.regiebericht-pdf-download-btn {
	padding: 10px 20px;
	background: #28a745;
	color: white;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 16px;
	font-weight: bold;
}
.regiebericht-pdf-download-btn:hover {
	background: #218838;
}

/* Duschkabinen (Sanitärpaket) */
.duschkabine-varianten-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	gap: 8px;
	margin-bottom: 15px;
}
.duschkabine-variante-label {
	cursor: pointer;
	border: 2px solid #ddd;
	border-radius: 6px;
	padding: 8px 6px;
	text-align: center;
	transition: border-color 0.2s, box-shadow 0.2s;
	background: #fff;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
	min-height: 44px;
}
.duschkabine-variante-label:hover {
	border-color: #999;
}
.duschkabine-variante-label:active {
	border-color: #007bff;
	background: #f0f7ff;
}
.duschkabine-variante-label.active {
	border-color: #007bff;
	box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
	background: #f0f7ff;
}
.duschkabine-variante-label img {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto 4px;
	pointer-events: none;
}
.duschkabine-variante-label span {
	font-size: 11px;
	display: block;
	line-height: 1.2;
	pointer-events: none;
}
.duschkabine-zeichnung {
	text-align: left;
	margin: 10px 0 15px;
}
.duschkabine-zeichnung img {
	max-height: 420px;
	max-width: 100%;
	width: auto;
	height: auto;
	border-radius: 4px;
	display: block;
}
.duschkabine-svg-viewport {
	position: relative;
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	border-radius: 4px;
	-webkit-tap-highlight-color: transparent;
	touch-action: none;
}
.duschkabine-svg-inner:not(.duschkabine-svg-inner--empty) {
	cursor: grab;
	-webkit-tap-highlight-color: transparent;
	touch-action: none;
	display: block;
	width: 100%;
	max-width: 100%;
}
.duschkabine-svg-inner:not(.duschkabine-svg-inner--empty):active {
	cursor: grabbing;
}
.duschkabine-svg-inner svg {
	width: 100%;
	max-width: 100%;
	max-height: 80vh;
	height: auto;
	display: block;
	border-radius: 4px;
	vertical-align: top;
}
.duschkabine-svg-inner foreignObject {
	pointer-events: all;
}
.duschkabine-svg-inner--empty {
	min-height: 0;
}
.duschkabine-mass-overlay-wrap {
	position: relative;
	display: block;
	max-width: 100%;
	width: 100%;
	vertical-align: top;
	box-sizing: border-box;
}
.duschkabine-mass-overlay-wrap--empty {
	min-height: 80px;
}
.duschkabine-overlay-hinweis {
	font-size: 12px;
	color: #666;
	margin: 8px 0 0;
	line-height: 1.35;
}
#duschkabine-zeichnung-hinweis {
	color: #999;
}

.duschkabine-svg-zoom-controls {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 2;
	display: flex;
	flex-direction: column;
	gap: 6px;
	pointer-events: none;
}
.duschkabine-svg-zoom-controls .duschkabine-svg-zbtn {
	pointer-events: auto;
}
.duschkabine-svg-zbtn {
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.94);
	color: #2c5aa0;
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}
.duschkabine-svg-zbtn:hover,
.duschkabine-svg-zbtn:active {
	background: #fff;
}
.duschkabine-svg-zbtn--reset {
	font-size: 11px;
	font-weight: 700;
}
.duschkabine-svg-inner input[type="number"] {
	touch-action: manipulation;
}
.duschkabine-svg-inner input[type="number"]:focus {
	outline: 2px solid #2c5aa0;
	outline-offset: 1px;
	background: #fffbe6;
}

/* Duschkabinen Touch/Mobile */
@media (max-width: 768px) {
	.duschkabine-varianten-grid {
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
		gap: 6px;
	}
	.duschkabine-variante-label {
		padding: 6px 4px;
	}
	.duschkabine-variante-label span {
		font-size: 10px;
	}
	.duschkabine-mass-overlay-wrap {
		width: 100%;
		display: block;
	}
	.duschkabine-svg-inner svg {
		width: 100%;
		max-width: 100%;
		max-height: 80vh;
		height: auto;
	}
}
@media (max-width: 480px) {
	.duschkabine-varianten-grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 5px;
	}
	.duschkabine-variante-label {
		padding: 5px 3px;
	}
	.duschkabine-variante-label span {
		font-size: 10px;
	}
}

/* Duschkabinen: Touch-Geräte – Zeichnung über volle verfügbare Breite */
@media (hover: none) and (pointer: coarse) {
	.duschkabine-mass-overlay-wrap {
		width: 100%;
		display: block;
	}
	.duschkabine-svg-inner svg {
		width: 100%;
		max-width: 100%;
		max-height: 80vh;
		height: auto;
	}
}

/* Vollversion bestellen – Formular & grafische Messgerät-Auswahl */
/* Vollversion: gelbe Hinweis-Kachel für AGB-/Datenschutz-Bestätigung */
.modul-vollversion_bestellen .vb-form-table .vb-legal-summary.vb-legal-summary--callout {
	margin: 0 0 10px 0;
	padding: 12px 14px;
	font-size: 14px;
	line-height: 1.45;
	font-weight: 500;
	color: #5c4a00;
	background: #fff8e1;
	border: 1px solid #e6d08a;
	border-radius: 8px;
	box-sizing: border-box;
}
.vb-form-table {
	width: 100%;
	max-width: 100%;
	table-layout: fixed;
	border-collapse: collapse;
	box-sizing: border-box;
}
.vb-form-table td {
	vertical-align: top;
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.vb-messgeraet-label-cell {
	width: 32%;
	max-width: 200px;
	padding-right: 12px;
}
.vb-messgeraet-cell {
	max-width: 100%;
	min-width: 0;
	overflow: visible;
}
.vb-zahlungsrhythmus-row--hidden {
	display: none;
}
.vb-device-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}
.vb-device-card {
	display: block;
	margin: 0;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.vb-device-card input[type="radio"] {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
	margin: 0;
}
.vb-device-card-box {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	min-height: 100%;
	border: 2px solid #d0d7de;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.vb-device-card:hover .vb-device-card-box {
	border-color: #2c5aa0;
}
.vb-device-card:focus-within .vb-device-card-box {
	outline: 2px solid #2c5aa0;
	outline-offset: 2px;
}
.vb-device-card input[type="radio"]:checked + .vb-device-card-box {
	border-color: #2c5aa0;
	box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.2);
}
.vb-device-card-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 120px;
	padding: 10px 8px;
	background: #f6f8fa;
}
.vb-device-card-visual--img img {
	display: block;
	max-width: 100%;
	width: auto;
	height: auto;
	max-height: 112px;
	object-fit: contain;
}
.vb-device-card-visual--placeholder {
	min-height: 112px;
	background: repeating-linear-gradient(
		-45deg,
		#f0f3f6,
		#f0f3f6 8px,
		#e8ecf0 8px,
		#e8ecf0 16px
	);
	border-bottom: 1px solid #e5e7eb;
}
.vb-device-card-visual--none-x {
	background: #f6f8fa;
}
.vb-none-x-svg {
	display: block;
	flex-shrink: 0;
}
.vb-device-card-caption {
	display: block;
	padding: 10px 8px;
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
	border-top: 1px solid #e5e7eb;
	background: #fafbfc;
}
.vb-device-card-zuzahlung-hinweis {
	display: block;
	margin-top: 6px;
	font-size: 11px;
	line-height: 1.35;
	color: #555;
}
@media (max-width: 520px) {
	.vb-device-grid {
		gap: 8px;
	}
	.vb-messgeraet-label-cell {
		display: block;
		width: 100%;
		max-width: none;
		padding-right: 0;
		padding-bottom: 8px;
	}
	.vb-row-messgeraet td {
		display: block;
		width: 100%;
	}
}

/* =========================================================
   Kunden-Rückmeldungen Dashboard
   ========================================================= */
.rueckmeldung-alert {
	padding: 12px 16px;
	border-radius: 6px;
	margin-bottom: 15px;
	font-size: 14px;
}
.rueckmeldung-alert-success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
.rueckmeldung-alert-error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}
.rueckmeldung-info-box {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 15px 20px;
	margin-bottom: 15px;
}
.rueckmeldung-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.rueckmeldung-table th {
	background: #f0f0f0;
	padding: 10px 12px;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
}
.rueckmeldung-table td {
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	font-size: 13px;
}
.rueckmeldung-table tbody tr:hover {
	background: #f5faf7;
}
.rueckmeldung-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: capitalize;
}
.rueckmeldung-badge-neu,
.rueckmeldung-badge-offen {
	background: #d4edda;
	color: #155724;
}
.rueckmeldung-badge-eingereicht {
	background: #cce5ff;
	color: #004085;
}
.rueckmeldung-badge-in_bearbeitung {
	background: #fff3cd;
	color: #856404;
}
.rueckmeldung-badge-abgeschlossen {
	background: #e2e3e5;
	color: #383d41;
}
.rueckmeldung-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 15px;
	margin-top: 15px;
}
.rueckmeldung-card {
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.08);
	overflow: hidden;
}
.rueckmeldung-card-header {
	background: #f8f9fa;
	padding: 10px 15px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
}
.rueckmeldung-card-body {
	padding: 15px;
}
.rueckmeldung-foto-row {
	display: flex;
	gap: 8px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}
.rueckmeldung-foto-thumb {
	width: 100px;
	height: 100px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid #ddd;
	flex-shrink: 0;
}
.rueckmeldung-foto-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
}
.rueckmeldung-foto-thumb img:hover {
	opacity: 0.85;
}
.rueckmeldung-ki-ergebnis {
	background: #f0f8ff;
	border: 1px solid #b8daff;
	border-radius: 6px;
	padding: 10px 12px;
	margin-top: 10px;
	font-size: 12px;
}
.rueckmeldung-ki-ergebnis table {
	width: 100%;
	border-collapse: collapse;
}
.rueckmeldung-ki-ergebnis td {
	padding: 4px 6px;
	border-bottom: 1px solid #dee2e6;
}
.rueckmeldung-btn {
	display: inline-block;
	padding: 8px 16px;
	border: 1px solid #ccc;
	border-radius: 6px;
	background: #fff;
	color: #333;
	font-size: 13px;
	cursor: pointer;
	text-decoration: none;
}
.rueckmeldung-btn:hover {
	background: #f0f0f0;
}
.rueckmeldung-btn-primary {
	background: #04AA6D;
	color: #fff;
	border-color: #04AA6D;
}
.rueckmeldung-btn-primary:hover {
	background: #039b60;
}
.rueckmeldung-btn-secondary {
	background: #6c757d;
	color: #fff;
	border-color: #6c757d;
}
.rueckmeldung-btn-secondary:hover {
	background: #5a6268;
}
.rueckmeldung-btn-small {
	padding: 4px 10px;
	font-size: 12px;
}
@media (max-width: 600px) {
	.rueckmeldung-grid {
		grid-template-columns: 1fr;
	}
	.rueckmeldung-table th,
	.rueckmeldung-table td {
		padding: 6px 8px;
		font-size: 12px;
	}
}

/* Login: Sprach-Icons (PNG/SVG), Kreis + horizontale Scroll bei vielen Sprachen */
.login-language {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	margin-top: 1rem;
	padding: 6px 4px;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.login-lang-form {
	display: inline-block;
	margin: 0;
	padding: 0;
	vertical-align: middle;
}
.login-lang-flag {
	display: block;
	width: 35px;
	height: 35px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
	/* PNGs mit EXIF-Orientierung sonst teils um 90° gedreht (z. B. in Kreisdarstellung) */
	image-orientation: none;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.12);
	cursor: pointer;
	vertical-align: middle;
	background: #fff;
}
.login-lang-flag:hover {
	border-color: rgba(0, 0, 0, 0.28);
}

.settings-language-flags {
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.settings-language-flags table td {
	padding: 4px;
	vertical-align: middle;
}
/* Erste Flaggenzeile: bislang teils ohne .login-lang-flag – einheitlich rund + keine EXIF-Drehung */
.settings-language-flags input[type="image"] {
	display: block;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	object-fit: cover;
	object-position: center;
	image-orientation: none;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.12);
	cursor: pointer;
	vertical-align: middle;
	background: #fff;
}
.settings-language-flags .login-lang-flag {
	width: 45px;
	height: 45px;
}

/* Duschkabinen: Gefälle */
.dk-wasserablauf-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 6px;
}
.dk-wasserablauf-option input[type="checkbox"] {
	display: none;
}
.dk-wasserablauf-button {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 10px;
	border: 1px solid #ccc;
	border-radius: 20px;
	background: #fff;
	color: #222;
	cursor: pointer;
	font-size: 13px;
	line-height: 1.2;
}
.dk-wasserablauf-option input[type="checkbox"]:checked + .dk-wasserablauf-button {
	background: #e9f7ef;
	border-color: #04AA6D;
	color: #0f5132;
	font-weight: 600;
}
.dk-wasserablauf-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 14px;
	font-weight: bold;
}

/* =============================================================================
   FREIE MESSUNG EDITOR (.fm-editor-*)
   Canvas-basierter Zeichnungseditor für freie Messungen
   ============================================================================= */

/* Wrapper */
.fm-editor-wrapper {
	position: relative;
	width: 100%;
}

/* Hauptzeile: Canvas in voller Breite (Historie liegt jetzt im Modal) */
.fm-editor-main-row {
	display: block;
	width: 100%;
}

/* Zeichenbereich */
.fm-editor-drawing-area {
	width: 100%;
	height: min(70vh, 700px);
	min-height: 300px;
	border: 1px solid var(--border-color, #dee2e6);
	border-radius: 8px;
	overflow: hidden;
	background: var(--fm-canvas-bg, #ffffff);
	position: relative;
	box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}

/* History-Modal (Element-Liste als Overlay) */
.fm-editor-history-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.fm-editor-history-modal-overlay.fm-editor-history-modal-visible {
	display: flex;
}
.fm-editor-history-modal {
	background: var(--background-color, #ffffff);
	border-radius: 12px;
	width: 100%;
	max-width: 460px;
	max-height: 80vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	box-shadow: var(--shadow-lg, 0 10px 25px rgba(0,0,0,0.25));
}
.fm-editor-history-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 16px;
	background: var(--background-tertiary, #e9ecef);
	border-bottom: 1px solid var(--border-color, #dee2e6);
	font-weight: 600;
	font-size: 15px;
	color: var(--text-primary, #212529);
}
.fm-editor-history-modal-close {
	background: transparent;
	border: none;
	cursor: pointer;
	font-size: 24px;
	line-height: 1;
	color: inherit;
	padding: 4px 10px;
	border-radius: 6px;
	min-width: 36px;
	min-height: 36px;
}
.fm-editor-history-modal-close:hover {
	background: rgba(0,0,0,0.08);
}
.fm-editor-history-list {
	list-style: none;
	margin: 0;
	padding: 8px;
	overflow-y: auto;
	flex: 1 1 auto;
}
/* Zähler-Badge am Elemente-Button */
.fm-editor-history-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding: 0 6px;
	margin-left: 4px;
	background: var(--primary-color, #04AA6D);
	color: #ffffff;
	border-radius: 9px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}
.fm-editor-history-count.fm-editor-history-count-empty {
	display: none;
}
.fm-editor-history-empty {
	padding: 12px 8px;
	color: var(--text-secondary, #6c757d);
	font-size: 12px;
	text-align: center;
}
.fm-editor-history-item {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 8px;
	margin: 2px 0;
	border-radius: 4px;
	cursor: pointer;
	font-size: 12px;
	color: var(--text-primary, #212529);
	background: #fff;
	border: 1px solid transparent;
}
.fm-editor-history-item:hover {
	background: var(--background-tertiary, #e9ecef);
}
.fm-editor-history-item-selected {
	background: var(--primary-color-faded, rgba(0,123,255,0.15));
	border-color: var(--primary-color, #007bff);
}
.fm-editor-history-swatch {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 2px;
	border: 1px solid rgba(0,0,0,0.2);
	flex: 0 0 12px;
}
.fm-editor-history-label {
	flex: 1 1 auto;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.fm-editor-history-delete {
	background: transparent;
	border: none;
	color: var(--danger-color, #dc3545);
	cursor: pointer;
	font-size: 16px;
	line-height: 1;
	padding: 2px 6px;
	border-radius: 4px;
}
.fm-editor-history-delete:hover {
	background: rgba(220,53,69,0.12);
}
/* Auf schmalen Viewports: History-Modal Vollbild-ähnlich */
@media (max-width: 768px) {
	.fm-editor-history-modal {
		max-width: 100%;
		max-height: 90vh;
		border-radius: 8px;
	}
	.fm-editor-history-modal-head {
		padding: 10px 12px;
		font-size: 14px;
	}
}

/* Canvas (fuellt den Zeichenbereich, Groesse per JS gesetzt) */
.fm-editor-drawing-area canvas {
	display: block;
	width: 100%;
	height: 100%;
	touch-action: none;
	cursor: crosshair;
}

/* Loading Overlay */
.fm-editor-loading-overlay {
	display: none;
	position: absolute;
	inset: 0;
	background: rgba(255,255,255,0.85);
	z-index: 10;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	gap: 12px;
	font-size: 16px;
	color: var(--text-color, #212529);
}
.fm-editor-loading-visible {
	display: flex;
}
.fm-editor-loading-spinner {
	width: 36px;
	height: 36px;
	border: 3px solid var(--border-color, #dee2e6);
	border-top-color: var(--primary-color, #04AA6D);
	border-radius: 50%;
	animation: fm-spin 0.7s linear infinite;
}
@keyframes fm-spin {
	to { transform: rotate(360deg); }
}

/* ─── Toolbar ─────────────────────────────────────────────────── */
.fm-editor-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	justify-content: center;
	padding: 10px 12px;
	margin-top: 8px;
	background: var(--background-secondary, #f8f9fa);
	border: 1px solid var(--border-color, #dee2e6);
	border-radius: 12px;
	box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}

/* Tool-Gruppen */
.fm-editor-tool-group {
	display: flex;
	gap: 4px;
	align-items: center;
	padding: 0 4px;
	border-right: 1px solid var(--border-light, #e9ecef);
}
.fm-editor-tool-group:last-child {
	border-right: none;
}

/* Tool-Buttons */
.fm-editor-tool-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	min-width: 44px;
	min-height: 44px;
	padding: 8px 10px;
	border: 1px solid var(--border-color, #dee2e6);
	border-radius: 8px;
	background: var(--input-background, #ffffff);
	color: var(--text-color, #212529);
	cursor: pointer;
	font-size: 13px;
	line-height: 1;
	transition: background 0.15s ease, color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
	-webkit-tap-highlight-color: transparent;
	user-select: none;
}
.fm-editor-tool-btn:hover {
	background: var(--background-tertiary, #e9ecef);
	box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.05));
}
.fm-editor-tool-btn:active {
	transform: scale(0.95);
}
.fm-editor-tool-btn.fm-editor-tool-active {
	background: var(--primary-color, #04AA6D);
	color: #ffffff;
	border-color: var(--primary-color, #04AA6D);
	box-shadow: 0 2px 8px rgba(4,170,109,0.3);
}

/* SVG Icons */
.fm-editor-icon {
	width: 20px;
	height: 20px;
	flex-shrink: 0;
}
.fm-editor-icon-spin {
	animation: fm-spin 1s linear infinite;
}

/* Tool-Labels */
.fm-editor-tool-label {
	font-size: 12px;
	white-space: nowrap;
}

/* DXF-Button */
.fm-editor-btn-dxf {
	background: #2e7d32;
	color: #ffffff;
	border-color: #2e7d32;
}
.fm-editor-btn-dxf:hover {
	background: #1b5e20;
}

/* Farbe */
.fm-editor-color-label {
	display: inline-flex;
	align-items: center;
	cursor: pointer;
}
.fm-editor-color-input {
	width: 36px;
	height: 36px;
	border: 2px solid var(--border-color, #dee2e6);
	border-radius: 6px;
	padding: 2px;
	cursor: pointer;
	background: none;
}

/* Linienstärke */
.fm-editor-width-label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}
.fm-editor-width-slider {
	width: 80px;
	height: 6px;
	cursor: pointer;
	accent-color: var(--primary-color, #04AA6D);
}
.fm-editor-width-preview {
	display: inline-block;
	width: 4px;
	height: 4px;
	background: #000;
	border-radius: 50%;
	transition: width 0.15s, height 0.15s;
}

/* ─── Custom Modal ────────────────────────────────────────────── */
.fm-editor-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.45);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.fm-editor-modal-visible {
	display: flex;
}
.fm-editor-modal {
	background: var(--background-color, #ffffff);
	border-radius: 12px;
	padding: 24px;
	width: 100%;
	max-width: 400px;
	box-shadow: var(--shadow-lg, 0 10px 15px rgba(0,0,0,0.15));
}
.fm-editor-modal-message {
	margin: 0 0 12px 0;
	font-size: 15px;
	font-weight: 600;
	color: var(--text-color, #212529);
}
.fm-editor-modal-input {
	width: 100%;
	padding: 12px 14px;
	font-size: 16px;
	border: 2px solid var(--input-border, #ced4da);
	border-radius: 8px;
	background: var(--input-background, #ffffff);
	color: var(--input-text, #495057);
	outline: none;
	box-sizing: border-box;
	transition: border-color 0.15s;
}
.fm-editor-modal-input:focus {
	border-color: var(--primary-color, #04AA6D);
}
.fm-editor-modal-buttons {
	display: flex;
	gap: 8px;
	margin-top: 16px;
	justify-content: flex-end;
}
.fm-editor-modal-btn {
	padding: 10px 20px;
	border: none;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.15s, transform 0.1s;
	min-width: 44px;
	min-height: 44px;
}
.fm-editor-modal-btn:active {
	transform: scale(0.96);
}
.fm-editor-modal-btn-cancel {
	background: var(--background-tertiary, #e9ecef);
	color: var(--text-color, #212529);
}
.fm-editor-modal-btn-cancel:hover {
	background: var(--border-color, #dee2e6);
}
.fm-editor-modal-btn-ok {
	background: var(--primary-color, #04AA6D);
	color: #ffffff;
}
.fm-editor-modal-btn-ok:hover {
	background: var(--primary-hover, #038a5a);
}

/* ─── Responsive: Tablet ──────────────────────────────────────── */
@media (max-width: 1024px) {
	.fm-editor-drawing-area {
		height: min(60vh, 550px);
	}
	.fm-editor-tool-label {
		font-size: 11px;
	}
	.fm-editor-width-slider {
		width: 60px;
	}
}

/* ─── Responsive: Phone ───────────────────────────────────────── */
@media (max-width: 768px) {
	.fm-editor-drawing-area {
		height: min(55vh, 500px);
		min-height: 250px;
		border-radius: 4px;
	}
	.fm-editor-toolbar {
		gap: 4px;
		padding: 6px 8px;
		border-radius: 8px;
		margin-top: 4px;
		overflow-x: auto;
		flex-wrap: nowrap;
		justify-content: flex-start;
		-webkit-overflow-scrolling: touch;
	}
	.fm-editor-tool-group {
		flex-shrink: 0;
		padding: 0 2px;
	}
	.fm-editor-tool-label {
		display: none;
	}
	.fm-editor-tool-btn {
		min-width: 44px;
		min-height: 44px;
		padding: 8px;
		justify-content: center;
	}
	.fm-editor-width-slider {
		width: 50px;
	}
	.fm-editor-color-input {
		width: 32px;
		height: 32px;
	}
	.fm-editor-tool-group-settings {
		gap: 4px;
	}
	.fm-editor-modal {
		max-width: 100%;
		border-radius: 8px;
		padding: 16px;
	}
	.fm-editor-modal-input {
		font-size: 16px;
	}
}

/* ─── Responsive: Kleine Phones ───────────────────────────────── */
@media (max-width: 480px) {
	.fm-editor-drawing-area {
		height: min(50vh, 450px);
		min-height: 220px;
	}
	.fm-editor-tool-btn {
		min-width: 40px;
		min-height: 40px;
		padding: 6px;
	}
	.fm-editor-icon {
		width: 18px;
		height: 18px;
	}
}

/* ═══════════════════════════════════════════════════════════════
   Messungs-Dateien / Anhänge
   ═══════════════════════════════════════════════════════════════ */

.messung-datei-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 8px;
	padding: 8px 12px;
	margin: 6px 0;
	border: 1px solid #ddd;
	border-radius: 5px;
	background: #f9f9f9;
}

.messung-datei-info {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1;
	min-width: 0;
}

.messung-datei-icon {
	display: inline-block;
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}

.messung-datei-icon::before {
	display: inline-block;
	font-size: 18px;
	line-height: 24px;
	text-align: center;
	width: 24px;
}

.datei-icon-pdf::before { content: "\1F4C4"; }
.datei-icon-doc::before { content: "\1F4DD"; }
.datei-icon-xls::before { content: "\1F4CA"; }
.datei-icon-cad::before { content: "\1F4D0"; }
.datei-icon-bild::before { content: "\1F5BC"; }
.datei-icon-archiv::before { content: "\1F4E6"; }
.datei-icon-sonstig::before { content: "\1F4CE"; }

.messung-datei-name {
	font-weight: 500;
	word-break: break-all;
	min-width: 0;
}

.messung-datei-details {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1;
	min-width: 0;
}

.messung-datei-bezeichnung-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.messung-datei-bezeichnung-input {
	border: 1px solid #ccc;
	border-radius: 3px;
	padding: 3px 8px;
	font-size: 0.9em;
	width: 250px;
	max-width: 100%;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.messung-datei-bezeichnung-input:focus {
	border-color: #007bff;
	outline: none;
	box-shadow: 0 0 3px rgba(0, 123, 255, 0.3);
}

.messung-datei-bez-saved {
	border-color: #28a745 !important;
	box-shadow: 0 0 4px rgba(40, 167, 69, 0.4) !important;
}

.messung-datei-original {
	font-size: 0.8em;
	color: #999;
	word-break: break-all;
}

.messung-datei-groesse {
	color: #888;
	font-size: 0.9em;
	white-space: nowrap;
}

.messung-datei-actions {
	display: flex;
	gap: 6px;
	flex-shrink: 0;
}

.messung-datei-download-btn {
	background: #007bff !important;
	color: #fff !important;
	text-decoration: none;
	font-size: 0.85em;
}

.messung-datei-delete-btn {
	background: #ff4444 !important;
	color: #fff !important;
	border: none;
	font-size: 0.85em;
}

.messung-datei-upload-item {
	margin: 8px 0;
	padding: 8px 12px;
	border: 1px dashed #aaa;
	border-radius: 5px;
	background: #fafafa;
}

.messung-datei-upload-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

/* DXF-Vorschau (Upload + gespeicherte Anhänge) */
.messung-dxf-preview-wrap {
	margin-top: 8px;
	width: 100%;
	flex-basis: 100%;
}

.messung-dxf-preview-wrap.messung-dxf-preview--loading {
	font-size: 0.85em;
	color: #666;
	padding: 6px 0;
}

.messung-dxf-preview-wrap.messung-dxf-preview--skip,
.messung-dxf-preview-wrap.messung-dxf-preview--error {
	font-size: 0.85em;
	color: #a94442;
	padding: 4px 0;
}

.messung-dxf-preview__img {
	display: block;
	max-width: 100%;
	height: auto;
	max-height: 200px;
	border: 1px solid #ccc;
	border-radius: 4px;
	cursor: zoom-in;
	background: #fff;
}

.messung-dxf-preview-wrap.messung-dxf-preview--saved {
	margin-top: 6px;
	max-width: 220px;
}

.messung-dxf-preview-wrap.messung-dxf-preview--saved .messung-dxf-preview__img {
	max-height: 140px;
}

.messung-datei-file-input {
	flex: 0 0 auto;
	max-width: 250px;
}

.messung-datei-selected-name {
	color: #555;
	font-size: 0.9em;
	flex: 1;
	min-width: 0;
	word-break: break-all;
}

/* Dateien-Sektion im AJAX-Footer */
.sa-dateien-section {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid #e0e0e0;
}

@media (max-width: 600px) {
	.messung-datei-item {
		flex-direction: column;
		align-items: flex-start;
	}
	.messung-datei-actions {
		width: 100%;
	}
	.messung-datei-upload-row {
		flex-direction: column;
		align-items: flex-start;
	}
	.messung-datei-file-input {
		max-width: 100%;
		width: 100%;
	}
}

/* KI Fenstertyp-Vorschlaege (neue_messung_1) */
.fenstertyp-ki-actions {
	display: flex;
	justify-content: center;
	margin: 0 0 14px 0;
}

.fenstertyp-ki-trigger {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.fenstertyp-ki-trigger-icon {
	height: 24px;
	width: auto;
}

.fenstertyp-ki-modal {
	display: none;
	position: fixed;
	z-index: 10040;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
}

.fenstertyp-ki-modal.is-visible {
	display: block;
}

.fenstertyp-ki-modal-content {
	background: #fff;
	border-radius: 10px;
	max-width: 760px;
	width: calc(100% - 28px);
	max-height: 88vh;
	overflow: auto;
	margin: 4vh auto;
	padding: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
}

.fenstertyp-ki-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 8px;
}

.fenstertyp-ki-modal-header h3 {
	margin: 0;
	font-size: 1.05rem;
}

.fenstertyp-ki-close {
	border: none;
	background: transparent;
	font-size: 26px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.fenstertyp-ki-modal-body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fenstertyp-ki-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 20px 10px;
	gap: 10px;
	color: #234a8e;
}

.fenstertyp-ki-spinner {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 4px solid #d7e2f8;
	border-top-color: #2c5aa0;
	animation: fenstertypKiSpin 0.95s linear infinite;
}

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

.fenstertyp-ki-photo-preview img {
	width: 100%;
	max-height: 210px;
	object-fit: contain;
	background: #fafafa;
	border: 1px solid #ddd;
	border-radius: 8px;
}

.fenstertyp-ki-meta {
	font-size: 0.9rem;
	color: #4a5d7a;
}

.fenstertyp-ki-suggestions {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}

.fenstertyp-ki-suggestion-item {
	border: 1px solid #d4deef;
	background: #f9fbff;
	border-radius: 8px;
	padding: 10px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fenstertyp-ki-suggestion-head {
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 8px;
	align-items: center;
}

.fenstertyp-ki-rank {
	font-weight: 700;
	color: #2c5aa0;
}

.fenstertyp-ki-label {
	font-weight: 700;
}

.fenstertyp-ki-confidence {
	font-size: 0.85rem;
	color: #1f6b2b;
	font-weight: 700;
}

.fenstertyp-ki-reference img {
	max-height: 120px;
	max-width: 100%;
	border: 1px solid #ddd;
	border-radius: 6px;
	background: #fff;
}

.fenstertyp-ki-reason {
	font-size: 0.9rem;
	color: #43516b;
}

.fenstertyp-ki-use-btn {
	align-self: flex-start;
}

.fenstertyp-ki-error {
	padding: 10px;
	border: 1px solid #f2b9bd;
	background: #fff3f4;
	color: #8c2631;
	border-radius: 6px;
}

/* Meterriss bis Boden Popup */
#meterriss-bis-boden-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.4);
	z-index: 9998;
}

#meterriss-bis-boden-popup {
	display: none;
	position: fixed;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
	z-index: 9999;
	min-width: 320px;
	max-width: 400px;
	padding: 20px;
}

#meterriss-bis-boden-close {
	position: absolute;
	top: 8px;
	right: 12px;
	background: none;
	border: none;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

#meterriss-bis-boden-popup h4 {
	margin: 0 24px 16px 0;
	font-size: 1.1em;
}

.meterriss-bis-boden-description {
	margin: 0 0 12px 0;
	font-size: 0.9em;
	color: #555;
}

.meterriss-bis-boden-input-wrap {
	margin-bottom: 12px;
}

.meterriss-bis-boden-label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.9em;
}

#meterriss-bis-boden-input {
	width: 100%;
	padding: 8px;
	box-sizing: border-box;
}

#meterriss-bis-boden-result {
	margin-bottom: 16px;
	padding: 10px;
	background: #f5f5f5;
	border-radius: 4px;
	font-size: 0.95em;
	display: none;
}

#meterriss-bis-boden-apply {
	width: 100%;
	padding: 10px;
	background: #2c5aa0;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.95em;
}

/* Innentueren */
.tueren-section {
	background: #f8f9fa;
	padding: 15px;
	margin: 15px 0;
	border-left: 4px solid #007bff;
	border-radius: 4px;
}

.tueren-section h3 {
	margin-top: 0;
	color: #007bff;
	font-size: 16px;
	font-weight: bold;
}

.din-richtung-visual {
	display: inline-flex;
	gap: 10px;
	margin: 10px 0;
}

.din-option {
	border: 2px solid #ddd;
	padding: 10px;
	border-radius: 5px;
	cursor: pointer;
	transition: all 0.3s;
	text-align: center;
	min-width: 100px;
}

.din-option:hover {
	border-color: #007bff;
	background: #e7f3ff;
}

.din-option.selected {
	border-color: #007bff;
	background: #007bff;
	color: white;
}

.din-icon {
	font-size: 24px;
	display: block;
	margin-bottom: 5px;
}

/* Messungen anzeigen: Filterleiste (kompakt) */
.messungen-filter-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 8px;
	align-items: flex-end;
	margin-bottom: 8px;
}

.messungen-filter-bar > .messungen-filter-field:first-child {
	max-width: 200px;
	flex: 1.15 1 140px;
}

.messungen-filter-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
	max-width: 160px;
	gap: 2px;
}

.messungen-filter-field label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	color: #444;
}

.messungen-filter-field input,
.messungen-filter-field select {
	padding: 4px 6px;
	border: 1px solid #ccc;
	border-radius: 3px;
	min-height: 28px;
	font-size: 12px;
	box-sizing: border-box;
}

.messungen-filter-actions {
	display: flex;
	align-items: flex-end;
	flex: 0 0 auto;
	padding-bottom: 1px;
}

.messungen-filter-actions .button {
	padding: 4px 10px;
	font-size: 12px;
	min-height: 28px;
	line-height: 1.2;
}

/* Positionsimport Innentüren */
.import-innentuer-kopf h1 {
	margin: 0 0 8px 0;
	font-size: 1.35rem;
}
.import-innentuer-meta {
	margin: 0 0 16px 0;
	color: #444;
}
.import-innentuer-hinweis {
	margin: 12px 0;
	color: #555;
	max-width: 900px;
}
.import-innentuer-table td,
.import-innentuer-preview-table td,
.import-innentuer-preview-table th {
	padding: 6px 8px;
	border: 1px solid #ddd;
	vertical-align: top;
}
.import-innentuer-preview-table {
	border-collapse: collapse;
	width: 100%;
	margin: 12px 0;
}
.import-innentuer-preview-err td {
	background: #fff3cd;
	color: #856404;
}
.import-innentuer-actions {
	display: inline-block;
	margin: 8px 12px 0 0;
}
.import-innentuer-flash {
	margin: 12px 0;
	padding: 12px 14px;
	border-radius: 6px;
	border: 1px solid #c3e6cb;
	background: #d4edda;
	color: #155724;
}
.import-innentuer-flash-error {
	border-color: #f5c6cb;
	background: #f8d7da;
	color: #721c24;
}
.import-innentuer-flash-warn {
	border-color: #ffeeba;
	background: #fff3cd;
	color: #856404;
}
.import-innentuer-flash-success {
	border-color: #c3e6cb;
	background: #d4edda;
	color: #155724;
}

.import-pos-map-form {
	max-width: 1100px;
}
.import-pos-map-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0;
}
.import-pos-map-table th,
.import-pos-map-table td {
	padding: 8px 10px;
	border: 1px solid #ddd;
	vertical-align: top;
}
.import-pos-map-table th {
	background: #f0f4f8;
	text-align: left;
	font-weight: 600;
}
.import-pos-map-select {
	min-width: 280px;
	max-width: 100%;
}

/* Grundriss / Plan Editor */
.plan-editor-root {
	margin: 10px 0 18px 0;
}

.plan-editor-layout {
	width: 100%;
	table-layout: fixed;
	border-collapse: separate;
	border-spacing: 0;
}

td.plan-editor-main {
	width: 72%;
	vertical-align: top;
}

td.plan-editor-gap {
	width: 12px;
	vertical-align: top;
}

.plan-editor-gap-inner {
	width: 12px;
	height: 1px;
}

td.plan-editor-side {
	/* 28% reicht in schmalen Viewports in px oft nicht fuer Positions-Tabelle + Scrollbalken */
	width: 28%;
	min-width: 18rem;
	max-width: 100%;
	box-sizing: border-box;
	overflow: visible;
	vertical-align: top;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
	padding: 0;
	height: 100%;
}

.plan-editor-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin: 0 0 10px 0;
}

.plan-editor-toolbar-label {
	font-size: 0.95rem;
	color: #333;
	white-space: nowrap;
}

.plan-editor-toolbar-upload-select {
	min-width: 180px;
	max-width: min(42vw, 380px);
}

.plan-editor-sep {
	display: inline-block;
	width: 1px;
	height: 22px;
	background: #ddd;
	margin: 0 4px;
}

.plan-editor-pageinfo {
	font-size: 0.95rem;
	color: #333;
	padding: 0 6px;
	white-space: nowrap;
}

.plan-editor-toggle {
	display: inline-flex;
	gap: 8px;
	align-items: center;
	font-size: 0.95rem;
	user-select: none;
}

.plan-editor-toolgroup--assign {
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}

.plan-editor-assign-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	font-size: 0.95rem;
	font-weight: 600;
	user-select: none;
	color: #222;
}

.plan-editor-assign-checkbox {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	flex-shrink: 0;
	accent-color: #1976d2;
}

.plan-editor-assign-hint {
	font-size: 0.82rem;
	font-weight: 400;
	color: #555;
	line-height: 1.3;
	max-width: min(100%, 440px);
}

.plan-editor-click-mode-label {
	font-size: 0.82rem;
	color: #444;
	font-weight: 600;
	white-space: nowrap;
}

.plan-editor-click-mode-select {
	max-width: 240px;
	font-size: 0.85rem;
}

.plan-editor-hidden {
	display: none !important;
}

.plan-editor-hidden-file {
	display: none;
}

.plan-editor-viewport {
	position: relative;
	height: 52vh;
	min-height: 300px;
	max-height: calc(100vh - 220px);
	border: 1px solid #cfcfcf;
	border-radius: 8px;
	overflow: hidden;
	background: #111;
	touch-action: none;
	cursor: grab;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.plan-editor-viewport.plan-editor-viewport--assign-active {
	cursor: crosshair;
	box-shadow: inset 0 0 0 2px rgba(25, 118, 210, 0.45);
	border-color: #90caf9;
}

.plan-editor-viewport.plan-editor-viewport--assign-active.plan-editor-viewport--space-pan {
	cursor: grab;
}

.plan-editor-viewport.plan-editor-viewport--assign-active.plan-editor-viewport--pos-mode:not(.plan-editor-viewport--space-pan) {
	box-shadow: inset 0 0 0 2px rgba(255, 140, 0, 0.45);
	border-color: #ffb74d;
}

.plan-editor-stage {
	position: absolute;
	left: 0;
	top: 0;
}

/* Bild: Zoom ueber Layout-Breite (JS), Pan per translate auf der Ebene — kein scale(), Marker bleiben scharf/konstant */
.plan-editor-zoom-layer {
	position: relative;
	display: inline-block;
	max-width: none;
	vertical-align: top;
	transform-origin: 0 0;
	will-change: transform;
}

.plan-editor-image {
	display: block;
	max-width: 100%;
	height: auto;
	image-rendering: auto;
	user-select: none;
	-webkit-user-drag: none;
	user-drag: none;
	pointer-events: none;
}

.plan-editor-markers {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
}

.plan-editor-marker {
	position: absolute;
	transform: translate(-50%, -50%);
	pointer-events: auto;
	border: 1px solid rgba(0,0,0,0.25);
	background: rgba(255, 215, 0, 0.92);
	color: #111;
	border-radius: 999px;
	padding: 4px 8px;
	font-size: 12px;
	line-height: 1;
	cursor: grab;
	touch-action: none;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
	max-width: 180px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.plan-editor-marker:active {
	cursor: grabbing;
}

.plan-editor-side-title {
	font-weight: 700;
	margin: 0 0 8px 0;
}

.plan-editor-help {
	font-size: 0.9rem;
	color: #444;
	margin: 0 0 10px 0;
}

/* Zwei getrennte Bereiche: Filter/Marker-Text (Karte) und Positionen (eigene Karte) */
.plan-editor-side-stack {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	min-width: 0;
	min-height: 0;
	height: 100%;
	max-height: calc(100vh - 120px);
	padding: 10px;
}

.plan-editor-card {
	box-sizing: border-box;
	width: 100%;
	min-width: 0;
	border: 1px solid #d0d0d0;
	border-radius: 8px;
	background: #fff;
	/* Eigenes Stacking, kein Wechselwirken mit Nachbar-Karte */
	isolation: isolate;
}

/* Nichts schrumpfen lassen: war flex: 0 1 auto — sonst kollabiert die Karte inkl. <summary> auf ~20px */
.plan-editor-card--filters {
	flex: 0 0 auto;
	align-self: stretch;
	min-height: fit-content;
	max-height: min(46vh, 440px);
	padding: 10px 12px 12px;
	overflow-x: auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.plan-editor-card--filters .plan-editor-details {
	margin: 0 0 10px 0;
}

.plan-editor-card--filters .plan-editor-details:last-child {
	margin-bottom: 0;
}

.plan-editor-card--positions {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	min-height: 180px;
	min-width: 0;
	overflow: hidden;
	padding: 10px 12px 12px;
}

.plan-editor-card--positions .plan-editor-side-title {
	flex-shrink: 0;
	margin: 0 0 6px 0;
}

.plan-editor-card--positions .plan-editor-help {
	flex-shrink: 0;
	margin: 0 0 8px 0;
}

.plan-editor-card--positions .plan-editor-positions {
	flex: 1 1 auto;
	min-height: 0;
}

.plan-editor-positions {
	min-height: 120px;
	min-width: 0;
	overflow: auto;
	scrollbar-gutter: stable;
	-webkit-overflow-scrolling: touch;
}

.plan-editor-positions-table {
	width: 100%;
	/* Wenn 28% schmal: innen horizontales Scrollen statt abgeschnittener Raender */
	min-width: 28rem;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #e6e6e6;
	border-radius: 6px;
	overflow: hidden;
}

.plan-editor-positions-table th,
.plan-editor-positions-table td {
	border-bottom: 1px solid #eee;
	padding: 8px 6px;
	font-size: 0.9rem;
	vertical-align: middle;
}

.plan-editor-positions-table th {
	background: #f3f6fa;
	text-align: left;
	font-weight: 600;
}

.plan-editor-position-row {
	cursor: grab;
}

.plan-editor-position-grip-th {
	width: 32px;
	min-width: 32px;
	padding: 8px 4px;
	text-align: center;
}

.plan-editor-position-grip {
	width: 32px;
	min-width: 32px;
	padding: 6px 4px;
	text-align: center;
	vertical-align: middle;
	cursor: grab;
	touch-action: none;
	-webkit-user-select: none;
	user-select: none;
	color: #607d8b;
}

.plan-editor-position-grip:active {
	cursor: grabbing;
}

.plan-editor-position-grip .plan-editor-svg-icon {
	display: block;
	margin: 0 auto;
}

body.plan-editor-dragging {
	cursor: grabbing;
	-webkit-user-select: none;
	user-select: none;
}

.plan-editor-drag-ghost {
	position: fixed;
	left: 0;
	top: 0;
	z-index: 100100;
	pointer-events: none;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(25, 118, 210, 0.92);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
	white-space: nowrap;
	max-width: min(90vw, 320px);
	overflow: hidden;
	text-overflow: ellipsis;
	transform: translate(8px, 12px);
}

.plan-editor-positions-empty {
	padding: 10px 8px;
	font-size: 0.9rem;
	color: #666;
	font-style: italic;
	line-height: 1.35;
}

.plan-editor-error {
	margin: 10px 0;
	padding: 10px 12px;
	border-radius: 6px;
	border: 1px solid #f5c6cb;
	background: #f8d7da;
	color: #721c24;
}

.plan-editor-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.55);
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.plan-editor-overlay-dialog {
	background: #fff;
	padding: 22px 26px;
	border-radius: 10px;
	min-width: 320px;
	max-width: 92vw;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.plan-editor-overlay-title {
	font-weight: 700;
	margin: 0 0 10px 0;
}

.plan-editor-overlay-text {
	margin: 10px 0 14px 0;
	font-size: 1rem;
	color: #222;
}

.plan-editor-progress {
	background: #eee;
	border-radius: 6px;
	height: 16px;
	overflow: hidden;
	border: 1px solid #ddd;
}

.plan-editor-progress-bar {
	background: #3498db;
	height: 100%;
	width: 0%;
	transition: width 0.25s ease;
}

.plan-editor-wrap {
	position: relative;
}

.plan-editor-panel {
	margin: 0 0 14px 0;
	padding: 10px 10px 12px 10px;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	background: #fff;
}

.plan-editor-details {
	margin: 0 0 10px 0;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	background: #fff;
}

.plan-editor-details > .plan-editor-panel {
	margin: 0;
	border: none;
	border-radius: 0;
	box-shadow: none;
	padding: 0 10px 12px 12px;
}

.plan-editor-details-summary {
	display: list-item;
	padding: 10px 12px;
	font-weight: 700;
	font-size: 0.98rem;
	color: #222;
	cursor: pointer;
	user-select: none;
	list-style-position: outside;
}

.plan-editor-details[open] > .plan-editor-details-summary {
	border-bottom: 1px solid #eee;
	margin-bottom: 0;
}

/* Schutz vor globalen Theme-Styles in themes.css fuer details/summary (Grundriss/Plan) */
body[class*="theme-"] .plan-editor-details {
	background: #fff;
	border: 1px solid #e3e3e3;
	border-radius: 8px;
	margin: 0 0 10px 0;
	overflow: visible;
	box-shadow: none;
	transition: none;
}

body[class*="theme-"] .plan-editor-details > .plan-editor-details-summary {
	display: list-item;
	padding: 10px 12px;
	font-weight: 700;
	font-size: 0.98rem;
	color: #222;
	background: #f7f9fc;
	border: none;
	border-radius: 8px 8px 0 0;
	cursor: pointer;
	user-select: none;
	list-style-position: outside;
	transform: none;
	transition: none;
}

body[class*="theme-"] .plan-editor-details:not([open]) > .plan-editor-details-summary {
	border-radius: 8px;
}

body[class*="theme-"] .plan-editor-details > .plan-editor-details-summary:hover {
	background: #eef3fb;
	color: #1a1a1a;
	transform: none;
}

body[class*="theme-"] .plan-editor-details[open] > .plan-editor-details-summary {
	background: #eef3fb;
	color: #222;
	border-bottom: 1px solid #e3e3e3;
}

/* Kein zusaetzlicher Pfeil aus dem Theme – Standard-Marker reicht */
body[class*="theme-"] .plan-editor-details > .plan-editor-details-summary::before {
	content: none;
}

/* Inhaltscontainer: kein Theme-Padding, keine slideDown-Animation */
body[class*="theme-"] .plan-editor-details > .plan-editor-panel {
	padding: 10px 12px 12px 12px;
	background: #fff;
	border: none;
	border-radius: 0 0 8px 8px;
	animation: none;
	line-height: normal;
}

.plan-editor-btn-compact {
	padding: 4px 10px;
	font-size: 0.88rem;
	line-height: 1.2;
}

.plan-editor-filters-table td {
	padding: 4px 0;
	vertical-align: middle;
}

.plan-filter-label {
	width: 1%;
	white-space: nowrap;
	padding-right: 8px;
	font-size: 0.9rem;
	color: #333;
}

.plan-filter-input,
.plan-filter-select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.plan-filter-actions {
	padding-top: 8px;
}

.plan-editor-label-hint {
	font-size: 0.85rem;
	color: #555;
	margin: 0 0 8px 0;
	line-height: 1.35;
}

.plan-editor-label-multiselect {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	font-size: 0.9rem;
}

.plan-editor-label-tools {
	margin-top: 8px;
}

.plan-editor-modal-input {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

.plan-marker-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.plan-marker-modal.plan-marker-modal-hidden {
	display: none !important;
}

.plan-marker-modal-bg {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.plan-marker-modal-box {
	position: relative;
	z-index: 1;
	width: min(520px, 100%);
	max-height: 90vh;
	overflow: auto;
	background: #fff;
	padding: 16px 18px;
	border-radius: 10px;
	box-shadow: 0 10px 34px rgba(0, 0, 0, 0.22);
}

.plan-marker-modal-title {
	font-weight: 700;
	margin: 0 0 12px 0;
	font-size: 1.1rem;
}

.plan-marker-modal-table td {
	padding: 6px 8px;
	vertical-align: middle;
	font-size: 0.95rem;
}

.plan-marker-hint {
	font-size: 0.9rem;
	color: #444;
	margin: 6px 0;
	line-height: 1.35;
}

.plan-marker-hr {
	height: 1px;
	border: 0;
	background: #e5e5e5;
	margin: 10px 0;
}

.plan-modal-actions {
	text-align: right;
	padding-top: 8px;
}

.plan-editor-btn-danger {
	background: #c0392b;
	color: #fff;
	border-color: #a93226;
}

.plan-editor-btn-danger:hover {
	filter: brightness(1.05);
}

/* Grundriss-Editor: moderne Toolbar & Thumbnails */
.plan-editor-toolbar--modern {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 8px;
	padding: 10px 12px;
	margin-bottom: 10px;
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.plan-editor-toolgroup {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px;
}

.plan-editor-toolgroup--grow {
	flex: 1 1 auto;
	justify-content: flex-end;
}

.plan-editor-sep--toolbar {
	height: 28px;
	margin: 0 2px;
}

.plan-editor-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	min-height: 36px;
	padding: 6px;
	border-radius: 8px;
	transition: background-color 120ms ease, transform 120ms ease;
}

.plan-editor-icon-btn .plan-editor-svg-icon {
	display: block;
}

.plan-editor-icon-btn:hover {
	background: rgba(0, 0, 0, 0.05);
}

.plan-editor-icon-btn:focus {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
}

.plan-editor-zoom-pct {
	min-width: 44px;
	text-align: center;
	font-size: 0.9rem;
	font-weight: 600;
	color: #333;
	padding: 0 4px;
}

.plan-editor-save-status {
	font-size: 0.85rem;
	color: #2e7d32;
	min-height: 1.2em;
	white-space: nowrap;
	margin-left: auto;
}

.plan-editor-save-status--saving {
	color: #1565c0;
}

.plan-editor-save-status--error {
	color: #c62828;
	font-weight: 600;
}

.plan-editor-layout--with-thumbs .plan-editor-thumbs-cell {
	width: 128px;
	vertical-align: top;
	padding-right: 8px;
}

.plan-editor-thumbs-cell--hidden {
	width: 0 !important;
	padding: 0 !important;
	overflow: hidden;
}

.plan-editor-thumbs-wrap {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: calc(100vh - 200px);
	overflow-y: auto;
	padding: 4px;
}

.plan-editor-thumb {
	position: relative;
	display: block;
	width: 100%;
	padding: 4px;
	margin: 0;
	border: 2px solid #ddd;
	border-radius: 8px;
	background: #fff;
	text-align: left;
	transition: border-color 120ms ease, box-shadow 120ms ease;
}

.plan-editor-thumb-select {
	display: block;
	width: 100%;
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	cursor: pointer;
	text-align: left;
	font: inherit;
	color: inherit;
}

.plan-editor-thumb-delete {
	position: absolute;
	left: 6px;
	top: 6px;
	z-index: 2;
	width: 28px;
	height: 28px;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: rgba(198, 40, 40, 0.95);
	color: #fff;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.plan-editor-thumb-delete:hover {
	background: #b71c1c;
}

.plan-editor-thumb-delete .plan-editor-svg-icon {
	stroke: #fff;
}

.plan-editor-thumb:hover {
	border-color: #90caf9;
}

.plan-editor-thumb--active {
	border-color: #1976d2;
	box-shadow: 0 0 0 1px #1976d2;
}

.plan-editor-thumb-imgwrap {
	display: block;
	width: 100%;
	max-height: 96px;
	overflow: hidden;
	border-radius: 4px;
	background: #111;
}

.plan-editor-thumb-imgwrap img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
	user-drag: none;
}

.plan-editor-thumb-num {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	margin-top: 4px;
	color: #333;
}

.plan-editor-thumb-badge {
	position: absolute;
	top: 6px;
	right: 6px;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
	border-radius: 999px;
	background: #1976d2;
	color: #fff;
}

.plan-editor-viewport-outer {
	position: relative;
}

.plan-editor-minimap {
	position: absolute;
	right: 10px;
	top: 10px;
	z-index: 3;
	width: 160px;
	height: 120px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 6px;
	overflow: hidden;
	background: #000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
	cursor: crosshair;
}

.plan-editor-minimap-hidden {
	display: none !important;
}

.plan-editor-minimap-img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	opacity: 0.85;
	-webkit-user-drag: none;
	user-drag: none;
	pointer-events: none;
}

.plan-editor-minimap-frame {
	position: absolute;
	border: 2px solid #ffeb3b;
	box-sizing: border-box;
	pointer-events: none;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5) inset;
}

/* Punkt + Beschriftung (Mittelpunkt des Punktes = Messpunkt) */
.plan-editor-marker--dot {
	border: none;
	background: transparent;
	box-shadow: none;
	padding: 0;
	border-radius: 0;
	max-width: 220px;
	overflow: visible;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	transform: translate(-50%, -50%);
	cursor: grab;
	white-space: normal;
}

.plan-editor-marker--dot .plan-editor-marker-dot {
	display: block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: var(--marker-color, #ffd700);
	border: 2px solid rgba(0, 0, 0, 0.35);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
	flex-shrink: 0;
}

.plan-editor-marker--dot .plan-editor-marker-label {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.15;
	color: #111;
	text-align: center;
	max-width: 200px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	text-shadow:
		0 0 4px #fff,
		0 0 8px #fff,
		0 1px 2px rgba(255, 255, 255, 0.95);
}

.plan-editor-marker--pending.plan-editor-marker--dot .plan-editor-marker-dot {
	background: #ff8c00;
	border-color: rgba(0, 0, 0, 0.4);
}

.plan-editor-marker--pending.plan-editor-marker--dot .plan-editor-marker-label {
	border: 1px solid rgba(255, 140, 0, 0.85);
	border-radius: 4px;
	padding: 1px 4px;
	background: rgba(255, 248, 225, 0.95);
}

.plan-marker-hint--inline {
	margin: 8px 0 0;
	font-size: 0.85rem;
	line-height: 1.35;
}

.plan-editor-marker--active.plan-editor-marker--dot {
	z-index: 5;
}

.plan-editor-marker--active.plan-editor-marker--dot .plan-editor-marker-dot {
	animation: plan-editor-marker-dot-pulse 1.2s ease-in-out infinite;
}

@keyframes plan-editor-marker-dot-pulse {
	0%, 100% {
		box-shadow:
			0 0 0 2px rgba(25, 118, 210, 0.55),
			0 1px 4px rgba(0, 0, 0, 0.35);
	}
	50% {
		box-shadow:
			0 0 0 4px rgba(25, 118, 210, 0.35),
			0 1px 4px rgba(0, 0, 0, 0.35);
	}
}

.plan-marker-modal--card .plan-marker-modal-box {
	border-radius: 12px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.plan-shortcuts-overlay {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

.plan-shortcuts-overlay-hidden {
	display: none !important;
}

.plan-shortcuts-overlay-bg {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}

.plan-shortcuts-overlay-box {
	position: relative;
	z-index: 1;
	width: min(480px, 100%);
	max-height: 90vh;
	overflow: auto;
	padding: 18px 20px;
}

.plan-shortcuts-overlay-title {
	font-weight: 700;
	font-size: 1.1rem;
	margin: 0 0 12px 0;
}

.plan-shortcuts-table td {
	padding: 6px 8px;
	font-size: 0.92rem;
	border-bottom: 1px solid #eee;
}

.plan-shortcuts-k {
	font-family: ui-monospace, monospace;
	font-weight: 600;
	white-space: nowrap;
	width: 42%;
	color: #1565c0;
}

.plan-shortcuts-foot {
	margin: 14px 0 0 0;
	text-align: right;
}

:fullscreen .plan-editor-wrap {
	background: #111;
	padding: 8px;
	box-sizing: border-box;
}

:fullscreen .plan-editor-toolbar--modern {
	margin-bottom: 8px;
}

:fullscreen .plan-editor-viewport {
	max-height: none;
	height: calc(100vh - 88px);
}

@media (max-width: 900px) {
	.plan-editor-layout--with-thumbs .plan-editor-thumbs-cell {
		display: block;
		width: 100% !important;
		max-height: 140px;
	}
	.plan-editor-thumbs-wrap {
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		max-height: none;
	}
	.plan-editor-thumb {
		min-width: 100px;
	}
}

/* Readonly: PDF-Plan-Vorschau mit Markern (Messung / Messungsübersicht) */
.plan-ro-section {
	margin: 18px 0 10px 0;
	padding: 12px 10px;
	border: 1px solid #ddd;
	border-radius: 8px;
	background: #fafafa;
}

.plan-ro-section-title {
	font-weight: 700;
	margin: 0 0 10px 0;
	font-size: 1.05rem;
}

.plan-ro-upload-block {
	margin-bottom: 14px;
}

.plan-ro-upload-meta {
	font-size: 0.9rem;
	color: #444;
	margin: 0 0 8px 0;
}

.plan-ro-pages-table {
	width: 100%;
	border-collapse: collapse;
}

.plan-ro-page-cell {
	vertical-align: top;
	padding: 6px 8px 10px 0;
}

.plan-ro-thumb-wrap {
	position: relative;
	display: inline-block;
	max-width: 260px;
	cursor: zoom-in;
	outline: none;
}

.plan-ro-thumb-img {
	display: block;
	max-width: 260px;
	width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid #ccc;
	background: #fff;
}

.plan-ro-markers-layer {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.plan-ro-marker-dot {
	position: absolute;
	width: 12px;
	height: 12px;
	margin-left: -6px;
	margin-top: -6px;
	border-radius: 50%;
	background: #e53935;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
	pointer-events: none;
}

.plan-ro-marker-dot--active {
	background: #1e88e5;
	width: 14px;
	height: 14px;
	margin-left: -7px;
	margin-top: -7px;
}

.plan-ro-page-caption {
	font-size: 0.85rem;
	color: #555;
	margin-top: 6px;
	text-align: center;
	max-width: 260px;
}

.plan-ro-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: none;
	align-items: center;
	justify-content: center;
}

.plan-ro-modal--open {
	display: flex;
}

.plan-ro-modal-bg {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.72);
}

.plan-ro-modal-panel {
	position: relative;
	z-index: 1;
	width: min(96vw, 1200px);
	max-height: 92vh;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	min-height: 0;
}

.plan-ro-modal-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	padding: 10px 12px;
	border-bottom: 1px solid #e5e5e5;
	gap: 10px;
}

.plan-ro-modal-title {
	font-weight: 700;
	font-size: 1.05rem;
}

.plan-ro-modal-zoombar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: auto;
	margin-right: 8px;
}

.plan-ro-zoom-btn {
	min-width: 38px;
	padding-left: 10px;
	padding-right: 10px;
}

.plan-ro-zoom-hint {
	font-size: 0.78rem;
	color: #666;
	white-space: nowrap;
	max-width: 140px;
	line-height: 1.2;
}

.plan-ro-modal-close-x {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 8px;
	background: transparent;
	color: #333;
	font-size: 1.75rem;
	line-height: 1;
	font-weight: 300;
	cursor: pointer;
	flex-shrink: 0;
}

.plan-ro-modal-close-x:hover {
	background: #eee;
	color: #000;
}

.plan-ro-modal-close-x:focus {
	outline: 2px solid #0d6efd;
	outline-offset: 2px;
}

.plan-ro-modal-body {
	padding: 10px;
	overflow: hidden;
	flex: 1;
	min-height: 0;
	display: flex;
	flex-direction: column;
	max-height: calc(92vh - 56px);
}

.plan-ro-modal-viewport {
	overflow: auto;
	flex: 1;
	min-height: 120px;
	max-height: calc(92vh - 120px);
	-webkit-overflow-scrolling: touch;
	touch-action: pan-x pan-y;
	outline: none;
}

.plan-ro-modal-stage {
	position: relative;
	display: inline-block;
	vertical-align: top;
	max-width: none;
}

.plan-ro-modal-img {
	display: block;
	max-width: none;
	width: auto;
	height: auto;
	border-radius: 6px;
	border: 1px solid #ccc;
	background: #fff;
}

.plan-ro-modal-markers {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
}

.plan-ro-marker-pin {
	position: absolute;
	transform: translate(-50%, -50%);
	min-width: 26px;
	height: 26px;
	padding: 0 6px;
	border-radius: 999px;
	border: 2px solid #fff;
	background: #e53935;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	cursor: pointer;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.plan-ro-marker-pin:hover {
	filter: brightness(1.05);
}

/* Positionsimport: freie Footer-Felder als Zielfelder */
.import-pos-map-frei-hint {
	font-size: 0.85em;
	color: #666;
	font-weight: normal;
}

/* Welcome: aktive Benutzer (Hauptmandant / Admin) */
.active-users-card {
	margin-top: 14px;
	padding: 12px 14px;
	border: 1px solid #d0d7de;
	border-radius: 8px;
	background: #f8fafc;
}

.active-users-card-title {
	margin: 0 0 10px 0;
	font-size: 1.05em;
	font-weight: 700;
}

.active-users-card-hint {
	font-weight: 400;
	font-size: 0.85em;
	color: #57606a;
}

.active-users-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92em;
}

.active-users-table th,
.active-users-table td {
	border-bottom: 1px solid #e5e7eb;
	padding: 6px 8px;
	text-align: left;
	vertical-align: middle;
}

.active-users-table th {
	background: #eef2f7;
	font-weight: 600;
}

.active-users-th-status {
	width: 44px;
}

.active-users-td-status {
	width: 44px;
	text-align: center;
}

.user-status-dot {
	display: inline-block;
	width: 10px;
	height: 10px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.user-status-dot--recent {
	background: #22c55e;
}

.user-status-dot--idle {
	background: #eab308;
}

.active-users-meta {
	color: #57606a;
	font-size: 0.9em;
}

.active-users-modul {
	font-size: 0.88em;
	background: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	border: 1px solid #e5e7eb;
}

.active-users-empty {
	margin: 0;
	color: #57606a;
	font-size: 0.95em;
}

/* Co-Branding-Verwaltung & Export-Versand an Partner
   (früher: Affiliate-Verwaltung; DB-Spalten, Klassen, PHP-Variablen
   heißen intern weiterhin affiliate*) */
.affiliate-vw-msg {
	padding: 12px 14px 12px 18px;
	border-radius: 6px;
	margin-bottom: 15px;
	border-left: 4px solid transparent;
	box-shadow: 0 1px 2px rgba(0,0,0,0.04);
	animation: cobranding-msg-in 0.18s ease-out;
}
.affiliate-vw-msg-error {
	background: #fdecea;
	color: #611a15;
	border: 1px solid #f5c6cb;
	border-left-color: #c0392b;
}
.affiliate-vw-msg-success {
	background: #e6f4ea;
	color: #1e4620;
	border: 1px solid #c3e6cb;
	border-left-color: #2e7d32;
}
@keyframes cobranding-msg-in {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: translateY(0); }
}
.affiliate-vw-table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 25px;
}
.affiliate-vw-table th,
.affiliate-vw-table td {
	border: 1px solid #ddd;
	padding: 8px 10px;
	vertical-align: top;
	text-align: left;
}
.affiliate-vw-table th {
	background: #f0f0f0;
}
.affiliate-vw-inline-form {
	display: inline-block;
	margin-right: 8px;
}
.affiliate-vw-form-table {
	width: 100%;
	max-width: 960px;
}
.affiliate-vw-form-table td {
	padding: 6px 10px;
	vertical-align: top;
}
.affiliate-vw-valign-top {
	vertical-align: top;
	padding-top: 10px;
}
.affiliate-vw-checkbox-label {
	display: inline-block;
	margin: 3px 12px 3px 0;
	white-space: nowrap;
}
.affiliate-vw-input-text {
	width: 220px;
}
.affiliate-vw-input-wide {
	width: min(100%, 520px);
}
.affiliate-vw-hint {
	color: #666;
	font-size: 0.9em;
	display: block;
	margin-bottom: 6px;
}
.affiliate-vw-actions {
	padding-top: 10px;
}
.affiliate-vw-cancel-link {
	margin-left: 12px;
}
.affiliate-vw-hr {
	margin: 30px 0;
	border: 0;
	border-top: 1px solid #ddd;
}
.affiliate-ft-count-table {
	margin: 12px 0 18px 0;
}
.affiliate-ft-import-form,
.affiliate-ft-delete-form {
	margin-bottom: 18px;
}
.fenstertyp-affiliate-hinweis {
	padding: 12px 14px;
	border-radius: 6px;
	background: #f5f7fb;
	border: 1px solid #d5deef;
	color: #333;
	margin: 10px 0 14px 0;
}
.affiliate-vw-hints-list {
	color: #444;
}

/* Co-Branding-Verwaltung: Tab-Layout */
#cobranding-admin-root {
	margin-bottom: 2em;
}
.cobranding-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	margin: 0 0 1.2em 0;
	padding: 0;
	border-bottom: 2px solid #d6dbe1;
}
.cobranding-tab-btn {
	position: relative;
	margin: 0 0 -2px 0;
	padding: 10px 20px;
	border: none;
	background: transparent;
	color: #555;
	cursor: pointer;
	font-size: 0.95em;
	font-weight: 500;
	border-bottom: 2px solid transparent;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.cobranding-tab-btn:hover {
	color: #0d47a1;
	background: rgba(13,71,161,0.04);
}
.cobranding-tab-btn.cobranding-tab-active {
	color: #0d47a1;
	border-bottom-color: #0d47a1;
	font-weight: 700;
	background: rgba(13,71,161,0.06);
}
.cobranding-tab-pane {
	display: none;
	padding: 0.5em 0 1.5em 0;
}
.cobranding-tab-pane.cobranding-tab-active {
	display: block;
	animation: cobranding-pane-in 0.2s ease-out;
}
@keyframes cobranding-pane-in {
	from { opacity: 0; transform: translateY(2px); }
	to   { opacity: 1; transform: translateY(0); }
}
.cobranding-pane-h2 {
	margin: 0.2em 0 0.6em 0;
	color: #2c3e50;
	font-size: 1.45em;
}
.cobranding-uebersicht-lead {
	margin: 0 0 1.2em 0;
	max-width: 60em;
	color: #444;
	line-height: 1.5;
}
.cobranding-stats-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin: 0 0 1.6em 0;
}
.cobranding-stat-tile {
	flex: 0 1 auto;
	min-width: 13em;
	padding: 14px 18px;
	border: 1px solid #e0e4ea;
	border-left: 4px solid #0d47a1;
	border-radius: 6px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	transition: transform 0.15s, box-shadow 0.15s;
}
.cobranding-stat-tile:hover {
	transform: translateY(-1px);
	box-shadow: 0 3px 8px rgba(0,0,0,0.08);
}
.cobranding-stat-tile:nth-child(2) { border-left-color: #2e7d32; }
.cobranding-stat-tile:nth-child(3) { border-left-color: #ef6c00; }
.cobranding-stat-tile .cobranding-stat-num {
	font-size: 1.8em;
	font-weight: 700;
	color: #2c3e50;
	display: block;
	line-height: 1.1;
}
.cobranding-stat-tile .cobranding-stat-lbl {
	font-size: 0.85em;
	color: #607080;
	margin-top: 4px;
	display: block;
}
.cobranding-uebersicht-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin: 1.6em 0;
}
.cobranding-uebersicht-card {
	flex: 1 1 240px;
	max-width: 100%;
	border: 1px solid #d6dbe1;
	border-radius: 8px;
	padding: 16px 18px;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.15s, transform 0.15s;
}
.cobranding-uebersicht-card:hover {
	box-shadow: 0 4px 10px rgba(0,0,0,0.08);
	transform: translateY(-1px);
}
.cobranding-uebersicht-card .cobranding-step-no {
	display: inline-block;
	background: #0d47a1;
	color: #fff;
	font-size: 0.72em;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 3px 10px;
	border-radius: 12px;
	margin-bottom: 0.7em;
	align-self: flex-start;
}
.cobranding-uebersicht-card h3 {
	margin: 0 0 0.5em 0;
	font-size: 1.1em;
	color: #2c3e50;
}
.cobranding-uebersicht-card p {
	margin: 0 0 0.9em 0;
	font-size: 0.92em;
	color: #555;
	flex-grow: 1;
	line-height: 1.45;
}
.cobranding-tab-goto {
	margin-top: 0.2em;
	align-self: flex-start;
}
.cobranding-uebersicht-profil-links {
	margin: 0.6em 0 0 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.cobranding-uebersicht-profil-links li {
	margin: 0;
}
.cobranding-uebersicht-hints {
	margin-top: 1.5em;
	padding: 12px 16px;
	background: #f5f7fb;
	border: 1px solid #e0e4ea;
	border-radius: 6px;
}
.cobranding-uebersicht-hints h3 {
	margin-top: 0;
	font-size: 1em;
	color: #2c3e50;
}
.cobranding-uebersicht-hints ul {
	margin-bottom: 0;
}
.cobranding-tab-pane h2.cobranding-pane-h2,
.cobranding-tab-pane h3 {
	margin-top: 0.6em;
}
.cobranding-form-group {
	margin: 0 0 1.25em 0;
	padding: 14px 18px 18px 18px;
	border: 1px solid #d6dbe1;
	border-radius: 8px;
	background: #fafcff;
	box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.cobranding-form-group-title {
	margin: 0 0 12px 0;
	font-size: 1.05em;
	font-weight: 600;
	color: #2c3e50;
	padding: 0 8px;
	border: none;
}
.cobranding-form-actions {
	margin: 0.5em 0 0 0;
	padding: 0.5em 0 0 0;
	border-top: 1px solid #e0e4ea;
}

/* Profile-Tabelle: Hover + Zebra */
.affiliate-vw-table tbody tr:nth-child(even),
.affiliate-vw-table tr:nth-child(even) {
	background: #fafbfc;
}
.affiliate-vw-table tr:hover td {
	background: #eef3fb;
}
.affiliate-vw-table th:first-child,
.affiliate-vw-table tr:first-child th {
	background: #eef2f7;
	color: #2c3e50;
	font-weight: 600;
}

/* Co-Branding-ID-Badge in Tabellen */
.cobranding-id-badge {
	display: inline-block;
	padding: 3px 10px;
	background: #0d47a1;
	color: #fff;
	border-radius: 4px;
	font-family: monospace;
	font-size: 0.92em;
	font-weight: 600;
	letter-spacing: 0.02em;
}
.cobranding-empty-hint {
	padding: 22px 24px;
	background: #f5f7fb;
	border: 1px dashed #c5cad2;
	border-radius: 8px;
	text-align: center;
	color: #555;
	margin: 1em 0;
}
.cobranding-empty-hint em {
	display: block;
	margin-bottom: 0.5em;
	font-size: 1.05em;
	font-style: normal;
	color: #2c3e50;
}

.cobranding-quick-edit {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
}
.cobranding-quick-edit .cobranding-id-badge {
	padding: 1px 8px;
	font-size: 0.88em;
}

/* Form-Inputs Focus-Styling */
.affiliate-vw-form input[type="text"]:focus,
.affiliate-vw-form select:focus,
.cobranding-form-group input[type="text"]:focus,
.cobranding-form-group select:focus {
	outline: none;
	border-color: #0d47a1;
	box-shadow: 0 0 0 2px rgba(13,71,161,0.15);
}
.affiliate-vw-form input[type="text"][readonly] {
	background: #eef2f7;
	color: #555;
}

/* Status-Inline (klein, dezent) */
.cobranding-status-inline {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 10px;
	border-radius: 12px;
	font-size: 0.85em;
	background: transparent;
	color: #555;
	transition: opacity 0.3s, background 0.2s;
	min-height: 1.2em;
	min-width: 4em;
	vertical-align: middle;
}
.cobranding-status-inline.cobranding-status-loading {
	background: #fff3cd;
	color: #856404;
}
.cobranding-status-inline.cobranding-status-success {
	background: #d4edda;
	color: #155724;
}
.cobranding-status-inline.cobranding-status-error {
	background: #f8d7da;
	color: #721c24;
}
.cobranding-status-inline.cobranding-status-fade {
	opacity: 0;
}

/* Loading-Overlay für Tabellen */
.aff-eig-table-wrap.aff-eig-loading,
#aff_eig_table_wrap.aff-eig-loading {
	position: relative;
	min-height: 60px;
}
.aff-eig-table-wrap.aff-eig-loading::after,
#aff_eig_table_wrap.aff-eig-loading::after {
	content: 'Lade…';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(255,255,255,0.7);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0d47a1;
	font-weight: 600;
	font-size: 0.95em;
	border-radius: 4px;
}

.export-affiliate-send {
	margin-top: 10px;
}
.export-affiliate-send .export-affiliate-send-btn {
	margin-right: 6px;
	margin-top: 4px;
}
.export-affiliate-send-msg {
	display: block;
	margin-top: 6px;
	font-size: 0.9em;
	color: #555;
}

/* Versand-Historie an Partner (Export-Modul) */
.partner-versand-info {
	background: #f1f7ff;
	border: 1px solid #b3d2f4;
	border-left: 4px solid #1976d2;
	border-radius: 6px;
	padding: 10px 14px;
	margin: 0 0 18px 0;
	font-size: 14px;
	color: #1a3656;
	line-height: 1.5;
}
.partner-versand-info strong {
	color: #0d47a1;
}
.partner-versand-historie {
	margin-top: 8px;
}
.partner-versand-historie summary {
	cursor: pointer;
	color: #1976d2;
	font-weight: 600;
	font-size: 13px;
}
.partner-versand-historie-tabelle {
	width: 100%;
	margin-top: 8px;
	border-collapse: collapse;
	font-size: 13px;
	background: #fff;
}
.partner-versand-historie-tabelle th,
.partner-versand-historie-tabelle td {
	padding: 6px 8px;
	border-bottom: 1px solid #e3eaf3;
	text-align: left;
	vertical-align: top;
}
.partner-versand-historie-tabelle th {
	background: #e8f0fb;
	color: #0d47a1;
	font-weight: 600;
}
.partner-versand-historie-tabelle tr.err td {
	background: #fff5f5;
}
.partner-versand-status.ok {
	color: #1b5e20;
	font-weight: 600;
}
.partner-versand-status.err {
	color: #b71c1c;
	font-weight: 600;
	cursor: help;
}

/* Hinweis pro Auftrag in der Auftragsliste (Welcome) */
.partner-versand-hinweis {
	display: inline-block;
	margin-top: 4px;
	padding: 2px 8px;
	background: #e8f0fb;
	color: #0d47a1;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
	white-space: nowrap;
}
.partner-versand-hinweis::before {
	content: "📤 ";
}

/* Affiliate-Eigenschaften-Editor */
.aff-eig-editor {
	max-width: 1100px;
}
.aff-eig-toolbar,
.aff-eig-typ-toolbar,
.aff-eig-import-block {
	margin-bottom: 18px;
}
.aff-eig-label {
	margin-right: 8px;
	font-weight: 600;
}
.aff-eig-select-affiliate,
.aff-eig-typ-select {
	min-width: 260px;
	margin-right: 10px;
}
.aff-eig-anbieter-header {
	margin-bottom: 12px;
}
.aff-eig-badge-affiliate {
	display: inline-block;
	padding: 6px 12px;
	border-radius: 6px;
	background: #eef5ff;
	border: 1px solid #c9d8f5;
}
.aff-eig-dropzone {
	border: 2px dashed #bbb;
	border-radius: 8px;
	padding: 18px;
	text-align: center;
	cursor: pointer;
	background: #fafafa;
	margin: 10px 0;
}
.aff-eig-dropzone-active {
	border-color: #007bff;
	background: #f0f7ff;
}
.aff-eig-file-input {
	margin-top: 8px;
}
.aff-eig-preview-wrap {
	margin: 12px 0;
	overflow-x: auto;
}
.aff-eig-skipped-wrap {
	margin: 12px 0;
	overflow-x: auto;
}
.aff-eig-skipped-title {
	margin: 8px 0 4px;
	font-size: 0.95em;
}
.aff-eig-skipped-table tbody td {
	background: #fff8f0;
}
.aff-eig-preview-table th,
.aff-eig-preview-table td,
.aff-eig-data-table th,
.aff-eig-data-table td {
	padding: 6px 8px;
	border: 1px solid #ddd;
}
.aff-eig-data-table tr:hover td {
	background: #f7fbff;
}
.aff-eig-actions-cell {
	white-space: nowrap;
}
.aff-eig-status {
	margin-top: 8px;
	font-size: 0.9em;
}
.aff-eig-status-error {
	color: #b00020;
}
.aff-eig-status-ok {
	color: #155724;
}
.aff-eig-h4 {
	margin: 14px 0 8px;
}
.aff-eig-form-table td {
	padding: 6px 8px;
}
.aff-eig-input-wide {
	width: min(100%, 480px);
}
.aff-eig-input-num {
	width: 100px;
}
.aff-eig-locked-msg {
	padding: 12px 14px;
	background: #fff8e6;
	border: 1px solid #f0d090;
	border-radius: 6px;
}
.mandant-affiliate-anbieter-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 0.8em;
	background: #e8f4ea;
	border: 1px solid #b7d7bc;
	color: #1b5e20;
}

/* Fenzon-Integration (eigenes Modul) */
.fenzon-message {
	padding: 12px 14px;
	margin-bottom: 16px;
	border-radius: 6px;
}
.fenzon-message--success {
	background: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}
.fenzon-message--error {
	background: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}
.fenzon-settings-hint {
	color: #666;
	font-size: 13px;
	margin: 6px 0 12px 0;
}
.fenzon-enabled-status {
	font-size: 13px;
	margin: 0 0 12px 0;
	padding: 8px 10px;
	border-radius: 4px;
	border: 1px solid #ccc;
}
.fenzon-enabled-status--on {
	background: #e8f5e9;
	border-color: #a5d6a7;
	color: #1b5e20;
}
.fenzon-enabled-status--off {
	background: #f5f5f5;
	border-color: #ddd;
	color: #555;
}
.fenzon-field-wide {
	width: 100%;
	max-width: 520px;
}
.fenzon-error-list {
	margin: 8px 0 0 18px;
}
.fenzon-settings-details {
	margin-bottom: 16px;
}
.fenzon-settings-form {
	margin-bottom: 12px;
}
.fenzon-inline-form {
	display: inline;
	margin-right: 8px;
}
.fenzon-footer-actions .fenzon-inline-form {
	display: inline-block;
	margin-right: 10px;
	margin-bottom: 8px;
}
.modul-fenzon_config .content table.resp-table td,
.modul-fenzon_uebertragung .content table.resp-table td,
.modul-fenzon_import .content table.resp-table td {
	vertical-align: top;
}

/* Fenzon-Import: Filterleiste */
.fenzon-filter-form {
	margin: 8px 0 14px 0;
	padding: 8px 10px;
	background: #f5f7fa;
	border: 1px solid #dde3ea;
	border-radius: 6px;
}
.fenzon-filter-form table.resp-table {
	margin-bottom: 0;
}

/* Fenzon-Import: Quote-Liste */
.fenzon-quote-list {
	margin: 8px 0 12px 0;
}
.fenzon-quote-list tr.fenzon-row-imported {
	background: #f0f7ff;
}
.fenzon-import-options {
	margin: 12px 0;
	padding: 10px 12px;
	background: #fafafa;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
}

/* Fenzon · Angebote importieren (Layout wie ToDo-Übersicht, tbody/thead) */
.fenzon-import-page .todo-ue-header {
	margin-top: 0;
}

.fenzon-import-header-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-end;
}

.fenzon-import-inline-nav-form {
	display: inline;
	margin: 0;
}

.fenzon-import-filter-form {
	margin-bottom: 12px;
}

.fenzon-import-search-row.todo-ue-search-row {
	grid-template-columns: 1fr auto;
}

@media (max-width: 720px) {
	.fenzon-import-search-row.todo-ue-search-row {
		grid-template-columns: 1fr;
	}
}

.fenzon-import-field-grid.todo-field-grid {
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	margin-top: 4px;
}

.fenzon-import-field .todo-field-label {
	margin-top: 0;
	margin-bottom: 4px;
	color: var(--todo-text-muted);
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.fenzon-import-page .fenzon-import-input.todo-input,
.fenzon-import-page .fenzon-import-select.todo-select {
	border-color: var(--todo-border);
	background: var(--todo-bg-soft);
	color: var(--todo-text);
}

.fenzon-import-page .fenzon-import-input.todo-input:focus,
.fenzon-import-page .fenzon-import-select.todo-select:focus {
	border-color: var(--todo-accent);
	box-shadow: 0 0 0 3px var(--todo-accent-soft);
}

.fenzon-import-chip-row {
	align-items: center;
}

button.fenzon-import-reset-btn.todo-ue-clear-link {
	background: none;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	margin-left: 8px;
	color: var(--todo-accent);
	text-decoration: underline dotted;
}

button.fenzon-import-reset-btn.todo-ue-clear-link:hover {
	color: var(--todo-text);
}

.fenzon-import-page .todo-stat--readonly {
	cursor: default;
}

.fenzon-import-page .todo-stat--readonly:hover {
	transform: none;
	box-shadow: var(--todo-shadow-sm);
	border-color: var(--todo-border);
}

.fenzon-import-stats-row {
	margin-bottom: 8px;
}

.fenzon-import-stat-num .todo-stat-value {
	font-size: 24px;
}

.fenzon-import-filter-hint {
	margin-top: 0;
}

.fenzon-import-select-hint {
	margin-bottom: 8px;
}

.fenzon-import-table-wrap {
	margin-bottom: 16px;
}

.fenzon-import-table tbody td {
	vertical-align: middle;
}

.fenzon-import-quote-nr {
	font-weight: 600;
	color: var(--todo-text);
}

.fenzon-import-row-imported {
	background: rgba(0, 120, 212, 0.04) !important;
}

.fenzon-import-dash {
	color: var(--todo-text-muted);
}

.fenzon-import-page .fenzon-status {
	vertical-align: middle;
}

.fenzon-import-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 999px;
	border: 1px solid var(--todo-border);
	white-space: nowrap;
	max-width: 220px;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fenzon-import-pill--new {
	background: #fff7ed;
	border-color: #fdba74;
	color: #9a3412;
}

.fenzon-import-pill--done {
	background: var(--todo-accent-soft);
	border-color: rgba(0, 120, 212, 0.35);
	color: #0c4a6e;
}

.fenzon-import-options-card {
	margin-bottom: 16px;
}

.fenzon-import-options-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--todo-text-muted);
	margin: 0 0 10px 0;
}

.fenzon-import-options-chips {
	gap: 10px;
}

/* Klicks auf Import-Optionen: Checkbox darf nicht display:none sein (sonst kein Toggle in manchen Browsern) */
.fenzon-import-page .fenzon-import-options-card {
	position: relative;
	z-index: 2;
}

.fenzon-import-page .todo-toggle-pill {
	position: relative;
}

.fenzon-import-page .todo-toggle-pill input[type="checkbox"] {
	display: block;
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
	z-index: 3;
	appearance: none;
	-webkit-appearance: none;
}

.fenzon-import-actions-primary {
	margin: 0 0 24px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.fenzon-import-banner {
	border-radius: var(--todo-radius);
	padding: 14px 16px;
	margin: 0 0 16px 0;
	border: 1px solid var(--todo-border);
	box-shadow: var(--todo-shadow-sm);
	background: var(--todo-bg);
}

.fenzon-import-banner--success {
	border-color: #a5d6a7;
	background: linear-gradient(135deg, #f1f8f4 0%, #ffffff 100%);
}

.fenzon-import-banner--error {
	border-color: #ef9a9a;
	background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
}

.fenzon-import-banner-title {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--todo-text-muted);
	margin-bottom: 8px;
}

.fenzon-import-banner-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	font-size: 14px;
	color: var(--todo-text);
	align-items: baseline;
}

.fenzon-import-banner-stat-sub {
	flex-basis: 100%;
	font-size: 13px;
	color: var(--todo-text-muted);
	margin-top: 4px;
}

.fenzon-import-detail-list {
	margin: 10px 0 0 0;
	padding-left: 20px;
	color: var(--todo-text);
	font-size: 14px;
}

.fenzon-import-banner-hint {
	margin: 12px 0 0 0;
	font-size: 13px;
	color: var(--todo-text-muted);
	line-height: 1.45;
}

.fenzon-import-empty .button {
	margin-top: 4px;
}

.fenzon-status {
	display: inline-block;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 10px;
	background: #eceff1;
	color: #37474f;
	border: 1px solid #cfd8dc;
	white-space: nowrap;
}
.fenzon-status--neu,
.fenzon-status--new,
.fenzon-status--draft,
.fenzon-status--entwurf {
	background: #e3f2fd;
	color: #0d47a1;
	border-color: #90caf9;
}
.fenzon-status--offen,
.fenzon-status--open,
.fenzon-status--gesendet,
.fenzon-status--sent {
	background: #fff8e1;
	color: #795548;
	border-color: #ffe082;
}
.fenzon-status--angenommen,
.fenzon-status--accepted,
.fenzon-status--bestaetigt,
.fenzon-status--bestatigt,
.fenzon-status--confirmed,
.fenzon-status--gewonnen,
.fenzon-status--won {
	background: #e8f5e9;
	color: #1b5e20;
	border-color: #a5d6a7;
}
.fenzon-status--abgelehnt,
.fenzon-status--rejected,
.fenzon-status--storniert,
.fenzon-status--cancelled,
.fenzon-status--lost,
.fenzon-status--verloren {
	background: #ffebee;
	color: #b71c1c;
	border-color: #ef9a9a;
}

/* Importiert / Neu Badge */
.fenzon-imported-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 10px;
	background: #e3f2fd;
	color: #0d47a1;
	border: 1px solid #90caf9;
	white-space: nowrap;
}
.fenzon-new-badge {
	display: inline-block;
	padding: 2px 8px;
	font-size: 12px;
	font-weight: 600;
	border-radius: 10px;
	background: #fff3e0;
	color: #e65100;
	border: 1px solid #ffb74d;
	white-space: nowrap;
}

/* Detail-Liste im Import-Ergebnis */
.fenzon-import-status {
	display: inline-block;
	min-width: 52px;
	text-align: center;
	padding: 1px 6px;
	font-size: 11px;
	font-weight: 700;
	border-radius: 4px;
	margin-right: 6px;
}
.fenzon-import-status--new  { background: #c8e6c9; color: #1b5e20; }
.fenzon-import-status--upd  { background: #bbdefb; color: #0d47a1; }
.fenzon-import-status--skip { background: #eceff1; color: #455a64; }
.fenzon-import-status--fail { background: #ffcdd2; color: #b71c1c; }

/* Alternative Fenstertypen / Parallelangebote */
.export-card.alt-variante {
	border-left-style: dashed;
	border-left-width: 4px;
	opacity: 0.98;
}
.alt-typ-popup {
	position: fixed;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.55);
	z-index: 12000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.alt-typ-popup-inner {
	background: #fff;
	border-radius: 10px;
	max-width: 960px;
	width: 100%;
	max-height: 92vh;
	overflow: auto;
	padding: 16px 20px;
	position: relative;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.alt-typ-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}
.alt-typ-popup-title {
	margin: 0;
	font-size: 1.15rem;
}
.alt-typ-popup-close {
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}
.alt-typ-popup-referenz {
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 16px;
	background: #f8f9fa;
}
.alt-typ-popup-referenz-label {
	font-weight: bold;
	margin: 0 0 8px 0;
}
.alt-typ-popup-referenz-row {
	display: flex;
	gap: 12px;
	align-items: center;
}
.alt-typ-popup-referenz-img img {
	max-height: 64px;
	width: auto;
}
.alt-typ-popup-muted {
	color: #6c757d;
	font-size: 0.9rem;
}
.alt-typ-popup-block {
	border: 1px solid #e9ecef;
	border-radius: 8px;
	padding: 12px;
	margin-bottom: 12px;
}
.alt-typ-popup-block h4 {
	margin: 0 0 8px 0;
}
.alt-typ-popup-field {
	margin-bottom: 10px;
}
.alt-typ-popup-select {
	width: 100%;
	max-width: 420px;
}
.alt-typ-popup-hint {
	font-size: 0.85rem;
	color: #6c757d;
	margin: 4px 0;
}
.alt-typ-fensterembed {
	border: 1px solid #ccc;
	border-radius: 6px;
	overflow: hidden;
	max-height: 380px;
}
.alt-typ-fenster-iframe {
	width: 100%;
	height: 360px;
	border: 0;
	display: block;
}
.alt-typ-clear-btn {
	margin-top: 8px;
}
.alt-typ-badge {
	display: inline-block;
	background: #0d6efd;
	color: #fff;
	border-radius: 10px;
	padding: 0 6px;
	font-size: 11px;
	vertical-align: middle;
	margin-left: 4px;
}
.alt-typ-open-btn {
	font-size: 12px;
	padding: 4px 8px;
}
.alt-typ-open-group {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	vertical-align: middle;
}
.alt-typ-open-group .alt-typ-open-btn {
	min-width: 0;
	color: #000 !important;
	font-weight: 600;
}
.alt-typ-open-group .alt-typ-open-btn:hover,
.alt-typ-open-group .alt-typ-open-btn:focus,
.alt-typ-open-group .alt-typ-open-btn:active {
	color: #000 !important;
}
/* Alt-Picker v2 (zwei Spalten) */
.alt-typ-popup-inner-v2 {
	max-width: 1200px;
	width: 100%;
	max-height: 94vh;
	overflow: auto;
	padding: 20px 24px 24px;
	position: relative;
	box-shadow: 0 12px 48px rgba(0, 0, 0, 0.22);
	border-radius: 14px;
}
.alt-typ-popup-close-v2 {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(0, 0, 0, 0.06);
	color: #333;
	font-size: 24px;
}
.alt-typ-popup-close-v2:hover {
	background: rgba(0, 0, 0, 0.1);
}
.alt-typ-popup-v2-grid {
	display: grid;
	grid-template-columns: minmax(280px, 340px) 1fr;
	gap: 20px 28px;
	align-items: start;
}
@media (max-width: 900px) {
	.alt-typ-popup-v2-grid {
		grid-template-columns: 1fr;
	}
}
.alt-typ-popup-col-original {
	min-width: 0;
}
.alt-typ-popup-card-kicker {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #6c757d;
	margin: 0 0 8px 0;
	font-weight: 600;
}
.alt-typ-popup-card {
	border: 1px solid #e2e6ea;
	border-radius: 12px;
	padding: 14px;
	background: linear-gradient(180deg, #fafbfc 0%, #fff 100%);
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}
.alt-typ-popup-card-imgwrap {
	text-align: center;
	margin-bottom: 12px;
	min-height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f1f3f5;
	border-radius: 8px;
	padding: 8px;
}
.alt-typ-popup-card-img {
	max-height: 220px;
	width: 100%;
	max-width: 100%;
	object-fit: contain;
}
.alt-typ-popup-card-title {
	font-size: 1.05rem;
	font-weight: 600;
	margin-bottom: 10px;
	line-height: 1.35;
	word-break: break-word;
}
.alt-typ-popup-meta {
	margin: 0;
	font-size: 0.9rem;
}
.alt-typ-popup-meta dt {
	margin: 0;
	color: #6c757d;
	font-weight: 600;
	font-size: 0.8rem;
}
.alt-typ-popup-meta dd {
	margin: 0 0 8px 0;
}
.alt-typ-popup-v2-alt-title {
	margin: 0 0 14px 0;
	font-size: 1.1rem;
	line-height: 1.35;
}
.alt-typ-popup-pos {
	display: block;
	font-size: 0.82rem;
	font-weight: normal;
	color: #6c757d;
	margin-top: 4px;
}
.alt-typ-popup-filterbar {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 16px;
	align-items: flex-end;
	margin-bottom: 12px;
	padding: 12px 14px;
	background: #f8f9fa;
	border: 1px solid #e9ecef;
	border-radius: 10px;
}
.alt-typ-popup-filter-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}
.alt-typ-popup-filter-label {
	font-size: 0.78rem;
	font-weight: 600;
	color: #495057;
}
.alt-typ-popup-select-compact {
	max-width: 220px;
	min-width: 140px;
}
.alt-typ-popup-filter-search {
	flex: 1 1 180px;
}
.alt-typ-popup-search-input {
	width: 100%;
	max-width: 280px;
	padding: 8px 10px;
	border: 1px solid #ced4da;
	border-radius: 8px;
	font-size: 0.95rem;
}
.alt-typ-popup-material-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.alt-typ-material-pill {
	cursor: pointer;
}
.alt-typ-material-pill input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}
.alt-typ-material-pill span {
	display: inline-block;
	padding: 6px 10px;
	border-radius: 999px;
	border: 1px solid #dee2e6;
	background: #fff;
	font-size: 0.82rem;
	transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.alt-typ-material-pill input:checked + span {
	border-color: #0d6efd;
	background: #e7f1ff;
	box-shadow: 0 0 0 1px #0d6efd33;
	font-weight: 600;
}
.alt-typ-fensterembed-v2 {
	border: 1px solid #ced4da;
	border-radius: 10px;
	overflow: hidden;
	min-height: 420px;
	flex: 1;
	display: flex;
	flex-direction: column;
	background: #fff;
}
.alt-typ-popup-col-picker {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-width: 0;
}
.alt-typ-fensterembed-v2 .alt-typ-fenster-iframe {
	flex: 1;
	min-height: 520px;
	height: min(58vh, 640px);
	width: 100%;
	border: 0;
	display: block;
}
.alt-typ-popup-selected-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px dashed #adb5bd;
	background: #fff;
}
.alt-typ-popup-selected-thumb {
	width: 64px;
	height: 64px;
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f8f9fa;
	border-radius: 8px;
	overflow: hidden;
}
.alt-typ-popup-selected-thumb img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}
.alt-typ-popup-selected-kicker {
	display: block;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6c757d;
}
.alt-typ-popup-actions-v2 {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px solid #e9ecef;
}
.alt-uebersicht-tabelle td,
.alt-uebersicht-tabelle th {
	vertical-align: top;
	font-size: 13px;
}
.alt-uebersicht-tabelle .alt-ueb-save-row {
	font-size: 12px;
	padding: 6px 10px;
}
.alt-uebersicht-tabelle .button.alt-ueb-pick {
	font-size: 11px;
	padding: 4px 8px;
	margin-top: 4px;
	display: inline-block;
}
.alt-ueb-iframe-inner {
	max-width: 900px;
	width: 95%;
}
.alt-ueb-iframe-inner .alt-typ-fenster-iframe {
	height: 420px;
}
.alt-ueb-col-ft {
	vertical-align: top;
}
.alt-ueb-ft-preview {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 260px;
}
.alt-ueb-ft-thumblink .messung-thumb {
	display: block;
	max-width: 72px;
	height: auto;
	flex-shrink: 0;
}
.alt-ueb-ft-label {
	font-size: 0.95em;
	line-height: 1.35;
}
.alt-ueb-sumwrap {
	display: inline-flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	max-width: 220px;
}
.alt-ueb-sum-thumb {
	max-width: 56px;
	height: auto;
	display: block;
}

/* --- Modul benutzer_verwalten (Benutzer im Mandanten) --- */
.modul-benutzer_verwalten .bv-container {
	max-width: 1100px;
	margin: 0 auto 32px;
	padding: 0 12px;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	color: #1a1a2e;
}
.bv-header {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}
.bv-title {
	margin: 0;
	font-size: 1.55rem;
	font-weight: 700;
	letter-spacing: -0.02em;
}
.bv-subtitle {
	margin: 6px 0 0;
	font-size: 0.9rem;
	color: #6b7280;
}
.bv-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: 999px;
	background: linear-gradient(135deg, #04aa6d, #038d5a);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	box-shadow: 0 4px 14px rgba(4, 170, 109, 0.35);
}
.bv-alert {
	border-radius: 10px;
	padding: 12px 16px;
	margin-bottom: 16px;
	font-size: 0.92rem;
}
.bv-alert--error {
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #991b1b;
}
.bv-alert--success {
	background: #ecfdf5;
	border: 1px solid #a7f3d0;
	color: #065f46;
}
.bv-alert-list {
	margin: 0;
	padding-left: 1.2rem;
}
.bv-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
	margin-bottom: 18px;
	overflow: hidden;
}
.bv-card--edit {
	padding: 20px 22px 22px;
}
.bv-card-title {
	margin: 0 0 16px;
	font-size: 1.1rem;
	font-weight: 700;
}
.bv-new-wrap {
	padding: 0;
}
.bv-new-summary {
	cursor: pointer;
	font-weight: 700;
	padding: 16px 20px;
	list-style: none;
	background: linear-gradient(180deg, #f9fafb 0%, #f3f4f6 100%);
	border-bottom: 1px solid #e5e7eb;
}
.bv-new-summary::-webkit-details-marker {
	display: none;
}
.bv-new-wrap[open] .bv-new-summary {
	border-bottom: 1px solid #e5e7eb;
}
.bv-card-body {
	padding: 18px 20px 22px;
}
.bv-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
}
.bv-input-group--full {
	grid-column: 1 / -1;
}
.bv-label {
	display: block;
	font-size: 0.78rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #6b7280;
	margin-bottom: 6px;
}
.bv-hint {
	font-weight: 400;
	text-transform: none;
	letter-spacing: 0;
	color: #9ca3af;
	font-size: 0.85rem;
}
.bv-input,
.bv-select {
	width: 100%;
	max-width: 100%;
	padding: 11px 12px;
	border: 1.5px solid #d1d5db;
	border-radius: 9px;
	font-size: 0.95rem;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	box-sizing: border-box;
}
.bv-input:focus,
.bv-select:focus {
	outline: none;
	border-color: #04aa6d;
	box-shadow: 0 0 0 3px rgba(4, 170, 109, 0.15);
}
.bv-input-group.has-error .bv-input,
.bv-input-group.has-error .bv-select {
	border-color: #dc2626;
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}
.bv-input-group--switch {
	display: flex;
	align-items: flex-end;
	padding-bottom: 4px;
}
.bv-switch {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	user-select: none;
}
.bv-switch input {
	width: 18px;
	height: 18px;
	accent-color: #04aa6d;
}
.bv-switch-ui {
	display: none;
}
.bv-switch-text {
	font-size: 0.95rem;
	font-weight: 500;
}
.bv-pw-row {
	display: flex;
	gap: 8px;
	align-items: stretch;
}
.bv-pw-row .bv-input {
	flex: 1;
}
.bv-pw-toggle {
	flex: 0 0 44px;
	border: 1.5px solid #d1d5db;
	border-radius: 9px;
	background: #f9fafb;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #4b5563;
	transition: background 0.15s ease, border-color 0.15s ease;
	padding: 0;
}
.bv-pw-toggle:hover {
	background: #fff;
	border-color: #04aa6d;
	color: #04aa6d;
}
.bv-pw-toggle svg {
	width: 20px;
	height: 20px;
}
.bv-pw-toggle .bv-eye-closed[hidden] {
	display: none;
}
.bv-pw-box {
	margin-top: 12px;
	padding: 12px 14px;
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 9px;
	font-size: 0.86rem;
}
.bv-pw-strength-head {
	font-weight: 600;
	margin-bottom: 6px;
	color: #374151;
}
.bv-pw-strength-bar {
	height: 6px;
	background: #e5e7eb;
	border-radius: 999px;
	overflow: hidden;
	margin-bottom: 6px;
}
.bv-pw-strength-fill {
	display: block;
	height: 100%;
	width: 0%;
	border-radius: 999px;
	background: #dc2626;
	transition: width 0.2s ease, background-color 0.2s ease;
}
.bv-pw-strength-wrap-weak .bv-pw-strength-fill {
	background: #dc2626;
}
.bv-pw-strength-wrap-medium .bv-pw-strength-fill {
	background: #f59e0b;
}
.bv-pw-strength-wrap-strong .bv-pw-strength-fill {
	background: #04aa6d;
}
.bv-pw-strength-text {
	margin: 0 0 8px;
	min-height: 1.2em;
	color: #6b7280;
	font-size: 0.84rem;
}
.bv-pw-rules {
	list-style: none;
	margin: 0;
	padding: 0;
}
.bv-pw-rules li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0;
	color: #6b7280;
	font-size: 0.84rem;
}
.bv-pw-rules li::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	border: 2px solid #d1d5db;
	flex-shrink: 0;
}
.bv-pw-rules li.is-met {
	color: #111827;
}
.bv-pw-rules li.is-met::before {
	background: #04aa6d;
	border-color: #04aa6d;
}
.bv-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
}
.bv-btn-primary {
	min-width: 140px;
}
.bv-btn-secondary {
	background: #f3f4f6;
	color: #374151;
	border: 1px solid #d1d5db;
}
.bv-table-wrap {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 14px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
	overflow: auto;
}
.bv-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 520px;
	font-size: 0.92rem;
}
.bv-table thead {
	background: linear-gradient(180deg, #f0f4fb 0%, #e8edf5 100%);
}
.bv-table th {
	text-align: left;
	padding: 12px 14px;
	font-weight: 700;
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #4b5563;
	border-bottom: 1px solid #dfe5ef;
}
.bv-table td {
	padding: 14px;
	vertical-align: middle;
	border-bottom: 1px solid #f0f2f5;
}
.bv-table tbody tr:hover {
	background: #fafbfc;
}
.bv-th-actions {
	text-align: right;
	width: 120px;
}
.bv-usercell {
	display: flex;
	align-items: center;
	gap: 12px;
}
.bv-avatar {
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: linear-gradient(135deg, #2c5aa0, #5b7ec4);
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.bv-usercell-text {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}
.bv-user-name {
	font-weight: 600;
	color: #111827;
}
.bv-user-mail {
	font-size: 0.85rem;
	color: #6b7280;
	word-break: break-all;
}
.bv-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
}
.bv-badge--admin {
	background: #ede9fe;
	color: #5b21b6;
}
.bv-badge--techniker {
	background: #dbeafe;
	color: #1e40af;
}
.bv-badge--monteur {
	background: #ecfdf5;
	color: #047857;
}
.bv-status-pill {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 0.78rem;
	font-weight: 600;
}
.bv-status-pill.is-active {
	background: #d1fae5;
	color: #065f46;
}
.bv-status-pill.is-inactive {
	background: #f3f4f6;
	color: #6b7280;
}
.bv-row-actions {
	display: flex;
	justify-content: flex-end;
	gap: 6px;
	align-items: center;
}
.bv-icon-form {
	display: inline;
	margin: 0;
	padding: 0;
}
.bv-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	background: #fff;
	cursor: pointer;
	color: #374151;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
	padding: 0;
}
.bv-btn-icon:hover {
	border-color: #04aa6d;
	color: #04aa6d;
	box-shadow: 0 2px 8px rgba(4, 170, 109, 0.15);
}
.bv-btn-icon--danger:hover {
	border-color: #dc2626;
	color: #dc2626;
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.12);
}
@media (max-width: 768px) {
	.bv-grid {
		grid-template-columns: 1fr;
	}
	.bv-th-hide-sm,
	.bv-td-hide-sm {
		display: none;
	}
}
@media (max-width: 480px) {
	.bv-title {
		font-size: 1.25rem;
	}
	.bv-table {
		min-width: 100%;
	}
	.bv-th-user {
		min-width: 200px;
	}
}

/* Messungen anzeigen: Ampel (letzte Änderung) + Scroll-Hervorhebung */
.ampel-dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	vertical-align: middle;
}
.ampel-gruen {
	background-color: #28a745;
}
.ampel-orange {
	background-color: #fd7e14;
}
.ampel-rot {
	background-color: #dc3545;
}
.messungen-select-with-ampel {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}
.messungen-table .col-select {
	vertical-align: middle;
}
/* Messungen anzeigen: Zeile nach Rückkehr (z. B. aus Messung bearbeiten) kurz hervorheben — Zellen wie Welcome, plus Overrides gegen #messungen-main-table / Zebra / Typ-Header-Gradient */
.messungen-row-highlight-flash > td {
	background-color: #fff3cd !important;
	transition: background-color 0.35s ease;
}
#messungen-main-table.messungen-table-responsive tbody tr.messungen-row-highlight-flash {
	background: #fff3cd !important;
	background-color: #fff3cd !important;
}
#messungen-main-table.messungen-table-responsive tbody tr.messungen-row-highlight-flash:hover {
	background: #fff3cd !important;
	background-color: #fff3cd !important;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr.messungen-row-highlight-flash,
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr.messungen-row-highlight-flash:hover {
	background: #fff3cd !important;
	background-color: #fff3cd !important;
	box-shadow: none;
}
#messungen-main-table.messungen-table-responsive tbody tr.messungen-row-highlight-flash > td.col-type-header {
	background: #fff3cd !important;
	background-image: none !important;
}

/* Welcome: Auftragszeile nach Rückkehr kurz hervorheben */
.auftrag-row-highlight-flash > td {
	background-color: #fff3cd !important;
	transition: background-color 0.35s ease;
}

/* Messungen anzeigen: Filter Ampel */
.messungen-filter-field-ampel {
	max-width: 130px;
}
.messungen-filter-ampel-label-row {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: nowrap;
	margin-bottom: 2px;
}
.messungen-filter-ampel-label {
	display: flex;
	align-items: center;
	gap: 4px;
	flex-wrap: nowrap;
	margin: 0;
	font-size: 11px;
}
.messungen-filter-ampel-dots .ampel-dot {
	width: 8px;
	height: 8px;
}
.messungen-filter-ampel-help-trigger {
	width: 18px;
	height: 18px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #adb5bd;
	background: #f8f9fa;
	color: #495057;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	cursor: help;
	flex-shrink: 0;
}
.messungen-filter-ampel-help-trigger:hover {
	background: #e9ecef;
	border-color: #6c757d;
	color: #212529;
}
.messungen-filter-ampel-dots {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}
.ampel-filter-leer {
	background-color: #ced4da;
	border: 1px solid #adb5bd;
	box-sizing: border-box;
}
.messungen-filter-ampel-wrap {
	border-radius: 3px;
	padding: 0;
	transition: box-shadow 0.15s ease;
}
.messungen-filter-ampel-wrap.is-ampel-alle {
	box-shadow: none;
}
.messungen-filter-ampel-wrap.is-ampel-ohne {
	box-shadow: 0 0 0 2px #adb5bd;
}
.messungen-filter-ampel-wrap.is-ampel-gruen {
	box-shadow: 0 0 0 2px #28a745;
}
.messungen-filter-ampel-wrap.is-ampel-orange {
	box-shadow: 0 0 0 2px #fd7e14;
}
.messungen-filter-ampel-wrap.is-ampel-rot {
	box-shadow: 0 0 0 2px #dc3545;
}
.messungen-filter-ampel-select {
	min-width: 0;
	width: 100%;
	max-width: 100%;
}
.messungen-filter-ampel-select option[value="ohne"] {
	background-color: #e9ecef;
	color: #212529;
}
.messungen-filter-ampel-select option[value="gruen"] {
	background-color: #d4edda;
	color: #155724;
}
.messungen-filter-ampel-select option[value="orange"] {
	background-color: #fff3cd;
	color: #856404;
}
.messungen-filter-ampel-select option[value="rot"] {
	background-color: #f8d7da;
	color: #721c24;
}
.messungen-filter-ampel-bedeutung-gruen {
	color: #1e7e34;
	font-weight: 600;
}
.messungen-filter-ampel-bedeutung-orange {
	color: #c65a00;
	font-weight: 600;
}
.messungen-filter-ampel-bedeutung-rot {
	color: #c82333;
	font-weight: 600;
}
.messungen-filter-ampel-bedeutung-leer {
	color: #6c757d;
	font-weight: 600;
}
.messungen-filter-ampel-help-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1100;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.messungen-filter-ampel-help-popup.is-open {
	display: flex;
}
.messungen-filter-ampel-help-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}
.messungen-filter-ampel-help-popup-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 420px;
	max-height: min(85vh, 520px);
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.messungen-filter-ampel-help-popup-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #dee2e6;
}
.messungen-filter-ampel-help-popup-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
}
.messungen-filter-ampel-help-popup-close {
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #6c757d;
	padding: 4px 8px;
	border-radius: 4px;
}
.messungen-filter-ampel-help-popup-close:hover {
	background: #f1f3f5;
	color: #212529;
}
.messungen-filter-ampel-help-popup-body {
	padding: 16px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #212529;
}
.messungen-filter-ampel-help-list {
	margin: 10px 0 0;
	padding-left: 1.25rem;
}
.messungen-filter-ampel-help-list li {
	margin-bottom: 6px;
}
.messungen-filter-ampel-help-footer {
	margin: 14px 0 0;
	font-size: 0.9rem;
	color: #495057;
}

/* Messungen anzeigen: Kopieren-Popup (Auswahl wie bei Messung speichern) */
.messungen-kopieren-popup {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 1110;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}
.messungen-kopieren-popup.is-open {
	display: flex;
}
.messungen-kopieren-popup-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}
.messungen-kopieren-popup-dialog {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 520px;
	max-height: min(90vh, 640px);
	overflow: auto;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.messungen-kopieren-popup-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #dee2e6;
}
.messungen-kopieren-popup-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
}
.messungen-kopieren-popup-close {
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #6c757d;
	padding: 4px 8px;
	border-radius: 4px;
}
.messungen-kopieren-popup-close:hover {
	background: #f1f3f5;
	color: #212529;
}
.messungen-kopieren-popup-body {
	padding: 16px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #212529;
}
.messungen-kopieren-popup-options .container {
	display: block;
	margin-bottom: 12px;
}
.messungen-kopieren-popup-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid #dee2e6;
}
.messungen-kopieren-popup-submit {
	min-width: 120px;
}
.messungen-kopieren-popup-cancel {
	min-width: 120px;
	background: #6c757d;
	color: #fff;
	border: none;
}

/* Messungen anzeigen: Card-Layout (ehemals nur Mobil – jetzt für alle Bildschirme) */
/* col-meta-mobile / col-type-header werden global im Card-Layout sichtbar gemacht;
   die alten globalen "display:none"-Regeln entfallen. */
.messung-meta-row {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
}
.messung-meta-row:last-child {
	margin-bottom: 0;
}
.messung-meta-label {
	font-weight: 700;
	color: #1f2a44;
	min-width: 92px;
}
.messung-meta-value {
	color: #1f2a44;
	flex: 1 1 auto;
}
.messung-meta-value-position .messung-position-stack {
	flex-direction: row;
	align-items: center;
	gap: 6px;
}
.messung-meta-value-position .position-value {
	font-size: 1.45rem;
	font-weight: 800;
	line-height: 1;
}
.messung-type-main {
	display: inline;
}
.messung-type-main-label {
	display: none;
}
.messung-type-main-value {
	font-weight: inherit;
}

/* =========================================================================
   Messungen anzeigen – einheitliches Card-Layout (mobile-first, alle Größen)

   Pro Karte:
     ┌────────────────────────────────────┐
     │ HEADER:  ☐ Ampel │ Messungstyp     │  ← Akzent-Hintergrund
     ├──────────────────┴─────────────────┤
     │ Pos 1 ▲▼         │                 │
     │ Bau-Pos  …       │   SKIZZE        │
     │ Etage    …       │   120 × 80      │
     │ Raum     …       │                 │
     │ ⚠ Status         │                 │
     ├────────────────────────────────────┤
     │ ✏  🔁  📋  📷  🗑  📐  📱        │  ← Icons über volle Breite
     └────────────────────────────────────┘

   Karten-Grid auf tbody:
     ≤520 px:        1 Karte/Reihe + Inhalt vertikal gestackt
     521–1099 px:    1 Karte/Reihe (Header / 2-Spalten-Body / Footer)
     1100–1699 px:   2 Karten/Reihe (Desktop)
     ≥1700 px:       3 Karten/Reihe (Wide-Desktop)

   thead → schlanke Toolbar (nur "Alle auswählen"); tfoot → versteckt.
   ========================================================================= */
#messungen-main-table.messungen-table-responsive {
	background: transparent;
	border: 0;
	box-shadow: none;
	overflow: visible;
	width: 100%;
	display: block;
}

/* tfoot redundant – select-all unten ist Duplikat des thead-Selects */
#messungen-main-table.messungen-table-responsive tfoot {
	display: none;
}

/* thead als schlanke Toolbar oberhalb des Karten-Grids */
#messungen-main-table.messungen-table-responsive thead {
	display: block;
	background: #f7faff;
	border: 1px solid #dfe5ef;
	border-radius: 10px;
	padding: 8px 14px;
	margin-bottom: 14px;
}
#messungen-main-table.messungen-table-responsive thead tr {
	display: flex;
	align-items: center;
	gap: 10px;
	background: transparent;
}
#messungen-main-table.messungen-table-responsive thead th {
	display: none;
	padding: 0;
	border: 0;
	background: transparent;
	font-size: 0.9rem;
	color: #495057;
}
#messungen-main-table.messungen-table-responsive thead th.col-select {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

/* tbody als responsives Karten-Grid */
#messungen-main-table.messungen-table-responsive tbody {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
	width: 100%;
}

/* Karten */
#messungen-main-table.messungen-table-responsive tbody tr {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	grid-template-areas:
		"header  header"
		"select  media"
		"meta    media"
		"type    media"
		"actions actions";
	align-items: start;
	column-gap: 14px;
	row-gap: 0;
	background: #fff;
	border: 1px solid #dfe5ef;
	border-left: 5px solid #ced4da;
	border-radius: 14px;
	padding: 0;
	margin: 0;
	box-shadow: 0 4px 14px rgba(44, 90, 160, 0.08);
	overflow: hidden;
	transition: box-shadow 0.18s ease;
}
#messungen-main-table.messungen-table-responsive tbody tr:hover {
	background: #fff;
	box-shadow: 0 8px 22px rgba(44, 90, 160, 0.14);
}

/* Ampel-Akzent-Rand */
#messungen-main-table.messungen-table-responsive tbody tr[data-filter-ampel="gruen"]  { border-left-color: #28a745; }
#messungen-main-table.messungen-table-responsive tbody tr[data-filter-ampel="orange"] { border-left-color: #fd7e14; }
#messungen-main-table.messungen-table-responsive tbody tr[data-filter-ampel="rot"]    { border-left-color: #dc3545; }
#messungen-main-table.messungen-table-responsive tbody tr[data-filter-ampel="ohne"]   { border-left-color: #adb5bd; }

/* Direkte Karten-Zellen als Block; innere Tabellen bleiben unangetastet */
#messungen-main-table.messungen-table-responsive > tbody > tr > td {
	display: block;
	width: auto !important;
	padding: 0;
	border: 0;
	white-space: normal !important;
	word-break: break-word;
	font-size: 0.95rem;
}

/* Tabellen-only-Spalten ausblenden – Inhalt liegt in col-meta-mobile / col-type-header */
#messungen-main-table.messungen-table-responsive td.col-position,
#messungen-main-table.messungen-table-responsive td.col-bauposition,
#messungen-main-table.messungen-table-responsive td.col-etage,
#messungen-main-table.messungen-table-responsive td.col-raum {
	display: none;
}

/* ----- Header: Messungstyp als Überschrift über volle Kartenbreite ----- */
#messungen-main-table.messungen-table-responsive td.col-type-header {
	display: flex !important;
	grid-area: header;
	align-items: center;
	justify-content: flex-start;
	padding: 12px 16px;
	background: linear-gradient(135deg, #eef3fb 0%, #f7faff 100%);
	border-bottom: 1px solid #e0e7f3;
	min-height: 48px;
}
#messungen-main-table.messungen-table-responsive td.col-type-header .messung-type-main {
	display: flex;
	gap: 8px;
	align-items: baseline;
	flex-wrap: wrap;
	width: 100%;
}
#messungen-main-table.messungen-table-responsive td.col-type-header .messung-type-main-label {
	display: none;
}
#messungen-main-table.messungen-table-responsive td.col-type-header .messung-type-main-value {
	font-weight: 800;
	font-size: 1.25rem;
	color: #1f2a44;
	letter-spacing: 0.2px;
}

/* ----- Auswahl-Zeile: schlanker Streifen unter dem Header (links) ----- */
#messungen-main-table.messungen-table-responsive td.col-select {
	grid-area: select;
	display: flex !important;
	align-items: center;
	justify-content: flex-start;
	padding: 8px 4px 4px 14px;
}
#messungen-main-table.messungen-table-responsive .messungen-select-with-ampel {
	display: flex;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 10px;
}
#messungen-main-table.messungen-table-responsive .messung-checkbox {
	width: 22px;
	height: 22px;
}

/* ----- Meta (Position, Bau-Pos, Etage, Raum) ----- */
#messungen-main-table.messungen-table-responsive td.col-meta-mobile {
	grid-area: meta;
	display: block !important;
	padding: 12px 4px 8px 14px;
}
#messungen-main-table.messungen-table-responsive .messung-meta-row {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 6px;
	margin-bottom: 6px;
	font-size: 0.95rem;
	text-align: left;
}
#messungen-main-table.messungen-table-responsive .messung-meta-row:last-child {
	margin-bottom: 0;
}
#messungen-main-table.messungen-table-responsive .messung-meta-label {
	font-weight: 600;
	color: #6b7689;
	min-width: 0;
	font-size: 0.88rem;
	flex: 0 0 auto;
}
#messungen-main-table.messungen-table-responsive .messung-meta-value {
	color: #1f2a44;
	font-weight: 600;
	flex: 0 0 auto;
	text-align: left;
}
#messungen-main-table.messungen-table-responsive .messung-meta-row-position .messung-meta-value {
	font-weight: 800;
}
#messungen-main-table.messungen-table-responsive .messung-meta-value-position .position-value {
	font-size: 1.4rem;
	font-weight: 800;
	line-height: 1;
	color: #1f2a44;
}

/* ----- Status / Offene Arbeiten / Indikatoren ----- */
#messungen-main-table.messungen-table-responsive td.col-type {
	grid-area: type;
	padding: 4px 4px 12px 14px;
}
#messungen-main-table.messungen-table-responsive td.col-type:empty {
	display: none;
}

/* ----- Skizze + Maß-Tabelle (rechts) ----- */
#messungen-main-table.messungen-table-responsive td.col-media {
	grid-area: media;
	align-self: stretch;
	padding: 12px 14px 12px 4px;
	display: flex !important;
}
#messungen-main-table.messungen-table-responsive .messung-media {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 10px;
	min-height: 100%;
}
#messungen-main-table.messungen-table-responsive .messung-media__link {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: #1f2a44;
	font-size: 0.85rem;
	font-weight: 600;
	gap: 6px;
}
#messungen-main-table.messungen-table-responsive .messung-media__link::after {
	content: attr(data-details-label);
}
#messungen-main-table.messungen-table-responsive .messung-thumb {
	width: 100%;
	max-width: 150px;
	max-height: 130px;
	object-fit: contain;
	border: 1px solid #e0e6f2;
	border-radius: 8px;
	padding: 4px;
	background: #fff;
}

/* Maß-Tabelle: kompakt + echte Tabelle (gegen globalen td{display:block}) */
#messungen-main-table.messungen-table-responsive .messung-mass-wrapper {
	max-width: 180px;
	padding: 4px 6px;
	font-size: 11px;
}
#messungen-main-table.messungen-table-responsive .messung-mass-table        { display: table;             width: 100%; border-collapse: collapse; font-size: 11px; }
#messungen-main-table.messungen-table-responsive .messung-mass-table thead  { display: table-header-group; }
#messungen-main-table.messungen-table-responsive .messung-mass-table tbody  { display: table-row-group;    }
#messungen-main-table.messungen-table-responsive .messung-mass-table tr     { display: table-row;          }
#messungen-main-table.messungen-table-responsive .messung-mass-table th,
#messungen-main-table.messungen-table-responsive .messung-mass-table td     { display: table-cell; padding: 1px 4px; border: 0; white-space: nowrap; line-height: 1.3; }

/* ----- Footer (Action-Icons) ----- */
#messungen-main-table.messungen-table-responsive td.col-actions {
	grid-area: actions;
	padding: 8px 10px;
	background: #f7faff;
	border-top: 1px solid #e0e7f3;
}
#messungen-main-table.messungen-table-responsive .messung-buttons {
	display: flex;
	justify-content: space-around;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	width: 100%;
}
#messungen-main-table.messungen-table-responsive .messung-buttons button {
	width: 44px;
	min-width: 44px;
	height: 44px;
	min-height: 44px;
	padding: 6px !important;
	flex: 0 0 auto;
}
#messungen-main-table.messungen-table-responsive .messung-buttons button img,
#messungen-main-table.messungen-table-responsive .messung-buttons button svg {
	width: 26px;
	height: 26px;
}
#messungen-main-table.messungen-table-responsive .alt-typ-open-group {
	display: inline-flex;
	gap: 4px;
	align-items: center;
}

/* =========================================================================
   Desktop (≥1100 px): 2 Karten nebeneinander
   ========================================================================= */
@media (min-width: 1100px) {
	#messungen-main-table.messungen-table-responsive tbody {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

/* =========================================================================
   Wide-Desktop (≥1700 px): 3 Karten nebeneinander
   ========================================================================= */
@media (min-width: 1700px) {
	#messungen-main-table.messungen-table-responsive tbody {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

/* =========================================================================
   Tablet/Phone-Landscape (≤1024 px): nur Filterleiste etwas kompakter
   ========================================================================= */
@media (max-width: 1024px) {
	.messungen-filter-bar {
		gap: 8px;
	}
	.messungen-filter-bar > .messungen-filter-field:first-child,
	.messungen-filter-field {
		max-width: none;
		flex: 1 1 calc(50% - 4px);
	}
	.messungen-filter-actions {
		flex: 1 1 100%;
	}
}

/* =========================================================================
   Sehr schmale Phones (≤520 px): Karten-Inhalt vertikal stapeln
   Reihenfolge: Auswahl → Header → Skizze → Meta → Status → Aktionen
   ========================================================================= */
@media (max-width: 520px) {
	#messungen-main-table.messungen-table-responsive tbody tr {
		grid-template-columns: 1fr;
		grid-template-areas:
			"header"
			"select"
			"media"
			"meta"
			"type"
			"actions";
		row-gap: 0;
	}
	#messungen-main-table.messungen-table-responsive td.col-select {
		padding: 10px 14px;
	}
	#messungen-main-table.messungen-table-responsive td.col-type-header {
		padding: 10px 14px;
		min-height: 44px;
	}
	#messungen-main-table.messungen-table-responsive td.col-type-header .messung-type-main-value {
		font-size: 1.15rem;
	}
	#messungen-main-table.messungen-table-responsive td.col-media {
		padding: 14px 14px 6px;
		justify-content: center;
	}
	#messungen-main-table.messungen-table-responsive .messung-thumb {
		max-width: 240px;
		max-height: 220px;
	}
	#messungen-main-table.messungen-table-responsive td.col-meta-mobile {
		padding: 8px 14px 4px;
	}
	#messungen-main-table.messungen-table-responsive td.col-type {
		padding: 4px 14px 10px;
	}
	#messungen-main-table.messungen-table-responsive .messung-meta-label {
		min-width: 0;
	}
	.messungen-filter-bar > .messungen-filter-field:first-child,
	.messungen-filter-field,
	.messungen-filter-actions {
		flex: 1 1 100%;
	}
}

/* =========================================================================
   Ansicht-Umschalter (Kacheln / Tabelle) – Toggle in der Filterleiste
   ========================================================================= */
.messungen-view-toggle {
	display: inline-flex;
	border: 1px solid #dfe5ef;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	margin-left: 8px;
}
.messungen-view-toggle-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background: transparent;
	border: 0;
	cursor: pointer;
	color: #6b7689;
	font-size: 0.9rem;
	font-weight: 600;
	font-family: inherit;
	transition: background 0.15s ease, color 0.15s ease;
	line-height: 1.2;
}
.messungen-view-toggle-btn + .messungen-view-toggle-btn {
	border-left: 1px solid #dfe5ef;
}
.messungen-view-toggle-btn:hover {
	background: #f0f4fb;
	color: #1f2a44;
}
.messungen-view-toggle-btn.is-active {
	background: #2c5aa0;
	color: #fff;
}
.messungen-view-toggle-btn svg {
	width: 16px;
	height: 16px;
	flex: 0 0 auto;
}

/* =========================================================================
   Tabellen-Modus: Karten-Layout aufheben, klassische Tabelle wiederherstellen
   Aktiviert über data-view-mode="table" auf #messungen-main-table.
   ========================================================================= */
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] {
	display: table;
	border-collapse: collapse;
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(44, 90, 160, 0.08);
	width: 100%;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] thead {
	display: table-header-group;
	background: #f0f4fb;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] thead tr {
	display: table-row;
	background: transparent;
	gap: 0;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] thead th {
	display: table-cell;
	padding: 10px 8px;
	border: 1px solid #ccc;
	background: transparent;
	font-weight: 600;
	text-align: left;
	white-space: nowrap;
	color: #2c3a4d;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tfoot {
	display: table-footer-group;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tfoot tr {
	display: table-row;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tfoot th {
	display: table-cell;
	padding: 8px 10px;
	border: 1px solid #ccc;
	background: #f0f4fb;
	vertical-align: middle;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody {
	display: table-row-group;
	grid-template-columns: none;
	gap: 0;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr {
	display: table-row;
	grid-template-columns: none;
	grid-template-areas: none;
	background: transparent;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	padding: 0;
	margin: 0;
	overflow: visible;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr:nth-child(odd) {
	background: #ffffff;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr:nth-child(even) {
	background: #f4f7fc;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr:hover {
	background: #eef6ff;
	box-shadow: none;
}

#messungen-main-table.messungen-table-responsive[data-view-mode="table"] > tbody > tr > td {
	display: table-cell;
	padding: 8px 10px;
	border: 1px solid #ccc;
	background: transparent;
	white-space: normal;
	font-size: 13px;
	vertical-align: middle;
}
/* Ampel-Akzent: linker Rand der ersten Zelle (nach Gitter-Rahmen, damit 4px Ampelfarbe sichtbar bleibt) */
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr[data-filter-ampel] td:first-child {
	border-left: 4px solid #adb5bd;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr[data-filter-ampel="gruen"]  td:first-child { border-left-color: #28a745; }
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr[data-filter-ampel="orange"] td:first-child { border-left-color: #fd7e14; }
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr[data-filter-ampel="rot"]    td:first-child { border-left-color: #dc3545; }
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] tbody tr[data-filter-ampel="ohne"]   td:first-child { border-left-color: #adb5bd; }
/* Tabellen-Spalten wieder anzeigen */
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td.col-position,
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td.col-bauposition,
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td.col-etage,
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td.col-raum {
	display: table-cell;
}
/* Erste 5 Spalten: nur Inhaltsbreite, nowrap */
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] th:nth-child(-n+5),
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td:nth-child(-n+5) {
	white-space: nowrap;
	width: 1%;
}
/* Card-only Zellen verbergen */
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td.col-meta-mobile,
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td.col-type-header {
	display: none !important;
}
/* Spalten ohne Card-Stylings */
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td.col-select {
	display: table-cell !important;
	background: transparent;
	padding: 8px 10px;
	text-align: center;
	vertical-align: middle;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td.col-actions {
	background: transparent;
	padding: 8px 10px;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td.col-media {
	display: table-cell !important;
	padding: 8px 10px;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] td.col-type {
	padding: 8px 10px;
}
/* Action-Buttons: original kompakt */
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-buttons {
	display: flex;
	justify-content: center;
	gap: 8px;
	flex-wrap: nowrap;
	width: auto;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-buttons button {
	width: auto;
	min-width: 0;
	height: auto;
	min-height: 0;
	padding: 0 !important;
	flex: 0 0 auto;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-buttons button img,
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-buttons button svg {
	width: auto;
	height: 25px;
}
/* Skizze klein wie früher */
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-thumb {
	max-width: none;
	max-height: 60px;
	width: auto;
	border: 1px solid #e0e6f2;
	border-radius: 6px;
	padding: 2px;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-media {
	flex-direction: column;
	min-height: 0;
	gap: 8px;
	display: flex;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-media__link {
	display: inline-flex;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-media__link::after {
	content: none;
}
/* Messungstyp inline – Spalten-Header beschriftet ihn */
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-type-main {
	display: inline;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-type-main-label {
	display: none;
}
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-type-main-value {
	font-weight: inherit;
	font-size: 13px;
	color: inherit;
}
/* Maß-Wrapper: kleiner */
#messungen-main-table.messungen-table-responsive[data-view-mode="table"] .messung-mass-wrapper {
	max-width: 200px;
	font-size: 12px;
}

/* Bockfenster-Maßtabelle in der Messungsübersicht */
.messung-mass-table--bock td,
.messung-mass-table--bock th {
	padding: 1px 5px;
	font-size: 0.82rem;
}

/* Messungstyp-Text in der Tabellenspalte */
.col-type-name {
	display: block;
	font-weight: 600;
	margin-bottom: 4px;
}

/* Messungstyp-Fallback-Bild (wenn kein Fenstertyp-Bild vorhanden) */
.messung-thumb-fallback-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
}
.messung-thumb--fallback {
	opacity: 0.45;
	filter: grayscale(30%);
	cursor: default;
}
.messung-thumb-fallback-label {
	font-size: 0.72rem;
	color: #6c757d;
	text-align: center;
	line-height: 1.2;
}

/* Lightbox */
.lightbox-trigger {
	cursor: zoom-in;
}
#lightbox-overlay {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.82);
	z-index: 9999;
	align-items: center;
	justify-content: center;
}
#lightbox-overlay.lightbox-active {
	display: flex;
}
#lightbox-content {
	position: relative;
	max-width: 90vw;
	max-height: 90vh;
}
#lightbox-img {
	display: block;
	max-width: 90vw;
	max-height: 90vh;
	border-radius: 4px;
	box-shadow: 0 8px 40px rgba(0,0,0,0.6);
	object-fit: contain;
}
#lightbox-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: #fff;
	color: #333;
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0,0,0,0.4);
	z-index: 1;
}

/* --- Mandanten-ToDos (Master-Admin) --- */
.todo-badge {
	min-width: 28px;
	height: 28px;
	padding: 0 8px;
	border-radius: 14px;
	border: none;
	font-size: 12px;
	font-weight: bold;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.todo-badge--leer {
	background: #e9ecef;
	color: #555;
}

.todo-badge--offen {
	background: #cfe8ff;
	color: #004578;
}

.todo-badge--ueberfaellig {
	background: #ffd6d6;
	color: #a70000;
}

.kontakt-quickbtn {
	min-width: 44px;
	min-height: 44px;
	padding: 6px;
	border: 1px solid #ccc;
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	font-size: 18px;
	line-height: 1;
	margin-bottom: 6px;
}

.kontakt-quickbtn:hover {
	background: #f0f8ff;
	border-color: #0078d4;
}

/* ============================================================
   Kontakt-Popup
   ------------------------------------------------------------ */
.kontakt-popup {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	z-index: 1100;
	padding: 16px;
}

.kontakt-popup--open {
	display: flex;
	animation: todoFadeIn 0.18s ease;
}

.kontakt-popup-inner {
	position: relative;
	width: 100%;
	max-width: 420px;
	max-height: 80vh;
	overflow-y: auto;
	background: #fff;
	color: #1f2937;
	border-radius: 16px;
	padding: 22px 22px 18px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
	border: 1px solid rgba(15, 23, 42, 0.06);
}

.kontakt-popup-title {
	margin: 0 0 12px 0;
	font-size: 17px;
	font-weight: 700;
}

.kontakt-popup-entry {
	padding: 10px 0;
	border-bottom: 1px solid #eef0f3;
	text-align: left;
}

.kontakt-popup-entry:last-child {
	border-bottom: none;
}

.kontakt-popup-row {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.kontakt-copy-btn {
	min-height: 32px;
	padding: 4px 10px;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #f7f8fa;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.kontakt-copy-btn:hover {
	background: #fff;
	border-color: #0078d4;
}

/* ============================================================
   ToDo-Sheet / Modal — State of the Art
   ------------------------------------------------------------ */
.todo-sheet {
	--ts-bg: #ffffff;
	--ts-bg-soft: #f7f8fa;
	--ts-border: #e5e7eb;
	--ts-border-strong: #d1d5db;
	--ts-text: #111827;
	--ts-text-muted: #6b7280;
	--ts-accent: #0078d4;
	--ts-accent-soft: #e6f1fb;
	--ts-radius: 18px;
	--ts-radius-sm: 12px;
	--ts-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);

	position: fixed;
	top: 0;
	right: 0;
	bottom: var(--footer-height, 80px);
	left: 0;
	z-index: 1050;
	display: none;
	align-items: flex-end;
	justify-content: center;
}

.todo-sheet--open {
	display: flex;
	animation: todoFadeIn 0.2s ease;
}

@keyframes todoFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes todoSlideUp {
	from { transform: translateY(28px); opacity: 0.6; }
	to { transform: translateY(0); opacity: 1; }
}

.todo-sheet-open {
	overflow: hidden;
}

.todo-sheet-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.todo-sheet-content {
	position: relative;
	width: 100%;
	max-height: 92vh;
	background: var(--ts-bg);
	color: var(--ts-text);
	border-radius: 20px 20px 0 0;
	box-shadow: var(--ts-shadow);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: todoSlideUp 0.22s ease;
	border: 1px solid var(--ts-border);
	border-bottom: none;
}

.todo-sheet-handle {
	width: 48px;
	height: 5px;
	border-radius: 3px;
	background: #d1d5db;
	margin: 10px auto 0;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.todo-sheet {
		align-items: center;
	}

	.todo-sheet-content {
		max-width: 96vw;
		width: min(1180px, 96vw);
		max-height: 88vh;
		border-radius: var(--ts-radius);
		border: 1px solid var(--ts-border);
	}

	.todo-sheet-handle {
		display: none;
	}
}

/* Header */
.todo-sheet-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 14px;
	border-bottom: 1px solid var(--ts-border);
	background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
	flex-shrink: 0;
}

.todo-sheet-header-text {
	min-width: 0;
}

.todo-sheet-eyebrow {
	display: block;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ts-text-muted);
	margin-bottom: 1px;
}

.todo-sheet-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--ts-text);
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: min(700px, 60vw);
}

.todo-sheet-header-actions {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
}

.todo-sheet-iconbtn {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--ts-border);
	background: var(--ts-bg);
	color: var(--ts-text-muted);
	font-weight: 700;
	font-size: 14px;
	cursor: pointer;
	transition: all 0.12s ease;
}

.todo-sheet-iconbtn:hover {
	background: var(--ts-accent);
	border-color: var(--ts-accent);
	color: #fff;
}

.todo-sheet-close {
	position: relative;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	border: 1px solid var(--ts-border);
	background: var(--ts-bg);
	color: var(--ts-text-muted);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.12s ease;
}

.todo-sheet-close:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #b91c1c;
}

/* Master/Detail-Grid */
.todo-master-detail-grid {
	display: grid;
	grid-template-columns: 1fr;
	min-height: 50vh;
	flex: 1;
	overflow: hidden;
}

@media (min-width: 1024px) {
	.todo-master-detail-grid {
		grid-template-columns: minmax(300px, 380px) 1fr;
	}
}

.todo-pane {
	overflow: auto;
	padding: 10px 14px;
	background: var(--ts-bg);
}

.todo-pane-list {
	background: var(--ts-bg-soft);
	display: flex;
	flex-direction: column;
	gap: 8px;
}

@media (min-width: 1024px) {
	.todo-pane-list {
		border-right: 1px solid var(--ts-border);
	}
}

.todo-sheet--mobile-detail .todo-pane-list {
	display: none;
}

@media (min-width: 1024px) {
	.todo-sheet--mobile-detail .todo-pane-list {
		display: flex;
	}
}

.todo-pane-list-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.todo-btn-new {
	width: 100%;
	min-height: 38px;
	border-radius: 10px;
	font-weight: 600;
}

.todo-mobile-back {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 4px;
	min-height: 36px;
	border-radius: 999px;
	background: var(--ts-bg-soft);
	border: 1px solid var(--ts-border);
	color: var(--ts-text);
	padding: 0 14px;
	font-weight: 500;
	cursor: pointer;
}

@media (min-width: 1024px) {
	.todo-mobile-back {
		display: none;
	}
}

/* Suche */
.todo-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--ts-bg);
	border: 1px solid var(--ts-border);
	border-radius: 999px;
	padding: 0 14px;
	min-height: 40px;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.todo-search-wrap:focus-within {
	border-color: var(--ts-accent);
	box-shadow: 0 0 0 3px var(--ts-accent-soft);
}

.todo-search-icon {
	color: var(--ts-text-muted);
	margin-right: 8px;
	font-size: 14px;
}

.todo-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 14px;
	min-width: 0;
	padding: 8px 0;
}

/* Liste */
.todo-list-inner {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-bottom: 8px;
}

.todo-card {
	position: relative;
	display: block;
	width: 100%;
	text-align: left;
	padding: 12px 14px 12px 22px;
	border: 1px solid var(--ts-border);
	border-radius: var(--ts-radius-sm);
	background: var(--ts-bg);
	cursor: pointer;
	transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
	overflow: hidden;
}

.todo-card::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--c, var(--ts-border-strong));
}

.todo-card:hover {
	border-color: var(--ts-border-strong);
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
	transform: translateY(-1px);
}

.todo-card--active {
	border-color: var(--ts-accent);
	background: var(--ts-accent-soft);
	box-shadow: 0 4px 14px rgba(0, 120, 212, 0.18);
}

.todo-card--done {
	opacity: 0.6;
}

.todo-card--done .todo-card-title {
	text-decoration: line-through;
}

.todo-card--overdue {
	border-color: rgba(220, 38, 38, 0.35);
}

.todo-card-title {
	display: block;
	font-weight: 600;
	color: var(--ts-text);
	margin-bottom: 6px;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.todo-card-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	color: var(--ts-text-muted);
}

/* Pills (statt todo-status-badge / todo-prio-badge) */
.todo-status-badge,
.todo-prio-badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	background: color-mix(in srgb, var(--c, #6b7280) 12%, #ffffff);
	color: color-mix(in srgb, var(--c, #6b7280) 65%, #1f2937);
	border: 1px solid color-mix(in srgb, var(--c, #6b7280) 30%, #ffffff);
	white-space: nowrap;
}

.todo-status-badge::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--c, currentColor);
}

.todo-status-badge--danger {
	background: #fee2e2;
	color: #991b1b;
	border-color: #fecaca;
}

.todo-status-badge--danger::before {
	background: #dc2626;
}

.todo-card-due {
	color: var(--ts-text-muted);
}

.todo-card--overdue .todo-card-due {
	color: #b91c1c;
	font-weight: 600;
}

/* Detail-Pane */
.todo-pane-detail {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.todo-detail-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 0;
}

.todo-shortcut-hint {
	font-size: 12px;
	color: var(--ts-text-muted);
}

.todo-shortcut-hint kbd {
	display: inline-block;
	background: var(--ts-bg-soft);
	border: 1px solid var(--ts-border);
	border-radius: 4px;
	padding: 1px 6px;
	font-size: 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	margin: 0 1px;
}

.todo-detail-section {
	background: var(--ts-bg);
	border: 1px solid var(--ts-border);
	border-radius: var(--ts-radius-sm);
	padding: 10px 12px;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.todo-edit-form > * + * {
	margin-top: 2px;
}

.todo-field-label {
	display: block;
	font-weight: 600;
	margin-top: 8px;
	margin-bottom: 3px;
	font-size: 11px;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--ts-text-muted);
}

.todo-field-label:first-child {
	margin-top: 0;
}

.todo-input,
.todo-select,
.todo-textarea {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid var(--ts-border);
	border-radius: 8px;
	font-size: 14px;
	background: var(--ts-bg);
	color: var(--ts-text);
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.todo-input:focus,
.todo-select:focus,
.todo-textarea:focus {
	outline: none;
	border-color: var(--ts-accent);
	box-shadow: 0 0 0 3px var(--ts-accent-soft);
}

.todo-input--title {
	font-size: 15px;
	font-weight: 600;
	padding: 10px 12px;
}

.todo-textarea {
	resize: vertical;
	min-height: 60px;
	line-height: 1.4;
}

.todo-field-row {
	display: flex;
	align-items: flex-start;
	gap: 6px;
}

.todo-field-row--stack {
	flex-direction: column;
	align-items: stretch;
}

.todo-field-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 8px;
	margin-top: 8px;
}

/* Audio-Button (Mikrofon) */
.audio-record-btn--inline {
	min-width: 40px;
	min-height: 40px;
	padding: 0;
	flex-shrink: 0;
	border-radius: 999px;
	border: 1px solid var(--ts-border);
	background: var(--ts-bg);
	color: var(--ts-text);
	cursor: pointer;
	font-size: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.12s ease;
}

.audio-record-btn--inline:hover {
	border-color: var(--ts-accent);
	color: var(--ts-accent);
}

.audio-record-btn--inline.recording {
	background: #dc2626;
	border-color: #dc2626;
	color: #fff;
	animation: todoPulse 1.2s ease-in-out infinite;
}

.audio-record-btn--inline.processing {
	background: #f59e0b;
	border-color: #f59e0b;
	color: #fff;
}

@keyframes todoPulse {
	0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.45); }
	70% { box-shadow: 0 0 0 12px rgba(220, 38, 38, 0); }
	100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* Kommentare */
.todo-comments-heading {
	margin: 0 0 8px 0;
	font-size: 13px;
	font-weight: 700;
	color: var(--ts-text);
	letter-spacing: -0.005em;
}

.todo-comment-log {
	max-height: 200px;
	overflow-y: auto;
	border: 1px solid var(--ts-border);
	border-radius: 8px;
	padding: 8px;
	background: var(--ts-bg-soft);
	margin-bottom: 8px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.todo-comment-empty {
	margin: 4px 0;
	color: var(--ts-text-muted);
	font-style: italic;
	font-size: 13px;
	text-align: center;
}

.todo-comment-row {
	position: relative;
	background: var(--ts-bg);
	border: 1px solid var(--ts-border);
	border-radius: 10px;
	padding: 8px 10px 8px 12px;
	font-size: 13px;
	box-shadow: 0 1px 1px rgba(15, 23, 42, 0.02);
}

.todo-comment-row::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 3px;
	border-radius: 12px 0 0 12px;
	background: var(--ts-accent);
}

.todo-comment-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
	padding-right: 36px;
}

.todo-comment-author {
	font-weight: 600;
	color: var(--ts-text);
	font-size: 13px;
}

.todo-comment-row small {
	display: inline-block;
	color: var(--ts-text-muted);
	font-size: 11px;
}

.todo-comment-body {
	margin-top: 2px;
	white-space: pre-wrap;
	color: var(--ts-text);
	line-height: 1.5;
}

.todo-comment-row--system {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-style: normal;
	color: var(--ts-text-muted);
	font-size: 12px;
	background: transparent;
	border: none;
	padding: 4px 8px 4px 14px;
	box-shadow: none;
}

.todo-comment-row--system::before {
	background: var(--ts-border-strong);
	width: 2px;
}

.todo-comment-row--system small {
	color: var(--ts-text-muted);
}

.todo-comment-row--system strong {
	color: var(--ts-text);
	font-weight: 600;
}

.todo-comment-system-icon {
	display: inline-flex;
	width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--ts-bg);
	border: 1px solid var(--ts-border);
	color: var(--ts-text-muted);
	font-size: 11px;
}

.todo-comment-del {
	position: absolute;
	top: 8px;
	right: 8px;
	min-height: 26px;
	padding: 2px 8px !important;
	font-size: 11px !important;
	border-radius: 999px !important;
	border: 1px solid var(--ts-border) !important;
	background: var(--ts-bg) !important;
	color: var(--ts-text-muted) !important;
}

.todo-comment-del:hover {
	background: #fee2e2 !important;
	border-color: #fca5a5 !important;
	color: #b91c1c !important;
}

.todo-comment-compose {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.todo-comment-compose-actions {
	display: flex;
	justify-content: flex-end;
}

/* Detail-Aktionen */
.todo-detail-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 2px;
}

.todo-detail-actions .button {
	min-height: 36px;
	border-radius: 999px;
	padding: 0 16px;
	font-weight: 600;
}

.button-primary {
	background: #0078d4 !important;
	color: #fff !important;
	border: 1px solid #0078d4 !important;
}

.button-danger {
	background: #dc2626 !important;
	color: #fff !important;
	border: 1px solid #dc2626 !important;
}

.button-small {
	padding: 4px 10px !important;
	font-size: 12px !important;
}

/* Mobile Footer (Speichern) */
.todo-sheet-footer-mobile {
	display: flex;
	justify-content: stretch;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)) 14px;
	border-top: 1px solid var(--ts-border);
	background: var(--ts-bg);
	flex-shrink: 0;
}

.todo-sheet-footer-save {
	flex: 1;
	min-height: 48px;
	border-radius: 12px;
	font-weight: 600;
}

@media (min-width: 1024px) {
	.todo-sheet-footer-mobile {
		display: none;
	}
}

/* Shortcut-Overlay */
.todo-shortcut-overlay {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: none;
	align-items: center;
	justify-content: center;
	background: rgba(15, 23, 42, 0.55);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	padding: 16px;
}

.todo-shortcut-overlay--open {
	display: flex;
	animation: todoFadeIn 0.18s ease;
}

.todo-shortcut-overlay-inner {
	position: relative;
	background: #fff;
	border-radius: 16px;
	padding: 22px 26px;
	max-width: 440px;
	width: 100%;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
	border: 1px solid var(--ts-border);
}

.todo-shortcut-title {
	margin: 0 0 14px 0;
	font-size: 17px;
	font-weight: 700;
}

.todo-shortcut-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.todo-shortcut-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}

.todo-shortcut-list kbd {
	display: inline-block;
	min-width: 26px;
	text-align: center;
	background: #f7f8fa;
	border: 1px solid #e5e7eb;
	border-bottom-width: 2px;
	border-radius: 6px;
	padding: 2px 8px;
	font-size: 12px;
	font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
	color: #1f2937;
}

.todo-shortcut-list span {
	color: #4b5563;
}

/* Über dem fixierten App-Footer (--footer-height per footer.js, Safe Area wie .footer) */
.todo-fab {
	position: fixed;
	right: 18px;
	bottom: calc(var(--footer-height, 80px) + constant(safe-area-inset-bottom) + 16px);
	bottom: calc(var(--footer-height, 80px) + env(safe-area-inset-bottom, 0px) + 16px);
	z-index: 1600;
	min-width: 56px;
	min-height: 56px;
	border-radius: 50%;
	border: none;
	background: #0078d4;
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	box-shadow: 0 4px 16px rgba(0, 120, 212, 0.45);
}

@media (min-width: 1024px) {
	.todo-fab {
		min-width: 44px;
		min-height: 44px;
		font-size: 18px;
		right: 24px;
		bottom: calc(var(--footer-height, 80px) + constant(safe-area-inset-bottom) + 16px);
		bottom: calc(var(--footer-height, 80px) + env(safe-area-inset-bottom, 0px) + 16px);
	}
}

/* ============================================================
   ToDo-Übersicht – State of the Art (Master-Mandant 1)
   ------------------------------------------------------------ */

.todo-ue-wrap {
	--todo-bg: #ffffff;
	--todo-bg-soft: #f7f8fa;
	--todo-border: #e5e7eb;
	--todo-border-strong: #d1d5db;
	--todo-text: #111827;
	--todo-text-muted: #6b7280;
	--todo-accent: #0078d4;
	--todo-accent-soft: #e6f1fb;
	--todo-radius: 14px;
	--todo-radius-sm: 10px;
	--todo-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
	--todo-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
	--todo-shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.10);
	--todo-warn: #c2410c;
	--todo-warn-bg: #fff7ed;
	color: var(--todo-text);
	padding-bottom: calc(var(--footer-height, 80px) + env(safe-area-inset-bottom, 0px) + 96px);
}

/* Header */
.todo-ue-header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	margin: 4px 0 14px 0;
}

.todo-ue-header-text {
	min-width: 0;
}

.todo-ue-h1 {
	font-size: 26px;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0;
	color: var(--todo-text);
}

.todo-ue-subtitle {
	margin: 4px 0 0 0;
	color: var(--todo-text-muted);
	font-size: 14px;
}

.todo-ue-header-cta {
	min-height: 44px;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 600;
}

/* Statistik-Kacheln */
.todo-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 12px;
	margin: 0 0 16px 0;
}

.todo-stat {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	border-radius: var(--todo-radius);
	background: var(--todo-bg);
	border: 1px solid var(--todo-border);
	box-shadow: var(--todo-shadow-sm);
	text-decoration: none;
	color: inherit;
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
	position: relative;
	overflow: hidden;
}

.todo-stat::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--todo-border-strong);
}

.todo-stat:hover {
	transform: translateY(-1px);
	box-shadow: var(--todo-shadow);
	border-color: var(--todo-border-strong);
}

.todo-stat.is-active {
	border-color: var(--todo-accent);
	box-shadow: 0 0 0 2px var(--todo-accent-soft);
}

.todo-stat-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: var(--todo-text-muted);
}

.todo-stat-value {
	font-size: 28px;
	font-weight: 700;
	line-height: 1.1;
	color: var(--todo-text);
}

.todo-stat--meine::before { background: #7c3aed; }
.todo-stat--offen::before { background: #0078d4; }
.todo-stat--bearbeitung::before { background: #f0ad4e; }
.todo-stat--warten::before { background: #6b7280; }
.todo-stat--ueberfaellig::before { background: #dc2626; }
.todo-stat--erledigt::before { background: #16a34a; }
.todo-stat--ueberfaellig .todo-stat-value { color: #b91c1c; }

/* Filter-Card */
.todo-ue-filter-form {
	margin: 0 0 12px 0;
}

.todo-ue-filter-card {
	background: var(--todo-bg);
	border: 1px solid var(--todo-border);
	border-radius: var(--todo-radius);
	box-shadow: var(--todo-shadow-sm);
	padding: 14px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.todo-ue-search-row {
	display: grid;
	grid-template-columns: 1fr minmax(200px, 280px) auto;
	gap: 10px;
	align-items: stretch;
}

@media (max-width: 720px) {
	.todo-ue-search-row {
		grid-template-columns: 1fr;
	}
}

.todo-ue-search-label {
	position: relative;
	display: flex;
	align-items: center;
	background: var(--todo-bg-soft);
	border: 1px solid var(--todo-border);
	border-radius: 999px;
	padding: 0 14px;
	min-height: 44px;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.todo-ue-search-label:focus-within {
	border-color: var(--todo-accent);
	box-shadow: 0 0 0 3px var(--todo-accent-soft);
	background: #fff;
}

.todo-ue-search-icon {
	margin-right: 8px;
	color: var(--todo-text-muted);
	font-size: 14px;
}

.todo-ue-search-input {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 15px;
	min-width: 0;
	padding: 8px 0;
}

.todo-ue-mandant-select {
	min-height: 44px;
	border-radius: 10px;
	border: 1px solid var(--todo-border);
	padding: 0 12px;
	background: var(--todo-bg-soft);
}

.todo-ue-filter-submit {
	min-height: 44px;
	border-radius: 10px;
	padding: 0 18px;
	font-weight: 600;
}

.todo-ue-chip-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.todo-ue-chip-sep {
	width: 1px;
	height: 22px;
	background: var(--todo-border);
	margin: 0 4px;
}

.todo-chip-bulk-group {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
}

.todo-chip-bulk-btn {
	border: 1px dashed var(--todo-border);
	background: transparent;
	color: var(--todo-text-muted);
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	min-height: 32px;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.todo-chip-bulk-btn:hover {
	border-color: var(--todo-border-strong);
	background: var(--todo-bg-soft);
	color: var(--todo-text);
}

.todo-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--todo-border);
	background: var(--todo-bg);
	color: var(--todo-text);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	min-height: 32px;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}

.todo-chip:hover {
	border-color: var(--todo-border-strong);
	background: var(--todo-bg-soft);
}

.todo-chip.is-active {
	background: var(--c, var(--todo-accent));
	border-color: var(--c, var(--todo-accent));
	color: #fff;
	box-shadow: 0 4px 12px rgba(0, 120, 212, 0.18);
}

.todo-chip.is-active .todo-chip-dot {
	background: #fff;
}

.todo-chip-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c, currentColor);
}

.todo-toggle-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border: 1px solid var(--todo-border);
	background: var(--todo-bg);
	color: var(--todo-text);
	border-radius: 999px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	min-height: 32px;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.todo-toggle-pill input {
	display: none;
}

.todo-toggle-pill.is-active {
	background: var(--todo-accent);
	border-color: var(--todo-accent);
	color: #fff;
}

.todo-toggle-pill--warn.is-active {
	background: #dc2626;
	border-color: #dc2626;
}

.todo-ue-clear-link {
	margin-left: auto;
	font-size: 13px;
	color: var(--todo-text-muted);
	text-decoration: underline dotted;
}

.todo-ue-clear-link:hover {
	color: var(--todo-text);
}

/* Result-Meta */
.todo-ue-result-meta {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 4px;
	margin: 4px 0 8px 0;
	font-size: 13px;
	color: var(--todo-text-muted);
}

/* Bulk-Bar (sticky am oberen Rand) */
.todo-bulk-bar {
	display: none;
	position: sticky;
	top: 8px;
	z-index: 50;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	padding: 10px 14px;
	background: #0f172a;
	color: #fff;
	border: none;
	border-radius: 999px;
	box-shadow: var(--todo-shadow-lg);
	margin: 4px auto 12px auto;
	max-width: max-content;
}

.todo-bulk-bar--visible {
	display: inline-flex;
}

.todo-bulk-count {
	font-weight: 600;
}

.todo-bulk-bar select,
.todo-bulk-bar .button {
	min-height: 36px;
	border-radius: 999px;
	padding: 0 14px;
	font-size: 13px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	background: rgba(255, 255, 255, 0.08);
	color: #fff;
	cursor: pointer;
}

.todo-bulk-bar .button-danger {
	background: #dc2626;
	border-color: #dc2626;
}

/* Empty-State */
.todo-ue-empty {
	background: var(--todo-bg);
	border: 1px dashed var(--todo-border-strong);
	border-radius: var(--todo-radius);
	padding: 36px 20px;
	text-align: center;
	color: var(--todo-text-muted);
	margin: 12px 0;
}

.todo-ue-empty-icon {
	font-size: 42px;
	margin-bottom: 6px;
}

.todo-ue-empty-title {
	margin: 0 0 6px 0;
	color: var(--todo-text);
	font-weight: 600;
}

.todo-ue-empty-text {
	margin: 0 auto 12px auto;
	max-width: 480px;
	font-size: 14px;
}

/* Tabelle */
.todo-table-wrap {
	overflow-x: auto;
	width: 100%;
	background: var(--todo-bg);
	border: 1px solid var(--todo-border);
	border-radius: var(--todo-radius);
	box-shadow: var(--todo-shadow-sm);
}

.todo-ue-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 14px;
}

.todo-ue-table thead th {
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--todo-text-muted);
	padding: 12px 10px;
	border-bottom: 1px solid var(--todo-border);
	background: var(--todo-bg-soft);
	position: sticky;
	top: 0;
	z-index: 1;
}

.todo-ue-table thead th:first-child {
	border-top-left-radius: var(--todo-radius);
}

.todo-ue-table thead th:last-child {
	border-top-right-radius: var(--todo-radius);
}

.todo-ue-table tbody td {
	padding: 12px 10px;
	border-bottom: 1px solid var(--todo-border);
	vertical-align: middle;
}

.todo-ue-table tbody tr:last-child td {
	border-bottom: none;
}

.todo-ue-table tbody tr {
	transition: background 0.12s ease;
}

.todo-ue-table tbody tr:hover {
	background: var(--todo-accent-soft);
}

.todo-ue-table tbody tr.todo-row-overdue {
	background: linear-gradient(90deg, rgba(220, 38, 38, 0.04) 0%, transparent 30%);
}

.todo-ue-table tbody tr.todo-row-done {
	opacity: 0.62;
}

.todo-ue-table tbody tr.todo-row-done .todo-row-title-btn {
	text-decoration: line-through;
}

.todo-ue-col-check {
	width: 40px;
}

.todo-ue-col-act {
	width: 50px;
	text-align: right;
}

.todo-ue-check-label {
	display: inline-flex;
	min-width: 28px;
	min-height: 28px;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.todo-mandant-name {
	display: block;
	font-weight: 600;
}

.todo-mandant-id {
	display: block;
	font-size: 11px;
	color: var(--todo-text-muted);
}

.todo-row-title-btn {
	background: none;
	border: none;
	padding: 0;
	margin: 0;
	font: inherit;
	color: var(--todo-text);
	font-weight: 600;
	text-align: left;
	cursor: pointer;
	max-width: 320px;
	white-space: normal;
	overflow-wrap: anywhere;
	line-height: 1.35;
}

.todo-row-title-btn:hover {
	color: var(--todo-accent);
	text-decoration: underline;
}

/* Pills */
.todo-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	background: color-mix(in srgb, var(--c, #6b7280) 12%, #ffffff);
	color: color-mix(in srgb, var(--c, #6b7280) 65%, #1f2937);
	border: 1px solid color-mix(in srgb, var(--c, #6b7280) 30%, #ffffff);
	white-space: nowrap;
}

.todo-pill-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--c, currentColor);
}

.todo-pill--prio {
	background: color-mix(in srgb, var(--c, #6b7280) 14%, #ffffff);
	color: color-mix(in srgb, var(--c, #6b7280) 70%, #1f2937);
}

/* Inline-Status: Pill enthält Select */
.todo-pill--status {
	padding: 2px 4px 2px 10px;
}

.todo-pill--status .todo-inline-status {
	border: none;
	background: transparent;
	font: inherit;
	font-weight: 600;
	color: inherit;
	padding: 4px 24px 4px 4px;
	cursor: pointer;
	border-radius: 999px;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
	background-position: calc(100% - 12px) 50%, calc(100% - 7px) 50%;
	background-size: 5px 5px, 5px 5px;
	background-repeat: no-repeat;
}

.todo-pill--status .todo-inline-status:focus {
	outline: 2px solid var(--c, var(--todo-accent));
	outline-offset: 1px;
}

/* Fälligkeit */
.todo-due-date {
	display: block;
	font-weight: 600;
}

.todo-due-rel {
	display: block;
	font-size: 11px;
	color: var(--todo-text-muted);
}

.todo-ue-overdue,
.todo-ue-overdue .todo-due-date,
.todo-ue-overdue .todo-due-rel {
	color: #b91c1c;
}

.todo-due-empty {
	color: var(--todo-text-muted);
}

/* Avatar */
.todo-assignee {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-width: 0;
}

.todo-assignee-name {
	font-size: 13px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.todo-assignee--empty .todo-assignee-name {
	color: var(--todo-text-muted);
	font-style: italic;
}

.todo-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--c, var(--todo-text-muted));
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	flex-shrink: 0;
}

.todo-avatar--sm {
	width: 24px;
	height: 24px;
	font-size: 10px;
}

.todo-avatar--empty {
	background: var(--todo-border-strong);
	color: var(--todo-text-muted);
}

/* Icon-Button (Pfeil) */
.todo-icon-btn {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: 1px solid var(--todo-border);
	background: var(--todo-bg);
	color: var(--todo-text-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.12s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.todo-icon-btn:hover {
	background: var(--todo-accent);
	border-color: var(--todo-accent);
	color: #fff;
}

/* Mobile-Karten */
.todo-cards-mobile {
	display: none;
	flex-direction: column;
	gap: 10px;
}

@media (max-width: 900px) {
	.todo-ue-desktop-table {
		display: none;
	}

	.todo-cards-mobile {
		display: flex;
	}

	.todo-ue-h1 {
		font-size: 22px;
	}

	.todo-stats {
		grid-template-columns: repeat(2, 1fr);
	}
}

.todo-card-ue {
	position: relative;
	background: var(--todo-bg);
	border: 1px solid var(--todo-border);
	border-radius: var(--todo-radius);
	padding: 14px 14px 14px 50px;
	box-shadow: var(--todo-shadow-sm);
	text-align: left;
	overflow: hidden;
}

.todo-card-ue::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 4px;
	background: var(--c, var(--todo-border-strong));
}

.todo-card-ue.todo-row-done {
	opacity: 0.65;
}

.todo-card-ue.todo-row-done .todo-row-title-btn {
	text-decoration: line-through;
}

.todo-card-ue.todo-row-overdue {
	border-color: rgba(220, 38, 38, 0.35);
}

.todo-card-ue-check-wrap {
	position: absolute;
	left: 12px;
	top: 16px;
	min-width: 32px;
	min-height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.todo-card-ue-head {
	display: flex;
	align-items: baseline;
	gap: 6px;
	font-size: 12px;
	color: var(--todo-text-muted);
	margin-bottom: 4px;
}

.todo-card-ue-head .todo-mandant-name {
	display: inline;
	font-size: 13px;
	font-weight: 600;
	color: var(--todo-text);
}

.todo-card-ue-head .todo-mandant-id {
	display: inline;
	font-size: 11px;
}

.todo-card-ue-title {
	margin: 4px 0 8px 0;
}

.todo-card-ue-title .todo-row-title-btn {
	font-size: 15px;
	max-width: 100%;
}

.todo-card-ue-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	margin-bottom: 8px;
}

.todo-card-due {
	font-size: 12px;
	color: var(--todo-text-muted);
	font-weight: 500;
}

.todo-card-due.todo-ue-overdue {
	color: #b91c1c;
	font-weight: 600;
}

.todo-card-ue-assignee {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--todo-text);
}

/* Schnell-anlegen-Card (vor FAB) */
.todo-ue-fab-card {
	margin: 16px 0;
	padding: 14px 16px;
	background: var(--todo-bg);
	border: 1px solid var(--todo-border);
	border-radius: var(--todo-radius);
	box-shadow: var(--todo-shadow-sm);
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 520px;
}

.todo-ue-fab-card-head {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.todo-ue-fab-card-title {
	font-weight: 700;
	color: var(--todo-text);
	font-size: 15px;
}

.todo-ue-fab-card-hint {
	font-size: 12px;
	color: var(--todo-text-muted);
}

.todo-fab-mandant-search {
	width: 100%;
	box-sizing: border-box;
	min-height: 40px;
	border-radius: 10px;
	padding: 0 12px;
	border: 1px solid var(--todo-border);
	background: var(--todo-bg-soft);
}

.todo-fab-mandant-search:focus {
	outline: none;
	border-color: var(--todo-accent);
	box-shadow: 0 0 0 3px var(--todo-accent-soft);
	background: #fff;
}

.todo-ue-fab-card .todo-select {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	min-height: 40px;
	border-radius: 10px;
	border: 1px solid var(--todo-border);
	padding: 0 12px;
	background: var(--todo-bg-soft);
}

/* ============================================================
   Mandanten-Picker (öffnet sich für „Neues ToDo“)
   ------------------------------------------------------------ */
.todo-picker {
	position: fixed;
	inset: 0;
	z-index: 1090;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.todo-picker--open {
	display: flex;
	animation: todoFadeIn 0.18s ease;
}

.todo-picker-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.todo-picker-content {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: min(80vh, 720px);
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #111827;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.32);
	border: 1px solid #e5e7eb;
	overflow: hidden;
	animation: todoSlideUp 0.22s ease;
}

.todo-picker-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 16px;
	border-bottom: 1px solid #e5e7eb;
	background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
	flex-shrink: 0;
}

.todo-picker-header-text {
	min-width: 0;
}

.todo-picker-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 2px;
}

.todo-picker-title {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -0.005em;
	color: #111827;
}

.todo-picker-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	margin: 12px 16px 4px;
	background: #f7f8fa;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	padding: 0 14px;
	min-height: 44px;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
	flex-shrink: 0;
}

.todo-picker-search-wrap:focus-within {
	border-color: #0078d4;
	box-shadow: 0 0 0 3px #e6f1fb;
	background: #fff;
}

.todo-picker-search {
	flex: 1;
	border: none;
	outline: none;
	background: transparent;
	font-size: 15px;
	min-width: 0;
	padding: 8px 0;
}

.todo-picker-list {
	flex: 1;
	overflow-y: auto;
	padding: 8px 16px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.todo-picker-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid transparent;
	border-radius: 12px;
	background: transparent;
	color: #111827;
	cursor: pointer;
	font: inherit;
	text-align: left;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.todo-picker-item:hover,
.todo-picker-item.is-active {
	background: #e6f1fb;
	border-color: #b9dcf6;
}

.todo-picker-item:focus-visible {
	outline: none;
	background: #e6f1fb;
	border-color: #0078d4;
	box-shadow: 0 0 0 2px #b9dcf6;
}

.todo-picker-item-name {
	font-weight: 600;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.todo-picker-item-id {
	color: #6b7280;
	font-size: 12px;
	font-weight: 500;
	flex-shrink: 0;
}

.todo-picker-empty {
	margin: 0;
	padding: 24px 20px;
	text-align: center;
	color: #6b7280;
	font-size: 14px;
}

.todo-picker-hint {
	margin: 0;
	padding: 10px 16px 12px;
	border-top: 1px solid #e5e7eb;
	background: #f7f8fa;
	font-size: 11px;
	color: #6b7280;
	text-align: center;
	flex-shrink: 0;
}

@media (max-width: 600px) {
	.todo-picker {
		align-items: flex-end;
		padding: 0;
	}

	.todo-picker-content {
		max-width: 100%;
		max-height: 92vh;
		border-radius: 18px 18px 0 0;
	}
}

/* ToDo-Übersicht: Kundendaten-Modal & Mandanten-Klick */
.todo-ue-header-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	justify-content: flex-end;
}

.todo-ue-kunde-header-btn {
	flex-shrink: 0;
}

.todo-ue-profil-search-btn {
	flex-shrink: 0;
}

.todo-mandant-kunde-btn {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	max-width: 100%;
	margin: 0;
	padding: 4px 6px;
	border: none;
	border-radius: 8px;
	background: transparent;
	font: inherit;
	color: inherit;
	text-align: left;
	cursor: pointer;
	transition: background 0.12s ease, box-shadow 0.12s ease;
}

.todo-mandant-kunde-btn:hover {
	background: color-mix(in srgb, var(--todo-accent, #0078d4) 12%, transparent);
	box-shadow: 0 0 0 1px color-mix(in srgb, var(--todo-accent, #0078d4) 35%, transparent);
}

.todo-mandant-kunde-btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--todo-accent, #0078d4) 35%, transparent);
}

.todo-mandant-kunde-btn .todo-mandant-name {
	font-weight: 600;
	text-decoration: underline;
	text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
	text-underline-offset: 3px;
}

.todo-mandant-kunde-btn .todo-mandant-id {
	font-size: 12px;
	font-weight: 600;
	color: #6b7280;
	text-decoration: none;
}

.todo-mandant-kunde-btn--card {
	width: 100%;
	justify-content: space-between;
	padding: 8px 10px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
}

.todo-kunde-modal {
	position: fixed;
	inset: 0;
	z-index: 1095;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
}

.todo-kunde-modal--open {
	display: flex;
	animation: todoFadeIn 0.18s ease;
}

.todo-kunde-modal--behind {
	display: none !important;
}

.todo-kunde-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.52);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.todo-kunde-modal-panel {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: min(88vh, 800px);
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #111827;
	border-radius: 18px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
	border: 1px solid #e5e7eb;
	overflow: hidden;
	animation: todoSlideUp 0.22s ease;
}

.todo-kunde-modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 14px 16px;
	border-bottom: 1px solid #e5e7eb;
	background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
	flex-shrink: 0;
}

.todo-kunde-modal-head-text {
	min-width: 0;
}

.todo-kunde-modal-eyebrow {
	display: block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #6b7280;
	margin-bottom: 2px;
}

.todo-kunde-modal-title {
	margin: 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.015em;
	color: #111827;
	word-break: break-word;
}

.todo-kunde-modal-body {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px 18px;
}

.todo-kunde-modal-loading,
.todo-kunde-modal-error,
.todo-kunde-modal-empty {
	margin: 0;
	font-size: 14px;
	color: #6b7280;
}

.todo-kunde-modal-error {
	color: #b91c1c;
	font-weight: 600;
}

.todo-kunde-modal-section + .todo-kunde-modal-section {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px dashed #e5e7eb;
}

.todo-kunde-modal-h3 {
	margin: 0 0 10px;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #374151;
}

.todo-kunde-meta-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.todo-kunde-meta-table th {
	width: 38%;
	max-width: 200px;
	padding: 8px 12px 8px 0;
	vertical-align: top;
	text-align: left;
	font-weight: 600;
	color: #6b7280;
	border-bottom: 1px solid #f3f4f6;
}

.todo-kunde-meta-table td {
	padding: 8px 0;
	vertical-align: top;
	border-bottom: 1px solid #f3f4f6;
	word-break: break-word;
}

.todo-kunde-table-wrap {
	overflow-x: auto;
	margin-top: 6px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
}

.todo-kunde-users-table {
	width: 100%;
	min-width: 520px;
	border-collapse: collapse;
	font-size: 13px;
}

.todo-kunde-users-table thead {
	background: #f9fafb;
}

.todo-kunde-users-table th,
.todo-kunde-users-table td {
	padding: 10px 12px;
	text-align: left;
	border-bottom: 1px solid #eef0f3;
	vertical-align: top;
}

.todo-kunde-users-table th {
	font-weight: 700;
	color: #374151;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.todo-kunde-users-table tbody tr:last-child td {
	border-bottom: none;
}

.todo-kunde-modal-link {
	color: #0078d4;
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.todo-kunde-modal-link:hover {
	color: #005a9e;
}

/* Kundenprofil (ToDo-Übersicht) – erweitertes Modal */
.todo-kunde-modal-panel--profil {
	max-width: min(880px, 96vw);
	max-height: min(90vh, 900px);
}

.todo-kunde-modal--profil .todo-kunde-modal-body {
	max-height: calc(90vh - 72px);
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.todo-kunde-profil-loading {
	margin: 0;
	padding: 24px 8px;
	text-align: center;
	color: #6b7280;
}

.todo-kunde-profil-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: space-between;
	gap: 14px;
	margin-bottom: 16px;
	padding: 14px 16px;
	border-radius: 14px;
	background: linear-gradient(135deg, color-mix(in srgb, var(--todo-accent, #0078d4) 10%, #fff) 0%, #f8fafc 55%, #fff 100%);
	border: 1px solid #e2e8f0;
}

.todo-kunde-profil-hero-name {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: #0f172a;
}

.todo-kunde-profil-hero-id {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}

.todo-kunde-profil-hero-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: flex-end;
	flex: 1;
	min-width: 200px;
}

.todo-kunde-profil-chip {
	display: inline-flex;
	align-items: center;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
	border: 1px solid transparent;
}

.todo-kunde-profil-chip--on {
	background: #ecfdf5;
	color: #047857;
	border-color: #a7f3d0;
}

.todo-kunde-profil-chip--off {
	background: #f1f5f9;
	color: #64748b;
	border-color: #e2e8f0;
}

.todo-kunde-profil-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	gap: 10px;
	margin-bottom: 16px;
}

.todo-kunde-profil-stat {
	padding: 12px 14px;
	border-radius: 12px;
	background: #fff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	text-align: center;
}

.todo-kunde-profil-stat-val {
	display: block;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.03em;
	color: #0f172a;
	line-height: 1.15;
}

.todo-kunde-profil-stat-lbl {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
}

.todo-kunde-profil-hint {
	margin: 0 0 16px;
	padding: 10px 12px;
	font-size: 13px;
	color: #92400e;
	background: #fffbeb;
	border: 1px solid #fde68a;
	border-radius: 10px;
}

.todo-kunde-profil-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 18px;
}

@media (max-width: 720px) {
	.todo-kunde-profil-grid {
		grid-template-columns: 1fr;
	}
}

.todo-kunde-profil-card {
	padding: 14px 16px;
	border-radius: 14px;
	background: #fff;
	border: 1px solid #e5e7eb;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.todo-kunde-profil-h3 {
	margin: 0 0 12px;
	font-size: 13px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #334155;
}

.todo-kunde-profil-h4 {
	margin: 16px 0 8px;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.todo-kunde-profil-meta {
	margin-bottom: 0;
}

.todo-kunde-profil-mtyp-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.todo-kunde-profil-mtyp {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	padding: 12px;
	border-radius: 12px;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	border: 1px solid #e2e8f0;
	min-height: 72px;
}

.todo-kunde-profil-mtyp-n {
	font-size: 22px;
	font-weight: 800;
	color: var(--todo-accent, #0078d4);
	letter-spacing: -0.02em;
}

.todo-kunde-profil-mtyp-l {
	font-size: 12px;
	font-weight: 600;
	color: #475569;
	line-height: 1.35;
}

.todo-kunde-profil-section {
	margin-bottom: 20px;
	padding-bottom: 4px;
	border-bottom: 1px dashed #e5e7eb;
}

.todo-kunde-profil-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.todo-kunde-profil-compose {
	margin-bottom: 14px;
	padding: 14px 16px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.todo-kunde-profil-compose-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 8px;
}

.todo-kunde-profil-notiz-ta {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	resize: vertical;
	min-height: 72px;
}

.todo-kunde-profil-compose-actions {
	margin-top: 10px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

.todo-kunde-profil-todo-actions {
	margin-bottom: 12px;
}

.todo-kunde-profil-after-compose {
	margin-bottom: 10px;
}

.todo-kunde-profil-geraet {
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}

.todo-kunde-profil-geraet-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	color: #64748b;
	margin-bottom: 6px;
}

.todo-kunde-profil-geraet-head strong {
	font-size: 13px;
	color: #0f172a;
}

.todo-kunde-profil-geraet-sn {
	font-size: 12px;
	color: #475569;
	margin-bottom: 6px;
}

.todo-kunde-profil-geraet-txt {
	font-size: 13px;
	color: #334155;
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.45;
}

.todo-kunde-profil-notiz {
	margin-top: 10px;
	padding: 12px 14px;
	border-radius: 12px;
	border: 1px solid #e5e7eb;
	background: #fff;
}

.todo-kunde-profil-notiz-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.todo-kunde-profil-notiz-user {
	font-weight: 700;
	font-size: 13px;
	color: #0f172a;
}

.todo-kunde-profil-notiz-time {
	font-size: 12px;
	color: #94a3b8;
}

.todo-kunde-profil-notiz-body {
	font-size: 14px;
	color: #334155;
	line-height: 1.5;
	white-space: pre-wrap;
	word-break: break-word;
}

.todo-kunde-profil-todos {
	min-width: 0;
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.todo-kunde-profil-todos th,
.todo-kunde-profil-todos td {
	padding: 8px 10px;
	text-align: left;
	border-bottom: 1px solid #f1f5f9;
	vertical-align: middle;
}

.todo-kunde-profil-todos thead {
	background: #f8fafc;
}

.todo-kunde-profil-todos thead th {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #64748b;
	font-weight: 800;
}

.todo-kunde-profil-td-ico {
	width: 1%;
	white-space: nowrap;
}

.todo-kunde-profil-appbadge {
	font-size: 10px;
	padding: 2px 6px;
}

.todo-kunde-profil-todo-meta {
	color: #475569;
	font-weight: 600;
}

.button-small.todo-kunde-profil-todo-open {
	padding: 4px 10px;
	font-size: 12px;
	border-radius: 8px;
}

@media (max-width: 600px) {
	.todo-kunde-modal {
		align-items: flex-end;
		padding: 0;
	}

	.todo-kunde-modal-panel {
		max-width: 100%;
		max-height: 92vh;
		border-radius: 18px 18px 0 0;
	}

	.todo-kunde-modal-panel--profil {
		max-width: 100%;
		border-radius: 18px 18px 0 0;
	}
}

/* Anhänge / Datei-Upload für ToDos */
.todo-files-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	margin-bottom: 10px;
}

.todo-file-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid var(--ts-border, #e5e7eb);
	border-radius: 10px;
	background: var(--ts-bg, #fff);
	transition: border-color 0.12s ease, background 0.12s ease;
}

.todo-file-row:hover {
	border-color: var(--ts-border-strong, #d1d5db);
	background: var(--ts-bg-soft, #f7f8fa);
}

.todo-file-row--app {
	border-color: rgba(0, 120, 212, 0.3);
	background: linear-gradient(135deg, rgba(0, 120, 212, 0.05), rgba(79, 155, 245, 0.03));
}

.todo-file-icon {
	font-size: 22px;
	line-height: 1;
	flex-shrink: 0;
}

.todo-file-info {
	flex: 1;
	min-width: 0;
}

.todo-file-name {
	display: block;
	color: var(--ts-text, #111827);
	font-weight: 600;
	font-size: 13px;
	text-decoration: none;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.todo-file-name:hover {
	color: var(--ts-accent, #0078d4);
	text-decoration: underline;
}

.todo-file-meta {
	font-size: 11px;
	color: var(--ts-text-muted, #6b7280);
	margin-top: 2px;
}

.todo-file-del {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid var(--ts-border, #e5e7eb);
	background: var(--ts-bg, #fff);
	color: var(--ts-text-muted, #6b7280);
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	transition: all 0.12s ease;
}

.todo-file-del:hover {
	background: #fee2e2;
	border-color: #fca5a5;
	color: #b91c1c;
}

.todo-files-dropzone {
	position: relative;
	border: 2px dashed var(--ts-border-strong, #d1d5db);
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	background: var(--ts-bg-soft, #f7f8fa);
	transition: border-color 0.12s ease, background 0.12s ease;
}

.todo-files-dropzone--over {
	border-color: var(--ts-accent, #0078d4);
	background: var(--ts-accent-soft, #e6f1fb);
}

.todo-files-input {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.todo-files-dropzone-text {
	color: var(--ts-text-muted, #6b7280);
	font-size: 13px;
}

.todo-files-dropzone-icon {
	font-size: 22px;
	margin-right: 4px;
}

.todo-files-pick-btn {
	background: none;
	border: none;
	color: var(--ts-accent, #0078d4);
	font: inherit;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	margin: 0;
	text-decoration: underline;
}

.todo-files-pick-btn:hover {
	color: #0067b8;
}

.todo-files-dropzone-hint {
	display: block;
	margin-top: 4px;
	font-size: 11px;
	color: var(--ts-text-muted, #6b7280);
}

.todo-files-progress {
	margin-top: 10px;
	display: flex;
	align-items: center;
	gap: 10px;
	justify-content: center;
}

.todo-files-progress-text {
	font-size: 12px;
	color: var(--ts-text-muted, #6b7280);
}

.todo-files-progress-bar {
	flex: 1;
	max-width: 240px;
	height: 8px;
	border-radius: 999px;
	overflow: hidden;
	border: none;
	background: var(--ts-border, #e5e7eb);
}

.todo-files-progress-bar::-webkit-progress-bar {
	background: var(--ts-border, #e5e7eb);
	border-radius: 999px;
}

.todo-files-progress-bar::-webkit-progress-value {
	background: var(--ts-accent, #0078d4);
	border-radius: 999px;
}

.todo-files-progress-bar::-moz-progress-bar {
	background: var(--ts-accent, #0078d4);
	border-radius: 999px;
}

/* Aufmaß-App-Badge: Markierung für ToDos / Kommentare aus Mandant 1 */
.todo-app-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.02em;
	background: linear-gradient(135deg, #0078d4 0%, #4f9bf5 100%);
	color: #fff;
	border: 1px solid #0067b8;
	white-space: nowrap;
	box-shadow: 0 1px 2px rgba(0, 120, 212, 0.25);
	margin-left: 6px;
	vertical-align: middle;
}

.todo-app-badge::before {
	content: "★";
	font-size: 9px;
	opacity: 0.95;
}

.todo-app-hint {
	margin: 0 0 4px 0;
	padding: 6px 10px;
	font-size: 12px;
	color: #0067b8;
	background: linear-gradient(135deg, rgba(0, 120, 212, 0.08), rgba(79, 155, 245, 0.05));
	border: 1px solid rgba(0, 120, 212, 0.25);
	border-radius: 8px;
}

/* Toggle-Schalter pro Mandant in „Mandanten anzeigen" */
.todo-modul-toggle-wrap {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-top: 6px;
	cursor: pointer;
	font-size: 11px;
	color: #6b7280;
}

.todo-modul-toggle {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

.todo-modul-toggle-track {
	position: relative;
	display: inline-block;
	width: 32px;
	height: 18px;
	background: #d1d5db;
	border-radius: 999px;
	transition: background 0.18s ease;
	flex-shrink: 0;
}

.todo-modul-toggle-knob {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 14px;
	height: 14px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
	transition: transform 0.18s ease;
}

.todo-modul-toggle:checked + .todo-modul-toggle-track {
	background: #16a34a;
}

.todo-modul-toggle:checked + .todo-modul-toggle-track .todo-modul-toggle-knob {
	transform: translateX(14px);
}

.todo-modul-toggle:focus-visible + .todo-modul-toggle-track {
	box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.25);
}

.todo-modul-toggle:disabled + .todo-modul-toggle-track {
	opacity: 0.6;
	cursor: progress;
}

.todo-modul-toggle-label {
	font-weight: 500;
}

/* Print */
@media print {
	.todo-fab,
	.todo-bulk-bar,
	.todo-ue-fab-card,
	.todo-ue-header-cta,
	.todo-picker {
		display: none !important;
	}
}

.welcome-todo-overview-wrap {
	margin-top: 10px;
}

.welcome-todo-status-pill {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 600;
	background: #e9ecef;
	color: #333;
}

/* Individueller Excel-Messungs-Export – Einstellungen (Todo-inspiriert) */
#tab-excel_messungen_export {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

#tab-excel_messungen_export .settings-grid--single {
	max-width: none;
	width: 100%;
	grid-template-columns: 1fr;
}

#tab-excel_messungen_export .settings-tab-lead {
	max-width: none;
	width: 100%;
	padding: 0 0 8px;
}

#tab-excel_messungen_export .excel-layout-settings {
	width: 100%;
	max-width: none;
}

.excel-layout-empty-lead {
	margin: 0 0 12px;
	line-height: 1.45;
}

.excel-profile-mini-form {
	margin-bottom: 8px;
}

.excel-profile-toolbar-table {
	width: 100%;
	max-width: 100%;
	margin: 0 0 16px;
	border-collapse: collapse;
}

.excel-profile-toolbar-table td {
	padding: 8px 10px 8px 0;
	vertical-align: middle;
}

.excel-profile-toolbar-label {
	font-weight: 600;
	white-space: nowrap;
	width: 1%;
	padding-right: 14px;
}

.excel-profile-toolbar-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
}

.excel-profile-inline-form {
	display: inline-block;
	margin: 0;
}

.excel-profile-select {
	min-width: 200px;
	max-width: 100%;
	padding: 6px 10px;
	border-radius: 8px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: var(--ts-panel-bg, #ffffff);
	color: inherit;
}

.excel-profile-name-table {
	width: 100%;
	margin: 0 0 16px;
	border-collapse: collapse;
}

.excel-profile-name-table td {
	padding: 8px 10px 8px 0;
	vertical-align: middle;
}

.excel-profile-name-input {
	width: 100%;
	max-width: 420px;
	box-sizing: border-box;
	padding: 8px 10px;
	border-radius: 8px;
	border: 1px solid rgba(15, 23, 42, 0.12);
}

@media (max-width: 560px) {
	.excel-profile-toolbar-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.excel-profile-inline-form {
		display: block;
		width: 100%;
	}
}

.excel-layout-settings .excel-layout-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 18px;
	align-items: start;
	width: 100%;
	min-width: 0;
}

@media (max-width: 960px) {
	.excel-layout-settings .excel-layout-grid {
		grid-template-columns: 1fr;
	}
}

.excel-layout-pane {
	border-radius: 12px;
	border: 1px solid rgba(15, 23, 42, 0.08);
	background: var(--ts-panel-bg, #ffffff);
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
	padding: 14px 14px 16px;
	min-height: 200px;
	min-width: 0;
}

.excel-layout-pane .todo-sheet-eyebrow {
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--ts-text-muted, #64748b);
	font-weight: 700;
}

.excel-layout-hint {
	font-weight: 400;
	opacity: 0.85;
	text-transform: none;
	letter-spacing: normal;
}

.excel-layout-darstellung-table {
	margin-bottom: 12px;
	width: 100%;
}

.excel-layout-darstellung-table .excel-profile-toolbar-label {
	width: 140px;
	vertical-align: top;
	padding-top: 4px;
}

.excel-layout-fontsize-table {
	margin-bottom: 12px;
	width: 100%;
}

.excel-layout-fontsize-table .excel-profile-toolbar-label {
	width: 140px;
	vertical-align: top;
	padding-top: 6px;
}

.excel-layout-fontsize-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 18px;
	align-items: center;
}

.excel-layout-fontsize-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: var(--ts-text-strong, #1f2937);
	white-space: nowrap;
}

.excel-layout-fontsize-text {
	font-weight: 600;
	color: var(--ts-text-muted, #475569);
}

.excel-layout-fontsize-input {
	width: 4.5rem;
	padding: 4px 6px;
	border-radius: 8px;
	border: 1px solid rgba(15, 23, 42, 0.14);
	font-size: 13px;
	box-sizing: border-box;
	text-align: right;
}

@media (max-width: 560px) {
	.excel-layout-fontsize-row {
		flex-direction: column;
		align-items: flex-start;
	}
}

.excel-layout-kopfzeile-label {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	cursor: pointer;
}

.excel-layout-darstellung-hint {
	margin: 8px 0 0 0;
	font-size: 12px;
	color: var(--ts-text-muted, #64748b);
	line-height: 1.4;
}

.excel-layout-kopf-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	font-size: 12px;
	color: var(--ts-text-muted, #64748b);
	cursor: pointer;
	white-space: nowrap;
}

.excel-layout-kopf-text {
	font-size: 11px;
	font-weight: 600;
	min-width: 1.5em;
}

.excel-layout-kopf-senk {
	margin: 0;
	width: 1rem;
	height: 1rem;
	cursor: pointer;
}

.excel-layout-zellen-label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
	font-size: 12px;
	color: var(--ts-text-muted, #64748b);
	cursor: pointer;
	white-space: nowrap;
}

.excel-layout-zellen-text {
	font-size: 11px;
	font-weight: 600;
	min-width: 1.5em;
}

.excel-layout-zellen-senk {
	margin: 0;
	width: 1rem;
	height: 1rem;
	cursor: pointer;
}

.excel-layout-colwidth-label {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	font-size: 12px;
	color: var(--ts-text-muted, #64748b);
	white-space: nowrap;
}

.excel-layout-colwidth-text {
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.excel-layout-col-width {
	width: 4.2rem;
	padding: 4px 6px;
	border-radius: 8px;
	border: 1px solid rgba(15, 23, 42, 0.14);
	font-size: 13px;
	box-sizing: border-box;
}

.excel-layout-field-list--selected .excel-layout-field-label {
	flex: 1 1 120px;
}

.excel-layout-field-list--selected .excel-layout-field-item {
	flex-wrap: wrap;
}

/* Spalte „90°“ + Breite: auf schmalen Viewports umbrechen */
@media (max-width: 560px) {
	.excel-layout-kopf-label {
		flex-basis: auto;
	}

	.excel-layout-zellen-label {
		flex-basis: auto;
	}

	.excel-layout-colwidth-label {
		flex-basis: 100%;
		justify-content: flex-end;
	}
}

.excel-layout-search-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.12);
	padding: 8px 10px;
	margin-bottom: 12px;
	background: rgba(255, 255, 255, 0.95);
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.excel-layout-search-wrap:focus-within {
	border-color: rgba(0, 120, 212, 0.45);
	box-shadow: 0 0 0 3px rgba(0, 120, 212, 0.18), inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.excel-layout-filter-input {
	flex: 1;
	min-width: 0;
	border: none;
	background: transparent;
	font-size: 14px;
	outline: none;
}

.excel-layout-search-icon {
	opacity: 0.55;
	font-size: 14px;
	line-height: 1;
}

.excel-layout-field-list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: min(52vh, 420px);
	overflow: auto;
}

.excel-layout-field-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	margin-bottom: 8px;
	border-radius: 10px;
	border: 1px solid rgba(15, 23, 42, 0.06);
	background: rgba(248, 250, 252, 0.9);
	transition: background 0.15s ease, border-color 0.15s ease;
}

.excel-layout-field-item:hover {
	border-color: rgba(0, 120, 212, 0.25);
	background: rgba(239, 246, 255, 0.95);
}

.excel-layout-field-label {
	flex: 1;
	min-width: 0;
	font-size: 13px;
	line-height: 1.35;
	color: var(--ts-text, #1f2937);
	overflow-wrap: anywhere;
}

.excel-layout-field-list--selected .excel-layout-num {
	width: 26px;
	flex-shrink: 0;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	color: rgba(0, 120, 212, 0.95);
	font-size: 12px;
}

.excel-layout-row-actions {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex-shrink: 0;
}

.excel-layout-iconbtn {
	border: 1px solid rgba(15, 23, 42, 0.12);
	background: #fff;
	border-radius: 8px;
	width: 30px;
	height: 30px;
	line-height: 1;
	padding: 0;
	cursor: pointer;
	font-size: 14px;
	color: #334155;
}

.excel-layout-iconbtn:hover {
	border-color: rgba(0, 120, 212, 0.35);
	color: #0369a1;
	background: rgba(239, 246, 255, 0.95);
}

.excel-layout-btn-add {
	min-width: 38px;
	padding: 6px 10px;
	font-size: 13px;
}

.excel-layout-btn-all {
	margin-top: 8px;
	width: 100%;
}

.excel-layout-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px dashed rgba(15, 23, 42, 0.12);
}

.excel-layout-btn-reset {
	background: transparent;
	border: 1px solid rgba(15, 23, 42, 0.18);
	color: #334155;
}

.excel-layout-footnote {
	font-size: 12px;
	line-height: 1.45;
	color: var(--ts-text-muted, #64748b);
	margin: 10px 0 0;
}

.excel-layout-flash {
	margin-bottom: 14px;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid rgba(22, 163, 74, 0.25);
	background: rgba(220, 252, 231, 0.65);
	color: #166534;
	font-size: 13px;
	font-weight: 600;
}

.export-page .excel-custom-export-hint,
.export-container .excel-custom-export-hint {
	font-size: 13px;
	line-height: 1.45;
	color: #64748b;
	margin: 10px 0 12px;
}

.export-page .excel-custom-export-settings-link,
.export-container .excel-custom-export-settings-link {
	display: inline-block;
	margin-top: 4px;
}

.settings-tab-lead {
	max-width: 900px;
	margin: 0 auto 20px;
	padding: 0 12px;
	text-align: center;
	color: var(--ts-text-muted, #64748b);
	font-size: 15px;
	line-height: 1.5;
}

.settings-grid--single {
	margin: 0 auto;
}

/* LV-Tool (lv-analysieren / lv_messungen_test): KI-Metadaten unter Maß/Stück */
.lv-pos-meta {
	display: block;
	margin-top: 6px;
	font-size: 0.85em;
	line-height: 1.35;
	color: #555;
}

/* LV-Tool: Hinweise + unsichere Einträge unterhalb der Positionsliste */
.lv-notes-after-form:has(.lv-hinweise-mount:not(:empty)),
.lv-notes-after-form:has(.lv-unsichere-mount:not(:empty)) {
	margin-top: 28px;
	padding-top: 8px;
	border-top: 1px solid #dee2e6;
}

.lv-hinweise-mount,
.lv-unsichere-mount {
	display: none;
	margin-bottom: 20px;
}

.lv-hinweise-panel {
	background: #e8f4fc;
	border: 1px solid #b8d4e8;
	border-radius: 8px;
	padding: 16px 18px;
}

.lv-hinweise-title {
	margin: 0 0 10px;
	font-size: 1.05rem;
	color: #0c5460;
}

.lv-hinweise-list {
	margin: 0;
	padding-left: 1.25rem;
	line-height: 1.5;
}

.lv-hinweise-item {
	margin-bottom: 6px;
	word-break: break-word;
}

.lv-unsichere-panel {
	background: #fff8e6;
	border: 1px solid #e6c35c;
	border-radius: 8px;
	padding: 16px 18px;
}

.lv-unsichere-title {
	margin: 0 0 8px;
	font-size: 1.05rem;
	color: #856404;
}

.lv-unsichere-intro {
	margin: 0 0 14px;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #5c4a00;
}

.lv-unsichere-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 16px;
	margin-bottom: 12px;
}

.lv-unsichere-selectall {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
}

.lv-unsichere-btn {
	font-size: 14px;
	padding: 10px 16px;
}

.lv-unsichere-table-wrap {
	overflow-x: auto;
	border: 1px solid #e6c35c;
	border-radius: 6px;
	background: #fff;
}

.lv-unsichere-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.lv-unsichere-table thead th {
	text-align: left;
	background: #fff3cd;
	color: #664d03;
	padding: 10px 12px;
	border-bottom: 2px solid #e6c35c;
	font-weight: 700;
	vertical-align: top;
}

.lv-unsichere-table tbody td {
	padding: 10px 12px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
}

.lv-unsichere-table tbody tr:last-child td {
	border-bottom: none;
}

.lv-unsichere-table tbody tr:nth-child(even) {
	background: #fcfcfc;
}

.lv-unsichere-col-cb {
	width: 44px;
	text-align: center;
}

.lv-unsichere-col-act {
	width: 140px;
	white-space: nowrap;
}

.lv-unsichere-col-text {
	min-width: 200px;
	max-width: 48%;
}

.lv-unsichere-col-grund {
	min-width: 140px;
	max-width: 32%;
}

.lv-unsichere-text,
.lv-unsichere-grund {
	word-break: break-word;
	white-space: pre-wrap;
	line-height: 1.45;
	max-height: 220px;
	overflow-y: auto;
}

.lv-unsichere-one-btn {
	font-size: 13px;
	padding: 8px 12px;
}

.lv-extract-error-box {
	background: #f8d7da;
	border: 1px solid #f1aeb5;
	border-left: 4px solid #dc3545;
	padding: 14px 16px;
	margin-bottom: 16px;
	border-radius: 8px;
	line-height: 1.45;
}

/* LV analysieren: Listen-Toolbar (Bulk-Auswahl, Filter, Counter) */
.lv-list-toolbar {
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	padding: 14px 16px;
	margin-bottom: 18px;
	position: sticky;
	top: 0;
	z-index: 50;
}
.lv-list-toolbar-row {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 10px;
}
.lv-list-toolbar-row:last-child {
	margin-bottom: 0;
}
.lv-list-toolbar-info {
	font-size: 13px;
	color: #856404;
	background: #fff3cd;
	border: 1px solid #ffeeba;
	border-radius: 5px;
	padding: 6px 10px;
}
.lv-toolbar-btn {
	background: #007bff;
	color: white;
	border: none;
	border-radius: 5px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.lv-toolbar-btn:hover {
	background: #0056b3;
}
.lv-toolbar-btn-secondary {
	background: #6c757d;
}
.lv-toolbar-btn-secondary:hover {
	background: #545b62;
}
.lv-list-counter {
	font-weight: 700;
	color: #0056b3;
	margin-left: auto;
	padding: 6px 12px;
	background: #e7f3ff;
	border-radius: 15px;
	font-size: 13px;
}
.lv-filter-input {
	flex: 1 1 240px;
	min-width: 180px;
	padding: 8px 12px;
	border: 1px solid #ced4da;
	border-radius: 5px;
	font-size: 14px;
}
.lv-filter-select {
	padding: 8px 10px;
	border: 1px solid #ced4da;
	border-radius: 5px;
	font-size: 14px;
	background: white;
	min-width: 160px;
}

/* Position-Karten: Aktions-Buttons + Inline-Edit */
.lv-position-actions {
	display: inline-flex;
	gap: 8px;
	margin-left: 12px;
	vertical-align: middle;
}
.lv-pos-action-btn {
	background: #fff;
	color: #007bff;
	border: 2px solid #007bff;
	border-radius: 5px;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.lv-pos-action-btn:hover {
	background: #007bff;
	color: white;
}
.lv-pos-create-btn {
	color: #28a745;
	border-color: #28a745;
}
.lv-pos-create-btn:hover {
	background: #28a745;
	color: white;
}
.lv-pos-action-btn:disabled {
	opacity: 0.5;
	cursor: not-allowed;
}
.lv-edit-form {
	margin-top: 12px;
	padding: 12px 14px;
	background: #fff8e1;
	border: 1px solid #f0c97a;
	border-radius: 6px;
}
.lv-edit-row {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	margin-bottom: 8px;
}
.lv-edit-row:last-child {
	margin-bottom: 0;
}
.lv-edit-row label {
	font-weight: 600;
	font-size: 13px;
	margin: 0;
	color: #5c4a00;
	min-width: 70px;
}
.lv-edit-row input[type="number"],
.lv-edit-row select {
	padding: 6px 10px;
	border: 1px solid #ced4da;
	border-radius: 4px;
	font-size: 14px;
	width: 110px;
}
.lv-edit-row select {
	width: auto;
	min-width: 160px;
}
.lv-edit-actions {
	display: flex;
	gap: 8px;
}
.lv-edit-save-btn {
	background: #28a745;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
}
.lv-edit-cancel-btn {
	background: #6c757d;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 6px 14px;
	font-size: 13px;
	cursor: pointer;
}
.lv-pos-edited-badge {
	display: inline-block;
	background: #ffc107;
	color: #5c4a00;
	padding: 2px 8px;
	border-radius: 10px;
	font-size: 11px;
	font-weight: 700;
	margin-left: 8px;
	vertical-align: middle;
}

/* Versteckte Position durch Filter */
.position-section.lv-pos-filtered {
	display: none;
}

/* Freie Messungstyp-Vorlagen (Einstellungen Tab) – volle Breite wie Excel-Export */
#tab-freie_messungstyp_vorlagen {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

#tab-freie_messungstyp_vorlagen .settings-grid--single {
	max-width: none;
	width: 100%;
	grid-template-columns: 1fr;
}

#tab-freie_messungstyp_vorlagen .settings-tab-lead {
	max-width: none;
	width: 100%;
	padding: 0 0 8px;
	margin: 0 0 16px;
	box-sizing: border-box;
}

#tab-freie_messungstyp_vorlagen .freie-messungstyp-tab-inner {
	max-width: none;
	width: 100%;
	box-sizing: border-box;
}

#tab-freie_messungstyp_vorlagen .fv-settings-intro,
#tab-freie_messungstyp_vorlagen .fv-settings-message,
#tab-freie_messungstyp_vorlagen .fv-settings-error {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

#tab-freie_messungstyp_vorlagen .fv-editor-form,
#tab-freie_messungstyp_vorlagen .fv-card {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

#tab-freie_messungstyp_vorlagen .fv-editor-grid-meta {
	max-width: none;
	width: 100%;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	align-items: start;
}

#tab-freie_messungstyp_vorlagen .fv-icon-select {
	min-width: 0;
}

#tab-freie_messungstyp_vorlagen .fv-sel-table-wrap,
#tab-freie_messungstyp_vorlagen .fv-sel-table {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	table-layout: auto;
}

#tab-freie_messungstyp_vorlagen .fv-vorlage-row {
	width: 100%;
	flex-wrap: wrap;
}

.fv-settings-message {
	padding: 10px 14px;
	background: #e7f5e7;
	border-left: 4px solid #1a7f37;
	border-radius: 4px;
	margin-bottom: 10px;
}

.fv-settings-message.fv-settings-message--error {
	background: #fdeaea;
	border-left-color: #c0392b;
	color: #7b241c;
}

.fv-settings-error {
	color: #a00;
}

.fv-settings-intro {
	color: #555;
	margin-bottom: 12px;
}

#tab-freie_messungstyp_vorlagen .fv-field-search-wrap {
	margin-bottom: 12px;
	max-width: 520px;
}

#tab-freie_messungstyp_vorlagen .fv-field-search-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #444;
	margin-bottom: 6px;
}

#tab-freie_messungstyp_vorlagen .fv-field-search {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 12px;
	border: 1px solid #d0d5dd;
	border-radius: 6px;
	font-size: 14px;
}

#tab-freie_messungstyp_vorlagen .fv-chip.fv-chip--hidden {
	display: none;
}

.fv-tabs {
	display: flex;
	gap: 0;
	margin-bottom: 0;
	border-bottom: 2px solid #d0d5dd;
}

.fv-tab-btn {
	padding: 8px 18px;
	border: 1px solid #d0d5dd;
	border-bottom: none;
	border-radius: 6px 6px 0 0;
	background: #f5f6f8;
	color: #444;
	cursor: pointer;
	font-size: 14px;
	transition: background 0.15s, color 0.15s;
}

.fv-tab-btn.active,
.fv-tab-btn:hover {
	background: #fff;
	color: #1a7f37;
	font-weight: 600;
	border-color: #1a7f37;
	border-bottom: 2px solid #fff;
	margin-bottom: -2px;
	z-index: 1;
	position: relative;
}

.fv-tab-panel {
	display: none;
	padding: 14px 10px;
	border: 1px solid #d0d5dd;
	border-top: none;
	border-radius: 0 0 8px 8px;
	background: #fff;
	max-height: 320px;
	overflow: auto;
}

.fv-tab-panel.active {
	display: block;
}

.fv-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 6px 14px;
}

.fv-chip {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 5px 10px;
	border-radius: 6px;
	background: #f7f8fa;
	border: 1px solid #e0e3e8;
	transition: all 0.15s;
	cursor: pointer;
	font-size: 13px;
}

.fv-chip:hover {
	border-color: #1a7f37;
	background: #edf7f0;
}

.fv-chip input[type="checkbox"] {
	accent-color: #1a7f37;
	width: 16px;
	height: 16px;
	margin: 0;
	flex-shrink: 0;
}

.fv-chip input[type="checkbox"]:checked + span {
	font-weight: 600;
	color: #1a7f37;
}

.fv-chip span {
	user-select: none;
}

.fv-vorlage-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #e0e3e8;
	margin-bottom: 6px;
	background: #fafbfc;
}

.fv-vorlage-row:hover {
	background: #f0f4f8;
	border-color: #99c5ff;
}

.fv-vorlage-thumb {
	width: 28px;
	height: 28px;
	object-fit: contain;
	border-radius: 4px;
	background: #eee;
}

.fv-vorlage-name {
	flex: 1;
	font-weight: 500;
}

.fv-vorlage-pos {
	color: #888;
	font-size: 12px;
}

.fv-vorlage-badge {
	font-size: 11px;
	padding: 2px 8px;
	border-radius: 10px;
}

.fv-vorlage-badge.aktiv {
	background: #d4edda;
	color: #155724;
}

.fv-vorlage-badge.inaktiv {
	background: #f8d7da;
	color: #721c24;
}

.fv-vorlage-actions {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	align-items: center;
}

.fv-vorlage-actions .button {
	font-size: 12px;
	padding: 3px 10px;
}

.fv-inline-form {
	display: inline;
}

.fv-btn-danger {
	color: #c00;
}

.fv-sel-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 10px;
	font-size: 13px;
}

.fv-sel-table th {
	background: #f5f6f8;
	text-align: left;
	padding: 6px 8px;
	border-bottom: 2px solid #d0d5dd;
	font-weight: 600;
	font-size: 12px;
	color: #555;
}

.fv-sel-table td {
	padding: 5px 8px;
	border-bottom: 1px solid #eee;
	vertical-align: middle;
}

.fv-sel-table tr:hover td {
	background: #f7faf7;
}

.fv-sel-table input[type="number"],
.fv-sel-table select {
	padding: 3px 5px;
	border: 1px solid #ccc;
	border-radius: 4px;
}

.fv-sel-table .fv-pflicht-cb {
	accent-color: #1a7f37;
	width: 16px;
	height: 16px;
}

.fv-empty-hint {
	color: #888;
	font-style: italic;
	padding: 12px;
	text-align: center;
}

.fv-card {
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	padding: 16px;
	background: #fff;
	margin-top: 12px;
}

.fv-card h4 {
	margin: 0 0 10px 0;
	font-size: 15px;
}

.fv-card-editor {
	margin-top: 16px;
}

.fv-editor-form {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

.fv-editor-grid-meta {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px 16px;
	max-width: none;
	width: 100%;
	margin-bottom: 14px;
	align-items: start;
	box-sizing: border-box;
}

.fv-editor-label {
	font-weight: 500;
}

.fv-editor-input {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.fv-editor-input-narrow {
	width: 100px;
}

.fv-editor-select {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	box-sizing: border-box;
}

.fv-editor-checkbox-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-top: 20px;
}

.fv-editor-checkbox {
	width: 18px;
	height: 18px;
	accent-color: #1a7f37;
}

.fv-icon-picker-row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: 4px;
}

.fv-icon-select {
	flex: 1;
	min-width: 200px;
}

.fv-icon-preview {
	width: 40px;
	height: 40px;
	object-fit: contain;
	border-radius: 4px;
	background: #eee;
	border: 1px solid #ddd;
}

.fv-icon-upload-label {
	display: block;
	margin-top: 8px;
	font-weight: normal;
	font-size: 13px;
}

.fv-icon-file {
	display: block;
	margin-top: 4px;
	font-size: 13px;
}

.fv-icon-hint {
	font-size: 12px;
	color: #666;
	margin: 6px 0 0;
}

.fv-section-title {
	margin: 18px 0 6px;
}

.fv-fields-hint {
	color: #777;
	font-size: 12px;
	margin: 0 0 6px;
}

.fv-sel-table-wrap {
	border: 1px solid #d0d5dd;
	border-radius: 8px;
	overflow: hidden;
}

.fv-th-num {
	width: 30px;
}

.fv-th-pos {
	width: 60px;
}

.fv-th-pflicht {
	width: 50px;
}

.fv-th-remove {
	width: 30px;
}

.fv-td-num {
	color: #999;
}

.fv-td-quelle {
	color: #aaa;
	font-size: 11px;
}

.fv-td-ord {
	width: 60px;
	text-align: center;
}

.fv-td-pflicht {
	text-align: center;
}

.fv-remove-field {
	background: none;
	border: none;
	color: #c00;
	cursor: pointer;
	font-size: 16px;
}

.fv-form-actions {
	margin-top: 16px;
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.fv-btn-save {
	font-size: 15px;
	padding: 8px 24px;
}

/* Co-Branding Welcome-Popup (generisch; zuvor FRAME-hartcodiert in welcome.inc) */
.cobranding-welcome-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
}
.cobranding-welcome-popup-overlay[hidden] {
	display: none;
}
.cobranding-welcome-popup-content {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	max-width: 600px;
	width: 90%;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
	text-align: center;
}
.cobranding-welcome-header {
	margin-bottom: 30px;
}
.cobranding-welcome-logo {
	max-width: 100%;
	height: auto;
	max-height: 80px;
	margin-bottom: 20px;
}
.cobranding-welcome-header h2 {
	color: #333;
	margin: 20px 0 10px 0;
	font-size: 28px;
}
.cobranding-welcome-header p {
	color: #666;
	font-size: 16px;
	margin: 0;
}
.cobranding-welcome-body {
	margin: 30px 0;
	padding: 20px;
	background: #f8f9fa;
	border-radius: 8px;
}
.cobranding-welcome-body p {
	color: #495057;
	font-size: 15px;
	line-height: 1.6;
	margin: 10px 0;
}
.cobranding-welcome-footer {
	margin-top: 30px;
}
.cobranding-welcome-btn {
	background-color: #007bff;
	color: #fff;
	border: none;
	padding: 12px 30px;
	border-radius: 6px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.cobranding-welcome-btn:hover {
	background-color: #0056b3;
}

/* GUTMANN Fenstertypen (Stamm) – Verwaltung */
.modul-gutmann_fenstertypen_verwaltung .gutmann-ft-msg-error {
	color: #a00;
	font-weight: 600;
}
.gutmann-ft-welcome-form .gutmann-ft-welcome-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.55em;
}
.gutmann-ft-welcome-form .gutmann-ft-welcome-logo {
	height: 28px;
	width: auto;
	flex-shrink: 0;
	vertical-align: middle;
}

.modul-gutmann_fenstertypen_verwaltung .gutmann-ft-import-log {
	max-height: 28em;
	overflow: auto;
	border: 1px solid #ccc;
	padding: 10px;
	margin: 10px 0;
	background: #fafafa;
	font-size: 13px;
}

/* Anschlussfugen: Hinweisblock Export-Fertigmaß (include/anschlussfugen.inc.php) */
#kleinste-masse-anzeige .anschlussfugen-export-fertigmaess-hinweis {
	margin-top: 12px;
	padding: 10px 12px;
	border: 1px solid #b8c9e0;
	border-radius: 6px;
	background: #e8f0fa;
	font-size: 12px;
	line-height: 1.45;
	color: #1e3a5f;
}
#kleinste-masse-anzeige .anschlussfugen-export-fertigmaess-hinweis-live {
	margin: 0 0 8px 0;
}
#kleinste-masse-anzeige .anschlussfugen-export-fertigmaess-hinweis-heading {
	margin: 0 0 6px 0;
	font-weight: 700;
	color: #2c5aa0;
}
#kleinste-masse-anzeige .anschlussfugen-export-fertigmaess-hinweis-db {
	margin: 8px 0 0 0;
	font-size: 11px;
	color: #4a5568;
}
#kleinste-masse-anzeige .anschlussfugen-export-fertigmaess-hinweis-table {
	border-collapse: collapse;
	width: 100%;
	max-width: 100%;
	font-size: 12px;
}
#kleinste-masse-anzeige .anschlussfugen-export-fertigmaess-hinweis-table td {
	padding: 3px 8px 3px 0;
	vertical-align: top;
}
#kleinste-masse-anzeige .anschlussfugen-export-fertigmaess-hinweis-label {
	text-align: right;
	font-weight: bold;
	white-space: nowrap;
}
#kleinste-masse-anzeige .anschlussfugen-export-fertigmaess-hinweis-val {
	font-weight: 600;
	color: #14532d;
}
#kleinste-masse-anzeige .anschlussfugen-export-fertigmaess-hinweis-gap {
	width: 12px;
	padding: 0;
}

/* ----------------------------------------------------------------
   Zusätzliche Pfosten-/Kämpfer-Zeilen (Fenstermessung)
   ---------------------------------------------------------------- */
.messreihe-pfosten-actions,
.messreihe-kaempfer-actions,
.messreihe-kaempfer-input-wrap {
	white-space: normal;
	vertical-align: middle;
}
.messreihe-pfosten-actions .messreihe-select-richtung {
	margin-right: 6px;
	min-width: 7em;
}
.messreihe-kaempfer-input-wrap .messreihe-input-wert {
	margin-right: 6px;
}
.messreihe-block-kaempfer-2col .messreihe-kaempfer-input-wrap .messreihe-remove {
	margin-left: 6px;
	vertical-align: middle;
}

/* Label "Pfosten 3:" / "Kämpfer 2:" */
.messreihe-label-cell .messreihe-label {
	color: #5a6b7a;
	font-style: italic;
	white-space: nowrap;
}
.messreihe-label-cell .messreihe-num {
	font-style: normal;
	font-weight: 600;
	color: #2d6cdf;
}

/* Slide-In für neue Zeilen */
.messreihe-pfosten-row,
.messreihe-kaempfer-row {
	animation: messreihe-slidein 0.18s ease-out;
}
.messreihe-pfosten-row.messreihe-leaving,
.messreihe-kaempfer-row.messreihe-leaving {
	animation: messreihe-slideout 0.16s ease-in forwards;
}
@keyframes messreihe-slidein {
	from { opacity: 0; transform: translateY(-4px); }
	to   { opacity: 1; transform: none; }
}
@keyframes messreihe-slideout {
	from { opacity: 1; transform: none; }
	to   { opacity: 0; transform: translateY(-4px); }
}

/* "+ Pfosten / Kämpfer hinzufügen" Button */
.messreihe-plus-row .messreihe-plus-cell,
.messreihe-plus-row-2col .messreihe-plus-cell {
	text-align: left;
	vertical-align: middle;
	padding-top: 4px;
	padding-bottom: 6px;
}
.messreihe-add-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: linear-gradient(180deg, #ffffff 0%, #f3f6fa 100%);
	color: #2d6cdf;
	border: 1px dashed #b6c8e3;
	border-radius: 6px;
	padding: 5px 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out, box-shadow 0.15s ease-out, transform 0.05s ease-out;
	user-select: none;
}
.messreihe-add-btn:hover {
	background: #2d6cdf;
	color: #ffffff;
	border-style: solid;
	border-color: #2d6cdf;
	box-shadow: 0 1px 4px rgba(45, 108, 223, 0.25);
}
.messreihe-add-btn:active {
	transform: translateY(1px);
}
.messreihe-add-btn:focus-visible {
	outline: 2px solid #2d6cdf;
	outline-offset: 2px;
}
.messreihe-add-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #2d6cdf;
	color: #ffffff;
	font-weight: 700;
	font-size: 14px;
	line-height: 1;
}
.messreihe-add-btn:hover .messreihe-add-icon {
	background: #ffffff;
	color: #2d6cdf;
}

/* Dezenter Remove-Button (×) */
.messreihe-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	background: transparent;
	color: #c14545;
	border: 1px solid #e6c2c2;
	border-radius: 50%;
	font-size: 16px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out, transform 0.05s ease-out;
	vertical-align: middle;
}
.messreihe-remove:hover {
	background: #c14545;
	color: #ffffff;
	border-color: #c14545;
}
.messreihe-remove:active {
	transform: scale(0.95);
}
.messreihe-remove:focus-visible {
	outline: 2px solid #c14545;
	outline-offset: 2px;
}

/* ============================================================
   Offene Arbeiten - Foto-Galerie / Upload
   ============================================================ */
.oa-foto-section {
	margin-bottom: 15px;
	padding: 12px;
	background: #f8f9fa;
	border: 1px solid #dee2e6;
	border-radius: 5px;
}
.oa-foto-label {
	display: block;
	margin-bottom: 8px;
	font-weight: bold;
}
.oa-foto-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
	min-height: 0;
}
.oa-foto-gallery-row {
	margin-bottom: 4px;
	justify-content: center;
}
.oa-foto-thumb {
	position: relative;
	width: 100px;
	height: 100px;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}
.oa-foto-thumb-small {
	width: 60px;
	height: 60px;
}
.oa-foto-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
}
.oa-foto-delete-btn {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	padding: 0;
	background: rgba(220, 53, 69, 0.9);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	font-weight: bold;
}
.oa-foto-delete-btn:hover {
	background: #dc3545;
}
.oa-foto-skizze-btn {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	padding: 0;
	background: rgba(255, 255, 255, 0.95);
	color: #333;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
}
.oa-foto-skizze-btn:hover {
	background: #fff;
	color: #000;
}
.oa-foto-thumb-small .oa-foto-skizze-btn {
	width: 16px;
	height: 16px;
	font-size: 10px;
}
.oa-foto-thumb-small .oa-foto-delete-btn {
	width: 16px;
	height: 16px;
	font-size: 11px;
}
.oa-foto-empty {
	color: #999;
	font-style: italic;
	font-size: 13px;
}
.oa-foto-upload-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 8px;
}
.oa-foto-upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #007bff;
	color: #fff;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	user-select: none;
}
.oa-foto-upload-btn:hover {
	background: #0069d9;
}
.oa-foto-upload-btn.disabled {
	opacity: 0.6;
	pointer-events: none;
}
.oa-foto-upload-btn-small {
	padding: 4px 10px;
	font-size: 12px;
	margin-top: 4px;
}
.oa-foto-icon {
	font-size: 16px;
}
.oa-foto-status {
	font-size: 13px;
	color: #555;
}
.oa-foto-status-info {
	color: #007bff;
}
.oa-foto-status-ok {
	color: #28a745;
}
.oa-foto-status-error {
	color: #dc3545;
}
.oa-foto-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10010;
	cursor: pointer;
}
.oa-foto-modal-img {
	max-width: 90vw;
	max-height: 90vh;
	border: 5px solid #fff;
	border-radius: 8px;
	box-shadow: 0 0 20px #000;
}

/* ============================================================
   Regiebericht-Eintrag - Foto-Galerie / Upload
   ============================================================ */
.rb-foto-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 8px;
}
.rb-foto-thumb {
	position: relative;
	width: 100px;
	height: 100px;
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}
.rb-foto-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	cursor: pointer;
}
.rb-foto-delete-btn {
	position: absolute;
	top: 2px;
	right: 2px;
	width: 20px;
	height: 20px;
	padding: 0;
	background: rgba(220, 53, 69, 0.9);
	color: #fff;
	border: none;
	border-radius: 50%;
	font-size: 14px;
	line-height: 1;
	cursor: pointer;
	font-weight: bold;
}
.rb-foto-delete-btn:hover {
	background: #dc3545;
}
.rb-foto-skizze-btn {
	position: absolute;
	top: 2px;
	left: 2px;
	width: 20px;
	height: 20px;
	padding: 0;
	background: rgba(255, 255, 255, 0.95);
	color: #333;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: 50%;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rb-foto-skizze-btn:hover {
	background: #fff;
	color: #000;
}
.rb-foto-upload-row {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 4px;
}
.rb-foto-upload-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 14px;
	background: #007bff;
	color: #fff;
	border-radius: 5px;
	cursor: pointer;
	font-size: 14px;
	font-weight: bold;
	user-select: none;
}
.rb-foto-upload-btn:hover {
	background: #0069d9;
}
.rb-foto-icon {
	font-size: 16px;
}
.rb-foto-status {
	font-size: 13px;
	color: #555;
}
.rb-foto-status-info {
	color: #007bff;
}
.rb-foto-status-ok {
	color: #28a745;
}
.rb-foto-status-error {
	color: #dc3545;
}
.rb-foto-hint {
	padding: 8px 12px;
	background: #fff3cd;
	border: 1px solid #ffe69c;
	border-radius: 4px;
	color: #856404;
	font-size: 13px;
}
.rb-foto-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.85);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10010;
	cursor: pointer;
}
.rb-foto-modal-img {
	max-width: 90vw;
	max-height: 90vh;
	border: 5px solid #fff;
	border-radius: 8px;
	box-shadow: 0 0 20px #000;
}

/* ===========================================================
 * Rahmenverbreiterungen – Mehrfach-Eingabe per Popup
 * =========================================================== */

/* Eigener Block-Container: bricht aus dem display:table der äußeren
 * .resp-table aus, damit die Spaltenbreiten dort unverändert bleiben. */
.rv-block-wrap {
	display: block !important;
	width: 100%;
}
.rv-block-cell {
	display: block !important;
	width: 100% !important;
	padding: 0 !important;
}
.rv-block {
	display: block;
	width: 100%;
	margin: 4px 0 8px;
}
.rv-block-title {
	font-weight: 700;
	font-size: 14px;
	color: #2c5aa0;
	margin: 4px 0 6px;
	padding-bottom: 4px;
	border-bottom: 1px solid #dbe5f3;
}
.rv-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 3px 2px;
	flex-wrap: wrap;
	min-height: 32px;
}
.rv-row-label {
	flex: 0 0 auto;
	min-width: 90px;
	font-weight: 500;
}
.rv-row-content {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: 1 1 auto;
	min-width: 0;
	flex-wrap: wrap;
}
.rv-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	flex: 0 1 auto;
	min-width: 0;
}
.rv-chips:empty {
	display: none;
}
.rv-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 9px;
	background: #e6efff;
	color: #2c5aa0;
	border: 1px solid #b6c8e3;
	border-radius: 12px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	white-space: nowrap;
}

/* Kompakter Button: ohne Eintrag = Icon + Text, mit Eintrag = nur Icon */
.rv-open-popup {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: #2d6cdf;
	color: #ffffff;
	border: 1px solid #2d6cdf;
	border-radius: 14px;
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
	cursor: pointer;
	white-space: nowrap;
	min-height: 28px;
	transition: background-color 0.15s ease-out, border-color 0.15s ease-out;
}
.rv-open-popup:hover {
	background: #1f56b9;
	border-color: #1f56b9;
}
.rv-open-popup-icon {
	font-size: 14px;
	line-height: 1;
}
.rv-open-popup-text {
	display: inline;
}
.rv-open-popup-has-entries {
	background: transparent;
	color: #2d6cdf;
	border-color: transparent;
	padding: 4px 6px;
}
.rv-open-popup-has-entries:hover {
	background: #e6efff;
	border-color: #b6c8e3;
}
.rv-open-popup-has-entries .rv-open-popup-text {
	display: none;
}

/* Overlay */
.rv-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(20, 30, 50, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10020;
	padding: 16px;
	animation: rv-popup-fadein 0.15s ease-out;
}
.rv-popup-overlay[hidden] {
	display: none;
}
html.rv-popup-locked,
html.rv-popup-locked body {
	overflow: hidden;
}
@keyframes rv-popup-fadein {
	from { opacity: 0; }
	to   { opacity: 1; }
}

.rv-popup-content {
	background: #ffffff;
	border-radius: 10px;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	animation: rv-popup-slidein 0.18s ease-out;
}
@keyframes rv-popup-slidein {
	from { transform: translateY(8px); opacity: 0.6; }
	to   { transform: none; opacity: 1; }
}

.rv-popup-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 14px 18px;
	border-bottom: 1px solid #e2e8f0;
	background: linear-gradient(180deg, #f8fafd 0%, #f0f4fb 100%);
}
.rv-popup-header h3 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	color: #2c5aa0;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: baseline;
}
.rv-popup-title-sep {
	color: #b6c8e3;
}
.rv-popup-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	background: transparent;
	border: none;
	border-radius: 50%;
	color: #5a6b7a;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.rv-popup-close:hover {
	background: #e6efff;
	color: #2c5aa0;
}

.rv-popup-body {
	padding: 14px 18px;
	overflow-y: auto;
	flex: 1 1 auto;
}
.rv-popup-rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-bottom: 12px;
}
.rv-popup-row {
	display: grid;
	grid-template-columns: 1fr 1fr auto;
	gap: 10px;
	align-items: center;
	background: #f7faff;
	border: 1px solid #dbe5f3;
	border-radius: 8px;
	padding: 10px;
}
.rv-popup-cell {
	display: flex;
	align-items: center;
	gap: 6px;
	min-width: 0;
}
.rv-popup-cell-wert .rv-popup-wert,
.rv-popup-cell-option .rv-popup-option {
	width: 100%;
	min-width: 0;
	font-size: 15px;
}
.rv-popup-unit {
	color: #6b7280;
	font-size: 13px;
}
.rv-popup-add {
	margin-top: 4px;
}

.rv-popup-footer {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding: 12px 18px;
	border-top: 1px solid #e2e8f0;
	background: #f8fafd;
}
.rv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	border-radius: 6px;
	cursor: pointer;
	border: 1px solid transparent;
	min-height: 38px;
	transition: background-color 0.15s ease-out, border-color 0.15s ease-out, color 0.15s ease-out;
}
.rv-btn-secondary {
	background: #ffffff;
	color: #4a5568;
	border-color: #cbd5e0;
}
.rv-btn-secondary:hover {
	background: #f1f5f9;
}
.rv-btn-primary {
	background: #2d6cdf;
	color: #ffffff;
	border-color: #2d6cdf;
}
.rv-btn-primary:hover {
	background: #1f56b9;
	border-color: #1f56b9;
}

/* Review-Modus: Wrapping für die Mehrfach-Verbreiterungen */
.rv-review-block {
	margin: 12px 0;
	padding: 12px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.rv-review-title {
	font-weight: 700;
	font-size: 15px;
	color: #2c5aa0;
	padding-bottom: 8px;
	margin-bottom: 8px;
	border-bottom: 1px solid #e2e8f0;
}

/* Mobile-Optimierung: Popup vollflächig, Row-Label oben */
@media (max-width: 600px) {
	.rv-popup-overlay {
		padding: 0;
		align-items: stretch;
	}
	.rv-popup-content {
		max-width: 100%;
		max-height: 100vh;
		height: 100%;
		border-radius: 0;
	}
	.rv-popup-row {
		grid-template-columns: 1fr auto;
		grid-template-areas:
			"wert remove"
			"option option";
		gap: 8px;
	}
	.rv-popup-cell-wert { grid-area: wert; }
	.rv-popup-cell-action { grid-area: remove; }
	.rv-popup-cell-option { grid-area: option; }
	.rv-popup-header h3 {
		font-size: 15px;
	}
	.rv-row {
		gap: 6px;
	}
	.rv-row-label {
		min-width: 70px;
	}
	.rv-open-popup-has-entries {
		padding: 4px 8px;
	}
}

/* ── Offene Mess-Masken Report ── */
.offene-messmasken-titel {
	margin: 20px;
}
.offene-messmasken-denied {
	margin: 60px 20px;
}
.offene-messmasken-leer {
	margin: 20px;
	color: #28a745;
	font-weight: bold;
}
.offene-messmasken-filter {
	margin: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.offene-messmasken-filter input[type="number"] {
	width: 70px;
	padding: 6px;
}
.offene-messmasken-info {
	margin-left: 12px;
	color: #555;
	font-size: 13px;
}
.offene-messmasken-hinweis {
	margin: 0 20px 16px 20px;
	color: #555;
	font-size: 14px;
}
.offene-messmasken-tabelle {
	margin: 0 20px;
	width: calc(100% - 40px);
	border-collapse: collapse;
}
.offene-messmasken-tabelle th,
.offene-messmasken-tabelle td {
	padding: 8px 10px;
	border-bottom: 1px solid #e0e0e0;
	text-align: left;
	font-size: 14px;
}
.offene-messmasken-tabelle thead th {
	background: #f5f5f5;
	font-weight: bold;
}
.offene-messmasken-tabelle tbody tr:hover {
	background: #fafafa;
}
.offene-messmasken-rowform {
	margin: 0;
}
.offene-messmasken-rowform button {
	padding: 4px 10px;
	cursor: pointer;
}
