/* Basisanpassungen für das Layout */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa; /* Standard Hintergrundfarbe */
    padding-top: 80px; /* Platz für den fixierten Header */
}

body.home {
    background-color: black !important; /* Hintergrundfarbe auf Schwarz ändern */
}

/* Header */
#header-img {
    max-height: 50px;
    animation: logo-fade-in 2s ease-in-out; /* Füge eine Fade-in-Animation für das Logo hinzu */
}

@keyframes logo-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.nav-hover-effect {
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Sanfte Übergänge für Vergrößerung und Schatten */
}

.nav-hover-effect:hover {
    transform: scale(1.15); /* Bild leicht vergrößern beim Hover */
}

.hidden {
    display: none !important;
}

/* Bild des Logos */
#picture-img {
    align-items: center;
    justify-content: center;
    border: 5px solid #333;
    width: 300px; /* Größe des Bildes */
    height: auto; /* Seitenverhältnis wahren */
    animation: picture-zoom 1.5s ease-in-out;
}

@keyframes picture-zoom {
    from { transform: scale(0.5); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Flexbox für Titel und Bild */
.title-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

#sections {
    margin-top: 80px;
    animation: sections-fade-in 2s ease-in-out;
}

@keyframes sections-fade-in {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Karten mit Hover-Effekt */
.card {
    transition: transform 0.3s, box-shadow 0.3s; /* Füge sanfte Übergänge hinzu */
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden; /* Für saubere Kanten bei abgerundeten Ecken */
    animation: card-slide-up 1.5s ease-in-out;
}

@keyframes card-slide-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.card:hover {
    transform: scale(1.05); /* Karten vergrößern beim Hover */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2); /* Tieferer Schatten beim Hover */
}

/* Buttons */
.btn {
    transition: all 0.3s ease; /* Sanfte Übergänge */
    background-color: black; /* Hintergrundfarbe festlegen */
    color: #ffffff;
    border: none;
}

.btn:hover {
    background-color: #ff5722; /* Neue Hintergrundfarbe beim Hover */
    box-shadow: 0 8px 30px rgba(255, 87, 34, 0.8); /* Tiefere Schatten beim Hover */
    transform: scale(1.1); /* Button vergrößern */
}

/* Media Queries für mobile Geräte */
@media (max-width: 768px) {
    #header-img {
        max-width: 40px;
    }

    #picture-img {
        max-width: 250px;
    }

    h1 {
        font-size: 2em;
        margin: 0;
    }

    .d-flex {
        flex-direction: column;
        align-items: center;
    }
}

/* Schriftgrößen-Anpassungen für h1 */
h1 {
    color: #f0f0f0;
    font-size: 5.5em;
    text-align: center;
    justify-content: center;
    margin: 0 20px;
    font-weight: bold;
    margin-top: 50px;
    animation: text-pop-up 2s ease-in-out;
}

@keyframes text-pop-up {
    from { opacity: 0; transform: scale(0.5); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 1200px) {
    h1 {
        font-size: 4em;
    }
}

@media (max-width: 992px) {
    h1 {
        font-size: 3em;
    }
}

@media (max-width: 576px) {
    h1 {
        font-size: 2em;
    }
}

/* Bildergalerie-Grid */
#gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Anpassbare Spalten */
    gap: 10px;
    margin-top: 20px;
}

figure {
    margin: 0;
}

img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: transform 0.5s, box-shadow 0.5s;
}

img:hover {
    transform: scale(1.05); /* Leichte Vergrößerung beim Hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

figcaption {
    text-align: center;
    margin-top: 5px;
}

/* Login-Formular */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-form {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    background-color: #fff;
    animation: form-fade-in 1s ease;
}

@keyframes form-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Abschnitte */
section h2 {
    font-weight: bold;
    font-size: 2em;
    color: #333;
}

section a {
    text-decoration: none;
    color: #007bff;
    transition: color 0.3s ease;
}

section a:hover {
    color: #0056b3;
    text-decoration: underline;
}
