@media (max-width: 768px) {

  .site-nav {height: 14vh; justify-content: center;}
  .nav-inner { 
    width: 90vw;
    height: 14vh;
    margin: 0;
  }
  .nav-banner { height: 14vh; }
  .nav-banner-img { height: 14vh; content: url("headerffMobile.jpg"); }
  
  .header {
     height: 8rem;
     margin-top: -8rem;
   }

  #title{
    display: flex;
    width: 90vw;
    height: 11vh;
    color:azure; 
    font-size: 1.1rem;
}

  .hamburger { display: inline-flex; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; gap: 0;
    background: #0a0b29; border-bottom: 1px solid #e5e7eb;
    padding: .5rem;
  }
  .menu.open { display: flex; }
  .menu li a { border-radius: .75rem; padding: .85rem 1rem; }

  #flagen{ display:flex; width: 20vw; height: 10vh; }

  #flaghu{ display:flex; width: 20vw; height: 10vh; }

  #head-banner { 
    width: 96vw;
    height: 45vh;
    content: url("headMobile.jpg"); 
  }

  #head-bannerEn { 
    width: 96vw;
    height: 45vh;
    content: url("headMobileEn.jpg"); 
  }

  #program-banner { 
    width: 96vw;
    height: 45vh;
    content: url("programMobile.jpg"); 
  }

  #program-bannerEn { 
    width: 96vw;
    height: 45vh;
    content: url("programMobileEn.jpg"); 
  }

  #contact-banner { 
    width: 96vw;
    height: 45vh;
    content: url("contactMobile.jpg"); 
  }

  #contact-bannerEn { 
    width: 96vw;
    height: 45vh;
    content: url("contactMobileEn.jpg"); 
  }
  
  .contentImg { display: none; }

   .contentTitle {
    font-size: 1.3rem; 
    margin: 1rem 0rem 1rem 0rem;
  }

  .contentBox{
    display: flex; 
    flex-direction: row; 
    width: 90%; 
    padding: 1rem 0rem 0rem 1rem; 
    margin-bottom: 1rem;
  }

  .contentTextWrapper {
    width: 76%; 
    flex-direction: column;
  }
  .contentText {
    font-size: 1.2rem; 
    line-height: 1.5;
    
  }

  .contentText + .contentText { margin-top: 1rem; }

  .pdfIcon{
    width: 12vw; 
    height: 7vh;
    margin-left: 1rem;
  }

  .contactWrapper{
    display: flex; 
    width: calc(100% + 10rem);
    margin-left: -10rem;
    justify-content: left; 
    flex-direction: row; 
    padding: 0rem 1rem 0rem 0rem;
  }

  .contactImg{
    display: flex; 
    height: 32rem; 
    flex-direction: column; 
    align-items: center; 
    margin: 0rem 0rem 2rem 2rem;
  }

  .contactText{
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-left: -5rem;
    font-size: 1rem; 
    line-height: 5;
  }

  .socials{
    line-height: 3.3;
  }

  .footerWrapper{
    flex-direction: column; 
    align-items: center; 
    margin-left: 0rem;
  }

  .footer { height: 52vh;}

  .footerLogo{
    width: 60%; 
    height: 60%; 
    margin-right: 0rem;
  }

  .footerMenuWrapper{ padding-top: 0rem; }

  .footerMenu{ align-items: center; }

  .copyright{
    display:flex; 
    width: 90%; 
    height: 100%; 
    flex-direction: column; 
    font-size: .9rem; 
    text-align: center;
    line-height: 2; 
    color:#ffffff; 
    padding-top: 0rem;
  }
}

/* Mobil + fekvő nézet */
@media (max-width: 768px) and (orientation: landscape) {

  body > *:not(#rotate-message) {
    display: none !important;
  }

  #rotate-message {
    display: flex;
    position: fixed;
    inset: 0;
    background: #0a0b29;
    color: white;
    font-size: 1.4rem;
    text-align: center;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    z-index: 9999;
  }
}