/* Reparaturpreise-Bereich – resources/views/components/repair-prices.blade.php */

.repair-prices {
    /* Farben aus dem Theme (assimox.css) */
    --repair-prices-navy: var(--assimox-black, #0b1a3a);
    --repair-prices-blue: var(--assimox-primary, #00a7eb);
    --repair-prices-blue-dark: #0868a8;
    --repair-prices-accent: var(--assimox-base, #f1d551);
    --repair-prices-radius: 18px;
    background-color: #ffffff;
    padding: 100px 0;
}

.repair-prices__inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 16px;
}

.repair-prices__head {
    text-align: center;
    margin-bottom: 60px;
}

.repair-prices__tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 999px;
    background-color: rgba(0, 167, 235, 0.1);
    color: var(--repair-prices-blue-dark);
    font-family: var(--assimox-font-two, "Roboto", sans-serif);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.4;
    margin-bottom: 18px;
}

.repair-prices__title {
    font-family: var(--assimox-font-two, "Roboto", "Inter", system-ui, sans-serif);
    font-size: clamp(32px, 7vw, 56px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--repair-prices-navy);
    text-transform: none;
}

.repair-prices__title-accent {
    display: block;
    color: var(--repair-prices-blue);
}

.repair-prices__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.repair-prices__card {
    display: flex;
    flex-direction: column;
    border-radius: var(--repair-prices-radius);
    overflow: hidden;
    min-width: 0;
}

/* Oberer Bereich: Foto + dunkle Ebene. Hintergrundfarbe dient als Fallback ohne Bild. */
.repair-prices__top {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 210px;
    padding: 32px 20px;
    text-align: center;
    background-color: var(--repair-prices-navy);
    background-image: linear-gradient(rgba(6, 31, 49, 0.65), rgba(6, 31, 49, 0.65)), var(--repair-prices-image, none);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.repair-prices__card-title {
    font-family: var(--assimox-font-two, "Roboto", "Inter", system-ui, sans-serif);
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff;
    text-transform: none;
    overflow-wrap: anywhere;
}

.repair-prices__card-note {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.4;
    color: #ffffff;
}

/* Unterer Bereich: Blau mit Punktmuster von rechts oben */
.repair-prices__bottom {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 36px 20px 52px;
    text-align: center;
    background-color: var(--repair-prices-blue-dark);
    background-image: linear-gradient(135deg, var(--repair-prices-blue-dark) 0%, var(--repair-prices-blue) 100%);
    isolation: isolate;
}

.repair-prices__bottom::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.5) 1.5px, transparent 2px);
    background-size: 14px 14px;
    -webkit-mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 65%);
    mask-image: radial-gradient(circle at 100% 0, #000 0, transparent 65%);
    opacity: 0.35;
    pointer-events: none;
}

.repair-prices__price {
    font-family: var(--assimox-font-two, "Roboto", "Inter", system-ui, sans-serif);
    font-size: clamp(34px, 3.4vw, 46px);
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
    white-space: nowrap;
}

.repair-prices__price-note {
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.4;
    color: #ffffff;
}

/* „Notdienst“-Etikett: bündig in der rechten unteren Kartenecke */
.repair-prices__badge {
    position: absolute;
    right: 0;
    bottom: 0;
    padding: 7px 18px;
    border-top-left-radius: 14px;
    background-color: var(--repair-prices-accent);
    color: var(--repair-prices-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

@media (max-width: 1199px) {
    .repair-prices {
        padding: 80px 0;
    }

    .repair-prices__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .repair-prices__card-title {
        font-size: clamp(24px, 3.4vw, 32px);
    }

    .repair-prices__price {
        font-size: clamp(34px, 5vw, 46px);
    }
}

@media (max-width: 767px) {
    .repair-prices {
        padding: 60px 0;
    }

    .repair-prices__inner {
        padding: 0 20px;
    }

    .repair-prices__head {
        margin-bottom: 40px;
    }

    .repair-prices__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .repair-prices__top {
        min-height: 170px;
    }

    .repair-prices__card-title {
        font-size: clamp(24px, 7vw, 30px);
    }

    .repair-prices__price {
        font-size: clamp(32px, 10vw, 42px);
    }
}
