/* Reset és alapok */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #ffffff;
  color: #333;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header és Hero */
header {
  position: relative;
  height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.logo-wrapper {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.logo {
  height: 150px;
  object-fit: contain;
}

.hero-header {
  position: relative;
  height: 400px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/header.jpg');
  background-size: cover;
  background-position: center;
  filter: blur(2px);
  z-index: 0;
}

.hero-header::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-header .content {
  position: relative;
  z-index: 2;
  color: white;
  padding: 0 1rem;
  box-sizing: border-box;
  width: 100%;
  max-width: 1000px;
}

header h1 {
  font-size: 3rem;
  font-weight: 600;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

header h1 span.green {
  color: #a5d6a7;
}

header p {
  font-size: 1.3rem;
  margin: 1rem 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* Gombok és navigáció */
.button-center {
  text-align: center;
  margin-top: 2rem;
}

.cta-button,
.nav-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.cta-button:hover,
.nav-button:hover {
  background-color: #1b5e20;
}

nav {
  margin-top: 1rem;
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.nav-button {
  white-space: nowrap;
}

/* Szövegblokkok */
section {
  padding: 4rem 2rem;
  text-align: center;
}

section h2 {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 1rem;
}

section p {
  max-width: 600px;
  margin: 0 auto;
}

.profil-container {
  max-width: 600px;
  margin: 1rem auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  background-color: #f9f9f9;
  flex-wrap: wrap;
}

.profil-container img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.profil-text {
  text-align: left;
}

.profil-text h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #2e7d32;
}

.profil-text p {
  margin: 0.5rem 0 0;
  font-size: 1.1rem;
}

/* Kártyák és szekciók */
.referenzen {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.leistungen {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.leistung-card {
  text-align: center;
  padding: 20px;
  border-radius: 15px;
  background: #f7f7f7;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.leistung-card h3 {
  color: #2e7d32;
  margin-bottom: 0.5rem;
}

.leistung-card img.leistung-img {
  width: 100%;
  max-width: 250px;   /* hogy ne legyen túl nagy */
  height: auto;
  margin-top: 15px;
  border-radius: 10px;
  object-fit: cover;
}

/* Form */
form {
  display: flex;
  flex-direction: column;
  padding: 1em;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
}

input, textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
}

button {
  background: #2e7d32;
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 5px;
  cursor: pointer;
}

/* Footer */
footer {
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  line-height: 1.6;
  margin-top: 50px;
}

footer h4 {
  font-size: 13px;
  margin: 8px 0;
  font-weight: normal;
}

footer a {
  color: #fff;
  text-decoration: underline;
}

footer a:hover {
  text-decoration: underline;
}

.footer-space {
  height: 150px;
}

/* Referenzen projektek */
#referenzen .projekt-container {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem;
  justify-content: center;
  margin-top: 2rem;
}

#referenzen .projekt {
  width: 100%;
  max-width: 480px;
  flex-grow: 1;
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  text-align: center;
}

/* Swiper */
.swiper-container {
  width: 100%;
  height: 200px;
  margin: 1rem 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eee;
}

.swiper-wrapper {
  height: 100%;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

html, body {
  height: 100%;
}

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

  .marke-text {
    display: none;
  }

  .logo {
    height: 120px;
  }

  nav {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  .nav-button {
	display: block;
    width: 100%;
    max-width: 300px;
    font-size: 1rem;
    white-space: normal;
    text-align: center;
  }

  .hero-header h1 {
    font-size: 1.5rem;
    padding: 0 1rem;
    word-break: break-word;
    text-align: center;
  }
  
  .hero-header > h1 {
    font-size: 1.5rem;
    padding: 0 1rem;
    word-break: break-word;
    text-align: center;
    white-space: normal;
    max-width: 100vw;
    box-sizing: border-box;
    margin-bottom: 1rem;
  }

  .swiper-slide {
    height: auto;
  }
  
  footer {
    font-size: 12px;
    line-height: 1.4;
    padding: 15px 5px;
  }

  footer h4 {
    font-size: 12px;
  }
}
