@import url("brand.css");
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; font: 15px/23px var(--font-sans); color: var(--ink); background: var(--ground); }
header { position: fixed; top: 0; left: 0; right: 0; height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--space-4); background: var(--tanne); color: var(--papier); z-index: 10; border-bottom: 3px solid var(--accent); }
.brand { display: flex; align-items: center; gap: var(--space-4); }
.brand img { height: 40px; width: auto; display: block; }
.brand .title { font-family: var(--font-display); font-variation-settings: "opsz" 24, "SOFT" 30; font-weight: 700; font-size: 20px; line-height: 1; }
.brand .tile { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.35em; text-transform: uppercase; color: var(--moos); margin-left: 4px; }
.status { font-size: 12px; line-height: 16px; color: var(--moos); text-align: right; max-width: 55%; }
#map { position: absolute; top: 56px; bottom: 0; left: 0; right: 380px; }
#panel { position: absolute; top: 56px; bottom: 0; right: 0; width: 380px; overflow-y: auto; border-left: 1px solid var(--rule); padding: var(--space-4); background: var(--ground); }
#panel h2 { font-family: var(--font-sans); font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase; color: var(--ink-earth); margin: var(--space-6) 0 var(--space-2); }
#panel label { display: block; margin: 3px 0; font-size: 13px; }
.intro p { margin: var(--space-2) 0 var(--space-2); font-size: 14px; line-height: 21px; color: var(--ink); }
details.layers { margin-top: var(--space-4); border-top: 1px solid var(--rule); padding-top: var(--space-2); }
details.layers summary { cursor: pointer; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0.35em; text-transform: uppercase; color: var(--ink-earth); margin: var(--space-2) 0; list-style: none; }
details.layers summary::before { content: "+ "; } details.layers[open] summary::before { content: "– "; }
.filters { margin-top: var(--space-2); padding-top: var(--space-2); border-top: 1px solid var(--rule); }
.filters input[type=range] { width: 160px; vertical-align: middle; accent-color: var(--fichte); }
input[type=checkbox] { accent-color: var(--fichte); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: var(--space-2); font-size: 12px; color: var(--ink-muted); }
.legend i { display: inline-block; width: 12px; height: 12px; margin-right: 4px; vertical-align: -2px; border-radius: var(--radius-0); }
.zone-list table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.zone-list td, .zone-list th { padding: 4px; border-bottom: 1px solid var(--rule); text-align: left; }
.zone-list th { color: var(--ink-earth); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.zone-list tr { cursor: pointer; }
.zone-list tr:hover { background: var(--surface-raised); }
.detail { position: absolute; left: 12px; bottom: 28px; width: 400px; max-width: calc(100% - 24px); max-height: calc(100% - 100px); overflow-y: auto; z-index: 6; background: var(--surface-raised); padding: var(--space-4); border-top: 3px solid var(--accent); box-shadow: 0 4px 18px rgba(0,0,0,.25); }
.detail .close { position: absolute; top: 6px; right: 8px; border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-muted); }
.legend.jahre { margin: 0 0 6px 22px; } .legend.jahre em { width: 100%; font-style: normal; font-size: 11px; }
#luftbild-jahr { font: 13px var(--font-sans); padding: 1px 4px; }
.detail h2 { margin-top: 0; }
.detail dl { display: grid; grid-template-columns: 140px 1fr; gap: 2px 8px; margin: 0 0 var(--space-2); font-size: 13px; line-height: 19px; font-variant-numeric: tabular-nums; }
.detail dt { color: var(--ink-muted); }
.detail dd { margin: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--space-2) 0; }
.actions button { padding: 8px 12px; border: 1px solid var(--tanne); background: var(--tanne); color: var(--papier); border-radius: var(--radius-0); cursor: pointer; font: 500 13px/16px var(--font-sans); }
.actions button:hover { background: var(--fichte); border-color: var(--fichte); }
.actions button.secondary { background: transparent; color: var(--ink); }
#d-comment { width: 100%; padding: 8px; border: 1px solid var(--rule); border-radius: var(--radius-0); background: var(--ground); color: var(--ink); font: 14px/20px var(--font-sans); }
.feedback-state { font-size: 12px; color: var(--ink-muted); margin: 6px 0; }
.detail a { color: var(--fichte); }
.hidden { display: none; }
footer { margin-top: var(--space-6); font-size: 12px; line-height: 17px; color: var(--ink-muted); border-top: 1px solid var(--rule); padding-top: var(--space-2); }
.maplibregl-popup-content { font-size: 12px; }
@media (max-width: 800px) { #map { right: 0; bottom: 45%; } #panel { width: 100%; top: auto; height: 45%; border-left: 0; border-top: 1px solid var(--rule); } .status { display: none; } .detail { bottom: calc(45% + 12px); max-height: 50%; } }
.small { font-size: 12px; color: var(--ink-muted); margin: 4px 0; }
