/**
 * Single Listing Page Styles
 * ZHZ Marktplatz
 */

/* Container */
.zhz-single-container {
    max-width: 1400px;
    /* margin: 20px auto;
    padding: 20px; */
	width:100%
}

/* Breadcrumb */
.zhz-breadcrumb {
    margin-bottom: 20px;
}

.zhz-breadcrumb a {
    color: #0066cc;
    text-decoration: none;
    font-size: 14px;
}

.zhz-breadcrumb a:hover {
    text-decoration: underline;
}

/* 2-Column Layout */
.zhz-listing-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Left Column */
.zhz-listing-left h1 {
    margin: 0 0 15px 0;
    font-size: 32px;
    color: #333;
    line-height: 1.2;
}

/* Meta Info */
.zhz-listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaedef;
    color: #666;
    font-size: 14px;
}

.zhz-listing-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.zhz-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}
.zhz-single-container .zhz-meta-badge {
	padding:0!important;
}
.zhz-single-container .zhz-meta-badge.category {
    background: #ffffff;
    color:#666666;
	font-weight:400;
	font-size:14px
}
.zhz-single-container .zhz-meta-badge.rubric {
    background: #ffffff;
    color: #666666;
    border:0;
	font-weight:400;
	font-size:14px
}

.zhz-meta-badge.category {
    background: #e3f2fd;
    color: #0066cc;
}

.zhz-meta-badge.rubric {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
}

/* Images */
.zhz-listing-images {
    margin-bottom: 30px;
}

.zhz-main-image-container {
  /* alt:   margin-bottom: 15px;*/	
	max-width: 758px;
    margin: 0 auto;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
	
}

.zhz-main-image {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

.zhz-no-image {
    margin-bottom: 30px;
    border-radius: 10px;
    background: #f5f5f5;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 18px;
}

/* Thumbnail Gallery */
.zhz-image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.zhz-thumbnail {
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    transition: border-color 0.2s;
}

.zhz-thumbnail:hover,
.zhz-thumbnail.active {
    border-color: #0066cc;
}

.zhz-thumbnail img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    display: block;
}

/* Right Column - Seller Card */
.zhz-seller-card {
    background: #fff;
    padding: 25px;
    /* border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1); */
    margin-bottom: 20px;
}

.zhz-seller-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.zhz-seller-info {
    margin-bottom: 20px;
}

.zhz-seller-name {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.zhz-seller-details {
    color: #666;
    font-size: 14px;
    line-height: 1.8;
}

.zhz-seller-details p {
    margin: 0 0 8px 0;
}

.zhz-seller-rating {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

.zhz-seller-rating p {
    margin: 0 0 8px 0;
}

.zhz-rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.zhz-no-rating {
    margin: 8px 0 0 0;
    color: #999;
    font-size: 13px;
}

/* Action Buttons */
.zhz-btn-contact,
.zhz-btn-favorite,
.zhz-btn-favorite-link {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
	text-decoration:none
}

.zhz-btn-contact {
    background: #0085DC;
    color: white;
    border: none;
}

.zhz-btn-contact:hover {
    background: #0465a5;
}

.zhz-btn-favorite {
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
}

.zhz-btn-favorite.active {
    background: #ffc107;
    color: #fff;
    border-color: #ffc107;
}

.zhz-btn-favorite:not(.active):hover {
    background: #fff9e6;
    border-color: #ffc107;
    color: #ffc107;
}

.zhz-btn-favorite.active:hover {
    background: #ffb300;
    border-color: #ffb300;
}

.zhz-btn-favorite svg {
    transition: transform 0.2s;
}

.zhz-btn-favorite:hover svg {
    transform: scale(1.15);
}

.zhz-btn-favorite-link {
    text-decoration: none;
    background: #fff;
    color: #333;
    border: 2px solid #ddd;
}

.zhz-btn-favorite-link:hover {
    border-color: #ffc107;
    color: #ffc107;
}

.zhz-own-listing-notice {
    padding: 14px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #856404;
    margin-bottom: 12px;
}

/* Description Section */
.zhz-description-section {
    background: #fff;
    padding: 30px 0;
    /*border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);*/
    margin-bottom: 30px;
}

.zhz-description-section h2 {
    margin: 0 0 20px 0;
    font-size: 24px;
    color: #333;
	border-bottom: 2px solid #eaedef;
	padding-bottom:12px
}

.zhz-description-content {
    color: #555;
    font-size: 18px;
    line-height: 1.8;
}

/* Details Section */
.zhz-details-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.zhz-details-section h3 {
    margin: 0 0 20px 0;
    font-size: 20px;
    color: #333;
}

.zhz-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.zhz-detail-item {
    padding: 15px;
    background: #fff;
    border-radius: 8px;
}

/* .zhz-detail-item.delivery {
    border-left: 4px solid #0066cc;
}

.zhz-detail-item.payment {
    border-left: 4px solid #28a745;
}*/

.zhz-detail-item strong {
    display: block;
    margin-bottom: 8px;
    color: #333;
}

.zhz-detail-item span {
    color: #666;
}

/* Action Buttons Below Description */
.zhz-action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.zhz-action-buttons .zhz-btn-contact,
.zhz-action-buttons .zhz-btn-favorite {
    flex: 1;
    min-width: 200px;
    padding: 16px 24px;
    font-size: 16px;
    margin-bottom: 0;
}

/* Modal Styles */
.zhz-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    animation: fadeIn 0.3s;
}

.zhz-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.zhz-modal-content {
    background: #fff;
    padding: 35px;
    border-radius: 10px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideIn 0.3s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.zhz-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    line-height: 30px;
    text-align: center;
}

.zhz-modal-close:hover {
    color: #333;
}

.zhz-modal h3 {
    margin: 0 0 20px 0;
    font-size: 22px;
    color: #333;
}

.zhz-modal form {
    margin-top: 20px;
}

.zhz-form-group {
    margin-bottom: 20px;
}

.zhz-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.zhz-form-group textarea {
    width: 100%;
    min-height: 150px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.zhz-form-group textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.zhz-btn-submit {
    padding: 14px 30px;
    background: #0085DC;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.zhz-btn-submit:hover {
    background:#0465a5;
}

.zhz-btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Similar Listings */
.zhz-similar-section {
    margin-top: 60px;
}

.zhz-similar-section h2 {
    margin: 0 0 30px 0;
    font-size: 28px;
    color: #333;
    text-align: center;
}

.zhz-similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.zhz-similar-card {
    background: #fff;
   /* border-radius: 10px; */
    overflow: hidden;
   /*  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s; */
    cursor: pointer;
}

/* .zhz-similar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
} */

.zhz-similar-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.zhz-similar-card .zhz-no-image {
    width: 100%;
    height: 200px;
    margin: 0;
    border-radius: 0;
}

.zhz-similar-card-content {
    padding: 15px;
}

.zhz-similar-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    line-height: 1.3;
}

.zhz-similar-card h3 a {
    color: #333;
    text-decoration: none;
}

.zhz-similar-card h3 a:hover {
    color: #0066cc;
}

.zhz-similar-card p {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.zhz-similar-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.zhz-similar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.zhz-similar-footer span {
    color: #999;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {
    .zhz-listing-layout {
        grid-template-columns: 1.5fr 1fr;
    }
}

@media (max-width: 768px) {
    .zhz-listing-layout {
        grid-template-columns: 1fr;
    }
	.zhz-seller-card {
    padding:0!important
}

    .zhz-listing-right {
        order: -1;
    }

    .zhz-image-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .zhz-listing-left h1 {
        font-size: 24px;
    }

    .zhz-action-buttons {
        flex-direction: column;
    }

    .zhz-action-buttons .zhz-btn-contact,
    .zhz-action-buttons .zhz-btn-favorite {
        width: 100%;
    }
	/* Flex-Container für mobile Umordnung */
    .zhz-single-container {
        display: flex;
        flex-direction: column;
    }
    
    /* Layout-Container "auflösen" damit Kinder direkt im Container sind */
    .zhz-listing-layout {
        display: contents;
    }
    
    /* Reihenfolge festlegen */
    .zhz-breadcrumb {
        order: 1;
    }
    
    .zhz-listing-left {
        order: 2; /* Titel + Meta + Bilder */
    }
    
    .zhz-description-section {
        order: 3; /* Beschreibung */
    }
    
    .zhz-listing-right {
        order: 4; /* Nutzer-Card */
    }
    
    .zhz-action-buttons {
        order: 5;
    }
    
    .zhz-details-section {
        order: 6;
    }
    
    .zhz-similar-section {
        order: 7;
    }
}

/* Report Button */
.zhz-btn-report {
    width: 100%;
    padding: 12px;
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

.zhz-btn-report:hover {
    border-color: #ff9800;
    color: #ff9800;
    background: #fff9f0;
}

/* Form Select */
.zhz-form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    box-sizing: border-box;
}

.zhz-form-select:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

/* Lightbox */
.zhz-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.zhz-lightbox.active {
    display: flex;
}

.zhz-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zhz-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.zhz-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s;
}

.zhz-lightbox-close:hover {
    transform: scale(1.2);
}

.zhz-lightbox-prev,
.zhz-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    cursor: pointer;
    padding: 20px;
    z-index: 10001;
    transition: background 0.2s;
    border-radius: 8px;
}

.zhz-lightbox-prev:hover,
.zhz-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.zhz-lightbox-prev {
    left: 30px;
}

.zhz-lightbox-next {
    right: 30px;
}

.zhz-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.5);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
}

/* Mauszeiger als Pointer für Main-Image */
.zhz-main-image {
    cursor: pointer;
}