/* Alap beállítások */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0 0 60px;  /* hely a láblécnek */
  background-color: #f9f9f9;
}


/* Fejléc (header) – marad fent */
header {
  background-color: #d71920;
  color: white;
  text-align: center;
  padding: 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Kiemelt tartalom (company-info) */
.company-info {
  max-width: 800px; /* Maximális szélesség */
  margin: 0 auto;   /* Középre igazítja az elemet */
  text-align: left; /* Szöveg balra igazítása belül */
  line-height: 1.6; /* Könnyebb olvashatóság */
  padding: 20px; /* Extra tér a szöveg körül */
  background-color: #f0f0f0; /* Háttérszín */
  border-left: 5px solid #d71920; /* Bal oldali szín kiemelés */
  border-radius: 10px; /* Lekerekített sarkok */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Árnyék a szöveg körül */
}

/* Kiemelt címsorok stílusa (h2 és h1) */
.company-info h2, .company-info h1 {
  color: #d71920; /* Kiemelt címek színe */
  font-size: 1.5em; /* Nagyobb betűméret */
  font-weight: bold; /* Félkövér betűtípus */
  margin-bottom: 10px; /* Kisebb távolság a következő elemtől */
}


/* Logo és üdvözlő szöveg */
.logo img {
  width: 150px;
}
.welcome-text {
  font-size: 1.2em;
  margin-top: 10px;
}

/* Menüsáv – mindig a fejléc alatt ragad */
.navbar {
  background-color: black;
  padding: 12px 0;
  position: sticky;
  top: 0;  /* közvetlenül a viewport tetejéhez ragad, miután a header elcsúszott */
  z-index: 999;
}

/* Menű elemek */
.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
}
.nav-links li {
  margin: 0 15px;
}
.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
}

/* Fő tartalom */
main {
  padding: 20px;
}
.content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}

/* Oldalsó képek */
.side-image img {
  width: 250px;
  height: auto;
  border-radius: 8px;
}

/* Fő szöveg blokk */
.main-content {
  flex: 1 1 300px;
  max-width: 600px;
}

/* Szolgáltatások listázása (index) */
.leistungen ul {
  list-style: none;
  padding: 0;
}
.leistungen ul li {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.leistungen ul li img {
  width: 24px;
  height: 24px;
  margin-right: 8px;
}
/* Kapcsolat oldal stílusai */
.contact-info,
.contact-form {
  background-color: #fff;
  border-radius: 15px;
  padding: 15px;
  margin: 15px auto;
  max-width: 500px; /* 50%-os helyett 500px */
  width: 100%; /* Biztosítja, hogy ne legyen nagyobb a megadott szélességnél */
}

.contact-info h2 {
  color: #d71920;
}

.contact-form label {
  display: block;
  margin-top: 10px;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  border-radius: 4px;
  border: 1px solid #ccc;
}

.contact-form button {
  margin-top: 15px;
  padding: 10px 15px;
  background-color: #d71920;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #a51617;
}


/* Lábléc (footer) – fix alul */
footer {
  background-color: black;
  color: white;
  text-align: center;
  padding: 8px;
  margin-top: 20px;
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 500;
}
/* Galéria stílus */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.05);
}
@media screen and (max-width: 991px) {
  .content-wrapper {
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 auto !important;
    flex-wrap: unset !important;
    gap: 0 !important;
    align-items: unset !important;
    justify-content: unset !important;
  }

  .side-image {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin: 20px 0 !important;
  }

  .side-image img {
    width: 80%;
    max-width: 220px;
    height: auto;
  }

  .main-content {
    background-color: #ffffff;
    border: 2px solid #d71920;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    padding: 25px 20px;
    margin: 20px auto;
    width: 90%;
    max-width: 600px;
    box-sizing: border-box;
    text-align: justify;
    font-size: 1.1em;
  }

  .navbar .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
    margin: 0 auto;
    list-style: none;
  }

  .navbar .nav-links li {
    margin: 0;
  }

  .navbar .nav-links a {
    color: white;
    font-size: 1.1em;
    text-decoration: none;
    padding: 8px 14px;
    display: inline-block;
    border-radius: 4px;
  }

  .welcome-text {
    font-size: 1.2em;
    text-align: center;
    margin: 10px auto;
  }

  footer {
    text-align: center;
    font-size: 0.95em;
    padding: 10px;
  }
}
@media screen and (max-width: 767px) {
  .main-content {
    max-width: 92%;
    margin: 30px auto;
    padding: 20px;
    font-size: 18px;
    background-color: white;
    border: 2px solid #c33;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
  }

  .intro-text {
    line-height: 1.6;
  }
}

