.pageelement-bukowiki-detail .fa-arrow-up-right,
.pageelement-bukowiki-detail .fa-chevron-right {
    padding-right: 10px;
    font-size: 20px;
    color: #5E7461;
}

.pageelement-bukowiki-detail .fa-arrow-left {
    margin-right: 10px;
    color: #5E7461;
}

.pageelement-bukowiki-detail .back-link {
    display: flex;
    color: #5E7461;
    font-size: 24px;
    font-weight: 400;
    width: fit-content;
}

.pageelement-bukowiki-detail .wrapper {
    max-width: 100%;
    width: 100%;
}

.pageelement-bukowiki-detail .info-box {
    background: #fff;
    padding: 1rem;
    border: 1px solid #5e7461;
    width: 45%;
    min-width: 500px;
    height: fit-content;
}

.pageelement-bukowiki-detail .info-box .content {
    display: flex;
    gap: 1rem;
}

.pageelement-bukowiki-detail .detail-wrapper {
    width: 100%;
}

.pageelement-bukowiki-detail .box {
    background: #E4E4E4;
    padding: 50px 0;
    margin: 30px auto 70px;
    position: relative;
    width: 100%;
}

.pageelement-bukowiki-detail .box::before {
    content: "";
    position: absolute;
    top: 0;
    width: 100vw;
    height: 100%;
    left: calc((100vw - 100%) / -2);
    background: inherit;
    z-index: -1;
}

.pageelement-bukowiki-detail .box .flex-wrapper {
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
    box-sizing: border-box;
}

.pageelement-bukowiki-detail .box.gallery .flex-wrapper {
    flex-flow: column;
    gap: 0;
}

.pageelement-bukowiki-detail .box.gallery .gallery-images {
    display: grid;
    gap: 30px; /* Abstand zwischen den Items */
    grid-template-columns: repeat(3, 1fr); /* 3 gleich große Spalten */
}


.pageelement-bukowiki-detail .box.top .introtext {
    max-width: 800px;
}

.pageelement-bukowiki-detail .box.top .image-container {
    max-height: 300px;
    height: 100%;
}


.pageelement-bukowiki-detail .box.top .image {
    height: 100%;
    width: auto;
    max-height: 300px;
    max-width: 100%;
    object-fit: cover;
}

.pageelement-bukowiki-detail .box.top .info {
    display: flex;
    flex-flow: column;
    gap: 5px;
}

.pageelement-bukowiki-detail .main-wrapper .maintext {
    max-width: 1000px;
    margin-bottom: 100px;
}

.pageelement-bukowiki-detail .main-wrapper .maintext a {
    text-decoration: underline;
}

.pageelement-bukowiki-detail .main-wrapper .maintext * {
    float: none !important;
    font-size: 22px;
}

.pageelement-bukowiki-detail .main-wrapper .maintext ul {
    list-style: '• ';
}

.pageelement-bukowiki-detail .box.gallery h3 {
    color: #5E7461;
}

.pageelement-bukowiki-detail .map {
    margin-bottom: 100px;
 }

.pageelement-bukowiki-detail #openstreetmap-container {
    height: 500px;
}

.pswp img {
    object-fit: contain;
}

.pageelement-bukowiki-detail .gallery-image {
    max-height: 287px;
    position: relative;
}

.pageelement-bukowiki-detail .gallery-image img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}

.pageelement-bukowiki-detail .gallery-image .caption {
    display: none;
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    bottom: 0;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.pageelement-bukowiki-detail .gallery-image:hover .caption {
    display: inline-block;
}

.pageelement-bukowiki-detail .texteditor a {
    text-decoration: none;
}

.pageelement-bukowiki-detail .gallery-image .caption .source {
    color: #fff;
    font-size: 16px;
}

@media only screen and (max-width: 1024px){
    .pageelement-bukowiki-detail .box.gallery .gallery-images {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (max-width: 650px){
    .pageelement-bukowiki-detail .text-content {
        order: 1;
    }

    .pageelement-bukowiki-detail .box.gallery .gallery-images {
        grid-template-columns: repeat(1, 1fr);
    }

    .pageelement-bukowiki-detail .box .flex-wrapper {
        flex-flow: column;
    }
}