/**
 * Additional custom styles for Veit Fliesen.
 *
 * @package Veit_Fliesen
 * @since   1.0.0
 */

/* ==========================================================================
   Service Card Placeholder (when no image)
   ========================================================================== */

.vf-service-card-placeholder {
    width: 100%;
    height: 180px;
    background-color: var(--vf-nav);
    display: flex;
    align-items: center;
    justify-content: center;
}

.vf-service-card-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--vf-accent);
    opacity: 0.6;
}

/* ==========================================================================
   Section Titles
   ========================================================================== */

.vf-section-title {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.vf-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--vf-accent);
}

/* ==========================================================================
   Referenz Card Enhancements
   ========================================================================== */

.vf-referenz-card-content {
    padding: 16px;
}

.vf-referenz-card-content h3 {
    font-size: 15px;
    margin-bottom: 6px;
}

.vf-referenz-card-content h3 a {
    color: var(--vf-accent);
    text-decoration: none;
}

.vf-referenz-card-content h3 a:hover {
    color: var(--vf-accent-hover);
}

.vf-referenz-category {
    display: inline-block;
    font-size: 11px;
    color: var(--vf-text-light);
    background-color: var(--vf-bg);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.vf-referenz-meta {
    font-size: 12px;
    color: var(--vf-text-light);
    margin-top: 8px;
}

.vf-referenz-meta span {
    margin-right: 12px;
}

.vf-referenz-meta .vf-meta-location::before {
    content: '\1F4CD ';
}

.vf-referenz-meta .vf-meta-year::before {
    content: '\1F4C5 ';
}

/* ==========================================================================
   Service Teaser
   ========================================================================== */

.vf-service-teaser {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--vf-border-light);
}

.vf-service-teaser:nth-child(even) {
    direction: rtl;
}

.vf-service-teaser:nth-child(even) > * {
    direction: ltr;
}

.vf-service-teaser-image img {
    width: 100%;
    border-radius: var(--vf-radius);
    box-shadow: 0 4px 12px var(--vf-shadow);
}

.vf-btn-small {
    padding: 8px 20px;
    font-size: 13px;
}

/* ==========================================================================
   Smooth Scroll
   ========================================================================== */

html {
    scroll-behavior: smooth;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.vf-text-center {
    text-align: center;
}

.vf-mt-40 {
    margin-top: 40px;
}

.vf-mb-40 {
    margin-bottom: 40px;
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .vf-hero-section,
    .vf-map-container,
    .vf-filter-bar,
    .site-header,
    .site-footer {
        display: none !important;
    }

    body {
        background: white;
        color: black;
        font-size: 12pt;
    }

    a {
        color: black;
        text-decoration: underline;
    }
}

/* ==========================================================================
   Responsive Additions
   ========================================================================== */

@media (max-width: 768px) {
    .vf-service-teaser {
        grid-template-columns: 1fr;
    }

    .vf-service-teaser:nth-child(even) {
        direction: ltr;
    }
}
