/**
 * Business Tarife Styles
 * Horizontales Scroll-Layout im Stil der Privattarife
 * Farben: #122538 (Dunkelblau) + #f1800e (Orange Akzente)
 *
 * @package epcan-gebietsseiten
 */

/* ============================================================================
   CONTAINER
   ============================================================================ */

.epcan-business-tarife-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
}

.epcan-tarife-section {
    margin-bottom: 80px;
}

.epcan-tarife-section:last-child {
    margin-bottom: 0;
}

/* ============================================================================
   HEADINGS
   ============================================================================ */

.epcan-tarife-heading {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #122538;
}

.epcan-tarife-subheading {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin: 0 0 50px 0;
    font-weight: 400;
}

/* ============================================================================
   HORIZONTAL SCROLL LAYOUT (wie Privattarife)
   ============================================================================ */

.epcan-tarife-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 10px;
    justify-content: center;
}

/* Hide scrollbar for Chrome/Safari */
.epcan-tarife-grid::-webkit-scrollbar {
    display: none;
}

/* Desktop: Alle Tarife ohne Scrollen anzeigen */
@media (min-width: 1280px) {
    .epcan-tarife-grid {
        justify-content: center;
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

/* ============================================================================
   TARIF CARDS
   ============================================================================ */

.epcan-tarif-card {
    position: relative;
    flex: 0 0 auto;
    min-width: 270px;
    max-width: 270px;
    background: #d0dfee;
    border-radius: 20px;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(18, 37, 56, 0.08);
    scroll-snap-align: start;
}

/* Desktop: Feste Breite für 4 Tarife nebeneinander */
@media (min-width: 1280px) {
    .epcan-tarif-card {
        width: 270px;
        flex: 0 0 270px;
    }
}

/* Pro Card Highlight */
.epcan-tarif-card.pro {
    background: linear-gradient(135deg, #122538 0%, #1a3a52 100%);
    border: 2px solid #f1800e;
}

/* Pro Card Text Colors */
.epcan-tarif-card.pro .epcan-tarif-name,
.epcan-tarif-card.pro .epcan-tarif-speed,
.epcan-tarif-card.pro .epcan-price-text,
.epcan-tarif-card.pro .epcan-tarif-features li {
    color: #fff;
}

/* ============================================================================
   BADGE - ENTFERNT
   ============================================================================ */

.epcan-tarif-badge {
    display: none;
}

/* ============================================================================
   HEADER
   ============================================================================ */

.epcan-tarif-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(18, 37, 56, 0.1);
}

.epcan-tarif-card.pro .epcan-tarif-header {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.epcan-tarif-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: #122538;
}

.epcan-tarif-speed {
    font-size: 18px;
    font-weight: 600;
    color: #122538;
    margin: 0;
}

.epcan-tarif-card.pro .epcan-tarif-speed {
    color: #f1800e;
}

/* ============================================================================
   PRICE
   ============================================================================ */

.epcan-tarif-price {
    text-align: center;
    margin: 25px 0;
    padding: 20px;
    background: rgba(18, 37, 56, 0.05);
    border-radius: 12px;
}

.epcan-tarif-card.pro .epcan-tarif-price {
    background: rgba(255, 255, 255, 0.1);
}

.epcan-price-text {
    font-size: 18px;
    font-weight: 600;
    color: #122538;
}

.epcan-tarif-card.pro .epcan-price-text {
    color: #fff;
}

/* ============================================================================
   FEATURES LIST
   ============================================================================ */

.epcan-tarif-features {
    list-style: none;
    margin: 25px 0 30px 0!important;
    padding: 0;
    flex-grow: 1;
}

.epcan-tarif-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.6;
    color: #122538;
}

.epcan-tarif-features li:last-child {
    margin-bottom: 0;
}

.epcan-tarif-features li a {
    color: #f1800e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.epcan-tarif-features li a:hover {
    color: #122538;
    text-decoration: underline;
}

.epcan-tarif-card.pro .epcan-tarif-features li a {
    color: #f1800e;
}

.epcan-tarif-card.pro .epcan-tarif-features li a:hover {
    color: #fff;
}

.epcan-check-icon {
    flex-shrink: 0;
    margin-top: 2px;
    color: #10b981;
}

.epcan-tarif-card.pro .epcan-check-icon {
    color: #f1800e;
}

/* ============================================================================
   BUTTON
   ============================================================================ */

.epcan-tarif-button {
    display: block;
    width: 100%;
    background-color: #122538;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 16px 20px;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    letter-spacing: 0.5px;
    margin-top: auto;
}

.epcan-tarif-button:hover {
    color: #fff;
    text-decoration: none;
}

/* Pro Card Button */
.epcan-tarif-card.pro .epcan-tarif-button {
    background: #f1800e;
}

.epcan-tarif-card.pro .epcan-tarif-button:hover {
    color: #fff;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */

/* Tablet */
@media (max-width: 1024px) {
    .epcan-business-tarife-container {
        padding: 40px 20px;
    }

    .epcan-tarife-heading {
        font-size: 32px;
    }

    .epcan-tarife-subheading {
        font-size: 16px;
        margin-bottom: 40px;
    }

    .epcan-tarife-grid {
        gap: 18px;
    }

    .epcan-tarif-card {
        min-width: 260px;
        max-width: 320px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .epcan-business-tarife-container {
        padding: 30px 15px;
    }

    .epcan-tarife-section {
        margin-bottom: 60px;
    }

    .epcan-tarife-heading {
        font-size: 28px;
    }

    .epcan-tarife-subheading {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .epcan-tarife-grid {
        gap: 15px;
    }

    .epcan-tarif-card {
        min-width: 240px;
        max-width: 280px;
        padding: 30px 25px;
    }

    .epcan-tarif-name {
        font-size: 22px;
    }

    .epcan-tarif-speed {
        font-size: 16px;
    }

    .epcan-tarif-badge {
        top: -12px;
        right: 20px;
        padding: 6px 16px;
        font-size: 12px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .epcan-tarif-card {
        min-width: 220px;
        max-width: 260px;
        padding: 25px 20px;
    }

    .epcan-tarif-features li {
        font-size: 14px;
    }

    .epcan-check-icon {
        width: 18px;
        height: 18px;
    }
}

/* ============================================================================
   SCROLL DOTS NAVIGATION
   ============================================================================ */

.epcan-tarife-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    padding: 0;
}

.epcan-tarife-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d0dfee;
    border: 2px solid #122538;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.3s ease;
}

.epcan-tarife-dot.active {
    background: #122538;
}

/* Verstecke Dots auf Desktop (ab 1280px) */
@media (min-width: 1280px) {
    .epcan-tarife-dots {
        display: none;
    }
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
    .epcan-tarif-button {
        display: none;
    }

    .epcan-tarife-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        overflow: visible;
    }

    .epcan-tarif-card {
        page-break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
