/* ===== RESET & BASISELEMENTE ===== */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    background-color: black;
}

/* ===== HAUPTCONTAINER ===== */
.slides-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ===== HAUPTBILDER ===== */
.slides {
    position: absolute;
    max-width: 100vw;
    max-height: 100vh;
    width: auto;
    height: auto;
    object-fit: contain;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: grab;
}

/* ===== COVERS ===== */
.covers {
    position: absolute;
    background-color: black;
    width: 100%;
    height: 100%;
    z-index: 20;
    cursor: grab;
}

/* ===== TOPBAR ===== */
.topbar {
    position: absolute;
    top: 0;
    left: 5%;
    padding: 10px;
    padding-left: 8%;
    height: 13%;
    width: 90%;
    transform: translateY(-100%);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
    background-color: rgba(0, 0, 0, 0.9);
    border-bottom: 5px solid #3e3e3e;
    border-radius: 15px;
    box-sizing: border-box;
    transition: transform 300ms ease-in-out;
    z-index: 40;
}

.topbar.open {
    transform: translateY(0);
}

.topbar-image {
    display: block;
    height: 100%;
    width: auto;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

/* ===== RIGHTBAR ===== */
.rightbar {
    position: fixed;
    top: 5%;
    right: 0;
    width: 13%;
    height: 90%;
    padding: 10px;
    padding-top: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.9);
    border-left: 5px solid #3e3e3e;
    border-radius: 15px;
    box-sizing: border-box;
    transform: translateX(100%);
    transition: transform 300ms ease-in-out;
    z-index: 40;
}

.rightbar.open {
    transform: translateX(0);
}

.rightbar-image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
}

/* ===== LEFTBAR ===== */
.leftbar {
    position: fixed;
    top: 5%;
    left: 0;
    width: 80px;
    height: 90%;
    padding: 10px;
    padding-top: 8%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.9);
    border-right: 5px solid #3e3e3e;
    border-radius: 15px;
    box-sizing: border-box;
    transform: translateX(-100%);
    transition: transform 300ms ease-in-out;
    z-index: 40;
    overflow: hidden;
}

.leftbar.open {
    transform: translateX(100%);
}

/* ===== COUNTER ===== */
.counter-buttons-container {
    position: absolute;
    width: 100%;
    top: 10%;
    left: 0;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.counter-btn {
    width: 50px;
    height: 50px;
    margin: 0 10px;
    font-size: 0.85em;
    border: none;
    border-radius: 5px;
    color: azure;
    cursor: pointer;
    transition: all 0.25s ease;
    opacity: 0.85;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.3;
}

.ansprach-btn {
    background: #1e40af;
}

.ja-btn {
    background: #047857;
}

.nein-btn {
    background: #991b1b;
}

.reset-btn {
    background: #322d2d;
    height: 25px;
    margin-top: 25px;
}

.counter-btn:hover {
    transform: scale(1.01);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
}

.counter {
    font-size: 1.3em;
    font-weight: bold;
    margin-top: 3px;
}

/* ===== DEBUG ===== */
.debug {
    display: none; /* Komplett ausblenden */
}

/* ===== CONTROLS ===== */
.controls {
    position: absolute;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    z-index: 31;
    cursor: grab;
}

#control_right {
    top: 50%;
    left: 100%;
    height: 60%;
    width: 20%;
    transform: translateX(-100%) translateY(-50%);
    border-top-left-radius: 16px;
    border-bottom-left-radius: 16px;
    z-index: 32;
}

#control_left {
    top: 50%;
    left: 0;
    height: 60%;
    width: 20%;
    transform: translateY(-50%);
    border-top-right-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 32;
}

#control_top {
    top: 0;
    left: 50%;
    height: 20%;
    width: 100%;
    transform: translateX(-50%);
}

#control_bottom {
    bottom: 0;
    left: 50%;
    height: 20%;
    width: 100%;
    transform: translateX(-50%);
}

/* ===== BUTTONS ===== */
.buttons {
    position: fixed;
    z-index: 40;
    bottom: max(10px, 2vh);
    height: clamp(44px, 5vh, 60px); /* Mindesthöhe 44px für Touch */
    width: clamp(44px, 5vh, 60px);
    aspect-ratio: 1 / 1;
    border-radius: 10%;
    background-color: rgba(10, 8, 8, 0.75);
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.buttons:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.4);
    background-color: rgb(56, 48, 48);
}

.button-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
    box-sizing: border-box;
    transition: transform 0.2s ease;
    pointer-events: none;
}

/* ===== FULLSCREEN MODAL ===== */
.Window_Fav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.Window_Fav img {
    max-height: 100vh;
    max-width: 100vw;
    cursor: pointer;
}