/* ============================================================
   ÖPNV-Check 2026 · VCD — Design-System
   Farben ausschließlich als Variablen (Hell/Dunkel vollständig gestylt).
   ============================================================ */

:root{
  /* VCD Corporate Design */
  --petrol:      #059DAA;
  --petrol-d:    #04737C;
  --petrol-dd:   #023B41;
  --petrol-l:    #7CC6CC;
  --petrol-wash: #DCEBEC;
  --lime:        #AECA06;
  --lime-d:      #8BA405;
  --orange:      #EB6609;
  --orange-d:    #B23A0A;
  --blue:        #30667D;
  --blue-d:      #24505F;
  --blue-wash:   #E4EDEF;

  --ink:    #122426;
  --ink-2:  #3D5457;
  --ink-3:  #6B8285;
  --paper:  #FFFFFF;
  --wash:   #F1F7F7;
  --rule:   #C6DEDF;
  --track:  #E3EDED;

  --on-accent: #FFFFFF;
  /* Die Navigationsschiene ist bewusst in beiden Themes gleich dunkel (--petrol-dd) —
     ihre Vordergrundfarben sind daher ebenfalls theme-unabhängig. */
  --rail-fg: #DCEBEC;
  --rail-fg-mid: #7FA3A7;
  --rail-fg-dim: #5D8489;

  --sans: 'Roboto Condensed', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --disp: 'Roboto Condensed', system-ui, sans-serif; /* durchgängig Roboto Condensed, siehe Feinschliff-Auftrag */

  --r-l: 16px;
  --r: 13px;
  --r-s: 9px;
  --sh:   0 1px 2px rgba(2,59,65,.06), 0 6px 20px rgba(2,59,65,.06);
  --sh-h: 0 3px 8px rgba(2,59,65,.10), 0 14px 34px rgba(2,59,65,.12);
  --sh-lift: 0 18px 46px rgba(2,59,65,.16);
  --dur: .18s;
  --ease: cubic-bezier(.22,1,.36,1);

  --rail: 78px;
  color-scheme: light;
}

:root[data-theme="dunkel"],
:root:not([data-theme="hell"]) {
  @media (prefers-color-scheme: dark){
    --ink:    #EAF6F6;
    --ink-2:  #A9CBCD;
    --ink-3:  #7FA3A7;
    --paper:  #0F282B;
    --wash:   #0A1B1D;
    --rule:   #1E4247;
    --track:  #163236;
    --petrol:      #2FBAC8;
    --petrol-d:    #57CBD6;
    --petrol-dd:   #021A1D;
    --petrol-l:    #2E7A83;
    --petrol-wash: #123339;
    --blue:        #6FA0B4;
    --blue-d:      #8FB8C8;
    --blue-wash:   #16323D;
    --lime-d:      #C2DA3E;
    color-scheme: dark;
  }
}
:root[data-theme="dunkel"]{
  --ink:    #EAF6F6;
  --ink-2:  #A9CBCD;
  --ink-3:  #7FA3A7;
  --paper:  #0F282B;
  --wash:   #0A1B1D;
  --rule:   #1E4247;
  --track:  #163236;
  --petrol:      #2FBAC8;
  --petrol-d:    #57CBD6;
  --petrol-dd:   #021A1D;
  --petrol-l:    #2E7A83;
  --petrol-wash: #123339;
  --blue:        #6FA0B4;
  --blue-d:      #8FB8C8;
  --blue-wash:   #16323D;
  --lime-d:      #C2DA3E;
  color-scheme: dark;
}
:root[data-theme="hell"]{ color-scheme: light; }

*{ box-sizing: border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  font-family: var(--sans);
  background: var(--wash);
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button,input,select,textarea{ font: inherit; color:inherit; }
button{ background:none; border:0; cursor:pointer; }
a{ color: var(--petrol-d); }
h1,h2,h3,h4{ font-weight: 400; }
svg{ display:block; }
::selection{ background: var(--petrol); color:var(--on-accent); }

::-webkit-scrollbar{ width:11px; height:11px; }
::-webkit-scrollbar-thumb{ background: var(--rule); border-radius:8px; border:3px solid var(--wash); }
::-webkit-scrollbar-thumb:hover{ background: var(--petrol-l); }
::-webkit-scrollbar-track{ background:transparent; }

/* ---------- Grundgerüst ---------- */
.app{ display:grid; grid-template-columns: var(--rail) minmax(0,1fr); height:100vh; }

.rail{
  background: var(--petrol-dd); display:flex; flex-direction:column; align-items:center;
  padding:16px 0 12px; gap:5px; position:relative; z-index:30;
}
.rail .mark{
  width:58px; height:36px; border-radius:11px; background: var(--petrol);
  display:grid; place-items:center; margin-bottom:16px; flex:none; box-shadow: var(--sh);
  position:relative; overflow:hidden;
}
.rail .mark-logo{ position:absolute; inset:7px 8px; width:calc(100% - 16px); height:calc(100% - 14px); object-fit:contain; }
.rail .mark-fallback{ width:23px; height:23px; fill:var(--on-accent); }
.rbtn{
  width:60px; padding:10px 4px; border-radius:12px; display:flex; flex-direction:column; align-items:center; gap:5px;
  color:var(--petrol-l); transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rbtn svg{ width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }
.rbtn span{ font-size:9.5px; font-weight:500; letter-spacing:.03em; text-transform:uppercase; }
.rbtn:hover{ color:var(--rail-fg); background: rgba(255,255,255,.08); transform:translateY(-1px); }
.rbtn.on{ color:var(--on-accent); background: var(--petrol); box-shadow: 0 3px 10px rgba(2,59,65,.35); }
.rbtn.on:hover{ transform:none; }
.rail .sp{ flex:1; }
.rail .mini{
  width:60px; padding:8px 4px; border-radius:10px; color:var(--rail-fg-dim); font-size:9px; font-weight:500;
  text-align:center; transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.rail .mini:hover{ color:var(--rail-fg); background: rgba(255,255,255,.06); }

.main{ display:flex; flex-direction:column; min-width:0; min-height:0; }
.top{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 18px; padding:18px 28px 12px; flex:none; }
.top .titleblock{ min-width:180px; flex:1 1 200px; }
.top .kicker{
  font-size:11px; font-weight:600; letter-spacing:.16em; text-transform:uppercase; color: var(--blue);
  display:block; margin-bottom:5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.top h1{
  font-family: var(--disp); font-size:26px; font-weight:900; letter-spacing:-.005em; line-height:1;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis;
}
.top .grow{ flex:1; min-width:8px; }

.scope{ display:flex; background: var(--track); border-radius:999px; padding:3px; gap:2px; flex:none; }
.scope button{
  padding:7px 16px; border-radius:999px; font-size:12.5px; font-weight:500; color: var(--ink-2);
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space:nowrap;
}
.scope button.on{ background: var(--paper); color: var(--petrol-d); font-weight:600; box-shadow: var(--sh); }
.scope button:hover:not(.on){ color: var(--ink); }
.scope .n{ font-variant-numeric: tabular-nums; opacity:.62; margin-left:5px; font-weight:500; }

.status{ display:inline-flex; align-items:center; gap:7px; font-size:11px; font-weight:500; color: var(--ink-3); flex:none; }
.status::before{
  content:""; width:7px; height:7px; border-radius:50%; background: var(--ink-3);
  transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.status.ok::before{ background: var(--lime); box-shadow: 0 0 0 3px rgba(174,202,6,.22); }
.status.load::before{ background: var(--orange); animation: pulse 1.1s infinite; }
.status.err::before{ background: var(--orange-d); }
@keyframes pulse{ 0%,100%{opacity:1} 50%{opacity:.35} }

.iconbtn{
  width:34px; height:34px; border-radius:var(--r-s); display:grid; place-items:center; color: var(--ink-3);
  border:1.5px solid var(--rule); transition: all var(--dur) var(--ease); flex:none;
}
.iconbtn svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:1.8; }
.iconbtn:hover{ border-color: var(--petrol); color: var(--petrol); background: var(--petrol-wash); }
.iconbtn:active{ transform:scale(.94); }
.iconbtn:disabled{ opacity:.35; cursor:not-allowed; }
.iconbtn:disabled:hover{ border-color: var(--rule); color: var(--ink-3); background:none; }

.ghost{
  padding:8px 15px; border-radius:var(--r-s); font-size:12.5px; font-weight:500; color: var(--ink-2);
  border:1.5px solid var(--rule); transition: all var(--dur) var(--ease); white-space:nowrap;
  display:inline-flex; align-items:center; gap:7px;
}
.ghost svg{ width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.ghost:hover{ border-color: var(--petrol); color: var(--petrol-d); background: var(--petrol-wash); }
.ghost:active{ transform:scale(.98); }
.ghost.on{ border-color: var(--petrol); color: var(--petrol-d); background: var(--petrol-wash); }
.solid{
  padding:9px 17px; border-radius:var(--r-s); font-size:13px; font-weight:600; color:var(--on-accent); background: var(--petrol);
  transition: all var(--dur) var(--ease); box-shadow: var(--sh); white-space:nowrap;
  display:inline-flex; align-items:center; gap:8px;
}
.solid svg{ width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.solid:hover{ background: var(--petrol-d); box-shadow: var(--sh-h); transform: translateY(-1px); }
.solid:active{ transform:scale(.98); box-shadow:none; }
.solid:disabled,.ghost:disabled{ opacity:.4; cursor:not-allowed; transform:none; }

/* Zentrale Aktion: "Als Grafik gestalten" (Erkunden) — sichtbar hervorgehoben,
   ohne aufdringlich zu wirken. */
.btn-grafik{
  padding:11px 21px; border-radius:var(--r-s); font-size:13.5px; font-weight:700; color:var(--on-accent);
  background: linear-gradient(135deg, var(--petrol), var(--petrol-d));
  display:inline-flex; align-items:center; gap:9px; box-shadow: var(--sh-h); white-space:nowrap;
  transition: all var(--dur) var(--ease);
}
.btn-grafik svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; flex:none; }
.btn-grafik:hover{ transform:translateY(-1.5px); box-shadow: var(--sh-lift); filter:brightness(1.04); }
.btn-grafik:active{ transform:scale(.98); }
.sm-grafik{ padding:6px 12px; font-size:11px; }
.sm-grafik svg{ width:13px; height:13px; }

/* Sichtbarer, konsistenter Fokusring für Tastaturbedienung */
button:focus-visible, [tabindex]:focus-visible{
  outline:2.5px solid var(--petrol); outline-offset:2px; border-radius:6px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline:2.5px solid var(--petrol); outline-offset:1px;
}

/* Seiten */
.page{
  flex:1; min-height:0; display:none; padding:0 28px 24px; position:relative;
  opacity:0; transform:translateY(7px); transition:opacity .22s var(--ease), transform .22s var(--ease);
}
.page.on{ display:flex; flex-direction:column; gap:14px; }
.page.on.show{ opacity:1; transform:translateY(0); }
.karte-einfahrt{
  position:absolute; top:2px; left:0; width:100%; height:30px; pointer-events:none; z-index:5;
  overflow:visible;
}
.karte-einfahrt svg{
  position:absolute; top:0; height:30px; width:auto; left:-56px;
  animation: einfahrt 1.5s cubic-bezier(.3,.6,.4,1) forwards;
}
@keyframes einfahrt{
  0%{ transform:translateX(0); opacity:0; }
  10%{ opacity:.55; }
  85%{ opacity:.55; }
  100%{ transform:translateX(calc(100vw)); opacity:0; }
}
@media (prefers-reduced-motion: reduce){
  .karte-einfahrt{ display:none; }
  .page{ transition:none; transform:none; }
}

.card{
  background: var(--paper); border-radius: var(--r-l); box-shadow: var(--sh); min-height:0;
  display:flex; flex-direction:column; overflow:hidden; border:1px solid transparent;
}
.card-b{ padding:19px 21px; overflow:auto; flex:1; min-height:0; }

/* Auswahl-Leiste (Karte/Vergleichen) */
.picks{ display:flex; gap:10px; flex-wrap:wrap; align-items:flex-end; }
.pick{ position:relative; }
.pick label{ display:block; font-size:9.5px; font-weight:700; letter-spacing:.11em; text-transform:uppercase; color: var(--ink-3); margin-bottom:6px; }
.pick select{
  appearance:none; padding:9px 34px 9px 13px; border:1.5px solid var(--rule); border-radius:9px;
  background: var(--paper); font-size:13px; font-weight:500; cursor:pointer; transition: border-color var(--dur) var(--ease); min-width:180px;
}
.pick select:hover{ border-color: var(--petrol-l); }
.pick select:focus{ outline:none; border-color: var(--petrol); }
.pick::after{
  content:""; position:absolute; right:13px; bottom:16px; width:7px; height:7px; pointer-events:none;
  border-right:2px solid var(--ink-3); border-bottom:2px solid var(--ink-3); transform:rotate(45deg);
}
.pick.nosel::after{ display:none; }

/* leer / laden */
.empty{ padding:56px 26px; text-align:center; color: var(--ink-3); font-size:13.5px; line-height:1.65; }
.empty svg{ width:42px; height:42px; stroke: var(--rule); fill:none; stroke-width:1.4; margin-bottom:14px; }
.spin{ width:26px; height:26px; border:2.5px solid var(--track); border-top-color: var(--petrol); border-radius:50%; animation: sp .7s linear infinite; margin:0 auto 14px; }
@keyframes sp{ to{ transform:rotate(360deg); } }

.loadbar{ position:fixed; top:0; left:0; height:2.5px; background: var(--petrol); z-index:999; transition:width .3s, opacity .4s; box-shadow:0 0 9px var(--petrol); }

.toast{
  position:fixed; bottom:24px; left:50%; transform:translateX(-50%) translateY(76px);
  background: var(--petrol-dd); color:var(--on-accent); padding:12px 21px; border-radius:12px; font-size:13px; font-weight:500;
  box-shadow: var(--sh-lift); z-index:900; transition: transform .32s var(--ease); max-width:min(80vw,520px); text-align:center;
}
.toast.on{ transform:translateX(-50%) translateY(0); }

/* Die Startanzeige wird von den zwei Illustrationen dominiert — kein Logo,
   kein Wortmark-Textblock mehr daneben. Heller Grund (passend zum
   #f2f2f2-Hintergrund, den beide Illustrationen selbst schon mitbringen),
   damit die Bilder nahtlos wirken statt wie eine helle Kachel auf dunklem
   Grund draufgesetzt. */
.splash{
  position:fixed; inset:0; z-index:2000; background:#F2F2F2; display:block;
  transition: opacity .5s; color: var(--ink); cursor:pointer; overflow:hidden;
}
.splash.gone{ opacity:0; pointer-events:none; }
/* Intro-Illustrationen ("freie Bahn" -> "voller Bus"): jedes Bild behält sein
   eigenes Seitenverhältnis (kein gemeinsamer Rahmen, der Leerraum drum herum
   lässt) — der Glanz-Streifen liegt in einem passgenauen Rahmen direkt ums
   Bild, läuft also nie über leere Fläche. Beide Bilder liegen übereinander
   (position:absolute) und werden nur per opacity über-/ausgeblendet — reine
   Compositor-Eigenschaften, kein Reflow bei den recht großen SVGs. */
.intro-host{ position:absolute; inset:0; transition: opacity .5s ease; }
.intro-host.aus{ opacity:0; }
.intro-bild{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
  opacity:0; transition-property:opacity; transition-timing-function:ease;
}
.intro-bild.on{ opacity:1; }
.intro-frame{ position:relative; display:inline-block; line-height:0; }
.intro-frame img, .intro-frame svg{ display:block; max-width:min(92vw,1360px); max-height:80vh; width:auto; height:auto; }
.intro-glanz{
  position:absolute; inset:0; pointer-events:none; left:-60%; width:55%;
  background:linear-gradient(100deg, transparent, rgba(255,255,255,.65), transparent);
  filter:blur(2px); mix-blend-mode:overlay;
}
.intro-bild.on .intro-glanz{ animation-name:introGlanz; animation-iteration-count:1; animation-fill-mode:forwards; }
@keyframes introGlanz{ to{ left:130%; } }
@media (prefers-reduced-motion: reduce){ .intro-host{ display:none; } }
/* Lade-Text/-Balken/Skip: bewusst klein und unten, damit die Illustrationen
   die Fläche dominieren, nicht die Bedienelemente. */
.splash-foot{ position:absolute; left:0; right:0; bottom:7%; text-align:center; z-index:2; }
.splash p{ font-size:12.5px; color: var(--ink-2); font-weight:500; min-height:18px; }
.splash .bar{ width:180px; height:2.5px; background:rgba(4,115,124,.15); border-radius:2px; margin:14px auto 0; overflow:hidden; }
.splash .bar i{ display:block; height:100%; background: var(--petrol-d); width:0; transition:width .3s; }
.splash .err{ color: var(--orange-d); font-size:12.5px; margin:10px auto 0; max-width:340px; }
.splash .skip{
  margin-top:22px; font-size:10.5px; font-weight:700; letter-spacing:.1em; text-transform:uppercase;
  color: var(--ink-3); padding:6px 10px; border-radius:6px; transition: color var(--dur) var(--ease);
}
.splash .skip:hover{ color: var(--petrol-d); }

/* ============================================================
   ERKUNDEN
   ============================================================ */
.split{ display:grid; grid-template-columns:clamp(300px,25vw,400px) minmax(0,1fr); gap:14px; flex:1; min-height:0; }
.qsearch{ padding:12px 14px 6px; flex:none; }
.qsearch input{
  width:100%; padding:9px 13px 9px 34px; border:1.5px solid var(--rule); border-radius:9px; background: var(--wash);
  font-size:13px; transition: border-color var(--dur) var(--ease); background-repeat:no-repeat; background-position:11px center;
}
.qsearch-wrap{ position:relative; }
.qsearch-wrap svg{ position:absolute; left:11px; top:50%; transform:translateY(-50%); width:14px; height:14px; stroke:var(--ink-3); fill:none; stroke-width:2; pointer-events:none; }
.qsearch input:focus{ outline:none; border-color: var(--petrol); }
.qlist{ overflow-y:auto; padding:6px 8px 8px; }
.qgrp{ font-size:9.5px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color: var(--ink-3); padding:15px 12px 7px; }
.qitem{
  width:100%; text-align:left; padding:11px 13px; border-radius:var(--r-s); display:flex; gap:11px; align-items:flex-start;
  transition: background var(--dur) var(--ease); line-height:1.35;
}
.qitem:hover{ background: var(--wash); }
.qitem.on{ background: var(--petrol); color:var(--on-accent); }
.qitem.on .qid,.qitem.on .qsub{ color:rgba(255,255,255,.8); }
.qid{ font-size:10.5px; font-weight:700; color: var(--petrol); flex:none; width:27px; padding-top:1px; font-variant-numeric:tabular-nums; }
.qtx{ flex:1; font-size:13px; font-weight:500; }
.qsub{ display:block; font-size:10.5px; color: var(--ink-3); font-weight:500; margin-top:2px; }

.res-h{ margin-bottom:17px; }
.res-h h3{ font-family: var(--disp); font-size:23px; font-weight:700; line-height:1.24; margin-bottom:8px; }
.res-h .frage{
  font-size:13px; color: var(--ink-2); line-height:1.55; font-weight:500;
  padding:12px 15px; background: var(--wash); border-radius:var(--r-s); border-left:3px solid var(--petrol);
}

.bars{ display:flex; flex-direction:column; gap:9px; }
.bar{ display:grid; grid-template-columns:minmax(120px,1.1fr) minmax(0,3fr) 92px; gap:13px; align-items:center; }
.bar-l{ font-size:13px; font-weight:500; line-height:1.3; }
.bar-t{ height:27px; background: var(--track); border-radius:6px; overflow:hidden; position:relative; }
.bar-f{ height:100%; border-radius:6px; background: var(--petrol); transition: width .55s var(--ease); }
.bar-v{ font-size:14px; font-weight:700; font-variant-numeric:tabular-nums; color: var(--petrol); text-align:right; }
.bar-v small{ display:block; font-size:10px; font-weight:500; color: var(--ink-3); }
.bar:hover .bar-f{ filter:brightness(1.06); }
.bar.order{ cursor:default; }

.sortbar{ display:flex; align-items:center; gap:9px; margin-bottom:14px; font-size:11.5px; color: var(--ink-3); }
.sortbar .segs{ display:flex; background: var(--track); border-radius:999px; padding:2px; }
.sortbar .segs button{ padding:5px 12px; border-radius:999px; font-size:11.5px; font-weight:500; color:var(--ink-2); transition:all var(--dur) var(--ease); }
.sortbar .segs button.on{ background: var(--paper); color: var(--petrol-d); font-weight:700; box-shadow: var(--sh); }

.likert-wrap{ display:flex; height:32px; border-radius:8px; overflow:hidden; background: var(--track); }
.likert-seg{ display:grid; place-items:center; font-size:10.5px; font-weight:700; color:var(--on-accent); transition:filter .18s var(--ease); }
.likert-seg:hover{ filter:brightness(1.08); }
.likert-legend{ display:flex; gap:13px; flex-wrap:wrap; margin-top:8px; font-size:10.5px; color: var(--ink-3); }
.likert-legend span{ display:flex; align-items:center; gap:5px; }
.likert-legend i{ width:9px; height:9px; border-radius:2px; display:inline-block; }

.basis{ margin-top:21px; padding:16px 18px; background: var(--wash); border-radius:var(--r-s); font-size:12px; }
.basis h4{ font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color: var(--ink-3); margin-bottom:12px; }
.bk{ display:flex; align-items:center; gap:11px; flex-wrap:wrap; }
.bk-s{ display:flex; align-items:baseline; gap:7px; padding:8px 13px; background: var(--paper); border-radius:9px; box-shadow: var(--sh); }
.bk-s.hl{ background: var(--petrol); color:var(--on-accent); }
.bk-s.hl .bk-t{ color:rgba(255,255,255,.85); }
.bk-n{ font-size:16px; font-weight:700; font-variant-numeric:tabular-nums; line-height:1; }
.bk-t{ font-size:11px; color: var(--ink-2); font-weight:500; }
.bk-a{ color: var(--petrol); font-size:16px; font-weight:700; }
.basis .note{ margin-top:11px; font-size:11.5px; color: var(--ink-2); line-height:1.6; }
.basis .note b{ color: var(--ink); }
.basis .note .w{ color: var(--orange-d); }
.basis-toggle{
  display:inline-flex; align-items:center; gap:7px; margin-top:12px; font-size:11px; font-weight:600; color: var(--petrol-d);
  padding:5px 3px; transition:color var(--dur) var(--ease);
}
.basis-toggle:hover{ color: var(--petrol); }
.basis-toggle .car{ width:6px; height:6px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor; transform:rotate(45deg); transition:transform var(--dur) var(--ease); }
.basis-toggle.open .car{ transform:rotate(-135deg); }

.ftx{ margin-top:19px; border:1px solid var(--rule); border-radius:var(--r-s); overflow:hidden; }
.ftx-h{ width:100%; padding:13px 16px; display:flex; align-items:center; gap:10px; font-size:12.5px; font-weight:600; transition:background var(--dur) var(--ease); }
.ftx-h:hover{ background: var(--wash); }
.ftx-h svg{ width:15px; height:15px; stroke:currentColor; fill:none; stroke-width:1.8; flex:none; }
.ftx-h .c{ margin-left:auto; font-size:11px; color: var(--ink-3); font-weight:500; }
.ftx-h .car{ width:8px; height:8px; border-right:2px solid var(--ink-3); border-bottom:2px solid var(--ink-3); transform:rotate(45deg); transition:transform var(--dur) var(--ease); flex:none; }
.ftx.open .ftx-h .car{ transform:rotate(-135deg); }
.ftx-b{ border-top:1px solid var(--rule); padding:13px 16px; display:none; }
.ftx.open .ftx-b{ display:block; }
.ftx-search{ width:100%; padding:9px 13px; border:1.5px solid var(--rule); border-radius:8px; background: var(--wash); font-size:13px; margin-bottom:11px; transition:border-color var(--dur) var(--ease); }
.ftx-search:focus{ outline:none; border-color: var(--petrol); }
.ftx-l{ max-height:320px; overflow-y:auto; display:flex; flex-direction:column; gap:2px; }
.ftx-i{ padding:8px 11px; border-radius:7px; font-size:12.5px; line-height:1.5; display:flex; gap:11px; }
.ftx-i:nth-child(odd){ background: var(--wash); }
.ftx-i .n{ font-size:10.5px; font-weight:700; color: var(--petrol); flex:none; }
.ftx-2g{
  flex:none; width:22px; height:22px; border-radius:6px; color: var(--ink-3); font-size:13px; font-weight:700;
  display:grid; place-items:center; opacity:0; transition:all var(--dur) var(--ease);
}
.ftx-i:hover .ftx-2g{ opacity:1; }
.ftx-2g:hover{ background: var(--petrol); color:var(--on-accent); }
.ftx-warn{ margin-top:11px; font-size:11px; color: var(--orange-d); font-weight:500; display:flex; gap:7px; align-items:flex-start; }

/* ============================================================
   KARTE
   ============================================================ */
.map-wrap{ display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:16px; flex:1; min-height:0; }
.map-box{ position:relative; display:flex; align-items:center; justify-content:center; padding:10px; min-height:0; }
.map-box svg{ width:100%; height:100%; max-height:100%; }
.map-box path{
  transition:fill .4s var(--ease), opacity .2s var(--ease), stroke .18s var(--ease), stroke-width .18s var(--ease), filter .18s var(--ease);
  cursor:pointer; transform-box:fill-box; transform-origin:center;
}
.map-box path:hover{ filter:brightness(1.09) saturate(1.08); transform:scale(1.008); }
.map-box path:hover:not(.on){ stroke:var(--petrol-dd); stroke-width:2.2px; }
.map-box path.on{ filter:drop-shadow(0 2px 5px rgba(2,59,65,.35)); }
.map-box text{ transition:opacity .25s var(--ease); }
.map-side{ overflow-y:auto; }
.rank{ display:flex; flex-direction:column; gap:1px; }
.rank-i{ display:flex; align-items:center; gap:10px; padding:8px 12px; border-radius:8px; cursor:pointer; font-size:12.5px; transition:background .16s var(--ease); }
.rank-i:hover{ background: var(--wash); }
.rank-i.on{ background: var(--petrol); color:var(--on-accent); }
.rank-i.on .rank-v{ color:var(--on-accent); }
.rank-n{ width:18px; font-size:10.5px; font-weight:700; color: var(--ink-3); text-align:right; flex:none; }
.rank-l{ flex:1; font-weight:500; }
.rank-v{ font-weight:700; font-variant-numeric:tabular-nums; color: var(--petrol); }
.rank-i.on .sig{ color:var(--on-accent); }
.legend{ display:flex; align-items:center; gap:10px; font-size:11px; color: var(--ink-3); font-weight:500; padding:12px 4px 0; }
.legend .grad{ flex:1; height:9px; border-radius:5px; min-width:70px; }
.map-fs{ position:fixed; inset:0; z-index:1500; background: var(--paper); display:flex; flex-direction:column; padding:20px; }
.map-fs .fsbar{ display:flex; align-items:center; gap:12px; flex:none; padding-bottom:14px; }
.map-fs .fsbody{ flex:1; min-height:0; display:grid; grid-template-columns:minmax(0,1fr) 280px; gap:16px; }
.zoomctl{ display:flex; gap:4px; }

/* ============================================================
   VERGLEICHEN
   ============================================================ */
.cmp-grid{ display:flex; flex-direction:column; gap:9px; }
.cmp-row{ display:grid; grid-template-columns:minmax(110px,1fr) minmax(0,3.2fr) 118px; gap:13px; align-items:center; padding:2px 0; border-radius:8px; transition:background var(--dur) var(--ease); }
.cmp-row.dim{ opacity:.45; }
.cmp-l{ font-size:13px; font-weight:500; line-height:1.3; }
.cmp-l small{ display:block; font-size:10.5px; color: var(--ink-3); }
.cmp-t{ height:31px; background: var(--track); border-radius:7px; overflow:hidden; display:flex; position:relative; }
.cmp-f{ height:100%; transition: width .55s var(--ease); position:relative; }
.cmp-ci{ position:absolute; top:0; bottom:0; background:rgba(0,0,0,.14); }
.cmp-v{ font-size:14.5px; font-weight:700; font-variant-numeric:tabular-nums; text-align:right; }
.cmp-v small{ display:block; font-size:10px; font-weight:500; color: var(--ink-3); }
.sig{ display:inline-block; margin-left:4px; color: var(--orange-d); font-weight:700; }
.minn{ display:flex; align-items:center; gap:8px; }
.minn input[type=range]{ width:110px; accent-color: var(--petrol); }
.minn .v{ font-size:12px; font-weight:600; color: var(--petrol-d); min-width:44px; }
.minn-warn{ font-size:11px; color: var(--orange-d); font-weight:500; margin-top:8px; }

/* ============================================================
   GRAFIK-WERKSTATT
   ============================================================ */
.gworkshop{ display:grid; grid-template-columns:230px minmax(0,1fr) 260px; gap:16px; height:100%; min-height:0; }
.gpane{ overflow-y:auto; padding-right:2px; min-height:0; }
.gseiten-strip{
  display:flex; gap:8px; align-items:flex-start; overflow-x:auto; overflow-y:hidden; flex:none;
  padding:2px 2px 4px;
}
/* Die Seiten-Leiste bekommt eine feste Gesamthöhe. Innerhalb davon ist die
   Randleiste mit Nummer/Duplizieren/Löschen bewusst schmal gehalten (nur
   Icons, kein eigener Verschiebe-Balken mehr — die Pfeile sitzen jetzt als
   Overlay direkt auf der Miniatur) — so bleibt für die Miniatur selbst mehr
   Platz übrig, ohne dass die Leiste insgesamt höher wird. */
.gseiten-strip{ height:132px; }
.gseite{
  position:relative; flex:none; width:84px; height:100%; display:flex; flex-direction:column; border:1.5px solid var(--rule);
  border-radius:9px; overflow:hidden; cursor:pointer; transition:all var(--dur) var(--ease); background: var(--paper);
}
.gseite:hover{ border-color: var(--petrol-l); }
.gseite.on{ border-color: var(--petrol); box-shadow:0 0 0 2px var(--petrol-wash); }
.gseite-thumb{ position:relative; flex:1; min-height:0; background:#fff; }
.gseite-thumb svg{ width:100%; height:100%; display:block; pointer-events:none; }
.gseite-move{ position:absolute; inset:0 0 auto 0; display:flex; justify-content:space-between; padding:3px; opacity:.55; transition:opacity var(--dur) var(--ease); }
.gseite:hover .gseite-move{ opacity:1; }
.gseite-move .gseite-btn{ background:rgba(2,59,65,.55); color:#fff; }
.gseite-move .gseite-btn:hover{ background: var(--petrol); }
.gseite-bar{ display:flex; align-items:center; gap:2px; padding:3px 5px; background: var(--wash); font-size:10.5px; font-weight:700; color: var(--ink-3); flex:none; }
.gseite-bar span{ flex:1; text-align:center; }
.gseite-btn{ width:18px; height:18px; border-radius:4px; display:grid; place-items:center; color: var(--ink-3); transition:all var(--dur) var(--ease); }
.gseite-btn svg{ width:11px; height:11px; fill:none; stroke:currentColor; stroke-width:2.2; }
.gseite-btn:hover{ background: var(--petrol); color:#fff; }
.gseite-btn[data-act="del"]:hover{ background: var(--orange); }
.gseite-btn:disabled{ opacity:.25; pointer-events:none; }
.gseite-add{
  flex:none; width:84px; height:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px;
  border:1.5px dashed var(--rule); border-radius:9px; color: var(--ink-3);
  transition:all var(--dur) var(--ease); padding:4px;
}
.gseite-add svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:2; }
.gseite-add span{ font-size:9.5px; font-weight:600; text-align:center; line-height:1.2; }
.gseite-add:hover{ border-color: var(--petrol); color: var(--petrol); background: var(--petrol-wash); }
.gsec{ font-size:9.5px; font-weight:700; letter-spacing:.13em; text-transform:uppercase; color: var(--ink-3); margin:17px 0 9px; }
.gsec:first-child{ margin-top:0; }
.gcard{
  display:flex; gap:10px; align-items:center; padding:9px; border:1.5px solid var(--rule); border-radius:11px;
  text-align:left; transition:all var(--dur) var(--ease); background: var(--paper); width:100%;
}
.gcard:hover{ border-color: var(--petrol); box-shadow: var(--sh); }
.gcard.on{ border-color: var(--petrol); background: var(--petrol-wash); box-shadow: var(--sh); }
.gcard.off{ opacity:.42; }
.gcard.off:hover{ border-color: var(--orange); opacity:.7; }
.gc-mini{ width:38px; height:47px; border-radius:5px; overflow:hidden; flex:none; border:1px solid var(--rule); }
.gcard b{ display:block; font-size:12.5px; font-weight:600; }
.gcard span{ display:block; font-size:10.5px; color: var(--ink-3); margin-top:1px; }
.gel-btn{
  display:flex; flex-direction:column; align-items:center; gap:5px; padding:8px 4px; border:1.5px solid var(--rule);
  border-radius:10px; background: var(--paper); transition:all var(--dur) var(--ease);
}
.gel-btn:hover{ border-color: var(--petrol); background: var(--petrol-wash); transform:translateY(-1px); }
.gel-btn b{ font-size:9.5px; font-weight:500; color: var(--ink-2); text-align:center; line-height:1.2; }
.gel-prev{ width:100%; height:34px; display:grid; place-items:center; }
.gel-load{ width:14px; height:14px; border:2px solid var(--track); border-top-color: var(--petrol); border-radius:50%; animation: sp .7s linear infinite; }
.gel-err{ color: var(--ink-3); font-size:11px; }
.gtheme{
  display:flex; align-items:center; gap:3px; padding:8px; border:1.5px solid var(--rule); border-radius:10px;
  flex-wrap:wrap; transition:all var(--dur) var(--ease);
}
.gtheme:hover{ border-color: var(--petrol); }
.gtheme.on{ border-color: var(--petrol); background: var(--petrol-wash); }
.gtheme span{ width:11px; height:11px; border-radius:3px; display:block; }
.gtheme b{ width:100%; font-size:9.5px; font-weight:600; margin-top:4px; color: var(--ink-2); }
.gstage-wrap{ flex:1; min-height:0; display:grid; place-items:center; background: var(--wash); border-radius:14px; padding:16px; position:relative; overflow:hidden; }
.gstage{ position:relative; box-shadow: var(--sh-lift); border-radius:3px; overflow:hidden; background:#fff; }
.ghandle{
  position:absolute; border:1.5px dashed transparent; border-radius:5px; cursor:grab;
  transition:border-color .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), transform .1s var(--ease);
}
.ghandle:hover{ border-color: var(--petrol-l); background:rgba(5,157,170,.06); }
.ghandle.sel{ border-color: var(--petrol); border-style:solid; background:rgba(5,157,170,.08); box-shadow:0 0 0 3px rgba(5,157,170,.12); }
.ghandle.multi{ border-color: var(--orange); border-style:solid; background:rgba(235,102,9,.07); box-shadow:0 0 0 3px rgba(235,102,9,.1); }
.ghandle.group-bb{ border-color: var(--orange); border-style:dashed; border-width:2px; background:transparent; border-radius:2px; box-shadow:none; }
/* Ganzer Diagramm-Block (noch nicht in Einzelteile aufgelöst): eigener,
   etwas lockererer Rahmen als Hinweis "hier steckt mehr drin" — Doppelklick
   zoomt in den angeklickten Balken/Text hinein. */
.ghandle.gruppe{ border-radius:8px; }
.ghandle.gruppe:hover{ border-style:dashed; border-color: var(--petrol); }
.ghandle.gruppe.sel{ border-style:dashed; border-width:2px; }
/* Beim aktiven Ziehen: Griff spürbar "anheben" statt nur die Randfarbe zu ändern. */
.ghandle.dragging{ cursor:grabbing; box-shadow:0 10px 26px rgba(2,59,65,.28); z-index:6; transition:none; }
.ghandle.dragging.multi{ box-shadow:0 10px 26px rgba(235,102,9,.3); }
.gmarquee{
  position:absolute; border:1.5px dashed var(--petrol); background:rgba(5,157,170,.10); border-radius:3px; pointer-events:none;
}
.gres{
  position:absolute; right:-8px; bottom:-8px; width:18px; height:18px; border-radius:50%; background: var(--petrol);
  border:2.5px solid #fff; cursor:nwse-resize; opacity:0; transform:scale(.7); display:grid; place-items:center;
  transition:opacity .15s var(--ease), transform .15s var(--ease), background .15s var(--ease); box-shadow:0 2px 6px rgba(2,59,65,.35);
}
.gres::before{
  content:''; width:7px; height:7px; border-right:1.5px solid #fff; border-bottom:1.5px solid #fff; transform:rotate(45deg) translate(-1px,-1px);
}
.ghandle:hover .gres, .ghandle.sel .gres, .ghandle.multi .gres{ opacity:1; transform:scale(1); }
.gres:hover{ background: var(--petrol-d); transform:scale(1.15); }
.gtoolbar{ display:flex; gap:6px; flex-wrap:wrap; justify-content:center; align-items:center; }
.gtoolbar .sep{ width:1px; height:20px; background: var(--rule); margin:0 3px; }
.gtoolbar .iconbtn{ width:32px; height:32px; }
.gf{ display:block; margin-bottom:12px; }
.gf span{ display:block; font-size:11px; font-weight:600; color: var(--ink-2); margin-bottom:6px; }
.gf b{ color: var(--petrol); }
.gf textarea,.gf input[type=text],.gf input:not([type]){
  width:100%; padding:8px 11px; border:1.5px solid var(--rule); border-radius:9px; background: var(--wash);
  font-size:12.5px; font-family: var(--sans); resize:vertical; transition:border-color var(--dur) var(--ease);
}
.gf textarea:focus,.gf input:focus{ outline:none; border-color: var(--petrol); }
.gf input[type=range]{ width:100%; accent-color: var(--petrol); }
.gf select{ width:100%; padding:8px 11px; border:1.5px solid var(--rule); border-radius:9px; background: var(--wash); font-size:12.5px; cursor:pointer; }
.gf-select{
  width:100%; padding:9px 12px; border:1.5px solid var(--rule); border-radius:9px; background: var(--paper);
  font-size:12.5px; font-weight:500; cursor:pointer; transition:border-color var(--dur) var(--ease); margin-bottom:2px;
}
.gf-select:hover{ border-color: var(--petrol-l); }
.gf-select:focus-visible{ border-color: var(--petrol); }
.gf-row{ display:flex; align-items:center; gap:8px; }
.gf-row input[type=range]{ flex:1; width:auto; }
.gf-num{
  width:56px; flex:none; padding:7px 8px; border:1.5px solid var(--rule); border-radius:8px; background: var(--wash);
  font-size:12px; font-variant-numeric:tabular-nums; text-align:center; transition:border-color var(--dur) var(--ease);
  -moz-appearance:textfield; appearance:textfield; /* eigene, schlichte Zahlenfelder statt Browser-Spinner */
}
.gf-num::-webkit-outer-spin-button, .gf-num::-webkit-inner-spin-button{ -webkit-appearance:none; margin:0; }
.gf-num:hover{ border-color: var(--petrol-l); }
.gf-num:focus-visible{ border-color: var(--petrol); background: var(--paper); }
.gf .row2{ display:flex; gap:8px; }
.gf .row2 > *{ flex:1; }
.gf.chk{ display:flex; align-items:center; gap:8px; }
.gf.chk span{ margin:0; }
.gf.chk input{ accent-color: var(--petrol); width:16px; height:16px; }
.gswatches{ display:flex; gap:6px; flex-wrap:wrap; }
.gswatch,.dekoswatch{ width:24px; height:24px; border-radius:7px; border:1.5px solid var(--rule); transition:all var(--dur) var(--ease); }
.gswatch:hover,.dekoswatch:hover{ transform:scale(1.08); }
.gswatch.on,.dekoswatch.on{ border-color: var(--ink); box-shadow:0 0 0 2px var(--paper), 0 0 0 3.5px var(--ink); }
.gf-2col{ display:grid; grid-template-columns:1fr 1fr; gap:10px 12px; }
.gf-2col .gf{ margin-bottom:12px; }
.segs{ display:flex; background: var(--track); border-radius:999px; padding:2px; width:fit-content; }
.segs button{ padding:6px 13px; border-radius:999px; font-size:11.5px; color: var(--ink-3); transition:all var(--dur) var(--ease); }
.segs button.on{ background: var(--paper); color: var(--petrol-d); box-shadow: var(--sh); }
.gtools{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:12px; }
.ghost.sm{ padding:6px 10px; font-size:11px; }
.ghost.sm svg{ width:12px; height:12px; }
.ghint{ font-size:11px; color: var(--ink-3); line-height:1.65; padding:11px 13px; background: var(--wash); border-radius:9px; }
.ghint b{ color: var(--ink-2); }
.ghint kbd{ font-family:inherit; font-size:10px; font-weight:700; padding:1px 5px; border-radius:4px; background: var(--paper); border:1px solid var(--rule); }
.exportrow{ display:flex; gap:8px; flex-wrap:wrap; justify-content:center; }

/* ============================================================
   ÜBERSICHT
   ============================================================ */
.ub{ max-width:960px; margin:0 auto; padding-bottom:10px; }
.ub .kicker{ font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color: var(--blue); display:block; margin-bottom:8px; }
.ub h2{ font-family: var(--disp); font-size:28px; font-weight:900; margin:38px 0 6px; line-height:1.2; }
.ub h2:first-child,.ub .kicker:first-child + h2{ margin-top:0; }
.ub .lead{ font-size:14.5px; color: var(--ink-2); line-height:1.7; margin-bottom:22px; max-width:74ch; }
.ub .kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:13px; margin:22px 0; }
.ub .kpi{ padding:18px 20px; background: var(--wash); border-radius: var(--r-l); border-left:3px solid var(--petrol); transition:transform var(--dur) var(--ease); }
.ub .kpi:hover{ transform:translateY(-2px); }
.ub .kpi.b{ border-left-color: var(--blue); }
.ub .kpi.o{ border-left-color: var(--orange); }
.ub .kpi .v{ font-family:var(--disp); font-size:35px; font-weight:900; color: var(--petrol); line-height:1; font-variant-numeric:tabular-nums; }
.ub .kpi.b .v{ color: var(--blue); }
.ub .kpi.o .v{ color: var(--orange-d); }
.ub .kpi .t{ font-size:11.5px; color: var(--ink-2); margin-top:8px; line-height:1.45; font-weight:500; }
.ub .block{ padding:24px 26px; background: var(--paper); border-radius: var(--r-l); box-shadow: var(--sh); margin-bottom:16px; }
.ub .block h3{ font-size:16px; font-weight:700; margin-bottom:6px; }
.ub-export{ display:flex; gap:8px; justify-content:center; margin:26px 0 6px; flex-wrap:wrap; }
/* Schmale Balkenlisten nebeneinander (z.B. "Wer mitgemacht hat": Geschlecht/
   Alter/Wohnort in einem Raster) — eigenes, engeres Spaltenraster statt der
   normalen .bars/.bar-Maße, die für die volle Breite ausgelegt sind. */
.bars.mini{ gap:6px; }
.bars.mini .bar{ grid-template-columns:minmax(0,1fr) minmax(0,1.6fr) 44px; gap:7px; }
.bars.mini .bar-l{ font-size:11.5px; }
.bars.mini .bar-t{ height:16px; border-radius:4px; }
.bars.mini .bar-v{ font-size:11.5px; }
.bars.mini .bar-v small{ display:none; }
/* Eingebettete, interaktive Deutschlandkarte in der Übersicht — eigene feste
   Höhe statt flex:1 (die Karte-Seite steckt in einem höhenbegrenzten Grid,
   der Übersicht-Block aber im normalen Lesefluss). */
.ub-map-wrap{ display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:16px; height:460px; }
@media (max-width:760px){ .ub-map-wrap{ grid-template-columns:1fr; height:auto; } .ub-map-wrap .map-box{ height:320px; } .ub-map-wrap .map-side{ max-height:260px; } }

/* ============================================================
   RECHTLICHES — Impressum / Datenschutz (Platzhalter-Modal)
   ============================================================ */
.modal-backdrop{
  position:fixed; inset:0; z-index:1800; background:rgba(2,20,22,.55); backdrop-filter:blur(2px);
  display:none; align-items:center; justify-content:center; padding:24px;
  opacity:0; transition:opacity .22s var(--ease);
}
.modal-backdrop.on{ display:flex; opacity:1; }
.modal{
  position:relative; background: var(--paper); border-radius: var(--r-l); box-shadow: var(--sh-lift);
  max-width:560px; width:100%; max-height:min(80vh,700px); overflow-y:auto; padding:34px 30px;
  transform:translateY(10px) scale(.98); transition:transform .22s var(--ease);
}
.modal-backdrop.on .modal{ transform:translateY(0) scale(1); }
.modal-close{
  position:absolute; top:16px; right:16px; width:32px; height:32px; border-radius:9px; color: var(--ink-3);
  display:grid; place-items:center; transition:all var(--dur) var(--ease);
}
.modal-close svg{ width:16px; height:16px; fill:none; stroke:currentColor; stroke-width:2; }
.modal-close:hover{ background: var(--wash); color: var(--ink); }
.modal h2{ font-family:var(--disp); font-size:24px; font-weight:900; margin:4px 0 10px; }
.modal-sm{ max-width:400px; padding:26px; z-index:1950; }

/* Auswahl-Modus-Banner ("Aus Auswertung") */
.pickbanner{
  display:none; align-items:center; gap:12px; margin:0 28px 12px; padding:11px 16px; border-radius:12px;
  background: var(--blue-wash); border:1.5px solid var(--blue); color: var(--ink); font-size:12.5px; line-height:1.5;
}
.pickbanner.on{ display:flex; animation: pickIn .25s var(--ease); }
@keyframes pickIn{ 0%{ opacity:0; transform:translateY(-6px); } 100%{ opacity:1; transform:translateY(0); } }
.pickbanner svg{ width:18px; height:18px; stroke: var(--blue); fill:none; stroke-width:1.8; flex:none; }
.pickbanner b{ color: var(--blue); }
.pickbanner button{ flex:none; margin-left:auto; }
.legal-note{ font-size:12.5px; color: var(--ink-3); line-height:1.6; margin-bottom:16px; }
.legal-note code{ background: var(--wash); padding:1px 5px; border-radius:4px; font-size:11.5px; }
.legal-sec{ font-size:10px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color: var(--blue); margin:20px 0 8px; }
.legal-sec:first-of-type{ margin-top:6px; }
.legal-f{ display:flex; justify-content:space-between; gap:14px; padding:8px 0; border-bottom:1px solid var(--rule); font-size:13px; }
.legal-f span{ color: var(--ink-2); font-weight:500; }
.legal-f b{ color: var(--ink-3); font-weight:600; font-style:italic; text-align:right; }

@media(max-width:1180px){
  .split{ grid-template-columns:1fr; grid-template-rows:minmax(0,260px) minmax(0,1fr); }
  .map-wrap{ grid-template-columns:1fr; }
  .gworkshop{ grid-template-columns:210px minmax(0,1fr) 240px; }
}
@media(max-width:860px){
  .gworkshop{
    grid-template-columns:1fr; grid-template-rows:minmax(0,170px) minmax(320px,1fr) minmax(0,260px);
    gap:12px; overflow-y:auto;
  }
}
