@charset "UTF-8";
/* ----------------------------------- */
/* GRUNDLAGEN */
/* ----------------------------------- */

body {
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* ----------------------------------- */
/* PROJEKT-BUTTONS */
/* ----------------------------------- */

#projectList {
    width: 96%;
    margin: 0 auto;
    overflow: hidden;
}

/* Zentrierung des einzelnen Projekt-Buttons bei Auswahl */
#projectList.centered {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* Innerhalb zentriertem Zustand: Projektbutton */
#projectList.centered .project-button {
    float: none;
    margin: 10px auto;
}

.project-button {
    float: left;
    margin: 1%;
    aspect-ratio: 3 / 1;
    width: 31.33%;
    background: linear-gradient(135deg, #999, #ccc);
    font-size: 1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    position: relative;
    text-align: center;
    transition: all 0.2s ease-in-out;
}

.project-button:hover {
    background: linear-gradient(135deg, #777, #bbb);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    color: orange;
}

/* Aktiver Zustand */
.project-button.active {
    background: linear-gradient(135deg, #555, #999);
    border: 2px solid #333;
    color: black;
    font-weight: bold;
}

/* Zurück-Button (schmal, gleiches Design) */

.project-button.selected {
    position: relative;
}

.project-button .zurueck-icon {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1.2em;
    color: black;
    cursor: pointer;
}

/* ----------------------------------- */
/* RESPONSIVE BUTTON-GRÖSSEN */
/* ----------------------------------- */

@media screen and (max-width: 1024px) {
    .project-button {
        width: 48%;
    }
}

@media screen and (max-width: 480px) {
    .project-button {
        width: 95%;
        float: none;
        margin: 5px auto;         /* 50 % weniger als vorher */
        aspect-ratio: 5 / 1;
        font-size: 0.9em;
    }

    .zurueck-icon {
        top: 4px;
        right: 8px;
        font-size: 1.1em;
    }
}


/* ----------------------------------- */
/* EINZELBUTTON IM GALERIE-KONTEXT */
/* ----------------------------------- */

#imageHeader {
    width: 100%;
    margin: 40px auto 30px auto;
    text-align: center;
}

#imageHeader .project-button {
    float: none;
    margin: 0 auto;
    width: 31.33%;
}

/* ----------------------------------- */
/* BILDERGALERIE */
/* ----------------------------------- */

#imageContainer {
    width: 96%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5%;
    justify-content: center;
}

/* Einzelbild */
.projekt-bild {
    flex: 0 1 30%;
    max-width: 31%;
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0;
}

/* 2-spaltig Tablet */
@media screen and (max-width: 1024px) {
    .projekt-bild {
        flex: 0 1 48%;
        max-width: 48%;
    }
}

/* 1-spaltig Mobil */
@media screen and (max-width: 480px) and (orientation: portrait) {
    .projekt-bild {
        flex: 0 1 95%;
        max-width: 95%;
        margin-bottom: 15px;
    }
}

/*

.projekt-bild {
    transition: transform 0.3s ease;
}

.projekt-bild:hover {
    transform: scale(1.05);
    z-index: 1;
}

*/

/* Zurück-Icon oben rechts im Projektbutton */
.zurueck-icon {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1.2em;
    color: black;
    cursor: pointer;
/*    transition: color 0.3s ease; */
}

/* Hover-Farbe */
.zurueck-icon:hover {
    color: orange;
}

/* Sanftes Erscheinen */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
}

/* Verhindert hartes Layoutspringen beim Ein-/Ausblenden */
#bilderList {
    min-height: 200px; /* Pufferhöhe */
    transition: all 0.6s ease;
}

/* Bild erscheint weich */
.project-image {
    opacity: 0;
    transform: scale(0.95);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.project-image.visible {
    opacity: 1;
    transform: scale(1);
}


