/* =====================================================================
   /wissen/vergleiche/…  –  Vergleichsseiten (Präfix vg-)
   Ergänzungen zu main.css (page-hero, section-title, hub-cards, cta-section)
   und zur Hintergrund-Sektion .fp-seo aus feature-page.css. Tokens aus
   main.css (--text, --text-muted, --border, --violet, --surface).
   ===================================================================== */

/* ---- Sektionsabstand: die klassischen Sektionen tragen seit dem Token-Umbau keinen eigenen Abstand mehr ---- */
.vg-page main > section:not(.page-hero):not(.cta-section):not(.vg-alt):not(.vg-sources) { padding: clamp(56px, 7vw, 96px) 0; }
.vg-page main > section.has-gradient + section, .vg-page main > section + section.has-gradient { padding-top: clamp(56px, 7vw, 96px); }
.vg-page main > .vg-fp { margin: clamp(24px, 4vw, 48px) 0; }

/* Links im Fließtext: unterstrichen, damit sie nicht allein über die Farbe erkennbar sind (Lighthouse link-in-text-block) */
.vg-page .vg-note a, .vg-page .vg-two-card a, .vg-page .vg-q-card a, .vg-page .check-list a, .vg-page .vg-alt a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---- Kopf: Datum, Autor, Prüfrhythmus ---- */
.vg-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 22px 0 0; padding: 0; font-size: 14px; color: var(--text-muted); }
.vg-meta span { display: inline-flex; align-items: center; gap: 7px; }
.vg-meta svg { color: var(--violet); flex: none; }
.vg-hero .hero-sub { max-width: 78ch; }
/* Lange Komposita (Teilnehmermanagement-Software): Silbentrennung durch den Browser (lang=de), kein Umbruch mitten im Wort. */
.vg-hero h1 { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 12 5 5; overflow-wrap: anywhere; }
@media (max-width: 480px) { .vg-hero h1 { font-size: clamp(30px, 9vw, 40px); } }

/* ---- Drei Fragen ---- */
.vg-q { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 800px) { .vg-q { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.vg-q-card { padding: 26px 26px 24px; border: 1px solid var(--border); border-radius: 18px; background: var(--white, #fff); display: flex; flex-direction: column; gap: 10px; }
.vg-q-card em { font-style: normal; font-size: 11px; font-family: var(--font-micro); font-weight: 700; letter-spacing: var(--ds-type-eyebrow-tracking); text-transform: uppercase; color: var(--violet); }
.vg-q-card h3 { margin: 0; font-size: 19px; line-height: 1.3; letter-spacing: -.015em; }
.vg-q-card p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-muted); }
.vg-q-card p b { color: var(--text); font-weight: 600; }

/* ---- Hintergrund-Sektion: nur, was hier anders ist ---- */
.vg-fp .fp-seo-body h2 { font-size: clamp(24px, 2.3vw, 30px); line-height: 1.15; }
.vg-fp .fp-seo-body p b { color: var(--text); }
.vg-fn { font-size: .68em; line-height: 0; vertical-align: super; margin-left: 2px; }
.vg-fn a { color: var(--violet); text-decoration: none; font-weight: 600; padding: 0 1px; }
.vg-fn a:hover, .vg-fn a:focus-visible { text-decoration: underline; }

/* ---- Tabellen: erste Spalte sticky, Text statt Symbol ---- */
.vg-table-wrap { margin-top: 28px; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 16px; background: var(--white, #fff); }
.vg-table-wrap:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }
.vg-table { min-width: 1080px; font-size: 14px; }
.vg-table--excel { min-width: 720px; }
.vg-table th, .vg-table td { padding: 12px 16px; vertical-align: top; line-height: 1.5; border-bottom: 1px solid var(--border); }
.vg-table thead th { position: sticky; top: 0; background: var(--surface, #F9FAFB); color: var(--text); font-weight: 700; font-size: 13px; padding-top: 14px; padding-bottom: 14px; z-index: 2; }
.vg-table tbody th { text-align: left; font-weight: 700; color: var(--text); background: var(--white, #fff); }
.vg-table thead th:first-child, .vg-table tbody th { position: sticky; left: 0; z-index: 3; box-shadow: 1px 0 0 var(--border); min-width: 170px; }
.vg-table thead th:first-child { z-index: 4; }
.vg-table td { color: var(--text-muted); min-width: 150px; }
.vg-table .vg-col-airlst { background: rgba(117, 49, 174, .05); color: var(--text); }
.vg-table thead .vg-col-airlst { color: var(--violet); }
.vg-table tbody tr:last-child th, .vg-table tbody tr:last-child td { border-bottom: 0; }
.vg-table tbody tr:hover td { background: transparent; }
.vg-table tbody tr:hover td.vg-col-airlst { background: rgba(117, 49, 174, .05); }
.vg-note { margin: 16px 0 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.vg-note a { color: var(--violet); }

/* Ja / Nein / Teilweise mit Wort, nie Symbol allein */
.vg-yn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12.5px; font-family: var(--font-micro); font-weight: 600; white-space: nowrap; }
.vg-yn--y { background: #E4F5EA; color: #177A3E; }
.vg-yn--n { background: #FBE7EB; color: #B4233C; }
.vg-yn--p { background: #FDF1DC; color: #8A4E00; }

/* ---- Eventbrite-Alternative: zwei Karten ---- */
.vg-two { display: grid; gap: 16px; margin-top: 30px; }
@media (min-width: 800px) { .vg-two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
.vg-two-card { padding: 28px 28px 26px; border-radius: 18px; background: var(--white, #fff); border: 1px solid var(--border); }
.vg-two-card h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.25; letter-spacing: -.015em; }
.vg-two-card p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }
.vg-two-card p + p { margin-top: 12px; }
.vg-two-card a { color: var(--violet); }

/* ---- Zehn Prüffragen ---- */
.vg-check { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: vg; }
@media (min-width: 800px) { .vg-check { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; } }
.vg-check li { counter-increment: vg; position: relative; padding: 18px 20px 18px 62px; border: 1px solid var(--border); border-radius: 14px; background: var(--white, #fff); font-size: 15px; line-height: 1.55; color: var(--text-muted); }
.vg-check li::before { content: counter(vg, decimal-leading-zero); position: absolute; left: 18px; top: 18px; width: 30px; height: 30px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: rgba(117, 49, 174, .1); color: var(--violet); font-variant-numeric: tabular-nums; }
.vg-check li b { display: block; color: var(--text); margin-bottom: 3px; }

/* ---- Zweiter Weg unter dem CTA ---- */
.vg-alt { padding: 0 0 40px; }
.vg-alt p { margin: 0; text-align: center; font-size: 15px; color: var(--text-muted); }
.vg-alt a { color: var(--violet); font-weight: 600; }

/* ---- Quellen und Historie ---- */
.vg-sources { padding: 56px 0 72px; border-top: 1px solid var(--border); }
.vg-h-small { font-size: 22px; letter-spacing: -.015em; margin: 0 0 10px; }
.vg-sources .vg-h-small + .vg-note { margin-top: 0; }
.vg-src { margin: 18px 0 40px; padding: 0 0 0 22px; font-size: 14px; line-height: 1.7; color: var(--text-muted); columns: 1; }
@media (min-width: 800px) { .vg-src { columns: 2; column-gap: 40px; } }
.vg-src li { break-inside: avoid; }
.vg-src a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.vg-src span { color: var(--text-muted); }
.vg-history { list-style: none; margin: 0; padding: 0; font-size: 14px; line-height: 1.7; color: var(--text-muted); }
.vg-history time { display: inline-block; min-width: 96px; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }

/* ---- Dunkles Design ---- */
[data-theme="dark"] .vg-q-card,
[data-theme="dark"] .vg-two-card,
[data-theme="dark"] .vg-check li,
[data-theme="dark"] .vg-table-wrap,
[data-theme="dark"] .vg-table tbody th { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.12); }
[data-theme="dark"] .vg-table thead th { background: #1B1D24; }
[data-theme="dark"] .vg-table th, [data-theme="dark"] .vg-table td { border-bottom-color: rgba(255,255,255,.1); }
[data-theme="dark"] .vg-table thead th:first-child, [data-theme="dark"] .vg-table tbody th { box-shadow: 1px 0 0 rgba(255,255,255,.12); }
[data-theme="dark"] .vg-table .vg-col-airlst { background: rgba(180, 140, 245, .1); }
[data-theme="dark"] .vg-yn--y { background: rgba(23,122,62,.25); color: #8FE0B0; }
[data-theme="dark"] .vg-yn--n { background: rgba(180,35,60,.25); color: #F5A3B3; }
[data-theme="dark"] .vg-yn--p { background: rgba(138,78,0,.3); color: #F3C77A; }
[data-theme="dark"] .vg-sources { border-top-color: rgba(255,255,255,.12); }
