/* [inweb 2026-11-18] Mobil- és reszponzív javítások (ftengineering.hu).
 * Az eredeti stílusok (4_style.css) érintetlenek; ez a fájl utánuk töltődik be (css/*.css ábécérendben). */

/* A szerkesztőben (CKEditor) beállított YouTube-beágyazás ne lógjon ki, és tartsa a 16:9-es arányt */
#wrapper iframe[src*="youtube"] {
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* A díszítő ferde háttérformák (::before/::after) se okozzanak vízszintes görgetést (iOS Safarin a body overflow-x: hidden nem mindig elég).
 * A clip nem hoz létre görgetési tárolót, így a függőleges görgetést és a position: sticky-t nem érinti; régi böngészőben figyelmen kívül marad. */
html {
  overflow-x: clip;
}

@media (max-width: 767px) {
  /* 767 px alatt a tároló fixen 420 px volt → minden 390–414 px-es telefonon kilógott és levágódott */
  #wrapper .container {
    width: auto;
    max-width: 100%;
  }

  /* Tartalmi táblázatok fix szélességgel (style="width:1000px" / "width:500px"): teljes szélesség, a cellák egymás alá */
  #wrapper section table[style*="width"] {
    width: 100% !important;
    height: auto !important;
  }
  #wrapper section table[style*="width"] > tbody > tr > td {
    display: block;
    width: 100% !important;
    height: auto !important;
  }

  /* Tartalmi képek ne lógjanak ki */
  #wrapper section img {
    max-width: 100%;
    height: auto;
  }

  /* Gombok: ne legyenek szélesebbek a helyüknél */
  #wrapper .button {
    max-width: 100%;
  }
  #wrapper footer input[type="submit"].button {
    width: 100%;
    min-width: 0;
  }

  /* Slider: a felirat és a lapozó a képernyőn belül */
  #wrapper .module-slider {
    overflow: hidden;
  }
  #wrapper .module-slider .carousel-caption {
    left: 15px;
    right: 15px;
  }
  #wrapper .module-slider .carousel-caption .row {
    margin-left: 0;
    margin-right: 0;
  }
  #wrapper .module-slider .indicators {
    left: 15px;
    right: 15px;
    width: auto;
  }
  #wrapper .module-slider .carousel-control {
    width: 48px;
    height: 48px;
  }

  /* Hosszú címszavak (pl. „KÖLTSÉGCSÖKKENTÉS”) ne lógjanak ki */
  #wrapper .block-title h2 {
    font-size: 26px;
    overflow-wrap: break-word;
    hyphens: auto;
  }
  /* Slider-felirat olvashatósága a képen */
  #wrapper .module-slider .carousel-caption h1,
  #wrapper .module-slider .carousel-caption h2,
  #wrapper .module-slider .carousel-caption h3 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  }
}

/* [inweb 2026-11-18] Jogi oldalak (Impresszum, Adatvédelmi tájékoztató) és hivatkozásaik */
#wrapper .inweb-jogi h2 {
  font-size: 22px;
  margin-top: 28px;
  margin-bottom: 10px;
  text-transform: none;
}
#wrapper .inweb-jogi h3 {
  font-size: 18px;
  margin-top: 20px;
}
#wrapper .inweb-jogi ul {
  padding-left: 20px;
  margin-bottom: 12px;
}
#wrapper .inweb-jogi li {
  margin-bottom: 6px;
}
#wrapper .inweb-jogi a {
  text-decoration: underline;
}
#wrapper .inweb-jogi-linkek a {
  color: #fff;
  text-decoration: underline;
  font-weight: normal;
}
#wrapper .inweb-urlap-adatv {
  font-size: 13px;
  margin-top: 10px;
}
#wrapper .inweb-urlap-adatv a {
  color: inherit;
  text-decoration: underline;
}

/* A lábléc alsó sávja: a jogi linkek a szövegben maradjanak (a sablon minden linket abszolút pozícióval jobbra tesz) */
#wrapper .footer__copy--height .inweb-jogi-linkek a {
  position: static;
}
#wrapper .footer__copy--height {
  height: 66px;
}
@media (max-width: 767px) {
  #wrapper footer .footer__copy--height {
    height: auto;
    padding: 12px 0;
  }
  #wrapper footer .footer__copy--height p {
    position: static;
    max-width: 70%;
    margin: 0;
  }
  #wrapper footer .footer__copy--height > a {
    top: 50%;
    transform: translateY(-50%);
  }
}

/* A lábléc felső sávja mobilon: abszolút pozíció helyett egymás alatt, hogy az ikonok ne csússzanak a menüre */
@media (max-width: 767px) {
  #wrapper .footer__bottom--height {
    height: auto;
    padding: 18px 0 14px;
  }
  #wrapper .footer__bottom .contact,
  #wrapper .footer__bottom nav {
    position: static;
  }
  #wrapper .footer__bottom .contact ul li {
    display: inline-block;
    margin-bottom: 8px;
  }
  #wrapper .footer__bottom .contact ul li img {
    margin: 0 !important;
    max-height: 30px;
    width: auto;
  }
  #wrapper .footer__bottom nav {
    margin-top: 10px;
  }
  #wrapper .footer__bottom nav ul li {
    display: inline-block;
    margin: 0 14px 10px 0;
  }
}
