* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

header {
    background-color: #0a2540;
    color: white;
    padding: 15px 0;
}

footer{
    background-color: #0a2540;
}


.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    background: #00aaff;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
}

.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
                url('https://images.unsplash.com/photo-1581091215367-59ab6b4b4a1f');
    background-size: cover;
    color: white;
    text-align: center;
    padding: 100px 0;
}

.services {
    padding: 50px 0;
    text-align: center;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    text-align: left;
}

.about {
    background: #e6f7ff;
    padding: 50px 0;
    text-align: center;
}

.gallery {
    padding: 50px 0;
}

.img-box {
    background: #ccc;
    height: 200px;
    border-radius: 10px;
}

.contact {
    background: #0a2540;
    color: white;
    padding: 50px 0;
}

form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

input, textarea {
    padding: 10px;
    border: none;
    border-radius: 5px;
}

.hatekony{
    margin-bottom: 30px;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.card-header h3 {
    flex: 1;
}

.more-text {
    font-size: 0.9rem;
    color: #555;
}

.toggle-area {
    position: relative;
    margin-top: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    color: #111;
    cursor: pointer;
    user-select: none;
}

.card {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    text-align: left;
    padding-bottom: 35px;
}

.reszlet{
    border-bottom: 2px solid white;
    margin-bottom: 5px;
}
.arrow {
    transition: transform 0.3s ease;
    display: inline-block;
}
.card.active .arrow {
    transform: rotate(180deg);
}

.details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    margin-top: 10px;
}

.details p {
    padding: 5px 0;
    background: transparent; /* ne legyen kék */
}


.hero {
    position: relative;
    background-image: url('galeries/kuttisztitas.png');
    background-position: center center;
    background-size: contain; /* nagyobb felbontáson minden kép rész látszik */
    background-repeat: no-repeat;
    height: 60vh;
    min-height: 300px;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: 30px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
}

footer {
    text-align: center;
    padding: 20px;
    background: #111;
    color: white;
}




@media(max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        height: 100vh; /* telefonon teljes magasság */
        min-height: auto;
        padding: 0;
        background-size: cover; /* ne legyen semmi üres tér */
        background-position: center center;
        margin-top: 0;
    }
}

@media(min-width: 769px) {
    .hero {
        height: 60vh; /* nagyobb felbontáson rövidebb */
        background-size: contain; /* teljes kép legyen benne */
        background-position: center center;
    }
}

.site-title {
    font-size: 1.8rem;
}

/* Elérhetőségek alap */
.contacts p {
    margin: 5px 0;
}

/* Mobil nézet */
@media(max-width: 768px) {

    /* Cím kisebb */
    .site-title {
        font-size: 1.2rem;
        border-bottom: 1px solid white;
    }

    /* Header egymás alá rendezése */
    .nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

   

    /* Email + telefonszám egy sorban */
    .contact-row {
        display: flex;
        flex-wrap: nowrap;
        gap: 5px;
        font-size: 0.9rem;
    }

    .contact-row span {
        font-weight: bold;
    }

    /* Elérhetőségek cím kisebb */
    .contacts h2 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
}

@media(min-width: 769px) {
    .grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
        align-items: start;
    }

    /* Ha a Kúttisztítás kártya aktív, legyen teljes szélesség */
    #mainCard.active {
        grid-column: 1 / -1; /* teljes sor */
        z-index: 10; /* hogy felül legyen a többi */
    }

    /* A lenyíló rész sorkizárt */
    #mainCard.active .details {
        text-align: justify;
    }
}

/* Galéria rács */
.gallery .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

/* Minden kép doboz egyforma méretű */
.gallery .img-box {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
}

/* A képek kitöltik a dobozt, nem torzulnak */
.gallery .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

/* Szép hover effekt */
.gallery .img-box img:hover {
    transform: scale(1.05);
}

#scrollTopBtn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: none; /* alapból rejtett */
    background-color: #00aaff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    color: black;
}

#scrollTopBtn:hover {
    transform: scale(1.1);
    
}

.gombok {
    display: flex;
    flex-wrap: wrap; /* mobilon is szépen törik */
    justify-content: center;
    gap: 30px; /* kis távolság a gombok között */
    margin-top: 25px;
    width: 100%;
}

.gombok .btn {
    flex: 1 1 200px; /* rugalmas szélesség, min 200px */
    max-width: 300px; /* ne legyen túl nagy */
    text-align: center;
    padding: 14px;
    box-sizing: border-box;
}

/* Mobil optimalizálás */
@media(max-width: 768px) {
    .gombok {
        flex-direction: column; /* egymás alatt */
        align-items: center;
    }

    .gombok .btn {
        width: 90%; /* szépen kitölti a konténert */
        max-width: 300px;
        text-align: center;
    }
}

/* Nagyobb kijelző */
@media(min-width: 769px) {
    .gombok {
        flex-direction: row;
        justify-content: center;
    }

    .gombok .btn {
        width: auto; /* visszaáll az automatikus szélesség */
    }
}