/* Planet map (/karte/): full-height 3D stage, glass panels for list and profile, a bottom sheet on phones. */
.karte {
  --side-w: 344px; --sb-w: 384px; --gap: 14px;
  --glass: linear-gradient(180deg, rgba(10, 16, 32, 0.84), rgba(5, 9, 19, 0.8));
  position: relative; height: calc(100vh - 59px); height: calc(100svh - 59px); min-height: 560px; max-height: 1200px;
  overflow: hidden; background: #010309; border-bottom: 1px solid var(--line); isolation: isolate;
}
.karte-stage { position: absolute; inset: 0; }
.karte-stage canvas { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; outline: none; }
.karte-stage canvas:active { cursor: grabbing; }
.karte-stage canvas.over { cursor: pointer; }
/* a soft vignette: the frame of a viewport, not a web page */
.karte-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(120% 95% at 55% 45%, transparent 55%, rgba(1, 3, 9, 0.55) 100%), linear-gradient(to bottom, rgba(4, 6, 12, 0.45), transparent 90px); }

/* ------------------------------------------------------------------ labels over the scene */
.karte-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 2; }
.lbl {
  position: absolute; left: 0; top: 0; margin: -11px 0 0 10px; padding: 4px 8px 4px 7px; border-radius: 6px;
  font: 600 11.5px/1.15 var(--f-body); letter-spacing: 0.02em; color: rgba(228, 236, 249, 0.9); white-space: nowrap;
  background: rgba(3, 7, 16, 0.62); border: 1px solid rgba(122, 162, 230, 0.16); border-left: 2px solid rgba(86, 200, 255, 0.55);
  pointer-events: auto; cursor: pointer; will-change: transform;
}
.lbl:hover, .lbl.hover { color: #fff; border-color: rgba(86, 200, 255, 0.55); background: rgba(6, 16, 34, 0.82); }
.lbl.sel { color: #ffd9b8; border-color: rgba(255, 138, 43, 0.45); border-left-color: var(--chevron); }
.lbl.gal {
  translate: -50% 0; margin: 0; padding: 4px 8px; border: 0; background: none; border-radius: 4px;
  font: 600 11.5px/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: rgba(214, 226, 246, 0.78);
  text-shadow: 0 0 10px rgba(1, 3, 9, 0.95), 0 0 2px rgba(1, 3, 9, 1);
}
.lbl.gal:hover { color: var(--horizon); background: none; }

/* ------------------------------------------------------------------ galaxy buttons and hint */
/* desktop: the buttons wrap to a second row instead of hiding behind a scrollbar that a mouse wheel cannot reach */
.karte-views {
  position: absolute; z-index: 4; top: var(--gap); left: calc(var(--side-w) + var(--gap) * 2); right: var(--gap);
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
}
.karte-views::-webkit-scrollbar { display: none; }
.has-panel .karte-views { right: calc(var(--sb-w) + var(--gap) * 2); }
.view {
  flex: none; font: 600 12.5px/1 var(--f-body); color: var(--muted); white-space: nowrap; cursor: pointer;
  padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: rgba(4, 8, 18, 0.66);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: color .2s, border-color .2s, background .2s;
}
.view:hover { color: var(--text); border-color: var(--line-strong); }
.view[aria-pressed="true"] { color: var(--text); border-color: rgba(86, 200, 255, 0.5); background: rgba(16, 40, 72, 0.7); }
.karte-tipp {
  position: absolute; z-index: 3; bottom: var(--gap); left: calc(var(--side-w) + var(--gap) * 2); right: var(--gap); margin: 0; text-align: center;
  font: 500 11px/1.4 var(--f-mono); letter-spacing: 0.06em; color: var(--dim); pointer-events: none; transition: opacity 1.2s;
}
.karte-tipp.gone, .no-webgl .karte-tipp { opacity: 0; }
.no-webgl .karte-views { display: none; }
.has-panel .karte-fallback { right: calc(var(--sb-w) + var(--gap) * 2); }
.karte-fallback { position: absolute; z-index: 3; top: 50%; translate: 0 -50%; left: calc(var(--side-w) + var(--gap) * 3); right: var(--gap); text-align: center; }
.karte-fallback p, .karte-noscript {
  display: inline-block; max-width: 44ch; font: 500 13px/1.6 var(--f-mono); color: var(--muted);
  background: rgba(6, 10, 20, 0.8); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px;
}
.karte-noscript { position: absolute; z-index: 3; top: 50%; left: 50%; translate: -50% -50%; margin: 0; width: min(440px, calc(100% - 32px)); text-align: center; }
.no-webgl .karte-stage canvas, .no-webgl .karte-labels { visibility: hidden; }
.no-webgl .karte-stage { background:
  radial-gradient(28% 9% at 62% 50%, rgba(255, 214, 160, 0.32), transparent 70%),
  radial-gradient(46% 18% at 62% 50%, rgba(120, 160, 255, 0.14), transparent 75%),
  radial-gradient(14% 10% at 88% 24%, rgba(170, 205, 255, 0.12), transparent 70%), #010309; }

/* ------------------------------------------------------------------ glass panels */
.karte-side, .steckbrief {
  position: absolute; z-index: 5; top: var(--gap); bottom: var(--gap);
  background: var(--glass); border: 1px solid var(--line); border-radius: 16px;
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
}
.karte-side { left: var(--gap); width: var(--side-w); display: flex; flex-direction: column; overflow: hidden; }
.side-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 18px 18px 12px; }
.side-head h1 { font-size: 19px; line-height: 1.15; text-transform: uppercase; margin-top: 8px; letter-spacing: 0.02em; }
.side-toggle { display: none; }
.side-body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.side-search { position: relative; margin: 0 14px; }
.side-search svg { position: absolute; left: 12px; top: 50%; width: 16px; height: 16px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.side-search input {
  width: 100%; font: 500 14px/1.2 var(--f-body); color: var(--text); padding: 11px 12px 11px 36px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); transition: border-color .2s, background .2s;
}
.side-search input::placeholder { color: var(--dim); }
.side-search input:focus { outline: none; border-color: rgba(86, 200, 255, 0.7); background: rgba(86, 200, 255, 0.06); }
.side-search input:focus-visible { outline: 2px solid var(--horizon); outline-offset: 2px; }
/* the dial-home device and the random destination, side by side (both shown by the script) */
.side-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 14px 2px; }
.zufall-btn { display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1 1 0; min-width: 0; padding: 10px 12px;
  font: 600 13px/1.1 var(--f-body); color: var(--text); cursor: pointer; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(86, 200, 255, 0.06); }
.zufall-btn:hover { border-color: rgba(86, 200, 255, 0.6); background: rgba(86, 200, 255, 0.1); }
.zufall-btn svg { flex: none; width: 18px; height: 18px; color: var(--horizon); }
.side-filter { margin: 10px 14px 0; display: grid; gap: 6px; }
.side-filter summary { font: 600 11px/1 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); cursor: pointer; padding: 6px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.side-filter summary::-webkit-details-marker { display: none; }
.side-filter summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: -45deg; transition: rotate .2s; }
.side-filter[open] summary::before { rotate: 45deg; }
.side-filter fieldset { border: 0; margin: 4px 0 6px; padding: 0; min-width: 0; }
.seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.seg label { position: relative; }
.seg input, .sw input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.seg span {
  display: block; text-align: center; padding: 7px 2px; border-radius: 8px; cursor: pointer; font: 600 12px/1.2 var(--f-body);
  color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); transition: color .2s, border-color .2s, background .2s;
}
.seg input:checked + span { color: var(--text); border-color: rgba(86, 200, 255, 0.5); background: rgba(86, 200, 255, 0.12); }
.seg input:focus-visible + span, .sw input:focus-visible + span::before { outline: 2px solid var(--horizon); outline-offset: 2px; }
.sw { position: relative; display: flex; align-items: center; cursor: pointer; font: 500 13px/1.3 var(--f-body); color: var(--muted); padding: 4px 0; }
.sw span { display: flex; align-items: center; gap: 10px; }
.sw span::before {
  content: ""; flex: none; width: 30px; height: 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.06);
  background-image: radial-gradient(circle at 8px 50%, var(--muted) 0 5px, transparent 5.5px); transition: background .2s, border-color .2s;
}
.sw input:checked + span { color: var(--text); }
.sw input:checked + span::before { border-color: rgba(86, 200, 255, 0.6); background-color: rgba(86, 200, 255, 0.28);
  background-image: radial-gradient(circle at 20px 50%, var(--horizon) 0 5px, transparent 5.5px); }
.side-count { font: 500 11.5px/1.4 var(--f-mono); color: var(--dim); padding: 10px 18px 8px; border-bottom: 1px solid var(--line); }
/* a search that only the filters hide: the button turns on what the matches need (ui.js hiddenHits) */
/* "Nur Schauplätze meiner gesehenen Folgen" (ui.js): how many of the settings the ticked episodes reach */
.side-besucht { margin: 0 0 4px; font: 500 12px/1.45 var(--f-body); color: var(--muted); }
.side-more { display: flex; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.side-more[hidden] { display: none; }

.side-list { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 8px 14px; scrollbar-width: thin; scrollbar-color: rgba(122, 162, 230, 0.3) transparent; }
.grp-h { position: sticky; top: 0; z-index: 1; margin: 0 -8px; padding: 0 8px; font-size: inherit; background: #080d1b; box-shadow: 0 6px 10px -6px rgba(0, 0, 0, 0.8); }
.grp-btn {
  width: 100%; display: flex; align-items: center; gap: 8px; padding: 12px 10px 8px; border: 0; background: none; cursor: pointer;
  font: 600 11px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--horizon); text-align: left;
}
.grp-btn::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; rotate: 45deg; transition: rotate .2s; }
.grp-btn[aria-expanded="false"]::before { rotate: -45deg; }
.grp-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grp-n { color: var(--dim); font-variant-numeric: tabular-nums; }
.grp-list { list-style: none; margin: 0; padding: 0 0 6px; }
.pl {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; text-align: left; cursor: pointer;
  padding: 7px 10px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--text); font-family: var(--f-body);
}
.pl:hover { background: rgba(255, 255, 255, 0.045); }
.pl:focus-visible { outline-offset: -2px; }
.pl[aria-current="true"] { background: rgba(255, 138, 43, 0.1); border-color: rgba(255, 138, 43, 0.4); }
.pl-name { font: 600 14px/1.3 var(--f-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-meta { grid-column: 1; font: 500 11.5px/1.35 var(--f-body); color: var(--dim); }
.pl-meta:empty { display: none; }
.pl-addr { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 7px; height: 7px; rotate: 45deg; background: var(--chevron); box-shadow: 0 0 8px rgba(255, 138, 43, 0.8); }

/* ------------------------------------------------------------------ profile */
.steckbrief { right: var(--gap); bottom: auto; width: var(--sb-w); max-height: calc(100% - var(--gap) * 2); overflow-y: auto; overscroll-behavior: contain;
  padding: 22px 22px 18px; scrollbar-width: thin; scrollbar-color: rgba(122, 162, 230, 0.3) transparent; animation: sb-in .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes sb-in { from { opacity: 0; translate: 16px 0; } }
.sb-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); color: var(--muted);
}
.sb-close:hover { color: var(--text); border-color: rgba(86, 200, 255, 0.55); }
.sb-grip { display: none; }   /* the swipe handle of the phone sheet (see the media query below) */
.sb-close svg { width: 14px; height: 14px; }
.sb-ort { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding-right: 40px; font: 600 11px/1.4 var(--f-mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--horizon); }
.sb-est, .sb-typ { letter-spacing: 0.08em; padding: 3px 7px; border-radius: 999px; border: 1px solid rgba(245, 196, 81, 0.4); color: var(--idle); }
.sb-typ { border-color: var(--line-strong); color: var(--muted); }
.steckbrief h2 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.05; text-transform: uppercase; margin: 8px 0 14px; padding-right: 30px; overflow-wrap: anywhere; hyphens: auto; }
.steckbrief h2:focus { outline: none; }
.steckbrief h2:focus-visible { outline: 2px solid var(--horizon); }
.sb-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.badge { font: 600 11.5px/1 var(--f-mono); letter-spacing: 0.04em; padding: 6px 9px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text); background: rgba(6, 10, 20, 0.55); }
.badge.s-sg1 { color: #8fd8ff; border-color: rgba(86, 200, 255, 0.45); }
.badge.s-sga { color: #7ef0d6; border-color: rgba(70, 220, 190, 0.42); }
.badge.s-sgu { color: #c4b3ff; border-color: rgba(170, 150, 255, 0.45); }
.badge.s-film { color: var(--idle); border-color: rgba(245, 196, 81, 0.45); }
.badge.s-other { color: var(--muted); border-style: dashed; }
.badge.s-gone { color: #ff8f9c; border-color: rgba(255, 90, 110, 0.5); background: rgba(255, 90, 110, 0.08); }
.sb-addr { display: grid; gap: 10px; margin-top: 18px; }
.addr-row { display: grid; gap: 8px; padding: 12px 14px 12px; border-radius: 12px; border: 1px solid rgba(255, 138, 43, 0.32);
  background: linear-gradient(135deg, rgba(255, 138, 43, 0.1), rgba(255, 138, 43, 0.03)); }
.addr-label { font: 600 10.5px/1 var(--f-mono); letter-spacing: 0.2em; text-transform: uppercase; color: var(--chevron); }
.addr-net { font: 500 12px/1.3 var(--f-body); color: var(--muted); }
/* gate symbols (masks of /assets/glyphen/*.svg in the text colour) */
.glyph { display: block; width: 100%; height: 100%; background: currentColor;
  -webkit-mask: var(--glyph) center / contain no-repeat; mask: var(--glyph) center / contain no-repeat; }
.glyph-none { background: none; border: 1.5px dashed rgba(255, 138, 43, 0.45); border-radius: 50%; width: 60%; height: 60%; margin: auto; }
/* an address: one chevron per symbol, locking in one after another */
.chevrons { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 42px); gap: 4px; margin: 2px 0 0; padding: 0; list-style: none; }
.chev { display: grid; justify-items: center; gap: 3px; min-width: 0; }
.chev-v { width: 60%; max-width: 24px; height: auto; aspect-ratio: 40 / 22; }
.chev-housing { fill: #3a4152; }
.chev-light { fill: var(--chevron); filter: drop-shadow(0 0 3px rgba(255, 138, 43, 0.9)); }
.chev-face { display: grid; place-items: center; width: 100%; aspect-ratio: 1; padding: 12%; border-radius: 9px; color: #ffe3c8;
  border: 1px solid rgba(255, 138, 43, 0.38); background: radial-gradient(circle at 50% 40%, rgba(255, 138, 43, 0.16), rgba(4, 6, 12, 0.6)); }
.chev-n { font: 600 11px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--muted); }
.chev-poo .chev-face { border-style: dashed; color: #bfe9ff; border-color: rgba(86, 200, 255, 0.5);
  background: radial-gradient(circle at 50% 40%, rgba(86, 200, 255, 0.14), rgba(4, 6, 12, 0.6)); }
.chev-poo .chev-n { font-size: 9.5px; letter-spacing: 0.02em; }
.chev-gap .chev-face { border-style: dotted; border-color: rgba(255, 255, 255, 0.28); background: none; color: var(--dim); font: 600 18px/1 var(--f-mono); }
.chev-gap .chev-v { visibility: hidden; }   /* no chevron locks for the unknown symbols */
.addr-partial { margin: 0; font: 500 12px/1.4 var(--f-body); color: var(--dim); }
@media (prefers-reduced-motion: no-preference) {
  .chev .chev-light, .chev .chev-face { animation: chev-lock .35s ease-out both; animation-delay: calc(var(--i) * 0.16s + 0.1s); }
  @keyframes chev-lock { from { opacity: 0.15; filter: none; } }
}
.addr-names { margin: 6px 0 0; font: 500 12px/1.4 var(--f-body); color: var(--muted); overflow-wrap: anywhere; }   /* "Taurus · Serpens Caput · …" */
.addr-poo { grid-template-columns: 34px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 4px; align-items: center; }
.addr-poo .glyph { grid-row: 1 / span 2; width: 34px; height: 34px; color: #ffe3c8; }
/* a note on the address or the facts (korrekturen.json "hinweise") */
.sb-note { margin: 0; padding: 10px 12px; border-radius: 10px; border: 1px dashed var(--line-strong); font-size: 13px; line-height: 1.5; color: var(--muted); }
.sb-facts + .sb-note { margin-top: 12px; }
.sb-note-k { font: 600 10.5px/1 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.sb-kurz { margin-top: 16px; color: var(--text); font-size: 15px; line-height: 1.6; }
.sb-facts { display: grid; gap: 10px; margin: 16px 0 0; }
.sb-facts div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.sb-facts dt { font: 600 10.5px/1.6 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.sb-facts dd { margin: 0; font-size: 14px; color: var(--text); }
/* episodes the planet appears in (steckbrief.js) */
.sb-folgen { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.sb-ep-h { font: 600 10.5px/1.6 var(--f-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dim); }
.sb-ep-k, .sb-ep-more summary { margin-top: 8px; font-size: 13px; color: var(--muted); }
.sb-ep-more summary { cursor: pointer; }
.sb-ep-more summary:hover { color: var(--text); }
.sb-ep-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.sb-ep-list a { display: grid; grid-template-columns: 4.6em 4.2em minmax(0, 1fr) auto; gap: 6px; align-items: baseline; padding: 3px 0; font-size: 13.5px; color: var(--text); }
.sb-ep-list a, .sb-ep-list a:hover { text-decoration: none; }
.sb-ep-list a:hover .sb-ep-t { color: var(--chevron); text-decoration: underline; }
.sb-ep-s { font: 600 10px/1 var(--f-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.sb-ep-nr { font: 600 11.5px/1 var(--f-mono); color: var(--chevron); }
.sb-ep-ok { font-weight: 700; color: var(--ok); }
.sb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sb-btn { font: 600 12.5px/1 var(--f-body); color: var(--text); padding: 10px 12px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.03); transition: border-color .2s, background .2s; }
.sb-btn:hover { border-color: rgba(86, 200, 255, 0.55); background: rgba(86, 200, 255, 0.07); }
a.sb-btn, a.sb-btn:hover { text-decoration: none; }
.sb-quelle { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.55; color: var(--dim); }

/* ------------------------------------------------------------------ note under the map */
.karte-hinweis .wrap { padding-block: 22px 28px; display: grid; gap: 8px; }
.karte-hinweis p { font-size: 13px; color: var(--dim); max-width: 92ch; }

/* ------------------------------------------------------------------ tablets and phones: map on top, sheet below */
@media (max-width: 1100px) and (min-width: 861px) {
  .karte { --side-w: 300px; --sb-w: 340px; }
  .has-panel .karte-fallback { display: none; }   /* between list and profile only ~150px would be left for the WebGL note */
}
@media (max-width: 860px) {
  .karte { --gap: 10px; height: calc(100vh - 58px); height: calc(100svh - 58px); min-height: 520px; }
  /* phones: one swipeable row; the padding keeps the focus ring inside the scroll box */
  .karte-views { left: calc(var(--gap) - 5px); right: calc(var(--gap) - 5px); top: calc(var(--gap) - 5px); padding: 5px;
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .has-panel .karte-views { right: calc(var(--gap) - 5px); }
  .view { padding: 8px 11px; font-size: 12px; }
  .karte-tipp { display: none; }
  .karte-fallback { left: var(--gap); top: 30%; }
  .has-panel .karte-fallback { right: var(--gap); }   /* the profile is a sheet at the bottom here, not a column on the right */
  .no-webgl .karte-fallback { top: var(--gap); translate: none; }   /* without WebGL the sheet is open: keep the fallback text above it */
  .no-webgl .karte-side.open { height: 60%; }
  .karte-side { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 78%; border-radius: 18px 18px 0 0; border-bottom: 0; }
  .karte-side:not(.open) .side-filter, .karte-side:not(.open) .side-count, .karte-side:not(.open) .side-more, .karte-side:not(.open) .side-list { display: none; }
  .karte-side.open { height: 78%; }
  .side-head { align-items: center; padding: 12px 14px 10px; }
  .side-head .eyebrow { display: none; }
  .side-head h1 { font-size: 14px; margin: 0; }
  .side-toggle { display: inline-flex; align-items: center; gap: 8px; flex: none; font: 600 12.5px/1 var(--f-body); color: var(--text); cursor: pointer;
    padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.04); }
  .side-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    rotate: -135deg; translate: 0 2px; transition: rotate .2s, translate .2s; }
  .side-toggle[aria-expanded="true"]::after { rotate: 45deg; translate: 0 -2px; }
  .side-search { margin: 0 12px 12px; }
  .karte-side.open .side-search { margin-bottom: 0; }
  .steckbrief { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 66%; border-radius: 18px 18px 0 0; border-bottom: 0; padding: 18px 16px 16px; animation-name: sb-up; z-index: 6; }
  @keyframes sb-up { from { opacity: 0; translate: 0 24px; } }
  .steckbrief h2 { font-size: 24px; margin-bottom: 10px; }
  .karte-side::before, .sb-grip::before { content: ""; position: absolute; top: 6px; left: 50%; width: 36px; height: 4px; translate: -50% 0; border-radius: 4px; background: rgba(255, 255, 255, 0.16); pointer-events: none; }
  /* swipe handles (ui.js): the list's head and the profile's grip, which stays at the top while the profile scrolls.
     Only these take the gesture; the contents keep scrolling natively. --zieh is the finger's way down.
     No text selection there: a mouse drag would select the heading, and dragging that selection cancels the next swipe. */
  .side-head, .sb-grip { touch-action: none; -webkit-user-select: none; user-select: none; }
  /* sticky counts from inside the padding: -18px puts the grip flush with the top edge */
  .sb-grip { display: block; position: sticky; top: -18px; z-index: 1; height: 26px; margin: -18px -16px 0; cursor: grab;
    background: linear-gradient(180deg, rgba(10, 16, 32, 0.96) 70%, rgba(10, 16, 32, 0)); }
  .steckbrief .sb-close { z-index: 2; }
  .karte-side, .steckbrief { translate: 0 var(--zieh, 0px); }
  .ziehen .sb-grip { cursor: grabbing; }
  @media (prefers-reduced-motion: no-preference) {   /* the spring-back after a swipe that did not act (ui.js reset) */
    .karte-side, .steckbrief { transition: translate .22s cubic-bezier(.2, .8, .2, 1); }
    .karte-side.ziehen, .steckbrief.ziehen { transition: none; }
  }
  .sb-facts div { grid-template-columns: 96px minmax(0, 1fr); }
}
