/* Geisen Galabau Projekte - Frontend Styles */
/* Erdton-Farbpalette passend zu geisen-galabau.de */

/* Projekt-Grid */
.ggp-projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.ggp-project-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(75, 59, 48, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ggp-project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(75, 59, 48, 0.15);
}

.ggp-project-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.ggp-project-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ggp-project-card:hover .ggp-project-thumbnail img {
    transform: scale(1.1);
}

.ggp-project-status {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: rgba(122, 100, 79, 0.9);
    color: white;
}

.ggp-project-content {
    padding: 20px;
}

.ggp-project-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 700;
    color: #4b3b30;
}

.ggp-project-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7a644f;
    font-size: 14px;
    margin-bottom: 10px;
}

.ggp-project-description {
    color: #4b4b55;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.ggp-project-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #7a644f;
}

.ggp-project-images-count {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.ggp-count-badge {
    display: inline-block;
    padding: 4px 10px;
    background: #f1e6d8;
    color: #4b3b30;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ggp-view-project-btn {
    width: 100%;
    padding: 10px 20px;
    background: #c46b3b;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.ggp-view-project-btn:hover {
    background: #a85a2f;
}

/* Einzelprojekt-Ansicht */
.ggp-single-project {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(75, 59, 48, 0.1);
}

.ggp-project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f1e6d8;
}

.ggp-project-header h2 {
    margin: 0;
    font-size: 28px;
    color: #4b3b30;
}

.ggp-project-status-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.ggp-project-status-badge.ongoing {
    background: #c46b3b;
    color: #fff;
}

.ggp-project-status-badge.completed {
    background: #7a644f;
    color: #fff;
}

.ggp-project-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f7f0e7;
    border-radius: 6px;
}

.ggp-info-item {
    font-size: 14px;
    color: #4b4b55;
}

.ggp-info-item strong {
    color: #4b3b30;
}

.ggp-images-section {
    margin: 30px 0;
}

.ggp-images-group {
    margin-bottom: 40px;
}

.ggp-images-group h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #4b3b30;
    padding-bottom: 10px;
    border-bottom: 2px solid #c46b3b;
}

.ggp-images-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ggp-gallery-item {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(75, 59, 48, 0.1);
    transition: transform 0.3s ease;
}

.ggp-gallery-item:hover {
    transform: scale(1.05);
}

.ggp-gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
}

.ggp-image-caption {
    padding: 10px;
    background: #fff;
    font-size: 13px;
    color: #4b4b55;
    margin: 0;
}

/* Vorher/Nachher Vergleich */
.ggp-comparison-slider {
    margin: 40px 0;
    padding: 30px;
    background: #f7f0e7;
    border-radius: 8px;
}

.ggp-comparison-slider h3 {
    font-size: 22px;
    margin-bottom: 20px;
    color: #4b3b30;
}

.ggp-slider-container {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.ggp-slider-before,
.ggp-slider-after {
    position: relative;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.ggp-slider-before img,
.ggp-slider-after img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.ggp-slider-label {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

/* Modal */
.ggp-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.ggp-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 1000px;
    max-height: 80vh;
    overflow-y: auto;
}

.ggp-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.ggp-modal-close:hover,
.ggp-modal-close:focus {
    color: #000;
}

/* Lightbox */
.ggp-lightbox {
    display: none;
    position: fixed;
    z-index: 1000000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
}

.ggp-lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

.ggp-lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.ggp-lightbox-close:hover,
.ggp-lightbox-close:focus {
    color: #bbb;
}

.ggp-lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
}

.ggp-lightbox-prev,
.ggp-lightbox-next {
    background: rgba(255, 255, 255, 0.3);
    border: none;
    color: white;
    font-size: 40px;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.3s;
}

.ggp-lightbox-prev:hover,
.ggp-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ggp-projects-grid {
        grid-template-columns: 1fr;
    }

    .ggp-slider-container {
        grid-template-columns: 1fr;
    }

    .ggp-slider-before img,
    .ggp-slider-after img {
        height: 300px;
    }

    .ggp-project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ggp-images-gallery {
        grid-template-columns: 1fr;
    }
}

/* Keine Projekte gefunden */
.ggp-no-projects {
    text-align: center;
    padding: 40px;
    color: #7a644f;
    font-size: 16px;
}

/* Loading-Spinner für AJAX */
.ggp-loading {
    text-align: center;
    padding: 40px;
    color: #7a644f;
}

.ggp-loading::after {
    content: '';
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid #f1e6d8;
    border-top-color: #c46b3b;
    border-radius: 50%;
    animation: ggp-spin 0.8s linear infinite;
}

@keyframes ggp-spin {
    to { transform: rotate(360deg); }
}
