/* Startseite der HMC Bau Solutions.
   Ausgelagert am 2026-08-20 aus resources/views/pages/home.blade.php,
   wo 440 Zeilen CSS im Blade-Template standen. */

:root {
    --hmc-primary: #f5b301;
    --hmc-secondary: #0d6efd;
    --hmc-dark: #0f172a;
}

body {
    background-color: #f5f7fb;
}

.page-content {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 20% 20%, rgba(13, 110, 253, 0.08), transparent 60%),
                radial-gradient(circle at 80% 0%, rgba(245, 179, 1, 0.12), transparent 55%),
                linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(245, 247, 251, 0.95));
}

.page-ambient {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.page-ambient span {
    position: absolute;
    border-radius: 50%;
    filter: blur(0);
    opacity: 0.55;
    mix-blend-mode: screen;
    animation: ambientFloat 18s ease-in-out infinite;
}

.page-ambient span:nth-child(1) {
    width: 420px;
    height: 420px;
    left: -140px;
    top: -120px;
    background: radial-gradient(circle at 30% 30%, rgba(13, 110, 253, 0.35), rgba(13, 110, 253, 0));
}

.page-ambient span:nth-child(2) {
    width: 360px;
    height: 360px;
    right: -80px;
    top: 120px;
    background: radial-gradient(circle at 50% 50%, rgba(245, 179, 1, 0.35), rgba(245, 179, 1, 0));
    animation-delay: -6s;
}

.page-ambient span:nth-child(3) {
    width: 380px;
    height: 380px;
    left: 20%;
    bottom: -140px;
    background: radial-gradient(circle at 50% 50%, rgba(25, 135, 84, 0.28), rgba(25, 135, 84, 0));
    animation-delay: -12s;
}

@keyframes ambientFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(45px, -25px, 0) scale(1.1); }
    66% { transform: translate3d(-35px, 35px, 0) scale(0.95); }
}

.page-content > * {
    position: relative;
    z-index: 2;
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.hover-lift {
    transition: transform 0.4s ease, box-shadow 0.45s ease;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.hover-lift::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(245, 179, 1, 0.08));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.hover-lift:hover::after {
    opacity: 1;
}

.wt-icon-box-wraper .icon-cell i {
    animation: iconPulse 4s ease-in-out infinite;
    transform-origin: center;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.12); }
}

.floating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 30px rgba(15, 23, 42, 0.22);
}

.floating-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(245, 179, 1, 0.35), rgba(13, 110, 253, 0.35));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.floating-badge:hover::before {
    opacity: 1;
}

.section-head .wt-separator {
    position: relative;
    overflow: hidden;
}

.section-head .wt-separator::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(245, 179, 1, 0.35), rgba(255, 255, 255, 0));
    animation: shimmer 3.5s linear infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.status-marks {
    position: relative;
    padding: 1.25rem 1.5rem;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.45s ease, box-shadow 0.45s ease, background 0.45s ease;
}

.status-marks::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(245, 179, 1, 0.35), rgba(13, 110, 253, 0.28));
    opacity: 0;
    transition: opacity 0.45s ease;
}

.status-marks:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
    background: rgba(15, 23, 42, 0.7);
}

.status-marks:hover::after {
    opacity: 0.6;
}

.status-marks .status-value {
    font-size: 2.25rem;
    font-weight: 700;
}

.about-com-pic img {
    border-radius: 26px;
    box-shadow: 0 35px 65px rgba(15, 23, 42, 0.18);
    transform: translateY(0);
    transition: transform 0.5s ease;
}

.about-com-pic img:hover {
    transform: translateY(-12px);
}

.portfolio-wrap .wt-gallery-bx {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.15);
    transition: transform 0.45s ease, box-shadow 0.45s ease;
}

.portfolio-wrap .wt-gallery-bx:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: 0 40px 70px rgba(15, 23, 42, 0.2);
}

.portfolio-wrap .wt-thum-bx img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* Fix für Grid-Layout - Bootstrap-Klassen müssen funktionieren */
.portfolio-wrap .masonry-item {
    width: auto !important;
    float: left;
}

@media (min-width: 1200px) {
    .portfolio-wrap .masonry-item.col-xl-3 {
        width: 25% !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .portfolio-wrap .masonry-item.col-lg-3 {
        width: 33.333333% !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .portfolio-wrap .masonry-item.col-md-6 {
        width: 50% !important;
    }
}

@media (max-width: 767px) {
    .portfolio-wrap .masonry-item {
        width: 100% !important;
    }
}

.portfolio-wrap .overlay-bx {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.75), rgba(245, 179, 1, 0.75));
}

/* Fix für Service-Blöcke im "Über HMC Bau Solutions" Bereich */
.about-types .wt-icon-box-wraper {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 25px 20px;
    border-radius: 12px;
    transition: all 0.3s ease;
    background: #fff;
    border: 1px solid #e9ecef;
}

.about-types .wt-icon-box-wraper:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.about-types .wt-icon-box-wraper .icon-sm {
    margin-bottom: 15px;
}

.about-types .wt-icon-box-wraper .icon-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.about-types .wt-icon-box-wraper .icon-content h5 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
}

.about-types .wt-icon-box-wraper .icon-content p {
    flex: 1;
    margin: 0;
    color: #64748b;
    line-height: 1.6;
    font-size: 14px;
}

.about-types .col-md-6 {
    display: flex;
    margin-bottom: 20px;
}

.about-types .col-md-6 > div {
    width: 100%;
}

.testimonial-1 {
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.12), rgba(245, 179, 1, 0.12));
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(15, 23, 42, 0.18);
}

.testimonial-1::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.25), transparent 60%);
    opacity: 0.6;
}

.testimonial-1 .testimonial-text {
    position: relative;
    z-index: 2;
    font-size: 1.05rem;
    line-height: 1.8;
}

.testimonial-pic img {
    border: 2px solid rgba(255, 255, 255, 0.6);
}

.main-slider.style-two {
    position: relative;
}

.main-slider.style-two::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.65));
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 2;
}

.main-slider .tp-caption {
    z-index: 5 !important;
}

.main-slider .tp-caption a.site-button {
    position: relative;
    overflow: hidden;
}

.main-slider .tp-caption a.site-button::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.4s ease;
}

.main-slider .tp-caption a.site-button:hover::after {
    opacity: 1;
}

.floating-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.floating-scroll-indicator span {
    width: 2px;
    height: 48px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0));
    animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.7; }
    50% { transform: scaleY(0.5); opacity: 1; }
}

@media (max-width: 991.98px) {
    .status-marks {
        text-align: center;
    }
    .status-marks .status-value {
        justify-content: center;
    }
    .floating-scroll-indicator {
        display: none;
    }
    .hover-lift {
        box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
    }
}

@media (max-width: 767.98px) {
    .page-content {
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 251, 0.95));
    }
    .page-ambient span {
        display: none;
    }
    .testimonial-1 {
        padding: 1.75rem;
    }
    .status-marks {
        margin-bottom: 1.5rem;
    }
}
