/**
 * Pinjuh Betonarbeiten - Additional Styles
 *
 * This file contains additional styles that extend the main stylesheet.
 * Use this file for custom modifications without editing the main style.css
 *
 * @package Pinjuh
 */

/* ===== Icon Styles ===== */
.home-card-icon svg,
.value-icon svg {
    color: #f97316;
    stroke: #f97316;
}

/* ===== Additional Animation Classes ===== */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Custom Form Styles ===== */
.custom-form input,
.custom-form select,
.custom-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    font-family: inherit;
    transition: var(--transition);
    margin-bottom: 1rem;
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(200, 30, 30, 0.1);
}

.custom-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.custom-form textarea {
    min-height: 150px;
    resize: vertical;
}

/* ===== WordPress Specific Overrides ===== */
.wp-block-image {
    margin: 2rem 0;
}

.wp-block-image img {
    border-radius: 0.5rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== Gallery Styles ===== */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== Pagination Styles ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.75rem;
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--foreground);
    transition: var(--transition);
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background-color: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* ===== Breadcrumb Styles ===== */
.breadcrumb {
    padding: 1rem 0;
    font-size: 0.875rem;
    color: var(--text-gray);
}

.breadcrumb a {
    color: var(--primary);
}

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

.breadcrumb span {
    margin: 0 0.5rem;
}

/* ===== Back to Top Button ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
}

/* ===== Print Styles ===== */
@media print {
    .site-header,
    .site-footer,
    .mobile-menu-toggle,
    .mobile-nav,
    .back-to-top,
    .btn {
        display: none !important;
    }

    body {
        padding-top: 0;
    }

    .hero,
    .page-hero {
        background: none !important;
        color: black !important;
        padding: 1rem 0;
    }

    .section {
        padding: 1rem 0;
    }
}
