/* ==========================================================================
   Buchhaltungs-Vergleich – Stylesheet
   Mobile-first, lokale Schriften (System-Stack), keine externen Ressourcen.
   ========================================================================== */

/* ---------- Grundlagen ---------- */
:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --surface-2: #eef1f5;
    --text: #1c2530;
    --text-muted: #5c6b7a;
    --border: #dfe4ea;
    --primary: #0e6ef2;
    --primary-dark: #0a5ac4;
    --primary-soft: #e7f0fe;
    --success: #12855f;
    --success-soft: #e2f4ec;
    --warn: #b96c00;
    --warn-soft: #fdf2df;
    --danger: #c22f2f;
    --danger-soft: #fbe9e9;
    --star: #f5a623;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(20, 30, 40, .08), 0 4px 14px rgba(20, 30, 40, .06);
    --shadow-lg: 0 6px 24px rgba(20, 30, 40, .12);
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
}
img { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
code, .code { font-family: var(--mono); font-size: .92em; background: var(--surface-2); border-radius: 4px; padding: .1em .35em; }
.muted { color: var(--text-muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
main.wrap { padding-top: 20px; padding-bottom: 48px; }

/* ---------- Header / Navigation ---------- */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 60;
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.logo { font-weight: 800; font-size: 1.1rem; color: var(--text); display: flex; align-items: center; gap: 8px; text-decoration: none; }
.logo .logo-badge { background: var(--primary); color: #fff; border-radius: 8px; padding: 2px 8px; font-size: .95rem; }
.main-nav { display: none; gap: 4px; margin-left: auto; }
.main-nav a {
    color: var(--text); padding: 8px 12px; border-radius: 8px; font-weight: 500; text-decoration: none;
}
.main-nav a:hover { background: var(--surface-2); text-decoration: none; }
.main-nav a.active { background: var(--primary-soft); color: var(--primary-dark); }
.nav-toggle {
    margin-left: auto; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px;
    padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer;
}
@media (min-width: 900px) {
    .main-nav { display: flex; }
    .nav-toggle { display: none; }
}
.mobile-nav { display: none; background: var(--surface); border-bottom: 1px solid var(--border); padding: 8px 16px 16px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 10px 8px; color: var(--text); font-weight: 500; border-radius: 8px; }
.mobile-nav a:hover { background: var(--surface-2); text-decoration: none; }
.mobile-nav a.active { background: var(--primary-soft); color: var(--primary-dark); }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(160deg, #0b2a55 0%, #0e6ef2 90%);
    color: #fff; border-radius: var(--radius); padding: 40px 24px; margin: 20px 0 28px;
}
.hero h1 { font-size: 2rem; margin-bottom: .4em; }
.hero p.lead { font-size: 1.1rem; opacity: .92; max-width: 46em; }
.hero .hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-stats { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats .stat strong { display: block; font-size: 1.5rem; }
.hero-stats .stat span { opacity: .8; font-size: .9rem; }
.hero .btn { background: #fff; color: var(--primary-dark); }
.hero .btn.btn-outline { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); }
.hero .btn:hover { background: #eef4ff; }
.hero .btn.btn-outline:hover { background: rgba(255,255,255,.12); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--surface-2); color: var(--text); border: 1px solid var(--border);
    border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: background .15s, transform .05s;
}
.btn:hover { background: #e3e8ee; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #0d6c4d; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #a52525; }
.btn-lg { padding: 13px 26px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-ext { font-size: .85em; }

/* ---------- Karten / Panels ---------- */
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.card + .card { margin-top: 16px; }
.section { margin: 34px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.grid { display: grid; gap: 16px; }
/* min-width: 0 verhindert, dass lange Wörter/Titel die Grid-Spalte über das Grid hinaus dehnen
   (war die Ursache für „rechts abgeschnittene“ Karten in Weiterlesen-Rastern) */
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Anbieterkarte ---------- */
.pcard {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px;
    position: relative; transition: box-shadow .15s, transform .15s;
}
.pcard:hover { box-shadow: var(--shadow-lg); }
.pcard .pcard-top { display: flex; align-items: flex-start; gap: 12px; }
.pcard .pcard-logo {
    width: 48px; height: 48px; flex: 0 0 48px; border-radius: 10px; background: var(--surface-2);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.15rem; color: var(--primary-dark);
    border: 1px solid var(--border); overflow: hidden;
}
.pcard .pcard-logo img { width: 100%; height: 100%; object-fit: contain; }
.pcard h3 { margin: 0; font-size: 1.05rem; }
.pcard .rating-line { display: flex; align-items: center; gap: 6px; font-size: .9rem; flex-wrap: wrap; }
.pcard .price-line { font-weight: 700; }
.pcard .pcard-desc { font-size: .92rem; color: var(--text-muted); }
.pcard .pcard-pros { margin: 0; padding-left: 1.1em; font-size: .88rem; color: var(--text-muted); }
.pcard .pcard-pros li::marker { content: "✓ "; color: var(--success); font-weight: 700; }
.pcard .pcard-actions { display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.pcard .pcard-actions .btn { flex: 1 1 auto; }
.pcard .badge-row { display: flex; gap: 6px; flex-wrap: wrap; }
.pcard .compare-check { display: flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--text-muted); }
.pcard .compare-check input { width: 16px; height: 16px; }

/* ---------- Badges ---------- */
.badge {
    display: inline-block; background: var(--surface-2); color: var(--text-muted);
    border-radius: 999px; padding: 2px 10px; font-size: .76rem; font-weight: 700; white-space: nowrap;
}
.badge-primary { background: var(--primary-soft); color: var(--primary-dark); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }

/* ---------- Sterne ---------- */
.stars { color: var(--star); letter-spacing: 1px; font-size: 1rem; position: relative; display: inline-block; line-height: 1; }
.stars .star { display: inline-block; }
.stars .star.empty { color: #d7dce2; }
.stars .star.full { color: var(--star); }
.stars .star.half {
    background: linear-gradient(90deg, var(--star) 50%, #d7dce2 50%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stars-count { color: var(--text-muted); font-size: .85rem; }
.rating-bar { display: flex; align-items: center; gap: 8px; font-size: .86rem; margin: 4px 0; }
.rating-bar .rb-label { flex: 0 0 130px; color: var(--text-muted); }
.rating-bar .rb-track { flex: 1; height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.rating-bar .rb-fill { height: 100%; background: var(--star); border-radius: 99px; }
.rating-bar .rb-val { flex: 0 0 38px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Tabs / Segmented ---------- */
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 10px; width: max-content; max-width: 100%; overflow-x: auto; }
.tabs button {
    border: 0; background: transparent; padding: 8px 14px; border-radius: 8px; font: inherit; font-weight: 600;
    cursor: pointer; color: var(--text-muted); white-space: nowrap;
}
.tabs button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

/* ---------- Formular-Elemente ---------- */
label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 4px; }
input[type=text], input[type=password], input[type=email], input[type=url], input[type=number], input[type=date], input[type=datetime-local], select, textarea {
    width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
    font: inherit; background: var(--surface); color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--primary-soft); border-color: var(--primary); }
textarea { min-height: 90px; resize: vertical; }
.field-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.checkbox-line { display: flex; align-items: center; gap: 8px; font-weight: 500; margin: 8px 0; }
.checkbox-line input { width: 17px; height: 17px; }
input[type=range] { width: 100%; accent-color: var(--primary); }

/* Alerts */
.alert { border-radius: var(--radius-sm); padding: 12px 16px; margin: 14px 0; font-size: .95rem; }
.alert ul { margin: 4px 0; padding-left: 1.2em; }
.alert-error { background: var(--danger-soft); color: var(--danger); border: 1px solid #efc6c6; }
.alert-success { background: var(--success-soft); color: var(--success); border: 1px solid #bfe6d5; }
.alert-info { background: var(--primary-soft); color: var(--primary-dark); border: 1px solid #c5d9f8; }
.alert-warn { background: var(--warn-soft); color: var(--warn); border: 1px solid #ecd7b2; }

/* ---------- Filter (Vergleich) ---------- */
.filter-layout { display: grid; gap: 20px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1020px) { .filter-layout { grid-template-columns: 290px 1fr; } }
.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); position: static; }
@media (max-width: 1019px) {
    .filter-panel { position: fixed; inset: 0; z-index: 100; overflow-y: auto; border-radius: 0; padding: 20px; display: none; }
    .filter-panel.open { display: block; }
    .filter-panel .filter-close { position: sticky; top: 0; float: right; }
}
.filter-group { border-top: 1px solid var(--border); padding: 10px 0; }
.filter-group:first-of-type { border-top: 0; }
.filter-group h4 { margin: 4px 0 8px; font-size: .95rem; }
.filter-opt { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: .92rem; font-weight: 400; }
.filter-opt input[type=checkbox], .filter-opt input[type=radio] { width: 16px; height: 16px; }
.filter-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.result-count { font-weight: 700; }
.chip {
    display: inline-flex; align-items: center; gap: 5px; background: var(--primary-soft); color: var(--primary-dark);
    border: 0; border-radius: 999px; padding: 4px 10px 4px 12px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; margin: 2px 4px 2px 0;
}
.chip::after { content: "×"; font-size: 1.1em; line-height: 1; }
.filter-adv-toggle { margin-top: 8px; }

/* ---------- Vergleichstabelle ---------- */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
table.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .92rem; }
table.cmp th, table.cmp td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
table.cmp thead th { background: var(--surface-2); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); position: sticky; top: 0; }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tr.group-row td { background: var(--surface-2); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
table.cmp td.f-yes { color: var(--success); font-weight: 700; }
table.cmp td.f-no { color: #b3bcc5; }
table.cmp td.f-paid { color: var(--warn); font-weight: 600; font-size: .85rem; }
.sort-btn { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; padding: 0; display: inline-flex; gap: 4px; align-items: center; color: inherit; }
.sort-btn .arrow { font-size: .8em; }
th.sorted-asc .arrow, th.sorted-desc .arrow { color: var(--primary); }

/* ---------- Sticky Vergleichsleiste ---------- */
.compare-bar {
    position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 80;
    background: var(--text); color: #fff; border-radius: 999px; padding: 8px 10px 8px 18px;
    display: none; align-items: center; gap: 10px; box-shadow: var(--shadow-lg); max-width: calc(100vw - 24px);
}
.compare-bar.show { display: flex; }
.compare-bar .cb-count { font-weight: 700; white-space: nowrap; }
.compare-bar .cb-items { display: flex; gap: 6px; flex-wrap: wrap; }
.compare-bar .cb-chip { background: rgba(255,255,255,.15); border-radius: 999px; padding: 2px 10px; font-size: .82rem; display: inline-flex; gap: 6px; align-items: center; }
.compare-bar .cb-chip button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1em; padding: 0; }

/* ---------- Detailseite ---------- */
.detail-hero { display: flex; gap: 18px; flex-wrap: wrap; align-items: flex-start; margin-bottom: 22px; }
.detail-logo {
    width: 72px; height: 72px; flex: 0 0 72px; border-radius: 14px; background: var(--surface);
    border: 1px solid var(--border); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; font-weight: 800; color: var(--primary-dark);
}
.detail-logo img { width: 100%; height: 100%; object-fit: contain; }
.score-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 18px; box-shadow: var(--shadow); text-align: center; min-width: 130px; }
.score-box .score-num { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.score-box .score-label { font-size: .8rem; color: var(--text-muted); }
.feature-checklist { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.feature-checklist li { display: flex; gap: 8px; align-items: baseline; font-size: .95rem; }
.feature-checklist .fi { font-weight: 800; }
.fi-yes { color: var(--success); }
.fi-no { color: #b3bcc5; }
.fi-paid { color: var(--warn); }
.pros-cons { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros-cons ul { margin: 0; padding-left: 1.2em; }
.pros-cons .pros li::marker { content: "✓ "; color: var(--success); font-weight: 700; }
.pros-cons .cons li::marker { content: "✗ "; color: var(--danger); font-weight: 700; }
.plan-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.plan-table th, .plan-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.plan-table thead th { background: var(--surface-2); }
.feat-matrix { width: 100%; border-collapse: collapse; font-size: .93rem; }
.feat-matrix th, .feat-matrix td { padding: 8px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.feat-matrix td:last-child { text-align: right; white-space: nowrap; }
.feature-group-title td { background: var(--surface-2); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }

/* ---------- Preisrechner ---------- */
.price-calc { display: flex; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.price-calc .calc-out { font-size: 1.4rem; font-weight: 800; }
.price-calc .calc-note { font-size: .85rem; color: var(--text-muted); }

/* ---------- Bewertungen (Reviews) ---------- */
.review-item { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 12px; background: var(--surface); }
.review-item .review-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.review-item .review-meta { font-size: .84rem; color: var(--text-muted); }
.review-item .review-title { font-weight: 700; }
.review-dist { display: flex; flex-direction: column; gap: 4px; }
.review-dist .rd-row { display: grid; grid-template-columns: 34px 1fr 42px; gap: 8px; align-items: center; font-size: .85rem; }
.review-dist .rd-track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.review-dist .rd-fill { height: 100%; background: var(--star); border-radius: 99px; }
.review-summary { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .review-summary { grid-template-columns: 200px 1fr; } }
.review-avg { text-align: center; }
.review-avg .num { font-size: 2.4rem; font-weight: 800; line-height: 1.1; }
.helpful-btn { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: .82rem; cursor: pointer; }
.helpful-btn:hover { background: var(--primary-soft); }
.star-input { display: inline-flex; gap: 4px; }
.star-input button { background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: #d7dce2; padding: 0 2px; line-height: 1; }
.star-input button.on { color: var(--star); }
.review-warn-note { font-size: .84rem; color: var(--text-muted); }

/* ---------- Finder ---------- */
.finder-progress { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin-bottom: 22px; }
.finder-progress .fp-fill { height: 100%; background: var(--primary); border-radius: 99px; transition: width .3s; }
.finder-q h2 { font-size: 1.3rem; }
.finder-opts { display: grid; gap: 10px; }
.finder-opt { text-align: left; padding: 14px 18px; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius-sm); font: inherit; cursor: pointer; font-weight: 500; }
.finder-opt:hover { border-color: var(--primary); background: var(--primary-soft); }
.finder-opt small { display: block; color: var(--text-muted); font-weight: 400; }
.finder-result .fit-score { font-size: 1.5rem; font-weight: 800; color: var(--success); }
.finder-back { background: none; border: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: 0; margin-bottom: 14px; }

/* ---------- Blog ---------- */
.blog-article { max-width: 780px; margin: 0 auto; }
.blog-article .article-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--text-muted); font-size: .88rem; margin-bottom: 22px; }
.article-toc { background: var(--surface-2); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; font-size: .93rem; }
.article-toc ol { margin: 6px 0 0; padding-left: 1.3em; }
.article-body h2 { font-size: 1.35rem; margin-top: 1.6em; scroll-margin-top: 80px; }
.article-body h3 { font-size: 1.15rem; margin-top: 1.4em; scroll-margin-top: 80px; }
.article-body blockquote { margin: 1.2em 0; padding: 10px 18px; border-left: 4px solid var(--primary); background: var(--primary-soft); border-radius: 0 8px 8px 0; }
.article-body table { border-collapse: collapse; width: 100%; font-size: .92rem; margin: 1em 0; }
.article-body th, .article-body td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.article-body th { background: var(--surface-2); }
.article-body .note-box { background: var(--warn-soft); border: 1px solid #ecd7b2; color: var(--warn); border-radius: var(--radius-sm); padding: 12px 16px; margin: 1.2em 0; }
.article-body .tip-box { background: var(--success-soft); border: 1px solid #bfe6d5; color: var(--success); border-radius: var(--radius-sm); padding: 12px 16px; margin: 1.2em 0; }
.blog-card { display: flex; flex-direction: column; gap: 6px; }
.blog-card .bc-cat { font-size: .78rem; font-weight: 700; color: var(--primary-dark); text-transform: uppercase; letter-spacing: .05em; }
.blog-card h3 { margin: 0; font-size: 1.05rem; }
.blog-card .bc-meta { font-size: .84rem; color: var(--text-muted); }

/* ---------- „Empfohlene Anbieter“-Boxen am Artikelende ---------- */
.blog-provider-boxes {
    display: grid; grid-template-columns: 1fr; gap: 14px;
    margin-top: 34px; padding-top: 22px; border-top: 2px solid var(--border);
    max-width: 100%;
}
.blog-provider-boxes > h2 { margin: 0 0 2px; font-size: 1.2rem; }
.blog-provider-boxes .pbox {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 14px 16px;
    box-shadow: var(--shadow); min-width: 0; overflow-wrap: break-word;
}
.pbox .pbox-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-width: 0; }
.pbox .pcard-logo {
    width: 40px; height: 40px; flex: 0 0 40px; border-radius: 9px; background: var(--surface-2);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1rem;
    color: var(--primary-dark); border: 1px solid var(--border);
}
.pbox .pbox-head strong { font-size: .98rem; }
.pbox .rating-line { display: flex; align-items: center; gap: 6px; font-size: .85rem; flex-wrap: wrap; }
.pbox .pbox-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pbox .pbox-actions .btn { flex: 0 1 auto; }
.pbox .tiny { font-size: .74rem; margin-top: 8px; }
@media (min-width: 640px) {
    .blog-provider-boxes { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 14px 18px; font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.3em; line-height: 1; color: var(--text-muted); }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 18px 16px; }

/* ---------- Footer ---------- */
.site-footer { background: #16202b; color: #aab6c2; margin-top: 40px; padding: 36px 0 24px; font-size: .92rem; }
.site-footer a { color: #cfe0f5; }
.site-footer .footer-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }
.footer-trust {
    background: var(--success-soft); color: var(--success); border: 1px solid #bfe6d5;
    border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9rem; display: flex; gap: 8px; align-items: flex-start;
}
.footer-bottom { border-top: 1px solid #2a3644; margin-top: 26px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Affiliate-Hinweis ---------- */
.aff-note { font-size: .8rem; color: var(--text-muted); margin: 6px 0 0; }
.aff-star { color: var(--warn); font-weight: 700; }

/* ---------- Admin ---------- */
.admin-body { background: var(--surface-2); }
.admin-layout { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 900px) { .admin-layout { grid-template-columns: 210px 1fr; } }
.admin-nav { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.admin-nav a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-weight: 500; text-decoration: none; }
.admin-nav a:hover { background: var(--surface-2); text-decoration: none; }
.admin-nav a.active { background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.admin-table th, .admin-table td { padding: 9px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.admin-table th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); }
.admin-kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 800px) { .admin-kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.kpi .kpi-num { font-size: 1.6rem; font-weight: 800; }
.kpi .kpi-label { font-size: .82rem; color: var(--text-muted); }
.chart-box { width: 100%; height: 260px; }
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { width: 100%; max-width: 380px; }
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: 0 0 44px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: #cbd3da; border-radius: 99px; transition: .2s; cursor: pointer; }
.switch .slider::before { content: ""; position: absolute; height: 18px; width: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .slider { background: var(--success); }
.switch input:checked + .slider::before { transform: translateX(20px); }

/* ---------- Trust-Elemente ---------- */
.trust-row { display: flex; gap: 18px; flex-wrap: wrap; }
.trust-item { display: flex; gap: 10px; align-items: flex-start; flex: 1 1 220px; }
.trust-item .ti-icon { font-size: 1.4rem; }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { font-size: .86rem; color: var(--text-muted); }

/* ---------- Tabellen-Responsive Helper ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Install */
.install-body { display: flex; min-height: 100vh; align-items: flex-start; justify-content: center; padding: 40px 16px; }
.install-card { max-width: 520px; width: 100%; }

/* Print */
@media print {
    .site-header, .site-footer, .compare-bar, .filter-panel, .btn { display: none !important; }
    body { background: #fff; }
    .card, .pcard { box-shadow: none; }
}
