/*
 * Tarife Section - Dynamische Tarif-Karten mit Slider
 * Extracted from inline styles
 */

/* Container */
.epcan-tarife-section {
    overflow: hidden;
}

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

.epcan-tarife-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #333;
    margin-bottom: 50px;
}

/* Tarif-Grid / Slider */
.epcan-tarife-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.epcan-tarife-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Scrollbar verstecken */
.epcan-tarife-grid::-webkit-scrollbar {
    display: none;
}

/* Einzelne Tarif-Karte */
.epcan-tarif-card {
    flex: 0 0 auto;
    min-width: 280px;
    max-width: 340px;
    width: 100%;
    background: #d0dfee;
    border-radius: 20px;
    padding: 0;
    padding-bottom: 10px;
    position: relative;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-top: 50px;
    height: fit-content;
}

.epcan-tarif-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Bestseller Tarif - Orange Hintergrund */
.epcan-tarif-card.bestseller {
    background: #f1800e;
}

.epcan-tarif-card.bestseller .epcan-tarif-name {
    color: #f1800e;
}

.epcan-tarif-card.bestseller .epcan-tarif-speed-number,
.epcan-tarif-card.bestseller .epcan-tarif-speed-details,
.epcan-tarif-card.bestseller .epcan-tarif-feature,
.epcan-tarif-card.bestseller .epcan-tarif-preis-haupt,
.epcan-tarif-card.bestseller .epcan-tarif-preis-haupt sup,
.epcan-tarif-card.bestseller .epcan-tarif-preis-normal {
    color: white;
}

.epcan-tarif-card.bestseller .epcan-tarif-preis-bereich {
    border-top-color: rgba(255,255,255,0.3);
}

/* Badge Container oben rechts */
.epcan-tarif-badges {
    position: absolute;
    top: -30px;
    right: -10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-end;
    z-index: 10;
}

.epcan-tarif-badges.am-schnellsten {
    top: -12px;
}

.epcan-badge {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.epcan-badge-schnellsten {
    background: #f1800e;
    color: white;
    padding: 3px 10px;
    border-radius: 5px;
    font-weight: bold;
}

.epcan-badge-bestseller {
    background: #004d9f;
    color: white;
    padding: 45px;
    font-size: 13px;
    border-radius: 50%;
    line-height: 1.2rem;
    text-align: center;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

/* Tarif Name - ÜBER der Kachel */
.epcan-tarif-name {
    font-size: 25px;
    font-weight: bold;
    color: #f1800e;
    text-align: left;
    margin-bottom: 16px;
    text-transform: capitalize;
    position: absolute;
    top: -40px;
    left: 0;
    letter-spacing: 0.1em;
    font-family: "Lato Black", sans-serif;
}

/* Geschwindigkeit */
.epcan-tarif-speed {
    text-align: center;
    padding-top: 40px;
}

.epcan-tarif-speed-number {
    font-size: 60px;
    font-weight: bold;
    color: #57585a;
    line-height: 1;
    font-family: Poppins;
}

.epcan-tarif-speed-details {
    font-size: 16px;
    color: #57585a;
    padding: 0px 7% 20px 7%;
    font-weight: bold;
}

.epcan-tarif-card.bestseller .epcan-tarif-speed-details {
    color: white;
    letter-spacing: 0.04rem;
}

.epcan-tarif-feature {
    display: block;
    margin-bottom: 8px;
    font-size: 16px;
    color: #57585a;
    line-height: 1.6;
    padding-left: 25px;
    position: relative;
    margin-left: 20px;
}

.epcan-tarif-feature strong {
    font-weight: bold;
    letter-spacing: 0.04rem;
}

.epcan-tarif-feature::before {
    font-family: "Font Awesome 5 Free";
    content: "\f058";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0;
    color: #57585a;
    font-size: 16px;
}

.epcan-tarif-card.bestseller .epcan-tarif-feature::before {
    color: white;
}

/* Preis-Bereich */
.epcan-tarif-preis-bereich {
    text-align: center;
    padding: 15px 7% 15px 7%;
}

.epcan-tarif-preis-haupt {
    font-size: 35px;
    font-weight: bold;
    color: #57585a;
    font-family: Poppins;
    padding-bottom: 7px;
}

.epcan-tarif-preis-haupt sup {
    font-size: 16px;
    font-weight: normal;
    color: #57585a;
}

.epcan-tarif-preis-normal {
    font-size: 16px;
    color: #57585a;
}

/* Rabatte */
.epcan-tarif-rabatte {
    text-align: center;
}

.epcan-tarif-rabatt {
    color: #57585a;
    font-size: 14px;
    font-weight: 400;
    padding: 0px 0 7px 0;
}

.epcan-tarif-rabatt-white {
    padding: 0% 5%;
}

.epcan-tarif-rabatt span {
    background-color: white;
    border-radius: 10px;
    margin-top: 5px;
    display: inline-block;
}

.epcan-tarif-rabatt .betrag,
.epcan-tarif-rabatt .rabatt-word {
    font-size: 16px;
    font-weight: 900;
}

.epcan-tarif-rabatt sup {
    font-size: 11px;
    font-weight: 500;
}

/* Orange Surf-Box */
.epcan-surf-hinweis {
    background: #f1800e;
    color: white;
    padding: 4%;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.6;
    margin: 25px 16px 5px 16px;
}

.epcan-surf-hinweis b {
    font-weight: bold;
}

/* Button */
.epcan-tarif-button {
    text-align: center;
    padding: 0px 0 0px 0;
}

.epcan-tarif-card .button {
    display: inline-block;
    text-align: center;
}

/* Custom Button für Bestseller (ohne Betheme-Klassen) */
.epcan-custom-button {
    display: inline-block;
    text-align: center;
    background: #57585a;
    color: white;
    padding: 14px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
    line-height: 1.5;
    margin-bottom: 9px;
}

.epcan-custom-button:hover {
    background: #3d3e3f;
    color: white;
    text-decoration: none;
}

.epcan-custom-button .button_label {
    display: inline;
}

/* Bestseller Button - Grau/Dunkel - MAXIMALE SPEZIFITÄT */
.epcan-tarif-card.bestseller .epcan-tarif-button .button.button_theme.button_size_2,
.epcan-tarif-card.bestseller .epcan-tarif-button a.button.button_theme.button_size_2,
.epcan-tarif-card.bestseller .button.button_theme.button_size_2,
.epcan-tarif-card.bestseller a.button.button_theme.button_size_2 {
    background: #57585a !important;
    background-color: #57585a !important;
    background-image: none !important;
    color: white !important;
    border-color: #57585a !important;
    position: relative !important;
    overflow: visible !important;
    transition: background-color 0.3s ease !important;
    z-index: 1 !important;
}

/* Pseudo-Elemente KOMPLETT UNTERDRÜCKEN - mit maximaler Spezifität */
.epcan-tarif-card.bestseller .epcan-tarif-button .button.button_theme.button_size_2::before,
.epcan-tarif-card.bestseller .epcan-tarif-button .button.button_theme.button_size_2::after,
.epcan-tarif-card.bestseller .epcan-tarif-button a.button.button_theme.button_size_2::before,
.epcan-tarif-card.bestseller .epcan-tarif-button a.button.button_theme.button_size_2::after,
.epcan-tarif-card.bestseller .button.button_theme.button_size_2::before,
.epcan-tarif-card.bestseller .button.button_theme.button_size_2::after,
.epcan-tarif-card.bestseller a.button.button_theme.button_size_2::before,
.epcan-tarif-card.bestseller a.button.button_theme.button_size_2::after,
.epcan-tarif-card.bestseller .button .button_label::before,
.epcan-tarif-card.bestseller .button .button_label::after {
    display: none !important;
    content: "" !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    transition: none !important;
    transform: none !important;
}

/* Hover States - MAXIMALE SPEZIFITÄT */
.epcan-tarif-card.bestseller .epcan-tarif-button .button.button_theme.button_size_2:hover,
.epcan-tarif-card.bestseller .epcan-tarif-button a.button.button_theme.button_size_2:hover,
.epcan-tarif-card.bestseller .button.button_theme.button_size_2:hover,
.epcan-tarif-card.bestseller a.button.button_theme.button_size_2:hover,
.epcan-tarif-card.bestseller .epcan-tarif-button .button.button_theme.button_size_2:focus,
.epcan-tarif-card.bestseller .button.button_theme.button_size_2:focus,
.epcan-tarif-card.bestseller .epcan-tarif-button .button.button_theme.button_size_2:active,
.epcan-tarif-card.bestseller .button.button_theme.button_size_2:active {
    background: #3d3e3f !important;
    background-color: #3d3e3f !important;
    background-image: none !important;
    border-color: #3d3e3f !important;
    color: white !important;
}

/* Hover States für Pseudo-Elemente */
.epcan-tarif-card.bestseller .button.button_theme.button_size_2:hover::before,
.epcan-tarif-card.bestseller .button.button_theme.button_size_2:hover::after,
.epcan-tarif-card.bestseller a.button.button_theme.button_size_2:hover::before,
.epcan-tarif-card.bestseller a.button.button_theme.button_size_2:hover::after {
    display: none !important;
    content: "" !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

/*Zusatzhinweis*/

.epcan-tarif-zusatzhinweis{
    font-size: 14px;
    font-weight: 700;
    padding: 10px 7% 10px;
    text-align: left;
    color: #57585a;
}

.epcan-tarif-card.bestseller .epcan-tarif-zusatzhinweis {
    color: white;
}

/* PDF Links */
.epcan-tarif-pdfs {
    color: #57585a;
    font-size: 14px;
    font-weight: 400;
    padding: 10px 7% 10px;
    text-align: left;
}

.epcan-tarif-pdf-link {
    font-size: 14px;
    color: #57585a;
    text-decoration: none;
    display: block;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.epcan-tarif-pdf-link:hover {
    color: #f1800e;
}

.epcan-tarif-card.bestseller .epcan-tarif-pdf-link {
    color: white;
}

/* Dots Navigation */
.epcan-tarife-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
    display: none; /* Standardmäßig versteckt */
}

.epcan-tarife-dots.active {
    display: flex;
}

.epcan-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.epcan-dot.active {
    background: #f1800e;
    transform: scale(1.3);
}

/* Fußnoten */
.epcan-tarife-fussnoten {
    max-width: 100%;
    margin: 20px auto 0;
    padding: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
}

.epcan-tarife-fussnoten p {
    margin: 5px 0;
}

.epcan-tarife-fussnoten sup {
    font-weight: 700;
    color: #f1800e;
}

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

/* Desktop: Grid wenn <= 4 Tarife */
@media (min-width: 968px) {
    .epcan-tarife-grid[data-count="1"],
    .epcan-tarife-grid[data-count="2"],
    .epcan-tarife-grid[data-count="3"],
    .epcan-tarife-grid[data-count="4"] {
        display: grid;
        overflow-x: visible;
        scroll-snap-type: none;
    }

    .epcan-tarife-grid[data-count="1"] {
        grid-template-columns: 1fr;
        max-width: 340px;
        margin: 0 auto;
    }

    .epcan-tarife-grid[data-count="2"] {
        grid-template-columns: repeat(2, 1fr);
    }

    .epcan-tarife-grid[data-count="3"] {
        grid-template-columns: repeat(3, 1fr);
    }

    .epcan-tarife-grid[data-count="4"] {
        grid-template-columns: repeat(4, 1fr);
    }

    .epcan-tarife-grid[data-count="1"] .epcan-tarif-card,
    .epcan-tarife-grid[data-count="2"] .epcan-tarif-card,
    .epcan-tarife-grid[data-count="3"] .epcan-tarif-card,
    .epcan-tarife-grid[data-count="4"] .epcan-tarif-card {
        min-width: auto;
        max-width: none;
    }
}

/* Tablet */
@media (max-width: 967px) {
    .epcan-tarife-title {
        font-size: 32px;
    }

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

    .epcan-tarife-dots {
        display: flex !important;
    }
}

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

    .epcan-tarife-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .epcan-tarif-card {
        min-width: 280px;
    }

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

    .epcan-tarif-preis-haupt {
        font-size: 36px;
    }

    .epcan-tarif-badges {
        right: -5px;
    }
}
