:root {
  --paper: #f3f3f3;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --line: #1a1a1a;
  --green: #3f7a3a;
  --green-soft: #e8f0e6;
  --viewer: #5c5c5c;
  --viewer-soft: #ebebeb;
  --bar-track: #d8d8d8;
  --panel: #f3f3f3;
  --dash: #969696;
  --radius: 0;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 3.5rem;
}

/* —— Header —— */
.site-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.5rem;
}
.brand { min-width: 0; }
.brand h1 {
  margin: 0;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.1;
}
.brand .tagline {
  margin: .35rem 0 0;
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1rem;
  font-size: .78rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
}
.site-nav a { color: var(--ink); text-decoration: none; }
.site-nav a:hover { color: var(--green); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--green);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin: 0 0 .5rem;
}
.kicker::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.hero {
  margin-bottom: 1.25rem;
  max-width: 40rem;
}
.hero h1, .hero-banner h1 {
  margin: 0 0 .55rem;
  font-size: clamp(1.7rem, 5vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.hero p, .hero-banner p {
  margin: 0;
  color: var(--muted);
  font-size: .98rem;
  max-width: 36rem;
}
.hero-banner {
  background: none;
  border: none;
  box-shadow: none;
  min-height: 0;
  border-radius: 0;
  display: block;
  text-align: left;
}
.hero-banner-copy { padding: 0; max-width: none; }

.meta-line {
  margin: .75rem 0 0;
  font-size: .78rem;
  letter-spacing: .01em;
  text-transform: none;
  color: var(--muted);
  font-weight: 600;
}

/* —— Panels —— */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}
.panel h2 {
  margin: 0 0 .85rem;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 800;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1rem;
  align-items: end;
  justify-content: space-between;
}
.field { display: flex; flex-direction: column; gap: .3rem; flex: 1 1 220px; }
.field label {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
/* Custom Gerät-Dropdown (native <select> cannot style options) */
.device-dd {
  position: relative;
  width: 100%;
}
.device-dd-btn {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  width: 100%;
  text-align: left;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .65rem 2rem .65rem .8rem;
  font: inherit;
  font-weight: 400;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 11px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.device-dd-btn:focus {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.device-dd-btn[aria-expanded="true"] {
  border-color: var(--green);
}
.device-dd-value {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.device-dd-value strong { font-weight: 700; }
.device-dd-value .stromlos-tag {
  color: var(--muted);
  font-weight: 600;
  font-size: .78em;
  letter-spacing: .04em;
}
.device-dd-btn.has-own .device-dd-value {
  color: var(--green);
  font-weight: 700;
}
.device-dd-btn.has-viewer .device-dd-value {
  color: var(--viewer);
  font-weight: 700;
}
.device-dd-btn.has-own,
.device-dd-btn.has-viewer {
  font-weight: 700;
}
.device-dd-btn.has-own {
  background-color: #c8e0c4;
  box-shadow: inset 5px 0 0 var(--green);
}
.device-dd-btn.has-viewer {
  background-color: #d1d1d1;
  box-shadow: inset 5px 0 0 var(--viewer);
}
.device-dd-btn .mark-badge {
  flex: 0 0 auto;
  margin-left: .35rem;
  margin-right: .15rem;
  padding: .08rem .4rem;
  border: 1px solid currentColor;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.device-dd-btn.has-own .device-dd-value,
.device-dd-btn.has-viewer .device-dd-value {
  font-weight: 800;
}
.device-dd-btn.has-own .device-dd-value strong,
.device-dd-btn.has-viewer .device-dd-value strong {
  font-weight: 800;
}

.device-dd-list {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 2px);
  max-height: min(22rem, 60vh);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
  padding: .25rem 0;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(26, 26, 26, .08);
}
.device-dd-list[hidden] { display: none !important; }
.device-dd-list .letter-sep {
  margin: .35rem .8rem .15rem;
  padding: .2rem 0 0;
  border-top: 1px solid #d8d8d8;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  pointer-events: none;
}
.device-dd-list .letter-sep:first-child {
  border-top: none;
  margin-top: .1rem;
}
.device-dd-option {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  width: 100%;
  padding: .45rem .8rem;
  border: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
}
.device-dd-option .name { min-width: 0; }
.device-dd-option .name strong { font-weight: 700; }
.device-dd-option .stromlos-tag {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: none;
}
.device-dd-option:hover,
.device-dd-option.is-active {
  background: rgba(26, 26, 26, .04);
}
.device-dd-option[aria-selected="true"] {
  background: rgba(26, 26, 26, .06);
}
.device-dd-option.has-own {
  color: var(--green);
  font-weight: 700;
  box-shadow: inset 5px 0 0 var(--green);
  background: #c8e0c4;
}
.device-dd-option.has-own .name,
.device-dd-option.has-own .name strong {
  font-weight: 800;
}
.device-dd-option.has-own:hover,
.device-dd-option.has-own.is-active,
.device-dd-option.has-own[aria-selected="true"] {
  background: #b4d4af;
}
.device-dd-option.has-viewer {
  color: var(--viewer);
  font-weight: 700;
  box-shadow: inset 5px 0 0 var(--viewer);
  background: #d1d1d1;
}
.device-dd-option.has-viewer .name,
.device-dd-option.has-viewer .name strong {
  font-weight: 800;
}
.device-dd-option.has-viewer:hover,
.device-dd-option.has-viewer.is-active,
.device-dd-option.has-viewer[aria-selected="true"] {
  background: #c1c1c1;
}
.device-dd-option .mark-badge {
  flex: 0 0 auto;
  margin-left: auto;
  padding: .08rem .4rem;
  border: 1px solid currentColor;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.device-dd-option.has-own .stromlos-tag,
.device-dd-option.has-viewer .stromlos-tag {
  color: inherit;
  opacity: .75;
}

.device-dd-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin: .35rem 0 0;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.device-dd-legend span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: .35rem;
  vertical-align: -1px;
  border: 1px solid transparent;
}
.device-dd-legend .lg-own::before {
  background: #c8e0c4;
  border-color: var(--green);
  box-shadow: inset 3px 0 0 var(--green);
}
.device-dd-legend .lg-view::before {
  background: #d1d1d1;
  border-color: var(--viewer);
  box-shadow: inset 3px 0 0 var(--viewer);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-top: .15rem;
}
.filter-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .7rem;
  cursor: pointer;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  color: var(--paper);
}
.filter-btn.active { background: var(--green); border-color: var(--green); color: #fff; }

.links { display: flex; flex-wrap: wrap; gap: .45rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  text-decoration: none;
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 0;
  padding: .6rem .95rem;
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  box-shadow: none;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn.video { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.disabled,
a.btn.disabled {
  background: #e0e0e0;
  border-color: #c4c4c4;
  color: #969696;
  pointer-events: none;
  cursor: not-allowed;
}

/* —— Layout: compare + top5 —— */
.layout-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}
.layout-main > .panel { margin-bottom: 0; }
.side-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; max-width: 100%; }
.side-col .panel {
  margin-bottom: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.dev-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .85rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--line);
}
.nav-btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .45rem .85rem;
  font: inherit;
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .04em;
  cursor: pointer;
}
.nav-btn:hover { background: var(--ink); color: var(--paper); }
.nav-pos {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted);
  text-transform: uppercase;
}

.device-shot {
  text-align: center;
  padding: .5rem 0 .25rem;
  border: 1px solid var(--line);
  margin-bottom: .85rem;
  background: #fff;
}
.device-shot[hidden] { display: none !important; }
.device-shot img {
  max-width: min(260px, 70vw);
  max-height: 200px;
  object-fit: contain;
  padding: .75rem;
  display: block;
  margin: 0 auto;
}
.device-name {
  margin: 0 0 .35rem;
  font-size: clamp(1.2rem, 3.5vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.02em;
}
.device-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .75rem;
}
.badge {
  display: inline-block;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: .2rem .45rem;
  color: var(--ink);
}
.badge.akkulos {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.scores {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0 0 1rem;
  border: 1px solid var(--line);
}
.score-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: .95rem 1rem;
  text-align: left;
}
.score-card + .score-card { border-left: 1px solid var(--line); }
.score-card .label {
  color: var(--ink);
  font-size: clamp(1.25rem, 3.2vw, 1.6rem);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
}
.score-card .who {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 600;
  margin: .15rem 0 .55rem;
}
.score-card .untested-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .2rem .6rem;
  align-items: center;
  margin-top: .35rem;
  padding: .75rem .9rem;
  border: 2px solid #b5523b;
  border-radius: 6px;
  background: rgba(127,127,127,.08);
  color: var(--ink);
}
.score-card .untested-icon { font-size: 1.9rem; line-height: 1; color: #b5523b; grid-row: span 2; }
.score-card .untested-main { font-size: clamp(1.4rem, 3.6vw, 2rem); font-weight: 800; line-height: 1.1; }
.score-card .untested-hint { font-size: .9rem; color: var(--muted); font-weight: 600; }
.score-card.is-empty { background: rgba(127,127,127,.12); }
.score-card.is-empty .label, .score-card.is-empty .who { opacity: .7; }
.score-card .value {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  margin-top: .25rem;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.score-card .value .out-of {
  font-size: .45em;
  font-weight: 700;
  color: var(--ink);
  margin-left: .1em;
}
.score-card .sub {
  color: var(--muted);
  font-size: .78rem;
  margin-top: .35rem;
}

.table-wrap { overflow-x: auto; }
table.cmp {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
table.cmp th, table.cmp td {
  padding: .55rem 0;
  border-bottom: 1px solid #d8d8d8;
  vertical-align: middle;
}
table.cmp th {
  text-align: left;
  color: var(--muted);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: .5rem;
}
table.cmp th:nth-child(3),
table.cmp th:nth-child(4) {
  text-align: right;
  width: 3.2rem;
}
table.cmp td.crit {
  color: var(--ink);
  font-weight: 600;
  font-size: .88rem;
  padding-right: .75rem;
}
table.cmp td.bars {
  width: 42%;
  min-width: 110px;
}
.bar-pair { display: grid; gap: 4px; }
.bar-row {
  display: block;
}
.bar-track {
  height: 4px;
  background: var(--bar-track);
  position: relative;
}
.bar-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  background: var(--green);
  max-width: 100%;
}
.bar-fill.viewer {
  /* same hue via inline background; lighten + hatch so Z stays distinct from G */
  opacity: .72;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, .45) 2px,
    rgba(255, 255, 255, .45) 4px
  );
}
.bar-row .n {
  font-size: .72rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--muted);
}
.bar-row.g .n { color: var(--green); }
.bar-row.v .n { color: var(--ink); }
table.cmp td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  width: 3.2rem;
  font-size: .85rem;
}
table.cmp td.num.gmiadlich { color: var(--green); }
table.cmp td.num.viewer { color: var(--muted); }
table.cmp tr.total {
  background: transparent;
}
table.cmp tr.total td {
  border-bottom: none;
  border-top: 1px solid var(--line);
  padding-top: .75rem;
  padding-bottom: .35rem;
  font-size: .95rem;
  font-weight: 800;
}
.cmp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin: .65rem 0 0;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.cmp-legend span::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 4px;
  margin-right: .35rem;
  vertical-align: middle;
  background: var(--green);
}
.cmp-legend .lg-g::before {
  background: linear-gradient(90deg, #b04a3e 0%, #8f8f8f 50%, #24589a 100%);
}
.cmp-legend .lg-v::before {
  background-image:
    repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(255,255,255,.45) 2px, rgba(255,255,255,.45) 4px),
    linear-gradient(90deg, #b04a3e 0%, #8f8f8f 50%, #24589a 100%);
  opacity: .85;
}
.cmp-legend .lg-scale {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  letter-spacing: .04em;
  text-transform: none;
  font-weight: 600;
  color: var(--muted);
}
.cmp-legend .lg-scale .scale-bar {
  display: inline-block;
  width: 72px;
  height: 6px;
  vertical-align: middle;
  background: linear-gradient(90deg, #b04a3e 0%, #8f8f8f 50%, #24589a 100%);
  border: 1px solid rgba(0,0,0,.12);
}
.cmp-legend .lg-scale .scale-ends {
  font-variant-numeric: tabular-nums;
  font-size: .65rem;
  letter-spacing: 0;
}

.score-note {
  margin: .75rem 0 0;
  font-size: .75rem;
  color: var(--muted);
  line-height: 1.4;
}

/* —— Top 5 —— */
.top5-mode {
  display: flex;
  gap: 0;
  margin: 0 0 .65rem;
  border: 1px solid var(--line);
  background: #fff;
}
.top5-mode-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: .4rem .5rem;
  font: inherit;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
}
.top5-mode-btn + .top5-mode-btn {
  border-left: 1px solid var(--line);
}
.top5-mode-btn.active {
  background: var(--green);
  color: #fff;
}
.top5-mode-btn:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -2px;
}
.top5-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem;
  margin-bottom: .65rem;
}
.top5-head h2 { margin: 0; }
.top5-head a {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--green);
  white-space: nowrap;
}
.top5 {
  overflow: hidden;
  min-width: 0;
}
/* Shared grid for Top-5 header + rows (fixed Score / PL columns) */
.top5-cols,
.top-item {
  display: grid;
  grid-template-columns: 1.05rem 34px minmax(0, 1fr) 40px 52px;
  column-gap: .4rem;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.top5-cols {
  padding: .2rem 0 .35rem;
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--muted);
  align-items: end;
}
.top5-cols-lead { grid-column: 1 / 4; min-width: 0; }
.top5-h-sc,
.top5-h-pl {
  text-align: center;
  line-height: 1.15;
  justify-self: stretch;
}
.top5-h-sc { grid-column: 4; }
.top5-h-pl { grid-column: 5; }
.top5-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  min-width: 0;
  overflow: hidden;
}
.top5-list li {
  border-bottom: 1px solid #d8d8d8;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.top5-list .empty {
  opacity: .55;
  padding: .55rem 0;
  font-size: .85rem;
  color: var(--muted);
}
.top-item {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: .45rem 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}
.top-item:hover .name .model,
.top-item:hover .name strong { color: var(--green); }
.top-item .rank {
  grid-column: 1;
  font-weight: 800;
  font-size: .95rem;
  color: var(--ink);
  text-align: center;
  min-width: 0;
}
.top-item .thumb {
  grid-column: 2;
  width: 34px;
  height: 34px;
  justify-self: center;
}
.top-item .top-mid {
  grid-column: 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: .08rem;
  overflow: hidden;
}
.top-item .name {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  font-weight: 400;
  line-height: 1.15;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}
.top-item .name .brand {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--muted);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
}
.top-item .name .model,
.top-item .name strong {
  font-size: .82rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.top-item .top-meta {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.top-item .top-meta:empty { display: none; }
.top-item .sc {
  grid-column: 4;
  font-weight: 800;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  font-size: .88rem;
  text-align: center;
  justify-self: stretch;
  min-width: 0;
}
.top-pl-pill {
  grid-column: 5;
  justify-self: center;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  font-size: .75rem;
  line-height: 1;
  padding: .28rem .3rem;
  border-radius: 999px;
  background: #e5f2e3;
  color: #2f6b2c;
  border: 1px solid #c5dfc1;
}
.top-pl-pill.empty {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  font-weight: 600;
}
.top-item .sc.sc-tip {
  color: #fff;
  background: var(--green);
  border: 1px solid var(--green);
  padding: .1rem .35rem;
  font-size: .65rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.top-item .sc.sc-stars {
  color: #5a5a5a;
  font-size: .78rem;
}
.thumb {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: #fff;
  border: 1px solid #d8d8d8;
  flex: 0 0 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.thumb:empty { background: #eaeaea; }
.thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.top5-note {
  margin: .65rem 0 0;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.35;
  padding-top: .5rem;
  border-top: 1px solid #d8d8d8;
}

/* —— Overview —— */
.overview h2 {
  margin: 0 0 .35rem;
}
.hint {
  color: var(--muted);
  font-size: .85rem;
  margin: .2rem 0 .85rem;
}
.overview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .6rem;
}
.dev-card {
  width: 100%;
  display: flex;
  gap: .7rem;
  align-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .55rem;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
.dev-card:hover { border-color: var(--green); }
.dev-card.active {
  border-color: var(--green);
  box-shadow: inset 3px 0 0 var(--green);
  background: var(--green-soft);
}
.dev-card.untested { opacity: .85; background: rgba(0,0,0,.025); border-style: dashed; }
.dev-card .info { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.dev-card .name { font-weight: 700; font-size: .9rem; }
.pills { display: flex; flex-wrap: wrap; gap: .25rem; }
.pill {
  font-size: .68rem;
  border-radius: 0;
  padding: .12rem .4rem;
  border: 1px solid #d8d8d8;
  background: transparent;
  font-weight: 600;
  color: var(--muted);
}
.pill.g { color: var(--green); border-color: var(--green); }
.pill.v { color: var(--ink); }
.pill.akkulos {
  color: var(--green);
  border-color: var(--green);
  background: var(--green-soft);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .62rem;
  font-weight: 800;
}

/* —— Rules / bewerten —— */
.rule-list {
  margin: .5rem 0 1rem;
  padding-left: 1.15rem;
  display: grid;
  gap: .65rem;
  line-height: 1.45;
}
.confirm {
  display: flex;
  gap: .65rem;
  align-items: flex-start;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: .85rem;
  margin: 1rem 0;
  cursor: pointer;
  font-weight: 600;
}
.confirm input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--green);
  margin-top: .1rem;
}

/* —— Footer / loader / toast —— */
.footer {
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  justify-content: space-between;
}
.footer p { margin: 0; max-width: 40rem; }

#loader {
  position: fixed;
  inset: 0;
  background: rgba(243, 243, 243, .92);
  display: grid;
  place-items: center;
  z-index: 50;
  transition: opacity .25s ease;
}
#loader.hidden { opacity: 0; pointer-events: none; }
.loader-card {
  width: min(360px, calc(100% - 2rem));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 1.25rem;
  text-align: left;
  box-shadow: none;
}
.bar {
  height: 4px;
  border-radius: 0;
  background: var(--bar-track);
  overflow: hidden;
  margin: .9rem 0 .5rem;
}
.bar > span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width .2s ease;
}
#loader-status { color: var(--muted); font-size: .85rem; margin: 0; }

.toast {
  margin: 0 0 1rem;
  padding: .65rem .8rem;
  border-radius: 0;
  background: #f4f6f4;
  border: 1px solid #b9c2b9;
  color: var(--ink);
  font-size: .88rem;
}
.toast.ok {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--ink);
}

@media (max-width: 820px) {
  .layout-main { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .scores { grid-template-columns: 1fr; }
  .score-card + .score-card { border-left: none; border-top: 1px solid var(--line); }
  table.cmp td.num { width: 2.6rem; }
  .wrap { width: calc(100% - 1.25rem); padding-top: 1rem; }
  .panel { padding: .85rem; }
  .site-header { flex-direction: column; align-items: flex-start; }
  .site-nav { gap: .5rem .85rem; }
  .overview-list { grid-template-columns: 1fr; }
}

#overview-list .letter-sep{grid-column:1/-1;list-style:none;border-top:1px solid rgba(0,0,0,.25);margin:10px 0 2px;padding-top:4px;font-size:12px;font-weight:700;letter-spacing:.12em;color:#3f7a3a}
#overview-list .letter-sep:first-child{border-top:none;margin-top:0}

.dev-card .name,.top-item .name{font-weight:400}
.dev-card .name strong,.top-item .name strong{font-weight:800}
#device-name{font-weight:400}
#device-name strong{font-weight:800}


/* —— Referenzen / Bestenliste —— */
.referenzen h2 {
  margin: 0 0 .35rem;
}
.referenzen .hint {
  margin: 0 0 1rem;
  color: var(--muted, #666);
  font-size: .92rem;
  max-width: 42rem;
}
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.refs {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
}
table.refs th,
table.refs td {
  text-align: left;
  padding: .65rem .75rem;
  border-bottom: 1px solid var(--line, #e5e5e5);
  vertical-align: top;
}
table.refs thead th {
  font-weight: 700;
  letter-spacing: .02em;
  font-size: .78rem;
  text-transform: uppercase;
  color: var(--muted, #666);
  border-bottom: 2px solid var(--ink, #111);
}
table.refs td.crit {
  font-weight: 600;
  width: 42%;
}
table.refs td.ref-device {
  width: 28%;
  font-weight: 400;
}
table.refs td.ref-device.has-ref {
  font-weight: 400;
}
table.refs td.ref-device.has-ref strong {
  font-weight: 800;
}
table.refs .ref-open {
  color: var(--muted, #888);
  font-style: italic;
  font-weight: 400;
}
table.refs th:nth-child(3),
table.refs td.ref-note {
  display: none;
}
table.refs td.ref-note-legacy {
  color: var(--muted, #555);
  font-size: .9rem;
}
table.refs tbody tr:hover td {
  background: rgba(0,0,0,.02);
}
@media (max-width: 640px) {
  table.refs td.crit { width: 55%; }
  table.refs td.ref-device { width: 45%; }
}


/* —— Legal / Impressum —— */
.legal-block h2 {
  margin: 1.25rem 0 .4rem;
  font-size: .95rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.legal-block h2:first-child { margin-top: 0; }
.legal-block p {
  margin: 0 0 .75rem;
  color: var(--ink);
  max-width: 40rem;
}


/* —— Preis-Leistung —— */
.badge.preistipp,
.pill.preistipp {
  border-color: var(--green);
  color: #fff;
  background: var(--green);
  letter-spacing: .08em;
}
.badge.pl-stars,
.pill.pl-stars {
  letter-spacing: .02em;
  font-size: .72rem;
  color: #5a5a5a;
  border-color: #b0304a;
  background: #f8f1d8;
}
.badge.price,
.pill.price {
  color: var(--muted);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: none;
}
.preis-leistung .pl-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .75rem;
  margin: 0 0 .85rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.preis-leistung .pl-class {
  border: 1.5px solid currentColor;
  padding: .2rem .55rem;
  border-radius: 0;
  background: transparent;
}
.preis-leistung .pl-class.pl-lt100,
.badge.class-best.pc-lt100,
.pill.class-best.pc-lt100 { color: #1d6a8a; border-color: #1d6a8a; background: rgba(29,106,138,.1); }
.preis-leistung .pl-class.pl-mid,
.badge.class-best.pc-mid,
.pill.class-best.pc-mid { color: #6b3a6b; border-color: #6b3a6b; background: rgba(107,58,107,.1); }
.preis-leistung .pl-class.pl-gt200,
.badge.class-best.pc-gt200,
.pill.class-best.pc-gt200 { color: #9a2238; border-color: #b0304a; background: rgba(176,48,74,.12); }

.badge.class-best,
.pill.class-best {
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: none;
}

.pill.dein-wert {
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 800;
}

/* Zuschauer-Gewichtung (Übersicht) */
.weight-slider {
  margin: .65rem 0 1rem;
  padding: .75rem .85rem;
  border: 1px solid var(--line);
  background: #f8f8f8;
}
.weight-slider-labels {
  display: flex;
  justify-content: space-between;
  gap: .75rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: .45rem;
  line-height: 1.25;
}
.weight-slider-labels .w-left { text-align: left; max-width: 46%; }
.weight-slider-labels .w-right { text-align: right; max-width: 46%; }
.weight-slider input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 2.25rem;
  background: transparent;
  margin: 0;
  cursor: pointer;
}
.weight-slider input[type="range"]::-webkit-slider-runnable-track {
  height: .35rem;
  background: linear-gradient(90deg, #d8d8d8 0%, #c9dcc4 100%);
  border-radius: 0;
}
.weight-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: -.5rem;
  background: var(--green);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--green);
}
.weight-slider input[type="range"]::-moz-range-track {
  height: .35rem;
  background: linear-gradient(90deg, #d8d8d8 0%, #c9dcc4 100%);
  border: none;
}
.weight-slider input[type="range"]::-moz-range-thumb {
  width: 1.35rem;
  height: 1.35rem;
  background: var(--green);
  border: 2px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--green);
}
.weight-slider-readout {
  margin: .35rem 0 0;
  font-size: .78rem;
  font-weight: 700;
  color: var(--ink);
}
@media (max-width: 640px) {
  .weight-slider { padding: .65rem .7rem; }
  .weight-slider-labels { font-size: .68rem; }
  .weight-slider input[type="range"] { height: 2.5rem; }
}
.scatter-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  background: #f8f8f8;
  -webkit-overflow-scrolling: touch;
}
.scatter-chart {
  display: block;
  width: 100%;
  height: auto;
  min-height: 240px;
  max-height: 420px;
}
@media (max-width: 640px) {
  .scatter-chart { min-height: 220px; }
}

.scatter-pt {
  cursor: pointer;
  outline: none;
}
.scatter-pt:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.scatter-pt.is-muted {
  /* still clickable – muted is only visual */
}
.scatter-pt.is-selected text {
  paint-order: stroke;
  stroke: #f8f8f8;
  stroke-width: 3px;
  stroke-linejoin: round;
}


/* —— Preis-Leistung (kein Münzen-UI mehr) —— */
.badge.pl-value {
  background: #e5f2e3;
  color: #2f6b2c;
  border: 1px solid #c5dfc1;
  font-weight: 800;
}
.device-pl,
.top-pl-coin,
.pl-coin { display: none !important; }
.picker-brand { font-size: .78em; font-weight: 400; color: var(--muted); }

/* Öffentlicher Kommentar + dezenter Bearbeiten-Link */
.device-comment { margin: 10px 0 4px; font-size: 0.92rem; line-height: 1.45; white-space: pre-line; opacity: 0.9; border-left: 3px solid currentColor; padding-left: 10px; }
.device-comment[hidden], .edit-link[hidden] { display: none; }
.edit-link-wrap { margin: 8px 0 0; text-align: right; }
.edit-link { font-size: 0.78rem; opacity: 0.55; color: inherit; text-decoration: underline dotted; }
.edit-link:hover, .edit-link:focus { opacity: 1; }

/* Regler-Symbole: links Geldbündel, rechts wenige Münzen */
.weight-slider-labels .w-left, .weight-slider-labels .w-right { display: flex; flex-direction: column; gap: .25rem; }
.weight-slider-labels .w-left { align-items: flex-start; }
.weight-slider-labels .w-right { align-items: flex-end; }
.weight-slider-labels .w-icon { display: block; width: 44px; height: 34px; flex: none; }
@media (max-width: 520px) { .weight-slider-labels .w-icon { width: 40px; height: 31px; } }

/* Sticky Geräteauswahl + Bearbeiten als Button */
.edit-link { font-size: inherit; opacity: 1; text-decoration: none; }
.btn.edit-link[hidden] { display: none; }
.toolbar { position: sticky; top: 0; z-index: 50; background: var(--panel, #fff); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
section, #compare-panel { scroll-margin-top: 230px; }
@media (max-width: 640px) {
  .toolbar { padding: .5rem .6rem; gap: .4rem; }
  .toolbar .device-dd-legend { display: none; }
  .toolbar .links { gap: .3rem; }
  .toolbar .links .btn { padding: .3rem .55rem; font-size: .8rem; }
  .toolbar .filter-row .filter-btn { padding: .2rem .5rem; font-size: .75rem; }
  section, #compare-panel { scroll-margin-top: 190px; }
}

/* Sticky Zurück/Weiter in der Toolbar */
.btn.edit-link { font-size: .82rem; }
.toolbar { flex-wrap: wrap; }
.toolbar .dev-nav-sticky { flex: 1 1 100%; width: 100%; margin: .2rem 0 0; padding: .45rem 0 0; border-bottom: 0; border-top: 1px solid var(--line); }
.toolbar .dev-nav-sticky .nav-btn { padding: .3rem .7rem; }
section, #compare-panel { scroll-margin-top: 270px; }
@media (max-width: 640px) {
  .toolbar .dev-nav-sticky { padding-top: .3rem; margin-top: 0; }
  .toolbar .dev-nav-sticky .nav-btn { padding: .25rem .55rem; font-size: .75rem; }
  .toolbar .links .btn.edit-link { font-size: .8rem; }
  section, #compare-panel { scroll-margin-top: 230px; }
}

/* Selbst bewerten als Haupt-CTA */
.toolbar .links .btn#link-form { font-size: 1.15rem; padding: .75rem 1.4rem; background: #2f7d32; border-color: #1f5e22; box-shadow: 0 0 0 3px rgba(63,122,58,.55), 0 4px 10px rgba(0,0,0,.18); letter-spacing: .02em; }
.toolbar .links .btn#link-form::before { content: "★"; font-size: 1.1em; color: #ffffff; }
@media (prefers-reduced-motion: no-preference) {
  .toolbar .links .btn#link-form { animation: cta-pulse 1.6s ease-in-out 2; }
}
@keyframes cta-pulse { 50% { transform: scale(1.06); box-shadow: 0 0 0 7px rgba(63,122,58,.35), 0 4px 10px rgba(0,0,0,.18); } }
@media (max-width: 640px) {
  .toolbar .links .btn#link-form { flex: 1 1 100%; font-size: 1.05rem; padding: .5rem .8rem; }
}

#overview-list > li:not(.letter-sep){display:flex}
#overview-list .dev-card{height:100%;box-sizing:border-box;align-items:flex-start}

.badge.shop-link{text-decoration:none;color:#1a1a1a;border:1px solid #1a1a1a;background:#fff}
.badge.shop-link:hover{background:#e8f0e6}

.badge.herkunft { font-size: .78em; opacity: .9; }
.badge.herkunft.gekauft { color: #2e7d32; border-color: #2e9e3e; }
.badge.herkunft.testexemplar { color: #c0392b; border: 2px solid #c0392b; opacity: 1; }
.echtes-leben { margin: 12px 0; }
.echtes-leben .el-title { font-weight: 600; margin-bottom: 6px; }
.echtes-leben .el-quote { margin: 0; padding: 10px 14px; border-left: 3px solid #2e9e3e; background: rgba(46,158,62,.07); border-radius: 6px; }
.echtes-leben .el-quote p { margin: 0 0 6px; }
.echtes-leben .el-meta a { font-size: .85em; }
.echtes-leben .el-hinweis { margin-top: 6px; font-size: .78em; color: #9a2238; font-weight: 600; }

/* Bildbox: Split-Layout (Gerät links, Eckdaten rechts), Mint-Hintergrund */
.device-shot{display:grid;grid-template-columns:45% 55%;align-items:center;height:220px;border:2px solid #111;text-align:left;padding:0;overflow:hidden;
 background:radial-gradient(ellipse at 40% 50%,#d4e6dc 0%,#b9d6c7 60%,#9ec4b1 100%)}
.device-shot img{max-width:none;max-height:none;padding:0;height:210px;width:auto;margin:0 auto;transform:rotate(-40deg);filter:drop-shadow(0 3px 6px rgba(0,0,0,.22))}
.device-shot img:not(.cut){transform:none;height:190px;mix-blend-mode:multiply;filter:none}
.shot-specs{border-left:2px solid #111;height:100%;padding:1rem;display:flex;flex-direction:column;justify-content:center;gap:.5rem;background:rgba(255,255,255,.6);font-size:.9rem}
.shot-specs b{display:inline-block;background:#3f6e48;color:#fff;padding:.1rem .45rem;margin-right:.35rem;font-size:.75rem;text-transform:uppercase}
.device-shot img.cut.wide{transform:none;height:auto;max-height:190px;max-width:90%}

.el-short{max-width:320px;margin:.5rem 0}
.el-short iframe{width:100%;aspect-ratio:9/16;border:2px solid #111;display:block}
.el-short a{display:inline-block;margin-top:.35rem}
.device-shot img{justify-self:center;align-self:center;margin:0}
.el-caption{margin:.35rem 0 0;font-weight:600}
.el-short.el-wide{max-width:560px}.el-short.el-wide iframe{aspect-ratio:16/9}
.mark-badge.video-badge{margin-left:.3rem;color:#b3261e;border-color:#b3261e;background:#fff}
.device-dd-option .stromlos-tag + .video-badge{margin-left:auto}
.el-thumb{display:block;position:relative;border:2px solid #111;text-decoration:none}
.el-thumb img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}
.el-age{position:absolute;left:.5rem;bottom:.5rem;background:#111;color:#fff;padding:.2rem .5rem;font-size:.8rem}

.device-shot img[src*="trippy-2-cut"]{translate:-4.5px -2.5px}
.device-shot img[src*="cuboo-stick-pro-cut"]{translate:-3.5px 0}

/* ===== Vergleichsseite ===== */
.vgl-home{color:inherit;text-decoration:none}
.vgl-intro{margin:.3rem 0 .8rem;opacity:.85}
.vgl-pickers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.vgl-field .vgl-lab{display:block;font-weight:700;margin-bottom:.25rem}
.vgl-dd{position:relative}
.vgl-dd .device-dd-list{position:absolute;left:0;right:0;z-index:30;max-height:60vh;overflow:auto}
.vgl-dd .device-dd-option[disabled]{opacity:.4;cursor:not-allowed}
.vgl-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.vgl-tbl{width:100%;border-collapse:collapse;table-layout:fixed;min-width:640px}
.vgl-tbl th,.vgl-tbl td{padding:.45rem .5rem;border-bottom:1px solid rgba(0,0,0,.12);vertical-align:middle;text-align:center}
.vgl-tbl th[scope=row]{text-align:left;width:22%;font-weight:600;font-size:.9rem}
.vgl-tbl .vgl-head th{font-size:1rem}
.vgl-name{color:inherit;text-decoration:none}
.vgl-name .picker-brand{display:block;font-size:.75rem;font-weight:400;opacity:.7}
.vgl-shot.device-shot{height:200px;grid-template-columns:55% 45%;margin:0}
.vgl-imgcell{display:grid;place-items:center;height:100%;overflow:hidden}
.vgl-shot .vgl-imgcell img{height:180px}
.vgl-shot .vgl-imgcell img.cut.wide{max-height:160px;max-width:88%}
.vgl-shot .shot-specs{font-size:.78rem;padding:.6rem}
.vgl-score{font-size:1.5rem;font-weight:800}
.vgl-cell{display:flex;align-items:center;gap:.4rem}
.vgl-cell .bar-track{flex:1;height:8px;background:rgba(0,0,0,.08);border-radius:4px;overflow:hidden}
.vgl-cell .bar-fill{height:100%;border-radius:4px}
.vgl-num{min-width:2.2em;font-weight:700;text-align:right;font-size:.85rem}
.vgl-tbl td.vgl-best{background:rgba(63,110,72,.16);box-shadow:inset 0 0 0 2px #3f6e48}
.vgl-tbl td.vgl-best::after{content:"Bester";display:block;font-size:.65rem;font-weight:700;color:#3f6e48;text-transform:uppercase;letter-spacing:.03em}
.vgl-sep th{background:#3f6e48;color:#fff;text-align:left;font-size:.85rem}
.vgl-shop{font-size:.8rem}
@media (max-width:700px){
  .vgl-pickers{grid-template-columns:1fr}
  .vgl-tbl{min-width:560px}
  .vgl-tbl th[scope=row]{position:sticky;left:0;background:#fffdf6;z-index:2;width:110px}
  .vgl-shot.device-shot{grid-template-columns:1fr;height:auto}
  .vgl-imgcell{height:150px}
  .vgl-shot .vgl-imgcell img{height:140px}
  .vgl-shot .shot-specs{border-left:0;border-top:2px solid #111}
}
.vgl-field,.vgl-dd{min-width:0}
.vgl-dd .device-dd-btn{width:100%;max-width:100%;min-width:0;overflow:hidden}
.vgl-dd .device-dd-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Blättern im Bildkasten */
.device-shot{position:relative}
.shot-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:44px;height:44px;border-radius:50%;border:2px solid #111;background:rgba(255,253,246,.92);color:#3f6e48;font-size:1.9rem;line-height:1;font-weight:700;display:flex;align-items:center;justify-content:center;padding:0 0 .2rem;cursor:pointer;box-shadow:0 2px 6px rgba(0,0,0,.18)}
.shot-arrow:hover,.shot-arrow:focus-visible{background:#3f6e48;color:#fff;outline:none}
.shot-arrow.prev{left:8px}
.shot-arrow.next{right:8px}
.device-shot .shot-specs{padding-right:3.6rem}
.shot-hint{position:absolute;left:0;width:45%;bottom:6px;z-index:4;display:flex;justify-content:center;gap:.4rem;font-size:.72rem;font-weight:700;pointer-events:none}
.shot-count{background:#3f6e48;color:#fff;padding:.08rem .45rem;border-radius:999px}
.shot-swipe{display:none;background:rgba(255,253,246,.9);color:#3f6e48;padding:.08rem .45rem;border-radius:999px}
@media (hover:none),(max-width:700px){.shot-swipe{display:inline}}
@media (max-width:700px){.shot-arrow{width:48px;height:48px}}

/* Mobil: nur kompakte Leiste (‹ Gerät ›) bleibt fixiert */
@media (max-width: 600px) {
  .toolbar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; column-gap: .35rem; row-gap: .4rem; align-items: center; scroll-margin-top: 0; }
  .toolbar .field, .toolbar .dev-nav-sticky { display: contents; }
  .toolbar #device-select-label, .toolbar .nav-pos { display: none; }
  .toolbar .filter-row { grid-column: 1 / -1; grid-row: 1; display: flex; gap: .3rem; margin: 0; }
  .toolbar .links { grid-column: 1 / -1; grid-row: 2; display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
  .toolbar .links .btn { padding: .25rem .5rem; font-size: .75rem; flex: 0 1 auto; }
  .toolbar .links #link-form { flex: 1 1 100%; padding: .4rem .5rem; font-size: .9rem; }
  .toolbar #nav-prev { grid-column: 1; grid-row: 3; }
  .toolbar .device-dd { grid-column: 2; grid-row: 3; min-width: 0; }
  .toolbar #nav-next { grid-column: 3; grid-row: 3; }
  .toolbar #nav-prev, .toolbar #nav-next { padding: .45rem .5rem; font-size: .8rem; white-space: nowrap; }
  .toolbar .device-dd-btn { width: 100%; min-width: 0; padding-top: .45rem; padding-bottom: .45rem; overflow: hidden; }
  .toolbar .device-dd-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .toolbar .device-dd-list { max-height: 65vh; }
  section, #compare-panel { scroll-margin-top: 80px; }
}

/* Vergleich mobil: Kriterium als Zeile, Geräte als schmale Spalten, kein Querscrollen */
@media (max-width: 600px) {
  .vgl-scroll { overflow: visible; }
  .vgl-tbl, .vgl-tbl thead, .vgl-tbl tbody { display: block; min-width: 0; width: 100%; }
  .vgl-tbl tr { display: grid; grid-template-columns: repeat(var(--vgl-n, 3), minmax(0,1fr)); column-gap: .3rem; border-bottom: 1px solid rgba(0,0,0,.12); padding: .15rem 0 .3rem; }
  .vgl-tbl.vgl-n1 tr { --vgl-n: 1; } .vgl-tbl.vgl-n2 tr { --vgl-n: 2; } .vgl-tbl.vgl-n3 tr { --vgl-n: 3; }
  .vgl-tbl th, .vgl-tbl td { display: block; border-bottom: 0; padding: .3rem .25rem; min-width: 0; }
  .vgl-tbl th[scope=row] { position: static; grid-column: 1 / -1; width: auto; background: none; padding: .35rem .1rem .1rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; opacity: .8; }
  .vgl-tbl .vgl-head > th:first-child, .vgl-tbl .vgl-shots > th { display: none; }
  .vgl-tbl .vgl-head { border-bottom: 0; padding-bottom: 0; }
  .vgl-tbl .vgl-head th { font-size: .8rem; line-height: 1.2; overflow-wrap: anywhere; }
  .vgl-name .picker-brand { font-size: .65rem; }
  .vgl-shot.device-shot { display: block; height: auto; border: 0; box-shadow: none; background: none; }
  .vgl-shot .shot-specs { display: none; }
  .vgl-imgcell { height: 90px; }
  .vgl-shot .vgl-imgcell img, .vgl-shot .vgl-imgcell img.cut.wide { height: auto; max-height: 85px; max-width: 100%; }
  .vgl-score { font-size: 1.25rem; }
  .vgl-tbl td { font-size: .8rem; overflow-wrap: anywhere; }
  .vgl-cell { flex-direction: column; align-items: stretch; gap: .2rem; }
  .vgl-num { min-width: 0; text-align: center; }
  .vgl-cell .bar-track { flex: none; height: 6px; }
  .vgl-shop { padding: .25rem .4rem; font-size: .72rem; }
  .vgl-sep { border-bottom: 0; }
  .vgl-sep th { grid-column: 1 / -1; }
}
/* Mobil: Kriterium klein rechts in derselben Zeile */
@media (max-width: 600px) {
  .vgl-tbl tr { grid-template-columns: repeat(var(--vgl-n, 3), minmax(0,1fr)) 64px; align-items: center; }
  .vgl-tbl th[scope=row] { grid-column: auto; order: 99; font-size: 11px; line-height: 1.2; text-transform: none; letter-spacing: 0; font-weight: 500; opacity: .65; padding: .2rem 0 .2rem .2rem; overflow-wrap: anywhere; hyphens: auto; }
  .vgl-sep th { grid-column: 1 / -1 !important; }
}
@media (max-width: 600px) {
  .vgl-tbl td, .vgl-tbl th[scope=row] { overflow-wrap: break-word; word-break: normal; -webkit-hyphens: auto; hyphens: auto; }
  .vgl-tbl td .badge.herkunft { display: inline-block; white-space: normal; font-size: 9px; letter-spacing: 0; padding: .15rem .25rem; line-height: 1.2; overflow-wrap: normal; word-break: normal; }
  .vgl-tbl td .vgl-shop { display: inline-block; font-size: 10px; letter-spacing: 0; padding: .2rem .3rem; overflow-wrap: anywhere; }
}
@media (max-width: 600px) {
  .vgl-tbl tr { grid-template-columns: repeat(var(--vgl-n, 3), minmax(0,1fr)) 78px; }
}
.vgl-goto{display:inline-block;margin-top:.3rem;font-size:.75rem;font-weight:600;color:#3f6e48;text-decoration:underline}

#link-video[hidden]{display:none}
.shot-specs .spec-val{white-space:nowrap}
@media (max-width:600px){.shot-specs{padding-left:.45rem;padding-right:.35rem}.shot-specs b{margin-right:.3rem}}
@media (max-width:600px){.toolbar .device-dd-btn .video-badge{display:none}}

/* Header: eine Zeile, klickbare Pills */
.brand .tagline { white-space: nowrap; letter-spacing: .1em; }
.site-nav { flex-wrap: nowrap; gap: .3rem; font-size: .68rem; letter-spacing: .04em; }
.site-nav a { display: inline-block; white-space: nowrap; padding: .32rem .6rem; border: 1px solid rgba(26,26,26,.35); background: #fffdf7; border-radius: 999px; line-height: 1.2; transition: background .15s, border-color .15s; }
.site-nav a:hover { color: var(--ink); background: var(--green-soft); border-color: var(--green); }
.site-nav a:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.site-nav a[aria-current="page"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.site-nav a.nav-cta { background: var(--green); border-color: var(--green); color: #fff; }
.site-nav a.nav-cta:hover { background: #2f6a2b; border-color: #2f6a2b; color: #fff; }
@media (max-width: 900px) {
  .site-header { flex-direction: column; align-items: stretch; }
  .site-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; }
}
@media (max-width: 400px) { .brand .tagline { letter-spacing: .06em; font-size: .62rem; } }
.site-nav a[aria-current] { background: var(--green); border-color: var(--green); color: #fff; }
.site-nav a[aria-current]:hover { background: #2f6a2b; border-color: #2f6a2b; color: #fff; }
.hero p { max-width: none; }
.hero, .hero > div, .hero-copy { max-width: none; } .hero p { max-width: none !important; }
/* sticky pill nav stacked above sticky device panel */
.site-nav { position: sticky; top: 0; z-index: 60; background: var(--bg, #f3f3f3); padding: .45rem 0; margin: 0 0 .6rem; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-header { margin-bottom: .4rem; }
.toolbar { top: var(--navh, 40px); }
section, #compare-panel, .overview-list { scroll-margin-top: calc(var(--navh, 40px) + var(--tbh, 0px) + 14px) !important; }
@media (max-width: 900px) { .site-nav { padding: .35rem 2px; margin-left: 0; margin-right: 0; } }
@media (max-width: 600px) {
  .device-shot .shot-specs { padding-left: .6rem; padding-right: 3rem; }
  .shot-specs b { font-size: .66rem; letter-spacing: 0; white-space: nowrap; padding: .1rem .35rem; }
}
/* calm header hierarchy */
.site-header { border-bottom: 0; padding-bottom: 0; margin-bottom: .5rem; padding-top: .25rem; }
.brand .tagline { margin-top: .3rem; letter-spacing: .08em; }
.site-nav { border-bottom: 1px solid var(--line); margin-bottom: 1.4rem; padding: .5rem 0 .6rem; }
.hero { margin: 0 0 1.4rem; }
.hero .hero-lead { color: var(--ink); font-size: 1.02rem; line-height: 1.5; max-width: 46rem !important; }
@media (max-width: 600px) {
  .site-nav { margin-bottom: 1rem; }
  .hero { margin-bottom: 1rem; }
  .hero .hero-lead { font-size: .95rem; }
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand-logo { display: block; flex: none; line-height: 0; border-radius: 9px; }
.brand-logo img { width: 38px; height: 38px; display: block; }
.brand-logo:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.brand h1 a { color: inherit; text-decoration: none; }
@media (max-width: 600px) { .brand { gap: .55rem; } .brand-logo img { width: 28px; height: 28px; } }
@media (min-width: 901px) {
  .site-nav { display: flex; gap: .4rem; }
  .site-nav a { flex: 1 1 0; text-align: center; padding-left: .3rem; padding-right: .3rem; }
  .hero .hero-lead { max-width: none !important; white-space: nowrap; }
}
/* Top-5 page */
.t5-page { margin-bottom: 1.2rem; }
.t5-page h2 { margin: 0 0 .8rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
.t5-list { list-style: none; margin: 0; padding: 0; }
.t5-list li { border-top: 1px solid var(--line); }
.t5-list li:first-child { border-top: 0; }
.t5-list li.empty { padding: .8rem .4rem; color: var(--muted); }
.t5-item { display: grid; grid-template-columns: 2rem 56px minmax(0,1fr) 5.5rem 7rem; align-items: center; gap: .8rem; padding: .7rem .4rem; color: var(--ink); text-decoration: none; border-radius: 6px; }
.t5-item:hover { background: var(--green-soft); }
.t5-item:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.t5-rank { font-size: 1.3rem; font-weight: 800; text-align: center; color: var(--green); }
.t5-item .thumb { width: 56px; height: 56px; }
.t5-mid .name { font-size: 1rem; }
.t5-num { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.t5-num small { font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.t5-num b { font-size: 1.25rem; color: var(--green); }
.t5-pl b { color: var(--ink); }
.t5-note { color: var(--muted); font-size: .85rem; margin: 0 0 1.5rem; }
@media (max-width: 600px) {
  .t5-item { grid-template-columns: 1.4rem 44px minmax(0,1fr) 3.2rem 3.6rem; gap: .45rem; padding: .6rem .2rem; }
  .t5-item .thumb { width: 44px; height: 44px; }
  .t5-mid .name { font-size: .9rem; }
  .t5-num small { font-size: .52rem; letter-spacing: 0; }
  .t5-num b { font-size: 1.05rem; }
}
a.dev-card{color:inherit;text-decoration:none}

/* Mini-Preis-Leistung auf der Startseite */
.pl-mini .scatter-chart { min-height: 0; max-height: 260px; }
.pl-mini .scatter-pt:not(.is-selected) text { display: none; }
.pl-mini .scatter-mini-wrap { overflow: hidden; }
.pl-back { display: inline-block; margin-bottom: .5rem; font-weight: 600; text-decoration: none; }
.pl-back[hidden] { display: none; }
/* Alle Geräte: getestet vs. ungetestet */
#gr-root .dev-card:not(.untested) { background: #fff; border: 1.5px solid #b9c7b4; box-shadow: inset 3px 0 0 var(--green); }
#gr-root .dev-card:not(.untested):hover { border-color: var(--green); }
#gr-root .dev-card.untested { opacity: .75; background: transparent; border: 1.5px dashed #c4c4c4; }
#gr-root .dev-card.untested:hover { opacity: 1; }
.el-play{width:100%;padding:0;background:#111;cursor:pointer;font:inherit;text-align:left}
.el-short:not(.el-wide) .el-play img{aspect-ratio:9/16}
.el-play .el-yt-hint{position:absolute;left:.5rem;right:.5rem;top:.5rem;background:rgba(0,0,0,.7);color:#fff;font-size:.72rem;padding:.2rem .4rem}
.el-play:hover .el-age,.el-play:focus-visible .el-age{background:var(--green)}
.legal-text h3{margin:1.4rem 0 .4rem}
.legal-text p,.legal-text li{max-width:70ch}
.kontakt-form{display:grid;gap:.7rem;max-width:34rem;margin-top:.6rem}
.kontakt-form label{display:grid;gap:.25rem;font-weight:600}
.kontakt-form input,.kontakt-form textarea{font:inherit;padding:.5rem;border:1.5px solid #b9c7b4;border-radius:6px;background:#fff}
.kontakt-form textarea{min-height:9rem}
.kontakt-form .hp{position:absolute;left:-9999px}
.kontakt-form button{justify-self:start;padding:.55rem 1.1rem;border:0;border-radius:6px;background:var(--green);color:#fff;font:inherit;font-weight:700;cursor:pointer}
.kontakt-status{min-height:1.4em;font-weight:600}
.kontakt-status.ok{color:var(--green)}
.kontakt-status.err{color:#b3261e}

/* Filter „Alle Geräte“ */
.gr-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 16px; }
.gf-chip { min-height: 38px; padding: 6px 14px; border: 1.5px solid #3f7a3a; border-radius: 999px; background: #fff; color: #1f3d1c; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.gf-chip:hover { background: #eef5ec; }
.gf-chip[aria-pressed="true"] { background: #3f7a3a; color: #fff; }
.gf-chip:focus-visible { outline: 3px solid #3f7a3a; outline-offset: 2px; }
.gf-check::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 7px; vertical-align: -2px; border: 1.5px solid currentColor; border-radius: 3px; box-sizing: border-box; }
.gf-check[aria-pressed="true"]::before { background: #fff; box-shadow: inset 0 0 0 2px #3f7a3a; }
.gf-sep { width: 1px; height: 26px; background: #c3c3c3; margin: 0 4px; }
.gf-count { flex-basis: 100%; margin: 4px 0 0; font-size: 13px; color: #5a5a5a; }
@media (max-width: 600px) { .gf-sep { display: none; } .gf-chip { font-size: 13px; padding: 6px 11px; } }

/* ===== DARK MODE (generiert) ===== */
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121212;
  --ink: #e5e5e5;
  --muted: #a5a5a5;
  --line: #4a4a4a;
  --green: #7cc274;
  --green-soft: #1f2b1e;
  --viewer: #b6b6b6;
  --viewer-soft: #252525;
  --bar-track: #323232;
  --panel: #1c1c1e;
  --dash: #5c5c5c;
}
.theme-toggle {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 42px; min-width: 42px; padding: 0 .85rem 0 .65rem;
  border: 1.5px solid #1d3f8a; border-radius: 999px;
  background: #e8eefb; color: #1d3f8a;
  font: 700 .9rem/1 inherit; font-family: inherit; cursor: pointer;
}
.theme-icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
html:not([data-theme="dark"]) .theme-icon path { fill: #1d3f8a; }
html[data-theme="dark"] .theme-toggle { border-color: #444; background: #1c1c1e; color: #e5e5e5; }
html[data-theme="dark"] .theme-icon circle { fill: #e6e6e6; }
.theme-toggle:hover { filter: brightness(1.08); box-shadow: 0 0 0 3px rgba(124,194,116,.25); }
.theme-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
@media (max-width: 640px) { .site-header { position: relative; } .theme-toggle { position: absolute; top: 0; right: 0; } }
@media (max-width: 420px) { .theme-label { display: none; } .theme-toggle { padding: 0; justify-content: center; width: 42px; height: 42px; } .theme-icon { width: 24px; height: 24px; } }
html[data-theme="dark"] img[src*="assets/devices/"] { background: #f1f1f1; border-radius: 3px; }
html[data-theme="dark"] input, html[data-theme="dark"] textarea, html[data-theme="dark"] select { background: #212121; color: var(--ink); border-color: #666666; }
html[data-theme="dark"] input::placeholder, html[data-theme="dark"] textarea::placeholder { color: #868686; }
/* SVG-Diagramme: Präsentationsattribute aus app.js umfärben */
html[data-theme="dark"] svg [stroke="#1a1a1a"] { stroke: #b4b4b4; }
html[data-theme="dark"] svg [fill="#1a1a1a"] { fill: #e5e5e5; }
html[data-theme="dark"] svg [fill="#5a5a5a"] { fill: #bdbdbd; }
html[data-theme="dark"] svg [fill="#fffdf7"] { fill: #1e1e1e; }
html[data-theme="dark"] svg [stroke="#fffdf7"] { stroke: #121212; }
html[data-theme="dark"] svg [stroke="#f3f3f3"] { stroke: #121212; }
html[data-theme="dark"] svg [stroke="#d3d3d3"] { stroke: #383838; }
html[data-theme="dark"] svg [fill="#ebebeb"] { fill: #292929; }
html[data-theme="dark"] svg [fill="#3f7a3a"] { fill: #6fb867; }
html[data-theme="dark"] svg [stroke="#3f7a3a"] { stroke: #7cc274; }
html[data-theme="dark"] svg [stroke="#b5523b"] { stroke: #e0806a; }
html[data-theme="dark"] svg [fill="#9a2238"] { fill: #e57a8e; }
html[data-theme="dark"] svg [fill="#1d6a8a"] { fill: #5fb3d6; }
html[data-theme="dark"] svg [stroke="#1d6a8a"] { stroke: #5fb3d6; }
html[data-theme="dark"] svg [stroke="#6b3a6b"] { stroke: #c58ec5; }
html[data-theme="dark"] svg [stroke="#b0304a"] { stroke: #e57a8e; }
html[data-theme="dark"] svg [fill="#6b3a6b"] { fill: #c58ec5; }
html[data-theme="dark"], html[data-theme="dark"] body { background: var(--paper); }
html[data-theme="dark"] .filter-btn.active,
html[data-theme="dark"] .btn,
html[data-theme="dark"] .top5-mode-btn.active,
html[data-theme="dark"] .top-item .sc.sc-tip,
html[data-theme="dark"] .badge.preistipp,
html[data-theme="dark"] .pill.preistipp,
html[data-theme="dark"] .kontakt-form button { color: #0f1a0e; }
/* Gerätetitel groß */
#device-name { font-size: 30px !important; line-height: 1.15; text-transform: none !important; letter-spacing: -.01em; color: var(--ink); margin: .2rem 0 .6rem; }
#device-name .dn-brand { display: block; font-size: 17px; font-weight: 600; letter-spacing: .02em; color: var(--muted, #676767); margin-bottom: .15rem; }
#device-name strong { font-weight: 800; }
@media (max-width: 420px) { #device-name { font-size: 26px !important; } #device-name .dn-brand { font-size: 16px; } }
/* Buttons im Dunkelmodus */
html[data-theme="dark"] .btn { color: #fff; }
html[data-theme="dark"] .btn.secondary { color: #e8e8e8; background: transparent; border: 1.5px solid #a3a3a3; }
html[data-theme="dark"] .btn.secondary:hover { background: #e8e8e8; color: #121212; }
html[data-theme="dark"] .btn.disabled, html[data-theme="dark"] a.btn.disabled { color: #a3a3a3; }
/* Gerätebilder: ganze Bildfläche weiß */
html[data-theme="dark"] .device-shot, html[data-theme="dark"] .thumb, html[data-theme="dark"] .el-thumb, html[data-theme="dark"] .top-item .thumb { background: #fff !important; border-color: transparent !important; }
html[data-theme="dark"] img[src*="assets/devices/"] { background: #fff !important; border: 0 !important; box-shadow: none !important; outline: 0; border-radius: 0; }
html[data-theme="dark"] .el-age { background: #111 !important; color: #fff; }
html[data-theme="dark"] .shot-specs { background: #1c1c1e !important; }

html[data-theme="dark"] .gf-chip { background: #1c1c1e; color: #cfe6cb; border-color: #6fae68; }
html[data-theme="dark"] .gf-chip:hover { background: #26302a; }
html[data-theme="dark"] .gf-chip[aria-pressed="true"] { background: #4f8f48; color: #fff; border-color: #4f8f48; }
html[data-theme="dark"] .gf-check[aria-pressed="true"]::before { background: #fff; box-shadow: inset 0 0 0 2px #4f8f48; }
html[data-theme="dark"] .gf-sep { background: #474747; }
html[data-theme="dark"] .gf-count { color: #b4b4b4; }
html[data-theme="dark"] .gr-filters .gf-chip[aria-pressed="true"] { background: #4f8f48; color: #fff; border-color: #4f8f48; }

html[data-theme="dark"] .device-dd-btn.has-own { background-color: #303f2e; }
html[data-theme="dark"] .device-dd-btn.has-viewer { background-color: #414141; }
html[data-theme="dark"] .device-dd-list .letter-sep { border-top: 1px solid #363636; }
html[data-theme="dark"] .device-dd-option:hover, html[data-theme="dark"] .device-dd-option.is-active { background: rgba(240,236,226,.04); }
html[data-theme="dark"] .device-dd-option[aria-selected="true"] { background: rgba(240,236,226,.06); }
html[data-theme="dark"] .device-dd-option.has-own { background: #303f2e; }
html[data-theme="dark"] .device-dd-option.has-own:hover, html[data-theme="dark"] .device-dd-option.has-own.is-active, html[data-theme="dark"] .device-dd-option.has-own[aria-selected="true"] { background: #3b4c38; }
html[data-theme="dark"] .device-dd-option.has-viewer { background: #414141; }
html[data-theme="dark"] .device-dd-option.has-viewer:hover, html[data-theme="dark"] .device-dd-option.has-viewer.is-active, html[data-theme="dark"] .device-dd-option.has-viewer[aria-selected="true"] { background: #4e4e4e; }
html[data-theme="dark"] .device-dd-legend .lg-own::before { background: #303f2e; }
html[data-theme="dark"] .device-dd-legend .lg-view::before { background: #414141; }
html[data-theme="dark"] .btn.disabled, html[data-theme="dark"] a.btn.disabled { background: #313131; border-color: #454545; }
html[data-theme="dark"] .device-shot { background: #171717; }
html[data-theme="dark"] table.cmp th, html[data-theme="dark"] table.cmp td { border-bottom: 1px solid #363636; }
html[data-theme="dark"] .bar-fill.viewer { background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 2px,
    rgba(28,28,26,.45) 2px,
    rgba(28,28,26,.45) 4px
  ); }
html[data-theme="dark"] .cmp-legend .lg-v::before { background-image: repeating-linear-gradient(-45deg, transparent, transparent 2px, rgba(28,28,26,.45) 2px, rgba(28,28,26,.45) 4px),
    linear-gradient(90deg, #b04a3e 0%, #8f8f8f 50%, #24589a 100%); }
html[data-theme="dark"] .cmp-legend .lg-scale .scale-bar { border: 1px solid rgba(240,236,226,.12); }
html[data-theme="dark"] .top5-mode { background: #171717; }
html[data-theme="dark"] .top5-list li { border-bottom: 1px solid #363636; }
html[data-theme="dark"] .top-pl-pill { background: #202c1e; color: #b5d9b3; border: 1px solid #31412f; }
html[data-theme="dark"] .top-item .sc.sc-stars { color: #dddddd; }
html[data-theme="dark"] .thumb { background: #171717; border: 1px solid #363636; }
html[data-theme="dark"] .thumb:empty { background: #2a2a2a; }
html[data-theme="dark"] .top5-note { border-top: 1px solid #363636; }
html[data-theme="dark"] .dev-card.untested { background: rgba(240,236,226,.025); }
html[data-theme="dark"] .pill { border: 1px solid #363636; }
html[data-theme="dark"] #loader { background: rgba(28,28,26,.92); }
html[data-theme="dark"] .toast { background: #262626; }
html[data-theme="dark"] #overview-list .letter-sep { border-top: 1px solid rgba(240,236,226,.25); color: #abcfa8; }
html[data-theme="dark"] .referenzen .hint { color: var(--muted, #b2b2b2); }
html[data-theme="dark"] table.refs th, html[data-theme="dark"] table.refs td { border-bottom: 1px solid var(--line, #292929); }
html[data-theme="dark"] table.refs thead th { color: var(--muted, #b2b2b2); border-bottom: 2px solid var(--ink, #8c8c8c); }
html[data-theme="dark"] table.refs .ref-open { color: var(--muted, #999999); }
html[data-theme="dark"] table.refs td.ref-note-legacy { color: var(--muted, #bfbfbf); }
html[data-theme="dark"] table.refs tbody tr:hover td { background: rgba(240,236,226,.02); }
html[data-theme="dark"] .badge.pl-stars, html[data-theme="dark"] .pill.pl-stars { color: #dddddd; background: #2f2f2f; }
html[data-theme="dark"] .preis-leistung .pl-class.pl-lt100, html[data-theme="dark"] .badge.class-best.pc-lt100, html[data-theme="dark"] .pill.class-best.pc-lt100 { color: #a0cee1; }
html[data-theme="dark"] .preis-leistung .pl-class.pl-mid, html[data-theme="dark"] .badge.class-best.pc-mid, html[data-theme="dark"] .pill.class-best.pc-mid { color: #d0b2d0; }
html[data-theme="dark"] .preis-leistung .pl-class.pl-gt200, html[data-theme="dark"] .badge.class-best.pc-gt200, html[data-theme="dark"] .pill.class-best.pc-gt200 { color: #e57a8e; }
html[data-theme="dark"] .weight-slider { background: #1f1f1f; }
html[data-theme="dark"] .weight-slider input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(90deg, #363636 0%, #343f31 100%); }
html[data-theme="dark"] .weight-slider input[type="range"]::-webkit-slider-thumb { border: 2px solid #171717; }
html[data-theme="dark"] .weight-slider input[type="range"]::-moz-range-track { background: linear-gradient(90deg, #363636 0%, #343f31 100%); }
html[data-theme="dark"] .weight-slider input[type="range"]::-moz-range-thumb { border: 2px solid #171717; }
html[data-theme="dark"] .scatter-wrap { background: #1f1f1f; }
html[data-theme="dark"] .scatter-pt.is-selected text { stroke: #1f1f1f; }
html[data-theme="dark"] .badge.pl-value { background: #202c1e; color: #b5d9b3; border: 1px solid #31412f; }
html[data-theme="dark"] .toolbar { background: var(--panel, #171717); }
html[data-theme="dark"] .toolbar .links .btn#link-form::before { color: #ffffff; }
html[data-theme="dark"] .badge.shop-link { color: #e6e6e6; border: 1px solid #8c8c8c; background: #171717; }
html[data-theme="dark"] .badge.shop-link:hover { background: #222a20; }
html[data-theme="dark"] .badge.herkunft.gekauft { color: #a7d7aa; }
html[data-theme="dark"] .badge.herkunft.testexemplar { color: #d4837a; }
html[data-theme="dark"] .echtes-leben .el-hinweis { color: #e57a8e; }
html[data-theme="dark"] .device-shot { border: 2px solid #8c8c8c; background: radial-gradient(ellipse at 40% 50%,#29352e 0%,#36463e 60%,#44574e 100%); }
html[data-theme="dark"] .device-shot img { filter: drop-shadow(0 3px 6px rgba(240,236,226,.22)); }
html[data-theme="dark"] .shot-specs { border-left: 2px solid #8c8c8c; background: rgba(28,28,26,.6); }
html[data-theme="dark"] .el-short iframe { border: 2px solid #8c8c8c; }
html[data-theme="dark"] .mark-badge.video-badge { color: #dd8984; background: #171717; }
html[data-theme="dark"] .el-thumb { border: 2px solid #8c8c8c; }
html[data-theme="dark"] .el-age { background: #d9d9d9; }
html[data-theme="dark"] .vgl-tbl th, html[data-theme="dark"] .vgl-tbl td { border-bottom: 1px solid rgba(240,236,226,.12); }
html[data-theme="dark"] .vgl-cell .bar-track { background: rgba(240,236,226,.08); }
html[data-theme="dark"] .vgl-tbl td.vgl-best::after { color: #b0ccb5; }
@media (max-width:700px) { html[data-theme="dark"] .vgl-tbl th[scope=row] { background: #212121; } }
@media (max-width:700px) { html[data-theme="dark"] .vgl-shot .shot-specs { border-top: 2px solid #8c8c8c; } }
html[data-theme="dark"] .shot-arrow { border: 2px solid #8c8c8c; background: rgba(28,28,26,.92); color: #b0ccb5; }
html[data-theme="dark"] .shot-swipe { background: rgba(28,28,26,.9); color: #b0ccb5; }
@media (max-width: 600px) { html[data-theme="dark"] .vgl-tbl tr { border-bottom: 1px solid rgba(240,236,226,.12); } }
html[data-theme="dark"] .vgl-goto { color: #b0ccb5; }
html[data-theme="dark"] .site-nav a { border: 1px solid rgba(255,255,255,.18); background: #202020; }
html[data-theme="dark"] .site-nav { background: var(--bg, #212121); }
html[data-theme="dark"] #gr-root .dev-card:not(.untested) { background: #171717; border: 1.5px solid #424a40; }
html[data-theme="dark"] #gr-root .dev-card.untested { border: 1.5px dashed #454545; }
html[data-theme="dark"] .el-play { background: #d9d9d9; }
html[data-theme="dark"] .el-play .el-yt-hint { background: rgba(240,236,226,.7); }
html[data-theme="dark"] .kontakt-form input, html[data-theme="dark"] .kontakt-form textarea { border: 1.5px solid #424a40; background: #171717; }
html[data-theme="dark"] .kontakt-status.err { color: #dd8984; }
html[data-theme="dark"] .gf-chip { background: #171717; color: #d6e8d4; }
html[data-theme="dark"] .gf-chip:hover { background: #1e261c; }
html[data-theme="dark"] .gf-chip:focus-visible { outline: 3px solid #7cc274; }
html[data-theme="dark"] .gf-check[aria-pressed="true"]::before { background: #171717; }
html[data-theme="dark"] .gf-sep { background: #454545; }
html[data-theme="dark"] .gf-count { color: #bfbfbf; }

/* Antriebs-Legende im Preis-Leistungs-Graphen */
.power-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; margin: 6px 0 4px; font-size: 13px; font-weight: 600; color: #5a5a5a; }
.power-legend .pw-item { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.power-legend svg { flex: 0 0 auto; }
html[data-theme="dark"] .power-legend { color: #d3d3d3; }
@media (max-width: 480px) { .power-legend { font-size: 12px; gap: 4px 12px; } }

/* Neutrale Navigation (kein Braun/Gold) */
html[data-theme="dark"] .site-nav { background: #121212; }
html[data-theme="dark"] .site-nav a { background: #232326; border: 1px solid #3a3a3e; color: #e5e5e5; }
html[data-theme="dark"] .site-nav a:hover { background: #1f2b1e; border-color: #7cc274; color: #fff; }
html[data-theme="dark"] .site-nav a[aria-current] { background: #2f6a2b; border-color: #7cc274; color: #fff; }
.site-nav a { background: #f7f7f7; }

/* Lupe im Preis-Leistungs-Diagramm */
.scatter-wrap.has-lupe { position: relative; }
.pl-lupe { position: fixed; box-sizing: content-box; display: none; border-radius: 50%; overflow: hidden; pointer-events: none; z-index: 5;
  border: 2px solid #3f7a3a; box-shadow: 0 6px 18px rgba(0,0,0,.35); background: #f8f8f8; }
.pl-lupe.on { display: block; }
.pl-lupe { -webkit-mask-image: radial-gradient(circle closest-side, #000 72%, rgba(0,0,0,.3) 100%); mask-image: radial-gradient(circle closest-side, #000 72%, rgba(0,0,0,.3) 100%); }
.pl-lupe svg { position: absolute; display: block; max-width: none; }
html[data-theme="dark"] .pl-lupe { background: #1f1f1f; border-color: #7cc274; }
.scatter-wrap.has-lupe svg { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.score-card .value[hidden], .score-card .untested-note[hidden] { display: none; }
.refs .ref-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.refs .ref-link:hover, .refs .ref-link:focus-visible { color: var(--green); border-bottom-color: currentColor; }
.pill.g.untested-badge { color: #b5523b; border-color: #b5523b; font-weight: 700; }
html[data-theme="dark"] .pill.g.untested-badge { border-color: #b5523b; }
.hint-narrow { display: none; }
@media (max-width: 560px) { .hint-wide { display: none; } .hint-narrow { display: inline; } }

/* Stichpunkte je Gerät (devices.js) */
.stichpunkte { margin: 0 0 14px; padding: 12px 16px; border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 12px; background: rgba(127,127,127,.06); }
.stichpunkte[hidden] { display: none; }
.stichpunkte .sp-label { margin: 0 0 6px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .7; }
.stichpunkte ul { margin: 0; padding-left: 1.2em; }
.stichpunkte li { margin: 3px 0; font-size: 1.02rem; line-height: 1.4; }

/* Lupe: Chart schimmert durch, Gerätepunkte liegen immer obenauf */
.pl-lupe { background: rgba(248,248,248,.55); }
html[data-theme="dark"] .pl-lupe { background: rgba(31,31,31,.55); }
.pl-lupe svg { opacity: .88; }
.pl-lupe-marks { position: absolute; display: none; pointer-events: none; z-index: 6; max-width: none; }
.pl-lupe-marks.on { display: block; }

/* Lupe: absolut im Diagramm, dünner halbtransparenter Rand (border-box, damit die Mitte exakt am Cursor liegt) */
.pl-lupe { position: absolute; box-sizing: border-box; border: 1px solid rgba(63,122,58,.45); box-shadow: 0 4px 14px rgba(0,0,0,.18); will-change: transform; }
html[data-theme="dark"] .pl-lupe { border-color: rgba(124,194,116,.45); }
.pl-lupe svg { will-change: transform; }

/* Blättern direkt in der Gerätekarte (oben links/rechts), grün hervorgehoben */
.card-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 0 0 10px; }
.card-nav .nav-pos { font-size: .8rem; opacity: .7; }
.card-nav-btn { min-height: 44px; padding: .5rem 1rem; font: inherit; font-weight: 700; font-size: .95rem; color: #fff; background: #3f7a3a; border: 2px solid #3f7a3a; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.card-nav-btn:hover, .card-nav-btn:focus-visible { background: #2f6a2b; border-color: #2f6a2b; }
html[data-theme="dark"] .card-nav-btn { background: #2f6a2b; border-color: #7cc274; color: #fff; }
html[data-theme="dark"] .card-nav-btn:hover { background: #3f7a3a; }

/* Lade-Anzeige mit eigener Wortmarke und Dampf-Animation */
.loader-card { display: flex; align-items: center; gap: 16px; width: min(420px, calc(100% - 2rem)); border-radius: 14px; padding: 1.1rem 1.25rem; }
.loader-text { flex: 1; min-width: 0; }
.loader-logo { flex: none; }
.loader-logo .body { fill: #3f7a3a; }
.loader-logo .mouth { fill: #2f5f2b; }
.loader-logo .grip { fill: rgba(255,255,255,.35); }
.loader-logo .led { fill: #b9f0b0; animation: gs-led 1.4s ease-in-out infinite; }
.loader-logo .steam path { stroke: #7cc274; opacity: 0; animation: gs-steam 1.8s ease-out infinite; }
.loader-logo .steam .s2 { animation-delay: .6s; } .loader-logo .steam .s3 { animation-delay: 1.2s; }
@keyframes gs-steam { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes gs-led { 50% { opacity: .35; } }
.loader-word { display: block; font-size: 1.25rem; font-weight: 900; letter-spacing: .06em; color: var(--ink, #1d1d1d); }
.loader-word span { color: #3f7a3a; }
.loader-row { display: flex; align-items: center; gap: 10px; }
.loader-row .bar { flex: 1; height: 8px; border-radius: 4px; margin: .6rem 0 .45rem; }
.loader-row .bar > span { border-radius: 4px; background: #3f7a3a; }
.loader-pct { font-weight: 700; font-size: .85rem; color: #3f7a3a; min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .loader-word { color: #ececec; }
html[data-theme="dark"] .loader-word span, html[data-theme="dark"] .loader-pct { color: #7cc274; }
html[data-theme="dark"] .loader-row .bar > span { background: #7cc274; }
@media (prefers-reduced-motion: reduce) { .loader-logo .steam path, .loader-logo .led { animation: none; opacity: .8; } }
#loader { z-index: 1000; }

.loader-logo .body-bg { fill: rgba(63,122,58,.14); }
.loader-logo .body-line { fill: none; stroke: #3f7a3a; stroke-width: 1.5; }
.loader-logo #loader-fill { transition: y .25s ease, height .25s ease; }
html[data-theme="dark"] .loader-logo .body-line { stroke: #7cc274; }
.loader-logo .steam path { animation: gs-steam 2.4s ease-in-out infinite; }
.loader-logo .steam .s2 { animation-delay: .8s; } .loader-logo .steam .s3 { animation-delay: 1.6s; }
@keyframes gs-steam { 0% { opacity: 0; transform: translateY(10px) scaleY(.8); } 35% { opacity: .85; } 100% { opacity: 0; transform: translateY(-10px) scaleY(1.1); } }
.loader-logo .steam path { transform-box: fill-box; transform-origin: center bottom; }
@media (prefers-reduced-motion: reduce) { .loader-logo .steam path { animation: none; opacity: .7; transform: none; } .loader-logo #loader-fill { transition: none; } }
/* „Mit Video“ dezent: dünner Rahmen wie TEST, gedämpftes Rosa, kleines ▶ */
.mark-badge.video-badge { color: #9a5a5a; border: 1px solid rgba(154,90,90,.55); background: transparent; font-weight: 600; }
.mark-badge.video-badge::before { content: "▶"; font-size: .7em; margin-right: .3em; vertical-align: .08em; }
html[data-theme="dark"] .mark-badge.video-badge { color: #c99a9a; border-color: rgba(201,154,154,.5); background: transparent; }

/* Punkt-Fisheye */
.fe-layer { display: none; } .fe-layer.on { display: inline; }
.fe-ring { fill: rgba(63,122,58,.05); stroke: rgba(63,122,58,.35); stroke-width: 1; stroke-dasharray: 4 4; }
.fe-lines line { stroke: rgba(60,60,60,.55); stroke-width: 1; }
.fe-lines circle { fill: rgba(60,60,60,.55); }
html[data-theme="dark"] .fe-ring { fill: rgba(124,194,116,.06); stroke: rgba(124,194,116,.4); }
html[data-theme="dark"] .fe-lines line, html[data-theme="dark"] .fe-lines circle { stroke: rgba(220,220,220,.5); fill: rgba(220,220,220,.5); }
.scatter-pt.fe-on text { font-weight: 700; }

/* Mini-Preis-Leistung größer */
.pl-mini .scatter-chart { max-height: 340px; }
#compare-panel .pl-mini { margin: 1rem 0; border: 1px solid var(--line, #ccc); padding: .8rem; }
.pl-mini .scatter-chart text { font-size: 15px; }
.pl-mini .scatter-pt.is-selected text { font-size: 19px; font-weight: 800; }
.pl-mini .scatter-chart { max-height: none; }
/* Herstellername größer und kräftiger (~65 % des Gerätenamens) */
#device-name .dn-brand { font-size: .65em; font-weight: 750; letter-spacing: 0; color: #4a4a4a; margin-bottom: .1rem; }
html[data-theme="dark"] #device-name .dn-brand { color: #c8c8c8; }
@media (max-width: 420px) { #device-name .dn-brand { font-size: .65em; } }

/* ===== Designregel: GRÜN = KLICKBAR. Nicht klickbare Werte sind blau/grau. ===== */
:root { --good: #24589a; }
html[data-theme="dark"] { --good: #7fa8e0; }
table.cmp td.num.gmiadlich { color: var(--good); }
.bar-fill { background: var(--good); }
.bar-row.g .n { color: var(--good); }
.badge.pl-value { color: #333; background: #ececec; border: 1px solid #c8c8c8; }
html[data-theme="dark"] .badge.pl-value { background: #262626; color: #ddd; border: 1px solid #444; }
.badge.herkunft.gekauft { color: var(--good); border-color: var(--good); }
html[data-theme="dark"] .badge.herkunft.gekauft { color: var(--good); }
.shot-count, .shot-specs b { background: #4a4a4a; }
.echtes-leben .el-quote.el-click { cursor: pointer; transition: background .15s; }
.echtes-leben .el-quote.el-click:hover { background: rgba(46,158,62,.14); }
html[data-theme="dark"] svg [fill="#555555"] { fill: #bbb; }
html[data-theme="dark"] svg [stroke="#555555"] { stroke: #bbb; }
html[data-theme="dark"] svg [stroke="#24589a"] { stroke: #7fa8e0; }
.score-card .value { color: var(--good); }

/* Herstellerlogo in der Gerätekarte (Arizer-Guideline: Schutzraum, nicht verzerren, nur schwarz/weiß) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#device-name .dn-brand.has-logo { display: block; line-height: 0; padding: 6px 0 8px; margin-bottom: .1rem; }
#device-name .dn-logo { height: 24px; width: auto; max-width: 60%; object-fit: contain; }
#device-name .dn-logo.dark { display: none; }
html[data-theme="dark"] #device-name .dn-logo.light { display: none; }
html[data-theme="dark"] #device-name .dn-logo.dark { display: inline-block; }
@media (max-width: 420px) { #device-name .dn-logo { height: 20px; } }

/* Navi: dezent grün (grün = klickbar), aktiver Tab kräftiger */
.site-nav a { background: #eaf4e7; border-color: #a9cfa2; color: #1f3d1c; }
.site-nav a:hover { background: #d4e9cf; border-color: #3f7a3a; color: #142a12; }
.site-nav a[aria-current], .site-nav a[aria-current]:hover { background: #3f7a3a; border-color: #3f7a3a; color: #fff; }
html[data-theme="dark"] .site-nav a { background: #1b281a; border-color: #3d6538; color: #d8ecd4; }
html[data-theme="dark"] .site-nav a:hover { background: #24381f; border-color: #7cc274; color: #fff; }
html[data-theme="dark"] .site-nav a[aria-current], html[data-theme="dark"] .site-nav a[aria-current]:hover { background: #2f6a2b; border-color: #7cc274; color: #fff; }

/* Grün = klickbar: nicht klickbare Highlights/Flächen in kühlem Blaugrau, Kopfzeilen dunkelblau */
.vgl-tbl td.vgl-best { background: #e6ebf2; box-shadow: inset 0 0 0 2px #5b6f8a; }
.vgl-tbl td.vgl-best::after { color: #1f3a5f; }
.vgl-sep th { background: #1f3a5f; color: #fff; }
.device-shot { background: radial-gradient(ellipse at 40% 50%, #eef2f7 0%, #dde4ec 60%, #cdd6e1 100%); }
.shot-specs b { background: #1f3a5f; color: #fff; }
.badge.pl-value { background: #e6ebf2; color: #1f3a5f; border-color: #c3cdd9; }
.badge.herkunft.gekauft { color: #1f3a5f; border-color: #5b6f8a; }
.echtes-leben .el-quote { border-left-color: #5b6f8a; background: #eef2f7; }
.toast { border-color: #c3cdd9; }
html[data-theme="dark"] .vgl-tbl td.vgl-best { background: #222b36; box-shadow: inset 0 0 0 2px #7d92ad; }
html[data-theme="dark"] .vgl-tbl td.vgl-best::after { color: #c9d6e6; }
html[data-theme="dark"] .vgl-sep th { background: #2a4a75; color: #fff; }
html[data-theme="dark"] .device-shot { background: radial-gradient(ellipse at 40% 50%, #2a313a 0%, #343d48 60%, #3f4957 100%); }
html[data-theme="dark"] .shot-specs b { background: #2a4a75; color: #fff; }
html[data-theme="dark"] .badge.pl-value { background: #222b36; color: #c9d6e6; border-color: #3d4a5a; }
html[data-theme="dark"] .badge.herkunft.gekauft { color: #c9d6e6; border-color: #7d92ad; }
html[data-theme="dark"] .echtes-leben .el-quote { border-left-color: #7d92ad; background: #222b36; }
html[data-theme="dark"] .vgl-tbl .vgl-num { color: #b7cbe6; }

/* Nicht klickbar = kühles Blaugrau (30.10.2026) */
#overview-list .letter-sep,.device-dd-list .letter-sep{color:#56677a}
.shot-swipe{color:#56677a}
html[data-theme="dark"] #overview-list .letter-sep,html[data-theme="dark"] .device-dd-list .letter-sep,html[data-theme="dark"] .shot-swipe{color:#a3b3c4}

/* Geräteauswahl: Button "Alle Geräte" (Variante 2) + Puls beim ersten Besuch (Variante 4) */
#device-select-btn { background-image: none; padding-right: .5rem; }
#device-select-btn .device-dd-all { flex: 0 0 auto; background: var(--green); color: #fff; font-weight: 700; padding: .45rem .8rem; font-size: .95rem; white-space: nowrap; }
#device-select-btn .dd-all-kurz { display: none; }
@keyframes ddpuls { 0%, 100% { box-shadow: 0 0 0 0 rgba(47,125,50,0), 0 0 0 0 rgba(47,125,50,0); border-color: var(--line); } 50% { box-shadow: 0 0 0 3px rgba(47,125,50,.85), 0 0 20px 8px rgba(47,125,50,.45); border-color: rgba(47,125,50,.9); } }
#device-select-btn.dd-puls { animation: ddpuls 1.8s ease-in-out .5s 3 both; }
@media (max-width: 600px) {
  .toolbar #device-select-btn .device-dd-value { white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
  #device-select-btn .device-dd-all { padding: .4rem .6rem; }
  #device-select-btn .dd-all-lang { display: none; }
  #device-select-btn .dd-all-kurz { display: inline; }
}
#device-select-btn .device-dd-all { order: 99; margin-left: auto; }
.toolbar #device-select-btn .device-dd-value { white-space: normal; text-overflow: clip; overflow-wrap: anywhere; }
@media (min-width: 601px) { .toolbar > .field { flex: 1 1 100%; } }
/* Puls auch bei reduzierter Bewegung (nur Farbe/Schatten, keine Bewegung) */
@media (prefers-reduced-motion: reduce) { #device-select-btn.dd-puls { animation: ddpuls 1.8s ease-in-out .5s 3 both !important; } }

/* Review 30.10.: Sammel-Hinweis, Spalten-Icons, Info-Tooltip */
.sammeln { display: inline-flex; align-items: center; gap: .35em; }
.sammeln-dots { display: inline-flex; gap: 2px; }
.sammeln-dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .25; animation: sammeln 1.4s ease-in-out infinite; }
.sammeln-dots i:nth-child(2) { animation-delay: .2s; }
.sammeln-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes sammeln { 0%, 100% { opacity: .25; } 50% { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .sammeln-dots i { animation: none; opacity: .6; } }
.col-ico { text-align: center; white-space: nowrap; }
.ico-g { font-weight: 800; letter-spacing: -.02em; }
.ico-z { vertical-align: middle; }
.info-q { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 1.3em; height: 1.3em; padding: 0; border: 1.5px solid var(--green); border-radius: 50%; background: transparent; color: var(--green); font: inherit; font-size: .85em; font-weight: 700; line-height: 1; cursor: help; vertical-align: middle; }
.info-q::after { content: attr(data-tip); position: absolute; z-index: 30; right: -.5em; top: calc(100% + 8px); width: min(18rem, 80vw); padding: .6em .75em; border-radius: 8px; background: #222; color: #fff; font-size: .8rem; font-weight: 400; line-height: 1.4; text-align: left; white-space: normal; box-shadow: 0 4px 14px rgba(0,0,0,.25); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .15s; }
.info-q:hover::after, .info-q:focus::after, .info-q:focus-visible::after { opacity: 1; visibility: visible; }
.weight-slider-readout { position: relative; }
.info-q { position: static; }
.info-q::after { left: 0; right: 0; width: auto; max-width: 22rem; }
th.col-ico { font-size: .95rem; text-transform: none; letter-spacing: 0; color: var(--ink, #222); }

/* 30.10.: Loader über gerenderter, unscharfer Seite */
#loader { background: rgba(243, 243, 243, .45); -webkit-backdrop-filter: blur(7px) saturate(.9); backdrop-filter: blur(7px) saturate(.9); }
html[data-theme="dark"] #loader { background: rgba(28, 28, 26, .5); }
.btn[hidden], #link-video[hidden], #link-youtube[hidden] { display: none !important; }
@media (max-width: 560px) {
  table.cmp { table-layout: fixed; width: 100%; }
  table.cmp th:nth-child(1), table.cmp td:nth-child(1) { width: 44%; padding-right: 6px; }
  table.cmp th:nth-child(3), table.cmp td:nth-child(3),
  table.cmp th:nth-child(4), table.cmp td:nth-child(4) { width: 2.4em; padding-left: 2px; padding-right: 2px; text-align: center; }
  table.cmp td:nth-child(1) { font-size: .88rem; hyphens: auto; }
}
html.no-loader #loader { display: none !important; }
#loader-bar { transition: width .2s ease; animation: none; }
html.loading main div:empty:not([hidden]):not(.sammeln):not(.col-ico), html.loading main ul:empty, html.loading main tbody:empty { min-height: 64px; border-radius: 12px; background: linear-gradient(90deg, rgba(128,128,128,.10) 25%, rgba(128,128,128,.20) 50%, rgba(128,128,128,.10) 75%); background-size: 200% 100%; animation: skel 1.2s linear infinite; }
@keyframes skel { from { background-position: 200% 0 } to { background-position: -200% 0 } }
@media (prefers-reduced-motion: reduce) { html.loading main div:empty { animation: none; } }
/* Vergleich: Bild volle Breite, Typ/Preis sauber darunter */
.vgl-shot.device-shot{display:flex;flex-direction:column;height:auto;align-items:stretch}
.vgl-shot .vgl-imgcell{height:170px}
.vgl-shot .shot-specs{border-left:0;border-top:2px solid #111;height:auto;padding:.5rem .6rem;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:.3rem .9rem}
.vgl-shot .shot-specs > div{white-space:nowrap}
.vgl-imgcell.noimg{background:rgba(128,128,128,.12);color:#777;font-size:.8rem}
.vgl-imgcell.noimg::after{content:"Kein Bild"}
.thumb.noimg{background:rgba(128,128,128,.12)}
/* Leerer Vergleichsplatz: grün = klickbar */
.vgl-add{border:2px dashed #2e7d32 !important;background:rgba(46,125,50,.08) !important;color:#2e7d32 !important;font-weight:600;cursor:pointer}
.vgl-add:hover,.vgl-add:focus-visible{background:rgba(46,125,50,.16) !important}
.vgl-add::after{border-top-color:#2e7d32 !important}
html.dark .vgl-add,[data-theme="dark"] .vgl-add{color:#7bc47f !important;border-color:#5fae63 !important}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) .vgl-add{color:#7bc47f !important;border-color:#5fae63 !important}}
/* Vergleich: Auswahlfelder und Tabellenspalten im selben Raster (22 % Beschriftung + 3 gleiche Spalten) */
@media (min-width: 601px) {
  .vgl-pickers { display: grid !important; grid-template-columns: 22% repeat(3, minmax(0, 1fr)); gap: 0 !important; }
  .vgl-pickers::before { content: ""; }
  .vgl-pickers > .vgl-field { padding: 0 .5rem; min-width: 0; margin: 0; }
  .vgl-tbl { min-width: 0; }
  .vgl-tbl th[scope=row], .vgl-tbl .vgl-head > th:first-child { width: 22%; }
}
@media (max-width: 600px) { .vgl-tbl .vgl-pad { display: none !important; } }
.vgl-tbl td.vgl-pad, .vgl-tbl th.vgl-pad { background: none; box-shadow: none; }
/* Platzhalter ohne Bild: dunkel mit dezentem G³ */
.vgl-imgcell.noimg { background: #1f2326; color: rgba(255,255,255,.35); position: relative; }
.vgl-imgcell.noimg::after { content: "G³"; font-weight: 800; font-size: 2.6rem; letter-spacing: -.02em; opacity: .5; }
.vgl-imgcell.noimg::before { content: "Kein Bild"; position: absolute; bottom: .55rem; left: 0; right: 0; text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.thumb.noimg { background: #1f2326; }
@media (min-width: 601px) {
  .vgl-dd-btn { flex-wrap: wrap; row-gap: .25rem; height: auto; min-height: 46px; }
  .vgl-dd-btn > .device-dd-value { flex: 1 1 100%; min-width: 0; }
  .vgl-dd-btn > .mark-badge { flex: none; }
}
@media (max-width: 600px) {
  .vgl-tbl.vgl-n1 tr { grid-template-columns: minmax(0,1fr); }
  .vgl-tbl.vgl-n2 tr { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .vgl-tbl.vgl-n3 tr { grid-template-columns: repeat(3, minmax(0,1fr)); }
}

.device-shot .shot-noimg{height:100%;display:flex;align-items:center;justify-content:center;background:#1f2326;color:rgba(255,255,255,.35);position:relative}
.device-shot .shot-noimg::after{content:"G³";font-weight:800;font-size:2.6rem;opacity:.5}
.device-shot .shot-noimg::before{content:"Kein Bild";position:absolute;bottom:2rem;left:0;right:0;text-align:center;font-size:.7rem;text-transform:uppercase;letter-spacing:.08em}
.device-shot .shot-noimg-link{position:absolute;bottom:.6rem;left:0;right:0;text-align:center;font-size:.72rem;font-weight:700;color:#7fd08a;text-decoration:underline;z-index:6}
.device-shot .shot-noimg:has(.shot-noimg-link)::before{bottom:2.6rem}
.device-shot .shot-noimg-link{bottom:2.2rem}
.device-shot .shot-noimg:has(.shot-noimg-link)::before{bottom:3.8rem}

.w-track{position:relative;--p:.5}
.w-hint{position:absolute;top:50%;left:calc(var(--p) * (100% - 1.35rem) + .675rem);transform:translate(-50%,-50%);display:flex;gap:2.1rem;pointer-events:none;color:var(--green);opacity:.55;font-size:1.6rem;font-weight:700;line-height:1;transition:opacity .6s;animation:wHint 1.8s ease-in-out infinite}
.w-hint span:first-child{animation:wL 1.8s ease-in-out infinite}.w-hint span:last-child{animation:wR 1.8s ease-in-out infinite}
@keyframes wL{50%{transform:translateX(-4px)}}@keyframes wR{50%{transform:translateX(4px)}}@keyframes wHint{}
.weight-slider.moved .w-hint{opacity:0}
html[data-theme="dark"] .w-hint{color:#7fd08a}
@media (prefers-reduced-motion:reduce){.w-hint span{animation:none!important}}
@media (max-width:520px){.w-hint{font-size:1.8rem;opacity:.65}}
.w-hint{transform:translate(-50%,calc(-50% - .14em))}
.device-shot{overflow:hidden}
.device-shot .shot-specs{position:relative;z-index:2}
