/* Pricing Page Styles */

/* New Hero Background Wrapper - Increased specificity to override site.css .hero */
.hero.pricing-hero-bg {
    min-height: 220px;
    height: auto;
    margin-top: 0;
    padding-top: 100px;
    padding-bottom: 60px;
    /* Added padding for content */
    background-image: image-set(url('../img/pictures/hero-pricing.webp') type('image/webp'), url('../img/pictures/hero-pricing.jpg') type('image/jpeg'));
    /* Reuse existing or new img */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    /* Top align content */
    justify-content: center;
    text-align: center;
}

.pricing-hero-bg h1 {
    /* Override base hero styles if needed */
    background: none;
    -webkit-text-fill-color: white;
    color: white;
    margin-bottom: 1rem;
}

.pricing-hero-bg p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
}

/* Pilot Alert Styles */
.pilot-alert {
    background: rgba(15, 23, 42, 0.6);
    /* Semi-transparent dark bg */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    margin: 0 auto;
    color: white;
    text-align: center;
    animation: fadeInDown 0.8s ease-out;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pilot-alert h3 {
    margin: 0.5rem 0 0.75rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.pilot-alert p {
    font-size: 1.1rem !important;
    opacity: 0.95 !important;
    line-height: 1.5;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.95) !important;
}

.pilot-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.pilot-icon svg {
    width: 3rem;
    height: 3rem;
    stroke-width: 1.5;
    margin-bottom: 0.5rem;
}


/* Offset Main Content */
.pricing-main-offset {
    margin-top: 2rem;
    position: relative;
    z-index: 10;
    padding-bottom: 4rem;
}

/* Billing Toggle (Inside Card) */
.billing-toggle-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    background: #f9fafb;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    border: 1px solid #f3f4f6;
}

.toggle-wrapper {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.toggle-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e5e7eb;
    transition: .3s;
    border-radius: 34px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-checkbox:checked+.toggle-slider {
    background-color: var(--primary);
}

.toggle-checkbox:checked+.toggle-slider:before {
    transform: translateX(24px);
}

.billing-label {
    cursor: pointer;
    color: var(--muted);
    transition: var(--transition);
    font-weight: 500;
}

.billing-label.active {
    color: var(--text);
    font-weight: 700;
}

.discount-badge {
    background: #dcfce7;
    color: #166534;
    font-size: 0.8rem;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    margin-left: 0.5rem;
    font-weight: 700;
    vertical-align: middle;
}

/* Pricing Grid */
/* --- TABS & NAVIGATION --- */
.pricing-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    padding: 0 1.5rem;
}

.pricing-tab {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 200px;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.pricing-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-color: #d1d5db;
}

.pricing-tab.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.2);
}

.pricing-tab .tab-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: color 0.2s ease;
}

.pricing-tab.active .tab-icon {
    color: white;
}

.pricing-tab .tab-icon svg {
    width: 24px;
    height: 24px;
}

.pricing-tab .tab-text {
    font-weight: 700;
    font-size: 1.1rem;
}

/* --- VIEWS --- */
.tab-content-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
    min-height: 500px;
    /* Prevent jumpiness */
}

.pricing-view {
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Single View Card (Privat, Firmen, Bildung) */
.single-view-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.centered-header {
    align-items: center;
    text-align: center;
    margin-bottom: 2rem;
}

.centered-price {
    justify-content: center;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.centered-list {
    text-align: left;
    display: inline-block;
    max-width: 500px;
    margin: 0 auto 2.5rem;
}

/* --- PRICING GRID --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
    /* Make cards same height */
}

.tier-card {
    background: white;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    text-align: center;
    position: relative;
    transition: var(--transition);
}

.tier-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.featured-tier {
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
    z-index: 10;
    transform: scale(1.02);
}

.featured-tier:hover {
    transform: scale(1.05) translateY(-5px);
}

.tier-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    color: var(--text);
}

.tier-desc {
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.tier-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1;
}

.tier-price .currency {
    font-size: 1.5rem;
    vertical-align: top;
}

.tier-price .period {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 0.5rem;
}

.tier-features {
    flex-grow: 1;
    margin-bottom: 2rem;
}

.tier-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.tier-features li {
    padding: 0.5rem 0 0.5rem 1.75rem;
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
    font-size: 0.95rem;
    position: relative;
    display: block;
    line-height: 1.5;
}

.tier-features li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
    position: absolute;
    left: 0;
    top: 0.5rem;
}

.tier-features li:last-child {
    border-bottom: none;
}

.tier-features li strong {
    color: var(--text);
}

.small-cta {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 900px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-tabs {
        gap: 0.75rem;
    }

    .pricing-tab {
        flex: 1 1 45%;
        min-width: 140px;
        padding: 1rem;
    }

    .pricing-tab .tab-text {
        font-size: 1rem;
    }
}

/* Re-using existing classes */
.pricing-cta {
    width: 100%;
    text-align: center;
    padding: 1rem;
    border-radius: 12px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

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

.pricing-cta.primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.25);
}

.pricing-cta.secondary {
    background: #f3f4f6;
    color: var(--text);
}

.pricing-cta.secondary:hover {
    background: #e5e7eb;
}

.popular-tag {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%);
    color: white;
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    right: auto;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.4rem 1.2rem;
    border-radius: 999px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.4);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* Segments need to be preserved for Firmen view */
.segment-control-wrapper {
    flex-direction: column;
    min-height: 90px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.segment-control {
    display: flex;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 4px;
    gap: 4px;
}

.segment-control input[type="radio"] {
    display: none;
}

.segment-control label {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    color: var(--muted);
    transition: all 0.2s ease;
}

.segment-control input:checked+label {
    background: white;
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.segment-label {
    font-size: 0.75rem;
    text-align: center;
    color: var(--muted);
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.old-price-wrapper {
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.old-price {
    text-decoration: line-through;
    color: #ef4444;
    font-size: 1.25rem;
    font-weight: 700;
}

.card-note {
    font-size: 0.85rem;
    color: var(--muted);
    text-align: center;
    margin-top: 1rem;
    min-height: auto;
    display: block;
}

.pilot-info-box {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 16px;
    padding: 1.25rem 2rem;
    margin-top: -1rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    color: #9f1239;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.5;
    animation: fadeIn 0.5s ease-out;
}

.pilot-info-icon {
    color: #e11d48;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

@media (max-width: 768px) {
    .pilot-info-box {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 0.75rem;
    }
}

/* Features List Base */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2.5rem;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #374151;
}

.features-list li::before {
    content: '✓';
    color: var(--primary);
    font-weight: 800;
    flex-shrink: 0;
}