/* ================================================================
   TMH Produkt-Showcase — Zusätzliche Styles
   ================================================================ */

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}
.stat-num {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--c-gold);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}
.stat-label {
    color: var(--c-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
    font-weight: 600;
}
@media (max-width: 768px) {
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}
.gallery-hero {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.gallery-item {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--c-line);
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
    display: block;
}
.gallery-item:hover img {
    transform: scale(1.05);
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 60%, rgba(200,164,78,0.1) 100%);
    pointer-events: none;
    transition: opacity var(--t-base);
}
.gallery-item:hover::after {
    background: rgba(200,164,78,0.08);
}
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
    }
    .gallery-hero {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}
@media (max-width: 480px) {
    .gallery-grid { grid-template-columns: 1fr; }
}

/* ===== SPECS TABLE ===== */
.specs-table {
    display: flex;
    flex-direction: column;
}
.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid var(--c-line);
}
.spec-row:first-child {
    border-top: 1px solid var(--c-line);
}
.spec-label {
    font-size: 0.9rem;
    color: var(--c-text-dim);
    font-weight: 500;
}
.spec-value {
    font-size: 0.95rem;
    color: var(--c-text);
    font-weight: 700;
    text-align: right;
}

/* ===== IMAGE FRAME ===== */
.image-frame {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--c-line);
}
.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(200,164,78,0.08) 100%);
    pointer-events: none;
}
.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.image-frame:hover img {
    transform: scale(1.04);
}

/* ===== NORMS GRID ===== */
.norms-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}
.norm-badge {
    padding: 12px 24px;
    background: var(--c-gold-soft);
    border: 1px solid var(--c-gold-line);
    border-radius: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--c-gold);
    letter-spacing: 0.02em;
}

/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.projects-grid .project-card:first-child {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}
.project-card {
    background: rgba(255,255,255,.02);
    border: 1px solid var(--c-line);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all var(--t-base);
    position: relative;
}
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--c-gold);
    transition: width var(--t-base);
    z-index: 2;
}
.project-card:hover {
    transform: translateY(-4px);
    border-color: var(--c-gold-line);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.project-card:hover::before { width: 100%; }

.project-featured {
    border-color: var(--c-gold-line);
}

.project-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}
.projects-grid .project-card:first-child .project-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 300px;
}
.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--t-slow);
}
.project-card:hover .project-img img {
    transform: scale(1.06);
}
.project-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: var(--c-gold);
    color: var(--c-bg-deepest);
    padding: 6px 14px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    z-index: 1;
}
.project-body {
    padding: 24px;
}
.project-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--c-text);
}
.project-body p {
    font-size: 0.88rem;
    color: var(--c-text-dim);
    line-height: 1.6;
    margin-bottom: 14px;
}
.projects-grid .project-card:first-child .project-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(5,8,16,0.95));
    padding: 60px 28px 28px;
}
.projects-grid .project-card:first-child .project-body h3 {
    font-size: 1.5rem;
}

@media (max-width: 968px) {
    .projects-grid { grid-template-columns: 1fr 1fr; }
    .projects-grid .project-card:first-child {
        grid-column: 1 / -1;
        grid-row: auto;
    }
    .projects-grid .project-card:first-child .project-img {
        aspect-ratio: 16/9;
        min-height: auto;
    }
}
@media (max-width: 640px) {
    .projects-grid { grid-template-columns: 1fr; }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(5,8,16,0.96);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.open {
    display: flex;
}
.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 20px 80px rgba(0,0,0,0.6);
}
.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    font-size: 2.5rem;
    color: var(--c-text-dim);
    cursor: pointer;
    z-index: 10;
    background: none;
    border: none;
    transition: color var(--t-fast);
    line-height: 1;
}
.lightbox-close:hover { color: var(--c-gold); }

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--c-text-dim);
    cursor: pointer;
    background: none;
    border: none;
    padding: 20px;
    transition: color var(--t-fast);
    z-index: 10;
}
.lightbox-nav:hover { color: var(--c-gold); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--c-text-dim);
    font-weight: 600;
    letter-spacing: 0.1em;
}

/* ===== PROJECT MODAL ===== */
.project-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(5,8,16,0.92);
    backdrop-filter: blur(20px);
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}
.project-modal.open {
    display: flex;
}
.project-modal-inner {
    background: var(--c-bg-mid);
    border: 1px solid var(--c-line);
    border-radius: 8px;
    padding: 40px;
    max-width: 900px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.project-modal-inner h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
    color: var(--c-text);
    padding-right: 40px;
}
.project-modal-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.project-modal-gallery img {
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--c-line);
    cursor: pointer;
    transition: transform var(--t-base);
}
.project-modal-gallery img:hover {
    transform: scale(1.02);
}
.project-modal-gallery img:first-child {
    grid-column: 1 / -1;
}
@media (max-width: 640px) {
    .project-modal-inner { padding: 24px; }
    .project-modal-gallery { grid-template-columns: 1fr; }
}

/* ===== SECTION HEAD ===== */
.section-head {
    margin-bottom: 48px;
}

/* ===== CTA SECTION ===== */
.cta-section {
    background-color: var(--c-bg-deepest);
    background-image: var(--bg);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 140px 0;
    position: relative;
}
.section-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5,8,16,.82) 0%, rgba(5,8,16,.92) 100%);
    z-index: 1;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--c-bg-deepest);
    border-top: 1px solid var(--c-line);
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.4fr;
    gap: 50px;
    padding-bottom: 50px;
}
.footer h4 {
    color: #fff;
    font-size: 0.85rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer ul li a {
    color: var(--c-text-dim);
    font-size: 0.88rem;
    transition: color var(--t-base);
}
.footer ul li a:hover { color: var(--c-gold); }
.footer-bottom {
    display: flex;
    justify-content: space-between;
    padding: 24px 0 0;
    border-top: 1px solid rgba(255,255,255,.05);
    font-size: 0.82rem;
    color: var(--c-text-faint);
    flex-wrap: wrap;
    gap: 18px;
}
@media (max-width: 968px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 640px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ===== FADE-IN ANIMATIONS ===== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.fade-in.delay-1 { transition-delay: 0.1s; }
.fade-in.delay-2 { transition-delay: 0.2s; }
.fade-in.delay-3 { transition-delay: 0.3s; }
