/* ============================================================
   WPCarSync — standort.css
   Standortseite (z.B. Autohaus München)
   Voraussetzung: style.css, marke.css, vehicle-detail.css
   ============================================================ */


/* ============================================================
   LOCATION TEASER
   Zweigeteiltes Intro: Links Standortinfo + Stats / Rechts Bild
   ============================================================ */

.wpcs-hero--location {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 52px;
    align-items: center;
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--wpcs-color-border);
    opacity: 0; /* GSAP initial */
}

.wpcs-hero__info {
    display: flex;
    flex-direction: column;
}

.wpcs-hero__image {
    aspect-ratio: 3 / 2;
    border-radius: var(--wpcs-radius-lg);
    overflow: hidden;
    background: var(--wpcs-color-surface-3);
}

.wpcs-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stats im Teaser: horizontal */
.wpcs-hero--location .wpcs-hero-stats {
    flex-direction: row;
    margin-top: 28px;
    min-width: 0;
}

.wpcs-hero--location .wpcs-hero-stat {
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 4px;
}

.wpcs-hero--location .wpcs-hero-stat__value {
    font-size: var(--wpcs-text-4xl);
    min-width: unset;
    text-align: left;
}

.wpcs-hero--location .wpcs-hero__body {
    max-width: none;
}

/* Quick-Address-Zeile */
.wpcs-hero__address {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-family: var(--wpcs-font-body);
    font-size: var(--wpcs-text-sm);
    color: var(--wpcs-color-text-muted);
}

.wpcs-hero__address-icon {
    color: var(--wpcs-color-primary);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.wpcs-hero__address-text {
    flex: 1;
}

.wpcs-location-teaser__map-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wpcs-color-primary);
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--wpcs-transition);
    flex-shrink: 0;
}

.wpcs-location-teaser__map-link:hover {
    color: var(--wpcs-color-primary-bright);
}


/* `.wpcs-brand-logos` (Container) und `.wpcs-brand-logo` (Item): generisches
   Pattern in cards.css (Basis-Layer) — wird sowohl auf Standort-Single
   (via [WPCS_location_brands]) als auch frei platziert (via [WPCS_brand_logos])
   genutzt. */


/* ============================================================
   ADRESSE & ÖFFNUNGSZEITEN
   ============================================================ */

.wpcs-location-info__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

/* .wpcs-location-info__card*, .wpcs-location-address__*, .wpcs-location-hours__*
   sind nach cards.css verschoben — werden auch auf Brand/Vehicle/Offer-Single
   in der Sidebar gebraucht sowie via [WPCS_location_address] frei platzierbar.
   Hier bleibt nur der Standort-Single-spezifische .wpcs-location-info__grid
   Container für die 3-Kacheln-Sektion. */


/* ============================================================
   TEAM
   ============================================================ */

.wpcs-location-team__filter {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

.wpcs-location-team__filter-btn {
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--wpcs-color-text-muted);
    background: var(--wpcs-color-surface);
    border: 1px solid var(--wpcs-color-border);
    border-radius: var(--wpcs-radius-sm);
    padding: 7px 16px;
    cursor: pointer;
    transition:
        color var(--wpcs-transition),
        border-color var(--wpcs-transition),
        background var(--wpcs-transition);
}

.wpcs-location-team__filter-btn:hover {
    border-color: var(--wpcs-color-border-hover);
    color: var(--wpcs-color-text);
}

.wpcs-location-team__filter-btn.active {
    background: var(--wpcs-color-primary-dim);
    border-color: var(--wpcs-color-primary-dim);
    color: var(--wpcs-color-primary);
}

.wpcs-location-team__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

/* Team Card */
.wpcs-team-card {
    background: var(--wpcs-color-surface);
    border: 1px solid var(--wpcs-color-border);
    border-radius: var(--wpcs-radius-lg);
    overflow: hidden;
    transition:
        border-color var(--wpcs-transition),
        box-shadow var(--wpcs-transition),
        transform 240ms ease;
}

.wpcs-team-card:hover {
    border-color: var(--wpcs-color-border-hover);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.wpcs-team-card[hidden] {
    display: none;
}

.wpcs-team-card__photo {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    background: var(--wpcs-color-surface-3);
}

.wpcs-team-card__body {
    padding: 16px 20px 20px;
}

.wpcs-team-card__dept {
    font-family: var(--wpcs-font-mono);
    font-size: var(--wpcs-text-2xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--wpcs-color-primary);
    margin-bottom: 6px;
}

.wpcs-team-card__name {
    font-family: var(--wpcs-font-label);
    font-size: var(--wpcs-text-lg);
    font-weight: 700;
    color: var(--wpcs-color-text);
    line-height: 1.2;
    margin-bottom: 4px;
}

.wpcs-team-card__role {
    font-family: var(--wpcs-font-body);
    font-size: var(--wpcs-text-sm);
    color: var(--wpcs-color-text-muted);
    line-height: 1.4;
    margin-bottom: 14px;
}

.wpcs-team-card__contact {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 14px;
    border-top: 1px solid var(--wpcs-color-border);
}

.wpcs-team-card__contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--wpcs-font-body);
    font-size: var(--wpcs-text-sm);
    color: var(--wpcs-color-text-muted);
    text-decoration: none;
    transition: color var(--wpcs-transition);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wpcs-team-card__contact-link:hover {
    color: var(--wpcs-color-text);
}

.wpcs-team-card__contact-icon {
    color: var(--wpcs-color-primary);
    flex-shrink: 0;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1200px) {
    .wpcs-location-team__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .wpcs-hero--location {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .wpcs-hero__image {
        order: -1;
        aspect-ratio: 16 / 7;
    }

    .wpcs-location-info__grid {
        grid-template-columns: 1fr 1fr;
    }

    .wpcs-location-team__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .wpcs-hero--location {
        padding: 28px 0 36px;
    }

    .wpcs-hero__image {
        aspect-ratio: 4 / 3;
    }

    .wpcs-hero--location .wpcs-hero__headline {
        font-size: clamp(24px, 7vw, 36px);
    }

    .wpcs-hero--location .wpcs-hero-stats {
        flex-direction: column;
        gap: 2px;
    }

    .wpcs-hero--location .wpcs-hero-stat {
        flex-direction: row;
        align-items: center;
        padding: 14px 20px;
    }

    .wpcs-location-info__card {
        padding: 24px 20px;
    }
}

@media (max-width: 540px) {
    .wpcs-location-info__grid {
        grid-template-columns: 1fr;
    }

    .wpcs-location-team__grid {
        grid-template-columns: 1fr;
    }
}
