body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 0;
    color: #333;
    position: relative;
    background: #dcdce4; /* Egységes háttérszín a többi oldallal */
}

/* Háttérkép CSAK akkor, ha nincs speciális oldalosztály */
body:not(.services-page):not(.munkaink-page):not(.devices-page):not(.contact-page):not(.home-page) {
    background-image: url('background.jpeg');
    background-size: cover;
    background-position: center 70%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.home-page,
body.services-page,
body.munkaink-page,
body.devices-page,
body.contact-page {
    background: #dcdce4;
    color: #333;
    min-height: 100vh;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 0 0 10px 10px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    font-weight: 600;
    padding: 20px;
}

nav a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
}

nav a:hover {
    text-decoration: underline;
}

.contact-info {
    display: flex;
    gap: 15px;
}

.contact-info a {
    color: #007BFF;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

section {
    padding: 20px;
    background: none !important;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

#home {
    min-height: 50vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    text-align: center;
    padding: 20px;
}

.hero-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    background: transparent;
}

.hero-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.hero-slogan {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin: 0;
}

.centered-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 30px 15px;
    margin-top: 20px;
}

.centered-contact h2 {
    margin-bottom: 20px;
}

.contact-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(90deg, #007BFF, #00C4FF);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
}

.contact-button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #0056b3, #0099cc);
}

.services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
    text-align: center;
}

footer {
    text-align: center;
    padding: 20px;
    background: transparent;
    color: #000000;
}

.back-arrow {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #007BFF;
    color: white;
    padding: 5px 8px;
    font-size: 12px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.back-arrow:hover {
    background: #0056b3;
}

.contact-info-large {
    text-align: right;
    margin-top: 60px;
    font-size: 20px;
    color: #000;
    padding-right: 20px;
}

.contact-info-large a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    font-size: 22px;
}

.contact-info-large a:hover {
    text-decoration: underline;
}

.gallery {
    display: block; /* Egységes doboz */
    padding: 20px;
    text-align: center;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-img {
    width: 100%;
    max-width: 200px;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: white;
    font-size: 30px;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}

.lightbox-close {
    top: 10px;
    right: 20px;
}

.lightbox-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
    color: #333;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
    margin: 15px 0 10px;
    font-size: 18px;
    color: #007BFF;
}

.service-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.climate-section {
    margin: 20px 0;
    padding: 20px;
    text-align: center;
}

.climate-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 18px;
    background: linear-gradient(90deg, #007BFF, #00C4FF);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, background 0.2s;
    text-decoration: none;
    margin-bottom: 20px;
}

.climate-button:hover {
    transform: scale(1.05);
    background: linear-gradient(90deg, #0056b3, #0099cc);
}

.climate-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.climate-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    color: #333;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
}

.climate-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.climate-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.climate-card h3 {
    margin: 15px 0 10px;
    font-size: 18px;
    color: #007BFF;
    transition: opacity 0.3s ease;
}

.climate-card p {
    margin: 0 15px 15px;
    font-size: 14px;
    transition: opacity 0.3s ease;
}

.climate-card .price {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(100, 100, 100, 0.9);
    padding: 12px 20px;
    font-size: 18px;
    border-radius: 10px;
    font-weight: bold;
    color: #ffffff;
    z-index: 1;
    text-align: center;
    line-height: 1.4;
}

.climate-card .price::after {
    content: ' (Az ár tartalmazza a beszerelést)';
    display: block;
    font-size: 12px;
    font-weight: normal;
    margin-top: 6px;
    color: #ffffff;
}

.climate-card.dimmed {
    filter: grayscale(100%) brightness(70%);
}

.climate-card.dimmed p,
.climate-card.dimmed h3 {
    opacity: 0;
}

.climate-card.dimmed .price {
    display: block;
}

.about-images {
    padding: 20px;
    text-align: center;
}

.image-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.about-img {
    width: 100%;
    max-width: 250px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.about-img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.contact-section {
    position: static;
    margin: 40px auto;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
    font-size: 24px;
    margin: 10px 0;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    color: #333;
}

.contact-item i {
    font-size: 24px;
    color: #007BFF;
}

.contact-item a {
    color: #007BFF;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .services-grid,
    .climate-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .services-grid,
    .climate-grid {
        grid-template-columns: 1fr;
    }
    .hero-logo {
        max-width: 180px;
    }
    .hero-slogan {
        font-size: 18px;
    }
    nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    nav a {
        flex: 0 0 100%;
        text-align: left;
    }
    nav a:nth-child(1),
    nav a:nth-child(2) {
        order: 1;
    }
    nav a:nth-child(3),
    nav a:nth-child(4) {
        order: 2;
    }
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px;
    }
    .contact-info {
        flex-direction: column;
        align-items: flex-start;
        margin-top: 10px;
        font-size: 14px;
    }
    .contact-info a {
        font-size: 14px;
    }
    .contact-info-large {
        font-size: 16px;
        padding-right: 15px;
        text-align: center;
        margin-top: 30px;
    }
    .contact-info-large a {
        font-size: 18px;
    }
    .gallery-container {
        flex-direction: column;
        align-items: center;
    }
    .gallery-img {
        max-width: 150px;
        height: 120px;
    }
    .about-img {
        max-width: 200px;
        height: 150px;
    }
    .climate-card img,
    .service-card img {
        height: 150px;
    }
    .climate-card h3,
    .service-card h3 {
        font-size: 16px;
    }
    .climate-card p {
        font-size: 13px;
    }
    .climate-card .price {
        font-size: 16px;
        padding: 10px 15px;
    }
    .climate-card .price::after {
        font-size: 11px;
    }
    .contact-button,
    .climate-button {
        padding: 10px 20px;
        font-size: 14px;
    }
    .centered-contact {
        padding: 20px 10px;
    }
    .contact-section {
        margin: 20px auto;
        padding: 20px;
        max-width: 100%;
    }
    .contact-section h2 {
        font-size: 20px;
    }
    .contact-item {
        font-size: 16px;
    }
    .contact-item i {
        font-size: 20px;
    }
}