/* ===============================
   Reset és alap betűtípus
================================ */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'Poppins', sans-serif;
  color: #fff;
}

/* ===============================
   Háttér PC-re
================================ */
body {
  background: url("./images/pc.jpg") no-repeat center center fixed;
  background-size: cover;
  position: relative;
}

/* ===============================
   Sötét overlay
================================ */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.1);
  z-index: 0;
  pointer-events: none;
}

/* ===============================
   Mobil háttér
================================ */
@media (max-width: 768px) {
  body {
    background: url("./images/telefon.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: scroll;
  }
}

/* ===============================
   Görgethető tartalom
================================ */
main {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* iOS viewport fix */
@media (max-width: 768px) {
  main {
    height: 100dvh;
  }
}

/* ===============================
   ---------- Fejléc ----------
================================ */
header {
  margin-top: 3em;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

header img {
  width: 9em;
  height: 9em;
  border-radius: 100%;
  border: 4px solid rgba(255,255,255,0.7);
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

header h1 a {
  display: inline-block;
  margin-top: 0.8em;
  padding: 0.4em 0.9em;
  font-size: 1em;
  font-weight: bold;
  color: #000;
  background: rgba(255,255,255,0.7);
  border-radius: 1em;
  text-decoration: none;
  text-shadow: 1px 1px 2px #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

/* ===============================
   Header szöveg doboz (ugyanolyan széles, mint az adatkezelő doboz)
================================ */
.header-box {
  display: block;
  box-sizing: border-box;
  width: 90%;
  max-width: 680px;             /* Pontosan megegyezik az adatkezelési tájékoztatóval */
  margin: 1.2em auto 0 auto;
  padding: 2em 2.2em;           /* Tágasabb, kényelmes belső margó */
  background: rgba(255,255,255,0.7);
  border-radius: 1.2em;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.header-box h2 {
  margin: 0 0 1em 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  text-align: center;
  text-shadow: 1px 1px 2px #fff;
}

.header-box p {
  margin: 0.8em 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #000;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-shadow: 1px 1px 2px #fff;
  line-height: 1.6;
}

/* Pontozott felsorolás a szövegdobozon belül */
.header-box ul.info-list {
  list-style-type: disc;
  margin: 0.6em 0 1em 1.5em;
  padding: 0;
  max-width: none;
}

.header-box ul.info-list li {
  display: list-item;
  justify-content: flex-start;
  margin: 0.35em 0;
  padding: 0;
  width: auto;
  max-width: none;
  font-size: 0.93rem;
  font-weight: 500;
  color: #000;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-shadow: 1px 1px 2px #fff;
  line-height: 1.5;
}

/* ===============================
   ---------- Gombok / Linklista ----------
================================ */
ul {
  list-style: none;
  margin: 2em auto;
  padding: 0;
  max-width: 480px;
}

ul li {
  display: flex;
  justify-content: center;
  margin: 1em 0;
}

ul li a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1em 1.2em;
  background: rgba(255,255,255,0.7);
  color: #000;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0.9em;
  text-shadow: 1px 1px 2px #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
  width: 300px;
  max-width: 100%;
}

ul li a img {
  flex-shrink: 0;
}

/* ===============================
   ---------- Lábléc ----------
================================ */
footer {
  margin-top: 2em;
  padding-bottom: 1.5em;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px #000;
}

/* ===============================
   ---------- Mobil méretezés ----------
================================ */
@media (max-width: 480px) {
  header img {
    width: 7em;
    height: 7em;
  }

  header h1 a {
    font-size: 0.9em;
    padding: 0.3em 0.6em;
  }

  .header-box {
    width: 90%;
    max-width: 90%;
    padding: 1.4em 1.1em;
  }

  .header-box h2 {
    font-size: 1.05rem;
  }

  .header-box p {
    font-size: 0.9rem;
  }

  .header-box ul.info-list {
    margin-left: 1.2em;
  }

  .header-box ul.info-list li {
    font-size: 0.88rem;
  }

  ul li a {
    font-size: 0.95rem;
    gap: 0.5em;
    width: 300px;
    max-width: 90%;
  }
}