/* 
 * Pricing Page Styles
 * pollgraphics-access
 * Version: 1.0.0
 */

:root {
    --pg-primary: #0066cc;
    --pg-primary-dark: #0052a3;
    --pg-success: #00cc66;
    --pg-text: #1a1a1a;
    --pg-text-light: #666;
    --pg-border: #e0e0e0;
    --pg-bg-light: #f8f9fa;
    --pg-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --pg-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
    --pg-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pg-pricing-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--pg-text);
}

/* Hero Section */
.pg-pricing-hero {
    text-align: center;
    padding: 80px 20px 60px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.pg-pricing-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.pg-pricing-title {
    font-size: 48px;
    font-weight: 800;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.pg-pricing-subtitle {
    font-size: 20px;
    color: var(--pg-text-light);
    margin: 0 0 40px 0;
}

/* Pricing Toggle */
.pg-pricing-toggle-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: white;
    padding: 8px 24px;
    border-radius: 50px;
    box-shadow: var(--pg-shadow);
}

.pg-toggle-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--pg-text);
}

.pg-pricing-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    background: var(--pg-border);
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: var(--pg-transition);
}

.pg-pricing-toggle.active {
    background: var(--pg-primary);
}

.pg-toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: var(--pg-transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pg-pricing-toggle.active .pg-toggle-slider {
    transform: translateX(28px);
}

.pg-save-badge {
    display: inline-block;
    background: var(--pg-success);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    margin-left: 8px;
}

/* Pricing Tiers */
.pg-pricing-tiers {
    padding: 60px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.pg-tiers-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.pg-pricing-card {
    background: white;
    border-radius: 16px;
    border: 2px solid var(--pg-border);
    padding: 32px;
    position: relative;
    transition: var(--pg-transition);
    display: flex;
    flex-direction: column;
}

.pg-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pg-shadow-hover);
    border-color: var(--tier-color);
}

.pg-card-highlight {
    border-color: var(--tier-color);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    transform: scale(1.02);
}

.pg-card-highlight:hover {
    transform: scale(1.02) translateY(-4px);
}

.pg-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.pg-card-header {
    text-align: center;
    margin-bottom: 32px;
}

.pg-card-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--tier-color);
}

.pg-card-tagline {
    font-size: 14px;
    color: var(--pg-text-light);
    margin: 0 0 24px 0;
}

.pg-card-pricing {
    margin-bottom: 8px;
}

.pg-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--pg-text);
    transition: var(--pg-transition);
}

.pg-price-period {
    font-size: 18px;
    color: var(--pg-text-light);
}

.pg-card-wahlkreise {
    font-size: 14px;
    color: var(--pg-text-light);
    margin: 0;
}

/* Card Body */
.pg-card-body {
    flex: 1;
    margin-bottom: 24px;
}

.pg-feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.pg-feature-list li {
    display: flex;
    align-items: start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--pg-bg-light);
    font-size: 15px;
}

.pg-feature-list li:last-child {
    border-bottom: none;
}

.pg-check-icon {
    width: 20px;
    height: 20px;
    color: var(--pg-success);
    flex-shrink: 0;
    margin-top: 2px;
}

.pg-best-for {
    font-size: 14px;
    color: var(--pg-text-light);
    margin: 0;
    padding: 16px;
    background: var(--pg-bg-light);
    border-radius: 8px;
}

.pg-best-for strong {
    color: var(--pg-text);
}

/* Card Footer */
.pg-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pg-cta-btn {
    width: 100%;
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--pg-transition);
    text-align: center;
}

.pg-cta-primary {
    background: var(--tier-color);
    color: white;
}

.pg-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1);
}

.pg-cta-secondary {
    background: white;
    color: var(--tier-color);
    border: 2px solid var(--tier-color);
}

.pg-cta-secondary:hover {
    background: var(--tier-color);
    color: white;
}

.pg-cta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.pg-details-link {
    text-align: center;
    color: var(--tier-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: var(--pg-transition);
}

.pg-details-link:hover {
    text-decoration: underline;
}

/* Trust Section */
.pg-trust-section {
    background: var(--pg-bg-light);
    padding: 60px 20px;
}

.pg-trust-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.pg-trust-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pg-trust-icon {
    width: 48px;
    height: 48px;
    color: var(--pg-primary);
    flex-shrink: 0;
}

.pg-trust-item h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
}

.pg-trust-item p {
    margin: 0;
    font-size: 14px;
    color: var(--pg-text-light);
}

/* FAQ Section */
.pg-faq-section {
    padding: 80px 20px;
    background: white;
}

.pg-faq-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pg-faq-title {
    text-align: center;
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 60px 0;
}

.pg-faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}

.pg-faq-item {
    background: var(--pg-bg-light);
    padding: 32px;
    border-radius: 12px;
    transition: var(--pg-transition);
}

.pg-faq-item:hover {
    box-shadow: var(--pg-shadow);
}

.pg-faq-question {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--pg-text);
}

.pg-faq-answer {
    margin: 0;
    color: var(--pg-text-light);
    line-height: 1.6;
}

.pg-faq-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid var(--pg-border);
}

.pg-faq-footer p {
    margin: 0;
    font-size: 16px;
}

.pg-faq-footer a {
    color: var(--pg-primary);
    text-decoration: none;
    font-weight: 600;
}

.pg-faq-footer a:hover {
    text-decoration: underline;
}

/* Final CTA */
.pg-final-cta {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, var(--pg-primary) 0%, var(--pg-primary-dark) 100%);
    color: white;
}

.pg-final-cta h2 {
    font-size: 40px;
    font-weight: 800;
    margin: 0 0 16px 0;
}

.pg-final-cta p {
    font-size: 20px;
    margin: 0 0 32px 0;
    opacity: 0.9;
}

.pg-cta-scroll-up {
    padding: 16px 40px;
    background: white;
    color: var(--pg-primary);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--pg-transition);
}

.pg-cta-scroll-up:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Exit Popup */
.pg-exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pg-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.pg-popup-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    padding: 48px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: pgPopupSlideIn 0.3s ease-out;
}

@keyframes pgPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pg-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--pg-text-light);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--pg-transition);
}

.pg-popup-close:hover {
    background: var(--pg-bg-light);
    color: var(--pg-text);
}

.pg-popup-body {
    text-align: center;
}

.pg-popup-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.pg-popup-body h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 16px 0;
}

.pg-popup-body p {
    font-size: 16px;
    color: var(--pg-text-light);
    margin: 0 0 32px 0;
    line-height: 1.6;
}

.pg-promo-code {
    display: inline-block;
    background: var(--pg-bg-light);
    color: var(--pg-primary);
    padding: 4px 16px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}

.pg-popup-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.pg-popup-btn-primary,
.pg-popup-btn-secondary {
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: var(--pg-transition);
}

.pg-popup-btn-primary {
    background: var(--pg-primary);
    color: white;
}

.pg-popup-btn-primary:hover {
    background: var(--pg-primary-dark);
}

.pg-popup-btn-secondary {
    background: transparent;
    color: var(--pg-text-light);
}

.pg-popup-btn-secondary:hover {
    color: var(--pg-text);
}

.pg-popup-note {
    font-size: 12px !important;
    color: var(--pg-text-light) !important;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .pg-pricing-title {
        font-size: 32px;
    }
    
    .pg-pricing-subtitle {
        font-size: 16px;
    }
    
    .pg-tiers-container {
        grid-template-columns: 1fr;
    }
    
    .pg-card-highlight {
        transform: none;
    }
    
    .pg-card-highlight:hover {
        transform: translateY(-4px);
    }
    
    .pg-price {
        font-size: 36px;
    }
    
    .pg-trust-container {
        grid-template-columns: 1fr;
    }
    
    .pg-faq-grid {
        grid-template-columns: 1fr;
    }
    
    .pg-faq-title,
    .pg-final-cta h2 {
        font-size: 28px;
    }
    
    .pg-popup-content {
        padding: 32px 24px;
    }
    
    .pg-popup-body h3 {
        font-size: 22px;
    }
}
