
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #dcc8a6;
    color: #6a6a6a;
}

/* Band oben - fixiert */
header {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #ccae7b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    display: block;
    height: 40px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    justify-content: flex-end; 
    gap: 25px;
    flex-wrap: wrap;
}

nav a {
    text-decoration: none;
    color: #eeeeee;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

/* Inhaltsbereich als Grid-Layout */
main {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 20px 40px 20px; 
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.intro {
    grid-column: 1 / -1;
    margin-bottom: 20px;
}

.intro h1 {
    margin-bottom: 10px;
    color: #4a4a4a;
}

.column h2 {
    margin-bottom: 10px;
    color: #4a4a4a;
}

.column p {
    margin-bottom: 15px;
}

/* Aufz&auml;hlungspunkte */
.text-list {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 20px;
    margin-bottom: 15px;
}

.text-list li {
    margin-bottom: 8px;
}

/* NEU: Galerie-Sektionen erstrecken sich &uuml;ber die volle Breite */
.gallery-section {
    grid-column: 1 / -1;
    margin-top: 20px;
    margin-bottom: 20px;
	
}

.gallery-section h2 {
    margin-bottom: 15px;
    color: #4a4a4a;
}

/* Basis f&uuml;r das Galerie-Raster */
.gallery-grid {
    display: grid;
    gap: 20px;
    width: 100%;
	align-items: start;
}

/* Spalten-Definitionen f&uuml;r Desktop */
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Bestehender Code: Die Box, die den Rahmen für das Bild bildet */
.gallery-item {

    aspect-ratio: 4 / 3;       /* Erzwingt das gewünschte Querformat */
    overflow: hidden;          /* Schneidet überstehende Bildränder sauber ab */
	margin: 0 auto;
}
.gallery-item-up {
    /*background-color: #ccae7b; /* Hintergrundfarbe falls das Bild lädt */
    aspect-ratio: 3 / 4;       /* Erzwingt das gewünschte Querformat */
    overflow: hidden;          /* Schneidet überstehende Bildränder sauber ab */
	margin: 0 auto;
}



/* NEU: Sorgt dafür, dass die echten Bilder in der Galerie perfekt responsive sind */
.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Füllt die Box komplett aus, ohne das Bild zu verzerren */
    display: block;
}
/* NEU: Sorgt dafür, dass die echten Bilder in der Galerie perfekt responsive sind */
.gallery-img-up {
    width: 100%;
    max-height: 400px; 
    /*object-fit: cover; /* Füllt die Box komplett aus, ohne das Bild zu verzerren */
    display: block;
}



/* Sorgt dafür, dass Bilder dynamisch mit der Fenstergrösse schrumpfen */
.responsive-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 15px 0; /* Optional: Erzeugt etwas Abstand nach oben und unten */
    border-radius: 4px; /* Optional: Rundet die Ecken leicht ab, passend zur Galerie */
}

.item-text {
    color: #6a6a6a;
    
}

/* Band unten - flexibel am Seitenende */
footer {
    background-color: #ccae7b;
    color: #eeeeee;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
    width: 100%;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Mobile Optimierung */
@media (max-width: 992px) {
    /* Auf Tablets werden 4er und 5er Galerien zweispaltig */
    .grid-4, .grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
    }
    main {
        grid-template-columns: 1fr;
        gap: 20px;
        padding-top: 180px;
    }
    nav ul {
        justify-content: center;
    }
    .intro, .gallery-section {
        grid-column: auto;
    }
    /* Auf Smartphones werden alle Galerien einspaltig */
    .grid-2, .grid-3, .grid-4, .grid-5 {
        grid-template-columns: 1fr;
    }
}
