/* =====================================================================
   Vergleichsseite /compare, /de/compare (neu 19.11.2026). Baut auf css/inhaltsseite.css auf (ip-*),
   hier nur das Eigene: Ueberblick im Kopf, Vergleichstabelle (am Handy als Karten je Anbieter),
   Empfehlungen, Quellen. Inhalte und Fakten sind unveraendert aus der alten Seite uebernommen.
   ===================================================================== */

/* Ueberblick im Kopf */
.vg-blick { border-radius: 20px; border: 1px solid var(--line-strong); background: var(--bg-card); box-shadow: var(--shadow-lg); overflow: hidden; }
.vg-blick-kopf { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.vg-blick-kopf b { color: var(--text-bright); font-size: 1rem; font-weight: 700; }
.vg-blick-kopf span { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 0.85rem; }
.vg-blick-kopf img { width: 22px; height: 22px; }
.vg-blick ul { list-style: none; margin: 0; padding: 8px; }
.vg-blick li { display: flex; gap: 14px; padding: 14px 12px; border-radius: 12px; }
.vg-blick li + li { box-shadow: 0 -1px 0 var(--line); }
.vg-blick li > i { width: 32px; height: 32px; flex: none; display: flex; align-items: center; justify-content: center; border-radius: 10px; background: var(--primary-dim); color: var(--primary); }
.vg-blick li > i svg { width: 17px; height: 17px; }
.vg-blick li.them > i { background: rgba(var(--warning-rgb), 0.12); color: var(--warning); }
.vg-blick li > div { min-width: 0; }
.vg-blick small { display: block; margin-bottom: 2px; color: var(--primary); font-size: 0.76rem; font-weight: 700; }
.vg-blick li.them small { color: var(--warning); }
.vg-blick b { display: block; color: var(--text-bright); font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; }
.vg-blick li > div > span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 0.88rem; line-height: 1.5; }
.vg-blick li > div > span b { display: inline; color: var(--text-bright); font-size: inherit; letter-spacing: 0; }

/* Vergleichstabelle */
.vg-tabelle { overflow-x: auto; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-card); -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.vg-table { width: 100%; min-width: 1120px; border-collapse: collapse; font-size: 0.9rem; line-height: 1.5; }
.vg-table th, .vg-table td { padding: 16px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vg-table thead th { padding-top: 14px; padding-bottom: 14px; background: rgba(255, 255, 255, 0.025); color: var(--text-muted); font-size: 0.82rem; font-weight: 650; white-space: nowrap; }
.vg-table tbody tr:last-child th, .vg-table tbody tr:last-child td { border-bottom: 0; }
.vg-table tbody th { position: sticky; left: 0; z-index: 1; background: var(--bg-card); color: var(--text-bright); font-weight: 700; white-space: nowrap; }
.vg-table tbody tr { transition: background-color 0.15s; }
.vg-table tbody tr:hover td, .vg-table tbody tr:hover th { background-color: rgba(255, 255, 255, 0.018); }
.vg-table tbody tr:hover th { background-color: var(--bg-elevated); }
.vg-table td { color: var(--text); }
.vg-table td:nth-of-type(1), .vg-table td:nth-of-type(2) { min-width: 150px; }
.vg-table td:nth-of-type(4) { min-width: 200px; }
.vg-table td:nth-of-type(5) { min-width: 160px; }
.vg-table td small { display: block; margin-top: 3px; color: var(--text-muted); font-size: 0.8rem; font-weight: 400; }
.vg-table tr.us th, .vg-table tr.us td { background: rgba(var(--primary-rgb), 0.06); }
.vg-table tr.us th { background: #0e1d22; color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.vg-table tr.us th img { width: 22px; height: 22px; vertical-align: -6px; margin-right: 8px; }
.vg-table tr.us td:first-of-type { color: var(--text-bright); font-weight: 600; }
.vg-table tr.us td small { font-weight: 400; }
/* Ja / Nein / Teilweise */
.vg-table .cp-yes, .vg-table .cp-no, .vg-table .cp-part { font-weight: 600; }
.vg-table .cp-yes { color: var(--success); }
.vg-table .cp-no { color: var(--text-muted); font-weight: 500; }
.vg-table .cp-part { color: var(--warning); }
.vg-table .cp-yes > .vg-wert::before, .vg-table .cp-no > .vg-wert::before, .vg-table .cp-part > .vg-wert::before { content: ''; display: inline-block; width: 15px; height: 15px; margin-right: 7px; vertical-align: -2px; background: currentColor; -webkit-mask: var(--vg-sym) center / contain no-repeat; mask: var(--vg-sym) center / contain no-repeat; }
.vg-table .cp-yes > .vg-wert::before { --vg-sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.vg-table .cp-no > .vg-wert::before { --vg-sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 12h12'/%3E%3C/svg%3E"); }
.vg-table .cp-part > .vg-wert::before { --vg-sym: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Cpath d='M12 4a8 8 0 0 1 0 16z' fill='black'/%3E%3C/svg%3E"); }
.vg-table td.cp-yes small, .vg-table td.cp-no small, .vg-table td.cp-part small { font-weight: 400; }
.vg-hinweis { display: flex; align-items: flex-start; gap: 10px; max-width: 900px; margin: 16px 4px 0; color: var(--text-muted); font-size: 0.86rem; line-height: 1.6; }
.vg-hinweis svg { width: 17px; height: 17px; margin-top: 2px; color: var(--text-muted); }

/* Vorne / andere vorne: ip-tausch, nur die Symbole der rechten Karte anders */
.vg-andere li > svg { color: var(--warning) !important; }
.ip-haken li b { color: var(--text-bright); }
.ip-haken a { color: var(--primary); text-decoration: underline; text-decoration-color: rgba(var(--primary-rgb), 0.35); text-underline-offset: 3px; }

/* Empfehlungen */
.vg-fit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.vg-fit > div { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--line); }
.vg-fit > div:nth-child(2) { --rd: 0.06s; }
.vg-fit > div:nth-child(3) { --rd: 0.12s; }
.vg-fit > div:first-child { background: var(--bg-elevated); border-color: rgba(var(--primary-rgb), 0.4); }
.vg-fit i { width: 44px; height: 44px; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; border-radius: 13px; background: var(--primary-dim); color: var(--primary); }
.vg-fit i svg { width: 22px; height: 22px; }
.vg-fit h3 { margin: 0; color: var(--text-bright); font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; }
.vg-fit p { margin: 0; color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.vg-fit p b { color: var(--primary); }

/* Abschluss: drei Knoepfe */
.vg .ip-schluss-karte .ip-ctas { flex-wrap: wrap; justify-content: flex-end; max-width: 460px; }
.vg .ip-schluss-karte p .vg-preis, .vg .ip-schluss-karte p [data-price-only] { color: var(--text-bright); font-weight: 650; }

/* Quellen */
.vg-quellen .ip-kopf { margin-bottom: 26px; }
.vg-quellen h2 { font-size: clamp(1.5rem, 2.4vw, 2rem) !important; }
.vg-src { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; counter-reset: vgq; }
.vg-src li { counter-increment: vgq; position: relative; padding: 12px 0 12px 34px; border-top: 1px solid var(--line); color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }
.vg-src li::before { content: counter(vgq); position: absolute; left: 0; top: 13px; width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--bg-elevated); color: var(--text-muted); font-size: 0.75rem; font-weight: 700; }
.vg-src a { color: var(--text); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; overflow-wrap: anywhere; }
.vg-src a:hover { color: var(--text-bright); text-decoration-color: var(--primary); }

@media (max-width: 1000px) {
    .vg-fit { grid-template-columns: minmax(0, 1fr); }
    .vg .ip-schluss-karte .ip-ctas { max-width: none; justify-content: flex-start; }
}
/* Handy: jede Zeile der Tabelle wird eine Karte je Anbieter */
@media (max-width: 760px) {
    .vg-blick-kopf { flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px 16px; }
    .vg-blick li { padding: 12px 8px; gap: 12px; }
    .vg-tabelle { overflow: visible; border: 0; background: none; border-radius: 0; }
    .vg-table, .vg-table tbody, .vg-table tr, .vg-table th, .vg-table td { display: block; width: auto; min-width: 0; }
    .vg-table thead { display: none; }
    .vg-table tbody { display: flex; flex-direction: column; gap: 12px; }
    .vg-table tr { border-radius: 16px; border: 1px solid var(--line); background: var(--bg-card); overflow: hidden; }
    .vg-table tr.us { border-color: rgba(var(--primary-rgb), 0.5); }
    .vg-table tbody th { position: static; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
    .vg-table tr.us th { box-shadow: none; }
    .vg-table td { display: grid; grid-template-columns: 108px minmax(0, 1fr); column-gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
    .vg-table td::after { content: none; }
    .vg-table td[data-label]::before { grid-column: 1; grid-row: 1 / span 3; content: attr(data-label); color: var(--text-muted); font-size: 0.76rem; font-weight: 600; line-height: 1.5; }
    .vg-table td > .vg-wert { grid-column: 2; }
    .vg-table tbody tr:last-child td:last-child, .vg-table td:last-child { border-bottom: 0; }
    .vg-table tbody tr:hover td, .vg-table tbody tr:hover th { background-color: transparent; }
    .vg-table tr.us td { background: rgba(var(--primary-rgb), 0.05); }
    .vg-src { grid-template-columns: minmax(0, 1fr); }
}
