/* Sicherstellen, dass die gesamte Seite scrollbar ist */
html, body {
    height: 100%;
}

#header-btw {
    background: url(https://images.unsplash.com/photo-1415795854641-f4a487a0fdc8?ixlib=rb-1.2.1&auto=format&fit=crop&w=750&q=80) center center / cover no-repeat ;
}

#header-btw-library {
    background: url("../images/zwergwacht-library.jpg") center center / cover no-repeat ;
}
.jumbotron {
    margin-bottom: 2rem;
    padding: 4rem 2rem;
}
#header-btw-library .display-3 {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 5px;
    width: 60%; /* Begrenzte Breite */
    margin: 0 auto; /* Zentriert den Container */
    text-align: center; /* Zentriert den Text */
}

@media (max-width: 768px) {
    #header-btw-library .display-3 {
        width: 80%; /* Für kleinere Bildschirme breiter */
    }
}

.hero-section {
    position: relative;
    overflow: hidden;
    background-size: cover;
    min-height: 100%; /* Anpassbare Höhe */
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    /* Parallax-Effekt */
    background-attachment: fixed;
    background-repeat: no-repeat;
}
.hero-content {
    position: relative;
    z-index: 2; /* Stellt sicher, dass der Text über dem Hintergrund liegt */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Optionale Maske für bessere Lesbarkeit des Textes */
    z-index: 0; /* Legt die Maske unter den Text */
}

.btn-outline-light {
    color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-outline-light:hover {
    background-color: #f8f9fa;
    color: #000;
}
#gallery .card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#gallery .card-img-top {
    max-height: 200px; /* Optional: Bildhöhe anpassen */
    object-fit: cover; /* Bildgröße anpassen, ohne Verzerrung */
}

#gallery .card-body {
    flex-grow: 1; /* Stellt sicher, dass der Inhalt den verfügbaren Platz einnimmt */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Optional: Container-Styling für die Vorschau */
#gallery {
    padding: 2rem 0;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center; /* Horizontale Zentrierung des Textes */
    height: 100%; /* Gleiche Höhe für alle Karten */
    position: relative;
}

.card-img {
    object-fit: cover; /* Sorgt dafür, dass das Bild proportional bleibt und den Container füllt */
    height: 300px; /* Feste Höhe für alle Bilder */
    width: 100%; /* Volle Breite der Karte */
}

.card-img-char {
    object-fit: cover; /* Sorgt dafür, dass das Bild proportional bleibt und den Container füllt */
    height: 100%; /* Feste Höhe für alle Bilder */
    width: 100%; /* Volle Breite der Karte */

}
.card-img-overlay {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Vertikale Zentrierung des Inhalts */
    align-items: center; /* Horizontale Zentrierung */
    text-align: center;
    background-color: rgba(0, 0, 0, 0.5); /* Optional: halbtransparenter Hintergrund über dem Bild */
}

.card-title, .card-text {
    margin: 0; /* Vermeidet unerwünschte Abstände */
    padding: 0.5rem;
}

/* Footer */
footer {
    position: relative;
    width: 100%;
    text-align: center;
}

footer a {
    text-decoration: none;
    font-weight: bold;
}

footer a:hover {
    color: #bbb;
}
