/**
 * REFERENZ-DETAIL.CSS - PROFESSIONAL REFERENCE DETAIL PAGES
 * S.Y.Z. GmbH & Co. KG - Einzelne Referenz-Ansicht
 * Corporate Design - Eckig, Professionell, Modern
 */

/* ============================================================================
   REFERENZ DETAIL HERO - HERO MIT BACKGROUND IMAGE
   ============================================================================ */
.referenz-detail-hero {
    position: relative;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    /*margin-top: 70px;*/
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(0,0,0,0.3) 0%, 
        rgba(44, 74, 103, 0.85) 100%);
}

.referenz-detail-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 3rem 0;
    color: white;
}

.hero-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255,255,255,0.3);
}

.referenz-detail-hero h1 {
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.4rem;
    opacity: 0.95;
    max-width: 800px;
    line-height: 1.6;
    margin: 0;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* ============================================================================
   QUICK FACTS - FAKTEN-GRID
   ============================================================================ */
.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
}

.fact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: white;
    border: 2px solid var(--color-grey);
    transition: all 0.3s ease;
}

.fact-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.fact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    flex-shrink: 0;
}

.fact-icon svg {
    width: 28px;
    height: 28px;
}

.fact-content {
    flex: 1;
}

.fact-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.fact-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.4;
}

/* ============================================================================
   REFERENZ DETAIL LAYOUT - 2-SPALTEN LAYOUT
   ============================================================================ */
.referenz-detail-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 4rem;
    align-items: start;
}

/* ============================================================================
   MAIN CONTENT - HAUPTINHALT
   ============================================================================ */
.referenz-main-content {
    max-width: 100%;
}

.content-block {
    margin-bottom: 4rem;
}

.content-block h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid var(--color-primary);
}

.content-block h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.content-block h3::before {
    content: '';
    width: 4px;
    height: 28px;
    background: var(--color-primary);
}

.content-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.content-block p.lead {
    font-size: 1.25rem;
    line-height: 1.9;
    color: var(--color-text);
}

/* Highlight Block - Für "Ergebnis" */
.highlight-block {
    background: linear-gradient(135deg, rgba(44, 74, 103, 0.03) 0%, rgba(74, 144, 226, 0.05) 100%);
    padding: 3rem;
    border-left: 4px solid var(--color-primary);
    margin-top: 3rem;
}

.highlight-block h3 {
    color: var(--color-primary);
}

.highlight-block h3::before {
    background: var(--color-success);
}

.highlight-block p {
    font-size: 1.15rem;
    font-weight: 500;
}

/* ============================================================================
   REFERENZ GALLERY - PROJEKT-GALERIE
   ============================================================================ */
.referenz-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--color-grey);
    border: 2px solid var(--color-grey);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* ============================================================================
   PROJECT TESTIMONIAL - KUNDENSTIMME
   ============================================================================ */
.project-testimonial {
    background: white;
    padding: 3rem;
    border: 2px solid var(--color-grey);
    border-left: 4px solid var(--color-primary);
    margin-top: 2rem;
}

.testimonial-stars {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.testimonial-stars .star {
    color: #ffc107;
    width: 24px;
    height: 24px;
}

.project-testimonial blockquote {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--color-text);
    font-style: italic;
    margin: 0 0 2rem 0;
    padding: 0;
    border: none;
}

.testimonial-author-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.05rem;
    color: #666;
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-grey);
}

.testimonial-author-info strong {
    color: var(--color-primary);
    font-weight: 700;
}

/* ============================================================================
   SIDEBAR - RECHTE SPALTE
   ============================================================================ */
.referenz-sidebar {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-box {
    background: white;
    padding: 2.5rem 2rem;
    border: 2px solid var(--color-grey);
    box-shadow: var(--shadow-md);
}

.sidebar-box h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-grey);
}

/* Detail List */
.detail-list {
    margin: 0;
}

.detail-list dt {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.detail-list dd {
    font-size: 1.05rem;
    color: var(--color-text);
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 1px dashed var(--color-grey);
}

.detail-list dd:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Features List */
.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    border-bottom: 1px dashed var(--color-grey);
    color: var(--color-text);
    line-height: 1.6;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
    font-size: 1.2rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-box h4 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.2);
}

.cta-box p {
    color: white;
    opacity: 0.95;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-box .btn {
    width: 100%;
}

.cta-box .btn-primary {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.cta-box .btn-primary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

/* ============================================================================
   MORE PROJECTS SECTION - WEITERE PROJEKTE
   ============================================================================ */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: white;
    border: 2px solid var(--color-grey);
    overflow: hidden;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.card-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.card-content {
    padding: 2rem;
}

.card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.card-text {
    color: var(--color-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.card-footer {
    padding-top: 1.5rem;
    border-top: 2px solid var(--color-grey);
}

/* ============================================================================
   ANIMATE ON SCROLL
   ============================================================================ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================================
   SECTION HEADER
   ============================================================================ */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

/* ============================================================================
   RESPONSIVE DESIGN
   ============================================================================ */
@media (max-width: 1024px) {
    .referenz-detail-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .referenz-sidebar {
        position: static;
        order: 1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 2rem;
    }
    
    .referenz-main-content {
        order: 2;
    }
}

@media (max-width: 768px) {
    .referenz-detail-hero {
        min-height: 400px;
    }
    
    .referenz-detail-hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .quick-facts {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .fact-item {
        padding: 1.5rem;
    }
    
    .referenz-gallery {
        grid-template-columns: 1fr;
    }
    
    .content-block h2 {
        font-size: 2rem;
    }
    
    .content-block h3 {
        font-size: 1.5rem;
    }
    
    .highlight-block {
        padding: 2rem 1.5rem;
    }
    
    .project-testimonial {
        padding: 2rem 1.5rem;
    }
    
    .sidebar-box {
        padding: 2rem 1.5rem;
    }
    
    .referenz-sidebar {
        grid-template-columns: 1fr;
    }
    
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .referenz-detail-hero-content {
        padding: 2rem 0;
    }
    
    .hero-badges {
        gap: 0.75rem;
    }
    
    .hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }
    
    .content-block {
        margin-bottom: 3rem;
    }
    
    .content-block h2 {
        font-size: 1.75rem;
    }
    
    .content-block h3 {
        font-size: 1.3rem;
    }
    
    .content-block p,
    .content-block p.lead {
        font-size: 1rem;
    }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */
.btn-light {
    background: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background: var(--color-primary);
    color: white;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}
