img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.main-content {
    margin-left: 0;
    width: 100%;
    padding: 6rem 1.5rem 1.5rem 1.5rem;
    box-sizing: border-box;
}

main section {
    margin-bottom: 5rem;
}

/* GRID  */
.col1 {
    display: none;
}

.main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
}

.inner-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.2rem;
    grid-auto-flow: dense;
}

@media (min-width: 576px) {
    .inner-grid {
        grid-template-columns: 1fr 1fr;
    }
    .wide {
        grid-column: span 2;
    }
}

@media (min-width: 992px) {
    .col1 {
        display: block;
    }

    .col1 div {
        margin-bottom: 2.2rem;
    }

    .col1 div:last-of-type {
        margin-bottom: 0rem;
    }

    .main-grid {
        grid-template-columns: 1fr 2fr; 
    }
    .inner-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .wide {
        grid-column: span 2;
    }
}

.grid-item {
    background-color: #1A1D24;
    border: 1px solid #242936;
    border-radius: 8px;
    box-sizing: border-box;
    overflow: visible;
    display: flex;
    position: relative;
}

.grid-item::after, .quote-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 29, 36, 0.2);
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
    border-radius: 8px;
}

.grid-item.wide {
    border: none;
}

.grid-item::after {
    display: none;
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
    border-radius: 8px;
}

#whywe {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
}

.whywe-card {
    width: 100%;
    margin-left: 0;
}

@media (min-width: 992px) {
    #whywe {
        position: relative;
        overflow: hidden;
        padding-top: 5rem;
    }

    #whywe:before {
        content: "";
        position: absolute;
        top: 0;
        left: 300px;
        width: 2px;
        height: 150%;
        background: linear-gradient(to bottom, 
            rgba(148, 163, 184, 0) 0%, 
            rgba(148, 163, 184, 1) 15%, 
            rgba(148, 163, 184, 1) 45%, 
            rgba(148, 163, 184, 0) 75%
        );
        transform: rotate(15deg);
        transform-origin: top center;
        z-index: 1;
    }

    .whywe-card {
        position: relative;
        z-index: 2;
        width: calc(100% - 320px);
    }

    .whywe-card:nth-child(1) {
        margin-left: 320px;
        width: calc(100% - 320px);
    }

    .whywe-card:nth-child(2) {
        margin-left: 240px;
    }

    .whywe-card:nth-child(3) {
        margin-left: 160px;
    }
}

@media (min-width: 1270px) {
    #whywe:before {
        left: 540px;
        transform: rotate(38deg);
    }

    .whywe-card {
        width: calc(100% - 520px);
    }

    .whywe-card:nth-child(1) {
        margin-left: 520px;
        width: calc(100% - 520px);
    }

    .whywe-card:nth-child(2) {
        margin-left: 335px;
    }

    .whywe-card:nth-child(3) {
        margin-left: 120px;
    }
}

#quote {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.quote-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

#motto {
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.quote-txt {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.quote-txt h4, .quote-txt p:nth-child(2) {
    align-self: flex-start;
    text-align: left;
    width: 100%;
}

.quote-txt div {
    width: 100%;
    margin-left: auto; 
    text-align: right;
}

@media (min-width: 992px) {
    #quote {
        flex-direction: row;
        align-items: stretch;
        gap:2.2rem;
    }

    .quote-img,
    .quote-txt {
        flex: 1;
        width: 50%;
    }

    .quote-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .split-text-box {
        display: flex;
        flex-direction: column;
        justify-content: left;
    }
}

.footer-container {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.footer-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(to bottom, rgba(148, 163, 184, 1), rgba(148, 163, 184, 0));
}

.footer-links {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.2rem; 
}

.footer-copyright {
    display: flex;
    align-items: center;
    text-align: right;
}

@media (max-width: 576px) {
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .footer-links {
        justify-content: center;
    }
}

.services-section {
    box-sizing: border-box;  
    width: 100%;             
}

.services-section .services-header {
    margin-bottom: 3rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.2rem;
    width: 100%;
    box-sizing: border-box;
}

.service-card {
    background-color: #1a1a1a;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.card-icon {
    width: 48px;
    height: 48px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: background-image 0.3s ease; /* Ikon átszíneződés animációja */
}

.service-card:hover {
    transform: translateY(-5px); /* Finoman megemelkedik */
    border-color: rgba(254, 190, 51, 0.4); /* Sárga derengés a szélén */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

.service-card h4,
.service-card .card-icon,
.service-card img {
    pointer-events: none; 
}

@media (min-width: 576px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        width: 100%;
    }
}

.services-electrical {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /*padding: 4rem 0;*/
    width: 100%;
    box-sizing: border-box;
}

.services-electrical-img {
    width: 100%;
}

.services-electrical-img img {
    width: 100%;
    height: 300px; /* Mobilon fix magasság a képnek */
    object-fit: cover;
    border-radius: 8px;
}

.services-electrical,
.services-inspection {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 4rem;
    width: 100%;
    box-sizing: border-box;
}

.services-electrical-txt,
.services-inspection-txt {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
}

.electrical-content p, .electrical-content li, .inspection-content p, .inspection-content li {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.electrical-content p {
    font-weight: 500;
    color: #ffffff;
}

.electrical-content li, .inspection-content li {
    position: relative;
    padding-left: 1.5rem;
}

.electrical-content li::before, .inspection-content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background-color: #febe33;
    border-radius: 2px;
}

.services-electrical-img,
.services-inspection-img {
    display: none;
    width: 100%;
}

.services-electrical-img img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
}

/*@media (min-width: 992px) {
    .services-electrical,
    .services-inspection {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .services-electrical-txt,
    .services-inspection-txt {
        width: 100%;
    }
}*/

@media (min-width: 1300px) {
    
    .services-electrical-img,
    .services-inspection-img {
        display: block;
    }

    .services-electrical,
    .services-inspection {
        flex-direction: row;
        gap: 4rem;
        align-items: flex-start;
    }

    .services-electrical {
        align-items: stretch;
    }

    .services-electrical-txt,
    .services-electrical-img,
    .services-inspection-txt,
    .services-inspection-img {
        flex: 1;
        width: 50%;
    }

    .services-electrical-txt,
    .services-inspection-txt {
        justify-content: center;
    }

    .services-electrical-img img {
        height: 100%;
    }

    .services-inspection-img {
        background-color: #1a1a1a;
        border: 1px solid rgba(148, 163, 184, 0.1);
        border-radius: 8px;
        padding: 2.5rem 2rem;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: center;
        text-align: left;
    }

    .services-inspection-img p {
        margin-bottom: 1rem;
        font-style: italic;
        font-weight: 300;
    }

    .services-inspection-img p:last-of-type {
        margin-bottom: 0rem;
    }
}

.imprint-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.imprint-box h4 {
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.imprint-list li {
    line-height: 1.6;
    margin-bottom: 0.8rem;
}

.imprint-list strong {
    color: #ffffff; /* A címkék legyenek tiszta fehérek a jobb olvashatóságért */
    font-weight: 500;
}

@media (min-width: 768px) {
    .main-content {
        margin-left: 30%;
        width: 70%;
        padding: 4rem;
    }
}

@media (min-width: 992px) {
    .services-electrical {
        flex-direction: row;
        align-items: stretch;
        gap: 3rem;
    }

    .services-electrical-txt,
    .services-electrical-img {
        flex: 1;
        width: 50%;
    }

    .services-electrical-txt {
        justify-content: center;
    }

    .services-electrical-img img {
        height: 100%;
        border-radius: 8px;
    }
}

@media (min-width: 1600px) {
    .main-content {
        margin-left: 480px;
        width: calc(100% - 480px);
    }
}