:root {
--blue: #1565c0;
--blue-dark: #0d2c6b;
--green: #3d6b35;
--bg: #fff;
--panel: #fafbfd;
--text: #1c2733;
--muted: #5c6b7a;
--line: #dde4ec;
--rand: #768494;
--auf-blau: #fff;
--box: #eef4fb;
--boxLine: #c9dcf2;
--warnBox: #fdf3e4;
--warnLine: #f0d9ae;
--okBox: #edf7ec;
--okLine: #c6e3c4;
--shadow: 0 2px 14px rgba(10, 30, 60, .18);
--radius: 12px;
--topbar-h: 52px;
--kartenFilter: none;
--sheet-h: 52vh;
--sheet-vis: 0px;
--fabs-h: 0px;
--scale-h: 0px;
--unten: calc(16px + env(safe-area-inset-bottom, 0px));
--skala: 1;
font-size: calc(15px * var(--skala));
color-scheme: light;
}
:root[data-schrift="mittel"] { --skala: 1.15; }
:root[data-schrift="gross"] { --skala: 1.35; }
:root[data-theme="dark"] {
--blue: #5aa2e8;
--blue-dark: #a9cdf3;
--green: #8fc07d;
--bg: #171c22;
--panel: #1e252d;
--text: #e6ecf2;
--muted: #9aa8b6;
--line: #303a45;
--rand: #66778a;
--auf-blau: #0b1724;
--box: #1b2734;
--boxLine: #2c4257;
--warnBox: #33291a;
--warnLine: #574421;
--okBox: #1b2a1c;
--okLine: #2f4a31;
--shadow: 0 2px 16px rgba(0, 0, 0, .55);
--kartenFilter: brightness(0.78) saturate(0.85) contrast(1.05);
color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
font-family: system-ui, "Segoe UI", Roboto, sans-serif;
color: var(--text);
background: var(--bg);
overflow: hidden;
-webkit-tap-highlight-color: transparent;
}
h4 { margin: 14px 0 6px; font-size: .95rem; }
button { font: inherit; cursor: pointer; }
#topbar {
position: fixed; inset: 0 0 auto 0; height: var(--topbar-h);
display: flex; align-items: center; gap: 8px;
padding: 0 10px calc(0px + env(safe-area-inset-top, 0px));
padding-top: env(safe-area-inset-top, 0px);
background: var(--bg); border-bottom: 1px solid var(--line);
z-index: 1200;
}
#logo { display: flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .5px; color: var(--green); }
#logo span { font-size: .95rem; }
#searchForm { position: relative; flex: 1; display: flex; max-width: 420px; }
#searchInput {
flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid var(--rand);
border-radius: 8px 0 0 8px; font: inherit; background: var(--panel);
}
#searchForm button {
border: 1px solid var(--rand); border-left: 0; border-radius: 0 8px 8px 0;
background: var(--panel); padding: 0 10px;
}
#sheetStatus {
font-size: .8rem; color: var(--muted); white-space: nowrap;
overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
#kopfRechts {
margin-left: auto; flex: 0 1 auto; min-width: 0;
display: flex; align-items: center; justify-content: flex-end; gap: 8px;
}
#sheetStatus:empty { display: none; }
#searchResults {
position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px;
background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
box-shadow: var(--shadow); z-index: 1300; overflow: hidden;
}
#searchResults button {
display: block; width: 100%; text-align: left; padding: 8px 10px;
border: 0; background: none; border-bottom: 1px solid var(--line);
font-size: .85rem;
}
#searchResults button:last-child { border-bottom: 0; }
#searchResults button:hover { background: var(--panel); }
#searchResults button.aktiv { background: var(--box); box-shadow: inset 3px 0 0 var(--blue); }
.iconbtn { border: 1px solid var(--rand); background: var(--panel); color: var(--text); border-radius: 8px; padding: 6px 9px; flex: none; }
.ic {
width: 1.15em; height: 1.15em;
vertical-align: -0.18em;
flex: none; pointer-events: none;
}
.iconbtn .ic, .fab.icon .ic { width: 1.3em; height: 1.3em; vertical-align: -0.25em; }
#topbar .icon3d { font-weight: 700; letter-spacing: .02em; }
#menueSprachen { display: flex; gap: 4px; }
#menueSprachen button { flex: 1 1 0; }
.fab .ic { margin-right: .35em; }
summary .ic, h4 .ic { margin-right: .4em; color: var(--muted); }
@media (max-width: 480px) {
#logo span { display: none; }
#topbar, #kopfRechts { gap: 4px; }
#topbar { padding: 0 6px; }
#searchInput { padding: 6px 7px; }
#searchForm { flex: 1 1 90px; min-width: 0; }
.iconbtn { padding: 5px 7px; }
#sheetStatus { display: none; }
}
#topbar .iconbtn { font-size: 15px; }
#topbar .iconbtn .ic { width: 20px; height: 20px; vertical-align: -5px; }
.menuefeld { position: relative; flex: none; }
#menue {
position: absolute; right: 0; top: calc(100% + 8px); z-index: 1300;
width: max-content; min-width: 250px; max-width: min(340px, calc(100vw - 16px));
max-height: calc(100vh - var(--topbar-h) - 16px); overflow-y: auto;
background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
box-shadow: var(--shadow); padding: 6px;
display: flex; flex-direction: column; gap: 2px;
}
#menue > button, #menue > a {
display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px;
border: 0; background: none; color: inherit; text-decoration: none; text-align: left;
padding: 8px 10px; border-radius: 8px; font-size: .9rem;
}
#menue > button:hover, #menue > a:hover { background: var(--box); }
#menue > .nurSchmal { display: none; }
@media (max-width: 480px) {
#logo, #btnTheme { display: none; }
#menue > .nurSchmal { display: flex; }
}
#menue > button .ic, #menue > a .ic { color: var(--muted); }
.menueGruppe { padding: 6px 6px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.menueBez { display: block; font-size: .76rem; color: var(--muted); margin: 0 0 6px 4px; }
.schriftwahl {
display: flex; gap: 4px; padding: 3px; border-radius: 10px;
background: var(--panel); border: 1px solid var(--line);
}
.schriftwahl button {
flex: 1 1 0; min-width: 0; min-height: 48px;
display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
border: 0; border-radius: 8px; background: none; color: var(--muted);
font-size: .76rem; padding: 4px;
}
.schriftwahl button:hover { color: var(--text); }
.schriftwahl button[aria-pressed="true"] { background: var(--blue); color: var(--auf-blau); font-weight: 600; }
.schriftprobe { font-weight: 700; line-height: 1; }
.probe-klein { font-size: 14px; }
.probe-mittel { font-size: 17px; }
.probe-gross { font-size: 20px; }
.menueFassung {
display: flex; align-items: center; justify-content: space-between; gap: 10px;
margin-top: 4px; padding: 8px 6px 4px 10px; border-top: 1px solid var(--line);
font-size: .78rem; color: var(--muted);
}
.menueFassung button.small { min-height: 36px; }
#map { position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 1; }
.leaflet-container { font: inherit; background: var(--panel); }
.leaflet-tile-pane { filter: var(--kartenFilter); }
#map .leaflet-control-attribution { font-size: 7.5px; line-height: 1.4; padding: 0 3px; }
:root[data-theme="dark"] .leaflet-control-attribution,
:root[data-theme="dark"] .leaflet-bar a {
background: var(--panel); color: var(--text);
}
:root[data-theme="dark"] .leaflet-bar a { border-bottom-color: var(--line); }
:root[data-theme="dark"] .leaflet-popup-content-wrapper,
:root[data-theme="dark"] .leaflet-popup-tip,
:root[data-theme="dark"] .leaflet-tooltip {
background: var(--panel); color: var(--text); border-color: var(--line);
}
#fabs {
position: fixed; right: 12px; width: min(520px, calc(100% - 24px));
bottom: calc(var(--unten) + var(--sheet-vis));
display: flex; flex-direction: column-reverse; gap: 6px; z-index: 1100;
align-items: flex-end; transition: bottom .25s, right .25s;
}
#fabIcons {
position: fixed; right: 12px;
bottom: calc(var(--unten) + 8px + var(--sheet-vis) + var(--fabs-h));
display: flex; flex-direction: column; gap: 6px; z-index: 1100;
transition: bottom .25s, right .25s;
}
.fab {
border: 0; border-radius: 9px; padding: 7px 10px; background: var(--bg);
box-shadow: var(--shadow); font-weight: 600; font-size: .8rem; text-align: center;
}
#fabDraw { display: flex; gap: 6px; align-self: stretch; }
#fabDraw .fab { flex: 1 1 0; min-width: 0; border: 2px solid transparent; }
#fabDraw .fab.dam { border-color: var(--blue); }
#fabDraw .fab.lake { border-color: var(--blue); }
#fabDraw .fab.drainage { border-color: #00acc1; }
.primary { background: var(--blue); color: var(--auf-blau); }
#scaleBar {
align-self: flex-start; box-sizing: content-box;
border: 2px solid var(--text); border-top: none;
background: var(--bg); box-shadow: var(--shadow);
padding: 1px 5px 2px; font-size: .68rem; line-height: 1.3; color: var(--text);
white-space: nowrap;
}
@media (max-width: 899px) {
#fabs { left: 0; right: 0; margin: 0 auto; }
#scaleBar {
position: fixed; left: 50%; transform: translateX(-50%);
bottom: calc(var(--unten) + 8px + var(--sheet-vis) + var(--fabs-h));
z-index: 1100;
}
#loader { bottom: calc(var(--unten) + 8px + var(--sheet-vis) + var(--fabs-h) + var(--scale-h) + 8px); }
}
#resPanel {
background: var(--bg); border-radius: 10px; box-shadow: var(--shadow);
align-self: stretch; width: auto;
display: grid; grid-template-columns: auto 1fr auto;
align-items: center; gap: 0 8px; padding: 9px 12px 10px;
}
#resHead { display: contents; }
#resHead span { grid-area: 1 / 1; font-size: .72rem; color: var(--muted); }
#resPanel input[type="range"] { grid-area: 1 / 2; margin: 0; width: auto; height: 30px; }
#resSource {
grid-area: 1 / 3; font-size: .7rem; font-weight: 700; color: var(--blue-dark);
background: var(--box); border: 1px solid var(--rand); border-radius: 6px;
padding: 6px 5px; max-width: 130px;
}
#resNote {
grid-area: 2 / 1 / 3 / -1; font-size: .66rem; line-height: 1.25;
max-height: 2.6em; overflow: hidden;
}
#resNote:empty { display: none; }
#resNote.warn { color: #c1791d; }
@media (max-width: 480px) {
#fabs {
width: calc(100% - 16px);
bottom: calc(var(--unten) + var(--sheet-vis));
}
#fabIcons {
right: 8px;
bottom: calc(var(--unten) + 8px + var(--sheet-vis) + var(--fabs-h));
}
.fab { padding: 6px 9px; font-size: .72rem; }
#resHead span, #resNote { font-size: .66rem; }
#resSource { font-size: .62rem; max-width: 92px; padding: 6px 3px; }
#scaleBar { font-size: .62rem; }
}
.fab.dam { background: var(--box); color: var(--blue-dark); border: 2px solid var(--blue); font-weight: 600; }
.fab.lake { background: var(--box); color: var(--blue-dark); border: 2px solid var(--blue); font-weight: 600; }
.fab.drainage { background: var(--box); color: #00838f; border: 2px solid #00acc1; font-weight: 600; }
#damName { flex: 1 1 auto; min-width: 80px; font: inherit; font-weight: 600; border: 1px solid var(--blue); border-radius: 8px; padding: 5px 6px; }
#drawDepth { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
#drawDepth input { width: 62px; font: inherit; padding: 6px 6px; border: 1px solid var(--rand); border-radius: 8px; }
#layerMenu {
position: fixed; right: 12px;
top: calc(var(--topbar-h) + 6px + env(safe-area-inset-top, 0px));
background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
z-index: 1300; overflow: hidden;
}
#layerMenu button { display: block; width: 100%; border: 0; background: none; padding: 10px 16px; text-align: left; color: var(--text); }
#layerMenu { max-height: calc(100vh - var(--topbar-h) - 24px); overflow-y: auto; width: min(360px, calc(100vw - 24px)); }
#ebenenListe button b { display: block; font-weight: 600; }
#ebenenListe button small { display: block; font-size: .74rem; color: var(--muted); line-height: 1.35; margin-top: 1px; }
#layerMenu button:hover, #layerMenu button.active { background: var(--box); }
#layerMenu hr { margin: 0; border: none; border-top: 1px solid var(--line); }
#drawbar {
position: fixed; left: 50%; transform: translateX(-50%);
bottom: var(--unten);
display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
width: min(420px, calc(100vw - 24px));
background: var(--bg); border-radius: var(--radius); box-shadow: var(--shadow);
padding: 10px 12px; z-index: 1400;
border: 2px solid var(--blue);
}
@media (min-width: 900px) {
#drawbar { bottom: auto; top: calc(var(--topbar-h) + 12px); }
}
#drawInfo { display: flex; flex-direction: column; line-height: 1.3; flex: 1 0 100%; order: 0; }
#drawDepth { order: 2; margin-right: auto; }
#btnDrawUndo, #btnDrawCancel { order: 3; }
#btnDrawDone { order: 3; flex: 1 1 auto; }
#drawInfo b { font-size: .88rem; }
#drawInfo span { font-size: .76rem; color: var(--muted); }
#drawbar button { border: 1px solid var(--rand); background: var(--panel); color: var(--text); border-radius: 8px; padding: 9px 12px; }
#drawbar button.primary { border: 0; background: var(--blue); color: var(--auf-blau); font-weight: 600; }
#gpsLeiste { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 6px; flex: 1 0 100%; order: 1; }
#gpsLeiste[hidden] { display: none !important; }
#gpsLeiste button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 0; }
#gpsStand { grid-column: 1 / -1; }
#gpsLeiste button[aria-pressed="true"] { background: #c62828; border-color: #c62828; color: #fff; }
#gpsStand { font-size: .76rem; color: var(--muted); }
#drawbar button.primary:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
#sheet {
position: fixed; z-index: 1150; background: var(--bg);
box-shadow: 0 -4px 20px rgba(10,30,60,.22);
display: flex; flex-direction: column;
left: 0; right: 0; bottom: 0; height: var(--sheet-h);
border-radius: 16px 16px 0 0;
transition: transform .25s;
}
#sheet[data-state="closed"] { transform: translateY(110%); }
#sheet[data-state="peek"]   { transform: translateY(calc(100% - 116px)); }
#sheet[data-state="open"]   { transform: none; }
#sheetHandle {
display: flex; justify-content: center; padding: 9px 0 4px;
cursor: grab; touch-action: none;
}
#sheetHandle:active { cursor: grabbing; }
.grip { width: 52px; height: 5px; border-radius: 3px; background: var(--line); }
#sheetHead { display: flex; align-items: center; gap: 8px; padding: 4px 12px 6px; }
#damSelect { flex: 0 1 auto; max-width: 46%; font: inherit; font-weight: 600;
border: 1px solid var(--rand); border-radius: 8px; padding: 5px 22px 5px 8px;
background: var(--panel); color: inherit; text-align: left; cursor: pointer;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: relative; }
#damSelect::after { content: ""; position: absolute; right: 8px; top: 50%;
width: 6px; height: 6px; margin-top: -4px; border-right: 2px solid var(--muted);
border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
#damSelect[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -1px; }
#damSelect:disabled { opacity: .6; cursor: default; }
#damListe { position: absolute; z-index: 20; left: 10px; right: 10px;
top: calc(var(--topbar-h) + 6px); max-height: 52vh; overflow-y: auto;
background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
box-shadow: var(--shadow); padding: 4px; }
.damZeile { display: flex; align-items: center; gap: 2px; border-radius: 8px; }
.damZeile.gewaehlt { background: var(--box); }
.damZeileName { flex: 1; min-width: 0; font: inherit; text-align: left; color: inherit;
background: none; border: 0; padding: 7px 8px; cursor: pointer; border-radius: 8px;
white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.damZeile.gewaehlt .damZeileName { font-weight: 600; }
.damZeileName:hover { background: var(--box); }
.damZeile .weg, .damGruppe .weg { flex: 0 0 auto; padding: 4px 6px; opacity: .55; }
.damZeile .weg:hover, .damGruppe .weg:hover { opacity: 1; color: #b3261e; }
.damGruppe { display: flex; align-items: center; gap: 2px; margin-top: 4px;
font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 4px; }
.damGruppe:first-child { border-top: 0; margin-top: 0; }
.damZeile.inGruppe { margin-left: 10px; }
#sheetHeadSpacer { flex: 1; }
#kategorien { display: flex; gap: 6px; padding: 0 12px 6px; }
#kategorien button {
flex: 1; border: 1px solid var(--rand); background: var(--panel); border-radius: 8px;
padding: 5px 6px; font-size: .78rem; color: var(--muted); white-space: nowrap;
overflow: hidden; text-overflow: ellipsis;
}
#kategorien button.active { background: var(--box); border-color: var(--boxLine); color: var(--blue-dark); font-weight: 600; }
#kategorien button:disabled { opacity: .45; }
#tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
#tabs button {
flex: 1; border: 0; background: none; padding: 9px 8px; white-space: nowrap;
color: var(--muted); border-bottom: 2px solid transparent; font-size: .85rem;
}
#tabs button.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }
#panels { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.panel { display: none; padding: 12px 14px calc(20px + env(safe-area-inset-bottom, 0px)); }
.panel.active { display: block; }
@media (min-width: 900px) {
#sheet {
left: auto; top: var(--topbar-h); height: auto; width: 400px;
border-radius: 0; box-shadow: -4px 0 20px rgba(10,30,60,.15);
}
#sheet[data-state="closed"] { transform: translateX(110%); }
#sheet[data-state="peek"], #sheet[data-state="open"] { transform: none; }
#sheetHandle { display: none; }
body.sheet-open #fabs { right: 412px; width: min(520px, calc(100% - 424px)); }
body.sheet-open #fabIcons { right: 412px; }
}
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.stat b { display: block; font-size: 1.05rem; color: var(--blue-dark); }
.stat.statErgebnis { border-color: var(--blue); }
.stat.statErgebnis b { font-size: 1.35rem; }
.stat span { font-size: .72rem; color: var(--muted); }
.stat small { display: block; font-size: .72rem; color: var(--muted); }
.sliderRow { margin-top: 4px; }
.sliderRow label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: 4px; }
input[type="range"] { width: 100%; accent-color: var(--blue); }
#levelRow {
display: flex; align-items: center; gap: 8px; margin-top: 8px;
font-size: .78rem; color: var(--muted);
}
#levelRow input { width: 108px; font: inherit; padding: 5px 7px;
border: 1px solid var(--rand); border-radius: 8px; background: var(--bg); color: var(--text); }
.formGrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; margin: 8px 0; }
.formGrid label { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--muted); }
.formGrid label:not(.schalter) {
display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 1fr auto;
column-gap: 6px; row-gap: 3px; align-items: start;
hyphens: auto; overflow-wrap: anywhere;
}
.formGrid label:not(.schalter) > input,
.formGrid label:not(.schalter) > select,
.formGrid label:not(.schalter) > textarea { grid-column: 1 / -1; grid-row: 2; align-self: end; }
.formGrid label > i.term { grid-column: 2; grid-row: 1; margin: 1px 0 0; vertical-align: 0; }
.formGrid input, .formGrid select, textarea {
font: inherit; padding: 7px 8px; border: 1px solid var(--rand); border-radius: 8px;
background: var(--bg); color: var(--text); width: 100%;
}
textarea { resize: vertical; margin-top: 6px; }
.rowBtns { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
button.small { border: 1px solid var(--rand); background: var(--panel); color: var(--text); border-radius: 8px; padding: 7px 11px; font-size: .82rem; }
button.small.primary { background: var(--blue); color: var(--auf-blau); border-color: var(--blue); }
.resultBox {
background: var(--box); border: 1px solid var(--boxLine); border-radius: 10px;
padding: 10px 12px; margin: 8px 0; font-size: .86rem; line-height: 1.45;
}
.resultBox.warn { background: var(--warnBox); border-color: var(--warnLine); }
.resultBox.ok { background: var(--okBox); border-color: var(--okLine); }
.hint { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.hint.vorlaeufig {
grid-column: 1 / -1;
margin: 0 0 .5rem;
padding: .35rem .55rem;
border-left: 3px solid var(--blue);
background: var(--box);
border-radius: 4px;
color: var(--text);
}
.hint.vorlaeufig::before {
content: '';
display: inline-block;
width: .6em; height: .6em;
margin-right: .45em;
border: 2px solid currentColor;
border-right-color: transparent;
border-radius: 50%;
vertical-align: -.05em;
animation: vorlaeufigDreh .8s linear infinite;
}
@keyframes vorlaeufigDreh { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
.hint.vorlaeufig::before { animation: none; }
}
details { margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
details summary { cursor: pointer; font-weight: 600; font-size: .88rem; }
details[open] summary { margin-bottom: 6px; }
.chart { width: 100%; overflow: hidden; }
.chart svg { display: block; width: 100%; height: auto; }
.fishFig, .damFig {
background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
padding: 6px; margin: 8px 0;
}
.fishFig svg, .damFig svg { display: block; width: 100%; height: auto; }
.leaflet-tooltip.damTip {
max-width: 150px; white-space: normal; line-height: 1.35;
font-size: .78rem; padding: 6px 8px; text-align: left;
}
.leaflet-tooltip.damTip b { display: block; margin-bottom: 2px; }
.damBody { stroke-linejoin: round; }
.damBody.mat-beaver { fill: url(#seaPat-beaver); }
.damBody.mat-earth { fill: url(#seaPat-earth); }
.damBody.mat-rock { fill: url(#seaPat-rock); }
.damBody.mat-concrete { fill: url(#seaPat-concrete); }
table.mats { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .82rem; margin: 8px 0; }
table.mats td, table.mats th {
padding: 5px 6px; border-bottom: 1px solid var(--line); text-align: left;
overflow-wrap: anywhere;
}
table.mats td:first-child, table.mats th:first-child { width: 44%; }
table.mats td:last-child, table.mats th:last-child { text-align: right; }
table.mats.matsCompare { font-size: .76rem; }
table.mats.matsCompare td, table.mats.matsCompare th { padding: 5px 4px; }
table.mats.matsCompare td:not(:first-child),
table.mats.matsCompare th:not(:first-child) { text-align: right; }
table.mats.matsCompare td:nth-child(1), table.mats.matsCompare th:nth-child(1) { width: 33%; }
table.mats.matsCompare td:nth-child(2), table.mats.matsCompare th:nth-child(2) { width: 21%; }
table.mats.matsCompare td:nth-child(3), table.mats.matsCompare th:nth-child(3) { width: 15%; }
table.mats.matsCompare td:nth-child(4), table.mats.matsCompare th:nth-child(4) { width: 31%; }
table.mats tr.matSel td { background: var(--box); font-weight: 600; }
table.mats.matsFeuchte { font-size: .78rem; }
table.mats.matsFeuchte td:first-child, table.mats.matsFeuchte th:first-child { width: 34%; }
table.mats.matsFeuchte td:not(:first-child),
table.mats.matsFeuchte th:not(:first-child) { text-align: right; }
table.mats.matsFeuchte .hint { font-weight: 400; }
.formGrid input[type="range"] { padding: 0; border: 0; background: none; height: 28px; }
.feuchteText { margin: -4px 0 0; font-size: .8rem; line-height: 1.45; color: var(--muted); }
.feuchteText b { display: block; color: var(--text); font-size: .86rem; }
.abflussFeld {
margin: 8px 0 10px; padding: 10px 12px;
background: var(--box); border: 1px solid var(--boxLine); border-radius: 10px;
}
.abflussFeld.offen { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.abflussFeld label { display: block; margin-bottom: 6px; font-size: .9rem; font-weight: 600; color: var(--text); }
.abflussEingabe { display: flex; gap: 8px; }
.abflussEingabe input, .abflussEingabe select {
font: inherit; font-size: 1rem; padding: 8px 10px;
border: 1px solid var(--rand); border-radius: 8px; background: var(--bg); color: var(--text);
}
.abflussEingabe input { flex: 1 1 auto; min-width: 0; width: 100%; }
.abflussEingabe select { flex: none; }
.vertLegende { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; font-size: .8rem; }
.vertLegende li { display: flex; align-items: center; gap: 8px; }
.vertLegende .vf { width: 18px; height: 12px; border-radius: 3px; flex: none; border: 1px solid var(--line); }
.vf-nass { background: rgba(0, 150, 136, .7); }
.vf-kap { background: rgba(139, 195, 74, .55); }
.vf-fliess { background: rgba(30, 136, 229, .7); }
.vf-stau { background: rgba(13, 71, 161, .85); }
.stats.veraltet { opacity: .55; }
.profilKurve { cursor: ns-resize; touch-action: none; outline: none; border-radius: 6px; }
.profilKurve:focus-visible { box-shadow: 0 0 0 2px var(--blue); }
.profilKurve .griffPunkt.hervor { stroke: #ef6c00; stroke-width: 3; }
.profilKurve .griffPunkt.vonHand.hervor { stroke: #8a3a00; }
.bandEbene { opacity: .38; pointer-events: none; }
.verteilung-overlay { image-rendering: auto; }
.panel { overflow-x: hidden; }
.fullRow { grid-column: 1 / -1; }
.warnInline { color: #b4690e; }
mark.platzhalter {
background: #ffe9a8; color: #6b4c00; padding: 0 4px; border-radius: 4px;
font-style: italic;
}
:root[data-theme="dark"] mark.platzhalter { background: #6b5310; color: #ffe9a8; }
.introFig { margin: 12px 0; }
.introSvg { width: 100%; height: auto; display: block; }
.introSvg text { fill: var(--text); }
.introSvg text.klein { fill: var(--muted); }
.introSvg text.kennwert { fill: var(--blue); font-weight: 600; }
.introSvg line.trenn { stroke: var(--line); }
.introSvg path.riss { fill: var(--text); opacity: .55; }
.introFig, table.introTable { background: var(--box); border-radius: 10px; }
.introFig { padding: 8px; }
table.introTable { font-size: .76rem; }
table.introTable td, table.introTable th { padding: 6px 8px; }
table.introTable td:first-child, table.introTable th:first-child { width: 26%; }
table.introTable td:nth-child(2), table.introTable th:nth-child(2) { width: 37%; }
table.introTable td:nth-child(3), table.introTable th:nth-child(3) { width: 37%; text-align: left; }
table.introTable.introGenau td, table.introTable.introGenau th { width: auto; }
table.introTable.introGenau td:first-child, table.introTable.introGenau th:first-child { width: 20%; }
table.introTable.introGenau td:nth-child(n+3), table.introTable.introGenau th:nth-child(n+3) { text-align: right; }
.langPick button {
width: auto; margin-top: 0; padding: 4px 9px;
border: 1px solid var(--rand); border-radius: 8px;
background: var(--panel); color: var(--muted);
font-size: .74rem; font-weight: 600; letter-spacing: .02em;
}
.langPick button:hover { border-color: var(--blue); color: var(--blue); }
.langPick button[aria-pressed="true"] {
background: var(--blue); border-color: var(--blue); color: var(--auf-blau);
}
i.term {
display: inline-block; cursor: help; font-style: normal; font-weight: 700;
font-size: .62rem; line-height: 1.05; vertical-align: super; margin-left: 3px;
color: var(--blue); border: 1px solid currentColor; border-radius: 50%;
width: 1.15em; height: 1.15em; text-align: center; flex: none;
}
i.term:hover, i.term:focus { background: var(--blue); color: var(--bg); outline: none; }
#termPop {
position: fixed; z-index: 2200; max-width: 270px;
background: var(--panel); color: var(--text);
border: 1px solid var(--boxLine); border-radius: 10px;
box-shadow: var(--shadow); padding: 10px 12px;
}
#termPop.mittig {
left: 10px; right: 10px; max-width: none;
top: 50%; transform: translateY(-50%);
max-height: 74vh; overflow-y: auto; padding-right: 40px;
}
#termPop #termClose { position: absolute; top: 8px; right: 8px; }
#termPop b { display: block; font-size: .86rem; margin-bottom: 4px; color: var(--blue-dark); }
#termPop p { margin: 0; font-size: .78rem; line-height: 1.5; }
#termFormel {
display: block; margin-top: 8px; padding: 6px 8px; border-radius: 6px;
background: var(--box); border: 1px solid var(--boxLine);
font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
font-size: .72rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere;
}
#v3Modal {
position: fixed; inset: 0; z-index: 2050; background: var(--bg);
display: flex; flex-direction: column;
}
#v3Head {
display: flex; align-items: center; gap: 10px; padding: 10px 12px;
border-bottom: 1px solid var(--line); flex: none;
padding-top: calc(10px + env(safe-area-inset-top, 0px));
}
#v3Text {
flex: 1; min-width: 0;
display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
}
#v3Head b { font-size: .95rem; }
#v3Info { font-size: .78rem; color: var(--muted); }
#v3Canvas {
flex: 1; width: 100%; min-height: 0; display: block; touch-action: none; cursor: grab;
background: linear-gradient(180deg, #1d3a24 0%, #142a19 45%, #0a140c 80%, #050806 100%);
}
#v3Canvas:active { cursor: grabbing; }
#v3Bar {
display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
border-top: 1px solid var(--line); flex: none;
}
#v3ExLabel { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
#v3ExLabel input { width: 100px; accent-color: var(--blue); }
#v3Bar .hint { flex: 1; text-align: right; min-width: 120px; }
.beaverCheck { list-style: none; margin: 8px 0 0; padding: 0; }
.beaverCheck li { padding: 4px 0 4px 2px; font-size: .82rem; line-height: 1.45; }
.beaverCheck li.ja { color: var(--green); }
.beaverCheck li.nein { color: #d4674a; }
.beaverCheck li.evtl { color: #c1791d; }
.beaverBox { border-color: var(--okLine); background: var(--okBox); }
.beaverBox .srcStep { background: var(--bg); border-color: var(--okLine); }
.modal, #pwaModal {
position: fixed; inset: 0; z-index: 2050; background: rgba(12, 30, 50, .55);
display: flex; align-items: center; justify-content: center; padding: 16px;
}
#pwaModal .card {
position: relative; background: var(--bg); border-radius: 16px; padding: 20px;
max-width: 640px; width: 100%; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow);
}
#pwaModal h3 { margin: 0 0 10px; font-size: 1.05rem; padding-right: 32px; }
#demModal h4 { margin: 16px 0 6px; font-size: .92rem; }
.modalClose { position: absolute; top: 12px; right: 12px; }
.card.dlg {
position: relative; background: var(--bg); border-radius: 16px;
max-width: 640px; width: 100%; max-height: 88vh; box-shadow: var(--shadow);
display: flex; flex-direction: column; overflow: hidden;
}
.card.dlg.schmal { max-width: 480px; }
.dlgKopf {
flex: none; display: flex; align-items: center; gap: 10px;
padding: 12px 12px 10px 20px; border-bottom: 1px solid var(--line);
}
.dlgKopf h3 { flex: 1; min-width: 0; margin: 0; font-size: 1.05rem; }
.dlgKopf h3 .ic { margin-right: .4em; color: var(--muted); }
.dlgKopf .modalClose { position: static; }
.dlgInhalt { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 14px 20px 16px; }
.dlgInhalt > p:first-child { margin-top: 0; }
.dlgFuss {
flex: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
padding: 10px 20px calc(12px + env(safe-area-inset-bottom, 0px));
border-top: 1px solid var(--line); background: var(--bg);
}
.dlgFuss button {
min-height: 44px; border-radius: 8px; padding: 8px 16px; font-weight: 600;
border: 1px solid var(--rand); background: var(--panel); color: var(--text);
}
.dlgFuss button.primary { background: var(--blue); border-color: var(--blue); color: var(--auf-blau); }
.dlgFuss button:disabled { opacity: .5; cursor: not-allowed; }
ol.sattelListe { margin: 6px 0 0; padding-left: 20px; font-size: .84rem; line-height: 1.5; }
.srcStep {
background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
padding: 10px 12px; margin: 8px 0; font-size: .84rem; line-height: 1.5;
}
.srcStep b { color: var(--blue-dark); }
.srcStep ol { margin: 6px 0 0; padding-left: 20px; }
.srcStep code {
background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
padding: 1px 5px; font-size: .82em; word-break: break-all;
}
.srcList { list-style: none; margin: 6px 0; padding: 0; }
.srcList li {
padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .84rem;
display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
}
.srcList li:last-child { border-bottom: 0; }
.srcList a { color: var(--blue); }
.srcList .res { color: var(--muted); font-size: .78rem; }
.srcGroup { margin: 10px 0; }
.srcGroup > b { font-size: .88rem; }
.srcHere {
background: var(--okBox); border: 1px solid var(--okLine); border-radius: 10px;
padding: 8px 12px; margin: 8px 0;
}
.leaflet-tooltip.kantenMass {
background: rgba(255,255,255,.9); color: #1c2733; border: 0; border-radius: 6px;
padding: 1px 5px; font-size: .72rem; font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.3);
pointer-events: none;
}
.leaflet-tooltip.kantenMass::before { display: none; }
.zeigerMass {
position: absolute; z-index: 800; transform: translate(-50%, -100%);
background: rgba(28,39,51,.9); color: #fff; border-radius: 8px;
padding: 3px 8px; font-size: .76rem; font-weight: 600; white-space: nowrap;
pointer-events: none;
}
.messTip {
background: rgba(28,39,51,.88); color: #fff; border: 0; border-radius: 8px;
font-size: .74rem; font-weight: 600; text-align: center; box-shadow: var(--shadow);
}
.messTip::before { display: none; }
#toast {
position: fixed; left: 50%; transform: translateX(-50%);
bottom: calc(90px + env(safe-area-inset-bottom, 0px));
background: var(--text); color: var(--bg); border-radius: 10px; padding: 10px 16px;
font-size: .85rem; z-index: 2100; max-width: 90vw; text-align: center;
box-shadow: var(--shadow);
}
body.sheet-open #toast { bottom: calc(var(--sheet-vis) + 12px); }
#toast:has(.toastKnopf) { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
#toast .toastKnopf {
border: 1px solid currentColor; background: none; color: inherit;
border-radius: 8px; padding: 6px 14px; min-height: 36px; font-weight: 600; flex: none;
}
#toast:has(.toastZu) { padding-right: 44px; }
#toast .toastZu {
position: absolute; top: 4px; right: 4px;
width: 36px; height: 36px; padding: 0; border: 0; border-radius: 8px;
background: none; color: inherit; display: grid; place-items: center;
}
#toast .toastZu .ic { width: 18px; height: 18px; }
@media (min-width: 900px) { body.sheet-open #toast { bottom: 90px; } }
#loader {
position: fixed;
bottom: calc(var(--unten) + 8px + var(--sheet-vis) + var(--fabs-h));
left: var(--loader-cx, 50%); transform: translateX(-50%);
z-index: 1250;
background: var(--bg); border-radius: 10px; box-shadow: var(--shadow);
display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: .82rem;
}
.spin {
width: 16px; height: 16px; border: 3px solid var(--line); border-top-color: var(--blue);
border-radius: 50%; animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.dam-vertex { cursor: grab; }
.dam-vertex:active { cursor: grabbing; }
.dam-vertex div {
width: 16px; height: 16px; background: #fff; border: 3px solid #8d5524;
border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.dam-mid div {
width: 14px; height: 14px; border-radius: 50%;
background: #8d5524; border: 2px solid #fff; opacity: .75;
color: #fff; font-size: 11px; line-height: 10px; text-align: center; font-weight: 700;
box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.dam-mid:hover div { opacity: 1; transform: scale(1.15); }
.vertexPopup { display: flex; gap: 6px; align-items: center; font-size: .8rem; }
.vertexPopup button { border: 1px solid var(--rand); background: var(--panel); border-radius: 6px; padding: 4px 8px; }
.leaflet-popup-content { margin: 8px 10px; }
#editHint {
position: fixed; left: 50%; transform: translateX(-50%);
top: calc(var(--topbar-h) + 10px);
background: rgba(28,39,51,.9); color: #fff; border-radius: 20px;
padding: 7px 14px; font-size: .78rem; z-index: 1120; pointer-events: none;
max-width: 92vw; text-align: center;
}
@media (max-width: 480px) {
#drawbar {
left: 8px; right: 8px; transform: none; width: auto;
bottom: var(--unten);
padding: 6px 8px; gap: 5px; border-radius: 10px;
}
#drawInfo b { font-size: .78rem; }
#drawInfo span { font-size: .66rem; line-height: 1.25; }
#drawbar button { padding: 6px 9px; font-size: .74rem; border-radius: 8px; }
#drawDepth { margin-right: auto; font-size: .72rem; gap: 4px; }
#drawDepth input { width: 52px; padding: 5px; }
#layerMenu {
left: 8px; right: 8px;
display: flex; flex-wrap: wrap; gap: 5px; padding: 6px; border-radius: 10px;
}
#layerMenu button {
flex: 1 1 auto; width: auto; text-align: center; padding: 7px 6px;
font-size: .73rem; border: 1px solid var(--rand); border-radius: 8px;
}
#layerMenu hr { display: none; }
#ebenenListe { display: contents; }
#ebenenListe button small { display: none; }
#layerMenu { width: auto; }
#layerMenu #btnSchluesselEbenen { flex: 1 1 100%; }
#layerMenu #btnWaterLayer { flex: 1 1 100%; }
#loader {
padding: 5px 10px; font-size: .72rem; border-radius: 8px;
max-width: calc(100% - 16px);
}
#editHint { font-size: .7rem; padding: 5px 10px; border-radius: 10px; max-width: calc(100% - 16px); }
#toast { left: 8px; right: 8px; transform: none; max-width: none; padding: 8px 12px; font-size: .76rem; }
.modal, #pwaModal { padding: 8px; }
.card.dlg { border-radius: 12px; max-height: calc(100vh - 16px); }
.dlgKopf { padding-left: 14px; }
.dlgInhalt { padding: 12px 14px 14px; }
.dlgFuss { padding-left: 14px; padding-right: 14px; }
}
@media print {
:root { --kartenFilter: none; }
html, body { height: auto; overflow: visible; background: #fff; color: #000; }
#topbar, #fabDraw, #resPanel, #scaleBar, #drawInfo, #sheetHead, #tabs, #kategorien,
#v3Modal, #pwaModal, .modal, #loader, #toast, .leaflet-control-container,
.rowBtns, #layerMenu, #searchResults, .modalClose,
.fab, .iconbtn, button, select, input, #sheetHeadSpacer {
display: none !important;
}
#map {
position: relative !important;
inset: auto !important;
width: 100% !important;
height: 105mm !important;
page-break-inside: avoid;
border: 1px solid #999;
}
#sheet {
position: static !important;
transform: none !important;
width: 100% !important;
max-width: none !important;
height: auto !important;
box-shadow: none !important;
border: 0 !important;
background: #fff !important;
}
#panels { overflow: visible !important; height: auto !important; }
.panel { display: block !important; page-break-inside: auto; }
.panel + .panel { border-top: 1px solid #ccc; margin-top: 6mm; padding-top: 4mm; }
details { display: block !important; }
details > summary { font-weight: 600; list-style: none; }
details:not([open]) > *:not(summary) { display: none; }
.stat, .resultBox, table, .srcGroup { page-break-inside: avoid; }
.stat, .resultBox { border: 1px solid #ccc !important; background: #fff !important; }
a { color: #000; text-decoration: none; }
.srcList a::after { content: " (" attr(href) ")"; font-size: .75em; color: #444; }
.term, #levelRow, #gewaesserBox .rowBtns { display: none !important; }
#druckKopf { display: block !important; }
}
#druckKopf { display: none; }
@media print {
#druckKopf {
margin: 0 0 4mm;
padding-bottom: 2mm;
border-bottom: 2px solid #000;
font-size: 10pt;
}
#druckKopf h1 { margin: 0 0 1mm; font-size: 15pt; }
#druckKopf .vorbehalt { font-size: 8pt; color: #444; }
}
.wahlkarten { display: grid; gap: 8px; margin: 12px 0; }
.wahlkarte {
display: flex; align-items: flex-start; gap: 10px; width: 100%; min-height: 48px;
text-align: left; padding: 10px 12px; border-radius: 10px;
border: 1px solid var(--rand); background: var(--panel); color: var(--text);
}
.wahlkarte .ic { width: 1.4em; height: 1.4em; margin-top: 1px; color: var(--muted); flex: none; }
.wahlkarte b { display: block; font-size: .9rem; }
.wahlkarte small { display: block; font-size: .76rem; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.wahlkarte:hover:not(:disabled) { border-color: var(--blue); }
.wahlkarte[aria-pressed="true"] { border-color: var(--blue); background: var(--box); box-shadow: inset 0 0 0 1px var(--blue); }
.wahlkarte[aria-pressed="true"] .ic { color: var(--blue); }
.wahlkarte:disabled { opacity: .6; cursor: not-allowed; }
.dlgInhalt .formGrid label span { color: var(--muted); }
.schluesselBlock { padding: 10px 0 12px; border-top: 1px solid var(--line); }
.schluesselBlock h4 { margin: 4px 0 2px; }
.schluesselBlock .hint { margin: 2px 0 6px; }
.schluesselFeld { display: flex; flex-direction: column; gap: 3px; font-size: .78rem; color: var(--muted); }
.schluesselFeld input { font: inherit; padding: 8px; border: 1px solid var(--rand); border-radius: 8px; background: var(--bg); color: var(--text); }
.schluesselBlock .rowBtns { align-items: center; margin: 8px 0 0; }
.schluesselBlock .rowBtns a { color: var(--blue); }
.rechtLinks { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 14px 0 4px; font-size: .84rem; }
.rechtLinks a { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); min-height: 32px; }
.rechtLinks .ic { color: var(--muted); }
.menueText { display: flex; flex-direction: column; line-height: 1.3; }
.menueNeben { font-size: .74rem; color: var(--muted); }
.sicherungStand { font-size: .8rem; line-height: 1.45; margin: 10px 0 0; padding: 8px 10px;
border-radius: 8px; background: var(--okBox); border: 1px solid var(--okLine); }
.sicherungStand.offen { background: var(--warnBox); border-color: var(--warnLine); }
.sicherungStand small { display: block; color: var(--muted); margin-top: 3px; }
#variantenTabelle { overflow-x: auto; }
.cmpTable { width: 100%; min-width: 340px; border-collapse: collapse; font-size: .82rem; margin: 6px 0; }
.cmpTable th, .cmpTable td { padding: 4px 6px; text-align: right; border-bottom: 1px solid var(--line); }
.cmpTable th:first-child, .cmpTable td:first-child { text-align: left; }
.cmpTable th { font-weight: 600; color: var(--muted); }
.cmpTable tr.matSel td { background: var(--box); font-weight: 600; }
.formGrid label.schalter { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.formGrid label.schalter input { width: auto; flex: none; }
.kvZeile {
display: flex; align-items: center; justify-content: space-between;
gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--line);
}
.kvZeile:last-of-type { border-bottom: 0; }
.kvZeile span { min-width: 0; }
#kvFortschritt { display: flex; align-items: center; gap: .5rem; margin: .6rem 0; }
label.chk { display: flex; align-items: center; gap: .45rem; margin-top: .5rem; font-size: .92em; }
label.chk input { margin: 0; }
.pwaStapel {
display: flex; flex-direction: column; gap: 10px;
width: 100%; max-width: 640px; overflow-y: auto;
}
#pwaModal .card { max-height: none; overflow: visible; }
#pwaModal {
align-items: flex-start;
padding-top: calc(var(--topbar-h) + 20px);
padding-bottom: 20px;
}
.pwaStapel { max-height: calc(100vh - var(--topbar-h) - 40px); }
#startMehr { display: flex; flex-direction: column; gap: 10px; }
#startMehr details {
background: var(--bg); border-radius: 16px; box-shadow: var(--shadow);
overflow: hidden;
}
#startMehr summary {
padding: 14px 18px; cursor: pointer; list-style: none; font-weight: 600;
display: flex; align-items: center; justify-content: space-between; gap: .6rem;
}
#startMehr summary::-webkit-details-marker { display: none; }
#startMehr summary::after { content: '›'; opacity: .55; font-size: 1.3em; transition: transform .15s; }
#startMehr details[open] summary::after { transform: rotate(90deg); }
#startMehr details[open] summary { border-bottom: 1px solid var(--line); }
.detInhalt { padding: 4px 18px 16px; }
.detInhalt ol { padding-left: 20px; line-height: 1.7; }
.detInhalt p { line-height: 1.55; }
.pwaLeiste {
position: sticky; top: 0; z-index: 2;
display: flex; align-items: flex-start; gap: 10px;
background: var(--bg); border-radius: 16px 16px 0 0;
padding: 14px 12px 12px 20px; margin-bottom: -10px;
border-bottom: 1px solid var(--line);
}
.pwaLeiste .modalClose { position: static; flex: none; }
#pwaModal .pwaLeiste + .card { border-radius: 0 0 16px 16px; padding-top: 14px; }
.pwaKopf {
flex: 1; min-width: 0;
display: flex; align-items: center; justify-content: space-between;
gap: .8rem; flex-wrap: wrap;
}
#pwaModal .pwaKopf h3 { margin: 0; padding-right: 0; }
.pwaKopf .langPick { display: flex; gap: 4px; margin: 0; }
@media (max-width: 480px) {
.pwaStapel { max-height: calc(100vh - var(--topbar-h) - 26px); gap: 8px; }
.pwaLeiste { margin-bottom: -8px; padding-left: 14px; }
#pwaModal { padding-top: calc(var(--topbar-h) + 12px); padding-bottom: 14px; }
#startMehr summary { padding: 12px 14px; }
.detInhalt { padding: 4px 14px 14px; }
}
@media (max-width: 480px) {
#menue {
position: fixed; left: 8px; right: 8px; top: calc(var(--topbar-h) + 6px);
width: auto; max-width: none; min-width: 0;
}
}
@media (pointer: coarse) {
.iconbtn, button.small, #drawbar button, .vertexPopup button,
#tabs button, #kategorien button, #layerMenu button, #searchResults button,
.damZeileName, .damZeile .weg, .damGruppe .weg { min-height: 44px; }
.iconbtn, .damZeile .weg, .damGruppe .weg { min-width: 44px; }
#topbar .iconbtn { min-width: 40px; }
.langPick button { min-height: 40px; min-width: 44px; }
.fab { min-height: 40px; }
i.term { position: relative; }
i.term::after { content: ''; position: absolute; inset: -12px; }
}
#berichtAnsicht {
position: fixed; inset: 0; z-index: 2060; background: var(--panel);
display: flex; flex-direction: column;
}
.bWerkzeug {
flex: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
padding: 10px 12px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
background: var(--bg); border-bottom: 1px solid var(--line);
}
.bWerkzeugTitel { display: flex; align-items: center; gap: 6px; font-size: .95rem; }
.bWerkzeug .modalClose { position: static; }
.bLuecke { flex: 1; }
.bUmfang { display: flex; gap: 4px; padding: 3px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); }
.bUmfang button { border: 0; background: none; border-radius: 7px; padding: 6px 10px; font-size: .8rem; color: var(--muted); }
.bUmfang button[aria-pressed="true"] { background: var(--blue); color: var(--auf-blau); font-weight: 600; }
#berichtRahmen { flex: 1; min-height: 0; overflow: auto; padding: 18px 12px 40px; }
.berichtBlatt {
--bg: #fff; --panel: #fafbfd; --text: #1c2733; --muted: #4f5d6b; --line: #d5dde6;
--box: #eef4fb; --boxLine: #c9dcf2; --warnBox: #fdf3e4; --warnLine: #f0d9ae;
--okBox: #edf7ec; --okLine: #c6e3c4; --blue: #1565c0; --blue-dark: #0d2c6b; --green: #3d6b35;
color-scheme: light;
max-width: 210mm; margin: 0 auto; background: #fff; color: #1c2733;
padding: 16mm 15mm 14mm; box-shadow: 0 2px 18px rgba(0, 0, 0, .18); border-radius: 4px;
font-size: calc(14px * var(--skala));
}
.bKopf { border-bottom: 2px solid #1c2733; padding-bottom: 8px; margin-bottom: 14px; }
.bMarke { font-weight: 700; letter-spacing: .06em; color: #3d6b35; font-size: .8rem; }
.bKopf h1 { margin: 4px 0 2px; font-size: 1.6rem; }
.bUnter { margin: 0; color: var(--muted); }
.bVorbehalt { margin: 6px 0 0; font-size: .8rem; color: var(--muted); }
.berichtBlatt h2 { font-size: 1.25rem; margin: 22px 0 8px; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.berichtBlatt h3 { font-size: 1.02rem; margin: 14px 0 6px; }
.bTeil { position: relative; }
.bWeg {
position: absolute; top: 0; right: -6px; border: 1px solid var(--line); background: #fff; color: #7b8794;
border-radius: 6px; width: 28px; height: 28px; line-height: 1; font-size: 14px;
}
.bWeg:hover { color: #b3261e; border-color: #b3261e; }
.bAngaben { display: grid; grid-template-columns: minmax(9em, 32%) 1fr; gap: 3px 12px; margin: 6px 0 10px; }
.bAngaben dt { color: var(--muted); }
.bAngaben dd { margin: 0; }
.bKarte { margin: 10px 0 12px; }
.bKarte svg { display: block; width: 100%; height: auto; }
.bKarte figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: .78rem; color: var(--muted); margin-top: 3px; }
.bTabelle td:first-child, .bTabelle th:first-child { width: 3em; }
.bTabelle td:not(:nth-child(2)), .bTabelle th:not(:nth-child(2)) { text-align: right; }
.bTabelle td:nth-child(2), .bTabelle th:nth-child(2) { text-align: left; width: auto; }
.bFrei { min-height: 5em; border: 1px dashed var(--line); border-radius: 6px; padding: 8px; white-space: pre-wrap; }
.bFrei:empty::before { content: attr(data-leer); color: #8a96a3; }
.bKopf h1[contenteditable="true"]:hover, .bFrei:hover { outline: 1px dashed #9fb3c8; outline-offset: 2px; }
.bFuss { margin-top: 24px; padding-top: 6px; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
.berichtBlatt .stats { grid-template-columns: 1fr 1fr 1fr; }
.berichtBlatt .chart { max-width: 140mm; }
.berichtBlatt .resultBox, .berichtBlatt .stat { break-inside: avoid; }
@media (max-width: 640px) {
.berichtBlatt { padding: 14px 12px; border-radius: 0; }
.berichtBlatt .stats { grid-template-columns: 1fr 1fr; }
#berichtRahmen { padding: 0 0 30px; }
}
@page { size: A4; margin: 14mm 14mm 16mm; }
@media print {
body.berichtDruck > *:not(#berichtAnsicht) { display: none !important; }
body.berichtDruck #berichtAnsicht { position: static !important; display: block !important; background: #fff; }
body.berichtDruck .bWerkzeug, body.berichtDruck .bWeg { display: none !important; }
body.berichtDruck #berichtRahmen { overflow: visible; padding: 0; }
body.berichtDruck .berichtBlatt { box-shadow: none; padding: 0; max-width: none; border-radius: 0; font-size: 10pt; }
body.berichtDruck .bFrei { border: 0; padding: 0; }
body.berichtDruck .bFrei:empty { display: none; }
body.berichtDruck .bTeil, body.berichtDruck .bKarte, body.berichtDruck table { break-inside: avoid; }
body.berichtDruck h2, body.berichtDruck h3 { break-after: avoid; }
body.berichtDruck .bDamm + .bDamm { break-before: page; }
}
body.textseite { overflow: visible; height: auto; min-height: 100%; background: var(--panel); }
.textKopf {
position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
background: var(--bg); border-bottom: 1px solid var(--line);
}
.textMarke { display: flex; align-items: center; gap: 6px; font-weight: 700; letter-spacing: .5px;
color: var(--green); text-decoration: none; margin-right: auto; }
.textKopf .langPick { display: flex; gap: 4px; }
.textZurueck { color: var(--blue); font-weight: 600; text-decoration: none; padding: 8px 4px; }
.textZurueck .kurz { display: none; }
.textInhalt { max-width: 760px; margin: 0 auto; padding: 18px 16px 30px; line-height: 1.55; }
.textInhalt h1 { font-size: 1.6rem; margin: 6px 0 14px; }
.textInhalt h2 { font-size: 1.2rem; margin: 26px 0 8px; scroll-margin-top: 80px; }
.textInhalt h3 { font-size: 1.02rem; margin: 18px 0 6px; }
.textInhalt a { color: var(--blue); }
.textInhalt ul { padding-left: 20px; }
.textInhalt li { margin: 6px 0; }
.textFuss { max-width: 760px; margin: 0 auto; padding: 12px 16px 30px; display: flex; flex-wrap: wrap; gap: 8px 18px;
border-top: 1px solid var(--line); font-size: .84rem; color: var(--muted); }
.textFuss a { color: var(--blue); }
@media (max-width: 480px) {
.textZurueck .lang { display: none; }
.textZurueck .kurz { display: inline; }
}
