/* /* Gemeinsame Formular-Styles */
.listing-form {
    max-width: 600px;
    margin: 20px auto;
    padding: 30px;
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 50%, #1f1f1f 100%);
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(255, 0, 130, 0.15);
    color: #fff;
    border: 1px solid rgba(138, 43, 226, 0.3);
}

.listing-form p {
    margin-bottom: 20px;
}

.listing-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(159, 159, 255, 1);
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.listing-form input[type="text"],
.listing-form input[type="number"],
.listing-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
}

.listing-form select {
    width: 100%;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    color: #fff;
    transition: all 0.3s ease;
    cursor: pointer;
    background-image: linear-gradient(45deg, transparent 50%, #ff1493 50%),
                    linear-gradient(135deg, #ff1493 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px),
                       calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    padding-right: 30px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    height: 45px;
}

.listing-form select option {
    background-color: #1a1a2e;
    color: #fff;
    padding: 8px;
}

.listing-form input[type="text"]:focus,
.listing-form input[type="number"]:focus,
.listing-form select:focus,
.listing-form textarea:focus {
    outline: none;
    border-color: #9f9fff;
    box-shadow: 0 0 10px rgba(138, 43, 226, 0.3);
}

.listing-form input[type="file"] {
    border: 2px dashed rgba(138, 43, 226, 0.3);
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
}

.listing-form input[type="file"]:hover {
    border-color: #9f9fff;
}

.listing-form input[type="submit"] {
    background: linear-gradient(45deg, #ff1493, #8a2be2, #9f9fff);
    background-size: 200% auto;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    width: 100%;
}

.listing-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 20, 147, 0.4);
    background-position: right center;
}

.listing-form small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8em;
}

.notice {
    padding: 15px 20px;
    margin-bottom: 25px;
    border-radius: 10px;
    animation: slideIn 0.5s ease;
    text-align: center;
}

.notice-success {
    background: linear-gradient(45deg, rgba(255, 20, 147, 0.1), rgba(138, 43, 226, 0.1));
    border: 1px solid rgba(255, 20, 147, 0.3);
    color: #ff69b4;
    text-shadow: 0 0 10px rgba(255, 20, 147, 0.3);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

#cpu-fields, #gpu-fields {
    margin-bottom: 20px;
}

/* Listings Page Styles */
.listings-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.listings-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
}

.listings-sidebar .listing-form {
    margin: 0;
    position: sticky;
    top: 30px;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.listings-pagination {
    text-align: center;
    margin-top: 30px;
}

.page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(138, 43, 226, 0.3);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers:hover {
    background: rgba(255, 20, 147, 0.2);
    border-color: #ff1493;
}

.page-numbers.current {
    background: linear-gradient(45deg, #ff1493, #8a2be2);
    border-color: transparent;
}

.no-listings {
    text-align: center;
    padding: 40px;
    color: #fff;
    font-size: 1.2em;
}



/* Listings single Styling und Größe */
.listing {
    background: linear-gradient(135deg, #1a1a2e 0%, #2d1f3d 50%, #1f1f1f 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(255, 0, 130, 0.15);
    border: 1px solid rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.listing:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(255, 0, 130, 0.25);
}

.listing-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    overflow: hidden;
}

.listing-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.listing:hover .listing-image img {
    transform: scale(1.1);
}

.listing-content {
    padding: 12px 15px;
    color: #fff;
}

.listing-content h3 {
    margin: 0 0 8px 0;
    font-size: 1.2em;
    font-weight: 600;
    line-height: 1.2;
}

.listing-content h3 a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.listing-content h3 a:hover {
    color: #ff1493;
}

.listing-content .category {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 20, 147, 0.2);
    border: 1px solid #ff1493;
    border-radius: 12px;
    color: #ff1493;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.listing-content .price {
    font-size: 1.6em;
    font-weight: bold;
    color: #9f9fff;
    margin: 10px 0;
    text-shadow: 0 0 10px rgba(159, 159, 255, 0.3);
}

.listing-content .desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.4;
    margin-top: 8px;
    font-size: 0.9em;
}

.listing-content .meta {
    margin-top: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(138, 43, 226, 0.3);
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
}

.listing-content .meta span {
    margin-right: 15px;
}



/* Slideshow Styles */
.listings-slideshow {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.slideshow-container {
    overflow: hidden;
    border-radius: 15px;
    width: 100%;
    position: relative;
    height: 420px;
    padding-bottom: 30px; /* Platz für die Dots in slideshow.js */
}

.slideshow-slide {
    display: flex !important;
    width: 100%;
    padding: 15px;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    height: 100%;
    justify-content: center;
    gap: 20px;
}

.slideshow-slide .listing {
    flex: 0 0 calc(28% - 20px);
    margin: 0 10px;
    min-width: 0;
}



.slideshow-slide.active {
    opacity: 1;
    pointer-events: auto;
}



.slideshow-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    padding: 0px;
}

.slideshow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slideshow-dot.active {
    background: #ff1493;
    transform: scale(1.2);
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design für < 768px */
@media (max-width: 768px) {
    .listings-layout {
        grid-template-columns: 1fr;
    }
    
    .listings-sidebar .listing-form {
        position: static;
        margin-bottom: 30px;
    }

    .listing-content h3 {
        font-size: 1.2em;
    }

    .listing-content .price {
        font-size: 1.4em;
    }
}

/* Smartphone-spezifische Anpassungen für < 480px */
@media (max-width: 480px) {
    .listing-content {
        padding: 10px;
    }
    
    .listing-content .desc {
        font-size: 0.85em;
    }
    
    .listing-content .price {
        font-size: 1.2em;
    }
    
    .slideshow-container {
        height: 480px;
    }
    
    .listings-page {
        padding: 10px;
    }
    
    .slideshow-slide {
        padding: 10px;
    }
    
    .slideshow-slide .listing {
        flex: 0 0 calc(100% - 20px);
        margin: 0 5px;
    }
    
    .listing-content .meta {
        flex-wrap: wrap;
    }
    
    .listing-content .meta span {
        display: block;
        margin-bottom: 5px;
    }
}
