                     /* 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: 1300px) {
  .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.6rem; /* kisebb tagline */
  }

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


/* --- 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.6rem; /* 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;
}

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

  .kyocera-subtitle {
    font-size: 0.6rem; /* arányosan kisebb cégnév */
  }  
}

/* --- 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;
    }
}


                    /* Kellékanyag értékesítés leírás */

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


/* --- Kereső box stílus --- */
.filter-section {
  background-color: #f4f4f4;
  padding: 30px;
  margin: 40px auto;
  max-width: 1000px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-section h2 {
  text-align: center;
  color: #0a7a28;
  margin-bottom: 20px;
}

.filter-box {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter-box label {
  font-weight: bold;
  color: #333;
}

#manufacturerSelect {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  background-color: #fff;
  cursor: pointer;
}


.filter-box input {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}


#offerButton{
  margin-left: 5%;
}

#results {
  margin-top: 25px;
}


/* === Stabil, kis jelölőoszlop + teljes szélességű táblázat === */
#results table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;      /* <-- EZ KELL: a böngésző nem a tartalomhoz igazítja az oszlopokat */
  overflow-x: auto;        /* ha nagyon keskeny a képernyő, görgethető marad */
}

/* alap cella-stílus (nincs width:10%!) */
#results th, #results td {
  border: 1px solid #ccc;
  padding: 10px;
  text-align: left;
  word-wrap: break-word;       /* hosszú szavakat törjön */
  overflow-wrap: break-word;
  white-space: normal;         /* engedjük a törést */
}

/* FIX keskeny jelölő oszlop — !important, hogy semmi mást ne írjon felül */
#results th:first-child,
#results td:first-child {
  width: 40px !important;
  min-width: 40px !important;
  max-width: 40px !important;
  padding: 0;
  text-align: center;
  vertical-align: middle;
}

#results td.select-cell,
#results th:first-child {
    vertical-align: top !important;
}

#results td.select-cell .checkmark {
    margin-top: 13px;
}

#results th:first-child {
    vertical-align: middle !important;
}

#selectAll {
    margin-top: 8px;  /* vagy 8px, ha még lejjebb szeretnéd */
}




/* kijelölő cella és pipa */
.select-cell { 
  padding: 0;
  cursor: pointer;
}
.checkmark { 
  width: 18px;
  height: 18px;
  border: 2px solid #0a7a28;
  border-radius: 4px;
  display:inline-block;
  position:relative;
}

.select-cell.checked .checkmark { 
  background-color: #0a7a28;
}

.select-cell.checked .checkmark::after {
    content: "✔";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-20%, 10%);
    font-size: 15px;
    color: white;
    font-weight: bold;
    line-height: 1;
}



/* --- Javított táblázat szélesség és jelölő oszlop --- */

/* A táblázat mindig legyen teljes szélességű */
#results table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto; 
}

#results th, #results td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: left;
}

/* KESKENY jelölő oszlop – fix, stabil, nem tágul */
#results th:first-child,
#results td:first-child {
    width: 40px;
    min-width: 40px;
    max-width: 40px;
    padding: 0;
    text-align: center;
}

/* Jelölő cella */
.select-cell {
    width: 40px;
    text-align: center;
    cursor: pointer;
    padding: 0;
}

/* Jelölő négyzet */
.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #0a7a28;
    border-radius: 4px;
    display: inline-block;
    position: relative;
}

/* Pipa megjelenése */
.select-cell.checked .checkmark {
    background-color: #0a7a28;
}

.select-cell.checked .checkmark::after {
    content: "✔";
    position: absolute;
    top: -3px;
    left: 3px;
    font-size: 17px;
    color: white;
    font-weight: bold;
}

/* Fejléc pipája ugyanúgy nézzen ki, mint a sorokban */
#selectAll {
    width: 18px;
    height: 18px;
    border: 2px solid #0a7a28;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    cursor: pointer;
}

/* Ha kijelölt — ugyanaz a zöld háttér */
#selectAll.checked {
    background-color: #0a7a28;
}

/* A fehér pipa megjelenítése a fejlécben */
#selectAll.checked::after {
    content: "✔";
    position: absolute;
    transform: translate(-20%, -10%);
    top: -3px;
    left: 3px;
    font-size: 17px;
    color: white;
    font-weight: bold;
}


/* Az "Árajánlat kérés" gomb alapból láthatatlan */
#offerButton {
    display: none;
}



/* --- Színjelölő ikon a toner nevek előtt --- */
.color-indicator {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
}

/* ⚫ Fekete–szürke átmenet */
.color-indicator.blackgrey {
  background: linear-gradient(135deg, #000, #777);
}

/* 🔵 Kék */
.color-indicator.blue {
  background-color: #007BFF;
}

/* 🟣 Magenta */
.color-indicator.magenta {
  background-color: #d0006f;
}

/* 🟡 Sárga */
.color-indicator.yellow {
  background-color: #FFD700;
}

/* 🌈 Színes – élénk, fix szivárványcsíkos */
.color-indicator.rainbow {
  background: linear-gradient(
    135deg,
    red 20%,
    orange 35%,
    yellow 50%,
    green 65%,
    rgb(0, 110, 255) 75%,
    indigo 85%,
    violet 100%
  );
}


 table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
  }

  th, td {
    border: 1px solid #ccc;
    padding: 8px;
    vertical-align: top; /* ✅ Mindig a tetején legyen a szöveg */
    text-align: left;
  }

  th {
    background-color: #f0f0f0;
  }

  .result-count {
    font-weight: bold;
    margin-top: 1rem;
  }





.about {
  display: flex;
  justify-content: center;
  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: 20%;
  min-width: 150px;
  padding: 20px;
  font-size: 16px;
  font-weight: bold;
  border: solid 1px;
  border-radius: 4px;
}

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


* {
  box-sizing: border-box;
}

/* 1️⃣ Gyártói logók – rugalmas tördelés */
.row {
  display: flex;
  flex-wrap: wrap; /* ✅ így a képek új sorba törnek */
  justify-content: center;
}

.column {
  flex: 1 1 120px; /* ✅ minimum szélesség, utána törik */
  text-align: center;
}

.column img {
    height: 35px;
}


                    /* 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 */
  }

  .column img {
    height: 20px; /* ✅ kisebb képméret 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: 1200px) {

  /* --- 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;
  }
}



/* 2️⃣ Kereső gombok – rugalmas elrendezés */
.button-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;   /* ✅ BALRA IGAZÍTÁS */
  gap: 10px;
}

.filter-box button {
  width: 100%;
  max-width: 300px;
  margin: 5px 0;      /* balra igazodót ad */
  display: inline-block; 
  font-size: 16px;
  background-color: #0a7a28;
  color: white;
  border: none;
  padding: 12px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
}

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

/* 4️⃣ Általános mobil optimalizálás */
@media (max-width: 768px) {
  .filter-box button {
    width: 100%;
    margin: auto;
  }
  #offerButton {
  margin: auto;
}
  }




/* 4️⃣ Általános mobil optimalizálás */
@media (max-width: 768px) {
  .filter-section {
    padding: 20px;
    margin: 20px 10px;
  }

#results th, #results td {
  font-size: 12px;
}

  .about {
    flex-direction: column;
    align-items: center;
  }

  .kereso_link_button {
    width: 100%;
    max-width: 300px;
  }

  #kereso_mezo {
    padding: 0px;
  }
}


/* 5️⃣ Hero szekció mobil finomhangolás */
@media (max-width: 600px) {
  .hero-content {
    width: 90%;
    padding: 15px;
  }
  .felso_szoveg {
    font-size: 1rem;
  }
  .also_szoveg {
    font-size: 0.8rem;
  }
  .hero-button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }
}

/* --- Kompatibilis nyomtatók megjelenítése --- */
.printer-list {
  max-width: 100%;
  line-height: 1.4;
}

.show-more, .show-less {
  color: #0a7a28;
  cursor: pointer;
  font-weight: bold;
  text-decoration: underline;
}

.show-more:hover, .show-less:hover {
  color: #088124;
}
