:root {
  color-scheme:dark;
  --page:#101820; --surface:#172330; --panel:#1d2c3b; --field:#101d29;
  --line:#3d5265; --text:#f2f6fa; --muted:#b7c8d7; --accent:#e23129;
  --active-nav:#6e1b22; --active-nav-hover:#812028; --warm-white:#f1efe9;
  --blue:#86c7fa; --selected:#244d6c; --header:68px; --rail:78px;
  --mono:ui-monospace,SFMono-Regular,Consolas,monospace;
  font:15px/1.5 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
* { box-sizing:border-box; }
html,body { margin:0; width:100%; height:100%; overflow:hidden; }
body { color:var(--text); background:var(--page); }
h1,h2,h3,p,dl,dd { margin:0; }
a { color:var(--blue); text-underline-offset:3px; }
button,input,select { font:inherit; color:inherit; }
button,summary,select { cursor:pointer; }
button { min-height:42px; padding:9px 13px; background:#243749; border:1px solid #536c81; border-radius:9px; font-weight:650; line-height:1.3; }
button:hover { background:#30495f; }
button:disabled { opacity:.46; cursor:default; }
button[aria-pressed=true] { border-color:#9acbf0; background:var(--selected); color:#fff; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:3px solid var(--warm-white); outline-offset:3px; }
button svg { width:21px; height:21px; flex:0 0 auto; }
input,select { width:100%; min-width:0; min-height:44px; padding:10px 12px; border:1px solid #7890a5; border-radius:8px; background:var(--field); }
input::placeholder { color:#a9bac8; opacity:1; }
input[type=range] { padding:0; min-height:32px; accent-color:var(--blue); border:0; background:transparent; }
input[type=checkbox] { width:21px; height:21px; min-width:21px; min-height:21px; margin:0; padding:0; accent-color:var(--accent); }
label { display:block; font-size:13px; font-weight:650; }
[hidden] { display:none!important; }
.sr-only { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip { position:fixed; top:8px; left:8px; z-index:2000; background:#fff; color:#14222d; padding:10px 15px; border-radius:7px; transform:translateY(-180%); }
.skip:focus { transform:none; }
.app-header { height:var(--header); background:#15212c; border-bottom:1px solid var(--line); position:relative; z-index:900; padding-top:env(safe-area-inset-top,0); }
.header-inner { display:flex; align-items:center; gap:17px; height:100%; padding:10px 20px; }
.brand { flex:none; display:flex; align-items:center; }
.brand img { width:94px; height:auto; display:block; }
.app-brand-title { padding-left:17px; border-left:1px solid #466078; flex:0 0 auto; }
.eyebrow { color:#b1c5d7; font:700 10px/1.4 var(--mono); letter-spacing:.12em; text-transform:uppercase; }
.app-brand-title h1 { font-size:17px; font-weight:750; letter-spacing:-.025em; line-height:1.35; }
.global-search { margin-left:auto; display:flex; align-items:center; justify-content:flex-start; gap:10px; width:clamp(120px,19vw,320px); min-height:40px; background:#0f1c27; border-color:#445d73; color:#c3d2df; text-align:left; font-size:13px; font-weight:500; }
.global-search kbd { margin-left:auto; border:1px solid #526779; border-radius:4px; padding:0 5px; color:#9eb3c5; font-size:12px; }
.icon-button { display:flex; align-items:center; justify-content:center; padding:8px; width:40px; min-width:40px; min-height:40px; background:transparent; border-color:#4d667c; }
.workspace { display:grid; grid-template-columns:var(--rail) minmax(0,1fr); height:calc(100vh - var(--header)); height:calc(100dvh - var(--header)); min-height:0; padding:0; margin:0; max-width:none; }
.app-navigation { display:flex; flex-direction:column; align-items:stretch; padding:12px 7px; gap:8px; background:#15212c; border-right:1px solid var(--line); z-index:850; overflow-y:auto; }
.app-navigation button { display:flex; flex-direction:column; justify-content:center; align-items:center; min-height:66px; padding:8px 2px; border:1px solid transparent; background:transparent; color:#b9cbdc; gap:5px; font-size:10px; font-weight:650; border-radius:10px; }
.app-navigation button svg { width:23px; height:23px; }
.app-navigation button[aria-pressed=true] { color:var(--warm-white); background:var(--active-nav); border-color:var(--accent); box-shadow:inset 3px 0 var(--accent); }
.app-navigation button:hover { background:#283b4b; }
.app-navigation button[aria-pressed=true]:hover { background:var(--active-nav-hover); }
.console { display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:0; min-width:0; border:0; background:#112332; position:relative; }
.map-top { padding:11px 18px; display:flex; align-items:center; gap:14px; border-bottom:1px solid #364d62; background:#182937; z-index:600; }
.layer-info { min-width:0; flex:1; }
.source { font-size:12px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.map-top .source { margin-top:3px; font-size:11px; line-height:1.4; }
.point-shortcut { display:flex; align-items:center; gap:6px; padding:5px 8px; min-height:34px; font-size:12px; background:#29445b; max-width:150px; }
.point-shortcut svg { width:17px; height:17px; }
#point-chip { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.map-frame { min-height:0; isolation:isolate; position:relative; overflow:hidden; background:#112332; }
.map-canvas { width:100%; height:100%; background:#112332; }
.location-controls { position:absolute; z-index:650; top:12px; left:12px; display:flex; gap:6px; max-width:calc(100% - 100px); }
.location-controls button { min-height:38px; padding:8px 11px; border-color:#768d9f; background:#142838ed; box-shadow:0 3px 12px #0003; font-size:11px; }
.location-controls [aria-pressed=true] { background:#315c7d; }
.pan-controls { position:absolute; right:12px; top:12px; z-index:650; display:grid; grid-template-columns:repeat(3,36px); grid-template-areas:". north ." "west locate east" ". south ."; gap:3px; }
.pan-controls button { min-height:36px; width:36px; padding:0; font-size:19px; border-color:#637e93; border-radius:5px; background:#142838ed; display:grid; place-items:center; }
.pan-controls [data-pan=north] { grid-area:north; }
.pan-controls [data-pan=west] { grid-area:west; }
.pan-controls #locate { grid-area:locate; }
.pan-controls [data-pan=east] { grid-area:east; }
.pan-controls [data-pan=south] { grid-area:south; }
.pan-controls #locate svg { width:23px; height:23px; }
.map-foot { padding:10px 18px 8px; border-top:1px solid #405b72; background:#182937; min-width:0; z-index:700; }
.timeline { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:14px; }
.transport { display:flex; gap:4px; }
.transport button { min-height:35px; width:35px; padding:0; font-size:19px; border-color:#526e84; border-radius:6px; background:#233e54; }
.rail { position:relative; min-width:0; padding-bottom:12px; }
.rail input { width:100%; display:block; margin:0; }
.tick-list { position:absolute; bottom:-1px; left:9px; right:9px; height:13px; font:10px/1.3 var(--mono); color:#c1d2df; }
.tick-list span { position:absolute; transform:translateX(-50%); white-space:nowrap; }
.tick-list span:first-child { transform:none; }
.tick-list span:last-child { transform:translateX(-100%); }
#jump { min-height:35px; padding:6px 12px; font-size:12px; }
.map-time { display:flex; align-items:center; flex-wrap:wrap; gap:9px; margin-top:3px; font:12px/1.4 var(--mono); color:#c6d8e6; }
.map-time time { color:#fff; font-weight:750; }
.status { font-size:12px; line-height:1.4; color:#ffd08c; }
.status:empty,#location-status:empty { display:none; }
.map-foot .status,.map-foot #location-status { margin-top:4px; }
.app-legend { position:absolute; z-index:650; bottom:35px; left:12px; width:min(430px,calc(100% - 90px)); padding:8px 11px; border:1px solid #718a9c; border-radius:9px; background:#122736ed; box-shadow:0 4px 20px #0003; color:#edf5fb; }
.app-legend summary { font-size:11px; font-weight:650; }
.app-legend ul { list-style:none; display:flex; gap:3px; margin:6px 0 0; padding:0; }
.app-legend li { flex:1; min-width:0; border-top:6px solid; padding-top:3px; text-align:center; font:10px/1.3 var(--mono); }
.app-legend p { margin-top:4px; font-size:10px; color:#d1e0eb; }
.app-legend img { display:block; max-height:min(180px,30dvh); max-width:100%; object-fit:contain; margin-top:7px; background:#fff; border-radius:4px; }
.leaflet-container { font:12px/1.4 system-ui,sans-serif; }
.leaflet-control-attribution { background:#102436dc!important; color:#d5e3ee; font-size:10px; max-width:calc(100vw - var(--rail) - 8px); }
.leaflet-control-attribution a { color:#c2e3fe; }
.leaflet-control-zoom a { background:#1c3448!important; color:#fff!important; border-color:#688298!important; width:37px!important; height:37px!important; line-height:37px!important; font-size:23px!important; }
.leaflet-bar { border:1px solid #7890a1!important; border-radius:8px!important; overflow:hidden; box-shadow:0 4px 12px #0004; }
.leaflet-control-scale-line { background:#153147e6; color:#fff; border-color:#c4d7e4; font-size:10px; }
/* Nur die Grundkarten abdunkeln; Wetterbilder und ihre Farben bleiben unverändert. */
.map-frame:is(.map-street,.map-topo) .leaflet-tile-pane { filter:grayscale(1) invert(1) brightness(.72) contrast(.9); }
.map-frame.map-street .leaflet-tile-pane { filter:grayscale(1) invert(1) brightness(.84) contrast(.94); }
.overview-country > span { display:block; transform:translate(-50%,-50%); width:max-content; color:#e0eaf0; font:650 11px/1.25 system-ui,sans-serif; text-shadow:0 1px 3px #06101b,0 0 4px #06101b; }
body[data-map-theme=day] .map-overview .map-canvas { background:#b8d0db; }
body[data-map-theme=day] .overview-country > span { color:#162a35; text-shadow:0 1px 3px #fff,0 0 4px #fff; }
.map-marker { width:auto!important; height:auto!important; margin:0!important; }
.map-marker span { display:block; min-width:25px; padding:5px 7px; font:700 12px/1.2 system-ui,sans-serif; background:#213f57; color:#fff; border:1px solid #d0e2ef; border-radius:5px; box-shadow:0 2px 9px #0008; white-space:nowrap; }
.map-marker.gust span { background:var(--gust,#28445d); }
.leaflet-popup-content { color:#132536; font:13px/1.5 system-ui,sans-serif; }
.leaflet-popup-content p { margin:6px 0; }
.leaflet-tooltip { background:#152e43; color:#f2f7fa; border-color:#869fb4; }
.tool-drawer { position:fixed; top:calc(var(--header) + var(--map-toolbar,70px) + 10px); bottom:12px; left:calc(var(--rail) + 12px); right:auto; width:360px; max-width:calc(100vw - var(--rail) - 30px); max-height:none; height:auto; margin:0; padding:0; border:1px solid #6b8297; border-radius:14px; color:var(--text); background:#182735; box-shadow:12px 10px 45px #0007; z-index:950; overflow:hidden; }
.tool-drawer[open] { display:flex; flex-direction:column; }
.drawer-header { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:18px; border-bottom:1px solid #415c72; background:#1b3042; }
.drawer-header h2 { font-size:21px; letter-spacing:-.03em; line-height:1.25; margin-top:4px; }
.drawer-body { overflow:auto; min-height:0; flex:1; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#7293ae #182735; }
.drawer-footer { padding:10px 14px; border-top:1px solid #415c72; background:#1b3042; }
.drawer-footer button { display:flex; align-items:center; gap:9px; width:100%; min-height:40px; border-color:#59778e; background:#29475f; text-align:left; font-size:13px; }
.drawer-footer button svg:last-child { margin-left:auto; width:17px; }
.tool-pane { padding:17px; }
.tool-pane h3 { font-size:15px; line-height:1.35; font-weight:700; margin:0 0 12px; }
.tool-pane .source { margin-top:9px; }
.tool-pane label { margin:13px 0 5px; }
.tool-pane button { font-size:13px; }
.tool-pane .tool-section,.tool-pane .panel,.tool-pane .layer-section { padding:0; margin:0 0 20px; border:0; min-width:0; }
.tool-section>summary { font-size:14px; font-weight:700; min-height:36px; border-bottom:1px solid #486277; padding-bottom:10px; }
.tool-section[open]>summary { margin-bottom:12px; }
#tool-route #route-options>summary { display:none; }
.tool-section>button,.point-panel>button { width:100%; margin-top:12px; }
.two-fields { display:grid; grid-template-columns:1fr 1fr; gap:11px; }
.button-row { display:flex; gap:7px; margin-top:10px; }
.button-row button { flex:1; min-width:0; }
input[type=file] { font-size:12px; padding:8px; }
input::file-selector-button { border:1px solid #6b8aa3; border-radius:5px; padding:5px 7px; margin-right:7px; color:#e9f3fb; background:#2d4a61; }
.modes { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.modes button { padding:12px 8px; min-height:61px; font-size:12px; background:#1c3448; border-color:#4d6b83; text-align:left; line-height:1.4; }
.modes button[aria-pressed=true] { background:#244f70; border-color:#9ad0f7; box-shadow:inset 3px 0 #a3d4f5; }
.search-box label { margin-top:0; }
.search-row { display:flex; gap:7px; }
.search-row input { flex:1; width:0; }
.search-row button { padding:8px 11px; }
.result-list { list-style:none; margin:12px 0 0; padding:0; }
.result-list button { width:100%; text-align:left; min-height:48px; margin-bottom:7px; padding:10px; font-size:13px; font-weight:500; }
.intro-card { margin-bottom:17px; padding:13px; border:1px solid #49677f; border-radius:9px; background:#203d53; font-size:13px; color:#e0edf7; }
.profile-note { padding:9px 12px; background:#233b4e; border:1px solid #587087; border-radius:7px; margin-bottom:12px; font-size:12px; color:#c0d6e7; }
.profile-note strong { color:#ffe6d5; }
.object-options fieldset { border:0; margin:0; padding:0; min-width:0; }
.object-options fieldset label { display:flex; align-items:center; gap:11px; min-height:43px; margin:0; border-bottom:1px solid #324b60; cursor:pointer; font-size:13px; min-width:0; }
.object-options fieldset label span { min-width:0; overflow-wrap:anywhere; hyphens:auto; }
.object-actions { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; margin-top:14px; }
.object-actions button { min-height:40px; font-size:11px; padding:7px 3px; }
.tool-pane .panel { border-top:1px solid #466178; padding-top:17px; }
.tool-pane .panel:first-child { border-top:0; padding-top:0; }
#selected-place { color:#fff; font-weight:750; font-size:21px; line-height:1.35; overflow-wrap:anywhere; }
.empty-state { padding:15px 12px; margin:14px 0; border:1px dashed #5c7b94; border-radius:10px; background:#152635; color:#bbcfdf; text-align:center; font-size:12px; }
.empty-state>svg { display:block; margin:0 auto 10px; width:31px; height:31px; color:#92c5eb; }
.empty-state h3 { color:#e5f2fb; margin-bottom:6px; }
.readings { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:12px 0; }
.readings>div { display:flex; flex-direction:column; justify-content:space-between; gap:8px; border:1px solid #45637a; border-radius:10px; background:#203a50; padding:12px; min-height:82px; }
.readings dt { font-size:11px; color:#c4d9e9; }
.readings dd { display:flex; align-items:baseline; gap:5px; }
.readings dd strong { font-size:25px; font-weight:750; letter-spacing:-.03em; }
.readings dd span { color:#c7d7e3; font-size:12px; }
#point-readings .readings:first-of-type>div:first-child { grid-column:1/-1; background:linear-gradient(115deg,#2b4c63,#1c3348); }
#point-readings .readings:first-of-type>div:first-child dd strong { font-size:42px; }
#point-readings h3 { margin-top:17px; }
.warning-links { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:12px 0; font-size:12px; }
.alert-card { padding:12px; border-left:3px solid #ffbe6c; border-radius:5px; background:#3a3328; margin:12px 0; }
.alert-card p { font-size:12px; margin-top:7px; }
.nearby-list { margin:10px 0 0; padding:0; list-style:none; }
.nearby-list li { margin-bottom:7px; padding-bottom:8px; border-bottom:1px solid #3c566b; }
.nearby-list button { width:100%; text-align:left; font-weight:500; background:#213c51; min-height:42px; }
.nearby-list .source { font-size:11px; }
.route-overview { padding:14px 0 0; border-top:1px solid #516c81; }
.route-overview h3 { margin-bottom:7px; }
#route-summary { font-size:12px; color:#c5daea; }
#route-point { width:100%; margin-top:8px; }
#elevation-chart svg { display:block; width:100%; height:105px; background:#102333; border-radius:7px; margin-top:9px; }
#elevation-chart path { stroke:#afe0fc; stroke-width:2; fill:#456f8e66; }
#elevation-chart line { stroke:#ffb195; stroke-width:2; }
.table-wrap { width:100%; overflow:auto; scrollbar-width:thin; }
.route-table { width:100%; min-width:530px; border-collapse:collapse; font-size:11px; margin-top:12px; }
.route-table th,.route-table td { text-align:left; padding:8px 7px; border-bottom:1px solid #476278; }
.route-table button { font:inherit; min-height:35px; padding:5px; text-decoration:underline; }
.help-card { font-size:13px; }
.help-card ol { padding-left:20px; }
.help-card li { margin:11px 0; }
.credits { margin-top:18px; padding-top:15px; border-top:1px solid #455f74; }
.credits summary { font-size:13px; font-weight:650; }
.credits p { margin-top:12px; font-size:11px; color:#bccfdf; line-height:1.7; }
.legal-links { display:flex; gap:18px; font-size:12px; margin-top:22px; }
body[data-loading=true] .map-top::after { content:""; position:absolute; top:0; left:0; width:35%; height:2px; background:var(--accent); animation:data-loading 1.4s ease-in-out infinite; }
@keyframes data-loading { from { transform:translateX(0); } to { transform:translateX(180%); } }
@media(min-width:901px) { body.drawer-open .location-controls { left:390px; } body.drawer-open .app-legend { left:390px; width:min(430px,calc(100% - 450px)); } }
@media(max-width:1100px) and (min-width:901px) { .app-brand-title .eyebrow { display:none; } .brand img { width:74px; } .app-brand-title h1 { font-size:14px; } .header-inner { gap:11px; padding-inline:13px; } .global-search { width:auto; } .global-search span,.global-search kbd { display:none; } .profile-nav button { padding-inline:9px; } }
@media(max-width:900px) {
  :root { --header:108px; --nav-height:63px; --rail:0px; }
  .app-header { height:calc(var(--header) + env(safe-area-inset-top,0px)); }
  .header-inner { display:grid; grid-template-columns:70px minmax(0,1fr) 38px 38px; grid-template-rows:45px 39px; gap:5px 10px; padding:7px 12px; }
  .brand { grid-column:1; grid-row:1; }
  .app-brand-title { grid-column:2; grid-row:1; }
  .global-search { grid-column:3; grid-row:1; }
  .info-button { grid-column:4; grid-row:1; }
  .brand img { width:70px; }
  .app-brand-title { border:0; padding:0; min-width:0; }
  .app-brand-title .eyebrow { display:none; }
  .app-brand-title h1 { font-size:15px; line-height:1.2; }
  .global-search { width:38px; height:38px; min-height:38px; padding:8px; margin:0; justify-content:center; }
  .global-search span,.global-search kbd { display:none; }
  .info-button { width:38px; min-width:38px; min-height:38px; }
  .profile-nav { grid-column:1/-1; grid-row:2; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:2px; width:100%; }
  .profile-nav button { min-height:30px; padding:5px 3px; font-size:11px; }
  .workspace { grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr) calc(var(--nav-height) + env(safe-area-inset-bottom,0px)); height:calc(100vh - var(--header) - env(safe-area-inset-top,0px)); height:calc(100dvh - var(--header) - env(safe-area-inset-top,0px)); }
  .app-navigation { grid-row:2; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); border-right:0; border-top:1px solid #526f86; padding:4px 5px max(4px,env(safe-area-inset-bottom,0px)); gap:2px; overflow:visible; }
  .app-navigation button { min-height:49px; gap:2px; font-size:10px; border-radius:8px; padding:5px 1px; }
  .app-navigation button svg { width:20px; height:20px; }
  .app-navigation button[aria-pressed=true] { box-shadow:inset 0 2px var(--accent); }
  .console { grid-row:1; }
  .map-top { padding:8px 10px; gap:7px; flex-wrap:wrap; }
  .layer-info { flex:1 1 100%; }
  .layer-title h2 { font-size:17px; }
  .map-top .source { font-size:10px; }
  .point-shortcut { margin-right:auto; max-width:115px; min-height:30px; padding:4px 7px; font-size:11px; }
  .location-controls { top:8px; left:8px; gap:4px; max-width:calc(100% - 75px); }
  .location-controls button { min-height:33px; padding:6px 8px; font-size:10px; }
  .pan-controls { right:7px; top:8px; grid-template-columns:repeat(3,36px); gap:3px; }
  .pan-controls button { width:36px; min-height:36px; border-radius:4px; font-size:19px; }
  .app-legend { bottom:29px; left:8px; width:min(370px,calc(100% - 64px)); padding:6px 9px; }
  .app-legend summary { font-size:10px; }
  .app-legend li { font-size:9px; }
  .app-legend p { font-size:10px; }
  .map-foot { padding:8px 10px 6px; }
  .timeline { gap:8px; }
  .transport { gap:3px; }
  .transport button { min-height:32px; width:32px; }
  #jump { min-height:32px; padding:5px 8px; font-size:11px; }
  .map-time { font-size:10px; margin-top:3px; }
  .tick-list { font-size:9px; }
  .map-foot .status { font-size:11px; }
  .leaflet-control-attribution { max-width:calc(100vw - 8px); font-size:9px; }
  .leaflet-control-zoom a { width:32px!important; height:32px!important; line-height:32px!important; }
  .tool-drawer { top:auto; bottom:calc(var(--nav-height) + env(safe-area-inset-bottom,0px) + 7px); left:7px; right:7px; width:auto; max-width:none; height:min(72dvh,710px); max-height:calc(100dvh - var(--header) - var(--nav-height) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 14px); border-radius:15px; box-shadow:0 -7px 40px #0007; }
  .drawer-header { padding:12px 15px; }
  .drawer-header h2 { font-size:19px; }
  .drawer-header .eyebrow { font-size:9px; }
  .drawer-footer { padding:7px 12px; }
  .drawer-footer button { min-height:37px; }
  .tool-pane { padding:14px; }
  .object-options fieldset { display:grid; grid-template-columns:1fr 1fr; gap:0 14px; }
  .object-options fieldset label { min-height:46px; font-size:12px; gap:8px; }
  .source { font-size:11px; }
}
@media(max-width:359px) { .header-inner { grid-template-columns:60px minmax(0,1fr) 34px 34px; gap:5px 7px; padding-inline:9px; } .brand img { width:60px; } .global-search,.info-button { width:34px; min-width:34px; } .app-brand-title h1 { font-size:13px; } .point-shortcut { max-width:95px; } .app-navigation button { font-size:9px; } }
@media(max-height:560px) and (min-width:600px) and (max-width:900px) { :root { --header:54px; --nav-height:52px; } .header-inner { display:flex; padding:6px 12px; gap:10px; } .app-brand-title { display:none; } .global-search { margin-left:auto; } .profile-nav { display:flex; width:auto; } .profile-nav button { padding:5px 12px; } .app-navigation button { min-height:42px; } .app-navigation button svg { width:17px; height:17px; } .map-top { padding:5px 10px; } .layer-info { flex:1; } .layer-title h2 { font-size:15px; } .map-top .source { font-size:9px; } .point-shortcut { display:none; } .map-foot { padding-top:5px; } }
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation:none!important; transition:none!important; scroll-behavior:auto!important; } }
@media(forced-colors:active) { button[aria-pressed=true],input:checked { outline:2px solid Highlight; } .map-top,.app-navigation,.tool-drawer,.map-foot { border-color:CanvasText; } }

.object-quick-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.object-quick-actions button { min-height:52px; padding:9px; font-size:12px; }
#tool-objects>.source { margin-bottom:13px; }

#app-language { margin-bottom:20px; }

/* Tourenbegleiter: vier Hauptbereiche, kleine Informationsblätter und klare Zeiträume. */
.console { grid-template-rows:auto auto minmax(0,1fr) auto; }
.map-notices { display:flex; align-items:center; flex-wrap:wrap; gap:6px; padding:5px 12px; background:#172837; border-bottom:1px solid #364d62; }
.map-notices button { min-height:32px; padding:5px 9px; font-size:11px; }
#warning-chip { border-style:dashed; }
#warning-chip[data-state=active] { background:#692c26; color:#fff4e8; border-style:solid; }
#warning-chip[data-state=none] { background:#223e36; border-style:solid; }
#warning-chip[data-state=unavailable],#warning-chip[data-state=outside] { color:#ffe3a3; }
#connection-status { font-size:11px; color:#ffe3a3; }
#connection-status:empty { display:none; }
.layer-shortcut { min-height:40px; padding:6px 10px; font-size:12px; }
.pan-controls { grid-template-columns:repeat(3,44px); }
.pan-controls button { width:44px; min-height:44px; }
body[data-map-theme=day] .map-frame .leaflet-tile-pane { filter:none; }
.offline-card,.trip-library { margin-top:16px; padding-top:15px; border-top:1px solid #53697c; }
.offline-note { border-left:3px solid #eac475; padding:6px 10px; color:#ffe3a3; }
.weather-period { display:flex; gap:5px; margin:15px 0; }
.weather-period button { flex:1; min-height:44px; font-size:12px; padding:6px; }
.weather-period button[aria-pressed=true] { background:#315574; border-color:#a8d5f4; }
.hourly-list { display:grid; grid-auto-flow:column; grid-auto-columns:106px; gap:8px; padding:4px 0 10px; overflow-x:auto; scroll-snap-type:x proximity; list-style:none; }
.hourly-list li { display:flex; flex-direction:column; gap:7px; padding:10px; background:#233d50; border:1px solid #60788e; border-radius:8px; scroll-snap-align:start; font-size:12px; }
.hourly-list time { font-weight:700; }
.hourly-list strong { font-size:20px; }
.waypoint-row { display:flex; flex-wrap:wrap; gap:5px; margin:10px 0; }
.waypoint-row input { width:100%; }
.waypoint-row button { min-height:40px; font-size:12px; padding:6px 8px; }
.access-restricted { color:#ffbcab; }.access-conditional { color:#ffe3a3; }
.check-line { display:flex; gap:10px; align-items:center; min-height:44px; }
.check-line input { width:auto; }
#expand-tool { display:none; }
.object-quick-actions { grid-template-columns:1fr 1fr; }
#nearby-origin { margin:10px 0; }
#weather-opacity { display:block; width:100%; margin:12px 0 20px; }
@media(max-width:900px) {
  .app-navigation { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .app-navigation button { font-size:12px; }
  .tool-drawer { height:min(45dvh,480px); }
  .tool-drawer.expanded { height:min(76dvh,710px); }
  #expand-tool { display:grid; flex-shrink:0; width:40px; height:40px; }
  .drawer-header>div { margin-right:auto; }
  .drawer-header { gap:7px; }
  .map-notices { padding:4px 8px; }
  .layer-info { flex:1 1 auto; }
  .point-shortcut { margin-left:auto; margin-right:0; }
  .pan-controls { grid-template-columns:repeat(3,44px); }
  .pan-controls button { width:44px; min-height:44px; }
  .transport button { min-width:36px; min-height:36px; }
  .route-table { min-width:0; }
  .route-table thead { display:none; }
  .route-table tr { display:grid; grid-template-columns:1fr 1fr; border:1px solid #53697c; border-radius:8px; padding:8px; margin-bottom:10px; }
  .route-table td { border:0; padding:5px; overflow-wrap:anywhere; }
  .route-table td:first-child,.route-table td:last-child { grid-column:1/-1; }
  .route-table td::before { content:attr(data-label); display:block; color:#b6cbdc; font-size:11px; }
}

.weather-period { position:sticky; top:0; z-index:5; padding:6px 0; background:#182c3b; }
.hourly-list:focus-visible { outline:2px solid #ffc199; outline-offset:2px; }


/* Kompakte Oberfläche: eine Profilwahl und Kartenoptionen am Kartenrand. */
.profile-picker { flex:0 1 170px; min-width:135px; }
.profile-picker select { min-height:44px; padding:8px 25px 8px 10px; background:#263d50; border-color:#7891a5; font-size:13px; font-weight:650; }
.map-settings-nav { display:flex; gap:6px; margin-bottom:16px; }
.map-settings-nav button { flex:1; min-height:44px; }
.map-source-details { margin:0 0 18px; }
.map-source-details summary { min-height:32px; }
.map-source-details p { padding-top:7px; }
.location-controls { display:flex; flex-direction:column; align-items:flex-start; max-width:calc(100% - 165px); }
#location-feedback { padding:8px 10px; border:1px solid #7891a5; border-radius:8px; background:#142838f5; max-width:220px; }
#location-status { color:#f2d6b0; font-size:12px; }
#location-search { margin-top:7px; }
.app-version { margin:18px 0 8px; }
@media(max-width:900px) {
  :root { --header:64px; }
  .header-inner { grid-template-columns:60px minmax(0,1fr) 40px 40px; grid-template-rows:44px; gap:8px; padding:10px; }
  .brand img { width:60px; }
  .app-brand-title { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
  .profile-picker { grid-column:2; grid-row:1; min-width:0; }
  .profile-picker select { font-size:12px; width:100%; }
  .global-search,.info-button { min-width:40px; width:40px; min-height:44px; height:44px; }
  .app-navigation { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .map-top { gap:7px; padding:7px 9px; }
  .layer-shortcut { min-height:40px; padding:7px 9px; font-size:11px; }
  .layer-title h2 { font-size:15px; }
  .layer-type { display:none; }
  .location-controls { max-width:calc(100% - 158px); }
  #location-feedback { padding:7px; }
  #location-status { font-size:11px; }
  #location-search { min-height:40px; font-size:12px; }
}
@media(max-width:359px) {
  .header-inner { grid-template-columns:52px minmax(0,1fr) 40px 40px; gap:6px; padding-inline:8px; }
  .brand img { width:52px; }
  .profile-picker select { padding-left:7px; font-size:11px; }
  .point-shortcut { max-width:80px; }
  .layer-shortcut { padding-inline:7px; font-size:10px; }
  .layer-title h2 { font-size:13px; }
}


/* Die Prioritäten ändern sich mit dem Profil, gespeicherte Objekte werden nicht entfernt. */
.map-settings-nav { position:sticky; top:0; z-index:2; background:#182735; padding:4px 0 10px; }
#object-options h3 { margin-bottom:10px; }
#other-objects { margin-top:14px; }
#other-objects summary,.extra-layers summary,#other-nearby summary { padding:10px 0; min-height:44px; font-weight:650; }
.profile-weather-actions { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin:12px 0 18px; }
.profile-weather-actions button:last-child { grid-column:1/-1; }
.waypoint-card { padding:14px; border:1px solid #58748c; border-radius:10px; margin:14px 0; background:#20384b; }
.waypoint-card h3,.waypoint-card p,.waypoint-card input { margin-bottom:10px; }
.waypoint-card button { width:100%; }
#tool-route { flex-direction:column; }
#tool-route:not([hidden]) { display:flex; }
#route-empty,#route-overview { order:0; }
#route-options { order:1; }
#waypoint-section { order:2; }
.trip-library { order:3; }
body[data-profile=offroad] #waypoint-section { order:-1; margin-top:0; }
body[data-profile=offroad] #route-empty { display:none; }
body[data-profile=storm] #profile-nearby:empty { display:none; }
@media(max-width:900px) { .object-options fieldset { grid-template-columns:1fr; } }

#profile-navigation [data-nav-profile] { display:none; }
body[data-profile=outdoor] #profile-navigation [data-nav-profile=outdoor],body[data-profile=offroad] #profile-navigation [data-nav-profile=offroad],body[data-profile=storm] #profile-navigation [data-nav-profile=storm] { display:block; }
body[data-profile=offroad] #tool-route #route-options>summary { display:list-item; padding:9px 0; }
#other-object-count { color:var(--muted); font-size:12px; }

/* Ergebnisse und Rückmeldungen liegen direkt bei der ausgelösten Aktion. */
#nearby-heading { font-size:16px; overflow-wrap:anywhere; }
#nearby-status { margin:6px 0; }
#nearby-origin:empty { display:none; }
#object-options>summary { min-height:44px; padding-block:10px; font-weight:700; }
#object-options[open]>summary { margin-bottom:8px; }
.waypoint-target { font-size:13px; font-weight:700; overflow-wrap:anywhere; }
#waypoint-feedback { margin-top:10px; }
#waypoint-feedback button { margin-top:7px; }
#map-data-kind:empty { display:none; }
#map-data-kind { font:650 11px/1.3 system-ui,sans-serif; }
.drawer-body { scroll-padding-top:64px; }


/* Die aktive Wetterebene ist zugleich der Einstieg in die Kartenoptionen. */
.map-top { justify-content:space-between; }
.layer-info { flex:1 1 0; }
.layer-shortcut { display:inline-flex; align-items:center; gap:12px; min-height:44px; max-width:100%; padding:7px 12px; text-align:left; font-size:15px; }
.layer-chevron { font-size:18px; line-height:1; }
.point-shortcut { min-height:44px; }
#profile-layers { grid-template-columns:repeat(3,minmax(0,1fr)); gap:5px; }
#profile-layers button { min-height:44px; padding:7px 4px; text-align:center; overflow-wrap:anywhere; }
#tool-layers .tool-section>summary,#radar-options>summary { min-height:44px; padding:10px 0; font-weight:700; }
#tool-layers .tool-section>button { margin:8px 0; }
#radar-options { padding:0 12px 2px; border:1px solid var(--line); border-radius:8px; }
#radar-options[open] { padding-bottom:12px; }
#storm-tour button { width:100%; margin-bottom:14px; }
@media(max-width:359px) {
  .layer-shortcut { font-size:13px; gap:8px; }
  .map-top .point-shortcut { max-width:105px; }
}
