/* app_1118.css · App-Ansichten der Startseite (Stadtansicht, Liste, Akte, Firmenliste) im System 1117 (Unterseiten 1118, Stufe C, 18.11.2026).
   Spec redesign/unterseiten_1118/entwurf/SPEC_UNTERSEITEN.md 5.2, Vorlage entwurf/assets/app_1118.css. Nur Stil, kein Markup und keine Logik:
   app.js, network.js und akte-v2.js bleiben, wie sie sind. Lädt nach radar_app_1117.css und start_1117.css, deshalb die gleiche Stärke wie
   dort (body.s17 und !important nur, wo die Altdateien selbst !important setzen). Kartenfarben: assets/radar-map.js (S18).
   Teal = Daten (Punkte, Zahlen im Fenster, Phasenbalken), Tinte = Bedienung, Bernstein nur für Ereignisse. Linien statt Kacheln, Radius 2 px. */
body.s17 :is(#rail,#card,#crumb,#tools,#browse,#myradar,#mseg,#mapwrap,#netwrap,#mlegend,#xbar){--radar:#0B6B66;--radar-deep:#08504C;--radar-tint:#E3EFEE;--muted:#5C6067;--paper-2:#ECE8DF;--r:2px;--teal-s:#0B6B66;--teal-l:#15171B}
/* Leiste über der Karte: Haarlinie, Pfad mit "/" bleibt Text von app.js */
body.s17 #xbar{border-bottom:1px solid #15171B}
body.s17 #crumb,body.s17 #crumb button,body.s17 #myradar,body.s17 #browse,body.s17 #tools button{border-radius:2px!important}
/* Randspalte: Suche mit Tintenrand, Kontext als Titel mit Linie 2 px statt getönter Kasten */
body.s17 #rq{border:1px solid #15171B!important;border-radius:2px!important;background:#fff!important;min-height:40px}
body.s17 #rail select{border:1px solid #15171B!important;border-radius:2px!important;background-color:#fff!important}
body.s17 #rail .rctx{background:none!important;border:0!important;border-top:2px solid #15171B!important;border-radius:0!important;box-shadow:none!important;margin:10px 18px 6px;padding:10px 0 8px}
body.s17 #rail .rctx b,body.s17 #rail .rctx h3,body.s17 #rail .rctx strong{font:300 22px/1.15 'Funnel Display','Inter',sans-serif;letter-spacing:-.01em}
body.s17 #rail .cur{background:#E3EFEE!important;box-shadow:inset 2px 0 0 #0B6B66!important;border-color:#DED9CF!important}
body.s17 #rail .chip{border-radius:2px}body.s17 #rail .chip.on,body.s17 #rail .chip.buy.on{background:#15171B;border-color:#15171B}
body.s17 .pfseg{border:1px solid #15171B;border-radius:2px;overflow:hidden}
body.s17 .pfseg button.on{background:#15171B;color:#fff}
body.s17 #rail .rback{color:#15171B;text-decoration:underline;text-decoration-color:#0B6B66;text-underline-offset:3px}
/* Akte rechts: weiß, Rand Tinte, kein Schatten; Kacheln werden Kennzahlreihe, "specifying now" in Teal (Daten, kein Ereignis) */
body.s17 #card{border-radius:0!important;box-shadow:none!important;background:#fff!important}
body.s17 #card h3{font:300 30px/1.1 'Funnel Display','Inter',sans-serif;letter-spacing:-.016em}
body.s17 .ctiles{border-top:2px solid #15171B}
body.s17 .ctile{border-radius:0;background:none}
body.s17 .ctile:hover{background:#E3EFEE}
body.s17 .ctile b{font-weight:300;font-variant-numeric:tabular-nums;font-family:'Funnel Display','Inter',sans-serif}   /* Stufe E (D2 Nr. 15): Kennzahlen wie .kz der Seiten */
body.s17 #card .ctile[data-jump="buy"] b,body.s17 #card .ctile[data-jump="spec"] b{color:#0B6B66}
body.s17 #card .wt.spec{color:#0B6B66!important}
body.s17 .phbar{border-radius:0;height:7px;background:#DED9CF}
body.s17 .phlg i,body.s17 #mlegend i{border-radius:0}
body.s17 #card .offer{border-radius:0;border-top:1px solid #15171B;background:#F5F2EC}
body.s17 #card .unlock,body.s17 #card .btn{border-radius:2px}
body.s17 #card .unlock{background:#15171B;color:#fff}
body.s17 #card .unlock:hover{background:#08504C}
body.s17 #card .ring .big,body.s17 #card .flist .st.ok,body.s17 #card .plist em.ok,body.s17 #card .sub{color:#0B6B66}
body.s17 #card .flist .st.no{color:#8A5E06}
body.s17 #card .cast .veil{border-radius:0;background:repeating-linear-gradient(135deg,#C9C3B6 0 2px,transparent 2px 5px)}
body.s17 #card .plist .phase{border-radius:0}
body.s17 #card .plist .phase.vision{color:#5C6067}
/* Legende wie die Kartenpunkte (radar-map.js S18) */
body.s17 #mlegend{border-radius:0;border-color:#15171B}
body.s17 #mlegend i.c{background:#0B6B66}body.s17 #mlegend i.p{background:#7FB3AF}body.s17 #mlegend i.v{background:#C9C3B6}body.s17 #mlegend i.r{background:#15171B}
body.s17 #mlegend i.s{background:transparent;box-shadow:inset 0 0 0 2px #15171B}
/* Handy: Reiter unten */
body.s17 #mseg button:first-child,body.s17 #mseg button:last-child{border-radius:0}
body.s17 #mseg{border-top:1px solid #15171B}
/* Phasenbalken und Legende: app.js setzt die Farben inline (PH, Papierfassung Tinte/Grau). Hier Teal wie die Kartenpunkte. */
body.s17 :is(.phbar,.phlg,.obars,.cast) i[style*="#15171B"]{background:#0B6B66!important}
body.s17 :is(.phbar,.phlg,.obars,.cast) i[style*="#6A6E75"]{background:#7FB3AF!important}
body.s17 :is(.phbar,.phlg,.obars,.cast) i[style*="#B8BCC2"]{background:#C9C3B6!important}
body.s17 :is(.phbar,.phlg,.obars,.cast) i[style*="#9C7F4A"]{background:#15171B!important}
/* ---- Stufe E 18.11.2026 (D2 Nr. 7 und 8): Leiste und Randspalte in Tinte, ein Einzug von 20 px, Karte ohne Standardknöpfe ---- */
body.s17 #crumb button.cur,body.s17 #crumb button:last-child{color:#15171B!important}
body.s17 #crumb i{font-size:0!important;margin:0 2px!important}
body.s17 #crumb i::before{content:"/";font-size:14px;color:#C9C3B6}
body.s17 #tools{border:1px solid #15171B!important;border-radius:2px!important;background:#fff!important}
body.s17 #tools button{flex:1 1 0;min-width:118px;color:#15171B;background:transparent}
body.s17 #tools button+button{border-left:1px solid #15171B!important}
body.s17 #tools button.on{background:#15171B!important;color:#fff!important}
body.s17 #stage :is(#myradar,#browse){border:1px solid #15171B!important;background:transparent!important;color:#15171B!important;border-radius:2px!important}
@media (min-width:1101px){
  body.s17 #stage.city #crumb,body.s17 #stage.rail #crumb{left:10px!important}
  body.s17 #stage.city :is(#myradar,#browse),body.s17 #stage.rail :is(#myradar,#browse){height:36px!important;top:8px!important}
  body.s17 #stage.city #browse,body.s17 #stage.rail #browse{right:20px!important}
  body.s17 #stage.city #myradar,body.s17 #stage.rail #myradar{right:118px!important}
}
@media (min-width:760px){
  body.s17 #rail #rq{margin-left:20px;margin-right:20px;width:calc(100% - 40px)}
  body.s17 #rfilter{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;padding:0 20px 12px}
  body.s17 #rfilter label{display:flex;flex-direction:column;align-items:stretch;gap:4px;padding:0!important;margin:0}
  body.s17 #rfilter label>span{font:500 12.5px 'Inter',sans-serif;color:#5C6067}
  body.s17 #rfilter label select{width:100%!important;min-width:0;height:38px!important;flex:none!important;margin:0!important;padding:0 30px 0 10px!important}
  body.s17 #rfilter label>span{margin:0!important;padding:0!important;line-height:1.3;min-height:0}
  body.s17 #rfilter label:nth-child(2){grid-column:1/-1;order:3}
  body.s17 #rfilter label{margin-top:0!important}   /* Stufe E (D2 Nr. 15): "Phase" und "Trade" auf einer Linie (Trade stand 6 px tiefer) */
  body.s17 #rail .rctx{margin-left:10px;margin-right:10px}
  body.s17 #rail .pfseg{margin-left:10px;margin-right:10px}
}
body.s17 .maplibregl-ctrl-group{box-shadow:none!important;border-radius:2px!important;border:1px solid #15171B!important;background:#fff!important}
body.s17 .maplibregl-ctrl-group button{filter:none!important}
body.s17 .maplibregl-ctrl-group button+button{border-top:1px solid #15171B!important}
body.s17 #mlegend{bottom:40px!important}   /* über der Quellenangabe der Karte, die bleibt lesbar */
/* raster_1118 (Stufe C, 18.11.2026, Spec Abschnitt 8): ab 1101 px liegen Akte und Liste neben der Karte statt auf ihr, dann verdeckt nichts
   mehr Ortsnamen. Akte rechts angedockt unter der Leiste, Linie in Tinte; die Karte endet davor. :has() mit Rückfall .hascard (setzt app.js). */
/* Stufe E (Befund D1 Nr. 1 und 2): gilt jetzt ab 641 px, darunter das Handy-Blatt. Akte 400 px breit, zwischen 641 und 1100 px 340 px (--cw);
   app.js richtet den Kartenausschnitt ab 641 px ebenso ohne Rand für die Akte aus */
@media(min-width:641px){
  body.s17 #stage.city{--cw:340px}
  body.s17 #stage.city #card.on{top:52px!important;right:0!important;bottom:0!important;left:auto!important;width:var(--cw)!important;max-height:none!important;border:0!important;border-left:1px solid #15171B!important;transform:none!important}
  body.s17 #stage.city.hascard #map,body.s17 #stage.city:has(#card.on) #map{right:var(--cw)}
  body.s17 #stage.city.rail #map{left:360px}
  body.s17 #stage.city #mlegend{top:64px!important;left:12px!important;right:auto!important;bottom:auto!important}
  body.s17 #stage.city.rail #mlegend{left:372px!important}
  /* Zoom und Quellenangabe an den rechten Rand der Karte (style-v2.css schob sie für die schwebende Akte um 420 px nach links, sie standen mitten in der Karte) */
  body.s17 #stage.city .maplibregl-ctrl-bottom-right{right:0!important}
}
/* Umschalter Map | Connections zwischen 641 und 1100 px: so hoch wie die Leiste (war 356 bis 384 px hoch) und beide Reiter sichtbar (war bei 1100 px nur "Map") */
@media(min-width:641px) and (max-width:1100px){
  body.s17 #stage #tools{height:auto!important;max-height:40px;align-self:flex-start!important;width:auto!important;min-width:238px}
}
@media(min-width:1101px){
  body.s17 #stage.city{--cw:400px}
  /* Umschalter Map | Connections mittig über der verbliebenen Karte (vorher right:440px, bei 1180 px abgeschnitten) */
  body.s17 #stage.city #tools{right:auto!important;width:280px!important;left:calc((100% - 400px) / 2)!important}
  body.s17 #stage.city.rail #tools{left:calc(360px + (100% - 760px) / 2)!important}
}
/* Handy: Reiterleiste List | Map | File fest am unteren Rand, solange die Bühne im Bild ist (vorher bei y 832 halb abgeschnitten) */
@media(max-width:640px){
  body.s17.stage-in #mseg{position:fixed!important;left:0;right:0;bottom:0;height:calc(48px + env(safe-area-inset-bottom));padding-bottom:calc(6px + env(safe-area-inset-bottom))}
  /* Quellenangabe und Zoom der Karte über der Leiste halten (die Bühne reicht am Handy 36 px unter den Bildrand) */
  body.s17.stage-in #stage .maplibregl-ctrl-bottom-right,body.s17.stage-in #stage .maplibregl-ctrl-bottom-left{bottom:calc(88px + env(safe-area-inset-bottom))!important}
}
