/* Vergleich: head-to-head (2 to 4 providers) and the full table */

/* switch (same as start.css, which this page does not load) */
.switch { display: flex; align-items: center; gap: 12px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 46px; height: 26px; border-radius: 13px; background: var(--linie); position: relative; flex: none; transition: background .25s; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .3s var(--ease); }
.switch input:checked + .track { background: var(--rot); }
.switch input:checked + .track::after { transform: translateX(20px); }
.switch input:focus-visible + .track { outline: 3px solid var(--rot); outline-offset: 3px; }

/* ---------- hero: two lanes of light, one line, the picker ---------- */
.vg-hero { padding: clamp(36px, 5vw, 72px) 0 clamp(36px, 4.5vw, 64px); isolation: isolate; }
.vg-photo { position: absolute; top: 0; right: 0; width: 72%; height: 100%; object-fit: cover; object-position: 60% 50%; z-index: -2; opacity: .8; }
.vg-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--nacht) 28%, rgba(11, 31, 51, .55) 62%, rgba(11, 31, 51, .15) 100%); }
.vg-hero .wrap { position: relative; z-index: 10; }
.vg-hero h1 { font-size: clamp(40px, 5.2vw, 76px); max-width: 14ch; }
.vg-hero .lead { margin-top: 18px; color: rgba(255, 255, 255, .86); max-width: 44ch; }
@media (prefers-reduced-motion: no-preference) {
  .vg-photo { animation: vg-drift 2.4s var(--ease) both; }
}
@keyframes vg-drift { from { transform: translateX(4%); opacity: 0; } }

.vg-pick { position: relative; max-width: 560px; margin-top: clamp(24px, 3vw, 36px); }
.pick-box { position: relative; }
.pick-box .ph { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--nebel); pointer-events: none; }
.pick-box .input { padding-left: 50px; height: 60px; }
.dark .pick-box .input { background: rgba(11, 31, 51, .55); }
.pick-box .input:focus { border-color: var(--rot); }
.pick-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 6px; list-style: none; background: #fff; color: var(--tinte);
  border-radius: var(--r); box-shadow: var(--shadow); max-height: min(380px, 60vh); overflow-y: auto; }
.pick-list li { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: var(--r); cursor: pointer; }
.pick-list li img { width: 22px; height: 22px; object-fit: contain; }
.pick-list li[aria-selected="true"] { background: var(--eis); box-shadow: inset 3px 0 0 var(--rot); }
.pick-list .o-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick-list .o-name small { font-weight: 500; color: var(--granit); }
.pick-list .o-zone { font-size: 13px; color: var(--granit); }
.pick-list .o-price { font-size: 18px; }
.pick-list .o-none { display: block; color: var(--granit); cursor: default; }
@media (max-width: 520px) { .pick-list .o-zone { display: none; } .pick-list li { grid-template-columns: 22px 1fr auto; } }

/* ---------- head-to-head ---------- */
.vg-duel { padding: clamp(24px, 3vw, 40px) 0 clamp(64px, 8vw, 112px); }
.duel-top { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.duel-note { margin: 0; color: var(--granit); font-size: 15px; max-width: 70ch; }
.duel-load { height: 520px; }

.duel { --cols: 4; --n: 4; }
.h-row { display: grid; grid-template-columns: minmax(150px, 210px) repeat(var(--n), minmax(0, 1fr)); column-gap: clamp(14px, 2vw, 32px); }
.h-sticky { position: sticky; top: var(--head-h); z-index: 5; background: var(--weiss); }
.h-head { border-bottom: 2px solid var(--tinte); padding: 10px 0; align-items: center; }
.h-prov { display: flex; align-items: center; gap: 12px; min-width: 0; }
.h-who { min-width: 0; display: grid; gap: 2px; }
.h-who a { font-weight: 800; font-stretch: 108%; font-size: 20px; line-height: 1.15; letter-spacing: -.01em; text-decoration: none; overflow-wrap: normal; hyphens: auto; -webkit-hyphens: auto; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h-who a:hover { color: var(--rot); }
.h-who .zone { font-size: 13px; }
.h-x { margin-left: auto; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: var(--r); background: transparent; font-size: 18px; color: var(--granit); }
.h-x:hover { background: rgba(11, 31, 51, .07); color: var(--rot); }
.h-add { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border: 0; border-radius: var(--r); background: transparent; box-shadow: inset 0 0 0 1.5px var(--linie); font-weight: 700; }
.h-add:hover { box-shadow: inset 0 0 0 1.5px var(--tinte); }
.h-pager { display: none; }

.h-group { padding: clamp(28px, 3vw, 44px) 0 8px; }
.h-group h3 { font-size: clamp(20px, 1.7vw, 24px); }
.h-body .h-row { border-top: 1px solid var(--linie); }
.h-body .h-group + .h-row { border-top: 2px solid var(--tinte); }
.h-label { padding: 14px 0; font-weight: 600; font-size: 15px; color: var(--granit); }
.h-cell { display: flex; align-items: flex-start; gap: 8px; padding: 14px 0; min-width: 0; font-size: 16px; }
.h-cell .v { min-width: 0; overflow-wrap: anywhere; }
.h-cell .ph-check { color: var(--gruen); margin-right: 4px; vertical-align: -2px; }
.na { color: var(--granit); font-weight: 400; }

/* the red marker: the better value in a row */
.win-mark { flex: none; display: inline-grid; margin-top: 3px; }
.win-mark .cross { font-size: 16px; }
.win .v { font-weight: 700; }
.win .v-price { color: var(--rot); }
@media (prefers-reduced-motion: no-preference) {
  .win-mark .cross { animation: pop .5s var(--ease) both; }
}
/* rows where all providers are equal step back */
.h-row.same .h-cell, .h-row.same .h-label { opacity: .42; }
.diff-only .h-row.same { display: none; }

.v-price { display: block; font-size: clamp(30px, 2.8vw, 42px); line-height: 1; }
.v-sub { display: block; font-size: 13.5px; font-weight: 400; color: var(--granit); margin-top: 6px; }
.v-rate .stars { font-size: 22px; font-stretch: 68%; }
.v-score { display: grid; grid-template-columns: 34px minmax(0, 120px); align-items: center; gap: 10px; width: 100%; }
.v-score b { font-size: 20px; }
.v-score .bar { display: block; height: 6px; width: var(--w); background: var(--tinte); border-radius: 1px; }
.win .v-score .bar { background: var(--rot); }
.v-list { margin: 0; padding-left: 1.1em; font-size: 15px; line-height: 1.45; }
.v-list li { margin: 0 0 .35em; }
.v-list.pro li::marker { color: var(--rot); }
.v-list.con li::marker { color: var(--grau); }
.h-lists .h-cell { font-weight: 400; }

.h-foot { border-top: 2px solid var(--tinte) !important; }
.h-foot .h-cell { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 0 0; }
.h-foot .btn { white-space: nowrap; }

.duel-empty { border-top: 2px solid var(--tinte); padding: 36px 0 12px; }
.duel-empty-h { font-weight: 800; font-stretch: 110%; font-size: clamp(24px, 2.4vw, 32px); margin: 0 0 8px; }

/* tablets and phones: the label sits above its row */
@media (max-width: 999px) {
  .h-row { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .h-label { grid-column: 1 / -1; padding: 12px 0 0; font-size: 13.5px; }
  .h-head .h-label, .h-foot .h-label { display: none; }
  .h-cell { padding: 6px 0 14px; }
  .h-foot .h-cell { padding-top: 20px; }
}
/* phones: two columns at a time, pager and swipe */
@media (max-width: 759px) {
  .duel { touch-action: pan-y; }
  .h-cell.off { display: none; }
  .h-pager { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; }
  .h-pager .icon-btn:disabled { opacity: .3; cursor: default; }
  .h-dots { display: flex; gap: 6px; }
  .h-dots i { width: 8px; height: 8px; border-radius: 2px; background: var(--linie); }
  .h-dots i.on { background: var(--rot); }
  .h-head { padding-top: 8px; }
  .h-pager { padding-top: 0; }
  .h-pager .icon-btn { height: 36px; }
  .h-prov { gap: 8px; position: relative; padding-right: 28px; }
  .h-prov .logo-tile { width: 30px; height: 30px; }
  .h-prov .logo-tile img { width: 20px; height: 20px; }
  .h-who .zone { display: none; }
  .h-who a { font-size: 15px; overflow-wrap: normal; hyphens: auto; }
  .h-x { position: absolute; right: -4px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; }
  .v-price { font-size: 28px; }
  .h-foot .btn { padding: 0 12px; font-size: 14px; }
}

/* ---------- all providers ---------- */
.all-head { max-width: 900px; margin-bottom: clamp(24px, 3vw, 40px); }
.all-head h2 { font-size: clamp(30px, 3.6vw, 52px); }
.all-head .lead { margin-top: 14px; }
.all-filters { display: grid; gap: 14px; margin-bottom: 24px; }
.f-group { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; align-items: center; }
.f-label { font-weight: 700; font-size: 15px; }
.f-group .row { gap: 8px; }
.chip .zone { gap: 0; }
.chip .c-n { font-stretch: 68%; font-weight: 700; opacity: .65; }
.chip .ph { font-size: 18px; }
.all-count { font-weight: 700; margin: 0 0 6px; }
.all-wrap { width: 100%; }
table.all { width: 100%; border-collapse: collapse; font-size: 16px; }
table.all th { color: var(--tinte); text-align: left; font-weight: 700; font-size: 14px; padding: 10px 14px 10px 0; border-bottom: 2px solid var(--tinte); white-space: nowrap; vertical-align: bottom; }
table.all th button { border: 0; background: none; padding: 0; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
table.all th button:hover, table.all th[aria-sort="ascending"] button, table.all th[aria-sort="descending"] button { color: var(--rot); }
table.all td { padding: 12px 14px 12px 0; border-top: 1px solid var(--linie); vertical-align: middle; }
table.all tbody tr:first-child td { border-top: 0; }
table.all tbody tr { transition: background .2s; }
table.all tbody tr:hover { background: rgba(255, 255, 255, .55); }
table.all tr.in-duel { background: #fff; }
table.all tr.in-duel td:first-child { box-shadow: inset 3px 0 0 var(--rot); }
table.all tr.in-duel .t-name { padding-left: 12px; }
.t-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.t-name .logo-tile { width: 40px; height: 40px; }
.t-name .logo-tile img { width: 26px; height: 26px; }
.t-who { min-width: 0; display: grid; }
.t-who a { font-weight: 800; font-stretch: 108%; font-size: 18px; text-decoration: none; line-height: 1.2; }
.t-who a:hover { color: var(--rot); }
.t-zone { display: none; }
.c-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.c-plan { color: var(--granit); font-size: 15px; }
.c-price { width: 180px; }
.c-price .price { font-size: 24px; line-height: 1.1; white-space: nowrap; }
.t-bar { display: block; height: 4px; width: var(--w); max-width: 140px; background: var(--tinte); border-radius: 1px; margin-top: 4px; }
.t-bar.low { background: var(--rot); }
.c-rate { white-space: nowrap; }
.c-cmp { width: 1%; padding-right: 0 !important; text-align: right; }
.c-cmp .cmp { white-space: nowrap; }
tr.none td { padding: 28px 0; color: var(--granit); }
tr.none .link { border: 0; background-color: transparent; cursor: pointer; padding: 0 0 2px; }
.all-foot { margin-top: 24px; max-width: 80ch; }

@media (max-width: 1100px) { .c-plan { display: none; } }
@media (max-width: 899px) {
  .c-zone, .c-stor, .c-dom { display: none; }
  .t-zone { display: block; }
  .t-zone .zone { font-size: 13px; }
  .f-group { grid-template-columns: 1fr; }
  .f-group .row { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--gut) * -1); padding-right: var(--gut); }
  .f-group .row::-webkit-scrollbar { display: none; }
  .f-group .chip { flex: none; }
}
.th-short { display: none; }
@media (max-width: 640px) {
  table.all { table-layout: fixed; }
  table.all th.c-price { width: 92px; }
  table.all th.c-rate { width: 62px; }
  table.all th.c-cmp { width: 42px; }
  .th-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .th-short { display: inline; color: var(--rot); }
  .t-who a { overflow-wrap: anywhere; }
  table.all th, table.all td { padding-right: 10px; }
  .c-price { width: auto; }
  .c-price .price { font-size: 20px; }
  .t-bar { max-width: 70px; }
  .c-cmp .cmp-label { display: none; }
  .c-cmp .cmp { padding: 6px; }
  .t-name { gap: 10px; }
  .t-name .logo-tile { width: 32px; height: 32px; }
  .t-name .logo-tile img { width: 22px; height: 22px; }
  .t-who a { font-size: 16px; }
  table.all th { font-size: 13px; }
}
