* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.4 system-ui, sans-serif; color: #1c2430; background: #f4f5f7; }
header { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 8px 16px; background: #fff; border-bottom: 1px solid #d5d9e0; }
h1 { font-size: 18px; margin: 0 8px 0 0; }
h2 { font-size: 15px; margin: 0 0 8px; }
h3 { font-size: 14px; margin: 16px 0 6px; }
.platz { flex: 1; }
button, select, input, textarea { font: inherit; padding: 4px 8px; border: 1px solid #b6bcc8; border-radius: 4px; background: #fff; }
button { cursor: pointer; }
button.haupt { background: #1f5fbf; border-color: #1f5fbf; color: #fff; }
button.gefahr { color: #b3261e; }
#meldung { margin: 8px 16px; padding: 8px 12px; border-radius: 4px; background: #e7f3e8; border: 1px solid #9ccba0; }
#meldung.fehler { background: #fde8e6; border-color: #e3a19b; }
main { display: flex; gap: 12px; padding: 12px 16px; align-items: flex-start; }
#diagramm { flex: 1; min-width: 0; overflow: auto; background: #fff; border: 1px solid #d5d9e0; border-radius: 6px; min-height: 240px; max-height: 75vh; }
#diagramm p { padding: 16px; color: #5b6472; }
#seite { width: 340px; flex: none; background: #fff; border: 1px solid #d5d9e0; border-radius: 6px; padding: 12px; }
#seite label { display: block; margin-bottom: 8px; }
#seite label > input, #seite label > select, #seite label > textarea { display: block; width: 100%; margin-top: 2px; }
#seite .zeile { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
#seite .vorg { max-height: 140px; overflow: auto; border: 1px solid #d5d9e0; border-radius: 4px; padding: 4px 8px; margin-bottom: 8px; }
#seite .vorg label { margin: 0; }
#seite .vorg input { display: inline; width: auto; margin-right: 6px; }
#seite ul { margin: 0; padding-left: 18px; }
.klein { color: #5b6472; font-size: 12px; }
body > section { margin: 0 16px 16px; }
#legende { display: flex; flex-wrap: wrap; gap: 6px 16px; }
#legende span { display: inline-flex; align-items: center; gap: 6px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #d5d9e0; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e6e9ee; vertical-align: top; }
th { background: #f0f2f5; font-weight: 600; }
tr.offen td { background: #fff8e1; }
td .zeile { display: flex; gap: 6px; }
svg text { font: 12px system-ui, sans-serif; fill: #1c2430; }
svg text.titel { font-weight: 600; font-size: 13px; }
svg .knoten { cursor: pointer; }
svg .knoten:hover rect.rahmen { stroke-width: 2.5; }
svg .knoten.gewaehlt rect.rahmen { stroke: #1c2430; stroke-width: 3; }
@media (max-width: 800px) { main { flex-direction: column; } #seite { width: 100%; } }
@media print { header button, header label, #seite, #abmelden { display: none; } #diagramm { max-height: none; overflow: visible; } }
