.watlas-atlas {
	max-width: 1100px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.watlas-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 2px solid #222;
	margin-bottom: 12px;
}

.watlas-tab {
	background: #eee;
	border: 1px solid #ccc;
	border-bottom: none;
	padding: 8px 16px;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	letter-spacing: 0.02em;
}

.watlas-tab.ist-aktiv {
	background: #fff;
	border-bottom: 2px solid #fff;
	margin-bottom: -2px;
}

.watlas-view {
	display: none;
}

.watlas-view.ist-aktiv {
	display: block;
}

.watlas-bildrahmen {
	position: relative;
	line-height: 0;
}

.watlas-bildrahmen img {
	width: 100%;
	height: auto;
	display: block;
}

.watlas-zone {
	position: absolute;
	border: 2px solid transparent;
	background: transparent;
	padding: 0;
	cursor: pointer;
	transition: background-color 0.15s ease, border-color 0.15s ease;
}

.watlas-zone:hover,
.watlas-zone:focus-visible {
	border-color: #c0392b;
	background-color: rgba(192, 57, 43, 0.18);
	outline: none;
}

/* Zonen innerhalb eingebetteter Platzhalter-SVGs: kein CSS-Border/Background moeglich
   (SVG-Formen malen sich ueber fill/stroke), deshalb eigene Regeln. */
.watlas-bildrahmen svg.riss {
	width: 100%;
	height: auto;
	display: block;
}

.watlas-zone-svg {
	cursor: pointer;
	fill: transparent;
	stroke: transparent;
	stroke-width: 2;
	transition: fill 0.15s ease, stroke 0.15s ease;
}

.watlas-zone-svg:hover,
.watlas-zone-svg:focus-visible {
	fill: rgba(192, 57, 43, 0.18);
	stroke: #c0392b;
	outline: none;
}

.watlas-leer-hinweis {
	padding: 24px;
	text-align: center;
	color: #888;
	font-style: italic;
}

.watlas-werkzeuge {
	margin-bottom: 10px;
}

.watlas-suche {
	display: flex;
	gap: 6px;
}

.watlas-suche-feld {
	flex: 1;
	padding: 7px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 13px;
}

.watlas-suche-knopf {
	padding: 7px 14px;
	border: 1px solid #222;
	background: #222;
	color: #fff;
	border-radius: 4px;
	cursor: pointer;
	font-size: 13px;
}

.watlas-bereiche-leiste {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 14px 0 8px;
}

.watlas-bereich-knopf {
	background: #fff;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
}

.watlas-bereich-knopf:hover {
	border-color: #c0392b;
}

.watlas-zaehler {
	display: inline-block;
	background: #eee;
	border-radius: 10px;
	padding: 0 7px;
	margin-left: 4px;
	font-weight: 700;
}

.watlas-prio-kacheln {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 8px 0 4px;
}

.watlas-prio-kachel {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 10px 12px;
	border: none;
	border-radius: 4px;
	background: #f4f4f4;
	cursor: pointer;
	text-align: left;
}

.watlas-prio-kachel-technik {
	cursor: default;
}

.watlas-prio-kachel-zahl {
	font-size: 22px;
	font-weight: 700;
}

.watlas-prio-kachel-label {
	font-size: 11px;
	color: #666;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.watlas-prio-kachel-1 .watlas-prio-kachel-zahl { color: #c0392b; }
.watlas-prio-kachel-2 .watlas-prio-kachel-zahl { color: #e67e22; }
.watlas-prio-kachel-3 .watlas-prio-kachel-zahl { color: #d4ac0d; }
.watlas-prio-kachel-technik .watlas-prio-kachel-zahl { color: #2c7a4b; }

.watlas-eintrag-bereich {
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #888;
}

@media (max-width: 560px) {
	.watlas-prio-kacheln { grid-template-columns: repeat(2, 1fr); }
}

.watlas-blattnr {
	font-size: 11px;
	color: #888;
	margin-top: 4px;
}



.watlas-dialog {
	border: none;
	border-radius: 6px;
	padding: 0;
	width: min(560px, 92vw);
	max-height: 80vh;
}

.watlas-dialog::backdrop {
	background: rgba(0, 0, 0, 0.5);
}

.watlas-dialog-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 18px;
	border-bottom: 1px solid #ddd;
	position: sticky;
	top: 0;
	background: #fff;
}

.watlas-dialog-titel {
	margin: 0;
	font-size: 18px;
}

.watlas-dialog-schliessen {
	background: none;
	border: none;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	color: #666;
}

.watlas-dialog-inhalt {
	padding: 8px 18px 18px;
	overflow-y: auto;
}

.watlas-eintrag {
	border-bottom: 1px solid #eee;
	padding: 12px 0;
}

.watlas-eintrag:last-child {
	border-bottom: none;
}

.watlas-eintrag-kopf {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 4px;
}

.watlas-eintrag-titel {
	font-weight: 700;
	font-size: 14px;
}

.watlas-prio {
	font-weight: 700;
	font-size: 12px;
	padding: 1px 6px;
	border-radius: 3px;
	color: #fff;
}

.watlas-prio-1 { background: #c0392b; }
.watlas-prio-2 { background: #e67e22; }
.watlas-prio-3 { background: #f1c40f; color: #333; }

.watlas-status {
	font-size: 11px;
	padding: 1px 7px;
	border-radius: 10px;
	background: #eee;
	color: #444;
}

.watlas-status-offen        { background: #fde2e1; color: #7a2b25; }
.watlas-status-erledigt     { background: #dcf2dc; color: #235a23; }
.watlas-status-in-arbeit    { background: #fff3cd; color: #6b5400; }
.watlas-status-wichtig      { background: #ffe5c2; color: #6b3d00; }
.watlas-status-gesichert    { background: #dcebdc; color: #235a23; }
.watlas-status-zu-prüfen    { background: #e2ecf9; color: #1c3f6b; }

.watlas-eintrag-inhalt {
	font-size: 13px;
	color: #333;
	white-space: pre-line;
}

.watlas-leer {
	color: #888;
	font-style: italic;
}
