/**
 * Merkliste (Wishlist) Styles - Neues Design
 */

/* Merkliste-Icon */
.wishlist-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 2px solid transparent;
}

.wishlist-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.wishlist-icon.active {
    background: #e91e63;
    border-color: #c2185b;
}

.wishlist-icon.active svg {
    fill: white;
}

.wishlist-icon svg {
    width: 24px;
    height: 24px;
    fill: #666;
    transition: fill 0.3s ease;
}

.wishlist-icon:hover svg {
    fill: #e91e63;
}

.wishlist-icon.active:hover svg {
    fill: white;
}

/* Auf Vehicle Cards */
.vehicle-card {
    position: relative;
}

.vehicle-card .wishlist-icon {
    top: 10px;
    right: 10px;
}

/* Auf Detailseite */
.vehicle-gallery,
.gallery-main {
    position: relative;
}

.vehicle-gallery .wishlist-icon,
.gallery-main .wishlist-icon {
    top: 20px;
    right: 20px;
    z-index: 100;
}

/* Merkliste-Button */
.wishlist-toggle-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    background: #2c5aa0;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: calc(14px + 0.3vw);
    transition: all 0.3s ease;
}

.wishlist-toggle-btn:hover {
    background: #234780;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.wishlist-count-badge {
    background: #e91e63;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 8px;
    font-size: calc(12px + 0.2vw);
    font-weight: 700;
}

/* Modal */
.wishlist-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99999;
    display: none;
}

.wishlist-modal.show {
    display: block;
}

.wishlist-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99998;
}

.wishlist-modal-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #1a1a1a;
    border-radius: 12px;
    padding: 0;
    max-width: 1200px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    z-index: 99999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.wishlist-modal-header {
    padding: 30px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wishlist-modal-close {
    background: none;
    border: none;
    font-size: calc(30px + 0.5vw);
    cursor: pointer;
    color: #999;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.wishlist-modal-close:hover {
    color: white;
}

.wishlist-modal-body {
    padding: 30px;
    overflow-y: auto;
    flex: 1;
}

/* Merkliste Header */
.wishlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.wishlist-title {
    font-size: calc(28px + 1vw);
    font-weight: 700;
    color: white;
    margin: 0;
}

.wishlist-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}



/* Merkliste Items */
.wishlist-items-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wishlist-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: #242424;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.wishlist-item:hover {
    background: #2a2a2a;
    border-color: #444;
}

.wishlist-item-image {
    flex-shrink: 0;
    width: 200px;
    height: 150px;
    border-radius: 6px;
    overflow: hidden;
    display: block;
}

.wishlist-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wishlist-item-content {
    flex: 1;
    min-width: 0;
}

.wishlist-item-title {
    margin: 0 0 10px 0;
    font-size: calc(18px + 0.5vw);
    font-weight: 700;
}

.wishlist-item-title a {
    color: white;
    text-decoration: none;
    transition: color 0.3s;
}

.wishlist-item-title a:hover {
    color: #7b2cbf;
}

/* Model Tags */
.wishlist-item-model-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.model-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #333;
    color: #ccc;
    border-radius: 4px;
    font-size: calc(12px + 0.2vw);
    font-weight: 500;
}

.model-tags-second-line {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.wishlist-item-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    font-size: calc(14px + 0.2vw);
    color: #999;
}

.detail-item {
    display: inline-block;
}

.wishlist-item-saved-info {
    font-size: calc(13px + 0.2vw);
    color: #666;
    margin-top: 8px;
}

/* Right Section */
.wishlist-item-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
    min-width: 200px;
}

.wishlist-item-price-section {
    text-align: right;
}

.wishlist-item-price {
    font-size: calc(22px + 0.8vw);
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.wishlist-item-notification-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.wishlist-notification-text {
    font-size: calc(13px + 0.2vw);
    color: #ccc;
    margin-bottom: 10px;
}

.wishlist-notification-input-group {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.wishlist-notification-email {
    flex: 1;
    padding: 8px 12px;
    background: #2a2a2a;
    border: 1px solid #444;
    border-radius: 4px;
    color: white;
    font-size: calc(14px + 0.2vw);
}

.wishlist-notification-email:focus {
    outline: none;
    border-color: #7b2cbf;
}

.wishlist-notification-privacy {
    margin-bottom: 10px;
}

.wishlist-privacy-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: calc(12px + 0.2vw);
    color: #ccc;
    cursor: pointer;
    line-height: 1.5;
}

.wishlist-privacy-checkbox {
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.wishlist-privacy-checkbox-label a {
    color: #7b2cbf;
    text-decoration: underline;
}

.wishlist-privacy-checkbox-label a:hover {
    color: #9d4edd;
}

.wishlist-notification-submit-btn {
    padding: 8px 16px;
    background: #7b2cbf;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: calc(14px + 0.2vw);
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
}

.wishlist-notification-submit-btn:hover {
    background: #6a1b9a;
}

.wishlist-notification-submit-btn:disabled {
    background: #555;
    cursor: not-allowed;
}

.wishlist-notification-message {
    font-size: calc(12px + 0.2vw);
    padding: 8px;
    border-radius: 4px;
    display: none;
}

.wishlist-notification-message.show {
    display: block;
}

.wishlist-notification-message.success {
    background: #1a4d1a;
    color: #4caf50;
    border: 1px solid #2d7a2d;
}

.wishlist-notification-message.error {
    background: #4d1a1a;
    color: #f44336;
    border: 1px solid #7a2d2d;
}

.wishlist-options-btn {
    padding: 8px;
    background: transparent;
    border: 1px solid #444;
    color: #999;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.wishlist-options-btn:hover {
    border-color: #666;
    color: white;
}

.caradag-wishlist-empty {
    text-align: center;
    padding: 60px 20px;
    color: #999;
    font-size: calc(18px + 0.4vw);
}

/* Toast-Notification */
.wishlist-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    max-width: 300px;
    font-size: calc(14px + 0.2vw);
    font-weight: 500;
}

.wishlist-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.wishlist-toast-success {
    background: #4caf50;
}

.wishlist-toast-info {
    background: #2196f3;
}

.wishlist-toast-error {
    background: #f44336;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .wishlist-icon {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
    
    .wishlist-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .wishlist-modal-content {
        width: 100%;
        max-height: 100vh;
        border-radius: 0;
        top: 0;
        left: 0;
        transform: none;
    }
    
    .wishlist-modal-header {
        padding: 20px;
    }
    
    .wishlist-modal-body {
        padding: 20px;
    }
    
    .wishlist-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .wishlist-title {
        font-size: calc(22px + 0.8vw);
    }
    
    .wishlist-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    
    .wishlist-item {
        flex-direction: column;
    }
    
    .wishlist-item-image {
        width: 100%;
        height: 200px;
    }
    
    .wishlist-item-right {
        width: 100%;
        align-items: flex-start;
    }
    
    .wishlist-item-price-section {
        text-align: left;
    }
    
    .wishlist-email-btn {
        width: 100%;
        justify-content: center;
    }
    
    .wishlist-toast {
        bottom: 20px;
        right: 20px;
        left: 20px;
        max-width: none;
    }
}
