html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
}

header {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0,2rem 0;
  position: relative;
  min-height: 90px;
}

.logo-wrapper {
  position: absolute;
  top: 0.5rem;
  left: 4rem;
  height: 100px;
  width: 100px;
  display: flex;
  align-items: center;
  z-index: 10;
  pointer-events: none;
}

.logo-wrapper a {
  pointer-events: auto;
  display: inline-block;
  width: 100%;
  height: 100%;
}

.logo {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 0 1rem;
  flex-wrap: wrap;
  position: relative;
}

nav {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  margin-top: -65px;
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  justify-content: center;
  align-items: center;
}

nav a {
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  white-space: nowrap;
}

.lang-switcher {
  position: absolute;
  top: 1rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.lang-switcher button {
  background: #003366;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
}

main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex: 1;  
  color: #333;
}

.center-content p[data-i18n="intro"] {
  font-size: 1.4em;
  color: #FFFFFF;
  font-weight: bold;
  text-align: left;
  max-width: 30%;
  justify-content: flex-start;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8); /* 🔹 jobb olvashatóság */
}

.center-content h1[data-i18n="welcome"] {
  color: #FFFFFF;
  font-weight: bold;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8); /* 🔹 jobb olvashatóság */
}

.center-content {
  text-align: center;
  position: relative;
  z-index: 1; /* 🔹 szöveg az overlay fölött */
}

.social-section {
  margin-top: 2rem;
}

.social-section p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  justify-content: left;
  gap: 1rem;
}

.social-icons a {
  display: inline-block;
  width: 48px;
  height: 48px;
  transition: transform 0.2s ease;
}

.social-icons a:hover {
  transform: scale(1.1);
}

.social-icons svg {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  /* Text na mobile nech ide cez celú šírku */
  .center-content p[data-i18n="intro"] {
    max-width: 100%;
    font-size: 1.1em;
    text-align: center;
  }

  .center-content h1[data-i18n="welcome"] {
    font-size: 1.4em;
    text-align: center;
  }

  /* Tabuľka */
  table {
    width: 100% !important;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  td, th {
    font-size: 14px;
    padding: 6px;
  }

  /* Formulár a boxy */
  form, .form-container, .order-box {
    width: 100% !important;
    margin: 0 auto !important;
  }

  /* Logo prispôsobíme */
  .logo {
    height: 60px;
    width: auto;
  }

  .logo-wrapper {
    left: 1rem;
    top: 0.5rem;
    height: auto;
    max-width: 80px;
  }

  /* Navigácia pod logom */
  nav {
    margin-top: 0;
  }

  nav ul {
    flex-direction: row;
    gap: 0.6rem;
    flex-wrap: wrap;
    font-size: 0.9em;
  }

  .lang-switcher {
    top: 1rem;
    right: 1rem;
  }

  .social-icons {
    gap: 0.5rem;
  }
} 

footer {
  background: #f0f0f0;
  padding: 1em 1rem;
  font-size: 0.9em;
  text-align: center;
  color: #333;
  margin-top: auto;
}

body.home-page {
  background-image: url("background.png");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative; /* kell az overlay-hez */
  overflow: hidden;
}

body.home-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45); /* 🔹 fade */
  z-index: 0;
  pointer-events: none; /* 🔹 kattintások átmennek */
}

body.home-page > header,
body.home-page main,
body.home-page .center-content,
body.home-page footer,
body.home-page .cookie-banner { /* 🔹 a sütik banner is fölötte legyen */
  position: relative;
  z-index: 1;
  color: #ffffff;
}
