.overview-page .character::after { background-image: url("assets/uebersicht.jpg"); }
#totals { font-variant-numeric: tabular-nums; }
#load-status { margin-top: 24px; }
.overview-grid { display: grid; grid-template-columns: minmax(270px,.87fr) minmax(0,1.63fr); gap: 20px; align-items: start; margin-top: 28px; }
.list-panel, .detail-panel { min-width: 0; border: 2px solid var(--ink); border-radius: 8px; overflow: clip; }
.panel-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; color: white; background: var(--ink); }
.panel-top h2 { font-size: 1.4rem; }
#list-count { font-size: .85rem; font-variant-numeric: tabular-nums; }
.company-search { padding: 12px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
#company-list { max-height: clamp(350px,57vh,640px); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #b7b1b5 var(--soft); }
.company-row { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 9px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.company-row:last-child { border-bottom: 0; }
.company-row input { position: absolute; inline-size: 1px; block-size: 1px; clip-path: inset(50%); }
.company-row:has(:checked) { background: #faeaf0; box-shadow: inset 4px 0 var(--accent); }
.company-row:has(:focus-visible) { outline: 3px solid #aa1443; outline-offset: -3px; }
.row-copy { display: grid; gap: 3px; overflow-wrap: anywhere; }
.row-copy strong { font-size: .95rem; line-height: 1.18; letter-spacing: -.012em; }
.row-town { color: var(--muted); font-size: .8rem; }
#empty-list { padding: 18px; color: var(--muted); }
.detail-head { padding: 14px 19px 13px; }
.detail-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 13px; }
.detail-line h2 { overflow-wrap: anywhere; }
#chosen-address { margin-top: 7px; font-size: 1rem; }
.sent-date { margin-top: 4px; font-size: .82rem; color: var(--muted); }
#company-map { height: clamp(235px,31vh,340px); border-block: 2px solid var(--ink); background: #e8e8e5; isolation: isolate; font-family: inherit; }
#company-map .leaflet-tooltip { width: max-content; max-width: 160px; white-space: normal; font-size: .81rem; line-height: 1.2; font-weight: 700; color: var(--ink); }
.trip { background: var(--soft); padding: 15px 19px 16px; }
.trip h3 { font-size: 1.07rem; letter-spacing: -.025em; }
.modes { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 11px 2px 0 0; }
.travel-button { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 9px; min-height: 48px; padding: 9px 12px; background: white; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); border-radius: 7px; box-shadow: 2px 3px var(--ink); }
.travel-button span { font-size: .9rem; font-weight: 750; }
.travel-button strong { font-size: clamp(1rem,1.45vw,1.28rem); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.trip-note { margin-top: 13px; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.page-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 15px; }
.page-links a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; font-size: .88rem; }
@media (min-width:741px) {
  .overview-grid:has(#details:not([hidden])) .list-panel { align-self: stretch; contain: size; display: flex; flex-direction: column; }
  .overview-grid:has(#details:not([hidden])) #company-list { min-height: 0; max-height: none; }
}
.travel-button:focus-visible { background: #ff91b4; }
@media (hover:hover) {
  .travel-button:hover { background: #ff82ac; box-shadow: 1px 2px var(--ink); }
  .company-row:hover { background: #f7f1f3; }
  .company-row:has(:checked):hover { background: #faeaf0; }
}
@media (max-width:740px) {
  .overview-grid { grid-template-columns: minmax(0,1fr); gap: 16px; margin-top: 20px; }
  #company-list { max-height: 175px; }
  .panel-top { padding: 10px 14px; }
  .company-search { padding: 8px 12px; }
  .company-row { min-height: 47px; padding: 7px 13px; }
  #company-map { height: clamp(235px,32vh,310px); }
  .trip, .detail-head { padding: 13px; }
  .modes { gap: 9px; }
  .travel-button { align-content: center; padding: 8px; }
}
#company-options { min-height: 0; display: flex; flex-direction: column; }
#choose-company {
  width: 100%; padding: 12px 38px 12px 15px; text-align: left; min-height: 48px; color: var(--ink);
  font-size: 1rem; font-weight: 700; border: 0; background: #fff; position: relative; overflow-wrap: anywhere;
}
#choose-company::after { content: ''; position: absolute; right: 17px; top: 37%; width: 8px; height: 8px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
#choose-company[aria-expanded="true"]::after { top: 45%; transform: rotate(225deg); }
@media (max-width: 740px) {
  #company-list { max-height: min(33svh,260px); }
  #company-map { height: clamp(210px,58vw,350px); }
  .travel-button { display: grid; align-content: start; gap: 5px; padding: 11px; }
  .travel-button strong { font-size: 1rem; }
  .page-links a { min-height: 44px; display: inline-flex; align-items: center; }
}
