/* Modals Architektur */
.modal {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    max-width: 550px;
    width: 100%;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow);
}
.modal-content.large { max-width: 950px; width: 100%; }
.modal-content h3 { margin-bottom: 16px; font-size: 1.25rem; border-bottom: 1px solid var(--border-color); padding-bottom: 10px; }
.modal-scroll-area { overflow-y: auto; padding-right: 4px; }

.close-modal {
    position: absolute; top: 12px; right: 16px; background: none;
    border: none; font-size: 2rem; line-height: 1; color: var(--text-main);
    cursor: pointer; padding: 4px; min-width: 44px; min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%;
    z-index: 10;
}
.close-modal:hover { background: var(--border-color); }

.faq-item, .release-item { margin-bottom: 18px; }
.faq-item h4, .release-item h4 { margin-bottom: 6px; font-size: 1rem; color: var(--text-main); }
.faq-item p, .release-item ul { font-size: 0.9rem; color: var(--text-muted); }
.release-item ul { padding-left: 20px; }


/* NEU: BILDVERGLEICHS-VIEWPORT STYLES (SLIDER & ZOOM) */
.comparison-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.info-card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}
.info-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.info-meta {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.slider-viewport {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 320px;
    background: var(--bg-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none; 
    user-select: none;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
}
.zoom-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    will-change: transform;
}
.comparison-slider {
    position: relative;
    display: inline-block;
    line-height: 0;
}

.slider-img {
    max-width: 100%;
    max-height: 55vh;
    width: auto;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
}
#previewOrigImg {
    background-image: linear-gradient(45deg, #e5e5ea 25%, transparent 25%), linear-gradient(-45deg, #e5e5ea 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e5e5ea 75%), linear-gradient(-45deg, transparent 75%, #e5e5ea 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #ffffff;
}
[data-theme="dark"] #previewOrigImg {
    background-image: linear-gradient(45deg, #2c2c2e 25%, transparent 25%), linear-gradient(-45deg, #2c2c2e 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #2c2c2e 75%), linear-gradient(-45deg, transparent 75%, #2c2c2e 75%);
    background-color: #1c1c1e;
}
#previewOptImg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    clip-path: inset(0 0 0 50%);
}

.slider-badge {
    position: absolute;
    top: 12px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.65);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    z-index: 5;
    pointer-events: none;
    letter-spacing: 0.5px;
}
.badge-left { left: 12px; }
.badge-right { right: 12px; }

.slider-handle {
    position: absolute;
    top: 0; bottom: 0; width: 4px;
    background: #ffffff;
    cursor: ew-resize;
    z-index: 10;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.4);
    touch-action: none;
    left: 50%;
}
.handle-line {
    flex: 1;
    width: 2px;
    background: rgba(255, 255, 255, 0.8);
}
.handle-button {
    width: 44px;
    height: 44px;
    background: #ffffff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    border: 2px solid var(--primary-color);
    cursor: ew-resize;
    transition: transform 0.12s ease;
}
.slider-handle:hover .handle-button,
.slider-handle:focus-within .handle-button {
    transform: scale(1.1);
    background: #f2f2f7;
}
.slider-handle:focus-visible { outline: none; }
.slider-handle:focus-visible .handle-button { box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.5); } 
