/* =========================================================
   SECTIONS.CSS - Seitenspezifische Sektionen & Module
   Heinz Autocenter GmbH & Co. KG - MODX 3 Theme
   ========================================================= */

/* ---- HERO / BANNER ---- */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 50vh;
    display: flex;
    align-items: center;
}
.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(16,24,40,0.65) 0%, rgba(16,24,40,0.3) 60%, transparent 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    padding: 3rem 0;
}
.hero-title {
    font-family: var(--display-font);
    font-weight: var(--display-weight);
    color: #ffffff;
    font-size: 2.25rem;
    line-height: 2.75rem;
    margin-bottom: 1rem;
}
@media (min-width: 1024px) {
    .hero-title { font-size: 3.75rem; line-height: 4.5rem; }
}
.hero-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    max-width: 36rem;
}

/* ---- FAHRZEUGANGEBOT GRID ---- */
.vehicle-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 640px) {
    .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .vehicle-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.vehicle-card {
    background: #ffffff;
    border-radius: var(--image-rounding);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16,24,40,0.1);
    transition: box-shadow 0.2s, transform 0.2s;
}
.vehicle-card:hover {
    box-shadow: 0 8px 24px rgba(16,24,40,0.15);
    transform: translateY(-2px);
}
.vehicle-card-image-wrap {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: rgb(242 244 247);
}
.vehicle-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.vehicle-card:hover .vehicle-card-image {
    transform: scale(1.03);
}
.vehicle-card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
}
.vehicle-card-body {
    padding: 1rem;
}
.vehicle-card-title {
    font-weight: 700;
    color: rgb(16 24 40);
    margin-bottom: 0.25rem;
    font-size: 1rem;
}
.vehicle-card-sub {
    font-size: 0.875rem;
    color: rgb(102 112 133);
    margin-bottom: 0.5rem;
}
.vehicle-card-price {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-colour);
    margin-bottom: 0.75rem;
}
.vehicle-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: rgb(102 112 133);
    margin-bottom: 1rem;
}
.vehicle-card-detail-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* ---- MARKEN-TEASER ---- */
.brand-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 640px) {
    .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: #ffffff;
    border-radius: var(--image-rounding);
    border: 1px solid rgb(234 236 240);
    text-align: center;
    transition: border-color 0.15s, box-shadow 0.15s;
    text-decoration: none;
    color: inherit;
}
.brand-card:hover {
    border-color: var(--primary-colour);
    box-shadow: 0 0 0 2px var(--primary-50-colour);
}
.brand-card img {
    max-height: 3.5rem;
    max-width: 8rem;
    object-fit: contain;
    margin-bottom: 0.75rem;
    filter: grayscale(100%);
    transition: filter 0.2s;
}
.brand-card:hover img { filter: grayscale(0%); }
.brand-card-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgb(52 64 84);
}

/* ---- SAFARI-HINWEIS (Fahrzeugsuche) ---- */
.fahrzeug-safari-hinweis {
    background: var(--primary-25-colour);
    border: 1px solid var(--primary-50-colour);
    border-radius: var(--button-rounding);
    padding: .875rem 1.25rem;
    margin-bottom: 1rem;
}
.fahrzeug-safari-hinweis p {
    margin: 0;
    font-size: .875rem;
    color: rgb(52 64 84);
    line-height: 1.6;
}
.fahrzeug-safari-hinweis a {
    color: var(--primary-colour);
    font-weight: 600;
    text-decoration: underline;
    white-space: nowrap;
}

/* ---- FAHRZEUGSUCHE IFRAME (Traumwagen-Bereich) ---- */
.fahrzeug-iframe-wrapper {
    border-radius: var(--image-rounding);
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(16,24,40,0.1);
    border: 1px solid rgb(234 236 240);
}
.fahrzeug-iframe {
    display: block;
    width: 100%;
    height: 800px;
    border: 0;
}
@media (max-width: 768px) {
    .fahrzeug-iframe {
        height: 1200px;
    }
}

/* ---- SERVICE-BEREICH ---- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
    .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--primary-25-colour);
    border-radius: var(--image-rounding);
    border-left: 4px solid var(--primary-colour);
}
.service-card-title {
    font-weight: 700;
    font-size: 1.125rem;
    color: rgb(16 24 40);
}
.service-card-text {
    font-size: 0.875rem;
    color: rgb(71 85 105);
    line-height: 1.6;
}

/* ---- SECTION TITLE (zentriert) ---- */
.section-title {
    text-align: center;
    margin-bottom: 2.5rem;
}
.section-title h2 {
    font-family: var(--display-font);
    font-weight: var(--display-weight);
    color: rgb(16 24 40);
    margin-bottom: 0.75rem;
}
.section-title p {
    color: rgb(71 85 105);
    font-size: 1.125rem;
    max-width: 40rem;
    margin: 0 auto;
}

/* ---- USP BAR (Vorteile-Leiste) ---- */
.usp-bar {
    background-color: var(--primary-colour);
    color: var(--primary-text-colour);
    padding: 1.5rem 0;
}
.usp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
@media (min-width: 1024px) {
    .usp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.usp-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}
.usp-icon {
    width: 2.5rem;
    height: 2.5rem;
    fill: var(--primary-text-colour);
}
.usp-label {
    font-size: 0.875rem;
    font-weight: 600;
}

/* ---- KONTAKTFORMULAR-SECTION ---- */
.contact-section {
    background-color: var(--primary-25-colour);
    padding: 4rem 0;
}
@media (min-width: 1024px) {
    .contact-section { padding: 6rem 0; }
}

/* ---- ALERT BANNER ---- */
.alert-banner {
    background-color: var(--topbar-background-colour);
    color: var(--topbar-text-colour);
    padding: 0.625rem 1rem;
    text-align: center;
    font-size: 0.875rem;
    position: relative;
}
.alert-banner-close {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--topbar-text-colour);
    cursor: pointer;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0;
}

/* ---- PAGINATION ---- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--button-rounding);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgb(234 236 240);
    color: rgb(52 64 84);
    transition: background-color 0.15s, color 0.15s;
    text-decoration: none;
}
.pagination a:hover {
    background-color: var(--primary-50-colour);
    border-color: var(--primary-colour);
    color: var(--primary-colour);
}
.pagination .active {
    background-color: var(--primary-colour);
    border-color: var(--primary-colour);
    color: var(--primary-text-colour);
}
