body {
    font-family: Arial, sans-serif;
}

/* Werbung ------------------------------------------------------------------------ */

.container {
    display: flex;
    height: auto;
}

.left {
    width: 50%;
    background-color: #f0f0f0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
}

.left iframe {
    width: 100%;
    height: 90%;
    border: none;
    margin-bottom: 0;
}

.right {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.description p {
    font-size: 14px;
    line-height: 1.8;
    text-align: justify;
    color: #333;
    margin-bottom: 12px;
}

.buttons a {
    display: inline-block;
    padding: 10px 15px;
    margin: 5px;
    background-color: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.buttons a:hover {
    background-color: #0056b3;
}

.overlay-image-container {
    width: 250px;
    height: 200px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid #ccc;
    background-color: #f8f8f8;
}

.overlay-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.content-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: auto;
    display: none;
}

.content-container.active {
    display: block;
}

/* Karusell ------------------------------------------------------------------------ */

.carousel-container {
    position: relative;
    width: 90%;
    margin: auto;
    background: #fff;
    padding: 20px 0;
    border: 2px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
}

.carousel-wrapper {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 10px 40px;
    scroll-behavior: smooth;
}

.carousel-wrapper::-webkit-scrollbar {
    display: none;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.1);
    border: none;
    font-size: 24px;
    padding: 10px;
    border-radius: 50%;
    color: black;
    z-index: 10;
    cursor: pointer;
    user-select: none;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.3);
    color: white;
}

.left-arrow {
    left: 15px;
}

.right-arrow {
    right: 15px;
}

.book {
    width: 200px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    flex-shrink: 0;
}

.book img {
    border-radius: 5px;
}

.book h5 {
    font-size: 14px;
    margin: 10px 0;
}

.details-button,
.open-button,
.close-button {
    display: inline-block;
    padding: 6px 10px;
    background: #eee;
    border: 1px solid #aaa;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    text-decoration: none;
}

.details-button:hover,
.open-button:hover {
    background: #ccc;
}

.book-panel-wrapper {
    display: flex;
    flex-shrink: 0;
}

.side-panel {
    display: none;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
    padding: 15px;
    overflow-y: auto;
    overflow-x: hidden;
    white-space: normal;
    border-radius: 6px;
    flex-shrink: 0;
    width: fit-content;
    max-width: 300px;
    box-sizing: border-box;
}

.side-panel.open {
    display: block;
}

.close-button {
    position: absolute;
    top: 8px;
    right: 8px;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
}

.open-button {
    margin-top: 15px;
    background: #007acc;
    color: white;
    border: none;
}

.open-button:hover {
    background: #005fa3;
}

.side-panel p {
    font-size: 14px;
    text-align: left;
    margin: 0 0 10px;
}

.book-panel-wrapper {
    position: relative;
}

.disabled-button {
    margin-top: 15px;
    background: #007acc;
    color: white;
    border: none;
    border-radius: 5px;
    padding: 5px;

    cursor: not-allowed;
    opacity: 0.5;
    pointer-events: none;
}

/* Mobile Version ------------------------------------------------------------------------ */

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .left, .right {
        width: 100%;
    }

    .left {
        padding: 5px;
    }

    .left iframe {
        height: 250px;
    }

    .right {
        padding: 15px;
    }

    .overlay-image-container {
        width: 100%;
        height: auto;
    }

    .tab {
        font-size: 14px;
        padding: 10px;
    }

    .content-container {
        max-width: 90%;
    }

    .left-arrow, .right-arrow {
        display: none;
    }
}

@media (max-width: 480px) {
    .tab {
        font-size: 12px;
        padding: 8px;
    }

    .buttons a {
        padding: 8px 12px;
        font-size: 14px;
    }

    .description p {
        font-size: 13px;
        line-height: 1.6;
    }
}
