/* =============================================
   Startseite – Hero, Features, Standorte, CTA
   ============================================= */

/* Hero */
.hero {
    padding: 4rem 1.5rem 5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 40%, #eef2ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 560px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: #dcfce7;
    color: #166534;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-badge svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.hero h1 .accent {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: 2rem;
    max-width: 440px;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-stat svg {
    width: 20px;
    height: 20px;
    color: var(--color-primary);
}

.hero-stat span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text);
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Image */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.car-showcase {
    width: 100%;
    max-width: 520px;
    aspect-ratio: 16/10;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 60px rgba(0,0,0,0.15);
}

.car-showcase picture {
    width: 100%;
    height: 100%;
}

.car-showcase img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.car-specs-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 2;
}

.spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    color: rgba(255,255,255,0.9);
    font-size: 0.75rem;
    font-weight: 500;
}

.spec-chip svg {
    width: 14px;
    height: 14px;
}

.car-price-tag {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1rem;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 2;
}

.car-price-tag small {
    font-weight: 400;
    opacity: 0.8;
    font-size: 0.75rem;
}

/* Fallback when no image */
.car-showcase-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
}

.car-showcase-fallback .car-name {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.car-showcase-fallback .car-sub {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Kleinanzeigen Strip */
.kleinanzeigen-strip {
    padding: 1rem 1.5rem;
    background: #dcfce7;
    text-align: center;
}

.kleinanzeigen-strip a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #166534;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: opacity var(--transition);
}

.kleinanzeigen-strip a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.kleinanzeigen-strip svg {
    width: 20px;
    height: 20px;
}

/* Fahrzeug-Galerie / Slideshow */
.fahrzeug-galerie {
    padding: 5rem 1.5rem;
    background: #fff;
}

.galerie-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    border-radius: 16px;
    overflow: hidden;
}

.mySlides {
    display: none;
    position: relative;
}

.mySlides img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}

.slide-label {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 1rem 1.25rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.slide-prev, .slide-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px 20px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: background-color var(--transition);
    user-select: none;
    background: rgba(0, 0, 0, 0.3);
    text-decoration: none;
    z-index: 2;
}

.slide-prev {
    left: 0;
    border-radius: 0 8px 8px 0;
}

.slide-next {
    right: 0;
    border-radius: 8px 0 0 8px;
}

.slide-prev:hover, .slide-next:hover,
.slide-prev:focus-visible, .slide-next:focus-visible {
    background-color: rgba(0, 0, 0, 0.7);
}

.slide-prev:focus-visible, .slide-next:focus-visible {
    outline: 2px solid white;
    outline-offset: -2px;
}

.slide-dots {
    text-align: center;
    padding: 1rem 0;
    position: absolute;
    bottom: 0;
    width: 100%;
    z-index: 2;
}

.dot {
    cursor: pointer;
    height: 12px;
    width: 12px;
    margin: 0 4px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color var(--transition);
}

.dot.active, .dot:hover {
    background-color: #fff;
}

.fade {
    animation-name: slideFade;
    animation-duration: 0.8s;
}

@keyframes slideFade {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

/* Features */
.features {
    padding: 5rem 1.5rem;
    background: var(--color-bg-light);
}

.features-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: 0 8px 30px rgba(37,99,235,0.08);
    transform: translateY(-4px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.feature-card p {
    font-size: 0.85rem;
    color: var(--color-text-light);
    line-height: 1.5;
}

/* Standorte */
.standorte {
    padding: 5rem 1.5rem;
    background: #fff;
}

.standorte-inner {
    max-width: 900px;
    margin: 0 auto;
}

.standorte-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.standort-card {
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all var(--transition);
}

.standort-card:hover {
    border-color: rgba(37,99,235,0.3);
    box-shadow: 0 8px 30px rgba(37,99,235,0.08);
}

.standort-map {
    width: 100%;
    height: 200px;
}

.standort-info {
    padding: 1.25rem;
    text-align: center;
}

.standort-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.375rem;
}

.standort-info .address {
    font-size: 0.85rem;
    color: var(--color-text-light);
    margin-bottom: 1rem;
}

.standort-link {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.standort-link:hover {
    text-decoration: underline;
}

.standort-link svg {
    width: 16px;
    height: 16px;
}

/* Über uns */
.ueber-uns {
    padding: 5rem 1.5rem;
    background: var(--color-bg-light);
}

.ueber-uns-inner {
    max-width: 800px;
    margin: 0 auto;
}

.ueber-uns-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.25rem;
}

.ueber-uns-text p:last-child {
    margin-bottom: 0;
}

.ueber-uns-text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* CTA */
.cta {
    padding: 5rem 1.5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    text-align: center;
    color: #fff;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
}

.cta h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Übergangs-Banner */
.transition-banner {
    padding: 3rem 1.5rem;
    background: #fef3c7;
    text-align: center;
}

.transition-banner-inner {
    max-width: 700px;
    margin: 0 auto;
}

.transition-banner h3 {
    color: #b45309;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.transition-banner p {
    color: var(--color-text);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 768px) {
    .hero {
        padding: 2rem 1.5rem 3rem;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-visual {
        order: -1;
    }

    .car-showcase {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-content {
        text-align: center;
        max-width: 100%;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .mySlides img {
        height: 300px;
    }

    .slide-prev, .slide-next {
        font-size: 16px;
        padding: 12px 14px;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .standorte-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
