.vergleich-page .hero-copy h1 {
  max-width: 16ch;
}

.vergleich-page .hero-copy .lead {
  max-width: 44ch;
}

.compare-table-block {
  display: grid;
  gap: 14px;
}

.compare-table-card {
  padding: 0;
  overflow: hidden;
}

.compare-table-scroll {
  overflow-x: auto;
}

.compare-table {
  min-width: 980px;
}

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: minmax(360px, 1.7fr) minmax(180px, 0.56fr) minmax(270px, 0.75fr);
  align-items: center;
}

.compare-head {
  background: #2f3a5b;
  color: #e8f0fb;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.compare-head p {
  margin: 0;
  padding: 14px 16px;
  text-align: center;
}

.compare-head p:first-child {
  text-align: left;
}

.compare-row:nth-child(odd) {
  background: #f0f1ff;
}

.compare-row:nth-child(even) {
  background: #e8ebff;
}

.compare-category {
  margin: 0;
  padding: 14px 16px;
  color: #24344f;
  line-height: 1.3;
}

.compare-fixed {
  margin: 0;
  padding: 14px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #2f3a5b;
  font-weight: 800;
  font-size: 1.18rem;
}

.compare-fixed-icon {
  font-size: 1.68rem;
  line-height: 1;
}

.compare-choice {
  padding: 12px 16px;
  display: inline-flex;
  justify-content: center;
  gap: 8px;
}

.compare-choice-btn {
  border: 1px solid #9fb6c3;
  border-radius: var(--radius-btn);
  background: #ffffff;
  color: #2a3d5d;
  font-weight: 700;
  min-width: 84px;
  min-height: 38px;
  padding: 0 14px;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.compare-choice-btn:hover,
.compare-choice-btn:focus-visible {
  transform: translateY(-1px);
}

.compare-choice-btn.is-active[data-answer="yes"] {
  background: linear-gradient(145deg, var(--brand), var(--brand-strong));
  border-color: var(--brand-strong);
  color: #ffffff;
}

.compare-choice-btn.is-active[data-answer="no"] {
  background: linear-gradient(145deg, #4a5778, #384764);
  border-color: #384764;
  color: #ffffff;
}

.compare-result-wrap {
  display: grid;
}

.compare-result-card {
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  gap: 12px;
}

.compare-result-summary {
  display: grid;
  gap: 12px;
}

.compare-result-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.44rem, 1vw + 1.12rem, 2.2rem);
  line-height: 1.08;
}

#compare-result-text {
  color: #2f3f57;
  line-height: 1.48;
}

.compare-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.compare-stats p {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: #30425f;
  font-size: 0.9rem;
  background: #f8fbff;
}

.compare-progress {
  height: 10px;
  border-radius: 999px;
  background: #dbe6f0;
  overflow: hidden;
}

#compare-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #1d3a5b);
  transition: width 300ms ease;
}

.compare-result-badge {
  margin: 0;
  font-weight: 800;
  color: #1a3657;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.compare-no-slideshow {
  display: grid;
  gap: 12px;
  animation: compareFadeIn 260ms ease;
}

.compare-no-slide {
  margin: 0;
  border: 1px solid #c8d7e7;
  border-radius: 18px;
  background: linear-gradient(160deg, #f8fbff, #eef4fb);
  padding: clamp(16px, 2.4vw, 22px);
  display: grid;
  gap: 10px;
}

.compare-no-kicker {
  margin: 0;
  color: var(--brand-strong);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
}

.compare-no-title {
  margin: 0;
  color: #102746;
  font-family: var(--font-display);
  font-size: clamp(1.18rem, 0.8vw + 0.98rem, 1.56rem);
  line-height: 1.25;
}

.compare-no-copy {
  margin: 0;
  color: #2f3f57;
  line-height: 1.5;
}

.compare-no-points {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 7px;
  color: #273d58;
  line-height: 1.45;
}

.compare-no-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.compare-no-counter {
  margin: 0;
  color: #2c405f;
  font-weight: 700;
  font-size: 0.9rem;
}

.compare-no-nav {
  min-height: 36px;
  border: 1px solid #adc0d0;
  border-radius: var(--radius-btn);
  background: #ffffff;
  color: #27415f;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0 14px;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.compare-no-nav:hover,
.compare-no-nav:focus-visible {
  transform: translateY(-1px);
}

.compare-no-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.compare-no-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 100%;
}

.compare-no-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  border: 0;
  background: #c4d0df;
  cursor: pointer;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: width 220ms ease, background-color 220ms ease;
}

.compare-no-dot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #1f3d60;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
}

.compare-no-dot.is-active {
  width: 24px;
  background: #d2ddeb;
}

.compare-no-dot:focus-visible {
  outline: 2px solid #7f95af;
  outline-offset: 2px;
}

@keyframes compareFadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.compare-adaptive {
  display: grid;
  gap: 10px;
}

.compare-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-slide {
  min-height: 280px;
  padding: 20px;
  align-items: stretch;
  background: linear-gradient(165deg, #f8fbff, #eef3f9);
  border-color: #d5deea;
  color: var(--ink);
}

.compare-slide .metric-main {
  display: grid;
  align-content: start;
  gap: 10px;
  opacity: 1;
  transform: none;
}

.compare-slide .metric-hover {
  display: none;
}

.compare-slide-kicker {
  margin: 0;
  color: var(--brand-strong);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
}

.compare-slide-title {
  margin: 0;
  color: #102746;
  font-size: 1.12rem;
  line-height: 1.3;
  font-weight: 800;
}

.compare-slide-copy {
  margin: 0;
  color: #2f3f57;
  font-size: 0.9rem;
  line-height: 1.45;
}

.compare-slide-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: #2f3f57;
  font-size: 0.85rem;
  line-height: 1.4;
}

.vergleich-page .metric:not(.is-tap-open):hover .metric-main,
.vergleich-page .metric:not(.is-tap-open):focus-within .metric-main,
.vergleich-page .metric:not(.is-tap-open):focus-visible .metric-main {
  opacity: 1;
  transform: none;
}

.vergleich-page .metric.is-tap-open .metric-main {
  opacity: 1;
  transform: none;
}

.vergleich-page .metric.is-tap-open .metric-hover {
  opacity: 0;
  transform: none;
  pointer-events: none;
}

@media (max-width: 1120px) {
  .compare-metrics {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px), ((max-width: 1366px) and (pointer: coarse)) {
  .compare-table {
    min-width: 760px;
  }

  .compare-head,
  .compare-row {
    grid-template-columns: minmax(320px, 1.7fr) minmax(130px, 0.56fr) minmax(210px, 0.75fr);
  }

  .compare-choice {
    gap: 6px;
  }

  .compare-choice-btn {
    min-width: 72px;
    min-height: 34px;
  }

  .compare-no-controls {
    flex-wrap: wrap;
    justify-content: center;
  }

  .compare-no-counter {
    width: 100%;
    text-align: center;
    order: 3;
  }

  .compare-metrics {
    width: 100%;
    max-width: 100%;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 1px 6px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .compare-metrics::-webkit-scrollbar {
    display: none;
  }

  .compare-metrics .compare-slide {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    min-height: 0;
  }

  .compare-slide-title {
    font-size: 1.02rem;
  }
}

@media (max-width: 560px) {
  .compare-table-card {
    padding: 0;
    overflow: visible;
  }

  .compare-table-scroll {
    overflow-x: visible;
    padding: 8px;
  }

  .compare-table {
    min-width: 0;
    width: 100%;
  }

  .compare-head {
    display: none !important;
  }

  .compare-body {
    display: block;
  }

  .compare-row {
    display: grid !important;
    grid-template-columns: 1fr;
    align-items: stretch;
    border: 1px solid #c8d9e5;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(155deg, #f2f3ff, #e9ecff);
    box-shadow: 0 7px 18px rgba(17, 38, 59, 0.08);
    margin-bottom: 10px;
  }

  .compare-row:nth-child(odd),
  .compare-row:nth-child(even) {
    background: linear-gradient(155deg, #f2f3ff, #e9ecff);
  }

  .compare-body .compare-row:last-child {
    margin-bottom: 0;
  }

  .compare-category {
    padding: 12px 14px 10px;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
  }

  .compare-fixed {
    display: none;
    padding: 0 14px 10px;
    justify-content: flex-start;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
  }

  .compare-fixed::before {
    content: "Freier Makler";
    display: block;
    width: 100%;
    color: #5b7488;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
  }

  .compare-fixed-icon {
    font-size: 1.16rem;
  }

  .compare-choice {
    padding: 0 12px 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .compare-choice::before {
    content: "Deine Situation";
    grid-column: 1 / -1;
    color: #5b7488;
    font-size: 0.64rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 800;
    padding: 0 2px;
  }

  .compare-choice-btn {
    min-width: 0;
    width: 100%;
    min-height: 44px;
    font-size: 0.9rem;
  }

  .compare-table-block.is-completed-review .compare-fixed {
    display: flex;
  }

  .compare-table-block.is-completed-review .compare-choice {
    display: none;
  }
}
