/* ============================================
   PRIMARY CONTAINER - Volle Breite für Projekte
   ============================================ */

/* Projekte-Seiten sollen volle Breite haben */
.single-projekte #primary.content-area {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.single-projekte .site-content {
    max-width: 100% !important;
}

/* Article Container mit eigenem Padding */
.single-projekte article.projekte {
    max-width: 100%;
    margin: 0;
    padding: 2rem;
}

/* ============================================
   PROJEKT LAYOUT - 2/3 Galerie + 1/3 Inhalt
   ============================================ */

/* Container für das 2-spaltige Layout */
.projekt-content-container {
    display: flex;
    gap: 3rem;
    width: 100%;
    margin-top: 2rem;
}

/* Galerie nimmt 2/3 (66.67%) der Breite */
.projekt-galerie {
    flex: 2 1 0;
    min-width: 0;
}

/* Beschreibung nimmt 1/3 (33.33%) der Breite */
.projekt-beschreibung {
    flex: 1 1 0;
    min-width: 0;
    padding-right: 2rem;
}
/* ============================================
   GALERIE SLIDER - Horizontal Scrolling
   ============================================ */

.galerie-slider {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    gap: 1rem;
    cursor: grab;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
}

.galerie-slider:active {
    cursor: grabbing;
}

/* Scrollbar Styling */
.galerie-slider::-webkit-scrollbar {
    height: 10px;
}

.galerie-slider::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.galerie-slider::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 5px;
}

.galerie-slider::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Einzelne Slides */
.galerie-slide {
    flex: 0 0 auto;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 75vh;
}

.galerie-slide img {
    width: auto;
    height: 75vh;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.galerie-slide.is-portrait img {
    max-width: 60vw;
}

.galerie-slide.is-square img {
    max-width: 75vh;
}

.galerie-slide.is-landscape img {
    max-width: 100%;
}

/* Navigation Buttons */
.galerie-navigation {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

.galerie-prev,
.galerie-next {
    background-color: #333;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.galerie-prev:hover,
.galerie-next:hover {
    background-color: #000;
    transform: scale(1.05);
}

/* Galerie-Beschreibung */
.galerie-beschreibung {
    text-align: left !important;
    margin-top: 1rem;
    margin-left: 0;
    padding-left: 1rem;
    background-color: #fff;
    border-radius: 4px;
    display: block;
    visibility: visible;
    opacity: 1;
}

.galerie-beschreibung p {
    margin: 0;
    text-align: left !important;
    line-height: 1.6;
    color: #333;
}

.galerie-beschreibung li,
.galerie-beschreibung h1,
.galerie-beschreibung h2,
.galerie-beschreibung h3,
.galerie-beschreibung h4,
.galerie-beschreibung h5,
.galerie-beschreibung h6 {
    text-align: left !important;
}

/* Vector Zeichnung */
.projekt-vector-zeichnung {
    margin-top: 2rem;
    text-align: center;
}

.projekt-vector-zeichnung img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* ============================================
   PROJEKT META & HEADER
   ============================================ */

.entry-header {
    margin-bottom: 2rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.projekt-meta {
    display: flex;
    gap: 1rem;
    color: #666;
    font-size: 0.95rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 992px) {
    .projekt-content-container {
        gap: 2rem;
    }
    
    .projekt-galerie {
        flex: 3 1 0;
    }
    
    .projekt-beschreibung {
        flex: 2 1 0;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .projekt-content-container {
        flex-direction: column;
        gap: 2rem;
    }
    
    .projekt-galerie,
    .projekt-beschreibung {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .entry-title {
        font-size: 2rem;
    }
}