/* Custom CSS for Schmucki Ofenbau */

/* Brand Colors from Logo */
:root {
    --brand-red: #b62123;
    --brand-red-hover: #9a1c1e;
}

/* Sticky Header - Dark Blurry Background on Scroll */
.header-style1.fixed-top {
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-default.fixed-top {
    background: rgba(30, 30, 30, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Override Primary Color with Brand Red */
.bg-primary,
.butn-style3,
.text-primary,
.navbar-toggler.bg-primary {
    background-color: var(--brand-red) !important;
    color: #fff !important;
}

.text-primary {
    color: var(--brand-red) !important;
    background-color: transparent !important;
}

.butn-style3:hover {
    background-color: var(--brand-red-hover) !important;
}

a.text-primary-hover:hover {
    color: var(--brand-red) !important;
}

.border-primary,
.border-bottom.border-secondary {
    border-color: var(--brand-red) !important;
}

/* Scroll to Top - Always filled, no percentage animation */
.scroll-top-percentage {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    background: var(--brand-red) !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border: none !important;
}

.scroll-top-percentage.active-progress,
.scroll-top-percentage.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top-percentage:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: var(--brand-red-hover) !important;
}

.scroll-top-percentage::before {
    content: "\f062";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fff;
    font-size: 18px;
}

/* Hide the percentage number and any progress circle */
#scroll-value {
    display: none !important;
}

/* Remove any SVG or progress circle elements */
.scroll-top-percentage svg,
.scroll-top-percentage circle {
    display: none !important;
}

/* Webtree Link Styling */
.webtree-link {
    color: var(--brand-red);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.webtree-link:hover {
    color: var(--brand-red-hover);
    text-decoration: none;
}


/* Social Media Icons - Consistent styling */
.social-icon-style3 li a:hover {
    background: var(--brand-red);
    transform: translateY(-3px);
}

/* Feature boxes and cards */
.feature-box:hover,
.card:hover {
    box-shadow: 0 10px 30px rgba(182, 33, 35, 0.15);
}

/* Links and Buttons */
a:hover {
    color: var(--brand-red);
}

.btn-link-1:hover {
    color: var(--brand-red) !important;
}

/* Hero Section Overlay - Subtle and Elegant */
.left-overlay-secondary::before,
.secondary-overlay::before {
    background: linear-gradient(135deg, rgba(30, 30, 30, 0.5) 0%, rgba(60, 60, 60, 0.3) 100%) !important;
    backdrop-filter: blur(2px);
}

/* Service Cards - Fix Image Size */
.card-style04 img {
    height: 450px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Service Cards - Add Spacing Between Cards */
.card-style04 {
    margin-bottom: 1.5rem;
}

/* Service Section - Equal Spacing Top and Bottom */
section.py-0 {
    padding-top: 4rem !important;
    padding-bottom: 2rem !important;
}

@media (max-width: 767px) {
    section.py-0 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Service Cards - Fix Hover Text Issues */
.card-style04 .card-custom-1 h5,
.card-style04 .card-custom-1 h5 a {
    color: #ffffff !important;
    z-index: 10;
    position: relative;
}

.card-style04:hover .card-custom-1 h5,
.card-style04:hover .card-custom-1 h5 a {
    color: #ffffff !important;
}

.card-style04 .card-custom-1 span.text-white {
    z-index: 10;
    position: relative;
}

/* CTA Section - Reduce Height */
.extra-style01 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.extra-style01::before {
    opacity: 0.7;
}

/* Footer - Dark Gray Background with Gradient */
footer.bg-secondary,
footer.bg-img {
    background: linear-gradient(180deg, #2f2c2c 0%, #1a1818 100%) !important;
}

footer.bg-img::before {
    display: none !important;
}

/* Project Images - Uniform Size */
.portfolio-style01 .portfolio-image {
    position: relative;
    overflow: hidden;
    height: 300px;
    width: 100%;
}

.portfolio-style01 .portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* About Page Images - Proper Scaling */
.about-style02 img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 767px) {
    .about-style02 img {
        height: 250px;
    }
}

/* Modern Offerte Popup Modal */
.offerte-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.offerte-modal.active {
    display: flex;
    opacity: 1;
}

.offerte-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    animation: modalSlideIn 0.4s ease;
    z-index: 100000;
}

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

.offerte-modal-header {
    background: linear-gradient(135deg, #2f2c2c 0%, #1a1818 100%);
    padding: 2rem;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.offerte-modal-header h2 {
    color: #ffffff;
    margin: 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.offerte-modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 2.5rem;
    cursor: pointer;
    transition: color 0.3s ease;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offerte-modal-close:hover {
    color: var(--brand-red);
}

.offerte-modal-body {
    padding: 2.5rem;
    padding-bottom: 2rem;
}

.offerte-step {
    display: none;
}

.offerte-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.offerte-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.offerte-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    transform: translateY(-50%);
    z-index: 0;
}

.offerte-progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background: var(--brand-red);
    transform: translateY(-50%);
    transition: width 0.4s ease;
    z-index: 1;
}

.offerte-progress-step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #999;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.offerte-progress-step.active {
    border-color: var(--brand-red);
    color: var(--brand-red);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(182, 33, 35, 0.1);
}

.offerte-progress-step.completed {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
}

.offerte-form-group {
    margin-bottom: 1.5rem;
}

.offerte-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2f2c2c;
}

.offerte-form-group input,
.offerte-form-group textarea,
.offerte-form-group select {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.offerte-form-group input:focus,
.offerte-form-group textarea:focus,
.offerte-form-group select:focus {
    outline: none;
    border-color: var(--brand-red);
    box-shadow: 0 0 0 4px rgba(182, 33, 35, 0.1);
}

.offerte-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.offerte-service-option {
    position: relative;
}

.offerte-service-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.offerte-service-label {
    display: block;
    padding: 1.5rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: #ffffff;
}

.offerte-service-option input[type="radio"]:checked + .offerte-service-label {
    border-color: var(--brand-red);
    background: rgba(182, 33, 35, 0.05);
    box-shadow: 0 0 0 4px rgba(182, 33, 35, 0.1);
}

.offerte-service-label i {
    font-size: 2rem;
    color: var(--brand-red);
    margin-bottom: 0.5rem;
    display: block;
}

.offerte-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2.5rem;
    margin-bottom: 0.5rem;
}

.offerte-btn {
    flex: 1;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.offerte-btn-primary {
    background: var(--brand-red);
    color: #ffffff;
}

.offerte-btn-primary:hover {
    background: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(182, 33, 35, 0.3);
}

.offerte-btn-secondary {
    background: #e0e0e0;
    color: #2f2c2c;
}

.offerte-btn-secondary:hover {
    background: #d0d0d0;
}

@media (max-width: 768px) {
    .offerte-modal-content {
        width: 95%;
    }

    .offerte-modal-body {
        padding: 1.5rem;
    }

    .offerte-service-grid {
        grid-template-columns: 1fr;
    }

    .offerte-buttons {
        flex-direction: column;
    }
}

/* Consistent Section Spacing - All Sections */
section {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

section.bg-light,
section.bg-secondary {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
}

/* CTA Section with Background Image - Consistent Height */
section.bg-img.cover-background.md {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Hero/Page Title Section - Consistent Height */
section.page-title-section {
    padding-top: 8rem !important;
    padding-bottom: 8rem !important;
}

/* Contact Section - Consistent Spacing */
section .container {
    padding-left: 15px;
    padding-right: 15px;
}

/* Card Spacing - Consistent Gaps */
.row.mt-n1-9 > [class*="col-"] {
    margin-top: 1.9rem;
}

.row.mt-n4 > [class*="col-"] {
    margin-top: 2rem;
}

/* Footer Consistent Padding */
footer {
    padding-top: 5rem !important;
    padding-bottom: 3rem !important;
}

footer .container {
    padding-top: 0 !important;
}

/* Mobile Responsive Spacing */
@media (max-width: 991px) {
    section {
        padding-top: 3.5rem !important;
        padding-bottom: 3.5rem !important;
    }

    section.page-title-section {
        padding-top: 6rem !important;
        padding-bottom: 6rem !important;
    }

    footer {
        padding-top: 3.5rem !important;
        padding-bottom: 2rem !important;
    }
}

@media (max-width: 767px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    section.page-title-section {
        padding-top: 5rem !important;
        padding-bottom: 5rem !important;
    }

    footer {
        padding-top: 3rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Container Max Width - Consistent across all pages */
.container {
    max-width: 1200px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* Margin Bottom Consistency */
.mb-1-9 {
    margin-bottom: 1.9rem !important;
}

.mb-2-9 {
    margin-bottom: 2.9rem !important;
}

.mb-md-5 {
    margin-bottom: 3rem !important;
}

@media (min-width: 768px) {
    .mb-md-5 {
        margin-bottom: 5rem !important;
    }
}

/* German language optimizations */
html:lang(de) {
    hyphens: auto;
}

/* Mobile optimizations */
@media (max-width: 767px) {
    .scroll-top-percentage {
        width: 45px;
        height: 45px;
        right: 15px;
        bottom: 15px;
    }

    .scroll-top-percentage::before {
        font-size: 16px;
    }

    /* Service Cards - Always show text on mobile (no hover) */
    .card-style04 .card-data {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .card-style04 .card-custom-1 {
        transform: translateY(0) !important;
    }

    .card-style04 .card-overlay {
        opacity: 1 !important;
    }
}
