                    /* 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;
}


                    /* 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: "";
}



/* ====== Kapcsolati oldal új dizájn ====== */

.contact-section {
  width: 100%;
  background-color: #f8f9fa;
  padding: 40px 0;
}

.contact-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  width: 90%;
  max-width: 1300px;
  margin: auto;
  flex-wrap: wrap;
}

.contact-info-side {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.contact-img {
  width: 100%;
  max-width: 700px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgb(150, 150, 150);
  margin-bottom: 10px;
}

.contact-details {
  background: #fff;
  padding: 20px;
  padding-top: 25px;
  padding-bottom: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgb(150, 150, 150);
  text-align: left;
}

.contact-details h2 {
  color: #0b73c4;
  margin-bottom: 10px;
}

.contact-details p {
  margin: 8px 0;
  color: #333;
}

.kapcsolat {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 40px;
  margin-bottom: 40px;
}

.kapcsolat_bal_oldal {
  width: 30%;
  text-align: left;
}

.kapcsolat_jobb_oldal {
  width: 70%;
}


.wrap {
  max-width: 800px;
  padding: 15px;
  padding-bottom: 25px;
  background:#fff;
  border-radius:8px;
  box-shadow: 0 4px 10px rgb(150, 150, 150);
}

    h1 {
      margin-top:0;
      color:#0b73c4
    }
    
    label {
      display:block;
      margin:12px 0 6px;
      font-weight:600
    }

.wrap input, 
.wrap textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d0d5da;
  border-radius: 6px;
  box-sizing:border-box;
  font-size: 14px;
  transition: 0.2s;
}

.wrap input:focus,
.wrap textarea:focus {
  border-color: #0b73c4;
  box-shadow: 0 0 0 3px rgba(11,115,196,0.1);
  outline: none;
}

       
    .note {
      font-size:13px;
      color:#666;
      margin-top:12px
    }

    .success,.error {
      padding:12px;
      border-radius:6px;
      margin-bottom:12px
    }

    .success {
      background:#e6f4ea;
      color:#14532d
    }

    .error {
      background:#fff0f0;
      color:#7b1d1d
    }

    .two-col {
      display:grid;
      grid-template-columns:1fr 1fr;
      gap:12px
    }

    .wrap button {
      height: 100%;
      background: #0b73c4;
      color: #fff;
      border: none;
      border-radius: 6px;
      padding: 10px 20px;
      font-size: 16px;
      cursor: pointer;
      transition: 0.3s;
}

    .wrap button:hover {
      background: #095da1;
      transform: translateY(-2px);
}

#message {
  height: 110px;
}

    @media(max-width:600px) {
      .two-col{grid-template-columns:1fr}
    }

/* --- A contact-info-side és a wrap azonos magasságú lesz asztali nézetben --- */
@media (min-width: 851px) {
  .contact-container {
    display: flex;
    align-items: stretch; /* ez teszi egyforma magasra a két oldalt */
  }

  .contact-info-side,
  .wrap {
    flex: 1; /* arányosan osztja a helyet */
  }

  /* Fontos: a contact-info-side belső tartalma ne zsugorodjon */
  .contact-info-side {
    display: flex;
    flex-direction: column;
  }

  /* A fehér doboz nyúljon le a teljes magasságig */
  .contact-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* A kép legyen a felső részen, de ne nyúljon túl */
  .contact-img {
    height: auto;
    max-height: 50%;
    object-fit: cover;
  }
}




  
/* --- Üzenet megjelenítése a gomb helyén --- */
    .form-actions {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: start;
    }

    #sendButton {
      transition: opacity 0.3s ease;
    }

    #messageBox {
      position: absolute;
      bottom: 0;
      text-align: center;
      width: 100%;
    }

    #messageBox .success,
    #messageBox .error {
      display: none;
      padding: 12px;
      border-radius: 6px;
      width: 100%;
      box-sizing: border-box;
      margin-top: 8px;
    }

    #messageBox.show .success,
    #messageBox.show .error {
      display: block;
      animation: fadeInOut 5s forwards;
    }

    #messageBox .success {
      background: #e6f4ea;
      color: #14532d;
    }

    #messageBox .error {
      background: #fff0f0;
      color: #7b1d1d;
    }

    @keyframes fadeInOut {
      0% { opacity: 0; transform: translateY(10px); }
      10%, 90% { opacity: 1; transform: translateY(0); }
      100% { opacity: 0; transform: translateY(-10px); }
    }




    /* Térkép */
.contact-map {
  width: 100%;
  max-width: 1300px;
  margin: auto;
  padding-top: 10px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgb(150, 150, 150);
}



  

    /* --- 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;
  }
}

