/**
 * VibeVenture Preisliste Plugin Styles
 * Extracted and adapted from preise.css and style.css
 */

/* CSS Variables */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --accent-color: #0ea5e9;
    --dark-color: #111827;
    --light-color: #f9fafb;
    --gray-color: #6b7280;
    --light-gray: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --border-radius: 8px;
    --max-width: 1200px;
    --transition: all 0.3s ease;
}

/* Pricing Teaser Section */
.preislistevv-section.pricing-teaser {
    background-color: var(--light-color);
    padding: 5rem 2rem;
    text-align: center;
}

.preislistevv-section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--dark-color);
}

/* Pricing Options */
.preislistevv-section .pricing-options {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2.5rem;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.preislistevv-section .pricing-option {
    flex: 1;
    max-width: 360px;
    padding: 2rem;
    background-color: white;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--light-gray);
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.preislistevv-section .pricing-option.highlighted {
    box-shadow: var(--box-shadow);
    border: 2px solid var(--primary-light);
    transform: scale(1.05);
}

.preislistevv-section .pricing-option h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

.preislistevv-section .pricing-option .price {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.preislistevv-section .pricing-option .installments {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}
.preislistevv-section .pricing-option .installments-link,
.preislistevv-section .pricing-option .installments-text {
    font-size: 0.95rem;
    color: var(--dark-color);
}
.preislistevv-section .pricing-option .installments-link {
    color: var(--primary-color);
    text-decoration: none;
}
.preislistevv-section .pricing-option .installments-link:hover {
    text-decoration: underline;
}

/* VAT Notice */
.preislistevv-section .pricing-option .vat-notice {
    margin-top: 1rem;
    text-align: center;
}
.preislistevv-section .pricing-option .vat-notice small {
    font-size: 12px;
    color: var(--gray-color);
    opacity: 0.8;
}

.preislistevv-section .strike-price {
    text-decoration: line-through;
    color: var(--gray-color);
    font-weight: normal;
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

.preislistevv-section .pricing-option p:not(.price) {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--gray-color);
    flex-grow: 1;
}

/* Popular Badge */
.preislistevv-section .popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--primary-color);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 1;
}

/* Key Features List */
.preislistevv-section .key-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    flex-grow: 1;
}

.preislistevv-section .key-features li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    line-height: 1.4;
    gap: 0.75rem;
}

.preislistevv-section .key-features li.disabled {
    opacity: 0.7;
    color: var(--gray-color);
}

/* Features Link */
.preislistevv-section .features-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    margin-top: auto;
}

.preislistevv-section .features-link:hover {
    text-decoration: underline;
}

/* Buttons */
.preislistevv-section .btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

.preislistevv-section .btn:hover {
    background-color: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
    text-decoration: none;
}

.preislistevv-section .highlighted-btn {
    background-color: var(--accent-color);
}

.preislistevv-section .highlighted-btn:hover {
    background-color: #0b95d0; /* Darker accent */
}

/* Pricing Details Table */
.preislistevv-section .pricing-details-table {
    max-width: var(--max-width);
    margin: 0 auto;
}

.preislistevv-section .pricing-details-toggle {
    text-align: center;
    margin: 2rem auto;
    max-width: 300px;
}

.preislistevv-section .toggle-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    cursor: pointer;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.preislistevv-section .toggle-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.preislistevv-section .icon-toggle .preisliste-icon {
    transition: transform 0.3s ease;
}

.preislistevv-section .toggle-btn.active .icon-toggle .preisliste-icon {
    transform: rotate(180deg);
}

/* Table Container */
.preislistevv-section .pricing-table-container,
.preislistevv-section .expandable-content {
    overflow-x: auto;
}

.preislistevv-section .pricing-details-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    table-layout: fixed;
}

.preislistevv-section .pricing-details-table th, 
.preislistevv-section .pricing-details-table td {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--light-gray);
    width: 20%;
    vertical-align: middle;
}
.preislistevv-section .pricing-details-table tr:last-child td {
    border-bottom: none;
}

.preislistevv-section .pricing-details-table th:first-child,
.preislistevv-section .pricing-details-table td:first-child {
    width: 40%;
    text-align: left;
    border-right: 1px solid var(--light-gray);
}

.preislistevv-section .pricing-details-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}

.preislistevv-section .pricing-details-table th:first-child {
    background-color: var(--dark-color);
}

.preislistevv-section .pricing-details-table tr:nth-child(even) > td {
    background-color: var(--light-color);
}

/* Feature Cell Styling */
.preislistevv-section .feature-name {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.preislistevv-section .feature-description {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0;
}

.preislistevv-section .feature-cell {
    text-align: center;
}

.preislistevv-section .feature-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 24px;
    margin: 0 auto 4px;
}

.preislistevv-section .feature-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.2;
}

/* Fade Overlay */
.preislistevv-section .table-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 40%, rgba(255,255,255,0.8) 80%, white 100%);
    pointer-events: none;
    z-index: 2;
    display: none; /* Initially hidden, controlled by JS */
}
.preislistevv-section .pricing-table-container {
    position: relative;
    max-height: 400px; /* Increased to show more content before fade */
    overflow: hidden;
}
.preislistevv-section .pricing-details-table.active .pricing-table-container {
    max-height: none;
    overflow: visible;
}
.preislistevv-section .pricing-details-table:not(.active) .table-fade-overlay {
    display: block;
}


/* Expandable Content */
.preislistevv-section .expandable-content {
    display: none;
}

.preislistevv-section .pricing-details-table.active .expandable-content {
    display: block;
}

.preislistevv-section .expandable-content table {
    margin-top: -1px; /* Connect to the table above */
}

.preislistevv-section .price-row td {
    font-weight: 600;
    font-size: 1.1rem;
    background-color: #f0f3ff;
}

.preislistevv-section .cta-row td {
    padding: 1.5rem 1rem;
}

.preislistevv-section .cta-row .btn {
    min-width: 120px;
    width: auto;
    margin: 0;
}

/* Bottom Toggle */
.preislistevv-section .pricing-details-bottom-toggle {
    text-align: center;
    margin: 2rem auto 1rem;
    display: block; /* Show by default when table is closed */
}
.preislistevv-section .pricing-details-table.active ~ .pricing-details-bottom-toggle {
    display: none; /* Hide when table is open */
}


/* Icon Styles */
.preisliste-icon {
    width: 1.2em;
    height: 1.2em;
    display: inline-block;
    vertical-align: middle;
}

/* Bullet points styles */
.vv-bullet-points {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.vv-bullet-point {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
    text-align: left;
}

.vv-bullet-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    margin-top: 2px;
    color: var(--success-color);
}

.vv-bullet-icon .preisliste-icon {
    width: 18px;
    height: 18px;
}

.vv-bullet-icon .preisliste-icon path {
    fill: var(--success-color);
}

.vv-bullet-text {
    flex: 1;
    line-height: 1.5;
    font-size: 0.95rem;
    color: var(--dark-color);
    text-align: left;
}

.key-features .preisliste-icon {
    width: 1.5em;
    height: 1.5em;
}

.icon-check path {
    fill: var(--success-color);
}
.key-features li.disabled .icon-times path {
    fill: var(--danger-color);
}
.feature-cell .icon-times path {
     fill: var(--danger-color);
}

.toggle-btn .preisliste-icon path {
    fill: var(--primary-color);
}


/* Responsive Styles */
@media (max-width: 900px) {
    .preislistevv-section .pricing-options {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .preislistevv-section .pricing-option.highlighted {
        transform: scale(1);
    }
    
    .preislistevv-section .pricing-option {
        width: 100%;
        max-width: 500px;
    }
    
    .preislistevv-section .key-features {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .preislistevv-section .pricing-details-table {
        margin: 2rem 0;
    }
    
    .preislistevv-section .pricing-details-table table {
        min-width: 800px;
    }
}

@media (max-width: 768px) {
    .preislistevv-section h2 {
        font-size: 2rem;
    }
    
    .preislistevv-section .pricing-details-table th, 
    .preislistevv-section .pricing-details-table td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 600px) {
    .preislistevv-section {
        padding: 3rem 1rem;
    }
    
    .preislistevv-section h2 {
        font-size: 1.75rem;
    }
}

/* Comparison Table Styles */
.vv-compare {
    padding: 4rem 2rem;
    background-color: #f8fafc;
}

.vv-compare h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 600;
    color: var(--dark-color);
}

.vv-compare .compare-subtitle {
    text-align: center;
    color: var(--gray-color);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.vv-comparison-table {
    max-width: 1000px;
    margin: 0 auto 3rem;
    overflow-x: auto;
}

.vv-comparison-table table {
    width: 100%;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    border-collapse: collapse;
}

.vv-comparison-table th {
    background-color: #f1f5f9;
    padding: 1.5rem 1rem;
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    color: var(--dark-color);
    border-bottom: 2px solid var(--light-gray);
}

.vv-comparison-table th:first-child {
    text-align: left;
    padding-left: 2rem;
}

.vv-comparison-table td {
    padding: 1.25rem 1rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.vv-comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--dark-color);
    padding-left: 2rem;
}

.vv-comparison-table tbody tr:hover {
    background-color: #f8fafc;
}

.vv-comparison-table .feature-included {
    color: var(--success-color);
    width: 24px;
    height: 24px;
}

.vv-comparison-table .feature-not-included {
    color: #e5e7eb;
    width: 20px;
    height: 20px;
}

.vv-table-cta {
    text-align: center;
    margin-top: 3rem;
}

.vv-table-cta .btn {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
}

/* Comparison Table Mobile Styles */
@media (max-width: 768px) {
    .vv-compare {
        padding: 3rem 1rem;
    }
    
    .vv-compare h2 {
        font-size: 2rem;
    }
    
    .vv-compare .compare-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .vv-comparison-table {
        margin-bottom: 2rem;
    }
    
    .vv-comparison-table th,
    .vv-comparison-table td {
        padding: 1rem 0.75rem;
        font-size: 0.875rem;
    }
    
    .vv-comparison-table th:first-child,
    .vv-comparison-table td:first-child {
        padding-left: 1rem;
    }
    
    .vv-comparison-table .feature-included,
    .vv-comparison-table .feature-not-included {
        width: 18px;
        height: 18px;
    }
}
