* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
 

}

body {
  margin: 0;
  font-family: Arial, sans-serif;

}

/* Alap nav és menu */
nav {
    background: #20412E;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.menu > li {
    position: relative; /* szülő li pozíciója fontos az első szinthez */
}

.menu > li > a {
    display: block;
    font-size: 13px;
    padding: 16px 15px;
    color: white;
    text-decoration: none;
    background: #20412E;
    transition: background 0.3s;
}

.menu > li > a:hover {
    background: #193123;
}

/* Almenük */
.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    position: absolute;
    background: #20412E;
    min-width: 200px;
    z-index: 1000;
}

/* Első szint: a szülő li alá */
.menu > li > .submenu {
    top: 100%;
    left: 0;
}

/* Második és további szintek: a szülő li tetejéhez jobbra */
.menu > li > .submenu li {
    position: relative; /* minden szülő li kell a következő szinthez */
}

.menu > li > .submenu li > .submenu {
    top: 0;
    left: 100%;
}

/* Almenü linkek */
.submenu li a {
    padding: 10px;
    display: block;
    color: white;
    text-decoration: none;
}

.submenu li a:hover {
    background: #193123;
}

/* Desktop hover */
@media(min-width:768px){
    .menu > li:hover > .submenu {
        display: block;
    }
    .menu > li > .submenu li:hover > .submenu {
        display: block;
    }
}

/* Hamburger (mobil) */
.hamburger {
    display: none;
    padding: 15px;
    font-size: 24px;
    cursor: pointer;
}

@media(max-width:768px){
    .menu {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    .menu.active { display: flex; }
    .menu li a { padding: 15px; background: #20412E; }
    .submenu {
        position: static;
        background: #222;
    }
    .submenu li a { padding-left: 30px; }
    .submenu .submenu li a { padding-left: 50px; }
    .submenu.active { display: block; }
    .hamburger { display: block; }
}


.logoimg{

  position: absolute;
  left: 0;
  top: 10%;
  width: 150px;
  animation: fadeIn 2s ease-in-out forwards;
}



.home {
  position: relative; /* Szülő elem legyen relative */
  width: 100%;
  min-height: 70vh;
  background-color: #20412E;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  overflow: hidden; /* Megakadályozza a túlcsordulást */
}

.home h1 {
  font-size: clamp(32px, 8vw, 100px);
  position: absolute;
  white-space: nowrap; /* Megakadályozza a sortörést */
  left: 50%;
  transform: translateX(-50%); /* Vízszintes középre igazítás */
  top: 88%; /* Függőleges középre is */
  transform: translate(-50%, -50%); /* Mindkét irányban középre */
  margin: 0;
  padding: 0 20px; /* Biztonsági tér oldalanként */
  text-align: center;
  z-index: 1;
  animation: h1fadeIn 2s ease-in-out forwards;
}

.img2 {
  width: 50%;
  max-width: 600px; /* Max szélesség nagy képernyőkön */
  min-width: 300px; /* Min szélesség kis képernyőkön */
  animation: fadeIn 2s ease-in-out forwards;
}


@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(-50%);}
  100% { opacity: 1; }
}

@keyframes h1fadeIn {
  0% { opacity: 0; transform: translateX(-50%);}
  100% { opacity: 1; }
}


.about {
  width: 100%;
  min-height: 40vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 3%;
  position: relative;
  text-align: justify;
  flex-wrap: wrap;
}

.aboutimg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.aboutimg a {
  font-size: 18px;
  color: black;
  text-decoration: none;
  margin-bottom: 5%;
}

.aboutszov {
  width: 50%;
  transform: translateX(-10%);
}

.about h2 {
  margin-bottom: 2%;
  text-align: center;
}

strong {
  display: block;
  margin: 1rem auto;
}

.abouttext {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.name {
  margin: 3% auto 0 auto;
  text-align: center;
}

/* --------- Reszponzív 980px alatt --------- */
@media screen and (max-width: 980px) {
  .about {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5% 3%;
  }

  .aboutszov {
    width: 90%;
    transform: none;
    margin: 0 auto;
    text-align: justify;
  }

  .aboutimg {
    width: 100%;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .aboutimg a {
    font-size: 16px;
  }

  strong {
    transform: none;
    margin: 1rem auto;
    text-align: center;
  }

  .abouttext {
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  .logoimg {
    width: 100px;
    margin: 1rem auto;
    display: block;
  }
}

/* --------- További finomhangolás 550px alatt --------- */
@media screen and (max-width: 550px) {
  .logoimg {
    width: 80px;
  }

  .aboutimg a {
    font-size: 15px;
  }

  .about h2 {
    font-size: 1.5rem;
  }

  .aboutszov {
    width: 95%;
    text-align: left;
  }
}


.services {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center; /* itt a varázs: középre az utolsó sor is */
  background: #f9f9f9;
  padding: 5% 20%;
}

.service {
  flex: 0 1 250px; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: white;
  border-radius: 8px;
  padding: 15px;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08); /* finom alap árnyék */
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 250px;
}

.service img {
  max-width: 70px;
  height: auto;
  margin-bottom: 10px;
}

.service p {
  margin: 0;
  font-size: 16px;
  text-align: center;
}

.service:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

/* Tablet nézet: 2 oszlop */
@media (max-width: 900px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobil nézet: 1 oszlop */
@media (max-width: 600px) {
  .services {
    grid-template-columns: 1fr;
  }
}


.jump-animation {
  animation: jump 0.4s ease forwards;
}

@keyframes jump {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-15px); }
  100% { transform: translateY(0); }
}



.kornypic{

  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 50vh;
  margin-bottom: -5%;
}

.kornypic img{

  width: 100%;
  max-height: 50vh;
  object-fit: cover;
  margin-bottom: 1%;

}




.textsec{

 text-align: justify;
  padding: 5% 5%;
}

.textsec p{

  margin-bottom: 1%;
}

.textsec h3{

  margin-bottom: 1%;
}

@media screen and (max-width: 550px){

  .textsec h3{

    font-size: 1rem;
  }
    .textsec{

     text-align: left;
    }

}

.textsec h2{

  margin-bottom: 1%;
}

.textsec ul {
  list-style: none;
  padding-left: 3%; /* hogy ne legyen felesleges beljebb tolás */
  margin-bottom: 1%;

}

.textsec ul li {
  position: relative;
  padding-left: 25px; /* hely a pipa előtt */
}

.textsec ul li::before {

  content: "✔"; /* pipa karakter */
  position: absolute;
  left: 0;
  color: green; /* pipa színe */
  font-weight: bold;
}


h3 a{

  text-decoration: none;
  color: black;
  cursor: pointer;
}

li a{

  text-decoration: none;
  color: black;
  cursor: pointer;
}

.sectext2{

  background-color: #E3EDD5;
}

.sectext3{

  background-color: #C9E4BB;
}

.sectext3 p{

  margin-top: 2%;
}

.sectext4{

  background-color: #E2F0DF;
}

.sectext5{

  background-color: #CEE59D;
}

.sectext6{

  background-color: #C0D998;
}

.sectext7{

  background-color: #336043;
}

.sectext8{

  background-color: #5e6145;
}



.contact{

  padding: 2rem;
  font-family: Arial, sans-serif;
  max-width: 100%;
  margin: auto;
  margin-top: 1%;
  text-align: center;
}



footer{

  justify-content:center;
  text-align: center;
}





/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  background: #20412E;
  color: #ffffff;
  border-radius: 10px;
  padding: 14px;
  z-index: 2000;
  box-shadow: 0 8px 30px rgba(0,0,0,0.35);
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .28s ease, transform .28s ease;
}

/* show class toggles visibility */
.cookie-banner.show {
  opacity: 1;
  transform: translateY(0);
}

/* text area */
.cookie-banner .cb-text {
  flex: 1 1 260px;
  min-width: 200px;
}

/* actions */
.cookie-banner .cb-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: 8px;
}

/* buttons */
.cookie-btn {
  border: 1px solid rgba(255,255,255,0.12);
  background: transparent;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.cookie-btn:focus { outline: 2px solid #9fcfb1; outline-offset: 3px; }

/* primary */
.cookie-btn.accept {
  background: #8cc08a;
  color: #0f2d14;
  border: none;
}

/* secondary */
.cookie-btn.decline {
  background: transparent;
}

/* small manage link */
.cookie-manage {
  position: fixed;
  right: 1rem;
  bottom: 5.4rem; /* above banner */
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 2000;
  cursor: pointer;
  display: none;
}
.cookie-manage.show { display: inline-block; }

@media (max-width: 600px) {
  .cookie-banner { left: 0.6rem; right: 0.6rem; padding: 12px; font-size: 13px; }
  .cookie-banner .cb-actions { width: 100%; justify-content: flex-end; margin-top: 6px; }
  .cookie-manage { right: 0.6rem; bottom: 6.8rem; }
}
