/* Loader + result list. Measures from reference/flow/desktop/strom-05-results.png:
   blue band ends at 126px, the yellow pill sits at y=94..162. */

/* ---------- header band + search pill ---------- */
.rs-band { background: linear-gradient(to bottom, var(--blue) 0, var(--blue) 42px, transparent 42px); padding-top: 10px; }
.rs-band-empty { height: 42px; padding: 0; }
.rs-pill { min-height: 68px; }
.rs-pill .sp-field { color: var(--text); text-decoration: none; }
.rs-pill .sp-field:hover .sp-value { text-decoration: underline; }
.rs-pill .sp-field + .sp-field { border-left: 0; }
.rs-pill .btn { min-width: 180px; }
.rs-pill .btn .spinner { width: 18px; height: 18px; }
.rs-min { min-width: 0; }
.rs-ellip { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spinner.dark { border-color: rgba(0, 0, 0, .15); border-top-color: var(--action); }

.rs-mpill {
  display: flex; align-items: center; gap: 12px; height: 50px; border: 4px solid var(--yellow); border-radius: 25px;
  background: #fff; padding: 0 16px; color: var(--text); font-size: 17px; text-decoration: none !important;
}
.rs-mtext { flex: 1; min-width: 0; display: flex; justify-content: center; }
.rs-mtext .rs-ellip { min-width: 0; }
.rs-msize { flex: none; white-space: nowrap; }
.rs-sheetform .fg-h { display: none; }
.rs-sheetform .fg { padding-top: 0; }
.rs-mpill .icon { stroke-width: 1.6; }

/* ---------- loader ---------- */
.ld-wrap { padding-top: 20px; }
.ld-card { padding: 24px 24px 28px; }
.ld-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.ld-title { font-size: 24px; font-weight: 600; margin-bottom: 4px; }
.ld-total { display: flex; align-items: center; gap: 16px; margin: 20px 0 18px; }
.ld-total-bar { flex: 1; height: 8px; border-radius: 4px; background: #e8ecf4; overflow: hidden; }
.ld-total-bar span { display: block; height: 100%; width: 0; background: var(--action); transition: width .2s; }
.ld-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.ld-list li { display: grid; grid-template-columns: 110px 1fr 170px; align-items: center; gap: 14px; padding: 9px 0; border-bottom: 1px solid #eee; font-size: 15px; }
.ld-name { font-weight: 600; }
.ld-bar { height: 10px; border-radius: 5px; background: #eef1f6; overflow: hidden; }
.ld-bar span { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 5px; }
.ld-list li.done .ld-bar span { background: var(--action); }
.ld-stat { font-size: 13px; text-align: right; display: inline-flex; align-items: center; justify-content: flex-end; gap: 4px; white-space: nowrap; }
.ld-list li.done .ld-stat { color: var(--text); }
.ld-list li.done .ld-stat .icon { color: var(--green); }
.ld-stat .ld-sep { white-space: pre; }

/* ---------- layout ---------- */
.rs-layout { display: grid; grid-template-columns: 266px 1fr; gap: 32px; margin-top: 20px; align-items: start; }
.rs-side { padding: 0; }
.rs-side-h { padding: 12px 13px; border-bottom: 1px solid var(--border); font-size: 15px; }
#rs-filter { padding: 4px 13px 16px; }
.fg { border: 0; margin: 0; padding: 14px 0 6px; }
.rs-side sup, .rs-main sup, .td-panel sup { line-height: 0; font-size: .68em; }
.fg-h { display: flex; justify-content: space-between; align-items: center; width: 100%; font-weight: 700; font-size: 15px; padding: 0; margin-bottom: 4px; }
.fg .check { font-size: 15px; padding: 5px 0; }
.fg .check .muted { font-size: 13px; }
.rs-reset { font-size: 14px; margin-top: 8px; }

/* reference card */
.rs-base { padding: 16px 16px 14px; }
.rb-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.rb-head .pill .info-i { color: var(--text); }
.rb-edit { background: none; border: 0; padding: 4px; color: var(--text); }
.rb-edit .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.rb-grid { display: grid; grid-template-columns: 290px 1fr 180px; gap: 20px; align-items: start; font-size: 15px; }
.rb-grid b { font-weight: 600; }
.rb-c1 > div { margin-top: 6px; }
.rb-c2 .dot { margin: 0 6px; }
.rb-digest { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.rb-digest code { font-family: var(--mono); font-size: 13px; background: #f4f4f4; border-radius: 4px; padding: 3px 8px; word-break: break-all; }
.rb-c3 { text-align: right; }

.rs-summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 18px 0 16px; font-size: 17px; }
.rs-summary b { font-weight: 600; }
.rs-hidden { font-size: 14px; }
.rs-sort { position: relative; display: flex; align-items: center; gap: 6px; flex: none; }
.rs-sortbtn { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; border: 1px solid var(--border); border-radius: 18px; background: #fff; font-size: 13px; }
.rs-sortmenu { position: absolute; right: 24px; top: 40px; z-index: 10; list-style: none; margin: 0; padding: 4px 0; background: #fff; border: 1px solid var(--border); border-radius: 6px; box-shadow: var(--shadow-pop); min-width: 206px; }
.rs-sortmenu li { padding: 10px 12px; font-size: 13px; cursor: pointer; }
.rs-sortmenu li:hover { background: #f2f5fb; }

/* ---------- offer card ---------- */
.rs-list { display: flex; flex-direction: column; gap: 16px; }
.offer { padding: 16px 16px 14px; }
.offer.is-broken { border-color: #f0c7cb; }
.of-top { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; min-height: 28px; }
.of-top .pill { font-size: 15px; }
.of-top .pill .info-i { color: inherit; }
.of-grid { display: grid; grid-template-columns: 250px 1fr 270px; gap: 20px; margin-top: 12px; }
.of-logo { height: 52px; display: flex; align-items: center; }
.of-product { font-weight: 600; font-size: 15px; margin-top: 10px; }
.of-tagline { font-size: 14px; margin-top: 2px; }
.of-rating { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 14px; font-size: 15px; }
.of-stars { display: inline-flex; align-items: center; gap: 4px; }
.of-stars b { font-weight: 600; }
.icon.star-full { fill: var(--text); stroke: var(--text); }
.of-details { font-size: 15px; margin-top: 14px; }
.of-attrs { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.of-attrs li { display: flex; align-items: center; gap: 8px; }
.of-attrs li b { font-weight: 600; }
.of-attrs li.bad .icon:first-child { color: var(--red); }
.of-attrs li.good .icon:first-child { color: var(--green); }
.of-kv { border-collapse: collapse; margin-top: 22px; font-size: 15px; }
.of-kv th { font-weight: 400; text-align: left; padding: 3px 24px 3px 0; vertical-align: top; white-space: nowrap; }
.of-kv td { padding: 3px 0; }
.of-kv td b { font-weight: 600; }
.of-c3 { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.of-price { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.of-amount { font-size: 30px; line-height: 1.1; }
.of-saving { font-size: 15px; margin-top: 4px; white-space: nowrap; }
.of-saving b { font-weight: 600; }
.of-flame { display: flex; align-items: center; gap: 6px; font-size: 15px; margin-top: auto; padding-top: 18px; min-height: 18px; }
.of-flame .icon { color: #f97316; fill: #fdba74; }
.of-weiter { width: 216px; margin-top: 8px; }
.of-links { display: flex; gap: 16px; margin-top: 10px; font-size: 15px; }
.of-digest { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #eee; font-size: 14px; }
.of-dlabel { flex: none; color: var(--muted); }
.of-dval { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; word-break: break-all; }
.of-digest .copy-btn { flex: none; }
.rs-none { padding: 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.rs-note { font-size: 13px; margin-top: 24px; }
.rs-empty { padding: 48px 0 24px; }

/* ---------- provider logos (js/art/logos.js) ---------- */
.algo-logo { display: inline-flex; align-items: center; gap: .3em; font-size: 26px; line-height: 1; white-space: nowrap; }
.algo-logo .al-mark { width: 1.36em; height: 1.36em; flex: none; overflow: visible; }
.algo-logo .al-word { font-weight: 800; letter-spacing: -.035em; }
.algo-logo .al-suf { font-weight: 500; letter-spacing: -.02em; }
.algo-logo.sm { font-size: 19px; }
.algo-logo.lg { font-size: 40px; gap: .28em; }
@media (max-width: 767px) { .algo-logo { font-size: 24px; } .algo-logo.lg { font-size: 30px; } }

/* ---------- modal: Tarifdetails ---------- */
.td-panel { padding: 8px 16px 0; }
.td-panel h3 { font-size: 19px; font-weight: 500; margin: 22px 0 10px; }
.td-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.td-rows li { display: flex; gap: 8px; align-items: flex-start; }
.td-rows li .icon { margin-top: 1px; }
.td-rows b { font-weight: 600; }
.td-rows .muted { font-size: 14px; }
.td-rows li.bad > .icon { color: var(--red); }
.td-rows li.good > .icon { color: var(--green); }
.td-sum { margin-top: 22px; }
.td-attacks { list-style: none; margin: 0; padding: 0; font-size: 15px; }
.td-attacks li { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid #eee; }
.td-attacks a { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.td-year { font-weight: 700; width: 44px; flex: none; }
.rs-basegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 12px; }

/* ---------- mobile ---------- */
@media (max-width: 767px) {
  .rs-band { background: linear-gradient(to bottom, var(--blue) 0, var(--blue) 35px, transparent 35px); padding-top: 10px; }
  .rs-mchips { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 12px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); }
  .rs-mchips::-webkit-scrollbar { display: none; }
  .rs-chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; flex: none; padding: 0 12px; border: 1px solid #8a8a8a; border-radius: 16px; background: #fff; font-size: 15px; }
  .rs-chip.on { border-color: var(--action); color: var(--action); }
  .rs-chip .icon { stroke-width: 1.6; }
  .rs-layout { display: block; margin-top: 18px; }
  .rs-base { padding: 14px 10px; border-radius: 10px; }
  .rb-head .pill { font-size: 14px; white-space: normal; height: auto; min-height: 24px; padding: 2px 8px; }
  .rb-grid { grid-template-columns: 1fr; gap: 12px; }
  .rb-c3 { text-align: right; }
  .rs-summary { justify-content: center; text-align: center; margin: 20px calc(-1 * var(--pad)) 0; padding: 0 var(--pad) 18px; border-bottom: 1px solid #dcdcdc; }
  .rs-list { gap: 0; margin: 0 calc(-1 * var(--pad)); }
  .offer { border: 0; border-radius: 0; border-bottom: 8px solid #f2f2f2; padding: 18px var(--pad) 20px; }
  .offer.is-broken { border-color: #f2f2f2; }
  .of-top { justify-content: space-between; }
  .of-flame { padding-top: 0; margin-top: 0; font-size: 14px; }
  .of-grid { grid-template-columns: 1fr; gap: 14px; }
  .of-rating { flex-direction: row; align-items: center; gap: 8px; }
  .of-kv { margin-top: 12px; }
  .of-kv th { padding-right: 16px; }
  .of-c3 { align-items: stretch; }
  .of-price { justify-content: flex-end; }
  .of-saving { text-align: right; }
  .of-weiter { width: 100%; height: 44px; margin-top: 14px; }
  .of-links { justify-content: space-between; }
  .of-digest { flex-wrap: wrap; }
  .of-dlabel { flex-basis: 100%; }
  .ld-head { flex-direction: column; }
  .ld-card { padding: 18px 14px; }
  .ld-title { font-size: 20px; }
  .ld-list { grid-template-columns: 1fr; }
  .ld-list li { grid-template-columns: 96px 1fr 120px; gap: 10px; }
  .ld-stat { font-size: 12px; min-width: 0; }
  /* phones: speed and time on two lines so they never run into the bar */
  .ld-list li.done .ld-stat { display: grid; grid-template-columns: auto auto; justify-content: end; column-gap: 4px; line-height: 1.25; }
  .ld-list li.done .ld-stat .icon { grid-row: span 2; align-self: center; }
  .ld-list li.done .ld-stat .ld-sep { display: none; }
  .ld-list li.done .ld-stat .ld-time { grid-column: 2; text-align: right; color: var(--muted); }
  .rs-basegrid { grid-template-columns: 1fr 1fr; }
  .td-panel { padding: 8px 4px 0; }
}

/* loader spot illustration */
.ld-head .spot { flex: none; margin-right: 4px; }
.ld-head-text { flex: 1; min-width: 0; }
@media (max-width: 767px) { .ld-head .spot { display: none; } }
