/* Google Font Lato laden */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

/**
 * Verleihkatalog – Frontend-Styles
 *
 * Nutzt CSS Custom Properties für Theme-Farben (via ACF Options).
 * Designed als eigenständiges Layout, das sich in jedes WP-Theme einfügt.
 * CI: Münzlochner Lifestyle – Events & Ideen GmbH
 */

/* === CSS Variables (Münzlochner CI, überschrieben via ACF) === */
:root {
    --vlk-primary: #C1870F;
    --vlk-accent: #DD9D3E;
    --vlk-dark: #333333;
    --vlk-light: #f8f6f1;
    --vlk-border: #e8e0d4;
    --vlk-text: #333333;
    --vlk-text-light: #707070;
    --vlk-radius: 4px;
    --vlk-shadow: 0 1px 3px rgba(0,0,0,0.06);
    --vlk-shadow-hover: 0 4px 12px rgba(0,0,0,0.10);
    --vlk-transition: 0.2s ease;
    --vlk-font: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* === Layout === */
.vlk-katalog-wrap,
.vlk-single-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px;
    font-family: var(--vlk-font);
    color: var(--vlk-text);
    line-height: 1.6;
}

.vlk-katalog-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: start;
}

/* === Breadcrumb === */
.vlk-breadcrumb {
    font-size: 13px;
    color: var(--vlk-text-light);
    margin-bottom: 20px;
    padding: 10px 0;
}

.vlk-breadcrumb a {
    color: var(--vlk-primary);
    text-decoration: none;
}

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

.vlk-sep {
    margin: 0 6px;
    color: #c3c4c7;
}

.vlk-current {
    color: var(--vlk-text);
    font-weight: 500;
}

/* === Sidebar === */
.vlk-sidebar {
    position: sticky;
    top: 40px;
    background: #fff;
    border: 1px solid var(--vlk-border);
    border-radius: var(--vlk-radius);
    overflow: hidden;
    box-shadow: var(--vlk-shadow);
}

.vlk-sidebar-header {
    background: var(--vlk-dark);
    color: #fff;
    padding: 15px 20px;
}

.vlk-sidebar-header h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #fff;
}

.vlk-category-nav {
    padding: 10px 0;
}

.vlk-cat-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    color: var(--vlk-text);
    text-decoration: none;
    font-size: 14px;
    transition: all var(--vlk-transition);
    border-left: 3px solid transparent;
    cursor: pointer;
}

.vlk-cat-link:hover {
    background: var(--vlk-light);
    color: var(--vlk-primary);
}

.vlk-cat-link.vlk-active {
    background: rgba(193, 135, 15, 0.06);
    color: var(--vlk-primary);
    font-weight: 600;
    border-left-color: var(--vlk-primary);
}

.vlk-cat-parent {
    font-weight: 500;
}

.vlk-cat-child {
    padding-left: 36px;
    font-size: 13px;
}

.vlk-cat-count {
    background: var(--vlk-light);
    color: var(--vlk-text-light);
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
}

.vlk-active .vlk-cat-count {
    background: var(--vlk-primary);
    color: #fff;
}

.vlk-cat-children {
    display: none;
}

.vlk-cat-group.vlk-open .vlk-cat-children {
    display: block;
}

.vlk-cat-group:hover .vlk-cat-children {
    display: block;
}

/* Sidebar PDF-Link */
.vlk-sidebar-pdf {
    padding: 15px 20px;
    border-top: 1px solid var(--vlk-border);
}

.vlk-pdf-download {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--vlk-primary);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 15px;
    background: rgba(193, 135, 15, 0.08);
    border-radius: var(--vlk-radius);
    transition: all var(--vlk-transition);
}

.vlk-pdf-download:hover {
    background: rgba(193, 135, 15, 0.15);
}

/* === Suchleiste === */
.vlk-search-bar {
    margin-bottom: 20px;
}

.vlk-search-form {
    display: flex;
    border: 2px solid var(--vlk-border);
    border-radius: var(--vlk-radius);
    overflow: hidden;
    transition: border-color var(--vlk-transition);
}

.vlk-search-form:focus-within {
    border-color: var(--vlk-primary);
}

.vlk-search-input {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: 15px;
    outline: none;
    background: #fff;
}

.vlk-search-btn {
    border: none;
    background: var(--vlk-primary);
    color: #fff;
    padding: 12px 18px;
    cursor: pointer;
    transition: background var(--vlk-transition);
    display: flex;
    align-items: center;
}

.vlk-search-btn:hover {
    background: var(--vlk-dark);
}

/* Such-Hinweis (Ergebnisanzahl) */
.vlk-search-hint {
    font-size: 13px;
    color: var(--vlk-text-light);
    padding: 8px 4px;
    line-height: 1.4;
}

.vlk-search-hint a {
    color: var(--vlk-primary);
    text-decoration: none;
    font-weight: 500;
}

.vlk-search-hint a:hover {
    text-decoration: underline;
}

/* Spinner-Animation */
@keyframes vlk-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.vlk-icon-spinner {
    animation: vlk-spin 1s linear infinite;
}

/* === Seitentitel === */
.vlk-page-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--vlk-border);
}

.vlk-page-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0;
    color: var(--vlk-text);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    transition: opacity 0.15s ease;
}

.vlk-product-count {
    color: var(--vlk-text-light);
    font-size: 14px;
    transition: opacity 0.15s ease;
}

/* === Produktraster === */
.vlk-grid {
    display: grid;
    gap: 20px;
}

.vlk-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.vlk-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* === Produktkarte === */
.vlk-product-card {
    background: #fff;
    border: 1px solid var(--vlk-border);
    border-radius: var(--vlk-radius);
    overflow: hidden;
    transition: all var(--vlk-transition);
    box-shadow: var(--vlk-shadow);
}

.vlk-product-card:hover {
    box-shadow: var(--vlk-shadow-hover);
    transform: translateY(-2px);
    border-color: var(--vlk-accent);
}

.vlk-product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.vlk-product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--vlk-light);
}

.vlk-product-image .vlk-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.vlk-product-card:hover .vlk-img {
    transform: scale(1.05);
}

.vlk-placeholder-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #c3c4c7;
    gap: 8px;
}

.vlk-placeholder-image svg {
    opacity: 0.4;
}

.vlk-placeholder-image span {
    font-size: 12px;
}

.vlk-product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--vlk-primary);
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    opacity: 0.95;
}

.vlk-product-info {
    padding: 15px;
}

.vlk-product-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--vlk-text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vlk-product-price {
    margin-bottom: 6px;
}

.vlk-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--vlk-primary);
}

.vlk-price-suffix {
    font-size: 13px;
    color: var(--vlk-text-light);
    font-weight: 400;
}

.vlk-price-request {
    font-size: 14px;
    color: var(--vlk-accent);
    font-weight: 600;
    font-style: italic;
}

.vlk-product-artnr {
    font-size: 12px;
    color: var(--vlk-text-light);
    font-family: monospace;
}

/* === Pagination === */
.vlk-pagination {
    margin-top: 30px;
    text-align: center;
}

.vlk-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid var(--vlk-border);
    border-radius: var(--vlk-radius);
    text-decoration: none;
    color: var(--vlk-text);
    font-size: 14px;
    transition: all var(--vlk-transition);
}

.vlk-pagination .page-numbers:hover {
    background: var(--vlk-primary);
    color: #fff;
    border-color: var(--vlk-primary);
}

.vlk-pagination .page-numbers.current {
    background: var(--vlk-primary);
    color: #fff;
    border-color: var(--vlk-primary);
    font-weight: 600;
}

/* === Einzelprodukt === */
.vlk-product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

/* Hauptbild-Container */
.vlk-main-image {
    position: relative;
    border-radius: var(--vlk-radius);
    overflow: hidden;
    background: var(--vlk-light);
    border: 1px solid var(--vlk-border);
    aspect-ratio: 4/3;
}

.vlk-detail-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    cursor: zoom-in;
    transition: opacity 0.2s ease;
}

.vlk-placeholder-large {
    min-height: 400px;
    aspect-ratio: auto;
}

/* Bild-Counter */
.vlk-img-counter {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
    letter-spacing: 0.5px;
}

/* Zoom-Button */
.vlk-zoom-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    opacity: 0;
}

.vlk-main-image:hover .vlk-zoom-btn {
    opacity: 1;
}

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

/* Navigations-Pfeile im Hauptbild */
.vlk-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--vlk-text);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s;
    opacity: 0;
}

.vlk-main-image:hover .vlk-nav-btn {
    opacity: 1;
}

.vlk-nav-prev { left: 10px; }
.vlk-nav-next { right: 10px; }

.vlk-nav-btn:hover {
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,0.2);
    transform: translateY(-50%) scale(1.05);
}

/* Thumbnails */
.vlk-gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: thin;
    scrollbar-color: var(--vlk-border) transparent;
}

.vlk-gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.vlk-gallery-thumbs::-webkit-scrollbar-thumb {
    background: var(--vlk-border);
    border-radius: 4px;
}

.vlk-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border: 2px solid var(--vlk-border);
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: var(--vlk-light);
    transition: border-color var(--vlk-transition), transform 0.15s ease;
}

.vlk-thumb:hover {
    border-color: var(--vlk-accent);
    transform: scale(1.05);
}

.vlk-thumb.vlk-thumb-active {
    border-color: var(--vlk-primary);
    box-shadow: 0 0 0 1px var(--vlk-primary);
}

.vlk-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* === Fullscreen-Lightbox === */
.vlk-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vlk-lightbox.vlk-lightbox-open {
    opacity: 1;
    visibility: visible;
}

.vlk-lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.vlk-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.vlk-lightbox-close:hover {
    opacity: 1;
}

.vlk-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 24px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    z-index: 2;
    letter-spacing: 1px;
}

.vlk-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}

.vlk-lightbox-prev { left: 20px; }
.vlk-lightbox-next { right: 20px; }

.vlk-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.vlk-lightbox-img-wrap {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.vlk-lightbox-img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    transition: opacity 0.25s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.vlk-detail-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 8px;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.vlk-detail-meta {
    font-size: 14px;
    color: var(--vlk-text-light);
    margin-bottom: 15px;
}

.vlk-meta-sep {
    margin: 0 6px;
}

.vlk-detail-price {
    margin-bottom: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--vlk-border);
    border-bottom: 1px solid var(--vlk-border);
}

.vlk-price-big {
    font-size: 28px;
    font-weight: 700;
    color: var(--vlk-primary);
}

.vlk-detail-description {
    margin-bottom: 20px;
    font-size: 15px;
    line-height: 1.7;
    color: var(--vlk-text);
}

.vlk-detail-description p {
    margin-bottom: 10px;
}

/* === Technische Daten === */
.vlk-detail-specs {
    margin-top: 28px;
    margin-bottom: 25px;
}

.vlk-detail-specs h3 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--vlk-text);
    text-transform: uppercase;
    letter-spacing: 0.75px;
}

.vlk-specs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--vlk-border);
    border-radius: 6px;
    overflow: hidden;
}

.vlk-specs-table tr {
    transition: background 0.15s ease;
}

.vlk-specs-table tr:not(:last-child) {
    border-bottom: 1px solid var(--vlk-border);
}

.vlk-specs-table tr:not(:last-child) td {
    border-bottom: 1px solid var(--vlk-border);
}

.vlk-specs-table tr:hover {
    background: rgba(193, 135, 15, 0.03);
}

.vlk-specs-table tr:nth-child(even) {
    background: rgba(248, 246, 241, 0.5);
}

.vlk-specs-table tr:nth-child(even):hover {
    background: rgba(193, 135, 15, 0.05);
}

.vlk-specs-table td {
    padding: 12px 18px;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
}

.vlk-specs-table td:first-child {
    color: var(--vlk-text-light);
    width: 40%;
    font-weight: 500;
    border-right: 1px solid var(--vlk-border);
    padding-left: 18px !important;
}

.vlk-specs-table td:last-child {
    font-weight: 600;
    color: var(--vlk-text);
}

/* CTA */
.vlk-detail-cta {
    margin-top: 25px;
}

.vlk-btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: var(--vlk-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.75px;
    transition: all var(--vlk-transition);
    border: none;
    cursor: pointer;
    text-align: center;
}

.vlk-btn-primary {
    background: var(--vlk-primary);
    color: #fff;
}

.vlk-btn-primary:hover {
    background: var(--vlk-dark);
    color: #fff;
}

.vlk-btn-large {
    padding: 14px 36px;
    font-size: 16px;
}

.vlk-cta-hint {
    font-size: 13px;
    color: var(--vlk-text-light);
    margin-top: 10px;
    font-style: italic;
}

/* Ähnliche Produkte */
.vlk-related {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid var(--vlk-border);
}

.vlk-related-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Keine Produkte */
.vlk-no-products {
    text-align: center;
    padding: 60px 20px;
    color: var(--vlk-text-light);
}

.vlk-no-products .vlk-btn {
    margin-top: 15px;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .vlk-katalog-layout {
        grid-template-columns: 220px 1fr;
        gap: 20px;
    }

    .vlk-grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .vlk-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .vlk-product-detail {
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .vlk-katalog-layout {
        grid-template-columns: 1fr;
    }

    .vlk-sidebar {
        position: static;
        margin-bottom: 20px;
    }

    .vlk-category-nav {
        max-height: 300px;
        overflow-y: auto;
    }

    .vlk-grid-3,
    .vlk-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .vlk-product-detail {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .vlk-detail-title {
        font-size: 22px;
    }

    .vlk-price-big {
        font-size: 24px;
    }

    .vlk-page-header {
        flex-direction: column;
        gap: 5px;
    }

    /* Mobile: Pfeile und Zoom immer sichtbar */
    .vlk-nav-btn,
    .vlk-zoom-btn {
        opacity: 1;
    }

    .vlk-nav-btn {
        width: 32px;
        height: 32px;
    }

    .vlk-lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .vlk-lightbox-prev { left: 8px; }
    .vlk-lightbox-next { right: 8px; }

    /* Tabelle auf Mobile: etwas weniger Padding */
    .vlk-specs-table td {
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .vlk-katalog-wrap,
    .vlk-single-wrap {
        padding: 10px;
    }

    .vlk-grid-3,
    .vlk-grid-4 {
        grid-template-columns: 1fr;
    }

    .vlk-gallery-thumbs {
        gap: 5px;
    }

    .vlk-thumb {
        width: 55px;
        height: 55px;
    }

    .vlk-main-image {
        aspect-ratio: 1/1;
    }

    .vlk-img-counter {
        bottom: 8px;
        left: 8px;
        font-size: 11px;
        padding: 3px 8px;
    }

    .vlk-zoom-btn {
        width: 34px;
        height: 34px;
        bottom: 8px;
        right: 8px;
    }

    /* Tabelle auf kleinen Screens: kompakter */
    .vlk-specs-table td {
        padding: 8px 12px;
        font-size: 13px;
    }

    .vlk-specs-table td:first-child {
        width: 45%;
    }
}

/* === Print === */
@media print {
    .vlk-sidebar,
    .vlk-search-bar,
    .vlk-detail-cta,
    .vlk-breadcrumb {
        display: none;
    }

    .vlk-katalog-layout {
        grid-template-columns: 1fr;
    }

    .vlk-product-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .vlk-specs-table {
        border: 1px solid #ddd;
    }

    .vlk-specs-table td {
        padding: 8px 14px;
    }
}

/* === Anfrage-Lightbox / Modal === */
.vlk-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vlk-modal-overlay.vlk-modal-open {
    opacity: 1;
    visibility: visible;
}

.vlk-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s ease;
    position: relative;
}

.vlk-modal-open .vlk-modal {
    transform: translateY(0) scale(1);
}

.vlk-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--vlk-text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    z-index: 1;
}

.vlk-modal-close:hover {
    color: var(--vlk-text);
    background: var(--vlk-light);
}

.vlk-modal-header {
    padding: 24px 28px 0;
}

.vlk-modal-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--vlk-dark);
}

.vlk-modal-product-info {
    padding: 12px 28px 0;
}

.vlk-modal-product {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 16px;
    background: var(--vlk-light);
    border-radius: var(--vlk-radius);
    border-left: 3px solid var(--vlk-primary);
}

.vlk-modal-product strong {
    font-size: 15px;
    color: var(--vlk-text);
}

.vlk-modal-meta {
    font-size: 13px;
    color: var(--vlk-text-light);
}

.vlk-modal-body {
    padding: 20px 28px 28px;
}

/* CF7-Formular innerhalb der Lightbox stylen */
.vlk-modal-body .wpcf7 {
    margin: 0;
}

.vlk-modal-body .wpcf7-form p {
    margin-bottom: 14px;
}

.vlk-modal-body .wpcf7-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--vlk-text);
    margin-bottom: 4px;
}

.vlk-modal-body .wpcf7-form input[type="text"],
.vlk-modal-body .wpcf7-form input[type="email"],
.vlk-modal-body .wpcf7-form input[type="tel"],
.vlk-modal-body .wpcf7-form input[type="url"],
.vlk-modal-body .wpcf7-form input[type="date"],
.vlk-modal-body .wpcf7-form input[type="number"],
.vlk-modal-body .wpcf7-form select,
.vlk-modal-body .wpcf7-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--vlk-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--vlk-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.vlk-modal-body .wpcf7-form input:focus,
.vlk-modal-body .wpcf7-form textarea:focus,
.vlk-modal-body .wpcf7-form select:focus {
    outline: none;
    border-color: var(--vlk-primary);
    box-shadow: 0 0 0 3px rgba(193, 135, 15, 0.1);
}

.vlk-modal-body .wpcf7-form textarea {
    min-height: 100px;
    resize: vertical;
}

.vlk-modal-body .wpcf7-form input[type="submit"],
.vlk-modal-body .wpcf7-form button[type="submit"] {
    display: inline-block;
    padding: 12px 32px;
    background: var(--vlk-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.vlk-modal-body .wpcf7-form input[type="submit"]:hover,
.vlk-modal-body .wpcf7-form button[type="submit"]:hover {
    background: var(--vlk-dark);
    transform: translateY(-1px);
}

/* CF7 Validierungsmeldungen */
.vlk-modal-body .wpcf7-not-valid-tip {
    color: #dc3232;
    font-size: 12px;
    margin-top: 4px;
}

.vlk-modal-body .wpcf7-response-output {
    margin: 16px 0 0;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}

.vlk-modal-body .wpcf7-mail-sent-ok,
.vlk-modal-body .wpcf7 form.sent .wpcf7-response-output {
    background: #f0f9e8;
    border-color: var(--vlk-primary);
    color: var(--vlk-primary);
}

/* Fallback (kein CF7) */
.vlk-modal-fallback {
    text-align: center;
    padding: 20px 0;
}

.vlk-modal-fallback p {
    margin-bottom: 16px;
    color: var(--vlk-text-light);
}

/* Responsive Modal */
@media (max-width: 600px) {
    .vlk-modal-overlay {
        padding: 10px;
        align-items: flex-end;
    }

    .vlk-modal {
        max-width: 100%;
        max-height: 85vh;
        border-radius: 12px 12px 0 0;
    }

    .vlk-modal-header {
        padding: 20px 20px 0;
    }

    .vlk-modal-product-info {
        padding: 10px 20px 0;
    }

    .vlk-modal-body {
        padding: 16px 20px 24px;
    }
}

/* === Brutto-Preis === */
.vlk-price-brutto {
    display: block;
    font-size: 12px;
    color: var(--vlk-text-light);
    margin-top: 2px;
    font-weight: 400;
    line-height: 1.4;
}

.vlk-detail-price .vlk-price-brutto {
    font-size: 13px;
    margin-top: 4px;
}

.vlk-product-price .vlk-price-brutto {
    font-size: 11px;
}

/* === Merkliste: Herz-Icon auf Produktkarten === */
.vlk-product-card {
    position: relative;
}

.vlk-product-card > .vlk-wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.vlk-product-card > .vlk-wishlist-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.vlk-heart-icon {
    fill: none;
    stroke: var(--vlk-primary);
    stroke-width: 2;
    transition: fill 0.25s ease, stroke 0.25s ease;
}

.vlk-wishlisted .vlk-heart-icon,
.vlk-heart-filled {
    fill: var(--vlk-primary);
    stroke: var(--vlk-primary);
}

/* === Merkliste: Detail-Seite Button === */
.vlk-wishlist-btn-detail {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 2px solid var(--vlk-primary);
    color: var(--vlk-primary);
    border-radius: 6px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.1s;
}

.vlk-wishlist-btn-detail:hover {
    background: rgba(193, 135, 15, 0.08);
}

.vlk-wishlist-btn-detail.vlk-wishlisted {
    background: var(--vlk-primary);
    color: #fff;
}

.vlk-wishlist-btn-detail.vlk-wishlisted .vlk-heart-icon {
    fill: #fff;
    stroke: #fff;
}

.vlk-detail-cta {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* === Merkliste: Floating Badge === */
.vlk-wishlist-badge {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    background: var(--vlk-primary);
    color: #fff;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(193, 135, 15, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
}

.vlk-wishlist-badge:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(193, 135, 15, 0.5);
}

.vlk-wishlist-badge .vlk-heart-icon {
    fill: #fff;
    stroke: #fff;
}

.vlk-wishlist-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--vlk-dark);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* === Merkliste: Overlay (Slide-in Panel) === */
.vlk-wishlist-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.vlk-wishlist-overlay.vlk-wishlist-open {
    opacity: 1;
    visibility: visible;
}

.vlk-wishlist-panel {
    position: absolute;
    top: 0;
    right: -400px;
    width: 380px;
    max-width: 90vw;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
}

.vlk-wishlist-open .vlk-wishlist-panel {
    right: 0;
}

.vlk-wishlist-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--vlk-border);
}

.vlk-wishlist-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--vlk-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.vlk-wishlist-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--vlk-text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}

.vlk-wishlist-close:hover {
    color: var(--vlk-text);
    background: var(--vlk-light);
}

.vlk-wishlist-items {
    flex: 1;
    overflow-y: auto;
    padding: 16px 24px;
}

.vlk-wishlist-empty {
    text-align: center;
    color: var(--vlk-text-light);
    padding: 40px 0;
}

.vlk-wishlist-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--vlk-border);
}

.vlk-wishlist-item:last-child {
    border-bottom: none;
}

.vlk-wishlist-item-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vlk-wishlist-item-info strong {
    font-size: 14px;
    color: var(--vlk-text);
}

.vlk-wishlist-item-meta {
    font-size: 12px;
    color: var(--vlk-text-light);
}

.vlk-wishlist-remove {
    background: none;
    border: none;
    font-size: 22px;
    color: var(--vlk-text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    flex-shrink: 0;
}

.vlk-wishlist-remove:hover {
    color: #dc3232;
    background: #fef2f2;
}

.vlk-wishlist-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--vlk-border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.vlk-btn-outline {
    background: #fff;
    color: var(--vlk-text-light);
    border: 1px solid var(--vlk-border);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s, color 0.2s;
}

.vlk-btn-outline:hover {
    border-color: var(--vlk-text-light);
    color: var(--vlk-text);
}

/* === Merkliste: Sammelanfrage-Modal === */
#vlk-wishlist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

#vlk-wishlist-modal.vlk-modal-open {
    opacity: 1;
    visibility: visible;
}

#vlk-wishlist-modal .vlk-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

#vlk-wishlist-modal .vlk-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 28px;
    z-index: 1;
}

#vlk-wishlist-modal .vlk-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--vlk-text-light);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    z-index: 1;
}

#vlk-wishlist-modal .vlk-modal-close:hover {
    color: var(--vlk-text);
    background: var(--vlk-light);
}

#vlk-wishlist-modal h3 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 700;
    color: var(--vlk-dark);
}

.vlk-wishlist-modal-products {
    margin-bottom: 20px;
}

.vlk-wishlist-modal-list {
    list-style: none;
    padding: 0;
    margin: 8px 0 0;
}

.vlk-wishlist-modal-list li {
    padding: 8px 12px;
    background: var(--vlk-light);
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
    border-left: 3px solid var(--vlk-primary);
}

.vlk-wishlist-modal-list .vlk-meta {
    color: var(--vlk-text-light);
    font-size: 12px;
}

.vlk-wishlist-modal-form .wpcf7 {
    margin: 0;
}

.vlk-wishlist-modal-form .wpcf7-form p {
    margin-bottom: 14px;
}

.vlk-wishlist-modal-form .wpcf7-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--vlk-text);
    margin-bottom: 4px;
}

.vlk-wishlist-modal-form .wpcf7-form input[type="text"],
.vlk-wishlist-modal-form .wpcf7-form input[type="email"],
.vlk-wishlist-modal-form .wpcf7-form input[type="tel"],
.vlk-wishlist-modal-form .wpcf7-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--vlk-border);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    color: var(--vlk-text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.vlk-wishlist-modal-form .wpcf7-form input:focus,
.vlk-wishlist-modal-form .wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--vlk-primary);
    box-shadow: 0 0 0 3px rgba(193, 135, 15, 0.1);
}

.vlk-wishlist-modal-form .wpcf7-form input[type="submit"],
.vlk-wishlist-modal-form .wpcf7-form button[type="submit"] {
    display: inline-block;
    padding: 12px 32px;
    background: var(--vlk-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    width: 100%;
}

.vlk-wishlist-modal-form .wpcf7-form input[type="submit"]:hover,
.vlk-wishlist-modal-form .wpcf7-form button[type="submit"]:hover {
    background: var(--vlk-dark);
    transform: translateY(-1px);
}

/* === Responsive: Merkliste === */
@media (max-width: 480px) {
    .vlk-wishlist-badge {
        bottom: 16px;
        right: 16px;
        width: 48px;
        height: 48px;
    }

    .vlk-wishlist-panel {
        width: 100%;
        max-width: 100vw;
    }

    .vlk-wishlist-btn-detail {
        padding: 10px 16px;
        font-size: 14px;
    }

    .vlk-detail-cta {
        flex-direction: column;
    }

    .vlk-detail-cta .vlk-btn {
        width: 100%;
        text-align: center;
    }
}

/* === Print: Merkliste ausblenden === */
@media print {
    .vlk-wishlist-badge,
    .vlk-wishlist-overlay,
    #vlk-wishlist-modal,
    .vlk-wishlist-btn {
        display: none !important;
    }
}
