/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0;
    background-color: #121212;
    max-width: 1524px; /* Erhöht, um die 1440px Bilder plus Padding zu berücksichtigen */
    margin: 0 auto;
    padding: 20px;
}

h1, h2, h3 {
    margin-bottom: 15px;
    color: #4fc3f7;
}

a {
    color: #4fc3f7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header Styles */
header {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #333;
}

header h1 {
    font-size: 2.5rem;
}

/* Filter Section */
#filters {
    margin-bottom: 30px;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
}

.filter-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.filter-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: #f0f0f0;
    border-radius: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

/* Comparison Section */
#comparison {
    margin-bottom: 30px;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
}

.comparison-controls {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    gap: 20px;
}

.scope-selector {
    flex: 1;
}

.scope-selector label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.scope-selector select {
    width: 100%;
    padding: 8px;
    border: 1px solid #333;
    background-color: #2a2a2a;
    color: #f0f0f0;
    border-radius: 4px;
}

.comparison-container {
    margin-bottom: 20px;
    background-color: #000;
    border: 1px solid #333;
    border-radius: 5px;
    overflow: hidden;
}

img-comparison-slider {
    --divider-width: 2px;
    --divider-color: #4fc3f7;
    --handle-color: #4fc3f7;
    --handle-size: 40px;
    width: 100%;
    max-width: 1440px;
    height: auto;
    aspect-ratio: 16/9;
    margin: 0 auto;
    display: block;
}

img-comparison-slider img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.scope-details {
    display: flex;
    gap: 20px;
}

.left-scope-details, .right-scope-details {
    flex: 1;
    padding: 15px;
    background-color: #2a2a2a;
    border-radius: 5px;
}

.scope-details ul {
    margin-left: 20px;
    margin-top: 10px;
}

.scope-details li {
    margin-bottom: 5px;
}

/* Gallery Section */
#gallery {
    margin-bottom: 30px;
    background-color: #1e1e1e;
    padding: 20px;
    border-radius: 5px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    gap: 20px;
}

.scope-card {
    background-color: #2a2a2a;
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.scope-card:hover {
    transform: translateY(-5px);
}

.scope-card img {
    width: 100%; /* Fixe Breite für die Thumbnails */
    height: auto; /* Proportionale Höhe für 16:9 Verhältnis */
    display: block;
    margin: 0 auto; /* Zentriert das Bild */
    object-fit: cover; /* Stellt sicher, dass das Bild den Bereich ausfüllt */
}

.scope-card-info {
    padding: 15px;
}

.scope-card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.scope-card-info p {
    font-size: 0.9rem;
    color: #ccc;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 30px;
    border-top: 1px solid #333;
    color: #888;
}

footer p.left-align {
    text-align: left;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .comparison-controls {
        flex-direction: column;
    }
    
    .scope-details {
        flex-direction: column;
    }
    
    .filter-container {
        flex-direction: column;
    }
}
