/* Allgemeine Stile */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f8f9fa;
    min-height: 100vh; /* Mindesthöhe des Viewports */
    position: relative; /* Relativer Positionierungsmodus für den Footer */
    margin: 0; /* Kein äußerer Abstand */
    padding-bottom: 60px; /* Höhe des Footers */
}

.navbar {
    background-color: #343a40 !important;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    color: #fff !important;
    font-size: 1.1rem;
}

.navbar-nav .nav-link:hover {
    color: #ccc !important;
}

#hero {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    min-height: 400px;
    display: flex;
    align-items: center;
}

#hero-carousel {
    max-width: 100%;
}

#portfolio .card {
    border: none;
    transition: transform 0.3s ease;
}

#portfolio .card:hover {
    transform: translateY(-5px);
}

#about .img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 50%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.footer {
    background: #343a40;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    width: 100%;
    position: absolute;
    bottom: 0;
}

/* Medienabfragen für Responsivität */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }
    .navbar-nav .nav-link {
        font-size: 0.9rem;
    }
    #hero {
        min-height: 300px;
    }
    #hero-carousel .carousel-item img {
        height: 300px;
    }
}

/* Footer-Stile für fixierte Position */
@media (min-width: 768px) {
    body {
        padding-bottom: calc(60px + 1em); /* 1em zusätzliches Padding am unteren Rand */
    }
    .footer {
        position: fixed; /* Fixierte Positionierung für den Footer */
    }
}

/* Container für die Bilder */
#image-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    overflow: hidden;
}

#image-container img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    transition: transform 0.3s ease-in-out, object-fit 0.3s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 350px; /* Maximalbreite für Querformat */
    max-height: 500px; /* Maximalhöhe für Hochformat */
}

/* Bilder im Querformat */
.landscape {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* Bilder im Hochformat */
.portrait {
    aspect-ratio: 9 / 16;
    object-fit: cover;
}

/* Hover-Effekt für beide Formate */
#image-container img:hover {
    transform: scale(1.3);
    object-fit: contain; /* Zeigt das ganze Bild an */
    z-index: 1;
}

