/* vergleich.css: Paketfinder und Paketvergleich auf /preise (nach dem Modellvergleich bei Apple).
   Baut auf css/site-base.css (--sn-*) auf. Hover nur bei echter Maus, bewegt wird nur transform und opacity. */

body.sn-base .pf, body.sn-base .cmp { --cmp-acc: var(--sn-green); }

/* ─── Paketfinder ─── */
body.sn-base .pf { margin-top: 2rem; padding: 1.8rem 1.8rem 1.6rem; border-radius: 18px; background: var(--sn-card-bg); border: var(--sn-card-border); box-shadow: var(--sn-card-shadow); }
body.sn-base .pf-kopf { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
body.sn-base .pf-kopf h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; margin: 0; line-height: 1.2; }
body.sn-base .pf-kopf h3 i { color: var(--sn-green); }
body.sn-base .pf-schritt { font-family: var(--sn-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sn-muted); }
body.sn-base .pf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
body.sn-base .pf fieldset + fieldset { margin-top: 1.3rem; }
body.sn-base .pf legend { padding: 0; font-size: 1.02rem; font-weight: 600; color: var(--sn-text); margin-bottom: .7rem; line-height: 1.4; }
body.sn-base .pf-opts { display: flex; flex-wrap: wrap; gap: .6rem; }
body.sn-base .pf-opt { position: relative; }
body.sn-base .pf-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
body.sn-base .pf-opt span { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem 1.1rem; border-radius: 99px; border: 1px solid rgba(255,255,255,.18); color: var(--sn-text); font-size: .95rem; line-height: 1.3; background: rgba(255,255,255,.03); transition: border-color .2s, background-color .2s; }
body.sn-base .pf-opt input:checked + span { border-color: var(--sn-green); background: rgba(45,255,160,.12); color: #fff; }
body.sn-base .pf-opt input:focus-visible + span { outline: 2px solid var(--sn-green); outline-offset: 2px; }
@media (hover: hover) { body.sn-base .pf-opt input:not(:checked):hover + span { border-color: rgba(255,255,255,.4); } }

body.sn-base .pf-ergebnis { margin-top: 1.5rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.1); display: none; }
body.sn-base .pf-ergebnis.is-da { display: block; animation: pf-ein .35s ease both; }
@keyframes pf-ein { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.sn-base .pf-ergebnis .pf-label { font-family: var(--sn-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sn-green); margin: 0 0 .5rem; }
body.sn-base .pf-ergebnis .pf-name { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
body.sn-base .pf-ergebnis .pf-name i { color: var(--sn-green); }
body.sn-base .pf-ergebnis .pf-grund { color: var(--sn-muted); font-size: 1rem; line-height: 1.7; max-width: 62ch; margin: .7rem 0 1.2rem; }
body.sn-base .pf-aktionen { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
body.sn-base .pf-neu { background: none; border: 0; padding: 0 .4rem; min-height: 44px; color: var(--sn-muted); font: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (hover: hover) { body.sn-base .pf-neu:hover { color: var(--sn-text); } }

/* ─── Vergleich ─── */
body.sn-base .cmp { --cmp-cols: minmax(150px, 15rem) repeat(3, minmax(0, 1fr)); --cmp-top: 0px; margin-top: 3rem; scroll-margin-top: 5rem; }
body.sn-base .cmp-leiste { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
body.sn-base .cmp-leiste h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; margin: 0; line-height: 1.2; }
body.sn-base .cmp-leiste h3 i { color: var(--sn-green); }
body.sn-base .cmp-nur { display: none; align-items: center; gap: .6rem; min-height: 44px; font-size: .92rem; color: var(--sn-muted); cursor: pointer; }
html.js body.sn-base .cmp-nur { display: inline-flex; }
body.sn-base .cmp-nur input { width: 1.15rem; height: 1.15rem; accent-color: var(--sn-green); margin: 0; }

body.sn-base .cmp-head { position: sticky; top: var(--cmp-top); z-index: 20; background: #080b0e; border-bottom: 1px solid rgba(255,255,255,.14); }
body.sn-base .cmp-row { display: grid; grid-template-columns: var(--cmp-cols); column-gap: 1.2rem; }
body.sn-base .cmp-head .cmp-row { align-items: start; padding: 1rem 0 .9rem; }
body.sn-base .cmp-hc { position: relative; display: flex; flex-direction: column; min-width: 0; padding: .2rem 0; }
body.sn-base .cmp-tag { align-self: flex-start; margin: 0 0 .5rem; padding: .22rem .6rem; border-radius: 99px; font-family: var(--sn-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sn-green); border: 1px solid rgba(45,255,160,.4); line-height: 1.3; min-height: 1.5rem; display: inline-flex; align-items: center; }
body.sn-base .cmp-tag:empty { visibility: hidden; }
body.sn-base .cmp-name { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin: 0; line-height: 1.2; color: var(--sn-text); }
body.sn-base .cmp-sel { display: none; width: 100%; min-height: 44px; margin: 0; padding: .55rem 2.2rem .55rem .9rem; font: inherit; font-size: 1rem; font-weight: 700; color: var(--sn-text); border: 1px solid rgba(255,255,255,.22); border-radius: 12px; background: rgba(255,255,255,.04) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2390aec8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .8rem center / 12px; -webkit-appearance: none; appearance: none; cursor: pointer; text-overflow: ellipsis; }
body.sn-base .cmp-sel option { background: #0d1219; color: var(--sn-text); }
body.sn-base .cmp-sel:focus-visible { outline: 2px solid var(--sn-green); outline-offset: 2px; }
html.js body.sn-base .cmp-sel { display: block; }
html.js body.sn-base .cmp-name { display: none; }
@media (hover: hover) { body.sn-base .cmp-sel:hover { border-color: rgba(255,255,255,.45); } }
body.sn-base .cmp-preis { font-size: 1.6rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: .8rem 0 0; color: var(--sn-text); }
body.sn-base .cmp-preis small { font-size: .95rem; font-weight: 500; color: var(--sn-muted); letter-spacing: 0; }
body.sn-base .cmp-note { margin: .3rem 0 0; font-size: .92rem; line-height: 1.45; color: var(--sn-muted); }
body.sn-base .cmp-cta { margin-top: .9rem; align-self: flex-start; text-align: center; }
body.sn-base .cmp-cta.btn-ghost, body.sn-base .cmp-cta.btn-primary { padding: .8rem 1.4rem; letter-spacing: .1em; font-size: .78rem; }
body.sn-base .cmp-head.is-stuck .cmp-note, body.sn-base .cmp-head.is-stuck .cmp-cta { display: none; }
body.sn-base .cmp-head.is-stuck .cmp-row { padding: .6rem 0; }
body.sn-base .cmp-head.is-stuck .cmp-preis { margin-top: .5rem; font-size: 1.25rem; }

body.sn-base .cmp-gruppe { padding: 2.2rem 0 .5rem; font-family: var(--sn-mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--sn-green); margin: 0; }
body.sn-base .cmp-zeile { padding: .85rem 0; border-top: 1px solid rgba(255,255,255,.08); align-items: baseline; }
body.sn-base .cmp-label { margin: 0; color: var(--sn-muted); font-size: .95rem; line-height: 1.45; font-weight: 500; min-width: 0; }
body.sn-base .cmp-zelle { margin: 0; min-width: 0; color: var(--sn-text); font-size: 1rem; line-height: 1.45; font-weight: 600; display: flex; align-items: baseline; gap: .5rem; overflow-wrap: anywhere; }
body.sn-base .cmp-zelle.v-ja::before { content: ''; flex: 0 0 auto; width: .95rem; height: .95rem; align-self: center; background: var(--sn-green); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
body.sn-base .cmp-zelle.v-nein { color: #6b8095; font-weight: 400; }
/* gleiche Werte ruhig, Unterschiede klar */
body.sn-base .cmp-zeile.is-gleich .cmp-zelle { color: var(--sn-muted); font-weight: 400; }
body.sn-base .cmp-zeile.is-gleich .cmp-zelle.v-ja::before { background: #5f8a78; }
body.sn-base .cmp-zeile.is-anders .cmp-label { color: var(--sn-text); }
body.sn-base .cmp.nur-unterschiede .cmp-zeile.is-gleich, body.sn-base .cmp.nur-unterschiede .cmp-gruppe.is-leer { display: none; }

/* Empfehlung */
body.sn-base .cmp .cmp-hc.is-empf .cmp-tag { background: rgba(45,255,160,.14); border-color: var(--sn-green); }
body.sn-base .cmp-zelle { position: relative; }
body.sn-base .cmp-zelle.is-empf::after { content: ''; position: absolute; inset: -.85rem -.6rem; background: rgba(45,255,160,.06); border-left: 1px solid rgba(45,255,160,.18); border-right: 1px solid rgba(45,255,160,.18); pointer-events: none; z-index: -1; }
body.sn-base .cmp-zeile { position: relative; isolation: isolate; }
body.sn-base .cmp-hc.is-empf::before { content: ''; position: absolute; inset: -1rem -.6rem -.9rem; border: 1px solid rgba(45,255,160,.35); border-bottom: 0; border-radius: 14px 14px 0 0; background: rgba(45,255,160,.05); pointer-events: none; z-index: -1; }
body.sn-base .cmp-head .cmp-row { isolation: isolate; }

body.sn-base .cmp-tauschen { animation: cmp-fade .25s ease both; }
@keyframes cmp-fade { from { opacity: .2; } to { opacity: 1; } }

@media (max-width: 720px) {
  body.sn-base .pf { padding: 1.3rem 1.1rem 1.2rem; }
  body.sn-base .cmp { --cmp-cols: minmax(0, 1fr) minmax(0, 1fr); }
  body.sn-base .cmp [data-col="3"] { display: none; }
  body.sn-base .cmp-row { column-gap: .9rem; }
  body.sn-base .cmp-head .cmp-label { display: none; }
  body.sn-base .cmp-zeile { row-gap: .4rem; padding: .8rem 0 .9rem; }
  body.sn-base .cmp-zeile .cmp-label { grid-column: 1 / -1; font-size: .72rem; font-family: var(--sn-mono); letter-spacing: .1em; text-transform: uppercase; }
  body.sn-base .cmp-zelle { font-size: .96rem; }
  body.sn-base .cmp-sel { font-size: .92rem; padding-left: .7rem; }
  body.sn-base .cmp-preis { font-size: 1.3rem; }
  body.sn-base .cmp-cta { align-self: stretch; padding-left: .6rem !important; padding-right: .6rem !important; letter-spacing: .06em !important; }
  body.sn-base .cmp-zelle.is-empf::after { inset: -.8rem -.45rem; }
  body.sn-base .cmp-hc.is-empf::before { inset: -1rem -.45rem -.9rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.sn-base .pf-ergebnis.is-da, body.sn-base .cmp-tauschen { animation: none; }
  body.sn-base .pf-opt span { transition: none; }
}

/* Bild unter "Was in Ihrer Website steckt" */
body.sn-base .steckt-bild { margin: 0 0 3rem; }
body.sn-base .steckt-bild .sb-reihe { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
body.sn-base .steckt-bild .sb-reihe img { display: block; width: 100%; aspect-ratio: 3 / 4; height: auto; object-fit: cover; object-position: top center; border-radius: 12px; border: 1px solid rgba(255,255,255,.12); background: #0d1219; box-shadow: 0 18px 40px -22px rgba(0,0,0,.7); }
body.sn-base .steckt-bild figcaption { margin-top: 1rem; color: var(--sn-muted); font-size: .92rem; line-height: 1.6; max-width: 70ch; }
@media (max-width: 720px) { body.sn-base .steckt-bild .sb-reihe { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; } }
