/* ===================================
   SYNNIO PRICING PRO - MIT !IMPORTANT
   Überschreibt Elementor & andere Themes
   =================================== */

/* Hidden utility class - überschreibt alle anderen display-Regeln */
.synnio-pricing-modern .hidden {
    display: none !important;
}

.synnio-pricing-modern {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===================================
   VOLLE BREITE FÜR ELEMENTOR
   =================================== */
.synnio-pricing-full-width {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Elementor Container Override */
.elementor-widget-container .synnio-pricing-full-width,
.elementor-section .synnio-pricing-full-width,
.elementor-container .synnio-pricing-full-width {
    max-width: 100% !important;
    width: 100% !important;
}

/* Elementor Inner Section Full Width */
.elementor-section-full_width .synnio-pricing-modern,
.elementor-section-boxed .synnio-pricing-full-width {
    max-width: 100% !important;
    width: 100% !important;
}

/* ===================================
   OPTIONALER TITEL
   =================================== */
.pricing-title-section {
    text-align: center;
    margin-bottom: 40px;
}

.pricing-main-title {
    font-size: 36px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin: 0 0 12px 0 !important;
}

.pricing-subtitle {
    font-size: 16px !important;
    color: #6b7280 !important;
    margin: 0 !important;
}

/* ===================================
   TABELLE
   =================================== */
.pricing-table-modern {
    background: white !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
    margin-bottom: 32px !important;
}

.pricing-table-modern table {
    width: 100% !important;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
}

/* ===================================
   GRADIENT HEADER - MIT !IMPORTANT
   =================================== */
.pricing-header-gradient {
    background: linear-gradient(90deg, 
        var(--header-bg, #0f4c81) 0%, 
        var(--header-bg, #2563eb) 50%, 
        var(--header-bg, #3b82f6) 100%
    ) !important;
    color: var(--header-text, #ffffff) !important;
}

.pricing-header-gradient tr {
    height: 120px !important;
}

.pricing-header-gradient th {
    padding: 30px 20px !important;
    text-align: center !important;
    border-right: 1px solid rgba(255,255,255,0.15) !important;
    vertical-align: middle !important;
    color: var(--header-text, #ffffff) !important;
}

.pricing-header-gradient th:last-child {
    border-right: none !important;
}

/* LEISTUNGEN HEADER LINKS */
.header-leistungen {
    width: 35% !important;
    text-align: left !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    color: var(--header-text, #ffffff) !important;
}

/* PAKET HEADER - MIT !IMPORTANT */
.header-package {
    width: calc(65% / 3) !important;
}

.package-title {
    font-size: var(--package-title-size, 22px) !important;
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    line-height: 1.2 !important;
    color: var(--header-text, #ffffff) !important;
}

.package-price {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    position: relative !important;
    min-height: 60px !important;
}

.price-amount {
    font-size: 32px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    color: var(--header-text, #ffffff) !important;
}

.price-period {
    font-size: 14px !important;
    opacity: 0.9 !important;
    font-weight: 400 !important;
    color: var(--header-text, #ffffff) !important;
}

/* ===================================
   LEISTUNGS-ZEILEN - MIT !IMPORTANT
   =================================== */
.feature-row {
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background-color 0.2s !important;
}

.feature-row:hover {
    background-color: #fafafa !important;
}

.row-even {
    background-color: #ffffff !important;
}

.row-odd {
    background-color: #f9fafb !important;
}

.feature-name-cell {
    padding: 20px 24px !important;
    text-align: left !important;
    font-size: var(--feature-text-size, 15px) !important;
    color: #1f2937 !important;
    font-weight: 400 !important;
    border-right: 1px solid #f0f0f0 !important;
}

.feature-value-cell {
    padding: 20px !important;
    text-align: center !important;
    border-right: 1px solid #f0f0f0 !important;
}

.feature-value-cell:last-child {
    border-right: none !important;
}

/* ===================================
   CHECKMARK KREIS
   =================================== */
.checkmark-circle {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.checkmark-circle svg {
    filter: drop-shadow(0 2px 4px rgba(37, 99, 235, 0.2)) !important;
}

/* ===================================
   TEXT-WERTE - MIT !IMPORTANT
   =================================== */
.feature-text-value {
    color: var(--feature-value-color, #2563eb) !important;
    font-weight: 600 !important;
    font-size: var(--feature-text-size, 15px) !important;
}

/* ===================================
   STRICH FÜR "NICHT ENTHALTEN"
   =================================== */
.feature-dash {
    color: #9ca3af !important;
    font-size: 20px !important;
    font-weight: 300 !important;
}

/* ===================================
   ZENTRALE BUTTONS - MIT !IMPORTANT
   =================================== */
.pricing-buttons-center {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    padding: 0 !important;
    margin-top: 32px !important;
}

.pricing-btn-center {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 16px 48px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border-radius: 6px !important;
    transition: all 0.3s !important;
    cursor: pointer !important;
}

/* DEMO ANFORDERN - MIT !IMPORTANT */
.btn-demo-center {
    background: var(--demo-btn-bg, #ffffff) !important;
    color: var(--demo-btn-text, #2563eb) !important;
    border: 2px solid var(--demo-btn-border, #2563eb) !important;
    font-size: var(--demo-btn-size, 16px) !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15) !important;
}

.btn-demo-center:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25) !important;
    color: var(--demo-btn-text, #2563eb) !important;
}

/* PAKET BEAUFTRAGEN - MIT !IMPORTANT */
.btn-buchen-center {
    background: var(--buchen-btn-bg, #2563eb) !important;
    color: var(--buchen-btn-text, #ffffff) !important;
    border: 2px solid var(--buchen-btn-border, #2563eb) !important;
    font-size: var(--buchen-btn-size, 16px) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3) !important;
}

.btn-buchen-center:hover {
    opacity: 0.9 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4) !important;
    color: var(--buchen-btn-text, #ffffff) !important;
}

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 1200px) {
    .package-title {
        font-size: calc(var(--package-title-size, 22px) * 0.9) !important;
    }
    
    .price-amount {
        font-size: 28px !important;
    }
}

@media (max-width: 992px) {
    .pricing-table-modern {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .pricing-table-modern table {
        min-width: 900px !important;
    }
    
    .package-title {
        font-size: calc(var(--package-title-size, 22px) * 0.8) !important;
    }
    
    .price-amount {
        font-size: 24px !important;
    }
}

@media (max-width: 768px) {
    .synnio-pricing-modern {
        padding: 0 12px !important;
    }
    
    .pricing-main-title {
        font-size: 28px !important;
    }
    
    .pricing-table-modern table {
        min-width: 800px !important;
    }
    
    .header-leistungen {
        font-size: 16px !important;
    }
    
    .package-title {
        font-size: calc(var(--package-title-size, 22px) * 0.7) !important;
    }
    
    .price-amount {
        font-size: 22px !important;
    }
    
    .price-period {
        font-size: 12px !important;
    }
    
    .feature-name-cell {
        font-size: calc(var(--feature-text-size, 15px) * 0.9) !important;
        padding: 16px 20px !important;
    }
    
    .feature-value-cell {
        padding: 16px !important;
    }
    
    .pricing-buttons-center {
        flex-direction: column !important;
        gap: 12px !important;
    }
    
    .pricing-btn-center {
        width: 100% !important;
        max-width: 300px !important;
    }
}

/* ===================================
   EMPTY STATE
   =================================== */
.synnio-pricing-empty {
    text-align: center !important;
    padding: 60px 40px !important;
    color: #9ca3af !important;
    font-size: 16px !important;
    font-style: italic !important;
    background: white !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
}

/* ===================================
   BILLING TOGGLE SWITCH
   =================================== */
.synnio-billing-toggle {
    display: flex !important;
    justify-content: center !important;
    margin-bottom: 30px !important;
}

.billing-toggle-container {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    background: #f3f4f6 !important;
    padding: 8px 20px !important;
    border-radius: 50px !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06) !important;
}

.billing-label {
    font-size: 15px !important;
    font-weight: 500 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: color 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.billing-label.active {
    color: #1f2937 !important;
    font-weight: 600 !important;
}

/* Toggle Switch Styling */
.billing-switch {
    position: relative !important;
    width: 56px !important;
    height: 28px !important;
    cursor: pointer !important;
}

.billing-switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.billing-slider {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    border-radius: 28px !important;
    transition: all 0.3s ease !important;
}

.billing-slider:before {
    content: '' !important;
    position: absolute !important;
    height: 22px !important;
    width: 22px !important;
    left: 3px !important;
    bottom: 3px !important;
    background: white !important;
    border-radius: 50% !important;
    transition: transform 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}

.billing-toggle-input:checked + .billing-slider:before {
    transform: translateX(28px) !important;
}

/* Savings Badge */
.savings-badge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3) !important;
    animation: pulse-savings 2s ease-in-out infinite !important;
}

@keyframes pulse-savings {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* ===================================
   PRICE DISPLAY ADJUSTMENTS
   =================================== */
.price-display {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
}

.price-display.price-yearly {
    position: relative !important;
}

/* Jährlich - Hinweistext "mtl. bei jährlicher Abrechnung" */
.price-period-yearly {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 400 !important;
    text-align: center !important;
    line-height: 1.3 !important;
    max-width: 140px !important;
}

/* Ersparnis-Badge inline unter dem Preis */
.price-savings-inline {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 4px 10px !important;
    border-radius: 12px !important;
    margin-top: 6px !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.3) !important;
}

.price-savings {
    position: absolute !important;
    top: -8px !important;
    right: -40px !important;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    color: white !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 10px !important;
    white-space: nowrap !important;
}

/* ===================================
   RESPONSIVE BILLING TOGGLE
   =================================== */
@media (max-width: 768px) {
    .billing-toggle-container {
        flex-direction: column !important;
        gap: 12px !important;
        padding: 16px 24px !important;
        border-radius: 16px !important;
    }

    .billing-label {
        font-size: 14px !important;
    }

    .billing-label.billing-yearly {
        flex-direction: column !important;
        gap: 6px !important;
    }

    .savings-badge {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }

    .price-savings {
        position: static !important;
        margin-top: 4px !important;
    }

    .price-period-yearly {
        font-size: 10px !important;
        max-width: 120px !important;
    }

    .price-savings-inline {
        font-size: 10px !important;
        padding: 3px 8px !important;
    }
}

/* ===================================
   PHASE 4: OPTIONALE ADD-ONS IN DER PREISTABELLE
   =================================== */
.synnio-pricing-modern .addon-section-row .addon-section-header {
    background: #f1f5f9 !important;
    color: #475569 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 20px !important;
    text-align: left !important;
    border-top: 2px solid #e2e8f0 !important;
}
.synnio-pricing-modern .addon-row .feature-name-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.synnio-pricing-modern .addon-tag {
    display: inline-block;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 8px;
    border-radius: 10px;
}
.synnio-pricing-modern .addon-plus-price {
    display: inline-block;
    font-weight: 700;
    font-size: 15px;
    color: #4338ca;
    white-space: nowrap;
}
.synnio-pricing-modern .addon-plus-price.hidden {
    display: none !important;
}

/* Voller Jahresgesamtpreis (klein, unter der Ersparnis) — Transparenz */
.synnio-pricing-modern .price-yearly-total {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 600;
    opacity: 0.75;
    white-space: nowrap;
}

/* ===================================
   LEISTUNGS-INFO (ⓘ) + POPUP
   =================================== */
.synnio-pricing-modern .synnio-feat-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-left: 7px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--feature-value-color, #2563eb);
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    vertical-align: middle;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.synnio-pricing-modern .synnio-feat-info:hover { transform: scale(1.15); opacity: 0.9; }

.synnio-pricing-modern .synnio-feat-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.synnio-pricing-modern .synnio-feat-modal.is-open { display: flex; }
.synnio-pricing-modern .synnio-feat-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
}
.synnio-pricing-modern .synnio-feat-modal-box {
    position: relative;
    background: #fff;
    border-radius: 18px;
    max-width: 600px;
    width: 100%;
    padding: 40px 44px 36px;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.35);
    text-align: left;
    overflow: hidden;
    animation: synnioFeatPop 0.22s ease;
}
/* dezenter Synnio-Akzentstreifen oben */
.synnio-pricing-modern .synnio-feat-modal-box::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--header-bg, #1e3a8a) 0%, var(--feature-value-color, #2563eb) 100%);
}
@keyframes synnioFeatPop {
    from { opacity: 0; transform: translateY(8px) scale(0.98); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.synnio-pricing-modern .synnio-feat-modal-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #f1f5f9;
    font-size: 22px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.synnio-pricing-modern .synnio-feat-modal-close:hover { background: #e2e8f0; color: #1e293b; }
.synnio-pricing-modern .synnio-feat-modal-title {
    margin: 0 0 16px;
    padding-right: 36px;
    font-size: 22px;
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
}
.synnio-pricing-modern .synnio-feat-modal-text {
    margin: 0 0 26px;
    font-size: 15.5px;
    line-height: 1.7;
    color: #475569;
    white-space: pre-line; /* Zeilenumbrüche aus dem Info-Text übernehmen */
}
.synnio-pricing-modern .synnio-feat-modal-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    padding: 13px 28px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--header-bg, #1e3a8a) 0%, var(--feature-value-color, #2563eb) 100%);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.30);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.synnio-pricing-modern .synnio-feat-modal-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.40);
    text-decoration: none;
    color: #fff;
}

@media (max-width: 640px) {
    .synnio-pricing-modern .synnio-feat-modal-box { padding: 32px 24px 28px; border-radius: 14px; }
    .synnio-pricing-modern .synnio-feat-modal-title { font-size: 19px; }
}

/* ===================================
   HINWEIS-TEXT UNTER DER TABELLE (pro Modul)
   =================================== */
.synnio-pricing-modern .synnio-pricing-footer-note {
    margin-top: 18px;
    padding: 20px 24px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--feature-value-color, #2563eb);
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.65;
    color: #475569;
}
.synnio-pricing-modern .synnio-pricing-footer-note p { margin: 0 0 10px; }
.synnio-pricing-modern .synnio-pricing-footer-note p:last-child { margin-bottom: 0; }
.synnio-pricing-modern .synnio-pricing-footer-note strong { color: #1e293b; }
.synnio-pricing-modern .synnio-pricing-footer-note a {
    color: var(--feature-value-color, #2563eb);
    font-weight: 600;
    text-decoration: none;
}
.synnio-pricing-modern .synnio-pricing-footer-note a:hover { text-decoration: underline; }
.synnio-pricing-modern .synnio-pricing-footer-note ul {
    margin: 8px 0 10px;
    padding-left: 20px;
}
.synnio-pricing-modern .synnio-pricing-footer-note li { margin-bottom: 4px; }
