/* Preis-Vergleichstabelle (Block "pricing", templates/sicher3/blocks/pricing.html): Kategorie-Umschalter und Tabellen. */

.switch-box { text-align:center; margin-bottom: 2rem; }

.switch-box button.switch-button {
    display: inline-block;
    width: fit-content;
    padding: 0.1rem 1rem !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #103b61;
    border-color: #103b61;
    background-color:#ffffff;
}

.left-switch-button { border-radius: 8px 0px 0px 8px; border-right:none;}
.right-switch-button { border-radius: 0px 8px 8px 0px; border-left:none;}
.switch-box button.switch-button.is-active
{
     background: #103b61 !important;
     color: #ffffff !important;
}

.row-subcategory  { display:none }

.row-subcategory.is-active { display:block !important; margin-top:3px; }

.pricing-compare { display:none; margin-top: 2rem; }
.pricing-compare.is-active { display:block; }

.pricing-matrix { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pricing-matrix th, .pricing-matrix td { padding: 0.75rem 1rem; text-align: center; border-bottom: 1px solid #e2e2e2; border-right: 1px solid #e2e2e2; vertical-align: middle; word-wrap: break-word; }
.pricing-matrix th:last-child, .pricing-matrix td:last-child { border-right: none; }
.pricing-matrix th:first-child, .pricing-matrix td:first-child { text-align: left; font-weight: 600; border-right: 1px solid #e2e2e2; }
.pricing-matrix thead th { vertical-align: bottom; position: relative; }
.pricing-matrix thead th.pricing-matrix-highlighted { background: var(--bg-accent, #eff6ff); border-top: 3px solid var(--border-accent, #103b61); }
.pricing-matrix-title { font-weight: 700; font-size: 1.1rem; }
.pricing-matrix-price { font-weight: 700; font-size: 1.5rem; margin-top: 0.25rem; }
.pricing-matrix-price-period { font-weight: 400; font-size: 0.75rem; color: var(--text-muted, #6c757d); }
.pricing-matrix-underprice { font-size: 0.85rem; color: var(--text-muted, #6c757d); }
.pricing-matrix-detail-link { margin-top: 0.4rem; font-size: 0.8rem; font-weight: 400; }
.pricing-matrix-detail-link a { color: var(--border-accent, #103b61); text-decoration: underline; }
.pricing-matrix tr.pricing-matrix-section th { text-align: left; font-weight: 700; background: #f5f7fa; }
.pricing-matrix td.compare-muted { color: var(--text-muted, #6c757d); }
.pricing-matrix td.compare-included { background: var(--bg-accent, #eff6ff); font-weight: 600; }
.pricing-matrix tfoot td { border-bottom: none; padding-top: 1.25rem; }

.pricing-matrix-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.pricing-matrix-btn-icon { flex-shrink: 0; }

.pricebox-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: var(--border-accent, #103b61);
    color: #ffffff;
    padding: 0.15rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767px) {
button.switch-button  {
font-size:0.9rem
}

.pricing-matrix { table-layout: fixed; width: 100%; }
.pricing-matrix th, .pricing-matrix td { padding: 0.35rem 0.3rem; font-size: 0.72rem; white-space: normal; word-break: break-word; }
.pricing-matrix-title { font-size: 0.82rem; }
.pricing-matrix-price { font-size: 0.95rem; margin-top: 0.15rem; }
.pricing-matrix-underprice { font-size: 0.65rem; }
.pricebox-badge { font-size: 0.6rem; padding: 0.1rem 0.4rem; top: -0.55rem; }

.pricing-matrix-btn { padding: 0.6rem !important; gap: 0; }
.pricing-matrix-btn-label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}

/* Knöpfe, Formulare und Spalten der Vergleichstabelle (vorher Inline-Stile an jedem Element) */
.pricing-matrix-btn { display: unset; padding: .75rem 1.5rem; }
.pricing-matrix-btn.btn-primary { color: #fff; }
.pricing-matrix-form { padding: 0 !important; margin: 0 !important; }
.pricing-matrix-col-label { width: 26%; }
