/* Allgemeine Stile für den Body */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #fff;
    color: #333;
}

/* Container für den Hauptinhalt */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
}

/* Benachrichtigungen */
.notification {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 90%;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9em;
    font-weight: 400;
    color: #fff;
    z-index: 2000;
    transition: top 0.3s ease-in-out;
    text-align: center;
}

.notification.show {
    top: 20px;
}

.notification-error {
    background-color: #d32f2f;
}

.notification-success {
    background-color: #2e7d32;
}

.notification-info {
    background-color: #0288d1;
}

/* Zoom-Overlay für Bildvergrößerung */
.zoom-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Container für vergrößertes Bild und Navigation */
.zoom-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Vergrößertes Bild */
.zoom-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
}

/* Navigationsbuttons */
.zoom-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    display: none;
    transition: background 0.3s;
}

.zoom-nav:hover {
    background: rgba(0,0,0,0.8);
}

.zoom-prev {
    left: 10px;
}

.zoom-next {
    right: 10px;
}

/* Schließen-Button für Zoom-Overlay */
.zoom-close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.zoom-close:hover {
    background: rgba(0,0,0,0.8);
}

/* Trennlinie */
hr {
    border: 0;
    border-top: 1px solid #e0e0e0;
    margin: 15px 0;
}

/* Überschrift */
h1 {
    text-align: left;
    margin-bottom: 15px;
    font-size: 1.3em;
}

/* Such- und Filterbereich */
.search-filter {
    margin-bottom: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.search-filter form {
    display: flex;
    gap: 8px;
    width: 100%;
}

.search-filter input[type="text"] {
    flex: 1;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9em;
}

.search-filter select {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 0.9em;
    min-width: 120px;
    color: #6a1b9a;
    background: #fff;
}

.search-filter select option {
    color: #6a1b9a;
}

.search-filter select:focus {
    outline: none;
    border-color: #7b1fa2;
}

.search-filter button {
    padding: 8px 16px;
    background: #6a1b9a;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9em;
}

.search-filter button:hover {
    background: #7b1fa2;
}

/* Auktionsliste */
.auction-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

/* Auktionselement */
.auction-item {
    text-decoration: none;
    color: inherit;
    width: 200px;
    background: white;
    padding: 10px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease;
}

.auction-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Container für Bilder in Auktionselementen */
.image-container {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
    background-color: #f5f5f5;
}

/* Bild in Auktionselement */
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    display: block;
}

/* Platzhalter für fehlende Bilder */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    background-color: #e0e0e0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Details des Auktionselements */
.auction-details {
    display: flex;
    flex-direction: column;
}

/* Überschrift in Auktionselement */
.auction-details h3 {
    margin: 0 0 8px;
    font-size: 1em;
    font-weight: bold;
}

/* Text in Auktionselement */
.auction-details p {
    margin: 3px 0;
    font-size: 0.85em;
    color: #666;
}

/* Auktionsdetails und Formularcontainer */
.auction-detail, .form-container {
    background: white;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Bildergalerie in Auktionsdetails */
.auction-detail .gallery, .form-container .gallery, .auction-detail .gallery-carousel, .form-container .gallery-carousel {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
}

/* Bilder in der Galerie */
.auction-detail .gallery-img, .form-container .gallery-img, .auction-detail .gallery-carousel img, .form-container .gallery-carousel img {
    width: 120px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
}

/* Formular in Auktionsdetails */
.auction-detail form {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Sofortkauf-Formular */
.auction-detail .buy-form {
    margin-top: 10px;
}

/* Eingabefelder in Auktionsdetails */
.auction-detail input[type="number"], .auction-detail textarea {
    padding: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

/* Schaltflächen in Auktionsdetails */
.auction-detail button {
    padding: 6px;
    background: #6a1b9a;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85em;
}

/* Bestätigungsmeldung und Buttons */
.confirmation-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.confirmation-message {
    font-size: 0.9em;
    color: #333;
    margin: 0;
    text-align: center;
}

.confirmation-buttons {
    display: flex;
    justify-content: space-evenly;
    gap: 10px;
}

.confirm-button, .cancel-button {
    width: 120px;
    padding: 6px 12px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85em;
    text-align: center;
}

.confirm-button {
    background: #6a1b9a;
    color: white;
}

.confirm-button:hover {
    background: #7b1fa2;
}

.cancel-button {
    background: #ccc;
    color: #333;
}

.cancel-button:hover {
    background: #b0b0b0;
}

/* Eingabefelder im Formularcontainer */
.form-container input,
.form-container textarea,
.form-container select {
    width: 100%;
    padding: 8px;
    margin-bottom: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 0.9em;
    color: #6a1b9a;
}

.form-container select option {
    color: #6a1b9a;
}

.form-container select:focus {
    outline: none;
    border-color: #7b1fa2;
}

/* Schaltflächen im Formularcontainer */
.form-container button {
    width: 100%;
    padding: 8px;
    background: #6a1b9a;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9em;
}

.form-container button:hover {
    background: #7b1fa2;
}

/* Styling für den Löschen-Button in der Bildergalerie */
.form-container .image-placeholder .delete-image-btn {
    margin-top: 6px;
    padding: 4px 8px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8em;
    text-align: center;
}

.form-container .image-placeholder .delete-image-btn:hover {
    background: #b71c1c;
}

/* Fehlermeldungen */
.error {
    color: #d32f2f;
    text-align: center;
    margin-bottom: 8px;
}

/* Styling für Links, die wie Buttons aussehen */
.button {
    display: inline-block;
    padding: 6px 12px;
    background: #6a1b9a;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 0.85em;
    cursor: pointer;
}

.button:hover {
    background: #7b1fa2;
}

/* Registrierungslink */
.register-link {
    margin-top: 8px;
    font-size: 0.85em;
    color: #333;
}
.register-link a {
    color: #6a1b9a;
    text-decoration: none;
}
.register-link a:hover {
    color: #7b1fa2;
    text-decoration: underline;
}

/* Auktionsdetail-Layout */
.auction-detail {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Kategorie-Header */
.category-header {
    grid-column: 1 / span 2;
    margin-bottom: 15px;
}

/* Biet-Sidebar */
.bidding-sidebar {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Details-Bereich */
.details {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Gebotshistorie */
.bid-history {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.bid-history p {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9em;
    font-weight: 300;
    color: #444;
    margin: 8px 0;
    padding: 8px 12px;
    line-height: 1.5;
    transition: background 0.2s ease;
}

.bid-history p:hover {
    background: #f0f0f0;
}

.bid-history p strong {
    font-weight: 500;
    color: #2a2a2a;
}

/* Kommunikationssektion */
.communication {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
}

.communication .question-hint {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 10px;
}

.communication form {
    margin-bottom: 12px;
}

.communication textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 300;
    color: #333;
    resize: vertical;
}

.communication .message {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.85em;
    font-weight: 300;
    color: #444;
    margin: 8px 0;
    padding: 8px 12px;
    border-left: 2px solid #6a1b9a;
    line-height: 1.5;
    transition: background 0.2s ease;
}

.communication .message:hover {
    background: #f0f0f0;
}

.communication .message strong {
    font-weight: 500;
    color: #2a2a2a;
}

.communication .message .timestamp {
    font-size: 0.8em;
    color: #666;
}

.communication .replies {
    margin-left: 20px;
    padding-left: 12px;
    border-left: 1px dashed #ccc;
}

/* Benutzerbewertungen */
.user-ratings {
    background: #f9f9f9;
    padding: 12px;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.user-ratings h2 {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.user-ratings .average-rating {
    font-size: 0.9em;
    color: #444;
    margin-bottom: 10px;
}

.user-ratings .toggle-comments-btn {
    padding: 8px 16px;
    background: #6a1b9a;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.user-ratings .toggle-comments-btn:hover {
    background: #7b1fa2;
}

.user-ratings .rating {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9em;
    font-weight: 300;
    color: #444;
    margin: 8px 0;
    padding: 8px 12px;
    border-left: 2px solid #6a1b9a;
    line-height: 1.5;
    transition: background 0.2s ease;
    background: #fafafa;
    border-radius: 4px;
}

.user-ratings .rating:hover {
    background: #f0f0f0;
}

.user-ratings .rating strong {
    font-weight: 500;
    color: #2a2a2a;
}

.user-ratings .rating .timestamp {
    font-size: 0.8em;
    color: #666;
}

.user-ratings .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.user-ratings .pagination button {
    padding: 6px 12px;
    background: #6a1b9a;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.85em;
}

.user-ratings .pagination button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.user-ratings .pagination button:hover:not(:disabled) {
    background: #7b1fa2;
}

.user-ratings .pagination span {
    font-size: 0.9em;
    color: #333;
}

/* Responsive Design für Desktop */
@media (min-width: 769px) {
    .auction-detail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    .category-header {
        grid-column: 1 / span 2;
    }
    .gallery {
        grid-column: 1;
        flex-wrap: wrap;
        overflow-x: visible;
        height: auto;
    }
    .gallery-img {
        flex: 0 0 calc(33.33% - 8px);
        max-width: 150px;
        aspect-ratio: 1/1;
        object-fit: cover;
    }
    .bidding-sidebar {
        grid-column: 2;
    }
    .details {
        grid-column: 1 / span 2;
    }
    .auction-list {
        display: flex;
        flex-wrap: wrap;
        gap: 20px;
        justify-content: flex-start;
        max-width: 1280px;
    }
    .auction-item {
        width: 220px;
        padding: 12px;
    }
    .image-container {
        width: 100%;
        aspect-ratio: 1/1;
    }
    .auction-details h3 {
        font-size: 1.1em;
    }
    .auction-details p {
        font-size: 0.9em;
    }
    .bid-history {
        background: #ffffff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        border: 1px solid #e8e8e8;
    }
    .bid-history p {
        font-size: 1em;
        font-weight: 300;
        color: #333;
        margin: 12px 0;
        padding: 12px 16px;
        background: #fafafa;
        border-radius: 4px;
        line-height: 1.6;
        transition: background 0.2s ease;
    }
    .bid-history p:hover {
        background: #f5f5f5;
    }
    .bid-history p strong {
        font-weight: 500;
        color: #2a2a2a;
    }
    .communication {
        background: #ffffff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        border: 1px solid #e8e8e8;
    }
    .communication .question-hint {
        font-size: 0.95em;
        color: #555;
        margin-bottom: 12px;
    }
    .communication form {
        margin-bottom: 16px;
    }
    .communication textarea {
        font-size: 0.95em;
        padding: 10px;
        border-radius: 6px;
    }
    .communication .message {
        font-size: 0.95em;
        font-weight: 300;
        color: #333;
        margin: 12px 0;
        padding: 12px 16px;
        border-left: 3px solid #6a1b9a;
        background: #fafafa;
        border-radius: 4px;
        line-height: 1.6;
        transition: background 0.2s ease;
    }
    .communication .message:hover {
        background: #f5f5f5;
    }
    .communication .message strong {
        font-weight: 500;
        color: #2a2a2a;
    }
    .communication .message .timestamp {
        font-size: 0.85em;
        color: #666;
    }
    .communication .replies {
        margin-left: 24px;
        padding-left: 16px;
        border-left: 1px dashed #d8d8d8;
    }
    .user-ratings {
        background: #ffffff;
        padding: 20px;
        border-radius: 8px;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
        border: 1px solid #e8e8e8;
    }
    .user-ratings .rating {
        font-size: 0.95em;
        padding: 12px 16px;
        border-left: 3px solid #6a1b9a;
    }
    .user-ratings .rating .timestamp {
        font-size: 0.85em;
    }
    .user-ratings .toggle-comments-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    .user-ratings .pagination button {
        padding: 8px 16px;
        font-size: 0.9em;
    }
    .notification {
        max-width: 600px;
        font-size: 1em;
        padding: 15px 25px;
        border-radius: 10px;
    }
    .auction-detail button, .form-container button, .button {
        width: auto;
        display: inline-block;
        margin: 0 auto 0 0;
        padding: 8px 16px;
    }
    .confirmation-content {
        flex-direction: column;
        gap: 12px;
    }
    .confirmation-message {
        font-size: 1em;
    }
    .confirmation-buttons {
        display: flex;
        justify-content: space-around;
        gap: 12px;
    }
    .confirm-button, .cancel-button {
        flex: 1;
        padding: 8px 16px;
        font-size: 0.9em;
        text-align: center;
    }
    .form-container .image-placeholder .delete-image-btn {
        margin-top: 8px;
        padding: 6px 12px;
        font-size: 0.85em;
    }
}

/* Responsive Design für Smartphones */
@media (max-width: 768px) {
    body {
        font-size: 18px;
    }
    .container {
        padding: 0 5px;
    }
    .search-filter form {
        flex-direction: column;
    }
    .search-filter input[type="text"],
    .search-filter select,
    .search-filter button {
        width: 100%;
        font-size: 1em;
        padding: 10px;
        min-height: 44px;
    }
    .auction-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 0 5px;
    }
    .auction-item {
        width: 100%;
        padding: 8px;
    }
    .image-container {
        width: 100%;
        aspect-ratio: 1/1;
        margin-bottom: 8px;
    }
    .auction-details h3 {
        font-size: 0.95em;
    }
    .auction-details p {
        font-size: 0.8em;
    }
    .auction-detail, .form-container {
        padding: 10px;
    }
    .auction-detail .gallery, .form-container .gallery, .auction-detail .gallery-carousel, .form-container .gallery-carousel {
        flex-direction: row;
        overflow-x: scroll;
        scroll-snap-type: x mandatory;
        gap: 8px;
        padding: 0 5px;
        height: auto;
    }
    .auction-detail .gallery-img, .form-container .gallery-img, .auction-detail .gallery-carousel img, .form-container .gallery-carousel img {
        flex-shrink: 0;
        width: 100%;
        max-width: 200px;
        height: auto;
        scroll-snap-align: start;
    }
    .form-container input,
    .form-container textarea,
    .form-container select {
        font-size: 1em;
        padding: 10px;
    }
    .form-container button {
        font-size: 1em;
        padding: 10px;
        border-radius: 12px;
    }
    .auction-detail button {
        font-size: 1em;
        padding: 10px;
        border-radius: 12px;
    }
    .button {
        font-size: 1em;
        padding: 10px;
        border-radius: 12px;
    }
    .zoom-overlay {
        padding: 5px;
    }
    .zoom-close {
        font-size: 24px;
        width: 32px;
        height: 32px;
    }
    .zoom-nav {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    .bid-history p {
        font-size: 0.9em;
    }
    .communication .message {
        font-size: 0.9em;
    }
    .notification {
        max-width: 95%;
        font-size: 0.9em;
        padding: 10px 15px;
        border-radius: 8px;
    }
    .form-container .image-placeholder .delete-image-btn {
        margin-top: 6px;
        padding: 6px 12px;
        font-size: 0.85em;
    }
    .user-ratings .rating {
        font-size: 0.9em;
    }
    .user-ratings .rating .timestamp {
        font-size: 0.85em;
    }
    .user-ratings .toggle-comments-btn {
        font-size: 1em;
        padding: 10px;
    }
    .user-ratings .pagination button {
        font-size: 0.9em;
        padding: 8px 12px;
    }
}

/* Responsive Design für sehr kleine Bildschirme */
@media (max-width: 480px) {
    .auction-detail form {
        flex-direction: column;
    }
    .auction-detail input[type="number"], 
    .auction-detail textarea {
        font-size: 1em;
        padding: 10px;
        margin-right: 0;
        margin-bottom: 8px;
    }
    .auction-detail button {
        font-size: 1em;
        padding: 10px;
        border-radius: 12px;
    }
    .button {
        font-size: 1em;
        padding: 10px;
        border-radius: 12px;
    }
    .bid-history p {
        font-size: 0.85em;
    }
    .communication .message {
        font-size: 0.85em;
    }
    .notification {
        max-width: 98%;
        font-size: 0.85em;
        padding: 8px 12px;
    }
    .user-ratings .rating {
        font-size: 0.85em;
        padding: 8px 10px;
    }
    .user-ratings .rating .timestamp {
        font-size: 0.8em;
    }
    .user-ratings .toggle-comments-btn {
        font-size: 0.9em;
        padding: 8px;
    }
    .user-ratings .pagination button {
        font-size: 0.85em;
        padding: 6px 10px;
    }
}