/**
 * Fahrzeug Gallery – Frontend Styles (Museum / Classic Vehicle Datasheet & Lightbox Gallery)
 * Author: Dirk Lüders / Heritage Society
 */

:root {
    --fg-bg-paper: #faf8f5;
    --fg-bg-card: #ffffff;
    --fg-border: #e2dcd3;
    --fg-border-strong: #c5bba8;
    --fg-text-main: #1b1a17;
    --fg-text-muted: #5c5852;
    --fg-accent: #8c2d19;
    --fg-accent-gold: #b08d57;
    --fg-dark: #161513;
}

/* Intro & Highlights */
.fg-intro-wrap {
    margin: 0 0 2rem;
    padding: 1.5rem 1.75rem;
    background: var(--fg-bg-paper);
    border: 1px solid var(--fg-border);
    border-left: 4px solid var(--fg-accent);
    border-radius: 6px;
}

.fg-badge-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 12px;
}

.fg-heritage-badge {
    display: inline-block;
    background: var(--fg-dark);
    color: #f4efe6;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 3px;
}

.fg-meta-pill {
    display: inline-block;
    background: #eae4da;
    color: var(--fg-text-main);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 3px;
}

.fg-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--fg-text-main);
    margin: 0 0 0.75rem !important;
    line-height: 1.4;
}

.fg-lead-summary {
    font-size: 1.05rem;
    line-height: 1.65;
    color: #2c2a26;
}

.fg-lead-summary p:last-child {
    margin-bottom: 0;
}

.fg-highlights-box {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--fg-border-strong);
}

.fg-highlights-title {
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-accent);
    margin: 0 0 0.6rem !important;
}

.fg-highlights-list {
    margin: 0 !important;
    padding-left: 1.2rem !important;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 6px 18px;
}

.fg-highlights-list li {
    font-size: 0.94rem;
    color: var(--fg-text-main);
    font-weight: 500;
}

/* Technical Datasheet Card */
.fg-datasheet-section {
    margin: 2.75rem 0;
}

.fg-datasheet-card {
    background: var(--fg-bg-card);
    border: 2px solid var(--fg-dark);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.fg-datasheet-header {
    background: var(--fg-dark);
    color: #ffffff;
    padding: 1.25rem 1.6rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-bottom: 3px solid var(--fg-accent-gold);
}

.fg-datasheet-eyebrow {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--fg-accent-gold);
    margin-bottom: 2px;
}

.fg-datasheet-title {
    margin: 0 !important;
    font-size: 1.35rem !important;
    color: #ffffff !important;
    font-weight: 700;
}

.fg-datasheet-stamp {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border: 1px solid rgba(176, 141, 87, 0.65);
    color: #e6dccf;
    border-radius: 3px;
}

.fg-datasheet-table-wrap {
    overflow-x: auto;
}

.fg-datasheet-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 !important;
    font-size: 0.95rem;
}

.fg-datasheet-table tr {
    border-bottom: 1px solid var(--fg-border);
}

.fg-datasheet-table tr:nth-child(even) {
    background-color: var(--fg-bg-paper);
}

.fg-datasheet-table tr:last-child {
    border-bottom: none;
}

.fg-spec-label {
    width: 36%;
    min-width: 190px;
    text-align: left;
    padding: 12px 18px !important;
    font-weight: 700;
    color: var(--fg-text-main);
    vertical-align: top;
    border-right: 1px solid var(--fg-border);
}

.fg-spec-value {
    padding: 12px 18px !important;
    color: #2b2926;
    vertical-align: top;
    line-height: 1.5;
}

/* Gallery Grid */
.fg-gallery-section {
    margin: 3rem 0;
}

.fg-section-header {
    margin-bottom: 1.25rem;
}

.fg-section-title {
    margin: 0 0 0.35rem !important;
    font-size: 1.5rem !important;
    color: var(--fg-text-main);
}

.fg-section-subtitle {
    margin: 0 !important;
    font-size: 0.9rem;
    color: var(--fg-text-muted);
}

.fg-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
}

.fg-gallery-item {
    margin: 0 !important;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    background: #141414;
    border: 1px solid var(--fg-border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fg-gallery-link {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.fg-gallery-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.fg-gallery-link:hover .fg-gallery-img {
    transform: scale(1.04);
}

.fg-zoom-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(22, 21, 19, 0.78);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.fg-gallery-link:hover .fg-zoom-badge {
    opacity: 1;
}

.fg-gallery-caption {
    padding: 8px 12px;
    font-size: 0.82rem;
    background: var(--fg-bg-paper);
    color: var(--fg-text-muted);
}

/* Lightbox Modal */
.fg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(12, 12, 12, 0.94);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.fg-lightbox.is-open {
    display: flex;
}

.fg-lb-stage {
    max-width: 90vw;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.fg-lb-img {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.fg-lb-footer {
    margin-top: 12px;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5e0d8;
    font-size: 0.92rem;
    gap: 16px;
}

.fg-lb-counter {
    color: var(--fg-accent-gold);
    font-weight: 600;
    white-space: nowrap;
}

.fg-lb-close {
    position: absolute;
    top: 18px;
    right: 24px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
    cursor: pointer;
    padding: 6px 12px;
}

.fg-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.fg-lb-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.fg-lb-prev {
    left: 20px;
}

.fg-lb-next {
    right: 20px;
}

/* FAQ Section (GEO) */
.fg-faq-section {
    margin: 3rem 0 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--fg-border);
}

.fg-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 1rem;
}

.fg-faq-item {
    background: var(--fg-bg-paper);
    border: 1px solid var(--fg-border);
    border-radius: 6px;
    padding: 12px 16px;
}

.fg-faq-question {
    font-weight: 700;
    color: var(--fg-text-main);
    cursor: pointer;
    font-size: 1rem;
}

.fg-faq-answer {
    margin-top: 10px;
    color: #2c2a26;
    font-size: 0.95rem;
    line-height: 1.6;
}

.fg-faq-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 640px) {
    .fg-spec-label,
    .fg-spec-value {
        display: block;
        width: 100%;
        border-right: none;
    }
    .fg-spec-label {
        padding-bottom: 4px !important;
        color: var(--fg-accent);
    }
    .fg-spec-value {
        padding-top: 0 !important;
    }
}
