/* Allgemeine Stile */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f9fa;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Navbar */
.navbar {
    background-color: #333; /* Dunkle Hintergrundfarbe */
    padding: 10px 0; /* Innenabstand oben und unten */
}
.navbar img {
    height: 50px; /* Höhe des Logos anpassen */
}
.navbar a {
    color: #fff; /* Weiße Textfarbe für Links */
    font-weight: bold; /* Fette Schriftart */
    margin-right: 20px; /* Abstand zwischen den Links */
}

/* Hauptcontainer */
.container {
    max-width: 1200px;
    margin-top: 30px;
    display: flex; /* Flexbox-Layout */
    flex-direction: column; /* Elemente in einer Spalte anordnen */
    align-items: center; /* Elemente horizontal zentrieren */
}

/* Hauptinhalt Zimmer */
#hauptinhaltZimmer {
    padding-top: 55%; /* Erhöhter oberer Abstand */
    text-align: center;
}
#hauptinhaltZimmer h1 {
    color: #333; /* Dunkle Textfarbe */
}

/* Studiozimmer, Ferienwohnung, Doppelzimmer */
.studiozimmer,
.Ferienwohnung,
.Doppelzimmer {
    display: flex; /* Flexbox-Layout */
    justify-content: center; /* Elemente horizontal zentrieren */
    gap: 20px; /* Abstand zwischen den Cards */
    flex-wrap: wrap; /* Cards bei Bedarf umbrechen */
}
.studiozimmer h3,
.Ferienwohnung h3,
.Doppelzimmer h3 {
    color: #333; /* Dunkle Textfarbe */
}
.studiozimmer p,
.Ferienwohnung p,
.Doppelzimmer p {
    color: #555; /* Dunkelgraue Textfarbe */
}

/* Cards */
.card {
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.card-img-top {
    height: 200px;
    object-fit: cover;
}
.card-body {
    height: 80px;
    overflow: hidden;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 50px 0;
}
footer h4 {
    margin-bottom: 30px;
}
.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Kontaktformular */
.contact-form {
    background-color: #495057;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.contact-form .input-group-text {
    background-color: #6c757d;
}
.contact-form .form-control {
    border: none;
    box-shadow: none;
}
.contact-form .btn {
    background-color: #007bff;
    border: none;
    border-radius: 5px;
}
.contact-form .btn:hover {
    background-color: #0056b3;
}

/* Hintergrundbilder */
.Hintergrundbild {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}
.Hintergrundbild img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    display: none;
}
.Hintergrundbild img.active {
    display: block;
}
.button-links,
.button-rechts {
    position: absolute;
    top: 50%;
    background-color: rgba(0, 0, 0, 0.146);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px;
    cursor: pointer;
    transform: translateY(-50%);
}
.button-links {
    left: 10px;
}
.button-rechts {
    right: 10px;
}

/* Media Queries für verschiedene Bildschirmgrößen */
@media (max-width: 400px) {
    .Hintergrundbild img {
        height: auto;
    }
    .hauptInhaltIndex {
        margin-top: 50px;
    }
    .hauptInhaltIndex h3 {
        font-size: 1.5rem;
    }
    .hauptInhaltIndex p {
        font-size: 0.875rem;
    }
    .contact-form {
        padding: 10px;
    }
}

@media (max-width: 576px) {
    .navbar img {
        height: 40px;
    }
    .nav-link {
        margin-right: 10px;
    }
    .button-links,
    .button-rechts {
        padding: 5px;
    }
}

/* Zusätzliche benutzerdefinierte Stile */
.mt-5 {
    margin-top: 3rem !important;
}
.py-4 {
    padding: 1.5rem 0 !important;
}

form {
    padding-top: 2%;
}

.map-container {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.dropdown-menu-custom {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
}
.dropdown-menu-custom p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}
.dropdown-menu-custom h5 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.btn-custom {
    background-color: #007bff;
    color: white;
    width: 100%;
}
.btn-custom:hover {
    background-color: #0056b3;
}

.container-custom {
    margin-top: 2rem;
}

.backgroundZimmer {
    margin-bottom: 3px;
    padding: 0;
    background-image: url('./bilder/ZimmerBackground.jpeg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    width: 98.5vw;
    position: absolute;
    left: 0;
}
@media (max-width: 400px) {
    .backgroundZimmer {
        height: 150px;
      	width: 100vw;
    }
}

.hauptInhaltIndex {
    margin-top: 100px;
    text-align: center;
}


h4 {
    margin-top: 30px;
    margin-bottom: 30px;
    text-align: center;
}


h5 {
    color: white;
    font-size: 16px;
    line-height: 1.5;
	text-align: center;
}





article {
}

@media (max-width: 400px) {
     article {
       	margin-top: 10px;
        margin-bottom: 45px; /* Fügt einen unteren Rand von 500px hinzu */
    }
}
/* Media Queries für kleinere Bildschirme */
@media (max-width: 576px) {
    .Hintergrundbild {
        height: auto;
        min-height: 300px; /* Mindesthöhe festlegen */
        position: relative; /* Positionierung für absolute Elemente */
    }
    .Hintergrundbild img {
        height: auto;
        display: block; /* Sicherstellen, dass das Bild sichtbar ist */
    }
    .button-links,
    .button-rechts {
        padding: 5px;
        top: 50%; /* Position in der Mitte des Bildes */
        transform: translateY(-50%); /* Vertikale Zentrierung */
    }
}

@media (max-width: 400px) {
    .Hintergrundbild {
        height: auto;
        min-height: 300px; /* Mindesthöhe festlegen */
        position: relative; /* Positionierung für absolute Elemente */
    }
    .Hintergrundbild img {
        height: auto;
        display: block; /* Sicherstellen, dass das Bild sichtbar ist */
    }
    .button-links,
    .button-rechts {
        padding: 5px;
        top: 30%; /* Position in der Mitte des Bildes */
        transform: translateY(-50%); /* Vertikale Zentrierung */
    }
    .hauptInhaltIndex {
        margin-top: 50px;
    }
    .hauptInhaltIndex h3 {
        font-size: 1.5rem;
    }
    .hauptInhaltIndex p {
        font-size: 0.875rem;
    }
    .contact-form {
        padding: 10px;
    }
}

@media (max-width: 320px) {
    .Hintergrundbild {
        height: auto;
        min-height: 300px; /* Mindesthöhe festlegen */
        position: relative; /* Positionierung für absolute Elemente */
    }
    .Hintergrundbild img {
        height: auto;
        display: block; /* Sicherstellen, dass das Bild sichtbar ist */
    }
    .button-links,
    .button-rechts {
        padding: 5px;
        top: 50%; /* Position in der Mitte des Bildes */
        transform: translateY(-50%); /* Vertikale Zentrierung */
    }
    .hauptInhaltIndex {
        margin-top: 30px;
    }
    .hauptInhaltIndex h3 {
        font-size: 1.2rem;
    }
    .hauptInhaltIndex p {
        font-size: 0.75rem;
    }
    .contact-form {
        padding: 5px;
    }
}
