                    /* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
}


                    /* Navigáció */
header {
    background: #fff;
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 95%;
    margin: auto;
    padding: 10px;
}



                    /* Trenner logó + szöveg */
.trenner-brand {
    display: flex;
    align-items: center;   /* középvonalhoz igazítás */
}

.trenner-brand img {
    height: 35px;          
    display: block;
    margin-right: 10px;    /* <<< itt adjuk hozzá a távolságot */
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}


                    /* Szövegek a logó mellett */
.company-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 35px;
}

.company-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #0a7a28;
    line-height: 1.2;
}

.company-tagline {
    font-size: 0.85rem;
    color: #777;
    line-height: 1.2;
}


/* --- Mobilnézet: logó és szöveg arányosítása --- */
@media (max-width: 768px) {
  .trenner-brand img {
    height: 28px; /* kicsit kisebb logó */
  }

  .company-name {
    font-size: 0.7rem; /* arányosan kisebb cégnév */
  }

  .company-tagline {
    font-size: 0.7rem; /* kisebb tagline */
  }

  .trenner-brand {
    gap: 6px; /* kicsit szorosabb elrendezés */
  }
}


li {
    list-style: none;
  }

                    /* Menüpontok középen */
.nav-links {
    list-style: none;
    display: flex;
    flex: 1;
    justify-content: center;
}

.nav-links li a {
    text-decoration: none;
    color: #222;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: color 0.22s ease;
    padding: 20px 30px; /* fix érték, nem változik hoverkor */
    transition: background-color 0.2s ease;
}

.nav-links li a:hover {
    color: #0a7a28;
    background-color: #d6d5d5;
    color: #0a7a28;
}


                    /* Jobb oldali Kyocera logó */
.kyocera-logo img {
    height: 40px;
}

.kyocera-logo {
  position: relative; /* hogy a belső abszolút elem ehhez igazodjon */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -10px; /* 🔹 5px-el feljebb tolja a logót */
}

.kyocera-subtitle {
  position: absolute;
  bottom: -15px;            /* logó alá helyezi vizuálisan */
  font-size: 0.75rem;
  color: #555;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* --- Mobilon ne jelenjen meg, hogy ne torlódjon a menüvel --- */
@media (max-width: 850px) {
  .kyocera-subtitle {
    display: none;
  }
}




                    /* Dropdown menü */
.dropdown {
    position: relative;
}

.dropdown .dropbtn {
    cursor: pointer;
}


                    /* Lenyíló tartalom */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #414141;
    min-width: 350px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 4px;
    top: calc(100% + 15px); /* ← 20px-el lejjebb nyílik meg */
    left: 0;
    z-index: 999;
}

.dropdown-content li {
    list-style: none;
}

.dropdown-content li a {
    display: block;
    padding: 10px 60px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
}

.dropdown-content li a:hover {
    background-color: #ffffff;
    color: #0a7a28;
    border-radius: 10px;
     border: solid 2px #0a7a28;
}

                    
                    /* Egérrel rámenve lenyílik */
.dropdown:hover .dropdown-content {
    display: block;
}


                    /* Nyíl stílusa */
.dropdown .dropbtn::after {
    content: "";
}





                    /* Hero szekció szöveggel és gombbal */
.hero {
    position: relative;
    width: 100%;
    height: 55vh;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


                    /* Áttetsző sötét réteg a kép fölött */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2); /* 45%-os sötétítés */
    z-index: 1;
}


                    /* Szöveg és gomb */
.hero-content {
    width: 50%;
    background-color: rgb(80, 80, 80);
    background: rgba(0, 0, 0, 0.50); /* 45%-os sötétítés */
    height: 100%;
    padding: 10% 0% 10% 0%;
    position: absolute;
    top: 50%;
    left: 25%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: white;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
    z-index: 2; /* a sötét réteg fölött legyen */
}

.hero-button {
    display: inline-block;
    background-color: #0a7a28;
    color: #fff;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.hero-button:hover {
    background-color: #088124;
}

.fade-out {
  opacity: 0;
}

.felso_szoveg {
  font-size: 2rem;
}
.also_szoveg {
  font-size: 1.5rem;
}



                    /* Mobil nézet */
@media (max-width: 768px) {

.hero-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

.hero-content  {
        width: 90%;
        padding: auto;
        left: 50%;
        height: 80%;
        margin: auto;
    }

.felso_szoveg {
  font-size: 1.2rem;
    }

.also_szoveg {
  font-size: 0.8rem;
    }
}



                    /* Üzemeltetés szöveg */
.kozepso-resz {
  background-color: rgb(240, 240, 240);
  width: 100%;
  padding: 40px 0; /* ✅ ad egyenletes függőleges margót */
}

.about {
  max-width: 70%;
  margin: 0 auto;
  padding: 20px;
  text-align: justify;
}

.about h2 {
    font-size: 2rem;
    margin-bottom: 18px;
    color: #0a7a28;
}

.about p {
    font-size: 1.05rem;
    color: #333;
    line-height: 1.7;
}

.button {
 border: none;
  outline: 0;
  display: inline-block;
  color: white;
  background-color: #0a7a28;
  text-align: center;
  cursor: pointer;
  width: 10%;
  min-width: 150px;
  padding: 20px;
  font-size: 16px;
  font-weight: bold;
  border: solid 1px;
  border-radius: 4px;
}

.button:hover {
  color: #0a7a28;
  background-color: white;
}


                    /* Mobil optimalizálás */
@media (max-width: 768px) {
  .about {
    max-width: 95%;     /* ✅ szélesebb legyen mobilon */
    margin: 0 auto;     /* ✅ középre igazítás */
    padding: 15px;      /* ✅ kényelmesebb belső margó */
    text-align: center;   /* ✅ a justify helyett olvashatóbb mobilon */
  }
}



                   /* ---  Lábléc--- */

.footer_box {
    background-color: rgb(80, 80, 80);
    margin: auto;
    width: 100%;
    max-height: 400px;
  }

.footer_kozepe {
    max-width:1350px;
    height: 350px;
    background-color: rgb(80, 80, 80);
    text-align: justify;
    margin: auto;
    width: 100%;  
    padding-top: 20px;  
}


                /* ---  Lábléc - bal oldali rész /térkép/ --- */

.footer_kozepe_1 {
  float: left;
  width: 40%;
  height: auto;
  max-height: 400px;
  padding-top: 30px;
  background-color: rgb(80, 80, 80);
}
@media screen and (max-width: 850px) {
  .footer_kozepe_1 {
    width: 100%;
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: solid 1px rgb(160, 160, 160);
    height: auto;
  } 
}

.google-map {
 width: 100%;
 height: 250px;
}

.google-map iframe {
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;

}
@media screen and (max-width: 850px) {
  .google-map {
    width: 100%;
    display: block;    
  } 
}


                   /* ---  Lábléc - középső rész --- */

.footer_kozepe_2 {
  float: left;
  width:30%;
  height: auto;
  padding-top: 30px;
  padding-left: 40px;
  color: white;
  background-color: rgb(80, 80, 80);
  line-height: 1.4rem;
}
@media screen and (max-width: 850px) {
  .footer_kozepe_2 {
    width: 100%;
    display: block;
    padding-top: 20px;
    padding-bottom: 20px;
    padding-left: 20px;
    border-top: solid 1px;
  } 
}


               /* ---  Lábléc - jobb szélső rész--- */

.footer_kozepe_3 {
  float: left;
  width: 30%;
  height: auto;
  color: white;
  background-color: rgb(80, 80, 80);
}
@media screen and (max-width: 850px) {
  .footer_kozepe_3 {
    display: none;
  } 
}

.footer_menu {
  width: 60%;
  margin-left: 60px;
  padding-top: 20px;
  text-align: center;
  font-weight: bold;
}
@media screen and (max-width: 850px) {
  .footer_menu {
    width: 90%;
    margin:auto;
    display: block;      
  } 
  }
  
.footer_menu a {
  background-color: rgb(80, 80, 80) ;
  color: white;
  display: block;
  padding: 10px;
  text-decoration: none;
}

.footer_menu a:hover {
  background-color: white;
  color: #0a7a28;
  border: solid 1px;
  border-radius: 10px;
}


               /*--- Legalsó szöveg rész ---*/

.also_resz {
  float: left;
  width: 100%;
  height: 75px;
  padding-top: 20px;
  background-color: white;
  color: black;
  text-align: center;
  border-top: solid 1px rgb(160, 160, 160);
 }
 @media screen and (max-width: 850px) {
  .also_resz {
    width: 100%;
    height: auto;
    display: block;
    padding-top: 15px;
    padding-bottom: 15px;
    border-top: solid 1px rgb(160, 160, 160);
    font-size: 10px;
  } 
}



/* --- Mobil navigáció (hamburger menü) --- */

.hamburger {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: #0a7a28;
  user-select: none;
}

/* Mobilnézet szabályok */
@media (max-width: 850px) {
  .nav-menu {
    position: relative;
  }

  .hamburger {
    display: block;
  }

  .nav-links {
    display: none; /* alapból rejtve */
    flex-direction: column;
    background-color: #fff;
    position: absolute;
    top: 45px;
    left: 0;
    width: 100%;
    border-top: 1px solid #ddd;
    z-index: 999;
    padding: 10px 0;
  }

  .nav-links.active {
    display: flex; /* lenyílás után megjelenik */
  }

  .nav-links li {
    text-align: center;
    padding: 5px 0;
  }

  .nav-links li a {
    font-size: 1rem;
    display: block;
    width: 100%;
  }

  /* Dropdown belül mobilon */
  .dropdown-content {
    position: static;
    box-shadow: none;
  }

  .dropdown:hover .dropdown-content {
    display: none;
  }

  .dropdown .dropbtn:after {
    font-size: 0.8rem;
    margin-left: 5px;
  }

  .dropdown .dropbtn:active + .dropdown-content,
  .dropdown-content.active {
    display: block;
  }
}



@media (max-width: 850px) {

  /* --- NAVBAR új elrendezés --- */
  .navbar {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* minden balra igazítva */
    gap: 10px;
  }

  /* --- HAMBURGER a logó BAL oldalán --- */
  .hamburger {
    display: block;
    font-size: 28px;
    color: #0a7a28;
    cursor: pointer;
    user-select: none;
    margin-right: 8px; /* kis tér a logó előtt */
    z-index: 1001;
  }

  /* --- LENYÍLÓ MENÜ BAL OLDALRÓL --- */
  .nav-links {
    position: fixed;
    top: 60px; /* <<< ez a varázslat: lejjebb tolja a menüt kb. a logó alá */
    left: -100%;
    height: calc(100vh - 60px); /* így a teljes képernyő alatti rész marad látható */
    width: 75%;
    background-color: #fff;
    box-shadow: 2px 0 8px rgba(0,0,0,0.3);
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 20px;
    gap: 0px;
    transition: left 0.3s ease;
    z-index: 1000;
    overflow-y: auto; /* ha hosszú lenne a menü, lehessen görgetni */
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links.active {
    left: 0; /* innen csúszik be a logó mellől */
  }

  /* --- Alap stílus mobil menüben --- */
  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    font-size: 1rem;
    color: #222;
    display: block;
    padding: 10px 0;
    text-align: left;
    border-bottom: 1px solid #eee;
  }

  /* Kyocera logó elrejtése */
  .kyocera-logo {
    display: none;
  }
}

/* --- Finomhangolt mobilmenü elrendezés --- */
@media (max-width: 850px) {

  /* Főmenüpontok */
  .nav-links li a {
    font-size: 1rem;
   
    margin: auto;
    border-bottom: 1px solid #eee;
  }


  /* Szolgáltatások lenyíló menü pontjai */
  .dropdown-content li a {
    padding: 6px 10px;         /* szorosabb elrendezés */
    font-size: 0.95rem;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;          /* kicsit természetesebb mobilon */
    color: white;
  }


  /* A lenyíló lista kissé beljebb kerüljön vizuálisan */
  .dropdown-content {
    margin-top: 4px;
    margin-left: 10px;
  }

  /* Ha a mobilmenü aktív, tiltsuk le a hoveres megjelenítést */
  .nav-links.active .dropdown:hover .dropdown-content {
    display: block !important;
  }
}


@media (max-width: 850px) {
  .close-menu {
    text-align: right;
    border-bottom: 1px solid #ddd;
    padding: 10px 20px;
  }

  .close-arrow {
    font-size: 1rem;
    color: #0a7a28;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
  }

  .close-arrow:hover {
    color: #06641e;
  }
}

