/* Vergleichsseite: zwei oder drei Angebote nebeneinander. */
.compare-main { padding-block: clamp(2.2rem, 6vw, 5rem) clamp(3rem, 8vw, 6rem); }
.compare-intro h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
.compare-intro > p:last-child { max-width: 52ch; margin-top: 1rem; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.compare-presets { margin-top: clamp(1.6rem, 4vw, 2.6rem); }
.compare-presets[hidden], .compare-pick[hidden] { display: none; }
.compare-presets h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 700; }
.compare-preset-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.compare-preset-list button {
  min-height: 44px;
  padding: .45rem .95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
  font-size: .95rem;
}
.compare-preset-list button:hover { border-color: var(--teal); }
.compare-preset-list button[aria-pressed="true"] { border-color: var(--navy); background: var(--navy); color: var(--white); }
.compare-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem 1.2rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.compare-pick label { display: grid; gap: .3rem; min-width: 0; font-size: .85rem; font-weight: 700; color: var(--muted); }
.compare-pick select { width: 100%; min-width: 0; min-height: 46px; padding: .4rem .6rem; border: 1px solid #b9c4c0; border-radius: 8px; background: var(--white); color: var(--ink); font: inherit; }
.compare-scroll { margin-top: 1.6rem; }
.compare-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.compare-table[hidden] { display: none; }
.compare-caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.compare-table th, .compare-table td { padding: .55rem .9rem .9rem 0; text-align: left; vertical-align: top; }
.compare-head th { padding-bottom: 1.1rem; font-weight: 400; }
.compare-head img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--night); }
.compare-head h2 { margin-top: .8rem; font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: -.04em; }
.compare-head p { margin-top: .25rem; color: var(--muted); font-size: .92rem; }
.compare-table tbody { border-top: 1px solid var(--line); }
.compare-label th {
  padding: .9rem 0 0;
  color: var(--teal);
  font: 700 .74rem/1.35 var(--heading);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.compare-label.is-different th::after { content: ""; display: inline-block; width: .5em; height: .5em; margin-left: .6em; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.compare-table td { font-size: 1.02rem; }
.compare-table td.is-empty { color: var(--muted); }
.compare-offers { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.compare-offers a { font-weight: 700; text-underline-offset: 4px; }
.compare-more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; text-underline-offset: 4px; }
.compare-note { margin-top: 1.2rem; color: var(--muted); font-size: .9rem; }
.compare-note[hidden] { display: none; }
.compare-page .site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
@media (max-width: 700px) {
  /* Am Handy zwei Spalten. Das dritte Angebot gibt es ab Tablet-Breite. */
  .compare-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-pick .compare-third, .compare-table .compare-col-3 { display: none; }
  /* Die häufigen Fragen laufen in einer Zeile zum Wischen, damit die Tabelle oben bleibt. */
  .compare-preset-list { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * clamp(1rem, 4vw, 4rem)); padding: 2px clamp(1rem, 4vw, 4rem) .5rem; scroll-snap-type: x proximity; scroll-padding-inline: clamp(1rem, 4vw, 4rem); }
  .compare-preset-list button { flex: none; scroll-snap-align: start; }
  .compare-table th, .compare-table td { padding-right: .7rem; }
  .compare-table td { font-size: .96rem; }
}

/* ── Dunkle, bildstarke Fassung (12.11.): Kulisse, große Spielbilder, Figuren ── */
.compare-page { --line: #ffffff26; --muted: #c2cfd3; --teal: #b9f4d7; --ink: #fffdf8; --white: #14222c; --navy: #fffdf8; --gold: #b9f4d7; background: #0b151c; color: #fffdf8; }
.compare-page::before { content: ""; position: fixed; inset: 0; z-index: -1; background: linear-gradient(180deg, #0b151ce6 0%, #0b151cd9 40%, #0b151cf7 100%), url("assets/welten/robo-welt.webp") center top / cover no-repeat; }
.compare-page .site-header { background: transparent; color: #fffdf8; border-bottom-color: #ffffff26; }
.compare-page .site-footer { background: transparent; color: #fffdf8; border-top: 1px solid #ffffff26; }
.compare-page .site-footer p { color: #c2cfd3; }
.compare-intro h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); letter-spacing: -.055em; line-height: 1; }
.compare-intro .eyebrow { color: #b9f4d7; }
.compare-preset-list button { border-color: #ffffff3d; background: #ffffff0d; color: #fffdf8; }
.compare-preset-list button:hover { border-color: #b9f4d7; }
.compare-preset-list button[aria-pressed="true"] { border-color: #b9f4d7; background: #b9f4d7; color: #0b151c; }
.compare-pick select { border-color: #ffffff3d; background: #14222c; color: #fffdf8; }
.compare-table { border-collapse: separate; border-spacing: clamp(.5rem, 1.4vw, 1.1rem) 0; margin-inline: calc(-1 * clamp(.5rem, 1.4vw, 1.1rem)); width: calc(100% + 2 * clamp(.5rem, 1.4vw, 1.1rem)); }
.compare-table th, .compare-table td { padding: .7rem clamp(.8rem, 1.6vw, 1.2rem); }
/* Jede Spalte ist eine Glaskarte in der Farbe ihres Spiels. */
.compare-head th { position: relative; padding: clamp(.7rem, 1.4vw, 1.1rem); padding-bottom: 1.2rem; border: 1px solid #ffffff26; border-bottom: 0; border-top: 3px solid var(--color-of, #b9f4d7); border-radius: 16px 16px 0 0; background: #0d1820d9; }
.compare-picture { position: relative; }
.compare-head img { border: 0; border-radius: 10px; }
.compare-head .compare-figure { position: absolute; right: -.4rem; bottom: -1.9rem; width: auto; height: clamp(3.6rem, 8vw, 6.2rem); aspect-ratio: auto; object-fit: contain; background: none; border-radius: 0; filter: drop-shadow(0 12px 14px #000a); }
.compare-head h2 { margin-top: 1.1rem; padding-right: clamp(3.4rem, 7vw, 5.6rem); font-size: clamp(1.25rem, 2.6vw, 2rem); text-wrap: balance; }
.compare-head p { color: var(--color-of, #b9f4d7); font-weight: 700; }
.compare-visit { display: inline-flex; align-items: center; min-height: 2.6rem; margin-top: .7rem; padding: 0 1rem; border-radius: 8px; background: var(--color-of, #b9f4d7); color: #0b151c; font: 700 .92rem/1.2 var(--heading); text-decoration: none; }
.compare-table tbody { border-top: 0; }
.compare-table tbody td, .compare-table tbody th { border-inline: 1px solid #ffffff26; background: #0d1820d9; }
.compare-label th { padding-top: 1rem; border-top: 1px solid #ffffff1f; color: #b9c7cc; background: #0d1820d9; }
.compare-table tbody:last-child tr:last-child td { border-bottom: 1px solid #ffffff26; border-radius: 0 0 16px 16px; padding-bottom: 1.2rem; }
.compare-table td { font-size: 1.08rem; font-weight: 600; }
.compare-table td.is-empty { color: #8fa0a6; font-weight: 400; }
.compare-offers a { color: #fffdf8; }
.compare-note { color: #c2cfd3; }
@media (max-width: 700px) {
  .compare-table th, .compare-table td { padding-inline: .65rem; }
  .compare-head h2 { padding-right: 0; }
  .compare-head .compare-figure { height: 3.4rem; bottom: -1.2rem; }
  .compare-table td { font-size: .98rem; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Bei jeder neuen Auswahl bauen sich Karten und Zeilen im Takt auf. */
  @keyframes compare-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes compare-cutout { 0% { opacity: 0; transform: translate(30%, 30%) rotate(12deg) scale(.6); } 62% { opacity: 1; transform: translate(-2%, -3%) rotate(-2.5deg) scale(1.05); } 100% { opacity: 1; transform: none; } }
  .compare-head th { animation: compare-in .5s cubic-bezier(.2, .7, .2, 1) backwards; }
  .compare-head th:nth-child(2) { animation-delay: .08s; }
  .compare-head th:nth-child(3) { animation-delay: .16s; }
  .compare-figure { animation: compare-cutout .7s cubic-bezier(.2, .8, .3, 1) .3s backwards; }
  .compare-table tbody { animation: compare-in .45s ease-out calc(.15s + var(--row, 0) * .05s) backwards; }
}
