/* General Section Styles */
.hotels-section {
    padding: 3rem 1rem;
    background-color: #f9f9f9;
}
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    color: #333;
    font-weight: bold;
}

/* Hotel Item Layout */
.hotel-item {
    background: #fff;
    margin-bottom: 3rem;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.hotel-header {
    text-align: center;
    margin-bottom: 1rem;
}
.hotel-title {
    font-size: 1.8rem;
    color: #222;
    margin-bottom: 0.5rem;
    font-weight: 300;
}
.hotel-subtitle {
    font-size: 1rem;
    color: #666;
}
.hotel-description p {
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
    text-align: justify;
}
/* number of images*/
section {
    background: #f4f4f4;
    padding: 50px 0;
}
.container {
    max-width: 1044px;
    margin: 0 auto;
    padding: 0 20px;
}
.carousel {
    display: block;
    text-align: left;
    position: relative;
    margin-bottom: 22px;
}
.carousel > input {
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}
.carousel > input:nth-of-type(6):checked ~ .carousel__slides .carousel__slide:first-of-type {
    margin-left: -500%;
}
.carousel > input:nth-of-type(5):checked ~ .carousel__slides .carousel__slide:first-of-type {
    margin-left: -400%;
}
.carousel > input:nth-of-type(4):checked ~ .carousel__slides .carousel__slide:first-of-type {
    margin-left: -300%;
}
.carousel > input:nth-of-type(3):checked ~ .carousel__slides .carousel__slide:first-of-type {
    margin-left: -200%;
}
.carousel > input:nth-of-type(2):checked ~ .carousel__slides .carousel__slide:first-of-type {
    margin-left: -100%;
}
.carousel > input:nth-of-type(1):checked ~ .carousel__slides .carousel__slide:first-of-type {
    margin-left: 0%;
}
.carousel > input:nth-of-type(1):checked ~ .carousel__thumbnails li:nth-of-type(1) {
    box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}
.carousel > input:nth-of-type(2):checked ~ .carousel__thumbnails li:nth-of-type(2) {
    box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}
.carousel > input:nth-of-type(3):checked ~ .carousel__thumbnails li:nth-of-type(3) {
    box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}
.carousel > input:nth-of-type(4):checked ~ .carousel__thumbnails li:nth-of-type(4) {
    box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}
.carousel > input:nth-of-type(5):checked ~ .carousel__thumbnails li:nth-of-type(5) {
    box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}
.carousel > input:nth-of-type(6):checked ~ .carousel__thumbnails li:nth-of-type(6) {
    box-shadow: 0px 0px 0px 5px rgba(0, 0, 255, 0.5);
}

.carousel__slides {
    position: relative;
    z-index: 1;
    padding: 0;
    margin: 0;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
}
.carousel__slide {
    position: relative;
    display: block;
    flex: 1 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    transition: all 300ms ease-out;
    vertical-align: top;
    box-sizing: border-box;
    white-space: normal;
}

.carousel__slide figure {
    display: flex;
    flex-direction: column-reverse; /* Text unter das Bild schieben */
    margin: 0;
}
.carousel__slide div {
    position: relative;
    width: 100%; /* Volle Breite des Containers */
    margin: 0; /* Entferne unnötigen Abstand */
}
.carousel__slide div:before {
    display: block;
    content: "";
    width: 100%;
    padding-top: 56.25%; /* Standard 16:9 Seitenverhältnis */
}
.carousel__slide div > img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 80%;
    height: 100%;
    object-fit: cover; /* Bild korrekt skalieren */
    z-index: 1;
}
.carousel__slide figcaption {
    padding: 20px; /* Textabstand */
    text-align: left; /* Text linksbündig */
    z-index: 10; /* Sicherstellen, dass Text sichtbar bleibt */
}

.carousel__slide .credit {
    margin-top: 1rem;
    color: rgba(0, 0, 0, 0.5);
    display: block;
}
.carousel__slide.scrollable {
    overflow-y: scroll;
}
.carousel__thumbnails {
    list-style: none;
    padding: 0 0 1rem 0;
    margin: 0;
    display: flex;
    margin: 0 -10px;
}
.carousel__slides + .carousel__thumbnails {
    margin-top: 20px;
}
.carousel__thumbnails li {
    flex: 1 1 auto;
    max-width: calc((100% / 6) - 20px);
    margin: 0 10px;
    transition: all 300ms ease-in-out;
}
.carousel__thumbnails label {
    display: block;
    position: relative;
}
.carousel__thumbnails label:before {
    display: block;
    content: "";
    width: 100%;
    padding-top: 100%;
}
.carousel__thumbnails label > img {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
}
.carousel__thumbnails label:hover, .carousel__thumbnails label:focus {
    cursor: pointer;
}
.carousel__thumbnails label:hover img, .carousel__thumbnails label:focus img {
    box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.25);
    transition: all 300ms ease-in-out;
}
.carousel__thumbnails img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@keyframes r {
    80% {
        transform: translate(-400%);
    }
    80.01% {
        transform: translate(100%);
    }
}
/* Responsive Design */
@media screen and (max-width: 768px) {
    .section-title {
        font-size: 1.6rem;
    }
    .hotel-title {
        font-size: 1.5rem;
    }
    .hotel-subtitle {
        font-size: 0.9rem;
    }
    .hotel-description p {
        font-size: 0.9rem;
    }
    .carousel {
        display: flex;
        flex-direction: column;
    }
    .carousel__slide figure {
        flex-direction: column-reverse;
    }
    .carousel__slide figcaption {
        font-size: 0.9rem; /* Textgröße anpassen */
        width: 100%;
    }
    .carousel__slides {
        height: 100%;
    }
      .carousel__slide div {
        width: 100%;
    }
    .carousel__slide div:before {
        padding-top: 75%; /* Anpassung für quadratische Bilder */
    }
}

