/* REFERENZEN.CSS - Bereinigt ohne Header/Footer Styles und Navigation-Konflikte */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #ff6b35;
    --primary-blue: #1e3a8a;
    --accent-yellow: #fbbf24;
    --dark-blue: #0f172a;
    --light-gray: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --white: #ffffff;
    --red: #dc2626;
    --shadow: 0 4px 30px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    
    /* Abstände - benötigt für navigation.css und adress_footer.css */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    --spacing-xxl: 60px;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
    overflow-x: hidden;
    padding-top: 85px; /* Angepasst an navigation.css Header-Höhe */
}

/* Main Content */
#main-content {
    position: relative;
    z-index: 1;
}

/* Page Title Section */
.page-title {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--dark-blue) 100%);
    padding: 160px 0 80px 0;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    margin-top: -85px; /* Kompensiert body padding-top */
    padding-top: 245px; /* Erhöht padding-top entsprechend */
}

.page-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(251, 191, 36, 0.1) 0%, transparent 70%);
}

.page-title-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

.page-title h1 {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    margin-bottom: 20px;
    color: var(--white);
}

.page-title p {
    font-size: 1.4rem;
    opacity: 1;
}

/* Gallery Section */
.gallery {
    background: linear-gradient(45deg, var(--light-gray) 0%, var(--white) 50%, var(--light-gray) 100%);
    padding: 100px 0 120px 0; /* Erhöhter bottom-padding für mehr Abstand zum Footer */
    min-height: 100vh;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.gallery-intro {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-intro h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.gallery-intro p {
    font-size: 1.2rem;
    color: var(--text-dark);
    opacity: 1;
    max-width: 800px;
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.gallery-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    height: 350px;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-yellow));
    transform: scaleX(0);
    transition: transform 0.4s ease;
    z-index: 10;
}

.gallery-item:hover::before {
    transform: scaleX(1);
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 80px rgba(0,0,0,0.2);
}

.gallery-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
}

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

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

.gallery-info {
    padding: 20px;
    background: var(--white);
}

.gallery-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 8px;
    line-height: 1.3;
}

.gallery-info p {
    font-size: 1rem;
    color: var(--text-dark);
    opacity: 1;
    margin-bottom: 12px;
}

.gallery-info .project-type {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-orange), var(--accent-yellow));
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
}

.lightbox-info {
    background: var(--white);
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    text-align: center;
    max-width: 500px;
}

.lightbox-info h3 {
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.lightbox-info p {
    color: var(--text-dark);
    font-size: 1.1rem;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 50px;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(0,0,0,0.5);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: var(--accent-yellow);
    background: rgba(0,0,0,0.7);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: var(--white);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav:hover {
    background: rgba(0,0,0,0.8);
    color: var(--accent-yellow);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding-top: 75px; /* Kleinerer Header auf Mobile (navigation.css) */
    }
    
    .page-title {
        margin-top: -75px;
        padding-top: 215px;
    }
    
    .page-title h1 {
        font-size: 2.5rem;
    }

    .page-title p {
        font-size: 1.1rem;
    }

    .gallery-intro h2 {
        font-size: 2rem;
    }

    .gallery-intro p {
        font-size: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item {
        height: 320px;
    }
    
    .gallery-container {
        padding: 0 20px;
    }

    .lightbox-nav {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .lightbox-close {
        width: 50px;
        height: 50px;
        font-size: 40px;
        top: 15px;
        right: 15px;
    }

    .lightbox-info {
        padding: 15px;
        margin-top: 15px;
    }
}

/* Harmonized social icon visibility */
.social-icons img,
.social-icons svg,
.adress_footer .social-icons img,
.adress_footer .social-icons svg,
#adress_footer .social-icons img,
#adress_footer .social-icons svg {
  filter: none !important;
  opacity: 1 !important;
}
